<HTML dir=ltr><HEAD><TITLE>Re: [GRASS-dev] WinGRASS: r.in.gdal projection issue</TITLE>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.6000.16640" name=GENERATOR><BASE href=http://mailstore.rossoalice.alice.it/exchange/Alice000000001264700/Bozze/R:%20[GRASS-dev]%20WinGRASS:%20r.in.gdal%20projection%20issue.EML/1_text.htm></HEAD>
<BODY>
<DIV id=idOWAReplyText84566 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>Hi Glynn,</FONT></DIV>
<DIV dir=ltr><FONT size=2></FONT> </DIV>
<DIV dir=ltr><FONT size=2>In PERMANENT I have WIND and DEFAULT_WIND; they have Unix line endings.</FONT></DIV>
<DIV dir=ltr><FONT size=2>PROJ_* files are missing!</FONT></DIV>
<DIV dir=ltr><FONT size=2></FONT> </DIV>
<DIV dir=ltr><FONT size=2>Many thanks</FONT></DIV>
<DIV dir=ltr><FONT size=2></FONT> </DIV>
<DIV dir=ltr><FONT size=2>Marco</FONT></DIV></DIV>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>Da:</B> Glynn Clements [mailto:glynn@gclements.plus.com]<BR><B>Inviato:</B> dom 11/05/2008 7.12<BR><B>A:</B> marco.pasetti@alice.it<BR><B>Cc:</B> grass-dev@lists.osgeo.org<BR><B>Oggetto:</B> Re: [GRASS-dev] WinGRASS: r.in.gdal projection issue<BR></FONT><BR></DIV>
<DIV><BR>
<P><FONT size=2>marco.pasetti@alice.it wrote:<BR><BR>> During WinGRASS 6.3.0 testings I encontered a problem with the r.in.gdal<BR>> module: it reports no errors, and correctly import rasters, but fails<BR>> creating the projection for the new location created during raster<BR>> import.<BR>> I explain better with an example: I imported an SRTM tile, to be<BR>> imported in a new location named "test", with the following command<BR>> line:<BR>> <BR>> r.in.gdal {input=C:/Documents and Settings/Marco/Documenti/GIS Data<BR>> Repository/SRTM v3.0 DEM 90m/Z_39_3.ASC} output=Z_39_3.dem<BR>> location=test<BR>><BR>> At the end of the Run it reports as follows in the output window:<BR>><BR>> Location <test> created<BR>><BR>> r.in.gdal complete.<BR>><BR>> After that I exit GRASS and I restart it accessing the location test:<BR>> the raster have been correctly imported, the region set to the raster<BR>> boundaries, but if type:<BR>><BR>> g.proj -j<BR>><BR>> it reports<BR>><BR>> XY (unprojected)<BR>><BR>> talking in IRC with a linux huy, I asked him to do the same command<BR>> using the same raster with GRASS-6.3.0SVN: the location test, for him,<BR>> has a correct projection (that is latlong wgs84 and so on...). So I<BR>> guess that is a windows problem, but I don't really know why since the<BR>> command doesn't report errors!<BR>><BR>> any suggestions?<BR><BR>Check the existence and contents of the following:<BR><BR> <database>/test/<BR> <database>/test/PERMANENT/<BR> <database>/test/PERMANENT/DEFAULT_WIND<BR> <database>/test/PERMANENT/PROJ_INFO<BR> <database>/test/PERMANENT/PROJ_UNITS<BR><BR>where <database> is the GRASS database directory.<BR><BR>In particular, check whether the files have Unix (LF) or DOS (CR+LF)<BR>line endings (if the files look correct in Notepad, they have DOS line<BR>endings; with Unix line endings, you get one long line with little<BR>black blocks).<BR><BR>--<BR>Glynn Clements <glynn@gclements.plus.com><BR></FONT></P></DIV></BODY></HTML>