[GRASSLIST:1888] Re: r.in.gdal

Markus Neteler neteler at geog.uni-hannover.de
Mon May 28 11:12:28 EDT 2001


On Sun, May 27, 2001 at 09:33:39PM +0200, S. Holl wrote:
> Markus Neteler wrote:
> > 
> > On Fri, May 25, 2001 at 10:14:57AM +0200, S. Holl wrote:
> > > Hi there
> > > I importet several TIFFS (with .tfw-files) with r.in.gdal and let it
> > > create a new location with the TIFF coordinates.
> > > Everything worked fine, but it seems there is no PROJ-INFO-file in the
> > > new $LOCATION.
> > > This is needed by r.proj for doing some tranformation.
> > > So r.proj cannot transform my TIFFS into a new location.
> > >
> > > any suggestions and sollutions ?
> > >
> > > Thanks for your help
> > >
> > Hi Steph,
> > 
> > the problem is that the .tif/.tfw files don't contain any projection
> > information. If you would have a .proj file as well, r.in.gdal should
> > accept it. However, after creating the location by r.in.gdal use
> > g.setproj within this new location. It will set the missing information.
> > 
> > Cheers
> > 
> >  Markus
> markus,
> g.setproj doesn`t work in  xy-locations.
> -> XY-location cannot be projected
> my tifs should be in GK-location.
> is r.in.gdal not able to create GK-locations ?
> regards 
> steph

Hi Stephan,

o.k. I didn't think of that. So another try:
Generate a .prj file for your data and generate a new
location with r.in.gdal which *should* accept this .prj file.
Here a sample for Gauss-Krueger (hope it is correct):

PROJECTION TRANSVERSE
UNITS METERS
DATUM POTSDAM
PARAMETERS 
1.000
9 0 0  
0 0 0  
3500000
0.0

Please tell me if this helps.

Markus




More information about the grass-user mailing list