Re: [Jts-topo-suite-user] mantain geometry dimensionality after buffer operation
Brought to you by:
dr_jts
From: Martin D. <mb...@re...> - 2010-06-01 17:56:42
|
You can use a CoordinateSequenceFilter to set the Z value of all coordinates in a Geometry. Just make a subclass implementing the interface which updates the Z ordinate. I think this is best done as a post-processing step, rather than including in the buffer op. Your use case requires a constant Z value to be set, but other use cases may require something completely different (e.g. compute Z by draping over a height surface). G. Allegri wrote: > Hello. > I'm doing various operations (buffer,etc.) on 2.5D polygons. The > initial polygon rings contain coordinates with z value. After the > operation the coordinates z value is set to NaN, so the returned > geometry type is 2D. Questions: > > 1 - is it possible to keep the original z value for the buffered > geometry? I suppose it should be forced inside the BufferOp chain... > 2 - how to set the z values of all the buffered geometry coordinates > to 0? It would be enough for me, because I simply need to return a > pseudo-3D geometry to Oracle (3003 gtype), but I don't care of the > actual z value (for now...) > > Thanks, > giovanni > > ------------------------------------------------------------------------------ > > _______________________________________________ > Jts-topo-suite-user mailing list > Jts...@li... > https://lists.sourceforge.net/lists/listinfo/jts-topo-suite-user > > -- Martin Davis Senior Technical Architect Refractions Research, Inc. (250) 383-3022 |