[GRASSLIST:976] problem with import

Hello!

I’ve created a lat-long region like this :
GRASS 6.0.1 (New_loc1):~/Desktop/eaps/Demonstracao/Prototype1 > g.region -p
projection: 3 (Latitude-Longitude)
zone: 0
datum: ** unknown (default: WGS84) **
ellipsoid: wgs84
north: 90N
south: 90S
west: 180W
east: 180E
nsres: 1
ewres: 1
rows: 180
cols: 360

And I’ve tried to import an image (it is as attachment) and I get this error :
GRASS 6.0.1 (New_loc1):~/Desktop/eaps/Demonstracao/Prototype1 > r.in.gdal input=/home/seabiscuit/Desktop/florida.jpg out=florida -o
Over-riding projection check.
Proceeding with import…
WARNING: G_set_window(): Illegal latitude for South

Can anywone help me ?

Thanks!

(attachments)

florida.jpg

hallo,
how does your florida.jgw look like? What does

    gdalinfo florida.jpg
    
say?

Jachym

On Tue, May 02, 2006 at 04:54:03PM +0100, Ana Soares wrote:

Hello!

I've created a lat-long region like this :
GRASS 6.0.1 (New_loc1):~/Desktop/eaps/Demonstracao/Prototype1 > g.region -p
projection: 3 (Latitude-Longitude)
zone: 0
datum: ** unknown (default: WGS84) **
ellipsoid: wgs84
north: 90N
south: 90S
west: 180W
east: 180E
nsres: 1
ewres: 1
rows: 180
cols: 360

And I've tried to import an image (it is as attachment) and I get this error
:
GRASS 6.0.1 (New_loc1):~/Desktop/eaps/Demonstracao/Prototype1 >
r.in.gdalinput=/home/seabiscuit/Desktop/florida.jpg out=florida -o
Over-riding projection check.
Proceeding with import...
WARNING: G_set_window(): Illegal latitude for South

Can anywone help me ?

Thanks!

--
Jachym Cepicky
e-mail: jachym.cepicky@centrum.cz
URL: http://les-ejk.cz
GPG: http://les-ejk.cz/gnupg_public_key/jachym_cepicky-gpg_public_key.asc
-----------------------------------------
OFFICE:
GDF-Hannover
Mengendamm 16d
30177 Hannover
Germany
e-mail: cepicky@gdf-hannover.de
URL: http://gdf-hannover.de
Tel.: +49 511-39088507

Hei!

It says :

Driver: JPEG/JPEG JFIF
Coordinate System is `’
Corner Coordinates :
Upper Left ( 0.0, 0.0 )
Lower Left ( 0.0, 930.0 )
Upper Right ( 1107.0, 0.0 )
Lower Right ( 1107.0, 930.0 )
Center ( 553.5, 465.0 )
Band 1 Block=1107x1 Type=Byte, ColorInterp=Red
Band 2 Block=1107x1 Type=Byte, ColorInterp=Green
Band 3 Block=1107x1 Type=Byte, ColorInterp=Blue

Help please! :slight_smile:

2006/5/2, Jachym Cepicky <jachym.cepicky@centrum.cz>:

hallo,
how does your florida.jgw look like? What does

gdalinfo florida.jpg

say?

Jachym

On Tue, May 02, 2006 at 04:54:03PM +0100, Ana Soares wrote:

Hello!

I’ve created a lat-long region like this :
GRASS 6.0.1 (New_loc1):~/Desktop/eaps/Demonstracao/Prototype1 > g.region -p
projection: 3 (Latitude-Longitude)
zone: 0
datum: ** unknown (default: WGS84) **
ellipsoid: wgs84
north: 90N
south: 90S
west: 180W
east: 180E
nsres: 1
ewres: 1
rows: 180
cols: 360

And I’ve tried to import an image (it is as attachment) and I get this error
:
GRASS 6.0.1 (New_loc1):~/Desktop/eaps/Demonstracao/Prototype1 >
r.in.gdalinput=/home/seabiscuit/Desktop/florida.jpg out=florida -o
Over-riding projection check.
Proceeding with import…
WARNING: G_set_window(): Illegal latitude for South

Can anywone help me ?

Thanks!


Jachym Cepicky
e-mail: jachym.cepicky@centrum.cz
URL: http://les-ejk.cz
GPG: http://les-ejk.cz/gnupg_public_key/jachym_cepicky-gpg_public_key.asc

OFFICE:
GDF-Hannover
Mengendamm 16d
30177 Hannover
Germany
e-mail: cepicky@gdf-hannover.de
URL: http://gdf-hannover.de
Tel.: +49 511-39088507

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)

iD8DBQFEV6N5yKt0uAjU4I8RAo6IAJ9qs5EhOUKPskxyrEYxNoJbTu3oDQCgnWvR
qiGamrgLL/ftUq/wDY0U6lk=
=HZCD
-----END PGP SIGNATURE-----

I've created a lat-long region like this :

..

g.region -p
projection: 3 (Latitude-Longitude)

..

And I've tried to import an image (it is as attachment) and I get this
error :
GRASS 6.0.1 (New_loc1):~/Desktop/eaps/Demonstracao/Prototype1 >
r.in.gdalinput=/home/seabiscuit/Desktop/florida.jpg out=florida -o
Over-riding projection check.
Proceeding with import...
WARNING: G_set_window(): Illegal latitude for South

Can anywone help me ?

you need to import unprojected images into a simple XY location, not LL.

added to Wiki FAQ:
  http://grass.gdf-hannover.de/twiki/bin/view/GRASS/GrassFAQPage#Errors

see one of the tutorials for instructions on how to add GCPs with i.points
and warp with i.rectify.

Hamish

Hi,
I would say, you are trying to import ungeoreferenced image to lat-long
location.

1) You have to create location in XY coordinate system
2) Import there our image
3) Georeferecing your image to your lat-long location

see http://gdf-hannover.de/media.php?lg=en - GRASS GIS 6.0 Tutorial.
Version 1.2, page 38

Jachym

On Tue, May 02, 2006 at 10:11:46PM +0100, Ana Soares wrote:

Hei!

It says :

Driver: JPEG/JPEG JFIF
Coordinate System is `'
Corner Coordinates :
Upper Left ( 0.0, 0.0 )
Lower Left ( 0.0, 930.0 )
Upper Right ( 1107.0, 0.0 )
Lower Right ( 1107.0, 930.0 )
Center ( 553.5, 465.0 )
Band 1 Block=1107x1 Type=Byte, ColorInterp=Red
Band 2 Block=1107x1 Type=Byte, ColorInterp=Green
Band 3 Block=1107x1 Type=Byte, ColorInterp=Blue

Help please! :slight_smile:

2006/5/2, Jachym Cepicky <jachym.cepicky@centrum.cz>:
>
>hallo,
>how does your florida.jgw look like? What does
>
> gdalinfo florida.jpg
>
>say?
>
>Jachym
>
>On Tue, May 02, 2006 at 04:54:03PM +0100, Ana Soares wrote:
>> Hello!
>>
>> I've created a lat-long region like this :
>> GRASS 6.0.1 (New_loc1):~/Desktop/eaps/Demonstracao/Prototype1 >
>g.region-p
>> projection: 3 (Latitude-Longitude)
>> zone: 0
>> datum: ** unknown (default: WGS84) **
>> ellipsoid: wgs84
>> north: 90N
>> south: 90S
>> west: 180W
>> east: 180E
>> nsres: 1
>> ewres: 1
>> rows: 180
>> cols: 360
>>
>> And I've tried to import an image (it is as attachment) and I get this
>error
>> :
>> GRASS 6.0.1 (New_loc1):~/Desktop/eaps/Demonstracao/Prototype1 >
>> r.in.gdalinput=/home/seabiscuit/Desktop/florida.jpg out=florida -o
>> Over-riding projection check.
>> Proceeding with import...
>> WARNING: G_set_window(): Illegal latitude for South
>>
>> Can anywone help me ?
>>
>> Thanks!
>
>
>
>--
>Jachym Cepicky
>e-mail: jachym.cepicky@centrum.cz
>URL: http://les-ejk.cz
>GPG: http://les-ejk.cz/gnupg_public_key/jachym_cepicky-gpg_public_key.asc
>-----------------------------------------
>OFFICE:
>GDF-Hannover
>Mengendamm 16d
>30177 Hannover
>Germany
>e-mail: cepicky@gdf-hannover.de
>URL: http://gdf-hannover.de
>Tel.: +49 511-39088507
>
>
>-----BEGIN PGP SIGNATURE-----
>Version: GnuPG v1.4.2.2 (GNU/Linux)
>
>iD8DBQFEV6N5yKt0uAjU4I8RAo6IAJ9qs5EhOUKPskxyrEYxNoJbTu3oDQCgnWvR
>qiGamrgLL/ftUq/wDY0U6lk=
>=HZCD
>-----END PGP SIGNATURE-----
>
>
>

--
Jachym Cepicky
e-mail: jachym.cepicky@centrum.cz
URL: http://les-ejk.cz
GPG: http://les-ejk.cz/gnupg_public_key/jachym_cepicky-gpg_public_key.asc
-----------------------------------------
OFFICE:
GDF-Hannover
Mengendamm 16d
30177 Hannover
Germany
e-mail: cepicky@gdf-hannover.de
URL: http://gdf-hannover.de
Tel.: +49 511-39088507