[Liblas-devel] Remove an SRS using LibLas

Brady Callahan brady.callahan at state.or.us
Tue Nov 23 09:49:43 EST 2010


Thanks Howard,

The following is definitely the functionality that I'm after

las2las --a_srs "" srs.las output.las

so I'll look forward to seeing it in an upcoming release!

~Brady

>>> Howard Butler <hobu.inc at gmail.com> 11/23/2010 6:45 AM >>>

On Nov 23, 2010, at 8:28 AM, Brady Callahan wrote:

> Is there a method to remove an SRS from a LAS file using LibLas? I know I can redefine an SRS, but can one remove all reference to an SRS, essentially setting this param to zero or null?

You could always do this through the C++/C/Python APIs, but not through las2las.  You can use the --a_srs switch in las2las to assign a new SRS to the outputted file (which is what I think you might be referring to), but if you set it to an empty string, it would complain.  I have fixed this for the next beta.  It will now be possible to do:

las2las --a_srs "" srs.las output.las

and have output.las end up with no coordinate system attached.

Thanks for the feedback!

Howard



More information about the Liblas-devel mailing list