Changes between Version 1 and Version 2 of Ticket #4910, comment 4


Ignore:
Timestamp:
07/30/21 10:10:02 (3 years ago)
Author:
pramsey

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #4910, comment 4

    v1 v2  
    1010FROM g;
    1111}}}
    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.
     12The ST_AsGML call is rounding off the coordinates and creating an invalid collapsed polygon. The problem can be averted by not rounding coordinates so hard, for example:
     13{{{
     14
     15WITH g(geom) AS (
     16   SELECT 'POLYGON((0 0, 10 0, 10 0.000001, 0 0.000001, 0 0))'::geometry
     17)
     18SELECT
     19ST_GeomFromGML(
     20      ST_AsGML(3, geom, 14, 0, 'gml', NULL)
     21      ,5514)
     22FROM g;
     23}}}