Opened 13 years ago
Closed 13 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: | |
Cc: |
Description
To prevent coordinate drift, writing using binary should be the preferred method.
Attachments (1)
Change History (3)
by , 13 years ago
Attachment: | pgbin.patch added |
---|
comment:1 by , 13 years ago
Owner: | changed from | to
---|
comment:2 by , 13 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Applied with a small change to avoid a segfault when inserting a feature with a null geometry (caught by running ogr_pg.py 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)