<div dir="ltr">I've got a follow-up question with this.<div><br></div><div>I've got a pipeline XML file to generate the output TIF, and set the input and output filenames on the command line like so:</div><div><br></div><div>pdal pipeline -i density.xml --writers.p2g.filename=aal_232_9752_class --readers.las.filename=aal_232_9752_class.las<br></div><div><br></div><div>Is there a way to set the output srs at the same time?  I don't want to reproject it, just assign it.  For example, something like this (although this didn't work):</div><div><br></div><div>pdal pipeline -i density.xml --writers.p2g.filename=aal_232_9752_class --readers.las.filename=aal_232_9752_class.las -v4 --writers.p2g.out_srs=EPSG:32750<br></div><div><br></div><div><br></div><div>Thanks for all the help so far,</div><div><br></div><div>matt</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr">Matthew Hanson<div>Applied GeoSolutions</div><div>(603) 659-3363 x91</div><div><a href="http://appliedgeosolutions.com" target="_blank">http://appliedgeosolutions.com</a></div><div><a href="mailto:mhanson@appliedgeosolutions.com" target="_blank">mhanson@appliedgeosolutions.com</a></div><div><br></div></div></div></div>
<br><div class="gmail_quote">On Mon, Feb 9, 2015 at 11:48 AM, Matthew Hanson <span dir="ltr"><<a href="mailto:mhanson@appliedgeosolutions.com" target="_blank">mhanson@appliedgeosolutions.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thanks to you both, this is indeed helpful</div><div class="gmail_extra"><span class=""><br clear="all"><div><div><div dir="ltr">Matthew Hanson<div>Applied GeoSolutions</div><div><a href="tel:%28603%29%20659-3363%20x91" value="+16036593363" target="_blank">(603) 659-3363 x91</a></div><div><a href="http://appliedgeosolutions.com" target="_blank">http://appliedgeosolutions.com</a></div><div><a href="mailto:mhanson@appliedgeosolutions.com" target="_blank">mhanson@appliedgeosolutions.com</a></div><div><br></div></div></div></div>
<br></span><div><div class="h5"><div class="gmail_quote">On Sun, Feb 8, 2015 at 10:55 AM, Howard Butler <span dir="ltr"><<a href="mailto:howard@hobu.co" target="_blank">howard@hobu.co</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span><br>
> On Feb 6, 2015, at 2:13 PM, Matthew Hanson <<a href="mailto:mhanson@appliedgeosolutions.com" target="_blank">mhanson@appliedgeosolutions.com</a>> wrote:<br>
><br>
><br>
> We have las files that have no spatial reference embedded in the file.   For one, I'm not sure it's necessary to actually add the spatial reference to the las file.  We want to create DEM's, so perhaps it's better to just leave them as is then set the SRS on the final GeoTiffs.<br>
><br>
> However, for the moment assuming that this makes sense, when I run pdal translate<br>
> $ pdal translate -i input.las -o output.las -a_srs EPSG:XXXXX<br>
><br>
> I get a file that is bigger than the original because it's seemed to add 4 new dimensions: Time, Red, Green, Blue.   The original file did not have them, although I notice that lasinfo reports min and max for all those fields in both files, even though they are missing from the original.<br>
><br>
> Are these standard dimensions in las files, and is there any way to control if they are added or not?<br>
<br>
</span>Control it with the "format" option, and set it to 0 if you don't want Time or RGB. It defaults to 3, which includes those dimensions.<br>
<br>
> $ pdal translate -i input.las -o output.las -a_srs EPSG:XXXXX --writers.las.format=0<br>
<span><br>
<br>
>  If we want to add the SRS to files, I'd rather not increase the size of them all.  Although maybe this is moot since, as per above, it just doesn't make sense to add the SRS anyway.<br>
<br>
</span>It is probably easiest to leave the SRS alone until the final GeoTIFF write (and then set it with a GDAL VRT). The only advantage of setting it on the file before processing is so you don't have to do it in a later step.<br>
<br>
Another problem here is setting the SRS is going to cause a rewrite of the entire file due to the VLRs needing to be modified. This is one entire extra i/o step that's not needed.<br>
<br>
Hope this helps,<br>
<br>
Howard<br>
<br>
</blockquote></div><br></div></div></div>
</blockquote></div><br></div>