No, what I meant was post a test case written in Java which calls the JTS LineMerger class with an input which produces the unexpected behaviour.

If this is embedded in some WPS server there's not much I can do to debug it. I can say one thing - it seems *very* unlikely that the new lines which appear in the final image are created by the LineMerger algorithm. I have no idea where they might come from.

Theodor Foerster wrote:
I uploaded 2 pictures of the original
(http://geoserver.itc.nl:8080/wps/original.png) and the resulting merged
lines (http://geoserver.itc.nl:8080/wps/mergedLines.png).

I am not sure, what you mean by testcase. I could post a WPS request and
the URL to the process and you could play around with it. Is it that,
what you mean?

Thanks for your efforts.

        Theodor

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Martin Davis
Sent: Thursday, September 25, 2008 6:41 PM
To: JTS Topology Suite Development
Subject: Re: [jts-devel] LineMerger question/problem

That doesn't seem right. If a node truly has degree 1, LineMerger should not snap that node to any other node. LineMerger does not move nodes, it simply joins them if they are coincident.

A picture might help to shed some light on the problem - as would a simple test case.

Theodor Foerster wrote:
Hi,
I am using LineMerger, to remove pseudo nodes from a
waterpipe network.
My intention is to remove any nodes (degree = 2) and merge the two affected linestrings. I thought that LineMerger would be the right tool to use, but somewhat the LineMerger also closes lines, thus nodes, which have a degree of 1 are now connected to other
nodes with degree of 1.
Thereby the cul-de-sacs are removed completely. So is this
behaviour
intended, when adding a complete network to the LineMerger, that it also connects the cul-de-sacs of the network?

Help is highly appreciated.

Best regards
        Theodor

ITC, Enschede
Department of Geo Information Processing PO. Box 6 7500 AA
Enschede
the Netherlands International Institute for Geo-Information Science and Earth Observation (ITC) Chamber of Commerce: 410 27 560

E-mail disclaimer
The information in this e-mail, including any attachments,
is intended for the addressee only. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or action in relation to the content of this information is strictly prohibited. If you have received this e-mail by mistake, please delete the message and any attachment and inform the sender by return e-mail. ITC accepts no liability for any error or omission in the message content or for damage of any kind that may arise as a result of e-mail transmission.
_______________________________________________
jts-devel mailing list
[email protected]
http://lists.refractions.net/mailman/listinfo/jts-devel

--
Martin Davis
Senior Technical Architect
Refractions Research, Inc.
(250) 383-3022

_______________________________________________
jts-devel mailing list
[email protected]
http://lists.refractions.net/mailman/listinfo/jts-devel

International Institute for Geo-Information Science and Earth Observation (ITC)
Chamber of Commerce: 410 27 560

E-mail disclaimer
The information in this e-mail, including any attachments, is intended for the 
addressee only. If you are not the intended recipient, you are hereby notified 
that any disclosure, copying, distribution or action in relation to the content 
of this information is strictly prohibited. If you have received this e-mail by 
mistake, please delete the message and any attachment and inform the sender by 
return e-mail. ITC accepts no liability for any error or omission in the 
message content or for damage of any kind that may arise as a result of e-mail 
transmission.
_______________________________________________
jts-devel mailing list
[email protected]
http://lists.refractions.net/mailman/listinfo/jts-devel


--
Martin Davis
Senior Technical Architect
Refractions Research, Inc.
(250) 383-3022

_______________________________________________
jts-devel mailing list
[email protected]
http://lists.refractions.net/mailman/listinfo/jts-devel

Reply via email to