I'll read closer. Indeed, I see EWKBToGeometry is already there. However, I'm pretty sure that feature *creation* still uses WKT, which would explain the drift in my round-trip case. So, a different patch :) that should not require any guidance about where's and how's. Thanks Frank, P.
On Wed, Jun 29, 2011 at 1:04 PM, Frank Warmerdam <warmer...@pobox.com> wrote: > On 11-06-29 03:56 PM, Paul Ramsey wrote: >> >> Hi all (Evan!): >> >> In my FGDB project, the participants compared a file I generated with >> FGDB>PostGIS>FGDB and noticed that the coordinates had drifted a >> little in some cases. Turns out, the PostGIS OGR driver using WKT as >> the transit format, so that's allowing occasional coordinate drift. >> I'd like to write up an EWKB encoder for OGR geometries (or maybe add >> an option to the current encoder to generate EWKB?). Could you >> recommend whether I should do another big utility method like the >> shapeBuffer code, or a method on the OGRGeometry? whether you prefer >> an alteration to existing WKB writer or a separate code path? >> >> I want to avoid what happened last time, having to re-jig the whole >> thing at the end. > > Paul, > > I think, perhaps, that in trunk and perhaps 1.8.0 EWKB is already used. > I based this partly on the following changeset. I imagine Even will fill > in the details. > > http://trac.osgeo.org/gdal/changeset/20697/trunk/gdal/ogr/ogrsf_frmts/pg > > Best regards, > -- > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up | Frank Warmerdam, > warmer...@pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | Geospatial Programmer for Rent > > _______________________________________________ > gdal-dev mailing list > gdal-dev@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/gdal-dev > _______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev