[Liblas-devel] how to link libgeotiff in python?
Dave Burken
Burken.Dave at geoeye.com
Sat Aug 20 11:33:29 EDT 2011
Hi Stanley,
Assuming you compiled your liblas with cmake. Questions:
1) Do you have libgeotiff and gdal installed somewhere on the system? Cmake has "FindGeotiff, FindGdal" scripts and will attempt to find when the cmake command is launched.
2) Did you do: -DWITH_GDAL=ON -DWITH_GEOTIFF=ON in your cmake command?
Not sure if this will help but here is my cmake build script I used on linux. Note this is launched from a "build" directory under my liblas top.
#!/bin/sh
#---
# File liblas-cmake-config.sh
#---
build_dir="/work/geoeye";
cmake -G "Unix Makefiles" \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=${build_dir}/local \
-DWITH_GDAL=ON \
-DWITH_GEOTIFF=ON \
-DWITH_TEST=ON \
../
Take care,
Dave
________________________________________
From: liblas-devel-bounces at lists.osgeo.org [liblas-devel-bounces at lists.osgeo.org] On Behalf Of Stanley Wong [s.wong at kucerainternational.com]
Sent: Friday, August 19, 2011 9:44 AM
To: William Angley [USA]
Cc: liblas-devel at lists.osgeo.org
Subject: Re: [Liblas-devel] how to link libgeotiff in python?
Thanks for your response, Will.
My problem is that I am not getting any projection information back from the srs object.
I have 2 test files, one I created using las2las to define a UTM projection. The other test file came from a client.
For both files, srs methods wkt, get_wkt(), proj4, get_proj4() all returned empty string to me.
That caused me to think I am missing a module or a library.
Do you have any suggestions on what I might be missing here?
Thanks,
Stanley
________________________________
From: "William Angley [USA]" <angley_william at bah.com>
To: "Stanley Wong" <s.wong at kucerainternational.com>, liblas-devel at lists.osgeo.org
Sent: Thursday, August 18, 2011 5:52:16 PM
Subject: RE: [Liblas-devel] how to link libgeotiff in python?
Hi Stanley,
That line (somewhat confusingly) describes libraries you need to have linked into liblas at the C level, not at the Python level. At the Python level, it should all automated away by the bindings.
Try continuing with the tutorial and let us know if you run into any problems.
-- Will
From: liblas-devel-bounces at lists.osgeo.org [mailto:liblas-devel-bounces at lists.osgeo.org] On Behalf Of Stanley Wong
Sent: Thursday, August 18, 2011 5:23 PM
To: Liblas-devel at lists.osgeo.org
Subject: [Liblas-devel] how to link libgeotiff in python?
Hi,
I am trying to add in the projection information using Python.
In the tutorial, it mentioned that to use srs.proj4, "[it] only works if you have libgeotiff and/or GDAL linked in".
I have gdal python module, but I could not find an "libgeotiff" python module.
So how do I do what the tutorial is suggesting?
Thanks,
Stanley
More information about the Liblas-devel
mailing list