[pdal] pdal pipeline giving garbage in postgres
Andrew Bell
andrew.bell.ia at gmail.com
Mon Sep 28 05:19:19 PDT 2015
On Mon, Sep 28, 2015 at 6:02 AM, Tom van Tilburg <tom.van.tilburg at gmail.com>
wrote:
> I'm trying to get a las file in postgres with pdal, but end up with
> totally wrong data as a result. Not sure where the problem lies, I did the
> same procedure a year ago without problems, but in the meantime both pdal
> and pgpointcloud have been updated. Hope someone can either confirm this or
> point out the mistake I made
> (posting this at the pgpointcloud list as well)
>
> Here's the setting:
> * pdal 1.0.1 (git-version: Release)
> * pgpointcloud 1.1.0
> * running on ubuntu linux
> * small las file showing correct output in lastools
>
> This is what I do:
> - pdal info test.las --pgpointcloudschema schema.xml
> - load the schema into the table pointcloud_formats
> - pdal pipeline pipeline.xml
> - SELECT PC_Summary(pa) FROM pointclouds.test
>
> The resulting x and y values are totally out of bounds:
> {"pcid":5, "npts":599, "srid":28992,
> "compr":"none","dims":[{"pos":0,"name":"X","size":8,"type":"double","stats":{"min":1.39067e-309,"max":2.78134e-309,"avg":2.62811e-309}},{"pos":1,"name":"Y","size":8,"type":"double","stats":{"min":2.44838e+77,"max":2.448
> (...)"
>
I'm don't know what's wrong, but I also don't understand your process.
PDAL will create the appropriate schema for you when it writes the data.
Is there some reason that you're trying to write the schema by hand? Do
you get different behavior if you simply run the pipeline into an empty
database (use a different pcid)?
--
Andrew Bell
andrew.bell.ia at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/pdal/attachments/20150928/9c8e7b60/attachment.html>
More information about the pdal
mailing list