[postgis-users] Importing a shape file with NAD83 / Conus Albers

2011-08-15 Thread Javier de la Torre
Hi all, I got a shapefile with a .prj file on it. I pasted the contents to http://prj2epsg.org and got that this http://prj2epsg.org/epsg/5070 This srs does not seem to be in PostGIS so I am trying to add it. Now, the first thing I tried was sending it to spatialreference and I got this

Re: [postgis-users] Importing a shape file with NAD83 / Conus Albers

2011-08-15 Thread Paul Ramsey
Try running MorphFromESRI on the srs before generating the proj4? P On Mon, Aug 15, 2011 at 2:25 PM, Javier de la Torre jato...@vizzuality.com wrote: Hi all, I got a shapefile with a .prj file on it. I pasted the contents to http://prj2epsg.org and got that this http://prj2epsg.org/epsg/5070

Re: [postgis-users] Importing a shape file with NAD83 / Conus Albers

2011-08-15 Thread Javier de la Torre
You mean: srs.MorphFromESRI() srs.ExportToProj4() That still produce srs.ExportToProj4() ERROR 6: No translation for Albers Equal Area to PROJ.4 format is known. On Aug 15, 2011, at 5:28 PM, Paul Ramsey wrote: Try running MorphFromESRI on the srs before generating the proj4? P On Mon,

Re: [postgis-users] Importing a shape file with NAD83 / Conus Albers

2011-08-15 Thread Paul Ramsey
Very odd. Well, the proj4text you want is: +proj=aea +lon_0=-96 +lat_0=23 +lat_1=29.5 +lat_2=45.5 +datum=NAD83 But, why OGR cannot produce that? Don't know. P On Mon, Aug 15, 2011 at 2:38 PM, Javier de la Torre jato...@vizzuality.com wrote: You mean: srs.MorphFromESRI() srs.ExportToProj4()

Re: [postgis-users] Importing a shape file with NAD83 / Conus Albers

2011-08-15 Thread Javier de la Torre
Thanks Paul, Now, it is a pity there is no way to automate this to a decent level. Is there nobody working on a generic shapefile importer that can accept any sort of shapefile and try to load it using the .prj file? I will keep trying :) Javier. On Aug 15, 2011, at 5:55 PM, Paul Ramsey