Skip to content

Instantly share code, notes, and snippets.

@hobu
Created December 2, 2016 18:49
Show Gist options
  • Save hobu/bf042fb6c2f1ad5af28ace3c8d0d3e72 to your computer and use it in GitHub Desktop.
Save hobu/bf042fb6c2f1ad5af28ace3c8d0d3e72 to your computer and use it in GitHub Desktop.
#!/bin/bash
read -d '' pipeline <<"EOF"
{
"pipeline":[
{
"filename" : "/data/test/data/las/1.2-with-color.las",
"type" : "readers.las"
},
"/data/bell_test.laz"
]
}
EOF
echo $pipeline
container=$(docker run -it -d -v `pwd`:/data pdal/pdal:latest)
echo "conainerid: " $container
echo $pipeline | docker exec -i $container pdal pipeline -i STDIN
echo $pipeline | docker exec -i $container pdal pipeline -i STDIN --writers.las.filename=/data/hobu_test.laz
echo $pipeline | docker exec -i $container pdal pipeline -i STDIN --readers.las.filename=/data/test/data/las/1.2-with-color-clipped.las --writers.las.filename=/data/hobu_override.las
docker kill $container
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment