[postgis-users] wrong ST_Polygonize

Ralf Suhr Ralf.Suhr at itc-halle.de
Tue Jul 12 06:38:57 PDT 2011


Hello,

your last two linestrings did not intersect. 
st_snaptogrid(geom, 0.000001) can fix it or to preserve topologie, you can 
close the gap with a linestring from st_shortestLine().

Gr
Ralf

Am Dienstag 12 Juli 2011, 14:22:02 schrieb karpi.lists at email.cz:
> Hello,
> i was falled into troubles with ST_Polygonize, there is example:
> 
> three linestrings:
> 010200002011080000020000002C35CC432E0325C1E84311A7272930C12B79E346610325C1E
> E78E89A372930C1
> 
> 01020000201108000015000000CBA455B5270325C1798A4C671D2930C10C37E255270325C1D
> DFC01F41D2930C115767D09270325C1D3AA98831E2930C125297FD0260325C19E976B151F29
> 30C1E6CC28AB260325C1F734D3A81F2930C12B48A599260325C19C23263D202930C1A3BA089
> C260325C1E3F5B9D1202930C1BC6550B2260325C195F3E365212930C1CAAF62DC260325C117
> DEF9F8212930C171410F1A270325C103B4528A222930C12F3D0F6B270325C15C73471923293
> 0C1CD9005CF270325C175D933A5232930C14B607F45280325C1AD1F772D242930C1DD89F4CD
> 280325C129B474B1242930C15842C867290325C1BEED9430252930C157C949122A0325C136B
> A45AA252930C15534B5CC2A0325C12246FB1D262930C1CB4F34962B0325C1879D308B262930
> C14C95DF6D2C0325C1A34468F1262930C18F35BF522D0325C119C82C50272930C12C35CC432
> E0325C1E84311A7272930C1
> 
> 01020000201108000002000000F2E13C88810325C1158B099BD32830C1CBA455B5270325C17
> 68A4C671D2930C1
> 
> They are touched in their end points:
> 010100002011080000CBA455B5270325C1798A4C671D2930C1
> 0101000020110800002C35CC432E0325C1E84311A7272930C1
> 
> ST_Touches is correct
> true
> ST_Relate is correct:
> FF1F00102
> 
> So.. why they are not polygonized together ? Why is polygonized only the
> multipointed linestring without two short adjacent lines? Can be this
> workarounded in some way (but if I want to avoid to change entities by
> snapping) ?
> 
>                                                                            
>                                  thanks for response, pk
> 
> 
> 
> 
> 
> 
> 
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users




More information about the postgis-users mailing list