[gdal-dev] OGR2OGR PGeo reprojection with -sql

Smith, Michael D ERDC-CRREL-NH michael.smith at usace.army.mil
Mon Apr 11 12:21:55 EDT 2011


All,

Using GDAL  trunk, I can read and reproject a personal geodatabase using the
internal projection as the source projection. However, when I use ­sql (as I
need to add a new field to the output), the source projection can no longer
be read.

C:\temp>ogr2ogr -t_srs EPSG:4326 -f "ESRI Shapefile" temp1.shp
CL_01_LDS_20101201_A.mdb CL_01_LDS_20101201_A_Contour_Smoothed
Warning 6: Normalized/laundered field name: 'Shape_Length' to 'Shape_Leng'

C:\temp>ogr2ogr -t_srs EPSG:4326 -f "ESRI Shapefile" temp1.shp
CL_01_LDS_20101201_A.mdb  -sql "select * from
CL_01_LDS_20101201_A_Contour_Smoothed"
Can't transform coordinates, source layer has no coordinate system.  Use
-s_srs to set one.

Mike


-- 
Michael Smith
Remote Sensing/GIS Center
US Army Corps of Engineers



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20110411/284f501c/attachment.html


More information about the gdal-dev mailing list