-
Notifications
You must be signed in to change notification settings - Fork 448
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RFC: OverlayNG Z handling #626
Comments
Why not taking the average even in case of same-location ? I believe this was the intended semantic in GEOS. |
Well, maybe. Not clear to me that that is any better than just taking one of the input Zs (which presumably are considered authoritative). A reason for not doing this is because it requires quite a few more tests. |
In general, an intersection of 2D with 3D should produce a 3D result. Am going to follow the GEOS implementation of ElevationMatrix (although this is only a very rough approximation I think. Is it motivated by any concrete use case?) I will make this explicit in the design doc. |
Going back my 1st job at Facet where functional GIS environment (called Cause and Effect) had a "drape" function for this purpose. If you define a callback object for generate the z values, folks can provide their own, sampling from a dem if they have that available, you can supply a default that uses interpolation, or uses all z values weight by distance (allowing missing z values to be ignored). |
A: Based on difference javadoc: Computes a Geometry representing the closure of the point-set of the points contained in this Geometry that are not contained in the other Geometry:
The way I imagine it is that a geom2D has all values for Z. |
Yes, or else can just leave the Z values as NaN and leave it to user to populate them via a |
WIP branch is here: https://github.com/dr-jts/jts/tree/overlayng-z |
GEOS port ticket: https://trac.osgeo.org/geos/ticket/1063 |
In the GEOS port I've used |
Sounds fine to me. Generally JTS is moving towards using |
Yes in GEOS is actually more efficient as we only have a concrete Coordinate class, instances of which are passed by reference for CoordinateFilter |
Done by #645 |
In order to provide enhanced functionality, and to match functionality already in GEOS, OverlayNG needs to compute Z values for results when one or both of the input geometries are 3D.
Motivating Use Cases
NON Use Cases
These cases are handled, but only with "best-effort" semantics
Assumptions
Semantics
Questions
difference(geom2D, geom3D)
be a geom2D?The text was updated successfully, but these errors were encountered: