comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » projection info (.prj file) from ESRI Shape
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: projection info (.prj file) from ESRI Shape [message #47428 is a reply to message #47359] Wed, 08 February 2006 09:10 Go to previous message
MarioIncandenza is currently offline  MarioIncandenza
Messages: 231
Registered: February 2005
Senior Member
Fang,

The routine you're looking for may not be out there. Thing is, not even
all of ESRI's own software bothers to read the .PRJ files.

But, if you open them up, you can see that the format is very simple,
and you could handily write a reader for them. But if you are really
dealing with many different projections, that could be too much.

The GDAL package, a free Unix/Linux project, includes a utility called
OGR2OGR (http://www.gdal.org/ogr/ogr2ogr.html). Docs for that program
assert that "This program can be used to convert simple features data
between file formats performing various operations during the process
such as spatial or attribute selections, reducing the set of
attributes, setting the output coordinate system or even reprojecting
the features during translation."

This program can take shapefile input and give shapefile output, and
(since it is Unix) can be run in batch mode.
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Calculate maximum diameter?
Next Topic: Config files

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 10:18:48 PDT 2025

Total time taken to generate the page: 0.79929 seconds