[GRASS-user] Importing Raster- Newbie


Hi all,

I registered on your list only a few days ago and I love to use grass (newbie though), but I am having a problem importing a geotif raster data. Any clue as to why that is happening? I have pasted the text below. I have tried using the -o flag but I never get the syntax right.

Thanks

Franz

(Wed Mar 10 15:43:05 2010)
r.in.gdal input=C:\Users\Franzy\Desktop\Ahafo_prst\tograss.tif output=ahohyehye_class
Warning 1: TIFFFetchNormalTag:ASCII value for tag
“GeoASCIIParams” does not end in null byte
No projection name! Projection parameters likely to be meaningless.
Datum not recognised by GRASS and no parameters found
ERROR: Projection of dataset does not appear to match current location.
Location PROJ_INFO is:
name: Universe Transverse Mercator
proj: utm
datum: wgs84
ellps: wgs84
zone: 30
no_defs: defined
Dataset PROJ_INFO is:
ellps: wgs84
ERROR:
You can use the -o flag to r.in.gdal to override this check and use the location definition for the dataset.
Consider generating a new location from the input dataset using the ‘location’ parameter.
(Wed Mar 10 15:43:06 2010) Command finished (0 sec)

On Wed, Mar 10, 2010 at 4:49 PM, Franz Okyere <franzzoa77@yahoo.co.uk> wrote:

Hi all,

I registered on your list only a few days ago and I love to use grass (newbie though), but I am having a problem importing a geotif raster data. Any clue as to why that is happening? I have pasted the text below. I have tried using the -o flag but I never get the syntax right.

Thanks

Franz

(Wed Mar 10 15:43:05 2010)
r.in.gdal input=C:\Users\Franzy\Desktop\Ahafo_prst\tograss.tif output=ahohyehye_class
Warning 1: TIFFFetchNormalTag:ASCII value for tag
"GeoASCIIParams" does not end in null byte
No projection name! Projection parameters likely to be meaningless.

Please report the output of

gdalinfo tograss.tif

It seems to be a somewhat tricky GeoTIFF file. Maybe we understand more from
the gdalinfo output.

Markus


hi Markus,
,
gdalinfo report looks fine (I run from command line so I could not paste it) but there seems to be a problem with the projection. The geotiff file is an output from multispec, which is the program I used for a supervised classification so I do not know what the processing did to the file.

From the output it seems the projection passed to grass is unknown- the spheroid is unretrievable.

Franz

— On Wed, 10/3/10, Markus Neteler neteler@osgeo.org wrote:



> From: Markus Neteler neteler@osgeo.org
> Subject: Re: [GRASS-user] Importing Raster- Newbie
> To: “Franz Okyere” franzzoa77@yahoo.co.uk
> Cc: “GRASS Users” grass-users@lists.osgeo.org
> Date: Wednesday, 10 March, 2010, 19:37
>
> On Wed, Mar 10, 2010 at 4:49 PM, Franz Okyere <franzzoa77@yahoo.co.uk> wrote:
> >
> > Hi all,
> >
> > I registered on your list only a few days ago and I love to use grass (newbie though), but I am having a problem importing a geotif raster data. Any clue as to why that is happening? I have pasted the text below. I have tried using the -o flag but I never get the syntax right.
> >
> > Thanks
> >
> > Franz
> >
> > (Wed Mar 10 15:43:05 2010)
> > r.in.gdal input=C:\Users\Franzy\Desktop\Ahafo_prst\tograss.tif output=ahohyehye_class
> > Warning 1: TIFFFetchNormalTag:ASCII value for tag
> > “GeoASCIIParams” does not end in null byte
> > No projection name! Projection parameters likely to be meaningless.
>
> Please report the output of
>
> gdalinfo tograss.tif
>
> It seems to be a somewhat tricky GeoTIFF file. Maybe we understand more from
> the gdalinfo output.
>
> Markus

Franz,

On Wed, Mar 10, 2010 at 9:32 PM, Franz Okyere <franzzoa77@yahoo.co.uk> wrote:

hi Markus,
,
gdalinfo report looks fine (I run from command line so I could not paste it) but there
seems to be a problem with the projection.

... so the report does not look fine...

Please consider to
- paste the output to http://osgeo.pastebin.com/
- paste a screenshot elsewhere (there are plenty of possibilities in the net

Without this output we won't be able to guess the problem.

The geotiff file is an output from multispec, which is the program I used for a
supervised classification so I do not know what the processing did to the file.

From the output it seems the projection passed to grass is unknown- the spheroid is unretrievable.

This seems to indicate that multispec didn't properly write the metadata
into the file. Or that GRASS does not know the project (unusual but may happen).

Markus