Hi Brian,
I have the following connecting lines. When i used Polygonizer, it did
not give me a polygon. In these LineStrings, i have two linestrings
where one partly overlaps the other. Is that the reason?
Yes it is,
Sometimes, JTS assumes that input is valid or in this case "noded", to
avoid computation overhead.
If you use UnaryUnionOp to union your lines before polygonizing, you'll
get what you want,
Michaël
[LINESTRING (185.26576206006285 94.73308783194753, 185.45157769569386
94.73308783194753), LINESTRING (185.26576206006285 94.73308783194753,
185.26576206006285 101.01584130877598), LINESTRING (211.1801776262006
101.01584130877598, 185.26576206006285 101.01584130877598), LINESTRING
(211.1801776262006 101.01584130877598, 211.1801776262006
100.56901984016783), LINESTRING (211.1801776262006 84.34750154116995,
211.1801776262006 100.56901984016783), LINESTRING (211.1801776262006
84.34750154116995, 210.97024546431737 84.34750154116995), LINESTRING
(210.97024546431737 76.46922803176601, 210.97024546431737
84.34750154116995), LINESTRING (210.97024546431737 76.46922803176601,
202.55323595905108 76.46922803176601), LINESTRING (202.55323595905108
68.09657662025754, 202.55323595905108 76.46922803176601), LINESTRING
(202.55323595905108 68.09657662025754, 201.84012309667844
68.09657662025754), LINESTRING (194.4714241554205 68.09657662025754,
201.84012309667844 68.09657662025754), LINESTRING (194.4714241554205
68.09657662025754, 194.4714241554205 68.27666374339015), LINESTRING
(194.4714241554205 72.34215282097878, 194.4714241554205
68.27666374339015), LINESTRING (194.4714241554205 72.34215282097878,
194.5707825683434 72.34215282097878), LINESTRING (177.5403371732375
72.34215282097878, 194.5707825683434 72.34215282097878), LINESTRING
(177.5403371732375 72.34215282097878, 177.5403371732375
72.50412310667647), LINESTRING (176.98349757052625 72.50412310667647,
177.5403371732375 72.50412310667647), LINESTRING (176.98349757052625
72.50412310667647, 176.98349757052625 91.33184966982856), LINESTRING
(176.98349757052625 94.73308783194753, 176.98349757052625
91.33184966982856), LINESTRING (176.98349757052625 94.73308783194753,
185.45157769569386 94.73308783194753)]
Cheers, Brain.
------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing
conversations that shape the rapidly evolving mobile landscape. Sign up now.
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
Jts-topo-suite-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jts-topo-suite-user
------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing
conversations that shape the rapidly evolving mobile landscape. Sign up now.
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
Jts-topo-suite-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jts-topo-suite-user