Changes between Initial Version and Version 1 of Ticket #4910, comment 4
- Timestamp:
- 07/30/21 10:09:04 (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #4910, comment 4
initial v1 2 2 {{{ 3 3 WITH g(geom) AS ( 4 SELECT 'POLYGON(( -804030.52 -988525.62,-804026.137267668 -988528.6887703099,-804026.14 -988528.6900000001,-804030.52 -988525.62))'::geometry4 SELECT 'POLYGON((0 0, 10 0, 10 0.000001, 0 0.000001, 0 0))'::geometry 5 5 ) 6 6 SELECT 7 8 ST_AsGML(3, geom, 2, 0, 'gml', NULL),9 5514)7 ST_GeomFromGML( 8 ST_AsGML(3, geom, 2, 0, 'gml', NULL) 9 ,5514) 10 10 FROM g; 11 11 }}} 12 The ST_AsGML call is rounding off the coordinates and creating an invalid collapsed polygon. The problem can be averted by not rounding coordinates.