Re: [gdal-dev] Possibility to add a MorphFromESRI-like feature to gdalwarp ?

2012-06-29 Thread Etienne Tourigny
It's a shame that it's not done automatically, but it's hard to differentiate ESRI WKT definitions from OGC ones without searching all parameters for known ESRI keywords. However, if the WKT is inside a .prj file (as part of a shapefile), I think the OGR Shapefile driver does do the morphFromESRI

Re: [gdal-dev] Possibility to add a MorphFromESRI-like feature to gdalwarp ?

2012-06-29 Thread Matthieu Rigal
Brilliant ! I am sorry, I had never seen that possibility. But it works perfectly. Thanks again Etienne, Matthieu On Fri, Jun 29, 2012 at 3:30 PM, Etienne Tourigny wrote: > As referenced in SetFromUserInput [1] you can force a morphFromESRI by > prefixing a WKT definition (file or WKT string) w

Re: [gdal-dev] Possibility to add a MorphFromESRI-like feature to gdalwarp ?

2012-06-29 Thread Etienne Tourigny
As referenced in SetFromUserInput [1] you can force a morphFromESRI by prefixing a WKT definition (file or WKT string) with "ESRI::" I'm pretty sure that gdalwarp uses SetFromUserInput to get the SRS definition. [1] http://www.gdal.org/ogr/classOGRSpatialReference.html#aec3c6a49533fe457ddc763d699

Re: [gdal-dev] Motion to adopt the RFC 39

2012-06-29 Thread Daniel Morissette
On 12-06-27 2:40 PM, Ari Jolma wrote: Dear GDAL PSC, Some time ago I and Even spent some time to work on a patch which would initially implement the RFC OGR Layer Algebra. The RFC proposes new API for GDAL 2.0. The RFC is at http://trac.osgeo.org/gdal/wiki/rfc39_ogr_layer_algebra We believe the

[gdal-dev] Using OGR to modify shapefile field values

2012-06-29 Thread Robb K. Wright
1) I am looking for a way to use ogr command-line utilities to modify the contents of fields within a shapefile. It isn’t a problem to modify one step at a time/put in a loop where each change creates a new output – that is manageable – but I’m missing the SQL statement to say “if FIELDX=’abc

[gdal-dev] Possibility to add a MorphFromESRI-like feature to gdalwarp ?

2012-06-29 Thread Matthieu Rigal
Hi guys, When asking gdalwarp to warp from a WKT projection generated by ESRI, it will fail when attempting to convert it to Proj4 (ex: Lambert_Conform_Conic projections). Wouldn't it be possible to integrate some check/transformation like the one done in Python here : http://nullege.com/codes/se