[Liblas-devel] ECEF?
Frank Warmerdam
warmerdam at pobox.com
Mon Sep 9 12:01:38 PDT 2013
Keith,
Hmm. It seems two dashe are required in front of options like --a_srs and
--t_srs.
I get:
las2las srs.las --a_srs "+proj=geocent +datum=WGS84" --t_srs EPSG:2151
out.las
error: could not import coordinate system into OSRSpatialReference
SetFromUserInput
$ las2las | head -10
Input LAS file not specified!
--------------------------------------------------------------------
las2las (libLAS 1.7.0 with GeoTIFF 1.3.0 GDAL 1.8.1 LASzip 2.1.0)
It appears the GDAL library (1.8.1) linked with las2las lacks support for
the +proj=geocent. I'm not sure how to get around that with this build of
las2las. If Howard or someone were to rebuild with the stock GDAL 1.9 on
OSGeo4W I think it would be ok since the following works:
$ gdalsrsinfo "+proj=geocent +datum=WGS84"
PROJ.4 : '+proj=geocent +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +units=m
+no_defs '
OGC WKT :
GEOCCS["Geocentric",
DATUM["WGS_1984",
SPHEROID["WGS 84",6378137,298.257223563,
AUTHORITY["EPSG","7030"]],
TOWGS84[0,0,0,0,0,0,0],
AUTHORITY["EPSG","6326"]],
PRIMEM["Greenwich",0,
AUTHORITY["EPSG","8901"]]]
Best regards,
Frank
On Mon, Sep 9, 2013 at 11:26 AM, Keith Williams <keithw at unavco.org> wrote:
> Hi Frank,****
>
> ** **
>
> Attempted the script that you provided and ended up with the error: too
> many positional options.****
>
> ** **
>
> C:\Users\keithw\Desktop\TEST>las2las test.las -a_srs "+proj=geocent
> +datum=WGS84 +units=m +no_defs" -t_srs EPSG:2151****
>
> error: too many positional options****
>
> ** **
>
> C:\Users\keithw\Desktop\TEST>las2las test.las --a_srs "+proj=geocent
> +datum=WGS84 +units=m +no_defs" --t_srs EPSG:2151****
>
> error: unknown option –û****
>
> ** **
>
> Thanks again,****
>
> Keith****
>
> ** **
>
> ** **
>
> *From:* fwarmerdam at gmail.com [mailto:fwarmerdam at gmail.com] *On Behalf Of *Frank
> Warmerdam
> *Sent:* Monday, September 09, 2013 12:01 PM
> *To:* Keith Williams
> *Cc:* liblas-devel at lists.osgeo.org
> *Subject:* Re: [Liblas-devel] ECEF?****
>
> ** **
>
> Keith,****
>
> ** **
>
> I suspect the problem is that the EPSG catalogs are out of date in
> OSGeo4W. Could you try the following and see if it works better?****
>
> ** **
>
> las2las MyFile.las –a_srs "+proj=geocent +datum=WGS84 +units=m +no_defs"
> –t_srs EPSG:2151****
>
> ** **
>
> Best regards,****
>
> Frank****
>
> ** **
>
> ** **
>
> On Mon, Sep 9, 2013 at 10:29 AM, Keith Williams <keithw at unavco.org> wrote:
> ****
>
> Hello Frank,****
>
> ****
>
> I was hoping to request some assistance on converting a LiDAR point cloud
> from ECEF geocentric coordinates to UTM coordinates.****
>
> ****
>
> I noticed that you have previously discussed this at
> http://lists.osgeo.org/pipermail/liblas-devel/2011-March/001283.htmlhowever, I am quite new to Liblas, and command line interfaces in general
> so am not having much luck!****
>
> ****
>
> I am using: las2las MyFile.las –a_srs EPSG:4328 –t_srs EPSG:2151 through
> the OSGeo4W shell and I believe that I have the GDAL and liblas trunk files
> loaded; when installing the OSGeo4W shell I selected every GDAL and Liblas
> option available. I get the error that “ERROR 6: EPSG PCS/GCS code 4328
> not found in EPSG support files. Is this a valid EPSG coordinate system?
> error: could not import coordinate system into OSRSpatialReference
> SetFromUserInput”.****
>
> ****
>
> Thank you very much for any direction you may be willing to supply!****
>
> ****
>
> Keith****
>
> ****
>
> *----------------------------
> Keith Williams, EIT, LSIT
> UNAVCO, Inc.
> 6350 Nautilus Dr.
> Boulder, CO 80301*****
>
> *Cell: (541) 224-2924*****
>
> *keithw at unavco.org*****
>
> ****
>
>
>
> ****
>
> ** **
>
> --
>
> ---------------------------------------+--------------------------------------
> I set the clouds in motion - turn up | Frank Warmerdam,
> warmerdam at pobox.com
> light and sound - activate the windows | http://pobox.com/~warmerdam
> and watch the world go round - Rush | Geospatial Software Developer****
>
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam,
warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Software Developer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/liblas-devel/attachments/20130909/16178ff8/attachment.html>
More information about the Liblas-devel
mailing list