-
Notifications
You must be signed in to change notification settings - Fork 371
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
GEOSClipByRect: preserve Z coordinate #1095
Conversation
29ee395
to
e083ae6
Compare
e083ae6
to
fdee5a7
Compare
For [multi]linestrings/linerings, Z coordinate is interpolated from that of the nearest existing vertices. For [multi]polygons, Z coordinate of points created on the boundary is interpolated as above. For interior points, however, it is populated using the ElevationModel.
fdee5a7
to
a73946f
Compare
@dbaston does this look okay to merge now? |
Do you think it makes sense to modify the tests to remove the expected value and just check that the result matches
|
I don't know enough about the GEOS project to have a strong opinion on this. However, currently, several existing tests fail this comparison, see below. I'd say that fixing those is out of scope of this PR. EXP: POINT EMPTY EXP: POINT (15 10) EXP: LINESTRING EMPTY EXP: MULTILINESTRING ((10 10, 15 10), (10 10, 10 15)) EXP: MULTILINESTRING ((20 10, 20 20), (10 20, 20 20), (10 10, 20 10), (10 10, 10 20)) EXP: MULTILINESTRING ((20 10, 20 20), (10 20, 20 20), (10 10, 20 10), (10 10, 10 20)) |
Odd, they are passing for me after normalization. Either way, it can be beyond the scope of this PR. |
I thought the plan was to update all tests, including those still using |
Looking more closely at the examples you pointed out, I can see that the semantics are different from |
For [multi]linestrings/linerings, Z coordinate is interpolated from that of the nearest existing vertices.
For [multi]polygons, Z coordinate of points created on the boundary is interpolated as above. For interior points, however, it is populated using the ElevationModel.