[GRASS-user] Projection of dataset does not appear to match the current location!!!

Hi!!
i am Trying to display one raster image kept on my harddisk,
I have kept spearfish60 on /usr/local/grassdata so I set Location : spearfish60
I have made one user user1 then i set Mapset: user1…
then i start grass ,
the n throu command
r.in.gdal -e in=nf42.tif out=tm
then i am getting the error,.,

Projection of dataset does not appear to match the current location!!!
I have tried the same thru GIS manager,
file->import->Raster->multiple formats using gdal…
I want to know where i am doing wrong…
Thanks in Advance


Thanks & Regards

Kunal Malik
09871147561

Hi!!

Kunal Malik píše v Čt 14. 02. 2008 v 14:30 +0530:

Projection of dataset does not appear to match the current
location!!!

this means, that your map is not in the same projection, as the
spearfish dataset is. you have to either:

* use -o flag for r.in.gdal, which will override the projection check
(use it only if you are sure, the map *is* in the same projection)

* create new location & mapset, which projection is the same, as the
file projection

* use the location= parameter in r.in.gdal, which will create new
location for you, with the projection according the raster file

* start GRASS with gui (grass62 -tcltk) and hit the "Georeferenced file"
button, which will create new location based on the projection values
from your tiff file

hope, this helps

jachym

--
Jachym Cepicky
e-mail: jachym.cepicky gmail com
URL: http://les-ejk.cz
GPG: http://www.les-ejk.cz/pgp/jachym_cepicky-gpg.pub

On Thursday 14 February 2008 10:00:28 Kunal Malik wrote:

Hi!!
i am Trying to display one raster image kept on my harddisk,
I have kept spearfish60 on /usr/local/grassdata so I set Location :
spearfish60
I have made one user user1 then i set Mapset: user1..
then i start grass ,
the n throu command
r.in.gdal -e in=nf42.tif out=tm
then i am getting the error,.,

Projection of dataset does not appear to match the current location!!!
I have tried the same thru GIS manager,
file->import->Raster->multiple formats using gdal..
I want to know where i am doing wrong..
Thanks in Advance

Hi,

In order to use your raster image, you need to import it into a location with
the same reference system as the raster. It has probably a projection other
than the spearfish data set. That's why you get the error message from
r.in.gdal.

Once you have imported your raster into a location other than spearfish, you
can use r.proj to import your raster image into the spearfish dataset.

HI!!
following ur Instructions
I have created a new Location MAP:
Name of the New LOcation: Map
Path to New Location:/usr/local/grassdata/
Path to georefrenced file:/usr/local/grassdata/Path_to_Tiff_File
it create a new location Map…
Now i tried to Import tiff file selecting the Map Location…
r.in.gdal -e in=nf4.tif out=tm…
now it shows projection Matched
but I am not able to display it,
how could i display it,
please check the setting ,is that rght?

On 2/14/08, Jachym Cepicky <jachym.cepicky@gmail.com> wrote:

Hi!!

Kunal Malik píše v Čt 14. 02. 2008 v 14:30 +0530:

Projection of dataset does not appear to match the current
location!!!

this means, that your map is not in the same projection, as the
spearfish dataset is. you have to either:

  • use -o flag for r.in.gdal, which will override the projection check
    (use it only if you are sure, the map is in the same projection)

  • create new location & mapset, which projection is the same, as the
    file projection

  • use the location= parameter in r.in.gdal, which will create new
    location for you, with the projection according the raster file

  • start GRASS with gui (grass62 -tcltk) and hit the “Georeferenced file”
    button, which will create new location based on the projection values
    from your tiff file

hope, this helps

jachym


Jachym Cepicky
e-mail: jachym.cepicky gmail com
URL: http://les-ejk.cz
GPG: http://www.les-ejk.cz/pgp/jachym_cepicky-gpg.pub


Thanks & Regards

Kunal Malik
09871147561

hi,

should work

so,

I do not know, if you are using GUI or CLI

in CLI:

g.list rast # gives you list of available raster maps
d.mon x0 # start grass monitor
d.rast your_map # displays raster file called your_map

in GUI:

hit the "Add raster layer" button

in new form, click at the "Base raster layer" button in GIS Manager and
choose your map in list of available maps

you can also write "g.list rast" in GRASS Output window and see the list
of available raster maps.

anyway, maybe now is good time to start to read some book ..?

http://www.grassbook.org/
http://gdf-hannover.de/dl.php?download=gdf_grass60_v1.2_en.pdf

jachym

Kunal Malik píše v Čt 14. 02. 2008 v 15:23 +0530:

HI!!
following ur Instructions
I have created a new Location MAP:
Name of the New LOcation: Map
Path to New Location:/usr/local/grassdata/
Path to georefrenced file:/usr/local/grassdata/Path_to_Tiff_File
it create a new location Map..
Now i tried to Import tiff file selecting the Map Location...
r.in.gdal -e in=nf4.tif out=tm..
now it shows projection Matched
but I am not able to display it,
how could i display it,
please check the setting ,is that rght?

On 2/14/08, Jachym Cepicky <jachym.cepicky@gmail.com> wrote:
        Hi!!
        
        Kunal Malik píše v Čt 14. 02. 2008 v 14:30 +0530:
        
        > Projection of dataset does not appear to match the current
        > location!!!
        
        this means, that your map is not in the same projection, as
        the
        spearfish dataset is. you have to either:
        
        * use -o flag for r.in.gdal, which will override the
        projection check
        (use it only if you are sure, the map *is* in the same
        projection)
        
        * create new location & mapset, which projection is the same,
        as the
        file projection
        
        * use the location= parameter in r.in.gdal, which will create
        new
        location for you, with the projection according the raster
        file
        
        * start GRASS with gui (grass62 -tcltk) and hit the
        "Georeferenced file"
        button, which will create new location based on the projection
        values
        from your tiff file
        
        hope, this helps
        
        jachym
        
        --
        Jachym Cepicky
        e-mail: jachym.cepicky gmail com
        URL: http://les-ejk.cz
        GPG: http://www.les-ejk.cz/pgp/jachym_cepicky-gpg.pub
        
--
Thanks & Regards

Kunal Malik
09871147561

--
Jachym Cepicky
e-mail: jachym.cepicky gmail com
URL: http://les-ejk.cz
GPG: http://www.les-ejk.cz/pgp/jachym_cepicky-gpg.pub

On 14/02/08 10:53, Kunal Malik wrote:

HI!!
following ur Instructions
I have created a new Location MAP:
Name of the New LOcation: Map
Path to New Location:/usr/local/grassdata/
Path to georefrenced file:/usr/local/grassdata/Path_to_Tiff_File
it create a new location Map..
Now i tried to Import tiff file selecting the Map Location...
r.in.gdal -e in=nf4.tif out=tm..
now it shows projection Matched
but I am not able to display it,
how could i display it,
please check the setting ,is that rght?

Probably your current display region is not adjusted to the map.

In GUI: Zoom to selected map
In command line:
  - g.region rast=tm
  - d.erase
  - d.rast tm

Moritz