Skip to content
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

do_offset_z in InPlaceReprojection #142

Closed
pramsey opened this issue Jun 24, 2013 · 3 comments
Closed

do_offset_z in InPlaceReprojection #142

pramsey opened this issue Jun 24, 2013 · 3 comments

Comments

@pramsey
Copy link
Contributor

pramsey commented Jun 24, 2013

It's not clear what do_offset_z does in InPlaceReprojection

https://github.com/PDAL/PDAL/blob/master/src/filters/InPlaceReprojection.cpp#L216

Contextually, I'd expect it to alter the offset value of the Z dimension, but the code seems to pass a pointer to the x offset value into the expected slot.

@hobu
Copy link
Member

hobu commented Jun 24, 2013

It should probably be renamed to "do_you_really_want_to_reproject_z_values_of_bboxen"

The z's for bboxes don't always reproject (infinity, or -0/+0, etc). This switch was in there so if you really did want to reproject the whole bbox, you could, but it defaults to just reprojecting x/y.

On Jun 24, 2013, at 2:54 PM, Paul Ramsey notifications@github.com wrote:

It's not clear what do_offset_z does in InPlaceReprojection

https://github.com/PDAL/PDAL/blob/master/src/filters/InPlaceReprojection.cpp#L216

Contextually, I'd expect it to alter the offset value of the Z dimension, but the code seems to pass a pointer to the x offset value into the expected slot.


Reply to this email directly or view it on GitHub.

@pramsey
Copy link
Contributor Author

pramsey commented Jun 24, 2013

Does the code actually do it though? It pulls a reference to &offset_x (not z) and passes that into the reprojection.

@hobu
Copy link
Member

hobu commented Jun 24, 2013

Indeed. That's stinky.

On Jun 24, 2013, at 3:26 PM, Paul Ramsey notifications@github.com wrote:

Does the code actually do it though? It pulls a reference to &offset_x (not z) and passes that into the reprojection.


Reply to this email directly or view it on GitHub.

@hobu hobu closed this as completed Jul 3, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants