Opened 10 years ago

Closed 10 years ago

#4138 closed enhancement (fixed)

CreateViaInsert and Set in PostGIS using EWKB

Reported by: pramsey Owned by: Even Rouault
Priority: normal Milestone: 1.9.0
Component: OGR_SF Version: svn-trunk
Severity: normal Keywords:


To prevent coordinate drift, writing using binary should be the preferred method.

Attachments (1)

pgbin.patch (5.5 KB) - added by pramsey 10 years ago.

Download all attachments as: .zip

Change History (3)

Changed 10 years ago by pramsey

Attachment: pgbin.patch added

comment:1 Changed 10 years ago by pramsey

Owner: changed from warmerdam to Even Rouault

comment:2 Changed 10 years ago by Even Rouault

Resolution: fixed
Status: newclosed

Applied with a small change to avoid a segfault when inserting a feature with a null geometry (caught by running from the autotest suite, which I advertize to run when doing changes). Minor change also : the return of GeometryToHex?() cannot be NULL, so useless to test it.

r22620 /trunk/gdal/ogr/ogrsf_frmts/pg/ogrpgtablelayer.cpp: PG: modify CreateFeatureViaInsert?() and SetFeature?() to write geometries as EWKB by default to avoid precision loss (unless PG_USE_TEXT configuration option is set to YES) (patch by Paul Ramsey, #4138)

Note: See TracTickets for help on using tickets.