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: [email protected]
[[email protected]] On Behalf Of Stanley Wong
[[email protected]]
Sent: Friday, August 19, 2011 9:44 AM
To: William Angley [USA]
Cc: [email protected]
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]" <[email protected]>
To: "Stanley Wong" <[email protected]>,
[email protected]
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: [email protected]
[mailto:[email protected]] On Behalf Of Stanley Wong
Sent: Thursday, August 18, 2011 5:23 PM
To: [email protected]
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
_______________________________________________
Liblas-devel mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/liblas-devel