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

Inconsistency with the first value for position in pointcloud schema #115

Open
mhabets opened this issue Aug 4, 2016 · 2 comments
Open

Comments

@mhabets
Copy link

mhabets commented Aug 4, 2016

In https://raw.githubusercontent.com/PDAL/PDAL/0.9.8/schemas/LAS.xsd (referenced by http://pointcloud.org/schemas/PC/1.1), it is stated that the position tag is "the dimension's position in the block of point data (counting from 0)".

When I put 0 in my point cloud schema for the position of my first dimension, the insertion into pointcloud_formats fails. I get this first message which makes no sense to me:

WARNING:  schema dimension states position "0", but number of XML dimensions is "17"

directly followed by:

ERROR:  new row for relation "pointcloud_formats" violates check constraint "pointcloud_formats_schema_check"
@Remi-C
Copy link
Contributor

Remi-C commented Aug 4, 2016

Hey @mhabets,
it seems the doc is misleading,
I always started dim by the dim 1.
Can you confirm starting by 1 works for you, so I can update the doc and close the ticket?
Cheers,
Rémi-C

@mhabets
Copy link
Author

mhabets commented Aug 4, 2016

Hi @Remi-C,
Yes it works fine with 1 as the first position.
At least the warning message should be clearer, shouldn't it?
See you ;-)

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