Okay, my fault, I should have tested using the JTS TestBuilder myself. Turns out it's just a problem with projections and I guess not strictly speaking JTS-related. I'm doing my spatial operations on some data which is in WGS84 and I thinkg doing linear interpolation between individual coordinates is just not possible. I did not realize this was a problem when working with small polygons, but with country-boundaries this becomes an issue. I guess it would work with Mercator projection.
Thank you! On Tue, 29 Jul 2014 09:26:30 -0700 Martin Davis <[email protected]> wrote: > When I run this computation in the JTS TestBuilder, I get exactly the > output in c.wkt, and it looks fine to me (see attached image). > > Perhaps your viewer code is not displaying it correctly for some > reason? > > [image: Inline image 1] > > > On Mon, Jul 28, 2014 at 5:39 AM, Sebastian Kürten < > [email protected]> wrote: > > > Hi, > > > > I'm performing some intersection operations with polygons and > > although I'm aware of the inherent limitations concerning the > > precision of the results due to limited precision floating point > > arithmetic, I find some of the results a little weird. Some results > > I get appear to be quite far off, is this within the range of > > expected error? See the attached files: c.wkt is the intersection > > of a.wkt and b.wkt. The image shows all three of them. > > > > ------------------------------------------------------------------------------ Infragistics Professional Build stunning WinForms apps today! Reboot your WinForms applications with our WinForms controls. Build a bridge from your legacy apps to the future. http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk _______________________________________________ Jts-topo-suite-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jts-topo-suite-user
