Yes, this feature is exactly intended to allow extracting single polygons from the Polygonizer, if that is what the input linework forms. In fact it's more general, since it supports extracting MultiPolygons as well (including ones with nested polygons). As you already noticed, this was painful to do after-the-fact using the original Polygonizer.
Glad it works for you! Further testing would be much appreciated. On Thu, May 28, 2015 at 2:12 PM, Jan Tosovsky <[email protected]> wrote: > Dear Martin, > > > > sure, it compiles correctly now, thanks for quick fix. > > > > Do I understand correctly this change allows to get single polygons > without further filtering of identical geometries? Either via Daniel’s code > or my PolygonizerEx? > > > > I’ve tried a newly introduced parameter in my simple test case in the > original post: > > Polygonizer polygonizer = new Polygonizer(true); > > > > And I am indeed getting that desired output! Wow! > > > > More complex cases I’ll test later next week. > > > > Thanks a lot for incorporating this feature to the core! > > > > Regards, Jan > > > > > > *From:* Martin Davis [mailto:[email protected]] > *Sent:* Wednesday, May 27, 2015 11:01 PM > *To:* Jan Tosovsky > *Cc:* [email protected] > *Subject:* Re: [Jts-topo-suite-user] Polygonizer issue > > > > Fixed. Can you try again? > > > > On Wed, May 27, 2015 at 1:52 PM, Martin Davis <[email protected]> wrote: > > Ah, my bad - the dependency on FunctionUtil should not be in the main jts > module. I'll fix that now. Thanks for finding this! > > > > On Wed, May 27, 2015 at 1:16 PM, Jan Tosovsky <[email protected]> wrote: > > It seems to be a quite substantial rewrite, thanks for it! > > I’ve tried to build it from trunk (ant executed in the root folder), but I > am getting following errors: > > > > [javac] > D:\Java\components\jts-trunk\jts\java\src\com\vividsolutions\jts\nod > > ing\SegmentStringUtil.java:96: error: cannot find symbol > > [javac] LineString line = > FunctionsUtil.getFactoryOrDefault(null).crea > > teLineString(ss.getCoordinates()); > > [javac] ^ > > [javac] symbol: variable FunctionsUtil > > [javac] location: class SegmentStringUtil > > [javac] > > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Jts-topo-suite-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/jts-topo-suite-user > >
------------------------------------------------------------------------------
_______________________________________________ Jts-topo-suite-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jts-topo-suite-user
