Opened 14 years ago
Closed 14 years ago
#3784 closed defect (fixed)
Error Reading GML3 geometry.
Reported by: | 19216801 | Owned by: | chaitanya |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | OGR_SF | Version: | svn-trunk |
Severity: | normal | Keywords: | pg postgres |
Cc: | warmerdam |
Description
Sometimes coordiantes like 712345.082 5432000.318 become 712345.082 5432 when using the postgres database driver. But everthing is correct when using the new pg_dump driver. The gml data is read by nas driver who used gml driver for converting geometrys.
Attachments (1)
Change History (6)
comment:1 by , 14 years ago
Cc: | added |
---|---|
Component: | default → OGR_SF |
Keywords: | pg postgres added |
Owner: | changed from | to
by , 14 years ago
Attachment: | nas_error.xml added |
---|
comment:2 by , 14 years ago
I testet a little bit more. ogr2ogr -f PostgreSQL PG:"dbname=postnas" nas_error.xml and ogr2ogr -lco WRITE_EWKT_GEOM=ON -f PGDump /vsistdout/ nas_error.xml produce wrong INSERT INTO "ax_gdaltest" ("wkb_geometry" , "gml_id", "identifier") VALUES (GeomFromEWKT('SRID=-1;POLYGON ((777565.082
6654,777559.272 6654000.893,777559.272 6654000.893,777556.941 6653978.029,777556.941 6653978.029,777557.145 6653977.99,777557.145 6653977.99,777558.978 6653977.624,777558.978 6653977.624,777562.825 6653976.856,777562.825 6653976.856,777565.082 6654))'::TEXT) , 'AbuDhabi', 'urn:adv:oid:AbuDhabi')
The HEX geometry from ogr2ogr -f PGDump /vsistdout/ nas_error.xml are ok.
comment:3 by , 14 years ago
Status: | new → assigned |
---|
follow-up: 5 comment:4 by , 14 years ago
Ralf, I can't reproduce on latest trunk. Is your trunk version recent enough ? I made a fix for a very very similar error that was introduced a few months ago in trunk and corrected in r20468 (7 weeks ago) : "OGRFormatDouble(): correct regression (trunk only) that would truncate '5591000.590' to '5591'"
comment:5 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Oh, yes r20468 fix it. Thanks a lot.
Ralf,
Could you provide a relatively simple input file and the ogr2ogr command you used to demonstrate this problem?
Chaitanya,
Once there is enough information, could you try to reproduce and fix it?