Hey guys,
recently i created a multilinestring consisting of many linestrings. Than i
created a bufferdbuiler with round endcapstyle. After that i created a Geometry
with:
builder.buffer(mp, 0.5). As i wanted to get the area of the new geometry, this
error occured:
Error:
Exception in thread "main" com.vividsolutions.jts.geom.TopologyException: depth
mismatch at (4.5, 0.0, NaN)
at
com.vividsolutions.jts.geomgraph.DirectedEdgeStar.computeDepths(DirectedEdgeStar.java:372)
at
com.vividsolutions.jts.operation.buffer.BufferSubgraph.computeNodeDepth(BufferSubgraph.java:237)
at
com.vividsolutions.jts.operation.buffer.BufferSubgraph.computeDepths(BufferSubgraph.java:202)
at
com.vividsolutions.jts.operation.buffer.BufferSubgraph.computeDepth(BufferSubgraph.java:179)
at
com.vividsolutions.jts.operation.buffer.BufferBuilder.buildSubgraphs(BufferBuilder.java:291)
at
com.vividsolutions.jts.operation.buffer.BufferBuilder.buffer(BufferBuilder.java:156)
at
com.lschulte.business.distribution.tree.TreeDistribution.main(TreeDistribution.java:96)
Code:
MultiLineString mp = f.createMultiLineString(lines); //the elements in lines
are normal linestring(e.g. from (0.0/0.0) to (5.0/0.0) )
BufferBuilder builder = new BufferBuilder(new BufferParameters(100, 1));
Geometry bufferedArea = builder.buffer(mp, 0.5);
System.out.println(buffer.getArea());
The error occures only the endcapstyle is round, if i am usin the flat style
everythin goes right.
Do you know what to do?
Cheers,
Lukas
________________________________________
zeb/information.technology gmbh & co. kg
Hammer Straße 165
48153 Münster
Phone
+4925197128-0
Fax
+4925197128-101
E-Mail
[email protected]<mailto:[email protected]>
WWW
http://www.zeb.de
Amtsgericht Münster | HRA 5127
Geschäftsführer: Martin Danne | Jürgen Hofner | Andreas Schick
Diese E-Mail und alle angefügten Dateien sind vertraulich und ausschließlich
für den Adressaten bestimmt. Sollten Sie nicht der bezeichnete Adressat sein,
informieren Sie bitte umgehend den Absender. Die Inhalte dieser E-Mail dürfen
in diesem Fall nicht an Dritte weitergegeben, für keine Zwecke genutzt und in
keiner Form gespeichert oder kopiert werden. Im Fall technischer Probleme mit
dieser E-Mail wenden Sie sich bitte an den Absender.
This e-mail and any attachments are confidential and may also be privileged. If
you are not the named recipient, please notify the sender immediately and do
not disclose the contents to another person, use it for any purpose, or store
or copy the information in any medium. In the event of any technical difficulty
with this e-mail, please contact the sender.
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT
organizations don't have a clear picture of how application performance
affects their revenue. With AppDynamics, you get 100% visibility into your
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Jts-topo-suite-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jts-topo-suite-user