id summary reporter owner description type status priority milestone component version severity resolution keywords cc 1656 ogr2ogr segfault with LCC target projection in ESRI style Markus Neteler Mateusz Łoskot "Frank, reprojecting a SHAPE file from LatLong/WGS84 to North Carolina LCC leads to a segfault when the target .prj file is in ESRI style, otherwise it works: When .prj looks like this, it fails: {{{ g.proj -wef PROJCS[""Lambert Conformal Conic"",GEOGCS[""grs80"",DATUM[""D_North_American_1983"",SPHEROID[""Geodetic_Reference_System_1980"",6378137,298.257222101]],PRIMEM[""Greenwich"",0],UNIT[""Degree"",0.017453292519943295]],PROJECTION[""Lambert_Conformal_Conic""],PARAMETER[""standard_parallel_1"",34.33333333333334],PARAMETER[""standard_parallel_2"",36.16666666666666],PARAMETER[""latitude_of_origin"",33.75],PARAMETER[""central_meridian"",-79],PARAMETER[""false_easting"",609601.22],PARAMETER[""false_northing"",0],UNIT[""Meter"",1]] ogr2ogr -s_srs epsg:4326 -t_srs ""`g.proj -wef`"" tiger_landmark_points_NCSPM.shp tgr37183lpt.shp OGR: Auto register /usr/local/lib/gdalplugins/ogr_GRASS.so using RegisterOGRGRASS. OGR: OGROpen(tgr37183lpt.shp/0x8052b08) succeeded as ESRI Shapefile. OGRCT: Source: +proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs ERROR 6: Failed to initialize PROJ.4 with `+ellps=GRS80 +units=m +no_defs '. OGRCT: Target: +ellps=GRS80 +units=m +no_defs Failed to create coordinate transformation between the following coordinate systems. This may be because they are not transformable, or because projection services (PROJ.4 DLL/.so) could not be loaded. Segmentation fault }}} while it works like this: {{{ # no ESRI style g.proj -wf PROJCS[""Lambert Conformal Conic"",GEOGCS[""grs80"",DATUM[""North_American_Datum_1983"",SPHEROID[""Geodetic_Reference_System_1980"",6378137,298.257222101]],PRIMEM[""Greenwich"",0],UNIT[""degree"",0.0174532925199433]],PROJECTION[""Lambert_Conformal_Conic_2SP""],PARAMETER[""standard_parallel_1"",34.33333333333334],PARAMETER[""standard_parallel_2"",36.16666666666666],PARAMETER[""latitude_of_origin"",33.75],PARAMETER[""central_meridian"",-79],PARAMETER[""false_easting"",609601.22],PARAMETER[""false_northing"",0],UNIT[""Meter"",1]] ogr2ogr -s_srs epsg:4326 -t_srs ""`g.proj -wf`"" tiger_landmark_points_NCSPM.shp tgr37183lpt.shp OGR: Auto register /usr/local/lib/gdalplugins/ogr_GRASS.so using RegisterOGRGRASS. OGR: OGROpen(tgr37183lpt.shp/0x8052b58) succeeded as ESRI Shapefile. OGRCT: Source: +proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs OGRCT: Target: +proj=lcc +lat_1=34.33333333333334 +lat_2=36.16666666666666 +lat_0=33.75 +lon_0=-79 +x_0=609601.22 +y_0=0 +ellps=GRS80 +datum=NAD83 +units=m +no_defs Shape: 131 features read on layer 'tgr37183lpt'. }}} Apparently the ESRI morph fails in this case. The source SHAPE is attached. Best, Markus" defect closed normal 1.4.2 OGR_SRS svn-trunk normal fixed warmerdam