Re: [Jts-topo-suite-user] Issue with GeometryFactory.createMultiPoint(CoordinateSequence)
Brought to you by:
dr_jts
From: Martin D. <mtn...@gm...> - 2012-12-03 19:02:55
|
On Mon, Dec 3, 2012 at 4:29 AM, Felix Obermaier <ob...@iv...> wrote: > > Hi, what exactly is the issue? > The issue is that you will lose any dimension that is greater than Z > (index = 2). > Each point of the coordinate sequence will have a coordinate sequence of > dimension=3 (x, y, z) > > I've deliberately chosen PackedCoordinateSequence implementation since the > effect is appearant only in CoordinateSequence inplementations that may > handle more than x, y, z. > If I think about it, if you use a PackedCoordinateSequence with only two > dimensions (x, y), each of the point in the MultiPoint geometry will > probably have 3 dimensions, though Z will probably be > Coordinate.NullOrdinate, but I have not tested that (yet). > > Actually what should happen is that the MultiPoint geometry is created using the CoordinateSequence implementation defined for the given GeometryFactory. Thus each point will only have 2 dimensions, just like the source data. At least, that's how it's *supposed* to work. It would be great if you can test this! |