Generating projection file with OpenMap

View: New views
2 Messages — Rating Filter:   Alert me  

Generating projection file with OpenMap

by Reese, Nathan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Generating projection file with OpenMap

I am using OpenMap 4.6.4 to generate ESRI shapefiles.  The shapefile generated includes .shx, .shp, and .dbf files.  The shapefile is valid and can be displayed in GoogleEarth, but, some client applications complain about unknown projection space.  I would like to add .prj file into the mix with WGS84 projection to solve this problem.  However, I am unable to find any examples for generating a .prf file and tying that file to the .shp file.  Can you point me in the right direction?

Nathan


Re: Generating projection file with OpenMap

by Don Dietrick :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Nathan,

Tying the .prj file to the shape file is the easy part, you just name  
it the same as the shape file.

The prj file is a well-known-text format (WKT) file.  You can probably  
just reuse this string in it for a WGS84 projection:

GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",
6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",
0.0174532925199433]]

but if you wanted to generate one, there are WKT packages out there,  
and the spheroid numbers are defined from the Ellipsoid class.

Hope this helps,

Don

On Oct 16, 2009, at 11:49 AM, Reese, Nathan wrote:

>
> I am using OpenMap 4.6.4 to generate ESRI shapefiles.  The shapefile  
> generated includes .shx, .shp, and .dbf files.  The shapefile is  
> valid and can be displayed in GoogleEarth, but, some client  
> applications complain about unknown projection space.  I would like  
> to add .prj file into the mix with WGS84 projection to solve this  
> problem.  However, I am unable to find any examples for generating  
> a .prf file and tying that file to the .shp file.  Can you point me  
> in the right direction?
>
> Nathan
>

--
[To unsubscribe to this list send an email to "majdart@..."
with the following text in the BODY of the message "unsubscribe openmap-users"]