[Proj] Michigan georef projection reproject to lat-lon

Richard Greenwood richard.greenwood at gmail.com
Tue Sep 2 21:21:52 EDT 2008


On Tue, Sep 2, 2008 at 6:41 PM, Chris Fahner <chris at mi-sledding.com> wrote:
> When I tried to run the string I entered I received an error.
> Ogr2ogr.exe D:\proj D:\snow_trails_version1.shp -s_srs EPSG: 99999 -t_srs
> EPSG: 4326
>
> The error is:
> ERROR 4: Unable to open EPSG Support file gcs.csv
> Try setting GDAL_DATA environment variable to point to the
> Directory containing EPSG csv files.
> Failed to process SRS definition: EPSG:
>
> I am using 99999 because I had to copy the data from the .prj file that was
> zipped with the shp file as it wasn't available in the epsg file.
>
> This is what was in the .prj file
> PROJCS["NAD_1983_Hotine_Oblique_Mercator_Azimuth_Natural_Origin",GEOGCS["GCS
> _North_American_1983",DATUM["D_North_American_1983",SPHEROID["GRS_1980",6378
> 137.0,298.257222101]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.01745329251994
> 33]],PROJECTION["Hotine_Oblique_Mercator_Azimuth_Natural_Origin"],PARAMETER[
> "False_Easting",2546731.496],PARAMETER["False_Northing",-4354009.816],PARAME
> TER["Scale_Factor",0.9996],PARAMETER["Azimuth",337.25556],PARAMETER["Longitu
> de_Of_Center",-86.0],PARAMETER["Latitude_Of_Center",45.30916666666667],UNIT[
> "Meter",1.0]]

EPSG: 99999 isn't going to work unless there is a definition for 99999
in your epsg file.

You do not need to specify the source coordinate system (-s_srs) if
org recognizes the coordinate system. You can quickly see if ogr
recognizes the coordinate system with:
   orginfo.exe D:\snow_trails_version1.shp

Does the DNR site where you got the file say what coordinate system
the file is in?

-- 
Richard Greenwood
richard.greenwood at gmail.com
www.greenwoodmap.com


More information about the Proj mailing list