Hi Volker.

I am not sure whether this is what you asked for, or whether you had something else in mind.
In any case it may be handy: BG has an svg_mapper class for outputting geometries to svg format.
See http://www.boost.org/doc/libs/1_56_0/libs/geometry/doc/html/geometry/reference/io/svg/svg_mapper.html

I took your WKT, modified the example in the above page (see attached program), and produced the attached svg.

Apparently one of the two polygons has a self-intersection....

- m.

On 14/10/2014 11:41 πμ, Volker Schöch wrote:


Do you have any recommendations for an online WKT plotter, or some small utility to run on a Windows machine?


I found

-       http://dev.openlayers.org/sandbox/docs/examples/wkt.html

-       http://arthur-e.github.io/Wicket/

but they seem to be strictly oriented towards geographic coordinates which makes it quirky to use with the kinds of coordinates I have in my system (would require some scaling).


The WKT I want to plot is the following (just to give you an idea):

MULTIPOLYGON(((1371 932,1371 789,3171 789,3171 2589,3156 1669,3156 1650,2262 1200,1371 932)),((1371 1672,2262 2160,1341 2589,1371 2589,1371 1672)))


This multi-polygon does not satisfy is_valid and in fact runs into an "Overlay invalid input exception" when used as a parameter to difference, but at first glance I cannot see why. I’ll plot it on paper for this time, but if you have a suggestion for a tool it would be very much appreciated.




Volker Schöch | vschoech@think-cell.com
Senior Software Engineer

We are looking for C++ Developers: http://www.think-cell.com/career

think-cell Software GmbH http://www.think-cell.com
Chausseestr. 8/E phone / fax +49 30 666473-10 / -19
10115 Berlin, Germany US phone / fax +1 800 891 8091 / +1 212 504 3039
Amtsgericht Berlin-Charlottenburg, HRB 85229 | European Union VAT Id DE813474306
Directors: Dr. Markus Hannebauer, Dr. Arno Schödl

Geometry mailing list