[GRASS-windows] RE: 1. Convert from Meters to Degrees (Louis Becker)

Louis Becker Louis.Becker at cellone.com.na
Fri Aug 29 10:53:09 EDT 2008


Hi Markus & Niel

Although I have been able to get a GeoTiff that works, I am still
wondering what to do should that not have been the case. As such please
find info as follows. I want to import a GeoTiff file into the following
location obtained with "g.region -p":

projection: 0 (x,y)
zone:       0
north:      -16.95989
south:      -28.96946
west:       11.71563
east:       25.2567
nsres:      0.6004785
ewres:      0.6770535
rows:       20
cols:       20
cells:      400

This is the gdalinfo for the file:

Driver: GTiff/GeoTIFF
Files: nam_trimmed_utm34.tif
Size is 2091, 1980
Coordinate System is `'
Origin = (-514892.022276454950000,8147409.058374555800000)
Pixel Size = (712.653318030000040,-712.653318030000040)
Metadata:
  TIFFTAG_XRESOLUTION=300
  TIFFTAG_YRESOLUTION=300
  TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch)
Image Structure Metadata:
  COMPRESSION=LZW
  INTERLEAVE=PIXEL
Corner Coordinates:
Upper Left  ( -514892.022, 8147409.058) 
Lower Left  ( -514892.022, 6736355.489) 
Upper Right (  975266.066, 8147409.058) 
Lower Right (  975266.066, 6736355.489) 
Center      (  230187.022, 7441882.274) 
Band 1 Block=2091x8 Type=Byte, ColorInterp=Red
Band 2 Block=2091x8 Type=Byte, ColorInterp=Green
Band 3 Block=2091x8 Type=Byte, ColorInterp=Blue

How would I go about it?

Louis

-----Original Message-----
From: Louis Becker 
Sent: 29 August 2008 11:50
To: 'grass-windows at lists.osgeo.org'
Subject: 1. Convert from Meters to Degrees (Louis Becker)

Hi Markus, Niel and others

I have unzipped my original GeoTiffs again and it seems that I lost (or
did not unzip) my ".tfw" before. It appears that this file contains the
Geo-referencing information because the import is working fine now.
Thanks for your responses and help.

Regards
Louis

----------------------------------------------------------------------

Today's Topics:

   1. Convert from Meters to Degrees (Louis Becker)
   2. Re: Convert from Meters to Degrees (Markus Neteler)
   3. Wingrass-6.0.3-4-Setup.exe (Ted Nebitko)


----------------------------------------------------------------------

Message: 1
Date: Thu, 28 Aug 2008 10:52:03 +0100
From: "Louis Becker" <Louis.Becker at cellone.com.na>
Subject: [GRASS-windows] Convert from Meters to Degrees
To: <grass-windows at lists.osgeo.org>
Message-ID:
	<C1B2EC3BA69ABF448336ED9C7A4FFDD80204BB79 at MAIL01.99eight.com>
Content-Type: text/plain; charset="us-ascii"

Hi

I am fairly new to Grass and GIS in general and suspect that there is
quite and easy answer to my question, but I have searched and searched
and just cannot come up with a solution. Please help.

I have a GeoTiff file that has its Lat/Long in meters. I would like to
overlay it on a layer with Lat/Long in degrees. The rest of the
projection/datum info is the same. If I just do a strait import, it
assumes that the Lat/Long is in degrees and of course it is displayed in
a total the wrong location in relation to degrees. How can I convert the
file in meters to be projected or imported in degrees? I searched and
searched, but can't find a solution.

Louis Becker

-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.osgeo.org/pipermail/grass-windows/attachments/20080828/ea2e
4e0c/attachment-0001.html

------------------------------

Message: 2
Date: Thu, 28 Aug 2008 11:53:43 +0200
From: "Markus Neteler" <neteler at osgeo.org>
Subject: Re: [GRASS-windows] Convert from Meters to Degrees
To: grass-windows at lists.osgeo.org
Message-ID:
	<86782b610808280253y2b3ca750qc662b48ed32ea549 at mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

Louis,

not sure what "Lat/Long in meters" is... can you please post the output
of gdalinfo on these maps to the list?

Markus

On Thu, Aug 28, 2008 at 11:52 AM, Louis Becker
<Louis.Becker at cellone.com.na> wrote:
> Hi
>
> I am fairly new to Grass and GIS in general and suspect that there is 
> quite and easy answer to my question, but I have searched and searched

> and just cannot come up with a solution. Please help.
>
> I have a GeoTiff file that has its Lat/Long in meters. I would like to

> overlay it on a layer with Lat/Long in degrees. The rest of the 
> projection/datum info is the same. If I just do a strait import, it 
> assumes that the Lat/Long is in degrees and of course it is displayed 
> in a total the wrong location in relation to degrees. How can I 
> convert the file in meters to be projected or imported in degrees? I 
> searched and searched, but can't find a solution.
>
> Louis Becker
>
> _______________________________________________
> grass-windows mailing list
> grass-windows at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-windows
>
>



--
Open Source Geospatial Foundation
http://www.osgeo.org/
http://www.grassbook.org/


------------------------------

Message: 3
Date: Thu, 28 Aug 2008 08:48:51 -0400
From: Ted Nebitko <tnebitko at can.rogers.com>
Subject: [GRASS-windows] Wingrass-6.0.3-4-Setup.exe
To: grass-windows at lists.osgeo.org
Message-ID: <48B69EB3.2080403 at can.rogers.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed


GISDBASE='D:/GRASS/data';
LOCATION_NAME='spearfish60';
MAPSET='PERMANENT';
WARNING: Attention!
WARNING: Locking is not supported on Windows!
GRASS GUI should be tcltk
          __________  ___   __________    _______________
         / ____/ __ \/   | / ___/ ___/   / ____/  _/ ___/
        / / __/ /_/ / /| | \__ \\_  \   / / __ / / \__ \
       / /_/ / _, _/ ___ |___/ /__/ /  / /_/ // / ___/ /
       \____/_/ |_/_/  |_/____/____/   \____/___//____/  

Welcome to GRASS 6.3.0 (2008)
GRASS homepage:                          http://grass.osgeo.org/
This version running thru:               shell
(D:/GRASS/msys/bin/sh.exe)
Help is available with the command:      g.manual -i
See the licence terms with:              g.version -c
If required, restart the GUI with:       g.gui tcltk
When ready to quit enter:                exit


g.region -p
projection: 1 (UTM)
zone:       13
datum:      nad27
ellipsoid:  clark66
north:      4928010
south:      4913700
west:       589980
east:       609000
nsres:      30
ewres:      30
rows:       477
cols:       634
cells:      302418

The gis manager, however, opens and freezes with the following error
message:

/Error setting region (Problem with g.region?): child killed unknown
signal />/ />/ can't read "parts(w)": no such variable />/ while
executing />/ "set $parts(w) [expr
round9$parts(w)/$parts(ewres))*$parts(ewres)]*
/>/ (procedure "MapCanvass::zoom_gregion" line 16) />/ invoked from
within.............................
/>/
/>/ Any help is appreciated/






------------------------------

_______________________________________________
grass-windows mailing list
grass-windows at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-windows


End of grass-windows Digest, Vol 24, Issue 9
********************************************


More information about the grass-windows mailing list