-
Notifications
You must be signed in to change notification settings - Fork 6
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
Interpolation ignores ctype #238
Comments
@mpu-creare Have I thought this through correctly? And if so, what is the priority on this to you? Is it properly labeled a bug, or is it more of an enhancement to you? It goes right along with handling units and crs conversions -- does it belong the 1.0.0 release as a "feature complete" issue? |
I'd label it as a bug... but it's probably more of a feature. You are correct, we haven't paid attention to it since we don't have a use case yet. We will very quickly begin having use-cases for |
Maybe I can fix the "bug" aspect by adding a check when intersecting (maybe another when interpolating) than just raises an exception, and we can make a separate issue for the feature. That could cause some issues pretty quickly because we default to 'midpoint' when we can (uniform coordinates or monotonic coordinates) and default to 'point' when we cannot (unordered arrays, singletons). I expect datasource native coordinates are commonly 'midpoint', and you will get an error if you evaluate a single point unless you specify |
I think we should address this... but I think this should be driven by an application otherwise we'll get it wrong. We have another project coming in that uses point data heavily, so we can take care of it there. |
@mpu-creare I still want to address the bug aspect of this, even if we don't implement it. |
We are going to remove the ctype/segments from Coordinates, so intersect will not need to handle that. The interpolation will need to be updated to handle the new DataSource segments. See #357. |
@jmilloy should this be closed since it's no longer relevant? I think we need a new more specific issue. |
Yeah, I started to rewrite the issue, but really we need a feature issue, because the interpolation doesn't handle the datasource coordinate boundaries, but we (appropriately) throw a We should be able to do something like this, and get diferent results:
|
See #422 422 |
Description
The ctype ('left', 'right', 'midpoint', or 'point') for coordinates is not used anywhere.
Steps to Reproduce
Expected Behavior
o_left
ando_right
should be different, because they represent different locations in the data source.Observed Behavior
o_left
ando_right
are the same.Additional Notes
ctype
before intersecting or interpolating, the same way that we checkcrs
. Thetransform
method demonstrates that a similaras_ctype
method could be easy to implement and integrate.The text was updated successfully, but these errors were encountered: