logo separator

[mkgmap-dev] Question reg. BoundaryUtil

From GerdP gpetermann_muenchen at hotmail.com on Fri Jan 20 16:16:45 GMT 2012

Hi WanMil,

I am hitting a problem in BoundaryUtil.splitToElements()

I create a boundary object with
Boundary boundary = new Boundary(nodeElem.area,

Now I want to verify it with
List<BoundaryElement> boundaryElements = boundary.getBoundaryElements();
if (boundaryElements.size() == 0)

My problem: I am hitting this assertion in BoundaryUtil.splitToElements():

assert bElements.get(0).isOuter() : log.threadTag()+" first element is not
outer. "+ bElements;

The area looks like this:
[Curve[0, (448156.0, 2442187.0), (448156.0, 2442187.0), D], Curve[1,
(448156.0, 2442187.0), (448177.0, 2442274.0), D], Curve[1, (448177.0,
2442274.0), (448176.4834437087, 2442270.543046358), U], Curve[1,
(448176.48344370874, 2442270.543046358), (448156.1621621622, 2442187.0), U]]

Can you tell me what's wrong with that? The area is split into one list of
coords, and that describes a way that is considered to be anti-clockwise:
[2442187/448156, 2442274/448177, 2442271/448176, 2442187/448156]

I am not sure where I should search the error. 


View this message in context: http://gis.638310.n2.nabble.com/Question-reg-BoundaryUtil-tp7208126p7208126.html
Sent from the Mkgmap Development mailing list archive at Nabble.com.

More information about the mkgmap-dev mailing list