Changeset 980:2f216f49da09
- Timestamp:
- 02/20/09 13:49:27 (18 months ago)
- Branch:
- default
- Convert:
- svn:1766ff46-f334-0410-ab20-d63176f87757/trunk@1058
- Files:
-
- 6 edited
-
include/liblas/capi/liblas.h (modified) (1 diff)
-
include/liblas/liblas.hpp (modified) (1 diff)
-
python/liblas/__init__.py (modified) (1 diff)
-
python/liblas/core.py (modified) (1 diff)
-
python/tests/VLR.txt (modified) (2 diffs)
-
src/las_c_api.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
include/liblas/capi/liblas.h
r977 r980 125 125 * @return the version string for this library. 126 126 */ 127 LAS_DLL char* LAS_GetVersion(); 127 LAS_DLL char* LAS_GetVersion(void); 128 129 LAS_DLL int LAS_IsLibGeoTIFFEnabled(void); 130 131 LAS_DLL int LAS_IsGDALEnabled(void); 128 132 129 133 /****************************************************************************/ -
include/liblas/liblas.hpp
r929 r980 99 99 } 100 100 101 inline bool IsGDALEnabled() 102 { 103 #ifdef HAVE_GDAL 104 return true; 105 #else 106 return false; 107 #endif 108 } 109 110 inline bool IsLibGeoTIFFEnabled() 111 { 112 #ifdef HAVE_LIBGEOTIFF 113 return true; 114 #else 115 return false; 116 #endif 117 } 118 101 119 } // namespace liblas 102 120 -
python/liblas/__init__.py
r977 r980 1 1 from core import * 2 2 version = get_version() 3 HAVE_GDAL = bool(las.LAS_IsGDALEnabled()) 4 HAVE_LIBGEOTIFF = bool(las.LAS_IsLibGeoTIFFEnabled()) 5 3 6 import file 4 7 import point -
python/liblas/core.py
r977 r980 148 148 version = get_version() 149 149 150 las.LAS_IsGDALEnabled.restype = ctypes.c_int 151 las.LAS_IsLibGeoTIFFEnabled.restype = ctypes.c_int 152 150 153 las.LAS_GetVersion.restype = ctypes.POINTER(ctypes.c_char) 151 154 las.LAS_GetVersion.errcheck = free_returned_char_p -
python/tests/VLR.txt
r955 r980 54 54 [2, 32, 4, 5, 6, 7, 8, 9, 10, 11] 55 55 56 56 >>> import liblas 57 58 # >>> liblas.HAVE_GDAL 59 # >>> liblas.HAVE_LIBGEOTIFF 60 57 61 >>> from liblas import file 58 62 >>> f = file.File('../test/data/srs.las') … … 60 64 >>> h.records_count 61 65 3L 62 >>> h.proj4 63 '+proj=utm +zone=17 +ellps=WGS84 +datum=WGS84 +units=m +no_defs ' 66 >>> if not liblas.HAVE_GDAL: 67 ... h.proj4 68 '+proj=utm +zone=17 +ellps=WGS84 +units=m ' 69 64 70 >>> v = h.GetVLR(0) 65 71 >>> v.recordid -
src/las_c_api.cpp
r977 r980 42 42 ****************************************************************************/ 43 43 44 44 #include <liblas/liblas.hpp> 45 45 #include <liblas/lasreader.hpp> 46 46 #include <liblas/laserror.hpp> … … 126 126 return (rc); \ 127 127 }} while(0) 128 129 LAS_DLL int LAS_IsGDALEnabled(void) { 130 return IsGDALEnabled(); 131 } 132 133 LAS_DLL int LAS_IsLibGeoTIFFEnabled(void) { 134 return IsLibGeoTIFFEnabled(); 135 } 128 136 129 137 LAS_DLL void LASError_Reset(void) {
Note: See TracChangeset
for help on using the changeset viewer.
