[GRASS-user] create a xy location with g.proj

Hamish hamish_nospam at yahoo.com
Wed Oct 10 02:09:42 EDT 2007


> Peter Löwe wrote:
> > does anybody have an example how to create a xy-location using g.proj
> > -c ?
> > 
> > Calling up g.proj from within a xy-location using the -j/-w flags (to
> > create output in wkt/proj format) results in the info "xy location
> > (unprojected)". This doesn't really help.

Michael Barton wrote:
> AFAIK, you cannot create an xy location using g.proj. g.proj is for
> creating projected locations. xy is not projected. When I wanted to
> create an xy location for the new wxPython location wizard, I had to
> code it myself. That said, it's not hard to create the WIND, etc files
> for an xy location.


If this doesn't exist, then we should look at adding the functionality.

for example:
 g.proj -c location="newloc" wkt=none
or
 g.proj -c location="newloc" wkt=XY
or
 g.proj -c location="newloc" wkt=unprojected


then in g.proj we test for that string and reroute as needed.
?

Hamish




More information about the grass-user mailing list