diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/.hgignore work/libLAS-1.2.1/.hgignore
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/.hgignore 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/.hgignore 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,53 @@
+syntax: glob
+*.la
+*.lo
+*.o
+*.obj
+.deps
+.libs
+*.exe
+*.exp
+*.lib
+*.res
+*.dll
+*.bz2
+*.gz
+*.bz2.md5
+*.gz.md5
+aclocal.m4
+apps/las2las
+apps/las2txt
+apps/lasinfo
+apps/lasmerge
+apps/liblas-config
+apps/ts2las
+apps/txt2las
+apps/las2oci
+apps/las2ogr
+apps/lasindex
+autom4te.cache
+config.guess
+config.log
+config.status
+config.sub
+configure
+depcomp
+install-sh
+libtool
+liblas_test
+ltmain.sh
+missing
+Makefile
+Makefile.in
+build.hobu
+test/data/*.dat
+test/data/*.idx
+python/build/*
+python/dist/*
+python/libLAS.egg-info/*
+*.pyc
+src/CMakeFiles
+CMakeFiles
+CMakeCache.txt
+cmake_install.cmake
+src/liblas.a
\ No newline at end of file
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/.hgtags work/libLAS-1.2.1/.hgtags
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/.hgtags 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/.hgtags 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1 @@
+0cb8499784632233a01b9d96e2132bb0a599a208 1.2.1
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/apps/CMakeLists.txt work/libLAS-1.2.1/apps/CMakeLists.txt
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/apps/CMakeLists.txt 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/apps/CMakeLists.txt 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,33 @@
+# $Id$
+#
+# Build libLAS utility programs
+#
+INCLUDE_DIRECTORIES(
+ .
+ ../include
+ ../include/liblas/capi
+)
+
+SET( LASINFO lasinfo )
+SET( LAS2LAS las2las )
+SET( LAS2TXT las2txt )
+SET( TXT2LAS txt2las )
+SET( LASMERGE lasmerge )
+
+SET( LASINFO_SRC lascommon.c ${LASINFO}.c )
+SET( LAS2LAS_SRC lascommon.c ${LAS2LAS}.c )
+SET( LAS2TXT_SRC lascommon.c ${LAS2TXT}.c)
+SET( TXT2LAS_SRC lascommon.c ${TXT2LAS}.c )
+SET( LASMERGE_SRC lascommon.c ${LASMERGE}.c )
+
+ADD_EXECUTABLE( ${LASINFO} ${LASINFO_SRC} )
+ADD_EXECUTABLE( ${LAS2LAS} ${LAS2LAS_SRC} )
+ADD_EXECUTABLE( ${LAS2TXT} ${LAS2TXT_SRC} )
+ADD_EXECUTABLE( ${TXT2LAS} ${TXT2LAS_SRC} )
+ADD_EXECUTABLE( ${LASMERGE} ${LASMERGE_SRC} )
+
+TARGET_LINK_LIBRARIES( ${LASINFO} ${LIBLAS_C_LIB_NAME} )
+TARGET_LINK_LIBRARIES( ${LAS2LAS} ${LIBLAS_C_LIB_NAME} )
+TARGET_LINK_LIBRARIES( ${LAS2TXT} ${LIBLAS_C_LIB_NAME} )
+TARGET_LINK_LIBRARIES( ${TXT2LAS} ${LIBLAS_C_LIB_NAME} )
+TARGET_LINK_LIBRARIES( ${LASMERGE} ${LIBLAS_C_LIB_NAME} )
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/apps/las2las.c work/libLAS-1.2.1/apps/las2las.c
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/apps/las2las.c 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/apps/las2las.c 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,802 @@
+/***************************************************************************
+ * $Id$
+ * $Date$
+ *
+ * Project: libLAS -- C/C++ read/write library for LAS LIDAR data
+ * Purpose: LAS translation with optional configuration
+ * Author: Martin Isenburg isenburg@cs.unc.edu
+ ***************************************************************************
+ * Copyright (c) 2007, Martin Isenburg isenburg@cs.unc.edu
+ *
+ * See LICENSE.txt in this source distribution for more information.
+ **************************************************************************/
+
+#include
+#include
+#include
+#include
+#include
+
+#include "liblas.h"
+
+LASPointSummary* SummarizePoints(LASReaderH reader);
+void print_point_summary(FILE *file, LASPointSummary* summary, LASHeaderH header);
+void print_point(FILE *file, LASPointH point);
+void print_header(FILE *file, LASHeaderH header, const char* file_name, int bSkipVLR);
+void repair_header(FILE *file, LASHeaderH header, LASPointSummary* summary) ;
+
+#define LAS_FORMAT_10 0
+#define LAS_FORMAT_11 1
+#define LAS_FORMAT_12 2
+
+void usage()
+{
+ fprintf(stderr,"----------------------------------------------------------\n");
+ fprintf(stderr," las2las (version %s) usage:\n", LAS_GetVersion());
+ fprintf(stderr,"----------------------------------------------------------\n");
+ fprintf(stderr,"\n");
+
+ fprintf(stderr,"Clip las file to a bounding box, throwing out points that have invalid data:\n");
+ fprintf(stderr," las2las -i in.las -clip 63000000 483450000 63050000 483500000 -o out.las --skip_invalid\n");
+ fprintf(stderr,"\n");
+
+ fprintf(stderr,"Read from stdin, eliminate intensities below 2000, and write to stdout:\n");
+ fprintf(stderr," las2las --eliminate_intensity_below 2000 --stdin --stdout < in.las > out.las \n");
+ fprintf(stderr,"\n");
+
+ fprintf(stderr,"Eliminate return number two:\n");
+ fprintf(stderr," las2las -i in.las -eliminate_return 2 -o out.las\n");
+ fprintf(stderr,"\n");
+
+ fprintf(stderr,"Eliminate scan angles above 15:\n");
+ fprintf(stderr," las2las -i in.las -eliminate_scan_angle_above 15 -o out.las\n");
+ fprintf(stderr,"\n");
+
+ fprintf(stderr,"Eliminate intensities below 1000:\n");
+ fprintf(stderr," las2las -i in.las -eliminate_intensity_below 1000 --stdout > out.las\n");
+ fprintf(stderr,"\n");
+
+ fprintf(stderr,"Eliminate intensities below 1000 and classifications that equal 2 (ground):\n");
+ fprintf(stderr," las2las -i in.las --eliminate_class 2 --out out.las\n");
+ fprintf(stderr,"\n");
+
+ fprintf(stderr,"Capture only first returns and clip to bounding box:\n");
+ fprintf(stderr," las2las -i in.las -first_only -clip 63000000 483450000 63050000 483500000 -o out.las\n");
+ fprintf(stderr,"\n");
+
+ fprintf(stderr,"Capture only last returns, eliminate intensities below 2000, and write to stdout:\n");
+ fprintf(stderr," las2las --input in.las --last_only --eliminate_intensity_below 2000 --stdout > out.las\n");
+ fprintf(stderr,"\n");
+
+
+ fprintf(stderr, "\nFor more information, see the full documentation for las2las at:\n"
+ " http://liblas.org/browser/trunk/doc/las2las.txt\n");
+ fprintf(stderr,"----------------------------------------------------------\n");
+
+}
+
+void ptime(const char *const msg)
+{
+ float t= ((float)clock())/CLOCKS_PER_SEC;
+ fprintf(stderr, "cumulative CPU time thru %s = %f\n", msg, t);
+}
+
+int main(int argc, char *argv[])
+{
+ int i;
+ int verbose = FALSE;
+ int use_stdin = FALSE;
+ int use_stdout = FALSE;
+ char* file_name_in = 0;
+ char* file_name_out = 0;
+ double *clip_xy_min = NULL;
+ double *clip_xy_max = NULL;
+ int clip = FALSE;
+ int remove_extra_header = FALSE;
+ int elim_return = 0;
+ int elim_scan_angle_above = 0;
+ int elim_intensity_below = 0;
+ int elim_class = 0;
+ int clsidx = 0;
+ int first_only = FALSE;
+ int last_only = FALSE;
+ int skip_invalid = FALSE;
+ int format = LAS_FORMAT_12;
+
+ LASReaderH reader = NULL;
+ LASHeaderH header = NULL;
+ LASHeaderH surviving_header = NULL;
+ LASPointH p = NULL;
+ LASWriterH writer = NULL;
+
+ int first_surviving_point = TRUE;
+ unsigned int surviving_number_of_point_records = 0;
+ unsigned int surviving_number_of_points_by_return[] = {0,0,0,0,0,0,0,0};
+ LASPointH surviving_point_min = NULL;
+ LASPointH surviving_point_max = NULL;
+ double surviving_gps_time_min;
+ double surviving_gps_time_max;
+
+ int clipped = 0;
+ int eliminated_return = 0;
+ int eliminated_scan_angle = 0;
+ int eliminated_intensity = 0;
+ int eliminated_class = 0;
+ int eliminated_first_only = 0;
+ int eliminated_last_only = 0;
+
+ double minx, maxx, miny, maxy, minz, maxz;
+
+ LASPointSummary* summary = NULL;
+
+ for (i = 1; i < argc; i++) {
+ if ( strcmp(argv[i],"-h") == 0 ||
+ strcmp(argv[i],"--help") == 0
+ )
+ {
+ usage();
+ exit(0);
+ }
+ else if ( strcmp(argv[i],"-v") == 0 ||
+ strcmp(argv[i],"--verbose") == 0
+ )
+ {
+ verbose = TRUE;
+ }
+ else if ( strcmp(argv[i],"-s") == 0 ||
+ strcmp(argv[i],"--skip_invalid") == 0
+ )
+ {
+ skip_invalid = TRUE;
+ }
+ else if ( strcmp(argv[i],"--input") == 0 ||
+ strcmp(argv[i],"-input") == 0 ||
+ strcmp(argv[i],"-i") == 0 ||
+ strcmp(argv[i],"-in") == 0
+ )
+ {
+ i++;
+ file_name_in = argv[i];
+ }
+ else if ( strcmp(argv[i],"--output") == 0 ||
+ strcmp(argv[i],"--out") == 0 ||
+ strcmp(argv[i],"-out") == 0 ||
+ strcmp(argv[i],"-o") == 0
+ )
+ {
+ i++;
+ file_name_out = argv[i];
+ }
+
+ else if ( strcmp(argv[i],"--stdout") == 0 ||
+ strcmp(argv[i],"-olas") == 0
+ )
+ {
+ use_stdout = TRUE;
+ file_name_out = "stdout";
+ }
+ else if ( strcmp(argv[i],"--clip") == 0 ||
+ strcmp(argv[i],"-clip") == 0 ||
+ strcmp(argv[i],"-clip_xy") == 0
+ )
+ {
+ clip_xy_min = (double*) malloc (2 * sizeof(double));
+ clip_xy_max = (double*) malloc( 2 * sizeof(double));
+ i++;
+ clip_xy_min[0] = atof(argv[i]);
+ i++;
+ clip_xy_min[1] = atof(argv[i]);
+ i++;
+ clip_xy_max[0] = atof(argv[i]);
+ i++;
+ clip_xy_max[1] = atof(argv[i]);
+ clip = TRUE;
+ }
+ else if ( strcmp(argv[i],"--format") == 0 ||
+ strcmp(argv[i],"-f") == 0 ||
+ strcmp(argv[i],"-format") == 0
+ )
+ {
+ i++;
+ if (strcmp(argv[i], "1.0") == 0) {
+ format = LAS_FORMAT_10;
+ }
+ else if (strcmp(argv[i], "1.1") == 0) {
+ format = LAS_FORMAT_11;
+ }
+ else if (strcmp(argv[i], "1.2") == 0) {
+ format = LAS_FORMAT_12;
+ }
+ else {
+ LASError_Print("Format must be specified as 1.0, 1.1, or 1.2");
+ }
+
+ }
+
+ else if ( strcmp(argv[i],"--eliminate_return") == 0 ||
+ strcmp(argv[i],"-eliminate_return") == 0 ||
+ strcmp(argv[i],"-elim_return") == 0 ||
+ strcmp(argv[i],"-elim_ret") == 0
+ )
+ {
+ i++;
+ elim_return |= (1 << atoi(argv[i]));
+ }
+ else if ( strcmp(argv[i],"--eliminate_scan_angle_above") == 0 ||
+ strcmp(argv[i],"-eliminate_scan_angle_above") == 0 ||
+ strcmp(argv[i],"-elim_scan_angle_above") == 0 ||
+ strcmp(argv[i],"--clip_scan_above") == 0
+ )
+ {
+ i++;
+ elim_scan_angle_above = atoi(argv[i]);
+ }
+ else if ( strcmp(argv[i],"--eliminate_class") == 0 ||
+ strcmp(argv[i],"-eliminate_class") == 0 ||
+ strcmp(argv[i],"-elim_class") == 0 ||
+ strcmp(argv[i],"--class") == 0
+ )
+ {
+ i++;
+ elim_class = atoi(argv[i]);
+ }
+ else if ( strcmp(argv[i],"--eliminate_intensity_below") == 0 ||
+ strcmp(argv[i],"-eliminate_intensity_below") == 0 ||
+ strcmp(argv[i],"-elim_intensity_below") == 0 ||
+ strcmp(argv[i],"--clip_intensity_below") == 0
+ )
+ {
+ i++;
+ elim_intensity_below = atoi(argv[i]);
+ }
+ else if ( strcmp(argv[i], "--stdin") == 0 ||
+ strcmp(argv[i], "-ilas") == 0
+ )
+ {
+ use_stdin = TRUE;
+ }
+ else if ( strcmp(argv[i], "--first_only") == 0 ||
+ strcmp(argv[i], "-first_only") == 0
+ )
+ {
+ first_only = TRUE;
+ }
+ else if ( strcmp(argv[i], "--last_only") == 0 ||
+ strcmp(argv[i], "-last_only") == 0
+ )
+ {
+ last_only = TRUE;
+ }
+ else if ( strcmp(argv[i], "--remove_extra_header") == 0 ||
+ strcmp(argv[i], "-remove_extra_header") == 0
+ )
+ {
+ remove_extra_header = TRUE;
+ }
+ else if (file_name_in == NULL && file_name_out == NULL)
+ {
+ file_name_in = argv[i];
+ }
+ else if (file_name_in != NULL && file_name_out == NULL)
+ {
+ file_name_out = argv[i];
+ }
+ else
+ {
+ fprintf(stderr, "ERROR: unknown argument '%s'\n",argv[i]);
+ usage();
+ exit(1);
+ }
+ }
+
+ if (use_stdin) file_name_in="stdin";
+ if (file_name_in)
+ {
+ reader = LASReader_Create(file_name_in);
+ if (!reader) {
+ LASError_Print("Could not open file to read");
+ exit(1);
+ }
+ }
+ else
+ {
+ LASError_Print("no input specified");
+ usage();
+ exit(1);
+ }
+
+
+ header = LASReader_GetHeader(reader);
+ if (!header) {
+ LASError_Print("Could not fetch header");
+ exit(1);
+ }
+
+ if (verbose) {
+ ptime("start.");
+ fprintf(stderr, "first pass reading %d points ...\n", LASHeader_GetPointRecordsCount(header));
+ }
+
+ p = LASReader_GetNextPoint(reader);
+
+ if (!p) {
+ if (LASError_GetLastErrorNum())
+ LASError_Print("Not able to fetch a point. LASReader is invalid");
+ else
+ LASError_Print("File does not contain any points to read.");
+ exit(1);
+ }
+
+ while (p)
+ {
+
+ if (last_only && LASPoint_GetReturnNumber(p) != LASPoint_GetNumberOfReturns(p))
+ {
+ eliminated_last_only++;
+ p = LASReader_GetNextPoint(reader);
+ continue;
+ }
+ if (first_only && LASPoint_GetReturnNumber(p) != 1)
+ {
+ eliminated_first_only++;
+ p = LASReader_GetNextPoint(reader);
+ continue;
+ }
+
+ if (clip && (LASPoint_GetX(p) < clip_xy_min[0] || LASPoint_GetY(p) < clip_xy_min[1]))
+ {
+ clipped++;
+ p = LASReader_GetNextPoint(reader);
+ continue;
+ }
+ if (clip && (LASPoint_GetX(p) > clip_xy_max[0] || LASPoint_GetY(p) > clip_xy_max[1]))
+ {
+ clipped++;
+ p = LASReader_GetNextPoint(reader);
+ continue;
+ }
+ if (elim_return && (elim_return & (1 << LASPoint_GetReturnNumber(p))))
+ {
+ eliminated_return++;
+ p = LASReader_GetNextPoint(reader);
+ continue;
+ }
+ if (elim_scan_angle_above && (LASPoint_GetScanAngleRank(p) > elim_scan_angle_above || LASPoint_GetScanAngleRank(p) < -elim_scan_angle_above))
+ {
+ eliminated_scan_angle++;
+ p = LASReader_GetNextPoint(reader);
+ continue;
+ }
+
+ clsidx = LASPoint_GetClassification(p);
+ clsidx = (clsidx & 31); // 31 is max index in classification lookup table
+ assert(clsidx <= 31);
+ if (elim_class && (elim_class == clsidx))
+ {
+ eliminated_class++;
+ p = LASReader_GetNextPoint(reader);
+ continue;
+ }
+
+ if (elim_intensity_below && LASPoint_GetIntensity(p) < elim_intensity_below)
+ {
+ eliminated_intensity++;
+ p = LASReader_GetNextPoint(reader);
+ continue;
+ }
+ surviving_number_of_point_records++;
+
+ if (LASPoint_GetReturnNumber(p))
+ surviving_number_of_points_by_return[LASPoint_GetReturnNumber(p)-1]++;
+ else
+ surviving_number_of_points_by_return[LASPoint_GetReturnNumber(p)]++;
+
+ if (first_surviving_point)
+ {
+ surviving_point_min = LASPoint_Copy(p);
+ surviving_point_max = LASPoint_Copy(p);
+ surviving_gps_time_min = LASPoint_GetTime(p);
+ surviving_gps_time_max = LASPoint_GetTime(p);
+ first_surviving_point = FALSE;
+ }
+ else
+ {
+ if (LASPoint_GetX(p) < LASPoint_GetX(surviving_point_min))
+ LASPoint_SetX(surviving_point_min,LASPoint_GetX(p));
+ else if (LASPoint_GetX(p) > LASPoint_GetX(surviving_point_max))
+ LASPoint_SetX(surviving_point_max,LASPoint_GetX(p));
+
+ if (LASPoint_GetY(p) < LASPoint_GetY(surviving_point_min))
+ LASPoint_SetY(surviving_point_min,LASPoint_GetY(p));
+ else if (LASPoint_GetY(p) > LASPoint_GetY(surviving_point_max))
+ LASPoint_SetY(surviving_point_max,LASPoint_GetY(p));
+
+ if (LASPoint_GetZ(p) < LASPoint_GetZ(surviving_point_min))
+ LASPoint_SetZ(surviving_point_min,LASPoint_GetZ(p));
+ else if (LASPoint_GetZ(p) > LASPoint_GetZ(surviving_point_max))
+ LASPoint_SetZ(surviving_point_max,LASPoint_GetZ(p));
+
+ if (LASPoint_GetIntensity(p) < LASPoint_GetIntensity(surviving_point_min))
+ LASPoint_SetIntensity(surviving_point_min,LASPoint_GetIntensity(p));
+ else if (LASPoint_GetIntensity(p) > LASPoint_GetIntensity(surviving_point_max))
+ LASPoint_SetIntensity(surviving_point_max,LASPoint_GetIntensity(p));
+
+ if (LASPoint_GetFlightLineEdge(p) < LASPoint_GetFlightLineEdge(surviving_point_min))
+ LASPoint_SetFlightLineEdge(surviving_point_min,LASPoint_GetFlightLineEdge(p));
+ else if (LASPoint_GetFlightLineEdge(p) > LASPoint_GetFlightLineEdge(surviving_point_max))
+ LASPoint_SetFlightLineEdge(surviving_point_max,LASPoint_GetFlightLineEdge(p));
+
+ if (LASPoint_GetScanDirection(p) < LASPoint_GetScanDirection(surviving_point_min))
+ LASPoint_SetScanDirection(surviving_point_min,LASPoint_GetScanDirection(p));
+ else if (LASPoint_GetScanDirection(p) > LASPoint_GetScanDirection(surviving_point_max))
+ LASPoint_SetScanDirection(surviving_point_max,LASPoint_GetScanDirection(p));
+
+ if (LASPoint_GetNumberOfReturns(p) < LASPoint_GetNumberOfReturns(surviving_point_min))
+ LASPoint_SetNumberOfReturns(surviving_point_min,LASPoint_GetNumberOfReturns(p));
+ else if (LASPoint_GetNumberOfReturns(p) > LASPoint_GetNumberOfReturns(surviving_point_max))
+ LASPoint_SetNumberOfReturns(surviving_point_max,LASPoint_GetNumberOfReturns(p));
+
+ if (LASPoint_GetReturnNumber(p) < LASPoint_GetReturnNumber(surviving_point_min))
+ LASPoint_SetReturnNumber(surviving_point_min,LASPoint_GetReturnNumber(p));
+ else if (LASPoint_GetReturnNumber(p) > LASPoint_GetReturnNumber(surviving_point_max))
+ LASPoint_SetReturnNumber(surviving_point_max,LASPoint_GetReturnNumber(p));
+
+ if (LASPoint_GetClassification(p) < LASPoint_GetClassification(surviving_point_min))
+ LASPoint_SetClassification(surviving_point_min,LASPoint_GetClassification(p));
+ else if (LASPoint_GetReturnNumber(p) > LASPoint_GetClassification(surviving_point_max))
+ LASPoint_SetClassification(surviving_point_max,LASPoint_GetClassification(p));
+
+ if (LASPoint_GetScanAngleRank(p) < LASPoint_GetScanAngleRank(surviving_point_min))
+ LASPoint_SetScanAngleRank(surviving_point_min,LASPoint_GetScanAngleRank(p));
+ else if (LASPoint_GetScanAngleRank(p) > LASPoint_GetScanAngleRank(surviving_point_max))
+ LASPoint_SetScanAngleRank(surviving_point_max,LASPoint_GetScanAngleRank(p));
+
+ if (LASPoint_GetUserData(p) < LASPoint_GetUserData(surviving_point_min))
+ LASPoint_SetUserData(surviving_point_min,LASPoint_GetUserData(p));
+ else if (LASPoint_GetUserData(p) > LASPoint_GetUserData(surviving_point_max))
+ LASPoint_SetUserData(surviving_point_max,LASPoint_GetUserData(p));
+
+ if (LASPoint_GetTime(p) < LASPoint_GetTime(surviving_point_min))
+ LASPoint_SetTime(surviving_point_min,LASPoint_GetTime(p));
+ else if (LASPoint_GetTime(p) > LASPoint_GetTime(surviving_point_max))
+ LASPoint_SetTime(surviving_point_max,LASPoint_GetTime(p));
+
+/*
+ if (lasreader->point.point_source_ID < surviving_point_min.point_source_ID) surviving_point_min.point_source_ID = lasreader->point.point_source_ID;
+ else if (lasreader->point.point_source_ID > surviving_point_max.point_source_ID) surviving_point_max.point_source_ID = lasreader->point.point_source_ID;
+*/
+ }
+
+ p = LASReader_GetNextPoint(reader);
+ }
+
+ if (eliminated_first_only)
+ fprintf(stderr,
+ "eliminated based on first returns only: %d\n",
+ eliminated_first_only);
+ if (eliminated_last_only)
+ fprintf(stderr,
+ "eliminated based on last returns only: %d\n",
+ eliminated_last_only);
+ if (eliminated_class)
+ fprintf(stderr,
+ "eliminated classification: %d\n",
+ eliminated_class);
+ if (clipped)
+ fprintf(stderr,
+ "clipped: %d\n",
+ clipped);
+ if (eliminated_return)
+ fprintf(stderr,
+ "eliminated based on return number: %d\n",
+ eliminated_return);
+ if (eliminated_scan_angle)
+ fprintf(stderr,
+ "eliminated based on scan angle: %d\n",
+ eliminated_scan_angle);
+ if (eliminated_intensity)
+ fprintf(stderr,
+ "eliminated based on intensity: %d\n",
+ eliminated_intensity);
+
+ LASReader_Destroy(reader);
+ LASHeader_Destroy(header);
+
+ if (verbose)
+ {
+ fprintf(stderr,
+ "x %.3f %.3f %.3f\n",
+ LASPoint_GetX(surviving_point_min),
+ LASPoint_GetX(surviving_point_max),
+ LASPoint_GetX(surviving_point_max) - LASPoint_GetX(surviving_point_min)
+ );
+ fprintf(stderr,
+ "y %.3f %.3f %.3f\n",
+ LASPoint_GetY(surviving_point_min),
+ LASPoint_GetY(surviving_point_max),
+ LASPoint_GetY(surviving_point_max) - LASPoint_GetY(surviving_point_min)
+ );
+ fprintf(stderr,
+ "z %.3f %.3f %.3f\n",
+ LASPoint_GetZ(surviving_point_min),
+ LASPoint_GetZ(surviving_point_max),
+ LASPoint_GetZ(surviving_point_max) - LASPoint_GetZ(surviving_point_min)
+ );
+ fprintf(stderr,
+ "intensity %d %d %d\n",
+ LASPoint_GetIntensity(surviving_point_min),
+ LASPoint_GetIntensity(surviving_point_max),
+ LASPoint_GetIntensity(surviving_point_max) - LASPoint_GetIntensity(surviving_point_min)
+ );
+ fprintf(stderr,
+ "edge_of_flight_line %d %d %d\n",
+ LASPoint_GetFlightLineEdge(surviving_point_min),
+ LASPoint_GetFlightLineEdge(surviving_point_max),
+ LASPoint_GetFlightLineEdge(surviving_point_max) - LASPoint_GetFlightLineEdge(surviving_point_min)
+ );
+ fprintf(stderr,
+ "scan_direction_flag %d %d %d\n",
+ LASPoint_GetScanDirection(surviving_point_min),
+ LASPoint_GetScanDirection(surviving_point_max),
+ LASPoint_GetScanDirection(surviving_point_max) - LASPoint_GetScanDirection(surviving_point_min)
+ );
+ fprintf(stderr,
+ "number_of_returns_of_given_pulse %d %d %d\n",
+ LASPoint_GetNumberOfReturns(surviving_point_min),
+ LASPoint_GetNumberOfReturns(surviving_point_max),
+ LASPoint_GetNumberOfReturns(surviving_point_max) - LASPoint_GetNumberOfReturns(surviving_point_min)
+ );
+ fprintf(stderr,
+ "return_number %d %d %d\n",
+ LASPoint_GetReturnNumber(surviving_point_min),
+ LASPoint_GetReturnNumber(surviving_point_max),
+ LASPoint_GetReturnNumber(surviving_point_max) - LASPoint_GetReturnNumber(surviving_point_min)
+ );
+ fprintf(stderr,
+ "classification %d %d %d\n",
+ LASPoint_GetClassification(surviving_point_min),
+ LASPoint_GetClassification(surviving_point_max),
+ LASPoint_GetClassification(surviving_point_max) - LASPoint_GetClassification(surviving_point_min)
+ );
+ fprintf(stderr,
+ "scan_angle_rank %d %d %d\n",
+ LASPoint_GetScanAngleRank(surviving_point_min),
+ LASPoint_GetScanAngleRank(surviving_point_max),
+ LASPoint_GetScanAngleRank(surviving_point_max) - LASPoint_GetScanAngleRank(surviving_point_min)
+ );
+ fprintf(stderr,
+ "user_data %d %d %d\n",
+ LASPoint_GetUserData(surviving_point_min),
+ LASPoint_GetUserData(surviving_point_max),
+ LASPoint_GetUserData(surviving_point_max) - LASPoint_GetUserData(surviving_point_min)
+ );
+ fprintf(stderr,
+ "gps_time %.8f %.8f %.8f\n",
+ LASPoint_GetTime(surviving_point_min),
+ LASPoint_GetTime(surviving_point_max),
+ LASPoint_GetTime(surviving_point_max) - LASPoint_GetTime(surviving_point_min)
+ );
+/*
+ fprintf(stderr, "point_source_ID %d %d %d\n",surviving_point_min.point_source_ID, surviving_point_max.point_source_ID, surviving_point_max.point_source_ID - surviving_point_min.point_source_ID);
+*/
+ }
+
+
+ if (file_name_out == NULL && !use_stdout)
+ {
+ LASError_Print("no output specified. exiting...");
+ exit(1);
+ }
+
+
+ if (file_name_in)
+ {
+ reader = LASReader_Create(file_name_in);
+ if (!reader) {
+ LASError_Print("Could not open file to read");
+ exit(1);
+ }
+ }
+ else
+ {
+ LASError_Print("no input specified");
+ usage();
+ exit(1);
+ }
+
+
+ header = LASReader_GetHeader(reader);
+ if (!header) {
+ LASError_Print("Could not read header");
+ exit(1);
+ }
+
+
+ surviving_header = LASHeader_Copy(header);
+
+ LASHeader_SetPointRecordsCount(surviving_header, surviving_number_of_point_records);
+ LASHeader_SetSystemId(surviving_header, "MODIFICATION");
+
+ for (i = 0; i < 5; i++) LASHeader_SetPointRecordsByReturnCount(surviving_header, i, surviving_number_of_points_by_return[i]);
+
+ minx = LASPoint_GetX(surviving_point_min) * LASHeader_GetScaleX(surviving_header) + LASHeader_GetOffsetX(surviving_header);
+ maxx = LASPoint_GetX(surviving_point_max) * LASHeader_GetScaleX(surviving_header) + LASHeader_GetOffsetX(surviving_header);
+
+ miny = LASPoint_GetY(surviving_point_min) * LASHeader_GetScaleY(surviving_header) + LASHeader_GetOffsetY(surviving_header);
+ maxy = LASPoint_GetY(surviving_point_max) * LASHeader_GetScaleY(surviving_header) + LASHeader_GetOffsetY(surviving_header);
+
+ minz = LASPoint_GetZ(surviving_point_min) * LASHeader_GetScaleZ(surviving_header) + LASHeader_GetOffsetZ(surviving_header);
+ maxz = LASPoint_GetZ(surviving_point_max) * LASHeader_GetScaleZ(surviving_header) + LASHeader_GetOffsetZ(surviving_header);
+
+ if (format == LAS_FORMAT_10) {
+ LASHeader_SetVersionMinor(surviving_header, 0);
+ } else if (format == LAS_FORMAT_11){
+ LASHeader_SetVersionMinor(surviving_header, 1);
+ } else if (format == LAS_FORMAT_12) {
+ LASHeader_SetVersionMinor(surviving_header, 2);
+ }
+
+
+/* if (remove_extra_header) surviving_header.offset_to_point_data = surviving_header.header_size;
+*/
+
+ if (verbose) {
+ fprintf(stderr,
+ "second pass reading %d and writing %d points ...\n",
+ LASHeader_GetPointRecordsCount(surviving_header),
+ surviving_number_of_point_records);
+ }
+
+ if (use_stdout) file_name_out = "stdout";
+
+ writer = LASWriter_Create(file_name_out, surviving_header, LAS_MODE_WRITE);
+ if (!writer) {
+ LASError_Print("Could not open file to write");
+ exit(1);
+ }
+
+/*
+
+ if (!remove_extra_header)
+ {
+ for (unsigned int u = lasreader->header.header_size; u < lasreader->header.offset_to_point_data; u++)
+ {
+ fputc(fgetc(file_in),file_out);
+ }
+ }
+*/
+
+
+ LASReader_Destroy(reader);
+ reader = NULL;
+ if (file_name_in)
+ {
+ reader = LASReader_Create(file_name_in);
+ if (!reader) {
+ LASError_Print("Could not open file to read");
+ exit(1);
+ }
+ }
+ else
+ {
+ LASError_Print("no input specified");
+ usage();
+ exit(1);
+ }
+
+ p = LASReader_GetNextPoint(reader);
+ if (!p) {
+ if (LASError_GetLastErrorNum())
+ LASError_Print("Not able to fetch a point. LASReader is invalid");
+ else
+ LASError_Print("File does not contain any points to read.");
+ exit(1);
+ }
+
+ while (p) {
+
+ if (skip_invalid && !LASPoint_IsValid(p)) {
+ p = LASReader_GetNextPoint(reader);
+ continue;
+ }
+ if (last_only && LASPoint_GetReturnNumber(p) != LASPoint_GetNumberOfReturns(p))
+ {
+ p = LASReader_GetNextPoint(reader);
+ continue;
+ }
+ if (first_only && LASPoint_GetReturnNumber(p) != 1)
+ {
+ p = LASReader_GetNextPoint(reader);
+ continue;
+
+ }
+ if (clip_xy_min && (LASPoint_GetX(p) < clip_xy_min[0] || LASPoint_GetY(p) < clip_xy_min[1]))
+ {
+ p = LASReader_GetNextPoint(reader);
+ continue;
+ }
+ if (clip_xy_max && (LASPoint_GetX(p) > clip_xy_max[0] || LASPoint_GetY(p) > clip_xy_max[1]))
+ {
+ p = LASReader_GetNextPoint(reader);
+ continue;
+ }
+ if (elim_return && (elim_return & (1 << LASPoint_GetReturnNumber(p))))
+ {
+ p = LASReader_GetNextPoint(reader);
+ continue;
+ }
+ if (elim_scan_angle_above && (LASPoint_GetScanAngleRank(p) > elim_scan_angle_above || LASPoint_GetScanAngleRank(p) < -elim_scan_angle_above))
+ {
+ p = LASReader_GetNextPoint(reader);
+ continue;
+ }
+ if (elim_intensity_below && LASPoint_GetIntensity(p) < elim_intensity_below)
+ {
+ p = LASReader_GetNextPoint(reader);
+ continue;
+ }
+
+ clsidx = LASPoint_GetClassification(p);
+ clsidx = (clsidx & 31); // 31 is max index in classification lookup table
+ assert(clsidx <= 31);
+ if (elim_class && (elim_class == clsidx))
+ {
+ p = LASReader_GetNextPoint(reader);
+ continue;
+ }
+ LASWriter_WritePoint(writer,p);
+
+ p = LASReader_GetNextPoint(reader);
+ }
+
+ LASWriter_Destroy(writer);
+ LASReader_Destroy(reader);
+ LASHeader_Destroy(header);
+ LASHeader_Destroy(surviving_header);
+ LASPoint_Destroy(surviving_point_max);
+ LASPoint_Destroy(surviving_point_min);
+
+ reader = LASReader_Create(file_name_out);
+ if (!reader) {
+ LASError_Print("Could not open file to read");
+ exit(1);
+ }
+
+ header = LASReader_GetHeader(reader);
+ if (!header) {
+ LASError_Print("Could not read header");
+ exit(1);
+ }
+ summary = SummarizePoints(reader);
+ if (verbose) {
+ print_point_summary(stderr, summary, header);
+ }
+ repair_header(stderr, header, summary) ;
+
+ if (summary) {
+ LASPoint_Destroy(summary->pmin);
+ LASPoint_Destroy(summary->pmax);
+ free(summary);
+ }
+
+ if (reader) {
+ LASReader_Destroy(reader);
+ reader = NULL;
+ }
+
+ writer = LASWriter_Create(file_name_out, header, LAS_MODE_APPEND);
+ if (!writer) {
+ LASError_Print("Problem creating LASWriterH object for append");
+ LASHeader_Destroy(header);
+ header = NULL;
+ exit(1);
+ }
+ LASWriter_Destroy(writer);
+ writer = NULL;
+ LASHeader_Destroy(header);
+ header = NULL;
+
+ if (verbose) ptime("done.");
+
+ return 0;
+}
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/apps/las2ogr.cpp work/libLAS-1.2.1/apps/las2ogr.cpp
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/apps/las2ogr.cpp 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/apps/las2ogr.cpp 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,377 @@
+// $Id$
+//
+// las2ogr translates LAS file to OGR datasource.
+// Inspired by pylas.py script developed by Matthew Perry and Carl Anderson,
+// available at http://code.google.com/p/pylas/
+//
+// (C) Copyright Mateusz Loskot 2008, mateusz@loskot.net
+// Distributed under the BSD License
+// (See accompanying file LICENSE.txt or copy at
+// http://www.opensource.org/licenses/bsd-license.php)
+//
+#ifdef HAVE_GDAL
+#if defined(_MSC_VER) && defined(USE_VLD)
+#include
+#endif
+// liblas
+#include
+#include
+#include
+#include
+// ogr
+#include
+//std
+#include
+#include
+#include
+#include
+#include
+#include
+
+// Anonymous namespace for local definitions
+namespace {
+
+template
+class ogr_wrapper
+{
+ typedef void(*deleter_type)(T p);
+
+public:
+
+ ogr_wrapper(T p, deleter_type d)
+ : p_(p), del_(d)
+ {}
+
+ ~ogr_wrapper()
+ {
+ do_delete(p_);
+ }
+
+ void reset(T p)
+ {
+ do_delete(p_);
+ p_= p;
+ }
+
+ operator T()
+ {
+ return get();
+ }
+
+
+ T get() const
+ {
+ return p_;
+ }
+
+ void swap(ogr_wrapper& other)
+ {
+ std::swap(p_, other.p_);
+ }
+
+private:
+
+ ogr_wrapper(ogr_wrapper const& other);
+ ogr_wrapper& operator=(ogr_wrapper const& rhs);
+
+ void do_delete(T p)
+ {
+ assert(del_);
+ if (0 != p)
+ del_(p);
+ }
+
+ T p_;
+ deleter_type del_;
+
+};
+
+bool term_progress(std::ostream& os, double complete)
+{
+ static int lastTick = -1;
+ int tick = static_cast(complete * 40.0);
+
+ tick = std::min(40, std::max(0, tick));
+
+ // Have we started a new progress run?
+ if (tick < lastTick && lastTick >= 39)
+ lastTick = -1;
+
+ if (tick <= lastTick)
+ return true;
+
+ while (tick > lastTick)
+ {
+ lastTick++;
+ if (lastTick % 4 == 0)
+ os << (lastTick / 4) * 10;
+ else
+ os << ".";
+ }
+
+ if( tick == 40 )
+ os << " - done.\n";
+ else
+ os.flush();
+
+ return true;
+}
+
+OGRFieldDefnH create_field(const char* name, OGRFieldType type, int width, int precision)
+{
+ OGRFieldDefnH fld;
+ fld= OGR_Fld_Create(name, type);
+ OGR_Fld_SetWidth(fld, width);
+ OGR_Fld_SetPrecision(fld, precision);
+
+ return fld;
+}
+
+void create_layer_def(OGRLayerH lyr)
+{
+ assert(0 != lyr);
+
+ std::string fldname("return_num");
+
+ OGRFieldDefnH fld = create_field("return_num", OFTInteger, 10, 0);
+ OGRErr err = OGR_L_CreateField(lyr, fld, 0);
+ if (OGRERR_NONE != err)
+ {
+ throw std::runtime_error("return_num field creation failed");
+ }
+
+ OGR_Fld_Destroy(fld);
+
+ fld = create_field("angle", OFTInteger, 10, 0);
+ err = OGR_L_CreateField(lyr, fld, 0);
+ if (OGRERR_NONE != err)
+ {
+ throw std::runtime_error("angle field cration failed");
+ }
+
+ OGR_Fld_Destroy(fld);
+
+ fld = create_field("intensity", OFTInteger, 10, 0);
+ err = OGR_L_CreateField(lyr, fld, 0);
+ if (OGRERR_NONE != err)
+ {
+ throw std::runtime_error("intensity field cration failed");
+ }
+
+ OGR_Fld_Destroy(fld);
+
+ fld = create_field("asprsclass", OFTInteger, 10, 0);
+ err = OGR_L_CreateField(lyr, fld, 0);
+ if (OGRERR_NONE != err)
+ {
+ throw std::runtime_error("asprsclass field creation failed");
+ }
+
+ OGR_Fld_Destroy(fld);
+
+ fld = create_field("return_tot", OFTInteger, 10, 0);
+ err = OGR_L_CreateField(lyr, fld, 0);
+ if (OGRERR_NONE != err)
+ {
+ throw std::runtime_error("return_tot field creation failed");
+ }
+
+ OGR_Fld_Destroy(fld);
+
+ fld = create_field("gpstime", OFTReal, 10, 0);
+ err = OGR_L_CreateField(lyr, fld, 0);
+ if (OGRERR_NONE != err)
+ {
+ throw std::runtime_error("gpstime field cration failed");
+ }
+
+ OGR_Fld_Destroy(fld);
+}
+
+void report_ogr_formats(std::ostream& os)
+{
+ os << "Supported OGR formats:";
+
+ for (int i = 0; i < OGRGetDriverCount(); ++i)
+ {
+ OGRSFDriverH drv = OGRGetDriver(i);
+ assert(0 != drv);
+
+ if (OGR_Dr_TestCapability(drv, ODrCCreateDataSource))
+ {
+ os << "\n - " << OGR_Dr_GetName(drv);
+ }
+ }
+
+ os << "\nMore details at http://gdal.org/ogr/ogr_formats.html" << std::endl;
+}
+
+void usage()
+{
+ std::cerr << "Usage: las2ogr OPTIONS\nOptions are:\n"
+ << "\t-h print this message\n"
+ << "\t-i \tinput ASPRS LAS file\n"
+ << "\t-o \toutput file\n"
+ << "\t-f \tOGR format for output file\n"
+ << "\t-formats\tlist supported OGR formats\n";
+}
+
+} // anonymous namespace
+
+int main(int argc, char* argv[])
+{
+ int rc = 0;
+
+ try
+ {
+ OGRRegisterAll();
+
+ // Parse command-line options
+ std::string in_file;
+ std::string out_file;
+ std::string out_frmt;
+ {
+ int on_arg = 1;
+ while (on_arg < argc)
+ {
+ std::string arg(argv[on_arg]);
+ if (arg == "-h")
+ {
+ usage();
+ return 0;
+ }
+ else if (arg == "-formats")
+ {
+ report_ogr_formats(std::cout);
+ return 0;
+ }
+ else if (arg == "-i" && (on_arg + 1 < argc))
+ {
+ ++on_arg;
+ assert(on_arg < argc);
+ in_file = argv[on_arg];
+ }
+ else if (arg == "-o" && (on_arg + 1 < argc))
+ {
+ ++on_arg;
+ assert(on_arg < argc);
+ out_file = argv[on_arg];
+ out_frmt = "ESRI Shapefile"; // default output format
+ }
+ else if (arg == "-f" && (on_arg + 1 < argc))
+ {
+ ++on_arg;
+ assert(on_arg < argc);
+ out_frmt = argv[on_arg];
+ }
+ else
+ {
+ throw std::runtime_error(std::string("unrecognized parameter: ") + arg);
+ }
+ ++on_arg;
+ }
+
+ if (in_file.empty() || out_file.empty() || out_frmt.empty())
+ {
+ throw std::runtime_error("missing input paremeters");
+ }
+ }
+
+ //
+ // Source
+ //
+ std::cout << "Source:" << "\n - dataset: " << in_file << std::endl;
+
+ std::ifstream ifs;
+ if (!liblas::Open(ifs, in_file.c_str()))
+ {
+ throw std::runtime_error(std::string("Can not open \'") + in_file + "\'");
+ }
+ liblas::LASReader reader(ifs);
+
+ //
+ // Target
+ //
+ std::string const lyrname(out_file.substr(0, out_file.find_last_of('.')));
+
+ std::cout << "Target:"
+ << "\n - format: " << out_frmt
+ << "\n - dataset: " << out_file
+ << "\n - layer: " << lyrname
+ << std::endl;
+
+ OGRSFDriverH drv = OGRGetDriverByName(out_frmt.c_str());
+ if (0 == drv)
+ {
+ throw std::runtime_error(out_frmt + " driver not available");
+ }
+
+ ogr_wrapper ds(OGR_Dr_CreateDataSource(drv, out_file.c_str(), 0), OGR_DS_Destroy);
+ if (0 == ds.get())
+ {
+ throw std::runtime_error(out_file + " datasource creation failed");
+ }
+
+ OGRLayerH lyr = OGR_DS_CreateLayer(ds, lyrname.c_str(), 0, wkbPoint25D, 0);
+ if (0 == lyr)
+ {
+ throw std::runtime_error(out_file + " layer creation failed");
+ }
+
+ // Prepare layer schema
+ create_layer_def(lyr);
+
+ //
+ // Translation of points cloud to features set
+ //
+ liblas::uint32_t i = 0;
+ liblas::uint32_t const size = reader.GetHeader().GetPointRecordsCount();
+
+ std::cout << "Translating " << size << " points:\n";
+
+ ogr_wrapper feat(OGR_F_Create(OGR_L_GetLayerDefn(lyr)), OGR_F_Destroy);
+
+ while (reader.ReadNextPoint())
+ {
+ liblas::LASPoint const& p = reader.GetPoint();
+
+ OGR_F_SetFieldInteger(feat, 0, p.GetReturnNumber());
+ OGR_F_SetFieldInteger(feat, 1, p.GetScanAngleRank());
+ OGR_F_SetFieldInteger(feat, 2, p.GetIntensity());
+ OGR_F_SetFieldInteger(feat, 3, p.GetClassification());
+ OGR_F_SetFieldInteger(feat, 4, p.GetNumberOfReturns());
+ OGR_F_SetFieldDouble(feat, 5, p.GetTime());
+
+ ogr_wrapper geom(OGR_G_CreateGeometry(wkbPoint25D), OGR_G_DestroyGeometry);
+ OGR_G_SetPoint(geom, 0, p.GetX(), p.GetY(), p.GetZ());
+ if (OGRERR_NONE != OGR_F_SetGeometry(feat, geom))
+ {
+ throw std::runtime_error("geometry creation failed");
+ }
+
+ if (OGRERR_NONE != OGR_L_CreateFeature(lyr, feat))
+ {
+ throw std::runtime_error("feature creation failed");
+ }
+
+ term_progress(std::cout, (i + 1) / static_cast(size));
+ i++;
+ }
+
+ std::cout << std::endl;
+ }
+ catch (std::exception const& e)
+ {
+ std::cerr << "Error: " << e.what() << std::endl;
+ rc = -1;
+ }
+ catch (...)
+ {
+ std::cerr << "Unknown error\n";
+ rc = -1;
+ }
+
+ return rc;
+}
+#endif // #ifdef HAVE_GDAL
+
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/apps/las2txt.c work/libLAS-1.2.1/apps/las2txt.c
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/apps/las2txt.c 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/apps/las2txt.c 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,583 @@
+/***************************************************************************
+ * $Id$
+ * $Date$
+ *
+ * Project: libLAS -- C/C++ read/write library for LAS LIDAR data
+ * Purpose: LAS translation to ASCII text with optional configuration
+ * Author: Martin Isenburg isenburg@cs.unc.edu
+ ***************************************************************************
+ * Copyright (c) 2007, Martin Isenburg isenburg@cs.unc.edu
+ *
+ * See LICENSE.txt in this source distribution for more information.
+ **************************************************************************/
+
+#include
+#include
+#include
+#include
+
+#include "liblas.h"
+
+void print_header(FILE *file, LASHeaderH header, const char* file_name);
+
+void usage()
+{
+ fprintf(stderr,"----------------------------------------------------------\n");
+ fprintf(stderr," las2txt (version %s) usage:\n", LAS_GetVersion());
+ fprintf(stderr,"----------------------------------------------------------\n");
+ fprintf(stderr,"\n");
+
+ fprintf(stderr,"Convert a las file to text on stdout:\n");
+ fprintf(stderr," las2txt lidar.las\n");
+ fprintf(stderr,"\n");
+
+ fprintf(stderr,"Convert using stdin and stdout:\n");
+ fprintf(stderr," las2txt --stdin --stdout < lidar.las > lidar.txt\n");
+ fprintf(stderr,"\n");
+
+ fprintf(stderr,"Convert to text with a specified format :\n");
+ fprintf(stderr," las2txt --parse xyziar lidar.las lidar.txt\n");
+ fprintf(stderr,"\n");
+
+
+ fprintf(stderr,"----------------------------------------------------------\n");
+ fprintf(stderr," The '--parse txyz' flag specifies how to format each\n");
+ fprintf(stderr," each line of the ASCII file. For example, 'txyzia'\n");
+ fprintf(stderr," means that the first number of each line should be the\n");
+ fprintf(stderr," gpstime, the next three numbers should be the x, y, and\n");
+ fprintf(stderr," z coordinate, the next number should be the intensity\n");
+ fprintf(stderr," and the next number should be the scan angle.\n");
+ fprintf(stderr," The supported entries are:\n");
+ fprintf(stderr," a - scan angle\n");
+ fprintf(stderr," i - intensity\n");
+ fprintf(stderr," n - number of returns for given pulse\n");
+ fprintf(stderr," r - number of this return\n");
+ fprintf(stderr," c - classification\n");
+ fprintf(stderr," u - user data (does not currently work)\n");
+ fprintf(stderr," p - point source ID\n");
+ fprintf(stderr," e - edge of flight line\n");
+ fprintf(stderr," d - direction of scan flag\n");
+ fprintf(stderr," R - red channel of RGB color\n");
+ fprintf(stderr," G - green channel of RGB color\n");
+ fprintf(stderr," B - blue channel of RGB color\n");
+ fprintf(stderr," M - vertex index number\n\n");
+
+ fprintf(stderr,"----------------------------------------------------------\n");
+ fprintf(stderr," The '--sep space' flag specifies what separator to use. The\n");
+ fprintf(stderr," default is a space but 'tab', 'komma', 'colon', 'hyphen',\n");
+ fprintf(stderr," 'dot', or 'semicolon' are other possibilities.\n\n");
+ fprintf(stderr,"----------------------------------------------------------\n");
+ fprintf(stderr," The '--header pound' flag results in the header information\n");
+ fprintf(stderr," being printed at the beginning of the ASCII file in form of\n");
+ fprintf(stderr," a comment that starts with the special character '#'. Also\n");
+ fprintf(stderr," possible are 'percent', 'dollar', 'semicolon', 'komma',\n");
+ fprintf(stderr," 'star', 'colon', or 'semicolon' as that special character.\n");
+
+ fprintf(stderr, "\nFor more information, see the full documentation for las2txt at:\n"
+ " http://liblas.org/browser/trunk/doc/las2txt.txt\n");
+ fprintf(stderr,"----------------------------------------------------------\n");
+
+}
+
+
+static int lidardouble2string(char* string, double value)
+{
+ int len;
+ len = sprintf(string, "%f", value) - 1;
+ while (string[len] == '0') len--;
+ if (string[len] != '.') len++;
+ string[len] = '\0';
+ return len;
+}
+
+
+int main(int argc, char *argv[])
+{
+ int i;
+ int use_stdin = FALSE;
+ int use_stdout = FALSE;
+ int skip_invalid = FALSE;
+
+ int verbose = FALSE;
+ char* file_name_in = 0;
+ char* file_name_out = 0;
+ char separator_sign = ' ';
+ char header_comment_sign = '\0';
+ char* parse_string = "xyz";
+ char printstring[256];
+ LASReaderH reader = NULL;
+ LASHeaderH header = NULL;
+ LASPointH p = NULL;
+ FILE* file_out = NULL;
+ int len;
+
+ uint32_t index = 0;
+
+ for (i = 1; i < argc; i++)
+ {
+ if ( strcmp(argv[i],"-h") == 0 ||
+ strcmp(argv[i],"--help") == 0
+ )
+ {
+ usage();
+ exit(0);
+ }
+ else if ( strcmp(argv[i],"-v") == 0 ||
+ strcmp(argv[i],"--verbose") == 0
+ )
+ {
+ verbose = TRUE;
+ }
+ else if ( strcmp(argv[i],"-s") == 0 ||
+ strcmp(argv[i],"--skip_invalid") == 0
+ )
+ {
+ skip_invalid = TRUE;
+ }
+ else if ( strcmp(argv[i], "--parse") == 0 ||
+ strcmp(argv[i], "-parse") == 0
+ )
+ {
+ i++;
+ parse_string = argv[i];
+ }
+ else if ( strcmp(argv[i], "--sep") == 0 ||
+ strcmp(argv[i], "-sep") == 0
+ )
+ {
+ i++;
+
+ if (strcmp(argv[i],"komma") == 0 ||
+ strcmp(argv[i],"comma") == 0 )
+ {
+ separator_sign = ',';
+ }
+ else if (strcmp(argv[i],"tab") == 0)
+ {
+ separator_sign = '\t';
+ }
+ else if ( strcmp(argv[i],"dot") == 0 ||
+ strcmp(argv[i],"period") == 0
+ )
+ {
+ separator_sign = '.';
+ }
+ else if (strcmp(argv[i],"colon") == 0)
+ {
+ separator_sign = ':';
+ }
+ else if ( strcmp(argv[i],"scolon") == 0 ||
+ strcmp(argv[i],"semicolon") == 0
+ )
+ {
+ separator_sign = ';';
+ }
+ else if ( strcmp(argv[i],"hyphen") == 0 ||
+ strcmp(argv[i],"minus") == 0
+ )
+ {
+ separator_sign = '-';
+ }
+ else if (strcmp(argv[i],"space") == 0)
+ {
+ separator_sign = ' ';
+ }
+ else
+ {
+ fprintf(stderr, "ERROR: unknown seperator '%s'\n",argv[i]);
+ usage();
+ exit(1);
+ }
+ }
+ else if ( strcmp(argv[i], "--header") == 0 ||
+ strcmp(argv[i], "--comment") == 0 ||
+ strcmp(argv[i], "-header") == 0 ||
+ strcmp(argv[i], "-comment") == 0 ||
+ strcmp(argv[i], "-head") == 0
+ )
+ {
+ i++;
+ if (strcmp(argv[i],"komma") == 0 ||
+ strcmp(argv[i],"comma") == 0 )
+ {
+ header_comment_sign = ',';
+ }
+ else if (strcmp(argv[i],"colon") == 0)
+ {
+ header_comment_sign = ':';
+ }
+ else if ( strcmp(argv[i],"scolon") == 0 ||
+ strcmp(argv[i],"semicolon") == 0
+ )
+ {
+ header_comment_sign = ';';
+ }
+ else if ( strcmp(argv[i],"pound") == 0 ||
+ strcmp(argv[i],"hash") == 0
+ )
+ {
+ header_comment_sign = '#';
+ }
+ else if (strcmp(argv[i],"percent") == 0)
+ {
+ header_comment_sign = '%';
+ }
+ else if (strcmp(argv[i],"dollar") == 0)
+ {
+ header_comment_sign = '$';
+ }
+ else if (strcmp(argv[i],"star") == 0)
+ {
+ header_comment_sign = '*';
+ }
+ else
+ {
+ fprintf(stderr, "ERROR: unknown comment symbol '%s'\n",argv[i]);
+ usage();
+ exit(1);
+ }
+ }
+ else if ( strcmp(argv[i], "--stdin") == 0 ||
+ strcmp(argv[i], "-ilas") == 0
+ )
+ {
+ use_stdin = TRUE;
+ }
+ else if ( strcmp(argv[i], "--stdout") == 0
+ )
+ {
+ use_stdout = TRUE;
+ }
+ else if ( strcmp(argv[i],"--input") == 0 ||
+ strcmp(argv[i],"-input") == 0 ||
+ strcmp(argv[i],"-i") == 0 ||
+ strcmp(argv[i],"-in") == 0
+ )
+ {
+ i++;
+ file_name_in = argv[i];
+ }
+ else if ( strcmp(argv[i],"--output") == 0 ||
+ strcmp(argv[i],"--out") == 0 ||
+ strcmp(argv[i],"-out") == 0 ||
+ strcmp(argv[i],"-o") == 0
+ )
+ {
+ i++;
+ file_name_out = argv[i];
+ }
+ else if (file_name_in == 0 && file_name_out == 0)
+ {
+ file_name_in = argv[i];
+ }
+ else if (file_name_in && file_name_out == 0)
+ {
+ file_name_out = argv[i];
+ }
+ else
+ {
+ fprintf(stderr, "ERROR: unknown argument '%s'\n",argv[i]);
+ usage();
+ exit(1);
+ }
+ } /* end looping through argc/argv */
+
+
+ if (use_stdin) file_name_in = "stdin";
+ reader = LASReader_Create(file_name_in);
+ if (!reader) {
+ LASError_Print("Unable to read file");
+ exit(1);
+ }
+
+ header = LASReader_GetHeader(reader);
+ if (!header) {
+ LASError_Print("Unable to fetch header for file");
+ exit(1);
+ }
+
+
+
+
+
+ if (use_stdout)
+ {
+ file_out = stdout;
+ }
+ else
+ {
+ if (file_name_out == NULL)
+ {
+ if (file_name_in == NULL)
+ {
+ LASError_Print("No input filename was specified");
+ usage();
+ exit(1);
+ }
+
+ len = (int)strlen(file_name_in);
+ file_name_out = strdup(file_name_in);
+ if (file_name_out[len-3] == '.' && file_name_out[len-2] == 'g' && file_name_out[len-1] == 'z')
+ {
+ len = len - 4;
+ }
+ while (len > 0 && file_name_out[len] != '.')
+ {
+ len--;
+ }
+ file_name_out[len] = '.';
+ file_name_out[len+1] = 't';
+ file_name_out[len+2] = 'x';
+ file_name_out[len+3] = 't';
+ file_name_out[len+4] = '\0';
+ }
+ file_out = fopen(file_name_out, "w");
+
+ if (file_out == 0)
+ {
+ LASError_Print("Could not open file for write");
+ usage();
+ exit(1);
+ }
+ }
+
+
+
+ if (verbose)
+ {
+ print_header(stderr, header, file_name_in);
+ }
+
+ if (header_comment_sign)
+ {
+
+ fprintf(file_out,
+ "%c file signature: '%s'\012",
+ header_comment_sign,
+ LASHeader_GetFileSignature(header)
+ );
+ fprintf(file_out,
+ "%c file source ID: %d\012",
+ header_comment_sign,
+ LASHeader_GetFileSourceId(header)
+ );
+ fprintf(file_out,
+ "%c reserved: %d\012",
+ header_comment_sign,
+ LASHeader_GetReserved(header)
+ );
+ fprintf(file_out,
+ "%c project ID GUID: %s\012",
+ header_comment_sign,
+ LASHeader_GetProjectId(header)
+ );
+ fprintf(file_out,
+ "%c version major.minor: %d.%d\012",
+ header_comment_sign,
+ LASHeader_GetVersionMajor(header),
+ LASHeader_GetVersionMinor(header)
+ );
+ fprintf(file_out,
+ "%c system_identifier: '%s'\012",
+ header_comment_sign,
+ LASHeader_GetSystemId(header)
+ );
+ fprintf(file_out,
+ "%c generating_software: '%s'\012",
+ header_comment_sign,
+ LASHeader_GetSoftwareId(header)
+ );
+ fprintf(file_out,
+ "%c file creation day/year: %d/%d\012",
+ header_comment_sign,
+ LASHeader_GetCreationDOY(header),
+ LASHeader_GetCreationYear(header)
+ );
+ fprintf(file_out,
+ "%c header size %d\012",
+ header_comment_sign,
+ LASHeader_GetHeaderSize(header)
+ );
+ fprintf(file_out,
+ "%c offset to point data %d\012",
+ header_comment_sign,
+ LASHeader_GetDataOffset(header)
+ );
+ fprintf(file_out,
+ "%c number var. length records %d\012",
+ header_comment_sign,
+ LASHeader_GetRecordsCount(header)
+ );
+ fprintf(file_out,
+ "%c point data format %d\012",
+ header_comment_sign,
+ LASHeader_GetDataFormatId(header)
+ );
+ fprintf(file_out,
+ "%c point data record length %d\012",
+ header_comment_sign,
+ LASHeader_GetDataRecordLength(header)
+ );
+ fprintf(file_out,
+ "%c number of point records %d\012",
+ header_comment_sign,
+ LASHeader_GetPointRecordsCount(header)
+ );
+ fprintf(file_out,
+ "%c number of points by return %d %d %d %d %d\012",
+ header_comment_sign,
+ LASHeader_GetPointRecordsByReturnCount(header, 0),
+ LASHeader_GetPointRecordsByReturnCount(header, 1),
+ LASHeader_GetPointRecordsByReturnCount(header, 2),
+ LASHeader_GetPointRecordsByReturnCount(header, 3),
+ LASHeader_GetPointRecordsByReturnCount(header, 4)
+ );
+ fprintf(file_out,
+ "%c scale factor x y z %.6f %.6f %.6f\n",
+ header_comment_sign,
+ LASHeader_GetScaleX(header),
+ LASHeader_GetScaleY(header),
+ LASHeader_GetScaleZ(header)
+ );
+ fprintf(file_out,
+ "%c offset x y z %.6f %.6f %.6f\n",
+ header_comment_sign,
+ LASHeader_GetOffsetX(header),
+ LASHeader_GetOffsetY(header),
+ LASHeader_GetOffsetZ(header)
+ );
+ fprintf(file_out,
+ "%c min x y z %.6f %.6f %.6f\n",
+ header_comment_sign,
+ LASHeader_GetMinX(header),
+ LASHeader_GetMinY(header),
+ LASHeader_GetMinZ(header)
+ );
+ fprintf(file_out,
+ "%c max x y z %.6f %.6f %.6f\n",
+ header_comment_sign,
+ LASHeader_GetMaxX(header),
+ LASHeader_GetMaxY(header),
+ LASHeader_GetMaxZ(header)
+ );
+
+ }
+
+
+
+ p = LASReader_GetNextPoint(reader);
+ while (p)
+ {
+
+ if (skip_invalid && !LASPoint_IsValid(p)) {
+ if (verbose) {
+ LASError_Print("Skipping writing invalid point...");
+ }
+ p = LASReader_GetNextPoint(reader);
+ index -=1;
+ continue;
+ }
+
+ i = 0;
+ for (;;)
+ {
+ LASColorH color = LASPoint_GetColor(p);
+
+ switch (parse_string[i])
+ {
+ /* // the x coordinate */
+ case 'x':
+ lidardouble2string(printstring, LASPoint_GetX(p)); fprintf(file_out, printstring);
+ break;
+ /* // the y coordinate */
+ case 'y':
+ lidardouble2string(printstring, LASPoint_GetY(p)); fprintf(file_out, printstring);
+ break;
+ /* // the z coordinate */
+ case 'z':
+ lidardouble2string(printstring, LASPoint_GetZ(p)); fprintf(file_out, printstring);
+ break;
+ /* // the gps-time */
+ case 't':
+ lidardouble2string(printstring,LASPoint_GetTime(p)); fprintf(file_out, printstring);
+ break;
+ /* // the intensity */
+ case 'i':
+ fprintf(file_out, "%d", LASPoint_GetIntensity(p));
+ break;
+ /* the scan angle */
+ case 'a':
+ fprintf(file_out, "%d", LASPoint_GetScanAngleRank(p));
+ break;
+ /* the number of the return */
+ case 'r':
+ fprintf(file_out, "%d", LASPoint_GetReturnNumber(p));
+ break;
+ /* the classification */
+ case 'c':
+ fprintf(file_out, "%d", LASPoint_GetClassification(p));
+ break;
+ /* the user data */
+ case 'u':
+ fprintf(file_out, "%d", LASPoint_GetUserData(p));
+ break;
+ /* the number of returns of given pulse */
+ case 'n':
+ fprintf(file_out, "%d", LASPoint_GetNumberOfReturns(p));
+ break;
+ /* the red channel color */
+ case 'R':
+ fprintf(file_out, "%d", LASColor_GetRed(color));
+ break;
+ /* the green channel color */
+ case 'G':
+ fprintf(file_out, "%d", LASColor_GetGreen(color));
+ break;
+ /* the blue channel color */
+ case 'B':
+ fprintf(file_out, "%d", LASColor_GetBlue(color));
+ break;
+ case 'M':
+ fprintf(file_out, "%d", index);
+ break;
+ case 'p':
+ fprintf(file_out, "%d", LASPoint_GetPointSourceId(p));
+ break;
+ /* the edge of flight line flag */
+ case 'e':
+ fprintf(file_out, "%d", LASPoint_GetFlightLineEdge(p));
+ break;
+ /* the direction of scan flag */
+ case 'd':
+ fprintf(file_out, "%d", LASPoint_GetScanDirection(p));
+ break;
+ }
+ i++;
+ if (parse_string[i])
+ {
+ fprintf(file_out, "%c", separator_sign);
+ }
+ else
+ {
+ fprintf(file_out, "\012");
+ break;
+ }
+
+ LASColor_Destroy(color);
+
+ }
+
+ p = LASReader_GetNextPoint(reader);
+ index +=1;
+ }
+
+
+ LASReader_Destroy(reader);
+ LASHeader_Destroy(header);
+
+
+
+ fclose(file_out);
+
+ return 0;
+}
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/apps/lascommon.c work/libLAS-1.2.1/apps/lascommon.c
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/apps/lascommon.c 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/apps/lascommon.c 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,637 @@
+#include
+#include
+#include
+#include
+
+#ifdef HAVE_GEOTIFF
+#include
+#endif
+
+
+static const char * LASPointClassification [] = {
+ "Created, never classified",
+ "Unclassified",
+ "Ground",
+ "Low Vegetation",
+ "Medium Vegetation",
+ "High Vegetation",
+ "Building",
+ "Low Point (noise)",
+ "Model Key-point (mass point)",
+ "Water",
+ "Reserved for ASPRS Definition",
+ "Reserved for ASPRS Definition",
+ "Overlap Points",
+ "Reserved for ASPRS Definition",
+ "Reserved for ASPRS Definition",
+ "Reserved for ASPRS Definition",
+ "Reserved for ASPRS Definition",
+ "Reserved for ASPRS Definition",
+ "Reserved for ASPRS Definition",
+ "Reserved for ASPRS Definition",
+ "Reserved for ASPRS Definition",
+ "Reserved for ASPRS Definition",
+ "Reserved for ASPRS Definition",
+ "Reserved for ASPRS Definition",
+ "Reserved for ASPRS Definition",
+ "Reserved for ASPRS Definition",
+ "Reserved for ASPRS Definition",
+ "Reserved for ASPRS Definition",
+ "Reserved for ASPRS Definition",
+ "Reserved for ASPRS Definition",
+ "Reserved for ASPRS Definition",
+ "Reserved for ASPRS Definition"
+};
+
+
+LASPointSummary* SummarizePoints(LASReaderH reader) {
+
+ LASPointSummary* summary;
+ LASPointH p = NULL;
+ LASColorH color = NULL;
+ LASColorH min_color = NULL;
+ LASColorH max_color = NULL;
+
+ uint8_t cls = 0;
+ uint16_t red = 0;
+ uint16_t green = 0;
+ uint16_t blue = 0;
+
+ uint16_t ptsrc = 0;
+
+ int i = 0;
+
+ summary = (LASPointSummary*) malloc(sizeof(LASPointSummary));
+
+ summary->number_of_point_records = 0;
+ for (i=0; i<8;i++)
+ summary->number_of_points_by_return[i] = 0;
+ for (i=0; i<8;i++)
+ summary->number_of_returns_of_given_pulse[i] = 0;
+ for (i=0; i<32;i++)
+ summary->classification[i] = 0;
+ summary->classification_synthetic = 0;
+ summary->classification_keypoint = 0;
+ summary->classification_withheld = 0;
+
+
+
+
+ p = LASReader_GetNextPoint(reader);
+
+ if (!p) {
+ if (LASError_GetLastErrorNum())
+ LASError_Print("Not able to fetch a point. LASReaderH is invalid");
+ else
+ LASError_Print("File does not contain any points to read.");
+ exit(1);
+ }
+
+ summary->pmin = LASPoint_Copy(p);
+ summary->pmax = LASPoint_Copy(p);
+
+ /* If we got this far we have one point */
+ i = 1;
+ while (p)
+ {
+
+ summary->x = LASPoint_GetX(p);
+ LASPoint_SetX(summary->pmin, MIN(summary->x, LASPoint_GetX(summary->pmin)));
+ LASPoint_SetX(summary->pmax, MAX(summary->x, LASPoint_GetX(summary->pmax)));
+
+ summary->y = LASPoint_GetY(p);
+ LASPoint_SetY(summary->pmin, MIN(summary->y, LASPoint_GetY(summary->pmin)));
+ LASPoint_SetY(summary->pmax, MAX(summary->y, LASPoint_GetY(summary->pmax)));
+
+ summary->z = LASPoint_GetZ(p);
+ LASPoint_SetZ(summary->pmin, MIN(summary->z, LASPoint_GetZ(summary->pmin)));
+ LASPoint_SetZ(summary->pmax, MAX(summary->z, LASPoint_GetZ(summary->pmax)));
+
+ summary->intensity = LASPoint_GetIntensity(p);
+ LASPoint_SetIntensity(summary->pmin, MIN(summary->intensity, LASPoint_GetIntensity(summary->pmin)));
+ LASPoint_SetIntensity(summary->pmax, MAX(summary->intensity, LASPoint_GetIntensity(summary->pmax)));
+
+ summary->t = LASPoint_GetTime(p);
+ LASPoint_SetTime(summary->pmin, MIN(summary->t, LASPoint_GetTime(summary->pmin)));
+ LASPoint_SetTime(summary->pmax, MAX(summary->t, LASPoint_GetTime(summary->pmax)));
+
+ summary->retnum = LASPoint_GetReturnNumber(p);
+ LASPoint_SetReturnNumber(summary->pmin, MIN(summary->retnum, LASPoint_GetReturnNumber(summary->pmin)));
+ LASPoint_SetReturnNumber(summary->pmax, MAX(summary->retnum, LASPoint_GetReturnNumber(summary->pmax)));
+
+ summary->numret = LASPoint_GetNumberOfReturns(p);
+ LASPoint_SetNumberOfReturns(summary->pmin, MIN(summary->numret, LASPoint_GetNumberOfReturns(summary->pmin)));
+ LASPoint_SetNumberOfReturns(summary->pmax, MAX(summary->numret, LASPoint_GetNumberOfReturns(summary->pmax)));
+
+ summary->scandir = LASPoint_GetScanDirection(p);
+ LASPoint_SetScanDirection(summary->pmin, MIN(summary->scandir, LASPoint_GetScanDirection(summary->pmin)));
+ LASPoint_SetScanDirection(summary->pmax, MAX(summary->scandir, LASPoint_GetScanDirection(summary->pmax)));
+
+ summary->fedge = LASPoint_GetFlightLineEdge(p);
+ LASPoint_SetFlightLineEdge(summary->pmin, MIN(summary->fedge, LASPoint_GetFlightLineEdge(summary->pmin)));
+ LASPoint_SetFlightLineEdge(summary->pmax, MAX(summary->fedge, LASPoint_GetFlightLineEdge(summary->pmax)));
+
+ summary->scan_angle = LASPoint_GetScanAngleRank(p);
+ LASPoint_SetScanAngleRank(summary->pmin, MIN(summary->scan_angle, LASPoint_GetScanAngleRank(summary->pmin)));
+ LASPoint_SetScanAngleRank(summary->pmax, MAX(summary->scan_angle, LASPoint_GetScanAngleRank(summary->pmax)));
+
+ summary->user_data = LASPoint_GetUserData(p);
+ LASPoint_SetUserData(summary->pmin, MIN(summary->user_data, LASPoint_GetUserData(summary->pmin)));
+ LASPoint_SetUserData(summary->pmax, MAX(summary->user_data, LASPoint_GetUserData(summary->pmax)));
+
+ summary->number_of_point_records = i;
+
+ if (LASPoint_GetReturnNumber(p))
+ summary->number_of_points_by_return[LASPoint_GetReturnNumber(p)-1]++;
+ else
+ summary->number_of_points_by_return[LASPoint_GetReturnNumber(p)]++;
+
+ summary->number_of_returns_of_given_pulse[LASPoint_GetNumberOfReturns(p)]++;
+
+ cls = LASPoint_GetClassification(p);
+ LASPoint_SetClassification(summary->pmin, MIN(cls, LASPoint_GetClassification(summary->pmin)));
+ LASPoint_SetClassification(summary->pmax, MAX(cls, LASPoint_GetClassification(summary->pmax)));
+
+ ptsrc = LASPoint_GetPointSourceId(p);
+ LASPoint_SetPointSourceId(summary->pmin, MIN(ptsrc, LASPoint_GetPointSourceId(summary->pmin)));
+ LASPoint_SetPointSourceId(summary->pmax, MAX(ptsrc, LASPoint_GetPointSourceId(summary->pmax)));
+
+ color = LASPoint_GetColor(p);
+ min_color = LASPoint_GetColor(summary->pmin);
+ max_color = LASPoint_GetColor(summary->pmax);
+
+ red = MIN(LASColor_GetRed(min_color), LASColor_GetRed(color));
+ green = MIN(LASColor_GetGreen(min_color), LASColor_GetGreen(color));
+ blue = MIN(LASColor_GetBlue(min_color), LASColor_GetBlue(color));
+
+ LASColor_SetRed(min_color, red);
+ LASColor_SetGreen(min_color, green);
+ LASColor_SetBlue(min_color, blue);
+
+ LASPoint_SetColor(summary->pmin, min_color);
+ LASColor_Destroy(min_color);
+
+ red = MAX(LASColor_GetRed(max_color), LASColor_GetRed(color));
+ green = MAX(LASColor_GetGreen(max_color), LASColor_GetGreen(color));
+ blue = MAX(LASColor_GetBlue(max_color), LASColor_GetBlue(color));
+
+ LASColor_SetRed(max_color, red);
+ LASColor_SetGreen(max_color, green);
+ LASColor_SetBlue(max_color, blue);
+
+ LASPoint_SetColor(summary->pmax, max_color);
+ LASColor_Destroy(max_color);
+
+ LASColor_Destroy(color);
+
+
+
+ summary->classification[(cls & 31)]++;
+ if (cls & 32) summary->classification_synthetic++;
+ if (cls & 64) summary->classification_keypoint++;
+ if (cls & 128) summary->classification_withheld++;
+
+ /*
+ // if (lasreader->point.point_source_ID < point_min.point_source_ID) point_min.point_source_ID = lasreader->point.point_source_ID;
+ // else if (lasreader->point.point_source_ID > point_max.point_source_ID) point_max.point_source_ID = lasreader->point.point_source_ID;
+
+ */
+ p = LASReader_GetNextPoint(reader);
+
+ if (LASError_GetLastErrorNum()) {
+ LASError_Print("Not able to fetch point");
+ exit(1);
+ }
+
+ i++;
+ }
+
+ return summary;
+}
+
+void print_point(FILE *file, LASPointH point) {
+
+ fprintf(file, "---------------------------------------------------------\n");
+
+ fprintf(file, " X: \t\t%.6f\n",
+ LASPoint_GetX(point)
+ );
+ fprintf(file, " Y: \t\t%.6f\n",
+ LASPoint_GetY(point)
+ );
+ fprintf(file, " Z: \t\t%.6f\n",
+ LASPoint_GetZ(point)
+ );
+ fprintf(file, " Time:\t\t\t%.6f\n",
+ LASPoint_GetTime(point)
+ );
+ fprintf(file, " Return Number:\t%d\n",
+ LASPoint_GetReturnNumber(point)
+ );
+ fprintf(file, " Return Count:\t\t%d\n",
+ LASPoint_GetNumberOfReturns(point)
+ );
+ fprintf(file, " Flightline Edge:\t%d\n",
+ LASPoint_GetFlightLineEdge(point)
+ );
+ fprintf(file, " Intensity:\t\t%d\n",
+ LASPoint_GetIntensity(point)
+ );
+ fprintf(file, " Scan Direction Flag:\t%d\n",
+ LASPoint_GetScanDirection(point)
+ );
+ fprintf(file, " Scan Angle Rank:\t%d\n",
+ LASPoint_GetScanAngleRank(point)
+ );
+
+ fprintf(file, " Classification:\t%d\n",
+ LASPoint_GetClassification(point)
+ );
+ fprintf(file, " Color:\t%d %d %d\n",
+ LASColor_GetRed(LASPoint_GetColor(point)),
+ LASColor_GetGreen(LASPoint_GetColor(point)),
+ LASColor_GetBlue(LASPoint_GetColor(point))
+ );
+}
+void print_point_summary(FILE *file, LASPointSummary* summary, LASHeaderH header) {
+
+ long rgpsum = 0;
+ long pbretsum = 0;
+
+ int i = 0;
+
+ if (!summary) {LASError_Print("Point Summary does not exist!"); exit(1);}
+
+ fprintf(file, "\n---------------------------------------------------------\n");
+ fprintf(file, " Point Inspection Summary\n");
+ fprintf(file, "---------------------------------------------------------\n");
+
+ fprintf(file, " Header Point Count: %d\n",
+ LASHeader_GetPointRecordsCount(header));
+
+ fprintf(file, " Actual Point Count: %d\n",
+ summary->number_of_point_records);
+
+ fprintf(file, "\n Minimum and Maximum Attributes (min,max)\n");
+ fprintf(file, "---------------------------------------------------------\n");
+
+ fprintf(file, " Min X,Y,Z: \t\t%.6f,%.6f,%.6f\n",
+ LASPoint_GetX(summary->pmin),
+ LASPoint_GetY(summary->pmin),
+ LASPoint_GetZ(summary->pmin)
+ );
+ fprintf(file, " Max X,Y,Z: \t\t%.6f,%.6f,%.6f\n",
+ LASPoint_GetX(summary->pmax),
+ LASPoint_GetY(summary->pmax),
+ LASPoint_GetZ(summary->pmax)
+ );
+ fprintf(file, " Bounding Box:\t\t%.2f,%.2f,%.2f,%.2f\n",
+ LASPoint_GetX(summary->pmin),
+ LASPoint_GetY(summary->pmin),
+ LASPoint_GetX(summary->pmax),
+ LASPoint_GetY(summary->pmax)
+ );
+ fprintf(file, " Time:\t\t\t%.6f,%.6f\n",
+ LASPoint_GetTime(summary->pmin),
+ LASPoint_GetTime(summary->pmax)
+ );
+ fprintf(file, " Return Number:\t%d,%d\n",
+ LASPoint_GetReturnNumber(summary->pmin),
+ LASPoint_GetReturnNumber(summary->pmax)
+ );
+ fprintf(file, " Return Count:\t\t%d,%d\n",
+ LASPoint_GetNumberOfReturns(summary->pmin),
+ LASPoint_GetNumberOfReturns(summary->pmax)
+ );
+ fprintf(file, " Flightline Edge:\t%d,%d\n",
+ LASPoint_GetFlightLineEdge(summary->pmin),
+ LASPoint_GetFlightLineEdge(summary->pmax)
+ );
+ fprintf(file, " Intensity:\t\t%d,%d\n",
+ LASPoint_GetIntensity(summary->pmin),
+ LASPoint_GetIntensity(summary->pmax)
+ );
+ fprintf(file, " Scan Direction Flag:\t%d,%d\n",
+ LASPoint_GetScanDirection(summary->pmin),
+ LASPoint_GetScanDirection(summary->pmax)
+ );
+ fprintf(file, " Scan Angle Rank:\t%d,%d\n",
+ LASPoint_GetScanAngleRank(summary->pmin),
+ LASPoint_GetScanAngleRank(summary->pmax)
+ );
+ fprintf(file, " Classification:\t%d,%d\n",
+ LASPoint_GetClassification(summary->pmin),
+ LASPoint_GetClassification(summary->pmax)
+ );
+ fprintf(file, " Point Source Id:\t%d,%d\n",
+ LASPoint_GetPointSourceId(summary->pmin),
+ LASPoint_GetPointSourceId(summary->pmax)
+ );
+ fprintf(file, " Minimum Color:\t %d %d %d\n",
+ LASColor_GetRed(LASPoint_GetColor(summary->pmin)),
+ LASColor_GetGreen(LASPoint_GetColor(summary->pmin)),
+ LASColor_GetBlue(LASPoint_GetColor(summary->pmin))
+ );
+
+ fprintf(file, " Maximum Color:\t %d %d %d\n",
+ LASColor_GetRed(LASPoint_GetColor(summary->pmax)),
+ LASColor_GetGreen(LASPoint_GetColor(summary->pmax)),
+ LASColor_GetBlue(LASPoint_GetColor(summary->pmax))
+ );
+
+ fprintf(file, "\n Number of Points by Return\n");
+ fprintf(file, "---------------------------------------------------------\n");
+
+ for (i = 0; i < 5; i++) {
+ pbretsum = pbretsum + summary->number_of_points_by_return[i];
+ fprintf(file, "\t(%d) %d", i,summary->number_of_points_by_return[i]);
+ }
+ fprintf(file, "\n Total Points: %ld\n", pbretsum);
+
+ fprintf(file, "\n Number of Returns by Pulse\n");
+ fprintf(file, "---------------------------------------------------------\n");
+
+ for (i = 1; i < 8; i++) {
+ rgpsum = rgpsum + summary->number_of_returns_of_given_pulse[i];
+ fprintf(file, "\t(%d) %d", i,summary->number_of_returns_of_given_pulse[i]);
+ }
+ fprintf(file, "\n Total Pulses: %ld\n", rgpsum);
+
+
+ for (i = 0; i < 5; i++) {
+ if (LASHeader_GetPointRecordsByReturnCount(header, i) != summary->number_of_points_by_return[i])
+ {
+ fprintf(file, " \n Actual number of points by return \n is different from header (actual, header):\n");
+ for (i = 0; i < 5; i++) {
+ fprintf(file, "\t(%d,%d)",
+ summary->number_of_points_by_return[i],
+ LASHeader_GetPointRecordsByReturnCount(header, i)
+ );
+ }
+ fprintf(file, "\n");
+ }
+ }
+
+ fprintf(file, "\n Point Classifications\n");
+ fprintf(file, "---------------------------------------------------------\n");
+
+ for (i = 0; i < 32; i++) {
+ if (summary->classification[i]) {
+ fprintf(file, "\t%8d %s (%d)\n",
+ summary->classification[i],
+ LASPointClassification[i],
+ i);
+ }
+ }
+
+ if (summary->classification_synthetic || summary->classification_keypoint || summary->classification_withheld) {
+ fprintf(file, "\n Point Classification Histogram\n");
+ fprintf(file, "---------------------------------------------------------\n");
+
+ if (summary->classification_synthetic) fprintf(file, " +-> flagged as synthetic: %d\n", summary->classification_synthetic);
+ if (summary->classification_keypoint) fprintf(file, " +-> flagged as keypoints: %d\n", summary->classification_keypoint);
+ if (summary->classification_withheld) fprintf(file, " +-> flagged as withheld: %d\n", summary->classification_withheld);
+ }
+}
+
+
+
+void print_header(FILE *file, LASHeaderH header, const char* file_name, int bSkipVLR) {
+
+ char *pszSignature = NULL;
+ char *pszProjectId = NULL;
+ char *pszSystemId = NULL;
+ char *pszSoftwareId = NULL;
+ char *pszProj4 = NULL;
+
+ char *pszVLRUser = NULL;
+ char *pszVLRDescription = NULL;
+ uint16_t nVLRLength = 0;
+ uint16_t nVLRRecordId = 0;
+
+ LASVLRH pVLR = NULL;
+ LASSRSH pSRS = NULL;
+ uint32_t nVLR = 0;
+ int i = 0;
+
+#ifdef HAVE_GEOTIFF
+ const GTIF* pGTIF = NULL;
+#else
+ const void* pGTIF = NULL;
+#endif
+
+ pszSignature = LASHeader_GetFileSignature(header);
+ pszProjectId = LASHeader_GetProjectId(header);
+ pszSystemId = LASHeader_GetSystemId(header);
+ pszSoftwareId = LASHeader_GetSoftwareId(header);
+
+ pSRS = LASHeader_GetSRS(header);
+ pszProj4 = LASSRS_GetProj4(pSRS);
+ pGTIF = LASSRS_GetGTIF(pSRS);
+
+ nVLR = LASHeader_GetRecordsCount(header);
+
+
+
+
+ fprintf(file, "\n---------------------------------------------------------\n");
+ fprintf(file, " Header Summary\n");
+ fprintf(file, "---------------------------------------------------------\n");
+
+
+ fprintf(file, " File Name: %s\n", file_name);
+
+ if (strcmp(pszSignature,"LASF") !=0) {
+ LASError_Print("File signature is not 'LASF'... aborting");
+ exit(1);
+ }
+ fprintf(file, " Version: %d.%d\n",
+ LASHeader_GetVersionMajor(header),
+ LASHeader_GetVersionMinor(header));
+
+ fprintf(file, " Source ID: %d\n",
+ LASHeader_GetFileSourceId(header) ) ;
+
+ fprintf(file, " Reserved: %d\n",
+ LASHeader_GetReserved(header) );
+
+ fprintf(file, " Project ID/GUID: '%s'\n",
+ pszProjectId);
+
+ fprintf(file, " System Identifier: '%s'\n",
+ pszSystemId);
+
+ fprintf(file, " Generating Software: '%s'\n",
+ pszSoftwareId);
+
+ fprintf(file, " File Creation Day/Year: %d/%d\n",
+ LASHeader_GetCreationDOY(header),
+ LASHeader_GetCreationYear(header));
+
+ fprintf(file, " Header Size %d\n",
+ LASHeader_GetHeaderSize(header));
+
+ fprintf(file, " Offset to Point Data %d\n",
+ LASHeader_GetDataOffset(header));
+
+ fprintf(file, " Number Var. Length Records %d\n",
+ LASHeader_GetRecordsCount(header));
+
+ fprintf(file, " Point Data Format %d\n",
+ LASHeader_GetDataFormatId(header));
+
+ fprintf(file, " Point Data Record Length %d\n",
+ LASHeader_GetDataRecordLength(header));
+
+ fprintf(file, " Number of Point Records %d\n",
+ LASHeader_GetPointRecordsCount(header));
+
+ fprintf(file, " Number of Points by Return %d %d %d %d %d\n",
+ LASHeader_GetPointRecordsByReturnCount(header, 0),
+ LASHeader_GetPointRecordsByReturnCount(header, 1),
+ LASHeader_GetPointRecordsByReturnCount(header, 2),
+ LASHeader_GetPointRecordsByReturnCount(header, 3),
+ LASHeader_GetPointRecordsByReturnCount(header, 4));
+
+ fprintf(file, " Scale Factor X Y Z %.6g %.6g %.6g\n",
+ LASHeader_GetScaleX(header),
+ LASHeader_GetScaleY(header),
+ LASHeader_GetScaleZ(header));
+
+ fprintf(file, " Offset X Y Z %.6f %.6f %.6f\n",
+ LASHeader_GetOffsetX(header),
+ LASHeader_GetOffsetY(header),
+ LASHeader_GetOffsetZ(header));
+
+ fprintf(file, " Min X Y Z %.6f %.6f %.6f\n",
+ LASHeader_GetMinX(header),
+ LASHeader_GetMinY(header),
+ LASHeader_GetMinZ(header));
+
+ fprintf(file, " Max X Y Z %.6f %.6f %.6f\n",
+ LASHeader_GetMaxX(header),
+ LASHeader_GetMaxY(header),
+ LASHeader_GetMaxZ(header));
+
+ fprintf(file, " Spatial Reference %s\n",
+ pszProj4);
+#ifdef HAVE_LIBGEOTIFF
+ if (pGTIF) GTIFPrint((GTIF*)pGTIF, 0, 0);
+#endif
+ if (nVLR && !bSkipVLR) {
+
+ fprintf(file, "\n---------------------------------------------------------\n");
+ fprintf(file, " VLR Summary\n");
+ fprintf(file, "---------------------------------------------------------\n");
+
+ for (i = 0; i < (int)nVLR; i++) {
+ pVLR = LASHeader_GetVLR(header, i);
+
+ if (LASError_GetLastErrorNum()) {
+ LASError_Print("Unable to fetch VLR");
+ exit(1);
+ }
+
+ pszVLRUser = LASVLR_GetUserId(pVLR);
+ pszVLRDescription = LASVLR_GetDescription(pVLR);
+ nVLRLength = LASVLR_GetRecordLength(pVLR);
+ nVLRRecordId = LASVLR_GetRecordId(pVLR);
+
+
+ fprintf(file, " User: '%s' - Description: '%s'\n", pszVLRUser, pszVLRDescription);
+ fprintf(file, " ID: %d Length: %d\n\n", nVLRRecordId, nVLRLength);
+
+ LASVLR_Destroy(pVLR);
+ pVLR = NULL;
+
+ free(pszVLRUser);
+ free(pszVLRDescription);
+ }
+
+ }
+ free(pszSignature);
+ free(pszProjectId);
+ free(pszSystemId);
+ free(pszSoftwareId);
+ free(pszProj4);
+}
+
+void repair_header(FILE *file, LASHeaderH header, LASPointSummary* summary) {
+
+ int repair_bounding_box = FALSE;
+ int update_return_counts = FALSE;
+ int err = 0;
+ int i = 0;
+
+ if (! header) {
+ LASError_Print("Inputted header to repair_header was NULL ");
+ exit(1);
+ }
+
+ if (! summary) {
+ LASError_Print("Inputted summary to repair_header was NULL ");
+ exit(1);
+
+ }
+
+
+ if (! repair_bounding_box) {
+ if ( LASHeader_GetMinX(header) != LASPoint_GetX(summary->pmin) )
+ repair_bounding_box = TRUE;
+ if ( LASHeader_GetMinY(header) != LASPoint_GetY(summary->pmin) )
+ repair_bounding_box = TRUE;
+ if ( LASHeader_GetMinZ(header) != LASPoint_GetZ(summary->pmin) )
+ repair_bounding_box = TRUE;
+
+ if ( LASHeader_GetMaxX(header) != LASPoint_GetX(summary->pmax) )
+ repair_bounding_box = TRUE;
+ if ( LASHeader_GetMaxY(header) != LASPoint_GetY(summary->pmax) )
+ repair_bounding_box = TRUE;
+ if ( LASHeader_GetMaxZ(header) != LASPoint_GetZ(summary->pmax) )
+ repair_bounding_box = TRUE;
+ }
+
+ if (repair_bounding_box) {
+ fprintf(file, " Reparing Bounding Box...\n");
+ err = LASHeader_SetMin( header,
+ LASPoint_GetX(summary->pmin),
+ LASPoint_GetY(summary->pmin),
+ LASPoint_GetZ(summary->pmin)
+ );
+ if (err) {
+ LASError_Print("Could not set minimum for header ");
+ exit(1);
+ }
+ err = LASHeader_SetMax( header,
+ LASPoint_GetX(summary->pmax),
+ LASPoint_GetY(summary->pmax),
+ LASPoint_GetZ(summary->pmax)
+ );
+ if (err) {
+ LASError_Print("Could not set minimum for header ");
+ exit(1);
+ }
+
+ }
+
+
+ for (i = 0; i < 5; i++) {
+
+ if (LASHeader_GetPointRecordsByReturnCount(header, i) !=
+ summary->number_of_points_by_return[i])
+ {
+ update_return_counts = TRUE;
+ break;
+ }
+ }
+
+ if (update_return_counts) {
+ fprintf(file, " Reparing Point Count by Return...\n");
+ for (i = 0; i < 5; i++) {
+ LASHeader_SetPointRecordsByReturnCount( header,
+ i,
+ summary->number_of_points_by_return[i]);
+ }
+ }
+}
+
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/apps/lasdiff.c work/libLAS-1.2.1/apps/lasdiff.c
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/apps/lasdiff.c 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/apps/lasdiff.c 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,399 @@
+/***************************************************************************
+ * $Id$
+ * $Date$
+ *
+ * Project: libLAS -- C/C++ read/write library for LAS LIDAR data
+ * Purpose: LAS difference scanning
+ * Author: Martin Isenburg isenburg@cs.unc.edu
+ ***************************************************************************
+ * Copyright (c) 2007, Martin Isenburg isenburg@cs.unc.edu
+ *
+ * See LICENSE.txt in this source distribution for more information.
+ **************************************************************************/
+
+#if defined(_MSC_VER) && defined(USE_VLD)
+#include
+#endif
+
+
+#include
+#include
+#include
+
+#include
+
+
+void usage()
+{
+ fprintf(stderr,"----------------------------------------------------------\n");
+ fprintf(stderr," lasdiff (version %s) usage:\n", LAS_GetVersion());
+ fprintf(stderr,"----------------------------------------------------------\n");
+ fprintf(stderr,"\n");
+
+ fprintf(stderr,"lasdiff lidar1.las lidar2.las\n");
+ fprintf(stderr,"lasdiff lidar1.las lidar1.las.lz\n");
+ fprintf(stderr,"lasdiff -i lidar1.las -i lidar1.laz\n");
+ fprintf(stderr,"lasdiff -h\n");
+ fprintf(stderr, "\nFor more information, see the full documentation for lasdiff at:\n"
+ " http://liblas.org/browser/trunk/doc/lasdiff.txt\n");
+ fprintf(stderr,"----------------------------------------------------------\n");
+}
+
+static int lidardouble2string(char* string, double value0, double value1)
+{
+ int len;
+ len = sprintf(string, "%f", value0) - 1;
+ while (string[len] == '0') len--;
+ if (string[len] != '.') len++;
+ len += sprintf(&(string[len]), " %f", value1) - 1;
+ while (string[len] == '0') len--;
+ if (string[len] != '.') len++;
+ string[len] = '\0';
+ return len;
+}
+
+void print_error(char* message) {
+
+ if (LASError_GetErrorCount()) {
+ fprintf(stdout,
+ "%s: %s (%d) from method %s\n",
+ message,
+ LASError_GetLastErrorMsg(),
+ LASError_GetLastErrorNum(),
+ LASError_GetLastErrorMethod()
+ );
+ } else {
+ fprintf(stdout,
+ "You have encountered an error. '%s'\n",
+ message
+ );
+ }
+
+}
+
+int main(int argc, char *argv[])
+{
+ int i;
+ char* file_name_in1 = 0;
+ char* file_name_in2 = 0;
+
+ LASReaderH reader1 = NULL;
+ LASReaderH reader2 = NULL;
+
+ for (i = 1; i < argc; i++)
+ {
+ if (strcmp(argv[i],"-i") == 0)
+ {
+ i++;
+ if (file_name_in1) file_name_in2 = argv[i];
+ else file_name_in1 = argv[i];
+ }
+ else if (i == argc - 2 && file_name_in1 == 0 && file_name_in2 == 0)
+ {
+ if (file_name_in1) file_name_in2 = argv[i];
+ else file_name_in1 = argv[i];
+ }
+ else if (i == argc - 1 && file_name_in1 && file_name_in2 == 0)
+ {
+ if (file_name_in1) file_name_in2 = argv[i];
+ else file_name_in1 = argv[i];
+ }
+ else
+ {
+ usage();
+ }
+ }
+
+
+ if (file_name_in1)
+ {
+ reader1 = LASReader_Create(file_name_in1);
+ if (!reader1) {
+ print_error("Could not open file 1");
+ exit(1);
+ }
+ }
+ else
+ {
+ print_error("No input specified for first file");
+ }
+
+ if (file_name_in2)
+ {
+ reader2 = LASReader_Create(file_name_in2);
+ if (!reader2) {
+ print_error("Could not open file 2");
+ exit(1);
+ }
+ }
+ else
+ {
+ print_error("No input specified for second file");
+ usage();
+ }
+
+
+
+ // check header
+
+ if (memcmp((const void*)&(lasreader1->header), (const void*)&(lasreader2->header), sizeof(LASheader)))
+ {
+ char printstring[128];
+
+ fprintf(stderr, "header is different\n");
+
+ LASheader* lasheader1 = &(lasreader1->header);
+ LASheader* lasheader2 = &(lasreader2->header);
+
+ bool fatal_difference = false;
+
+ if (strncmp(lasheader1->file_signature, lasheader2->file_signature, 4))
+ {
+ fprintf(stderr, " file_signature: %s %s\n", lasheader1->file_signature, lasheader2->file_signature);
+ }
+ if (lasheader2->file_source_id != lasheader2->file_source_id)
+ {
+ fprintf(stderr, " file_source_id: %d %d\n", lasheader1->file_source_id, lasheader2->file_source_id);
+ }
+ if (lasheader1->reserved != lasheader2->reserved)
+ {
+ fprintf(stderr, " reserved: %d %d\n", lasheader1->reserved, lasheader2->reserved);
+ }
+ if (lasheader1->project_ID_GUID_data_1 != lasheader2->project_ID_GUID_data_1)
+ {
+ fprintf(stderr, " project_ID_GUID_data_1: %d %d\n", lasheader1->project_ID_GUID_data_1, lasheader2->project_ID_GUID_data_1);
+ }
+ if (lasheader1->project_ID_GUID_data_2 != lasheader2->project_ID_GUID_data_2)
+ {
+ fprintf(stderr, " project_ID_GUID_data_2: %d %d\n", lasheader1->project_ID_GUID_data_2, lasheader2->project_ID_GUID_data_2);
+ }
+ if (lasheader1->project_ID_GUID_data_3 != lasheader2->project_ID_GUID_data_3)
+ {
+ fprintf(stderr, " project_ID_GUID_data_3: %d %d\n", lasheader1->project_ID_GUID_data_3, lasheader2->project_ID_GUID_data_3);
+ }
+ if (strncmp(lasheader1->project_ID_GUID_data_4, lasheader2->project_ID_GUID_data_4, 8))
+ {
+ fprintf(stderr, " project_ID_GUID_data_4: %s %s\n", lasheader1->project_ID_GUID_data_4, lasheader2->project_ID_GUID_data_4);
+ }
+ if (lasheader1->version_major != lasheader2->version_major || lasheader1->version_minor != lasheader2->version_minor)
+ {
+ fprintf(stderr, " version: %d.%d %d.%d\n", lasheader1->version_major, lasheader1->version_minor, lasheader2->version_major, lasheader2->version_minor);
+ }
+ if (strncmp(lasheader1->system_identifier, lasheader2->system_identifier, 32))
+ {
+ fprintf(stderr, " system_identifier: %s %s\n", lasheader1->system_identifier, lasheader2->system_identifier);
+ }
+ if (strncmp(lasheader1->generating_software, lasheader2->generating_software, 32))
+ {
+ fprintf(stderr, " generating_software: %s %s\n", lasheader1->generating_software, lasheader2->generating_software);
+ }
+ if (lasheader1->file_creation_day != lasheader2->file_creation_day || lasheader1->file_creation_year != lasheader2->file_creation_year)
+ {
+ fprintf(stderr, " file_creation day.year: %d.%d %d.%d\n", lasheader1->file_creation_day, lasheader1->file_creation_year, lasheader2->file_creation_day, lasheader2->file_creation_year);
+ }
+ if (lasheader1->header_size != lasheader2->header_size)
+ {
+ fprintf(stderr, " header_size: %d %d\n", lasheader1->header_size, lasheader2->header_size);
+ fatal_difference = true;
+ }
+ if (lasheader1->offset_to_point_data != lasheader2->offset_to_point_data)
+ {
+ fprintf(stderr, " offset_to_point_data: %d %d\n", lasheader1->offset_to_point_data, lasheader2->offset_to_point_data);
+ }
+ if (lasheader1->point_data_format != lasheader2->point_data_format)
+ {
+ fprintf(stderr, " point_data_format: %d %d\n", lasheader1->point_data_format, lasheader2->point_data_format);
+ fatal_difference = true;
+ }
+ if (lasheader1->point_data_record_length != lasheader2->point_data_record_length)
+ {
+ fprintf(stderr, " point_data_record_length: %d %d\n", lasheader1->point_data_record_length, lasheader2->point_data_record_length);
+ fatal_difference = true;
+ }
+ if (lasheader1->number_of_point_records != lasheader2->number_of_point_records)
+ {
+ fprintf(stderr, " number_of_point_records: %d %d\n", lasheader1->number_of_point_records, lasheader2->number_of_point_records);
+ fatal_difference = true;
+ }
+ if (lasheader1->number_of_points_by_return[0] != lasheader2->number_of_points_by_return[0] || lasheader1->number_of_points_by_return[1] != lasheader2->number_of_points_by_return[1] || lasheader1->number_of_points_by_return[2] != lasheader2->number_of_points_by_return[2] || lasheader1->number_of_points_by_return[3] != lasheader2->number_of_points_by_return[3] || lasheader1->number_of_points_by_return[4] != lasheader2->number_of_points_by_return[4])
+ {
+ fprintf(stderr, " number_of_points_by_return: (%d,%d,%d,%d,%d) (%d,%d,%d,%d,%d)\n", lasheader1->number_of_points_by_return[0], lasheader1->number_of_points_by_return[1], lasheader1->number_of_points_by_return[2], lasheader1->number_of_points_by_return[3], lasheader1->number_of_points_by_return[4], lasheader2->number_of_points_by_return[0], lasheader2->number_of_points_by_return[1], lasheader2->number_of_points_by_return[2], lasheader2->number_of_points_by_return[3], lasheader2->number_of_points_by_return[4]);
+ }
+ if (lasheader1->x_scale_factor != lasheader2->x_scale_factor)
+ {
+ lidardouble2string(printstring, lasheader1->x_scale_factor, lasheader2->x_scale_factor); fprintf(stderr, " x_scale_factor: %s\n", printstring);
+ fatal_difference = true;
+ }
+ if (lasheader1->y_scale_factor != lasheader2->y_scale_factor)
+ {
+ lidardouble2string(printstring, lasheader1->y_scale_factor, lasheader2->y_scale_factor); fprintf(stderr, " y_scale_factor: %s\n", printstring);
+ fatal_difference = true;
+ }
+ if (lasheader1->z_scale_factor != lasheader2->z_scale_factor)
+ {
+ lidardouble2string(printstring, lasheader1->z_scale_factor, lasheader2->z_scale_factor); fprintf(stderr, " z_scale_factor: %s\n", printstring);
+ fatal_difference = true;
+ }
+ if (lasheader1->x_offset != lasheader2->x_offset)
+ {
+ lidardouble2string(printstring, lasheader1->x_offset, lasheader2->x_offset); fprintf(stderr, " x_offset: %s\n", printstring);
+ fatal_difference = true;
+ }
+ if (lasheader1->y_offset != lasheader2->y_offset)
+ {
+ lidardouble2string(printstring, lasheader1->y_offset, lasheader2->y_offset); fprintf(stderr, " y_offset: %s\n", printstring);
+ fatal_difference = true;
+ }
+ if (lasheader1->z_offset != lasheader2->z_offset)
+ {
+ lidardouble2string(printstring, lasheader1->z_offset, lasheader2->z_offset); fprintf(stderr, " z_offset: %s\n", printstring);
+ fatal_difference = true;
+ }
+ if (lasheader1->max_x != lasheader2->max_x)
+ {
+ lidardouble2string(printstring, lasheader1->max_x, lasheader2->max_x); fprintf(stderr, " max_x: %s\n", printstring);
+ }
+ if (lasheader1->min_x != lasheader2->min_x)
+ {
+ lidardouble2string(printstring, lasheader1->min_x, lasheader2->min_x); fprintf(stderr, " min_x: %s\n", printstring);
+ }
+ if (lasheader1->max_y != lasheader2->max_y)
+ {
+ lidardouble2string(printstring, lasheader1->max_y, lasheader2->max_y); fprintf(stderr, " max_y: %s\n", printstring);
+ }
+ if (lasheader1->min_y != lasheader2->min_y)
+ {
+ lidardouble2string(printstring, lasheader1->min_y, lasheader2->min_y); fprintf(stderr, " min_y: %s\n", printstring);
+ }
+ if (lasheader1->max_z != lasheader2->max_z)
+ {
+ lidardouble2string(printstring, lasheader1->max_z, lasheader2->max_z); fprintf(stderr, " max_z: %s\n", printstring);
+ }
+ if (lasheader1->min_z != lasheader2->min_z)
+ {
+ lidardouble2string(printstring, lasheader1->min_z, lasheader2->min_z); fprintf(stderr, " min_z: %s\n", printstring);
+ }
+ if (fatal_difference)
+ {
+ fprintf(stderr, "difference was fatal ... no need to check points\n");
+ exit(1);
+ }
+ }
+
+ // check variable header (and user data)
+
+ if (lasreader1->header.offset_to_point_data == lasreader2->header.offset_to_point_data)
+ {
+ bool already_output = false;
+ for (unsigned int u = lasreader1->header.header_size; u < lasreader1->header.offset_to_point_data; u++)
+ {
+ if (fgetc(file_in1) != fgetc(file_in2))
+ {
+ if (!already_output)
+ {
+ fprintf(stderr, "variable header (or user data) is different at byte %d of %d\n", lasreader1->header.header_size - u, lasreader1->header.offset_to_point_data - u);
+ already_output = true;
+ }
+ }
+ }
+ }
+ else
+ {
+ unsigned int u;
+ fprintf(stderr, "skipping check of variable header (or user data) due to length difference\n");
+ for (u = lasreader1->header.header_size; u < lasreader1->header.offset_to_point_data; u++) fgetc(file_in1);
+ for (u = lasreader2->header.header_size; u < lasreader2->header.offset_to_point_data; u++) fgetc(file_in2);
+ }
+
+ // check points
+
+ while (true)
+ {
+ if (lasreader1->read_point())
+ {
+ if (lasreader2->read_point())
+ {
+ if (memcmp((const void*)&(lasreader1->point), (const void*)&(lasreader2->point), sizeof(LASpoint)))
+ {
+ fprintf(stderr, "point %d of %d is different\n", lasreader1->p_count, lasreader1->npoints);
+ if (lasreader1->point.x != lasreader2->point.x)
+ {
+ fprintf(stderr, " x: %d %d\n", lasreader1->point.x, lasreader2->point.x);
+ }
+ if (lasreader1->point.y != lasreader2->point.y)
+ {
+ fprintf(stderr, " y: %d %d\n", lasreader1->point.y, lasreader2->point.y);
+ }
+ if (lasreader1->point.z != lasreader2->point.z)
+ {
+ fprintf(stderr, " z: %d %d\n", lasreader1->point.z, lasreader2->point.z);
+ }
+ if (lasreader1->point.intensity != lasreader2->point.intensity)
+ {
+ fprintf(stderr, " intensity: %d %d\n", lasreader1->point.intensity, lasreader2->point.intensity);
+ }
+ if (lasreader1->point.return_number != lasreader2->point.return_number)
+ {
+ fprintf(stderr, " return_number: %d %d\n", lasreader1->point.return_number, lasreader2->point.return_number);
+ }
+ if (lasreader1->point.number_of_returns_of_given_pulse != lasreader2->point.number_of_returns_of_given_pulse)
+ {
+ fprintf(stderr, " number_of_returns_of_given_pulse: %d %d\n", lasreader1->point.number_of_returns_of_given_pulse, lasreader2->point.number_of_returns_of_given_pulse);
+ }
+ if (lasreader1->point.scan_direction_flag != lasreader2->point.scan_direction_flag)
+ {
+ fprintf(stderr, " scan_direction_flag: %d %d\n", lasreader1->point.scan_direction_flag, lasreader2->point.scan_direction_flag);
+ }
+ if (lasreader1->point.edge_of_flight_line != lasreader2->point.edge_of_flight_line)
+ {
+ fprintf(stderr, " edge_of_flight_line: %d %d\n", lasreader1->point.edge_of_flight_line, lasreader2->point.edge_of_flight_line);
+ }
+ if (lasreader1->point.classification != lasreader2->point.classification)
+ {
+ fprintf(stderr, " classification: %d %d\n", lasreader1->point.classification, lasreader2->point.classification);
+ }
+ if (lasreader1->point.scan_angle_rank != lasreader2->point.scan_angle_rank)
+ {
+ fprintf(stderr, " scan_angle_rank: %d %d\n", lasreader1->point.scan_angle_rank, lasreader2->point.scan_angle_rank);
+ }
+ if (lasreader1->point.user_data != lasreader2->point.user_data)
+ {
+ fprintf(stderr, " user_data: %d %d\n", lasreader1->point.user_data, lasreader2->point.user_data);
+ }
+ if (lasreader1->point.point_source_ID != lasreader2->point.point_source_ID)
+ {
+ fprintf(stderr, " point_source_ID: %d %d\n", lasreader1->point.point_source_ID, lasreader2->point.point_source_ID);
+ }
+ exit(1);
+ }
+ }
+ else
+ {
+ fprintf(stderr, "%s has fewer points (%d) than %s\n", lasreader2->p_count, file_name_in2, file_name_in1);
+ exit(1);
+ }
+ }
+ else
+ {
+ if (lasreader2->read_point())
+ {
+ fprintf(stderr, "%s has more points (%d) than %s\n", file_name_in2, lasreader2->p_count, file_name_in1);
+ exit(1);
+ }
+ else
+ {
+ break;
+ }
+ }
+ }
+
+ fprintf(stderr, "files are identical. both have %d points\n", lasreader1->p_count);
+
+ lasreader1->close();
+ lasreader2->close();
+
+ fclose(file_in1);
+ fclose(file_in2);
+
+ return 0;
+}
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/apps/lasinfo.c work/libLAS-1.2.1/apps/lasinfo.c
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/apps/lasinfo.c 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/apps/lasinfo.c 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,418 @@
+/***************************************************************************
+ * $Id$
+ * $Date$
+ *
+ * Project: libLAS -- C/C++ read/write library for LAS LIDAR data
+ * Purpose: LAS information reporting and setting
+ * Author: Martin Isenburg isenburg@cs.unc.edu
+ ***************************************************************************
+ * Copyright (c) 2007, Martin Isenburg isenburg@cs.unc.edu
+ *
+ * See LICENSE.txt in this source distribution for more information.
+ **************************************************************************/
+
+/* TODO: Remove before releasing */
+#if defined(_MSC_VER) && defined(USE_VLD)
+#include
+#endif
+
+
+#include
+#include
+#include
+
+#include
+
+
+LASPointSummary* SummarizePoints(LASReaderH reader);
+void print_point_summary(FILE *file, LASPointSummary* summary, LASHeaderH header);
+void print_header(FILE *file, LASHeaderH header, const char* file_name, int bSkipVLR);
+
+void usage()
+{
+ fprintf(stderr,"----------------------------------------------------------\n");
+ fprintf(stderr," lasinfo (version %s) usage:\n", LAS_GetVersion());
+ fprintf(stderr,"----------------------------------------------------------\n");
+ fprintf(stderr,"\n");
+
+ fprintf(stderr,"Printing simple header info:\n");
+ fprintf(stderr," lasinfo lidar.las\n");
+ fprintf(stderr,"\n");
+
+ fprintf(stderr,"Checking point information:\n");
+ fprintf(stderr," lasinfo --input lidar.las --check\n");
+ fprintf(stderr,"\n");
+
+ fprintf(stderr,"Print header info and point summary and redirect output to a file:\n");
+ fprintf(stderr," lasinfo --check --input lidar.las 2> output.txt\n");
+ fprintf(stderr,"\n");
+
+ fprintf(stderr,"Read from stdin, scan the points, and skip printing VLR info:\n");
+ fprintf(stderr," lasinfo --stdin --check --skip_vlr < lidar.las\n");
+ fprintf(stderr,"\n");
+
+ fprintf(stderr,"Repairing header info to reflect point data:\n");
+ fprintf(stderr," lasinfo -i lidar.las --repair\n");
+ fprintf(stderr,"\n");
+
+ fprintf(stderr,"Altering header info:\n");
+ fprintf(stderr, " lasinfo -i lidar.las --system_identifier \"hello world!\" "
+ "--generating_software \"this is a test (-:\" --file_creation 8 2007\n");
+ fprintf(stderr,"\n");
+
+ fprintf(stderr,"Print this output:\n");
+ fprintf(stderr, " lasinfo --help\n");
+ fprintf(stderr,"\n");
+
+ fprintf(stderr, "\nFor more information, see the full documentation for lasinfo at:\n"
+ " http://liblas.org/browser/trunk/doc/lasinfo.txt\n");
+ fprintf(stderr,"----------------------------------------------------------\n");
+
+}
+
+
+
+int main(int argc, char *argv[])
+{
+ int i;
+ char* file_name = NULL;
+
+ LASReaderH reader = NULL;
+ LASHeaderH header = NULL;
+ LASWriterH writer = NULL;
+
+ int check_points = FALSE;
+ int repair_header = FALSE;
+ int change_header = FALSE;
+ int repair_bounding_box = FALSE;
+ int use_stdin = FALSE;
+ int update_return_counts = FALSE;
+ int skip_vlr = FALSE;
+
+
+ char *system_identifier = NULL;
+ char *generating_software = NULL;
+ uint8_t file_creation_day = 0;
+ uint8_t file_creation_year = 0;
+
+ int err = 0;
+
+ LASPointSummary* summary = NULL;
+
+ for (i = 1; i < argc; i++)
+ {
+ if ( strcmp(argv[i],"-h") == 0 ||
+ strcmp(argv[i],"--help") == 0
+ )
+ {
+ usage();
+ exit(0);
+ }
+ else if ( strcmp(argv[i],"--input") == 0 ||
+ strcmp(argv[i],"-input") == 0 ||
+ strcmp(argv[i],"-i") == 0 ||
+ strcmp(argv[i],"-in") == 0
+ )
+ {
+ i++;
+ file_name = argv[i];
+ }
+ else if ( strcmp(argv[i], "--points") == 0 ||
+ strcmp(argv[i], "--check") == 0 ||
+ strcmp(argv[i], "--check_points") == 0 ||
+ strcmp(argv[i], "-c") == 0 ||
+ strcmp(argv[i], "-points") == 0 ||
+ strcmp(argv[i], "-check") == 0 ||
+ strcmp(argv[i], "-check_points") == 0
+ )
+ {
+ check_points = TRUE;
+ }
+ else if ( strcmp(argv[i], "--nocheck") == 0 ||
+ strcmp(argv[i], "-nocheck") == 0
+ )
+ {
+ check_points = FALSE;
+ }
+ else if ( strcmp(argv[i], "--stdin") == 0 ||
+ strcmp(argv[i], "-ilas") == 0
+ )
+ {
+ use_stdin = TRUE;
+ }
+
+ else if ( strcmp(argv[i], "--repair") == 0 ||
+ strcmp(argv[i], "-r") == 0 ||
+ strcmp(argv[i], "-repair_header") == 0 ||
+ strcmp(argv[i], "-repair") == 0
+ )
+ {
+ repair_header = TRUE;
+ check_points = TRUE;
+ }
+
+ else if ( strcmp(argv[i], "--repair_bb") == 0 ||
+ strcmp(argv[i], "--repair_bounding_box") == 0 ||
+ strcmp(argv[i], "--repair_boundingbox") == 0 ||
+ strcmp(argv[i], "-repair_bb") == 0 ||
+ strcmp(argv[i], "-repair_bounding_box") == 0 ||
+ strcmp(argv[i], "-repair_boundingbox") == 0 ||
+ strcmp(argv[i], "-repair") == 0 ||
+ strcmp(argv[i], "-rb") == 0
+
+ )
+ {
+ repair_bounding_box = TRUE;
+ check_points = TRUE;
+ }
+
+ else if ( strcmp(argv[i],"--system_identifier") == 0 ||
+ strcmp(argv[i],"-system_identifier") == 0 ||
+ strcmp(argv[i],"-s") == 0 ||
+ strcmp(argv[i],"-sys_id") == 0)
+ {
+ i++;
+ system_identifier = (char*) malloc(31 * sizeof(char));
+ strcpy(system_identifier, argv[i]);
+ change_header = TRUE;
+ }
+
+ else if ( strcmp(argv[i],"--generating_software") == 0 ||
+ strcmp(argv[i],"-generating_software") == 0 ||
+ strcmp(argv[i],"-g") == 0 ||
+ strcmp(argv[i],"-gen_soft") == 0)
+ {
+ i++;
+ generating_software = (char*) malloc(31*sizeof(char));
+ strcpy(generating_software, argv[i]);
+ change_header = TRUE;
+ }
+
+ else if ( strcmp(argv[i],"--file_creation") == 0 ||
+ strcmp(argv[i],"-file_creation") == 0)
+ {
+ /* XXX - mloskot: Consider replacing atoi with strtol,
+ see http://www.iso-9899.info/wiki/Converting */
+ i++;
+ file_creation_day = (uint8_t)atoi(argv[i]);
+ i++;
+ file_creation_year = (uint8_t)atoi(argv[i]);
+ change_header = TRUE;
+ }
+ else if ( strcmp(argv[i],"--skip_vlr") == 0 ||
+ strcmp(argv[i],"--no_vlr") == 0)
+ {
+ skip_vlr = TRUE;
+ }
+ else if (file_name == NULL)
+ {
+ file_name = argv[i];
+ }
+ else
+ {
+ usage();
+ exit(1);
+ fprintf(stderr, "ERROR: unknown argument '%s'\n",argv[i]);
+ }
+ }
+
+ if (use_stdin) {
+ file_name = "stdin";
+ }
+
+ if (!file_name) {
+ LASError_Print("No filename was provided to be opened");
+ usage();
+ exit(1);
+ }
+
+ reader = LASReader_Create(file_name);
+ if (!reader) {
+ LASError_Print("Could not open file ");
+ exit(1);
+ }
+
+ header = LASReader_GetHeader(reader);
+ if (!header) {
+ LASError_Print("Could not get LASHeader ");
+ exit(1);
+ }
+
+
+
+ print_header(stdout, header, file_name, skip_vlr);
+
+ if (change_header) {
+ if (system_identifier) {
+ err = LASHeader_SetSystemId (header, system_identifier);
+ if (err) LASError_Print("Could not set SystemId");
+ }
+ if (generating_software) {
+ err = LASHeader_SetSoftwareId(header, generating_software);
+ if (err) LASError_Print("Could not set SoftwareId");
+ }
+ if ( file_creation_day || file_creation_year) {
+ err = LASHeader_SetCreationDOY(header, file_creation_day);
+ if (err) LASError_Print("Could not set file creation day");
+ err = LASHeader_SetCreationYear(header, file_creation_year);
+ if (err) LASError_Print("Could not set file creation year");
+ }
+
+ /* We need to wipe out the reader and make a writer. */
+ if (reader) {
+ LASReader_Destroy(reader);
+ reader = NULL;
+ }
+
+ writer = LASWriter_Create(file_name, header, LAS_MODE_APPEND);
+ if (!writer) {
+ LASError_Print("Problem creating LASWriterH object");
+ LASHeader_Destroy(header);
+ header = NULL;
+ exit(1);
+ }
+
+ if (writer) LASWriter_Destroy(writer);
+ writer = NULL;
+ if (header) LASHeader_Destroy(header);
+ header = NULL;
+ }
+
+ if (check_points)
+ {
+ if (!reader) {
+ reader = LASReader_Create(file_name);
+ if (!reader) {
+ LASError_Print("Could not open file ");
+ exit(1);
+ }
+ }
+
+ if (! header) {
+ header = LASReader_GetHeader(reader);
+ if (!header) {
+ LASError_Print("Could not get LASHeader ");
+ exit(1);
+ }
+ }
+
+ if (!summary)
+ summary = SummarizePoints(reader);
+ print_point_summary(stdout, summary, header);
+
+ if (repair_header) {
+ fprintf(stdout, "\n---------------------------------------------------------\n");
+ fprintf(stdout, " Repair Summary\n");
+ fprintf(stdout, "---------------------------------------------------------\n");
+
+
+ if (use_stdin) {
+ LASError_Print("Cannot update header information on piped input!");
+ exit(1);
+ }
+
+
+ if (! header) {
+ header = LASReader_GetHeader(reader);
+ if (!header) {
+ LASError_Print("Could not get LASHeader ");
+ exit(1);
+ }
+ }
+
+ if (! repair_bounding_box) {
+ if ( LASHeader_GetMinX(header) != LASPoint_GetX(summary->pmin) )
+ repair_bounding_box = TRUE;
+ if ( LASHeader_GetMinY(header) != LASPoint_GetY(summary->pmin) )
+ repair_bounding_box = TRUE;
+ if ( LASHeader_GetMinZ(header) != LASPoint_GetZ(summary->pmin) )
+ repair_bounding_box = TRUE;
+
+ if ( LASHeader_GetMaxX(header) != LASPoint_GetX(summary->pmax) )
+ repair_bounding_box = TRUE;
+ if ( LASHeader_GetMaxY(header) != LASPoint_GetY(summary->pmax) )
+ repair_bounding_box = TRUE;
+ if ( LASHeader_GetMaxZ(header) != LASPoint_GetZ(summary->pmax) )
+ repair_bounding_box = TRUE;
+ }
+
+ if (repair_bounding_box) {
+ fprintf(stdout, " Reparing Bounding Box...\n");
+ err = LASHeader_SetMin( header,
+ LASPoint_GetX(summary->pmin),
+ LASPoint_GetY(summary->pmin),
+ LASPoint_GetZ(summary->pmin)
+ );
+ if (err) {
+ LASError_Print("Could not set minimum for header ");
+ exit(1);
+ }
+ err = LASHeader_SetMax( header,
+ LASPoint_GetX(summary->pmax),
+ LASPoint_GetY(summary->pmax),
+ LASPoint_GetZ(summary->pmax)
+ );
+ if (err) {
+ LASError_Print("Could not set minimum for header ");
+ exit(1);
+ }
+
+ }
+
+
+ for (i = 0; i < 5; i++) {
+
+ if (LASHeader_GetPointRecordsByReturnCount(header, i) !=
+ summary->number_of_points_by_return[i])
+ {
+ update_return_counts = TRUE;
+ break;
+ }
+ }
+
+ if (update_return_counts) {
+ fprintf(stdout, " Reparing Point Count by Return...\n");
+ for (i = 0; i < 5; i++) {
+ LASHeader_SetPointRecordsByReturnCount( header,
+ i,
+ summary->number_of_points_by_return[i]);
+ }
+ }
+
+
+
+
+ if (reader) {
+ LASReader_Destroy(reader);
+ reader = NULL;
+ }
+
+ writer = LASWriter_Create(file_name, header, LAS_MODE_APPEND);
+ if (!writer) {
+ LASError_Print("Problem creating LASWriterH object for append");
+ LASHeader_Destroy(header);
+ header = NULL;
+ exit(1);
+ }
+ LASWriter_Destroy(writer);
+ writer = NULL;
+ LASHeader_Destroy(header);
+ header = NULL;
+
+
+ }
+ if (summary) {
+ LASPoint_Destroy(summary->pmin);
+ LASPoint_Destroy(summary->pmax);
+ free(summary);
+
+ }
+
+}
+
+ if (reader) LASReader_Destroy(reader);
+ if (header) LASHeader_Destroy(header);
+
+
+ return 0;
+}
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/apps/lasmerge.c work/libLAS-1.2.1/apps/lasmerge.c
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/apps/lasmerge.c 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/apps/lasmerge.c 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,512 @@
+/***************************************************************************
+ * $Id$
+ * $Date$
+ *
+ * Project: libLAS -- C/C++ read/write library for LAS LIDAR data
+ * Purpose: LAS file merging
+ * Author: Martin Isenburg isenburg@cs.unc.edu
+ ***************************************************************************
+ * Copyright (c) 2007, Martin Isenburg isenburg@cs.unc.edu
+ *
+ * See LICENSE.txt in this source distribution for more information.
+ **************************************************************************/
+
+
+#include
+#include
+#include
+#include
+
+#include "liblas.h"
+
+LASPointSummary* SummarizePoints(LASReaderH reader);
+void print_point_summary(FILE *file, LASPointSummary* summary, LASHeaderH header);
+void print_header(FILE *file, LASHeaderH header, const char* file_name, int bSkipVLR);
+
+void usage()
+{
+
+ fprintf(stderr,"----------------------------------------------------------\n");
+ fprintf(stderr," lasmerge (version %s) usage:\n", LAS_GetVersion());
+ fprintf(stderr,"----------------------------------------------------------\n");
+ fprintf(stderr,"\n");
+
+ fprintf(stderr,"Merge using a list of files:\n");
+ fprintf(stderr," lasmerge -i lasfiles.txt -o out.las\n");
+ fprintf(stderr,"\n");
+
+ fprintf(stderr,"Manually list files to merge:\n");
+ fprintf(stderr," lasmerge -i file1.las -i file2.las -i file3.las -o out.las\n");
+ fprintf(stderr,"\n");
+
+ fprintf(stderr,"Merge to stdout:\n");
+ fprintf(stderr," lasmerge -i file1.las -i file2.las --stdout\n");
+ fprintf(stderr,"\n");
+
+ fprintf(stderr,"Merge and set scale:\n");
+ fprintf(stderr, " lasmerge --input lasfiles.txt --scale 0.01 --output out.las\n");
+ fprintf(stderr,"\n");
+
+ fprintf(stderr,"Merge and set scale individually:\n");
+ fprintf(stderr, " lasmerge --input lasfiles.txt --xyz_scale 0.01 0.01 0.1 --output out.las\n");
+ fprintf(stderr,"\n");
+
+ fprintf(stderr,"Merge and set offset individually:\n");
+ fprintf(stderr, " lasmerge --input lasfiles.txt --xyz_offset 0.01 0.01 0.1 --output out.las\n");
+ fprintf(stderr,"\n");
+
+ fprintf(stderr,"Print this output:\n");
+ fprintf(stderr, " lasmerge --help\n");
+ fprintf(stderr,"\n");
+
+ fprintf(stderr, "For more information, see the full documentation for lasmerge at:\n"
+ " http://liblas.org/browser/trunk/doc/lasmerge.txt\n");
+ fprintf(stderr,"----------------------------------------------------------\n");
+
+}
+
+void ptime(const char *const msg)
+{
+ float t= ((float)clock())/CLOCKS_PER_SEC;
+ fprintf(stderr, "cumulative CPU time thru %s = %f\n", msg, t);
+}
+
+int main(int argc, char *argv[])
+{
+ int i;
+ int verbose = FALSE;
+ int skip_vlr = FALSE;
+ int num_file_name_in = 0;
+ int alloced_file_name_in = 32;
+ char** file_names_in = (char**)malloc(sizeof(char*)*alloced_file_name_in);
+ char* file_name_out = 0;
+ int use_stdout = FALSE;
+ double xyz_scale[3] = {0.0, 0.0, 0.0};
+ double xyz_offset[3] = {0.0, 0.0, 0.0};
+
+ double minx, miny, maxx, maxy, minz, maxz;
+ double x_scale_factor, y_scale_factor, z_scale_factor;
+
+
+ LASHeaderH merged_header=NULL;
+ LASHeaderH header = NULL;
+ LASReaderH reader = NULL;
+ LASWriterH writer = NULL;
+ LASPointH p = NULL;
+
+ FILE* file = NULL;
+
+ int smallest_int = (1<<31)+10;
+ int largest_int = smallest_int-1-20;
+
+ int same = TRUE;
+ LASPointSummary* summary = NULL;
+
+ for (i = 1; i < argc; i++)
+ {
+ if ( strcmp(argv[i],"-h") == 0 ||
+ strcmp(argv[i],"--help") == 0
+ )
+ {
+ usage();
+ exit(0);
+ }
+ else if ( strcmp(argv[i],"-v") == 0 ||
+ strcmp(argv[i],"--verbose") == 0
+ )
+ {
+ verbose = TRUE;
+ }
+ else if ( strcmp(argv[i],"--input") == 0 ||
+ strcmp(argv[i],"-input") == 0 ||
+ strcmp(argv[i],"-i") == 0 ||
+ strcmp(argv[i],"-in") == 0
+ )
+ {
+ i++;
+ if (num_file_name_in == alloced_file_name_in)
+ {
+ alloced_file_name_in *= 2;
+ file_names_in = (char**)realloc(file_names_in,sizeof(char*)*alloced_file_name_in);
+ }
+ file_names_in[num_file_name_in] = argv[i];
+ num_file_name_in++;
+ }
+ else if ( strcmp(argv[i],"--output") == 0 ||
+ strcmp(argv[i],"--out") == 0 ||
+ strcmp(argv[i],"-out") == 0 ||
+ strcmp(argv[i],"-o") == 0
+ )
+ {
+ i++;
+ file_name_out = argv[i];
+ }
+ else if ( strcmp(argv[i],"--scale") == 0 ||
+ strcmp(argv[i],"-scale") == 0 ||
+ strcmp(argv[i],"-s") == 0
+ )
+ {
+
+ i++;
+ sscanf(argv[i], "%lf", &(xyz_scale[2]));
+ xyz_scale[0] = xyz_scale[1] = xyz_scale[2];
+ }
+ else if ( strcmp(argv[i],"--xyz_scale") == 0 ||
+ strcmp(argv[i],"-xyz_scale") == 0
+ )
+
+ {
+ i++;
+ sscanf(argv[i], "%lf", &(xyz_scale[0]));
+ i++;
+ sscanf(argv[i], "%lf", &(xyz_scale[1]));
+ i++;
+ sscanf(argv[i], "%lf", &(xyz_scale[2]));
+ }
+ else if ( strcmp(argv[i],"--xyz_offset") == 0 ||
+ strcmp(argv[i],"-xyz_offset") == 0
+ )
+ {
+ i++;
+ sscanf(argv[i], "%lf", &(xyz_offset[0]));
+ i++;
+ sscanf(argv[i], "%lf", &(xyz_offset[1]));
+ i++;
+ sscanf(argv[i], "%lf", &(xyz_offset[2]));
+ }
+ else if ( strcmp(argv[i],"--stdout") == 0 ||
+ strcmp(argv[i],"-olas") == 0
+ )
+ {
+ use_stdout = TRUE;
+ file_name_out = "stdout";
+ }
+ else if ( strcmp(argv[i],"--skip_vlr") == 0 ||
+ strcmp(argv[i],"--no_vlr") == 0)
+ {
+ skip_vlr = TRUE;
+ }
+ else if (i == argc - 2 && num_file_name_in == 0 && file_name_out == 0)
+ {
+ file_names_in[0] = argv[i];
+ num_file_name_in = 1;
+ }
+ else if (i == argc - 1 && num_file_name_in == 0 && file_name_out == 0)
+ {
+ file_names_in[0] = argv[i];
+ num_file_name_in = 1;
+ }
+ else if (i == argc - 1 && num_file_name_in != 0 && file_name_out == 0)
+ {
+ file_name_out = argv[i];
+ }
+ else
+ {
+ fprintf(stderr, "ERROR: unknown argument '%s'\n",argv[i]);
+ usage();
+ exit(1);
+ }
+ }
+
+ if (num_file_name_in == 0)
+ {
+ fprintf(stderr, "ERROR: no input specified\n");
+ usage();
+ exit(1);
+ }
+
+ if ( num_file_name_in == 1 &&
+ strstr(file_names_in[0],".las") == 0 &&
+ strstr(file_names_in[0],".LAS") == 0
+ )
+ {
+ char line[512];
+
+ num_file_name_in = 0;
+ file = fopen(file_names_in[0], "r");
+ while (fgets(line, sizeof(char) * 512, file))
+ {
+ if (strstr(line,".las") || strstr(line,".LAS") )
+ {
+ if (num_file_name_in == alloced_file_name_in)
+ {
+ alloced_file_name_in *= 2;
+ file_names_in = (char**)realloc(file_names_in,sizeof(char*)*alloced_file_name_in);
+ }
+ file_names_in[num_file_name_in] = strdup(line);
+ i = (int)strlen(file_names_in[num_file_name_in]) - 1;
+ while ( i &&
+ file_names_in[num_file_name_in][i] != 's' &&
+ file_names_in[num_file_name_in][i] != 'S' &&
+ file_names_in[num_file_name_in][i] != 'z' &&
+ file_names_in[num_file_name_in][i] != 'Z')
+ i--;
+ if (i)
+ {
+ file_names_in[num_file_name_in][i+1] = '\0';
+ num_file_name_in++;
+ }
+ else
+ {
+ fprintf(stderr, "WARNING: cannot parse line '%s'\n",line);
+ }
+ }
+ else
+ {
+ fprintf(stderr, "WARNING: no a valid LAS file name '%s'\n",line);
+ }
+ }
+ }
+
+
+ if (verbose) ptime("starting first pass.");
+ fprintf(stderr, "first pass ... reading headers of %d LAS files...\n", num_file_name_in);
+
+ for (i = 0; i < num_file_name_in; i++)
+ {
+ reader = LASReader_Create(file_names_in[i]);
+ if (!reader) {
+ LASError_Print("Could not get LASReader ");
+ exit(1);
+ }
+
+ header = LASReader_GetHeader(reader);
+ if (!header) {
+ LASError_Print("Could not get LASHeader ");
+ exit(1);
+ }
+
+
+ if (i == 0)
+ {
+ merged_header = LASReader_GetHeader(reader);
+ }
+ else
+ {
+ LASHeader_SetPointRecordsCount( merged_header,
+ LASHeader_GetPointRecordsCount(merged_header) +
+ LASHeader_GetPointRecordsCount(header));
+ LASHeader_SetPointRecordsByReturnCount( merged_header,
+ 0,
+ LASHeader_GetPointRecordsByReturnCount(merged_header,0) +
+ LASHeader_GetPointRecordsByReturnCount(header,0));
+ LASHeader_SetPointRecordsByReturnCount( merged_header,
+ 1,
+ LASHeader_GetPointRecordsByReturnCount(merged_header,1) +
+ LASHeader_GetPointRecordsByReturnCount(header,1));
+ LASHeader_SetPointRecordsByReturnCount( merged_header,
+ 2,
+ LASHeader_GetPointRecordsByReturnCount(merged_header,2) +
+ LASHeader_GetPointRecordsByReturnCount(header,2));
+ LASHeader_SetPointRecordsByReturnCount( merged_header,
+ 3,
+ LASHeader_GetPointRecordsByReturnCount(merged_header,3) +
+ LASHeader_GetPointRecordsByReturnCount(header,3));
+ LASHeader_SetPointRecordsByReturnCount( merged_header,
+ 4,
+ LASHeader_GetPointRecordsByReturnCount(merged_header,4) +
+ LASHeader_GetPointRecordsByReturnCount(header,4));
+
+ LASHeader_SetSystemId(merged_header, "MERGED");
+
+ minx = LASHeader_GetMinX(merged_header);
+ maxx = LASHeader_GetMaxX(merged_header);
+ miny = LASHeader_GetMinY(merged_header);
+ maxy = LASHeader_GetMaxY(merged_header);
+ minz = LASHeader_GetMinZ(merged_header);
+ maxz = LASHeader_GetMaxZ(merged_header);
+
+ if (minx > LASHeader_GetMinX(header)) minx = LASHeader_GetMinX(header);
+ if (maxx < LASHeader_GetMaxX(header)) maxx = LASHeader_GetMaxX(header);
+ if (miny > LASHeader_GetMinY(header)) miny = LASHeader_GetMinY(header);
+ if (maxy < LASHeader_GetMaxY(header)) maxy = LASHeader_GetMaxY(header);
+ if (minz > LASHeader_GetMinZ(header)) minz = LASHeader_GetMinZ(header);
+ if (maxz < LASHeader_GetMaxZ(header)) maxz = LASHeader_GetMaxZ(header);
+
+ LASHeader_SetMin(merged_header, minx, miny, minz);
+ LASHeader_SetMax(merged_header, maxx, maxy, maxz);
+ }
+
+ LASHeader_Destroy(header);
+ LASReader_Destroy(reader);
+ }
+
+ if (verbose)
+ {
+ fprintf(stderr, " number_of_point_records %d\n",
+ LASHeader_GetPointRecordsCount(merged_header));
+ fprintf(stderr, " number of points by return %d %d %d %d %d\n",
+ LASHeader_GetPointRecordsByReturnCount(merged_header, 0),
+ LASHeader_GetPointRecordsByReturnCount(merged_header, 1),
+ LASHeader_GetPointRecordsByReturnCount(merged_header, 2),
+ LASHeader_GetPointRecordsByReturnCount(merged_header, 3),
+ LASHeader_GetPointRecordsByReturnCount(merged_header, 4));
+ fprintf(stderr, " min x y z %.6f %.6f %.6f\n",
+ LASHeader_GetMinX(merged_header),
+ LASHeader_GetMinY(merged_header),
+ LASHeader_GetMinZ(merged_header));
+ fprintf(stderr, " max x y z %.6f %.6f %.6f\n",
+ LASHeader_GetMaxX(merged_header),
+ LASHeader_GetMaxY(merged_header),
+ LASHeader_GetMaxZ(merged_header));
+ }
+
+ if (xyz_scale)
+ {
+ LASHeader_SetScale( merged_header,
+ xyz_scale[0],
+ xyz_scale[1],
+ xyz_scale[2]);
+ }
+
+ if (xyz_offset)
+ {
+ LASHeader_SetOffset(merged_header,
+ xyz_offset[0],
+ xyz_offset[1],
+ xyz_offset[2] );
+ }
+
+ x_scale_factor = LASHeader_GetScaleX(merged_header);
+ if (((LASHeader_GetMaxX(merged_header) - LASHeader_GetOffsetX(merged_header)) / LASHeader_GetScaleX(merged_header)) > largest_int ||
+ ((LASHeader_GetMinX(merged_header) - LASHeader_GetOffsetX(merged_header)) / LASHeader_GetScaleX(merged_header)) < smallest_int )
+ {
+ x_scale_factor = 0.0000001;
+ while (((LASHeader_GetMaxX(merged_header) - LASHeader_GetOffsetX(merged_header)) / x_scale_factor) > largest_int ||
+ ((LASHeader_GetMinX(merged_header) - LASHeader_GetOffsetX(merged_header)) / x_scale_factor) < smallest_int )
+ {
+ x_scale_factor *= 10;
+ }
+ fprintf(stderr, "x_scale_factor of merged_header changed to %g\n", x_scale_factor);
+ }
+
+ y_scale_factor = LASHeader_GetScaleY(merged_header);
+ if (((LASHeader_GetMaxY(merged_header) - LASHeader_GetOffsetY(merged_header)) / y_scale_factor) > largest_int ||
+ ((LASHeader_GetMinY(merged_header) - LASHeader_GetOffsetY(merged_header)) / y_scale_factor) < smallest_int )
+ {
+ y_scale_factor = 0.0000001;
+ while (((LASHeader_GetMaxY(merged_header) - LASHeader_GetOffsetY(merged_header)) / y_scale_factor) > largest_int ||
+ ((LASHeader_GetMinY(merged_header) - LASHeader_GetOffsetY(merged_header)) / y_scale_factor) < smallest_int )
+ {
+ y_scale_factor *= 10;
+ }
+ fprintf(stderr, "y_scale_factor of merged_header changed to %g\n", y_scale_factor);
+ }
+
+ z_scale_factor = LASHeader_GetScaleZ(merged_header);
+ if (((LASHeader_GetMaxZ(merged_header) - LASHeader_GetOffsetZ(merged_header)) / z_scale_factor) > largest_int ||
+ ((LASHeader_GetMinZ(merged_header) - LASHeader_GetOffsetZ(merged_header)) / z_scale_factor) < smallest_int )
+ {
+ z_scale_factor = 0.0000001;
+ while (((LASHeader_GetMaxZ(merged_header) - LASHeader_GetOffsetZ(merged_header)) / z_scale_factor) > largest_int ||
+ ((LASHeader_GetMinZ(merged_header) - LASHeader_GetOffsetZ(merged_header)) / z_scale_factor) < smallest_int )\
+ {
+ z_scale_factor *= 10;
+ }
+ fprintf(stderr, "z_scale_factor of merged_header changed to %g\n", z_scale_factor);
+ }
+
+ LASHeader_SetScale( merged_header,
+ x_scale_factor,
+ y_scale_factor,
+ z_scale_factor);
+
+ if (file_name_out == NULL && !use_stdout)
+ {
+ LASError_Print("no output was specified ");
+ exit(1);
+ }
+
+ writer = LASWriter_Create(file_name_out, merged_header, LAS_MODE_WRITE);
+ if (!writer) {
+ LASError_Print("Could not create LASWriter ");
+ exit(1);
+ }
+
+ if (verbose) ptime("starting second pass.");
+ fprintf(stderr, "second pass ... merge %d LAS files into one ...\n", num_file_name_in);
+
+ for (i = 0; i < num_file_name_in; i++)
+ {
+ reader = LASReader_Create(file_names_in[i]);
+ if (!reader) {
+ LASError_Print("Could not get LASReader ");
+ exit(1);
+ }
+ header = LASReader_GetHeader(reader);
+ if (!header) {
+ LASError_Print("Could not get LASHeader ");
+ exit(1);
+ }
+
+ same = TRUE;
+ if (LASHeader_GetOffsetX(merged_header) != LASHeader_GetOffsetX(header)) same = FALSE;
+ if (LASHeader_GetOffsetY(merged_header) != LASHeader_GetOffsetY(header)) same = FALSE;
+ if (LASHeader_GetOffsetZ(merged_header) != LASHeader_GetOffsetZ(header)) same = FALSE;
+
+ if (LASHeader_GetScaleX(merged_header) != LASHeader_GetScaleX(header)) same = FALSE;
+ if (LASHeader_GetScaleY(merged_header) != LASHeader_GetScaleY(header)) same = FALSE;
+ if (LASHeader_GetScaleZ(merged_header) != LASHeader_GetScaleZ(header)) same = FALSE;
+
+
+ if (same)
+ {
+ p = LASReader_GetNextPoint(reader);
+ while (p)
+ {
+ LASWriter_WritePoint(writer, p);
+ p = LASReader_GetNextPoint(reader);
+ }
+ }
+ else
+ {
+ p = LASReader_GetNextPoint(reader);
+ while (p)
+ {
+ LASPoint_SetX(p,(0.5 + (LASPoint_GetX(p) - LASHeader_GetOffsetX(merged_header)) / LASHeader_GetScaleX(merged_header)));
+ LASPoint_SetY(p,(0.5 + (LASPoint_GetY(p) - LASHeader_GetOffsetY(merged_header)) / LASHeader_GetScaleY(merged_header)));
+ LASPoint_SetZ(p,(0.5 + (LASPoint_GetZ(p) - LASHeader_GetOffsetZ(merged_header)) / LASHeader_GetScaleZ(merged_header)));
+ LASWriter_WritePoint(writer, p);
+ p = LASReader_GetNextPoint(reader);
+ }
+ }
+
+ LASHeader_Destroy(header);
+ LASReader_Destroy(reader);
+ reader = NULL;
+ }
+
+ LASHeader_Destroy(merged_header);
+ LASWriter_Destroy(writer);
+
+ if (verbose) ptime("done.");
+
+ if (verbose) {
+ reader = LASReader_Create(file_name_out);
+ if (!reader) {
+ LASError_Print("Could not open file ");
+ exit(1);
+ }
+
+ header = LASReader_GetHeader(reader);
+ if (!header) {
+ LASError_Print("Could not get LASHeader ");
+ exit(1);
+ }
+
+ print_header(stderr, header, file_name_out, skip_vlr);
+ summary = SummarizePoints(reader);
+ print_point_summary(stderr, summary, header);
+
+ LASHeader_Destroy(header);
+ header = NULL;
+ LASReader_Destroy(reader);
+ reader = NULL;
+
+ LASPoint_Destroy(summary->pmin);
+ LASPoint_Destroy(summary->pmax);
+ free(summary);
+ }
+
+ return 0;
+}
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/apps/liblas-config.in work/libLAS-1.2.1/apps/liblas-config.in
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/apps/liblas-config.in 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/apps/liblas-config.in 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,53 @@
+#!/bin/sh
+
+
+
+usage()
+{
+ cat <&2
+fi
+
+case $1 in
+ --libs)
+ echo @LIBS@
+ ;;
+
+ --defines)
+ echo @DEFS@
+ ;;
+
+ --includes)
+ echo @GEOTIFF_INC@ @GDAL_INC@
+ ;;
+
+ --cflags)
+ echo @CFLAGS@
+ ;;
+
+ --cxxflags)
+ echo @CXXFLAGS@
+ ;;
+
+ --version)
+ echo @RELEASE_VERSION@
+ ;;
+
+ *)
+ usage 1 1>&2
+ ;;
+
+esac
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/apps/Makefile.am work/libLAS-1.2.1/apps/Makefile.am
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/apps/Makefile.am 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/apps/Makefile.am 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,27 @@
+if GDAL_IS_CONFIG
+GDAL_CPPFLAGS = @GDAL_INC@ -DHAVE_GDAL=1
+endif
+
+if GEOTIFF_IS_CONFIG
+GEOTIFF_CPPFLAGS = @GEOTIFF_INC@ -DHAVE_LIBGEOTIFF=1
+endif
+
+AM_CPPFLAGS = $(GEOTIFF_CPPFLAGS) $(GDAL_CPPFLAGS) -I../include/liblas/capi -I../include
+
+lasinfo_SOURCES = lasinfo.c lascommon.c
+las2las_SOURCES = las2las.c lascommon.c
+lasmerge_SOURCES = lasmerge.c lascommon.c
+las2txt_SOURCES = las2txt.c lascommon.c
+txt2las_SOURCES = txt2las.c
+
+
+bin_PROGRAMS = lasinfo las2las lasmerge las2txt txt2las
+
+bin_SCRIPTS = liblas-config
+
+if GDAL_IS_CONFIG
+las2ogr_SOURCES = las2ogr.cpp
+bin_PROGRAMS += las2ogr
+endif
+
+LDADD = ../src/liblas.la
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/apps/makefile.vc work/libLAS-1.2.1/apps/makefile.vc
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/apps/makefile.vc 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/apps/makefile.vc 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,55 @@
+# $Id$
+#
+LAS_ROOT = ..
+
+!INCLUDE $(LAS_ROOT)\nmake.opt
+
+all: default
+
+las2las.exe:
+ $(CC) $(CFLAGS) las2las.c lascommon.c $(LAS_ROOT)/src/$(LAS_LIB_DLL) $(GEOTIFF_LIB)
+ if exist $@.manifest mt -manifest $@.manifest -outputresource:$@;1
+
+lasinfo.exe:
+ $(CC) $(CFLAGS) lasinfo.c lascommon.c $(LAS_ROOT)/src/$(LAS_LIB_DLL) $(GEOTIFF_LIB)
+ if exist $@.manifest mt -manifest $@.manifest -outputresource:$@;1
+
+#lasdiff.exe:
+# $(CC) $(CFLAGS) lasdiff.cpp lascommon.c $(LAS_ROOT)/src/$(LAS_LIB_DLL)
+# if exist $@.manifest mt -manifest $@.manifest -outputresource:$@;1
+
+las2txt.exe:
+ $(CC) $(CFLAGS) las2txt.c lascommon.c $(LAS_ROOT)/src/$(LAS_LIB_DLL) $(GEOTIFF_LIB)
+ if exist $@.manifest mt -manifest $@.manifest -outputresource:$@;1
+
+lasmerge.exe:
+ $(CC) $(CFLAGS) lasmerge.c lascommon.c $(LAS_ROOT)/src/$(LAS_LIB_DLL) $(GEOTIFF_LIB)
+ if exist $@.manifest mt -manifest $@.manifest -outputresource:$@;1
+
+txt2las.exe:
+ $(CC) $(CFLAGS) txt2las.c lascommon.c $(LAS_ROOT)/src/$(LAS_LIB_DLL) $(GEOTIFF_LIB)
+ if exist $@.manifest mt -manifest $@.manifest -outputresource:$@;1
+
+!IF "$(GDAL_HOME)" != "" && EXIST("$(GDAL_HOME)")
+las2ogr.exe:
+ $(CC) $(CFLAGS) las2ogr.cpp $(LAS_ROOT)/src/$(LAS_LIB_DLL) $(GDAL_LIB) ..\src\$(LAS_LIB)
+ if exist $@.manifest mt -manifest $@.manifest -outputresource:$@;1
+!ELSE
+las2ogr.exe:
+
+!ENDIF
+
+default: las2las.exe lasinfo.exe las2txt.exe lasmerge.exe txt2las.exe las2ogr.exe
+
+
+clean:
+ -del *.bak
+ -del *.exe
+ -del *.ilk
+ -del *.manifest
+ -del *.obj
+ -del *.pdb
+
+install: default
+ xcopy /y /r /d /f *.exe $(BINDIR)
+ xcopy /y /r /d /f *.exe $(OSGEO4W_DIR)\lib\bin
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/apps/txt2las.c work/libLAS-1.2.1/apps/txt2las.c
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/apps/txt2las.c 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/apps/txt2las.c 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,916 @@
+/***************************************************************************
+ * $Id$
+ * $Date$
+ *
+ * Project: libLAS -- C/C++ read/write library for LAS LIDAR data
+ * Purpose: ASCII text to LAS translation
+ * Author: Martin Isenburg isenburg@cs.unc.edu
+ ***************************************************************************
+ * Copyright (c) 2007, Martin Isenburg isenburg@cs.unc.edu
+ *
+ * See LICENSE.txt in this source distribution for more information.
+ **************************************************************************/
+
+#include
+#include
+#include
+#include
+
+#define LAS_FORMAT_10 0
+#define LAS_FORMAT_11 1
+#define LAS_FORMAT_12 2
+
+void usage()
+{
+
+ fprintf(stderr,"----------------------------------------------------------\n");
+ fprintf(stderr," txt2las (version %s) usage:\n", LAS_GetVersion());
+ fprintf(stderr,"----------------------------------------------------------\n");
+ fprintf(stderr,"\n");
+
+ fprintf(stderr,"Parse a text file with a given format:\n");
+ fprintf(stderr," txt2las -parse tsxyz lidar.txt\n");
+ fprintf(stderr,"\n");
+
+ fprintf(stderr,"Set the scale:\n");
+ fprintf(stderr," txt2las --parse xyz --scale 0.02 -i lidar.txt -o lidar.laz\n");
+ fprintf(stderr,"\n");
+
+ fprintf(stderr,"Set the xyz scale:\n");
+ fprintf(stderr," txt2las --parse xsysz --verbose --xyz_scale 0.02 0.02 0.01 lidar.txt\n");
+ fprintf(stderr,"\n");
+
+ fprintf(stderr,"----------------------------------------------------------\n");
+ fprintf(stderr," The '--parse txyz' flag specifies how to format each\n");
+ fprintf(stderr," each line of the ASCII file. For example, 'txyzia'\n");
+ fprintf(stderr," means that the first number of each line should be the\n");
+ fprintf(stderr," gpstime, the next three numbers should be the x, y, and\n");
+ fprintf(stderr," z coordinate, the next number should be the intensity\n");
+ fprintf(stderr," and the next number should be the scan angle.\n");
+ fprintf(stderr," The supported entries are:\n");
+ fprintf(stderr," a - scan angle\n");
+ fprintf(stderr," i - intensity\n");
+ fprintf(stderr," n - number of returns for given pulse\n");
+ fprintf(stderr," r - number of this return\n");
+ fprintf(stderr," c - classification\n");
+ fprintf(stderr," u - user data (does not currently work)\n");
+ fprintf(stderr," p - point source ID\n");
+ fprintf(stderr," e - edge of flight line\n");
+ fprintf(stderr," d - direction of scan flag\n");
+ fprintf(stderr," R - red channel of RGB color\n");
+ fprintf(stderr," G - green channel of RGB color\n");
+ fprintf(stderr," B - blue channel of RGB color\n\n");
+
+ fprintf(stderr,"\n----------------------------------------------------------\n");
+ fprintf(stderr," The '-scale 0.02' flag specifies the quantization. The\n");
+ fprintf(stderr," default value of 0.01 means that the smallest increment\n");
+ fprintf(stderr," two between coordinates is 0.01. If measurements are in\n");
+ fprintf(stderr," meters this corresponds to centimeter accuracy, which is\n");
+ fprintf(stderr," commonly considered sufficient for LIDAR data.\n");
+
+ fprintf(stderr,"\n----------------------------------------------------------\n");
+ fprintf(stderr," Other parameters such as '--xyz_offset 500000 2000000 0'\n");
+ fprintf(stderr," or '-xyz_scale 0.02 0.02 0.01' or '-file_creation 67 2003'\n");
+ fprintf(stderr," or '-system_identifier \"Airborne One Leica 50,000 Hz\"'\n");
+ fprintf(stderr," or '-generating_software \"TerraScan\"' are available too.\n");
+
+ fprintf(stderr, "For more information, see the full documentation for txt2las at:\n"
+ " http://liblas.org/browser/trunk/doc/txt2las.txt\n");
+ fprintf(stderr,"----------------------------------------------------------\n");
+
+}
+
+static void VecUpdateMinMax3dv(double min[3], double max[3], const double v[3])
+{
+ if (v[0]max[0]) max[0]=v[0];
+ if (v[1]max[1]) max[1]=v[1];
+ if (v[2]max[2]) max[2]=v[2];
+}
+
+static void VecCopy3dv(double v[3], const double a[3])
+{
+ v[0] = a[0];
+ v[1] = a[1];
+ v[2] = a[2];
+}
+
+static int parse(const char* parse_string, const char* line, double* xyz, LASPointH point, double* gps_time)
+{
+ int temp_i;
+ float temp_f;
+ const char* p = parse_string;
+ const char* l = line;
+
+ LASColorH color = LASColor_Create();
+
+ while (p[0])
+ {
+ /* // we expect the x coordinate */
+ if (p[0] == 'x')
+ {
+ /* // first skip white spaces */
+ while (l[0] && (l[0] == ' ' || l[0] == ',' || l[0] == '\t')) l++;
+ if (l[0] == 0) return FALSE;
+ if (sscanf(l, "%lf", &(xyz[0])) != 1) return FALSE;
+ /* // then advance to next white space */
+ while (l[0] && l[0] != ' ' && l[0] != ',' && l[0] != '\t') l++;
+ }
+ /* // we expect the y coordinate */
+ else if (p[0] == 'y')
+ {
+ /* // first skip white spaces */
+ while (l[0] && (l[0] == ' ' || l[0] == ',' || l[0] == '\t')) l++;
+ if (l[0] == 0) return FALSE;
+ if (sscanf(l, "%lf", &(xyz[1])) != 1) return FALSE;
+ /* // then advance to next white space */
+ while (l[0] && l[0] != ' ' && l[0] != ',' && l[0] != '\t') l++;
+ }
+ /* // we expect the x coordinate */
+ else if (p[0] == 'z')
+ {
+ /* // first skip white spaces */
+ while (l[0] && (l[0] == ' ' || l[0] == ',' || l[0] == '\t')) l++;
+ if (l[0] == 0) return FALSE;
+ if (sscanf(l, "%lf", &(xyz[2])) != 1) return FALSE;
+ /* // then advance to next white space */
+ while (l[0] && l[0] != ' ' && l[0] != ',' && l[0] != '\t') l++;
+ }
+ /* // we expect a string or a number that we don't care about */
+ else if (p[0] == 's')
+ {
+ /* // first skip white spaces */
+ while (l[0] && (l[0] == ' ' || l[0] == ',' || l[0] == '\t')) l++;
+ if (l[0] == 0) return FALSE;
+ /* // then advance to next white space */
+ while (l[0] && l[0] != ' ' && l[0] != ',' && l[0] != '\t') l++;
+ }
+ /* // we expect the intensity */
+ else if (p[0] == 'i')
+ {
+ /* // first skip white spaces */
+ while (l[0] && (l[0] == ' ' || l[0] == ',' || l[0] == '\t')) l++;
+ if (l[0] == 0) return FALSE;
+ if (sscanf(l, "%f", &temp_f) != 1) return FALSE;
+ if (temp_f < 0.0f || temp_f > 65535.0f)
+ fprintf(stderr,
+ "WARNING: intensity %g is out of range of unsigned short\n",
+ temp_f);
+ LASPoint_SetIntensity(point, (int)temp_f);
+/* point->intensity = (unsigned short)temp_f; */
+ /* // then advance to next white space*/
+ while (l[0] && l[0] != ' ' && l[0] != ',' && l[0] != '\t') l++;
+ }
+ /* // we expect the scan angle */
+ else if (p[0] == 'a')
+ {
+ /* // first skip white spaces */
+ while (l[0] && (l[0] == ' ' || l[0] == ',' || l[0] == '\t')) l++;
+ if (l[0] == 0) return FALSE;
+ if (sscanf(l, "%f", &temp_f) != 1) return FALSE;
+ if (temp_f < -128.0f || temp_f > 127.0f)
+ fprintf(stderr,
+ "WARNING: scan angle %g is out of range of char\n",
+ temp_f);
+ LASPoint_SetScanAngleRank(point, (int)temp_f);
+/* point->scan_angle_rank = (char)temp_f; */
+ /* // then advance to next white space*/
+ while (l[0] && l[0] != ' ' && l[0] != ',' && l[0] != '\t') l++;
+ }
+ /* // we expect the number of returns of given pulse */
+ else if (p[0] == 'n')
+ {
+ /* // first skip white spaces */
+ while (l[0] && (l[0] == ' ' || l[0] == ',' || l[0] == '\t')) l++;
+ if (l[0] == 0) return FALSE;
+ if (sscanf(l, "%d", &temp_i) != 1) return FALSE;
+ if (temp_i < 0 || temp_i > 7)
+ fprintf(stderr,
+ "WARNING: return number %d is out of range of three bits\n",
+ temp_i);
+ LASPoint_SetNumberOfReturns(point, temp_i);
+/* point->number_of_returns_of_given_pulse = temp_i & 7; */
+ /* // then advance to next white space */
+ while (l[0] && l[0] != ' ' && l[0] != ',' && l[0] != '\t') l++;
+ }
+ /* // we expect the number of the return */
+ else if (p[0] == 'r')
+ {
+ /* // first skip white spaces */
+ while (l[0] && (l[0] == ' ' || l[0] == ',' || l[0] == '\t')) l++;
+ if (l[0] == 0) return FALSE;
+ if (sscanf(l, "%d", &temp_i) != 1) return FALSE;
+ if (temp_i < 0 || temp_i > 7)
+ fprintf(stderr,
+ "WARNING: return number %d is out of range of three bits\n",
+ temp_i);
+/* point->return_number = temp_i & 7; */
+ LASPoint_SetReturnNumber(point, temp_i);
+ /* // then advance to next white space */
+ while (l[0] && l[0] != ' ' && l[0] != ',' && l[0] != '\t') l++;
+ }
+ /* // we expect the classification */
+ else if (p[0] == 'c')
+ {
+ /* // first skip white spaces */
+ while (l[0] && (l[0] == ' ' || l[0] == ',' || l[0] == '\t')) l++;
+ if (l[0] == 0) return FALSE;
+ if (sscanf(l, "%d", &temp_i) != 1) return FALSE;
+ if (temp_i < 0 || temp_i > 255)
+ fprintf(stderr,
+ "WARNING: classification %d is out of range of unsigned char\n",
+ temp_i);
+ LASPoint_SetClassification(point, temp_i);
+/* point->classification = (unsigned char)temp_i; */
+ /* // then advance to next white space */
+ while (l[0] && l[0] != ' ' && l[0] != ',' && l[0] != '\t') l++;
+ }
+ /* // we expect the user data */
+ else if (p[0] == 'u')
+ {
+ /* // first skip white spaces */
+ while (l[0] && (l[0] == ' ' || l[0] == ',' || l[0] == '\t')) l++;
+ if (l[0] == 0) return FALSE;
+ if (sscanf(l, "%d", &temp_i) != 1) return FALSE;
+ if (temp_i < 0 || temp_i > 255)
+ fprintf(stderr,
+ "WARNING: user data %d is out of range of unsigned char\n",
+ temp_i);
+
+ LASPoint_SetUserData(point, temp_i);
+/* point->user_data = temp_i & 255; */
+ /* // then advance to next white space */
+ while (l[0] && l[0] != ' ' && l[0] != ',' && l[0] != '\t') l++;
+ }
+ /* // we expect the point source ID */
+ else if (p[0] == 'p')
+ {
+ /* // first skip white spaces */
+ while (l[0] && (l[0] == ' ' || l[0] == ',' || l[0] == '\t')) l++;
+ if (l[0] == 0) return FALSE;
+ if (sscanf(l, "%d", &temp_i) != 1) return FALSE;
+ if (temp_i < 0 || temp_i > 65535)
+ fprintf(stderr,
+ "WARNING: point source ID %d is out of range of unsigned short\n",
+ temp_i);
+/* point->point_source_ID = temp_i & 65535; */
+ LASPoint_SetPointSourceId(point, temp_i);
+ /*// then advance to next white space */
+ while (l[0] && l[0] != ' ' && l[0] != ',' && l[0] != '\t') l++;
+ }
+ /* // we expect the edge of flight line flag */
+ else if (p[0] == 'e')
+ {
+ /* // first skip white spaces */
+ while (l[0] && (l[0] == ' ' || l[0] == ',' || l[0] == '\t')) l++;
+ if (l[0] == 0) return FALSE;
+ if (sscanf(l, "%d", &temp_i) != 1) return FALSE;
+ if (temp_i < 0 || temp_i > 1)
+ fprintf(stderr,
+ "WARNING: edge of flight line flag %d is out of range of boolean flag\n",
+ temp_i);
+ LASPoint_SetFlightLineEdge(point, temp_i ? 1: 0);
+/* point->edge_of_flight_line = (temp_i ? 1 : 0); */
+ /* // then advance to next white space */
+ while (l[0] && l[0] != ' ' && l[0] != ',' && l[0] != '\t') l++;
+ }
+ /* // we expect the direction of scan flag */
+ else if (p[0] == 'd')
+ {
+ /* // first skip white spaces */
+ while (l[0] && (l[0] == ' ' || l[0] == ',' || l[0] == '\t')) l++;
+ if (l[0] == 0) return FALSE;
+ if (sscanf(l, "%d", &temp_i) != 1) return FALSE;
+ if (temp_i < 0 || temp_i > 1)
+ fprintf(stderr,
+ "WARNING: direction of scan flag %d is out of range of boolean flag\n",
+ temp_i);
+ LASPoint_SetScanDirection(point, temp_i ? 1: 0);
+/* point->scan_direction_flag = (temp_i ? 1 : 0); */
+ /* // then advance to next white space */
+ while (l[0] && l[0] != ' ' && l[0] != ',' && l[0] != '\t') l++;
+ }
+ /* // we expect the gps time */
+ else if (p[0] == 't')
+ {
+ /* // first skip white spaces */
+ while (l[0] && (l[0] == ' ' || l[0] == ',' || l[0] == '\t')) l++;
+ if (l[0] == 0) return FALSE;
+ if (sscanf(l, "%lf", gps_time) != 1) return FALSE;
+ /* // then advance to next white space */
+ while (l[0] && l[0] != ' ' && l[0] != ',' && l[0] != '\t') l++;
+ }
+ /* // we expect the red channel of the RGB field */
+ else if (p[0] == 'R')
+ {
+ /* // first skip white spaces */
+ while (l[0] && (l[0] == ' ' || l[0] == ',' || l[0] == '\t')) l++;
+ if (l[0] == 0) return FALSE;
+ if (sscanf(l, "%d", &temp_i) != 1) return FALSE;
+ LASColor_SetRed(color, temp_i);
+ /* // then advance to next white space */
+ while (l[0] && l[0] != ' ' && l[0] != ',' && l[0] != '\t') l++;
+ }
+ /* // we expect the green channel of the RGB field */
+ else if (p[0] == 'G')
+ {
+ /* // first skip white spaces */
+ while (l[0] && (l[0] == ' ' || l[0] == ',' || l[0] == '\t')) l++;
+ if (l[0] == 0) return FALSE;
+ if (sscanf(l, "%d", &temp_i) != 1) return FALSE;
+ LASColor_SetGreen(color, temp_i);
+ /* // then advance to next white space */
+ while (l[0] && l[0] != ' ' && l[0] != ',' && l[0] != '\t') l++;
+ }
+ /* // we expect the blue channel of the RGB field */
+ else if (p[0] == 'B')
+ {
+ /* // first skip white spaces */
+ while (l[0] && (l[0] == ' ' || l[0] == ',' || l[0] == '\t')) l++;
+ if (l[0] == 0) return FALSE;
+ if (sscanf(l, "%d", &temp_i) != 1) return FALSE;
+ LASColor_SetBlue(color, temp_i);
+ /* // then advance to next white space */
+ while (l[0] && l[0] != ' ' && l[0] != ',' && l[0] != '\t') l++;
+ }
+
+ else
+ {
+ fprintf(stderr, "ERROR: next symbol '%s' unknown in parse control string\n", p);
+ }
+ p++;
+ }
+ LASPoint_SetColor(point, color);
+ LASColor_Destroy(color);
+ return TRUE;
+}
+
+
+int main(int argc, char *argv[])
+{
+ int i;
+ int dry = FALSE;
+ int verbose = FALSE;
+ char* file_name_in = 0;
+ char* file_name_out = 0;
+ double xyz_min[3] = {0.0, 0.0, 0.0};
+ double xyz_max[3] = {0.0, 0.0, 0.0};
+ double xyz_scale[3] = {0.01,0.01,0.01};
+ double xyz_offset[3] = {0.0,0.0,0.0};
+ unsigned int number_of_point_records = 0;
+ unsigned int number_of_points_by_return[8] = {0,0,0,0,0,0,0,0};
+ char* parse_string = "xyz";
+ int file_creation_day = 0;
+ int file_creation_year = 0;
+ char* system_identifier = 0;
+ char* generating_software = 0;
+#define MAX_CHARACTERS_PER_LINE 512
+ char line[MAX_CHARACTERS_PER_LINE];
+ double xyz[3];
+ LASPointH point = NULL;
+ double gps_time;
+ FILE* file_in = NULL;
+ char* parse_less = NULL;
+ LASHeaderH header = NULL;
+ LASWriterH writer = NULL;
+ LASError err;
+ int format = LAS_FORMAT_12;
+
+ int xyz_min_quant[3] = {0, 0, 0};
+ int xyz_max_quant[3] = {0, 0, 0};
+
+ double xyz_min_dequant[3] = {0.0, 0.0, 0.0};
+ double xyz_max_dequant[3] = {0.0, 0.0, 0.0};
+
+ for (i = 1; i < argc; i++)
+ {
+ if ( strcmp(argv[i],"-h") == 0 ||
+ strcmp(argv[i],"--help") == 0
+ )
+ {
+ usage();
+ exit(0);
+ }
+ else if ( strcmp(argv[i],"-v") == 0 ||
+ strcmp(argv[i],"--verbose") == 0
+ )
+ {
+ verbose = TRUE;
+ }
+ else if ( strcmp(argv[i],"-d") == 0 ||
+ strcmp(argv[i],"-dry") == 0 ||
+ strcmp(argv[i],"--dry") == 0
+ )
+ {
+ dry = TRUE;
+ }
+ else if ( strcmp(argv[i],"--parse") == 0 ||
+ strcmp(argv[i],"-parse") == 0 ||
+ strcmp(argv[i],"-p") == 0
+ )
+ {
+ i++;
+ parse_string = argv[i];
+ }
+ else if ( strcmp(argv[i],"--scale") == 0 ||
+ strcmp(argv[i],"-scale") == 0 ||
+ strcmp(argv[i],"-s") == 0
+ )
+ {
+
+ i++;
+ sscanf(argv[i], "%lf", &(xyz_scale[2]));
+ xyz_scale[0] = xyz_scale[1] = xyz_scale[2];
+ }
+ else if ( strcmp(argv[i],"--xyz_scale") == 0 ||
+ strcmp(argv[i],"-xyz_scale") == 0
+ )
+
+ {
+ i++;
+ sscanf(argv[i], "%lf", &(xyz_scale[0]));
+ i++;
+ sscanf(argv[i], "%lf", &(xyz_scale[1]));
+ i++;
+ sscanf(argv[i], "%lf", &(xyz_scale[2]));
+ }
+ else if ( strcmp(argv[i],"--xyz_offset") == 0 ||
+ strcmp(argv[i],"-xyz_offset") == 0
+ )
+ {
+ i++;
+ sscanf(argv[i], "%lf", &(xyz_offset[0]));
+ i++;
+ sscanf(argv[i], "%lf", &(xyz_offset[1]));
+ i++;
+ sscanf(argv[i], "%lf", &(xyz_offset[2]));
+ }
+ else if ( strcmp(argv[i],"--input") == 0 ||
+ strcmp(argv[i],"-input") == 0 ||
+ strcmp(argv[i],"-i") == 0 ||
+ strcmp(argv[i],"-in") == 0
+ )
+ {
+ i++;
+ file_name_in = argv[i];
+ }
+
+ else if ( strcmp(argv[i],"--output") == 0 ||
+ strcmp(argv[i],"--out") == 0 ||
+ strcmp(argv[i],"-out") == 0 ||
+ strcmp(argv[i],"-o") == 0
+ )
+ {
+ i++;
+ file_name_out = argv[i];
+ }
+
+ else if ( strcmp(argv[i],"--format") == 0 ||
+ strcmp(argv[i],"-f") == 0 ||
+ strcmp(argv[i],"-format") == 0
+ )
+ {
+ i++;
+ if (strcmp(argv[i], "1.0") == 0) {
+ format = LAS_FORMAT_10;
+ }
+ else if (strcmp(argv[i], "1.1") == 0) {
+ format = LAS_FORMAT_11;
+ }
+ else if (strcmp(argv[i], "1.2") == 0) {
+ format = LAS_FORMAT_12;
+ }
+ else {
+ LASError_Print("Format must be specified as 1.0, 1.1, or 1.2");
+ }
+
+ }
+ else if ( strcmp(argv[i],"--system_identifier") == 0 ||
+ strcmp(argv[i],"-system_identifier") == 0 ||
+ strcmp(argv[i],"-s") == 0 ||
+ strcmp(argv[i],"-sys_id") == 0)
+ {
+ i++;
+ system_identifier = (char*) malloc(31 * sizeof(char));
+ strcpy(system_identifier, argv[i]);
+ }
+
+ else if ( strcmp(argv[i],"--generating_software") == 0 ||
+ strcmp(argv[i],"-generating_software") == 0 ||
+ strcmp(argv[i],"-g") == 0 ||
+ strcmp(argv[i],"-gen_soft") == 0)
+ {
+ i++;
+ generating_software = (char*) malloc(31*sizeof(char));
+ strcpy(generating_software, argv[i]);
+ }
+
+ else if ( strcmp(argv[i],"--file_creation") == 0 ||
+ strcmp(argv[i],"-file_creation") == 0)
+ {
+ i++;
+ file_creation_day = (unsigned short)atoi(argv[i]);
+ i++;
+ file_creation_year = (unsigned short)atoi(argv[i]);
+ }
+ else if ( file_name_in == NULL &&
+ file_name_out == NULL
+ )
+ {
+ file_name_in = argv[i];
+ }
+ else if ( file_name_in &&
+ file_name_out == NULL
+ )
+ {
+ file_name_out = argv[i];
+ }
+ else
+ {
+ fprintf(stderr, "ERROR: unknown argument '%s'\n",argv[i]);
+ usage();
+ exit(1);
+ }
+ }
+
+ /* create output file name if none specified and no piped output requested */
+ if (file_name_out == NULL && file_name_in != NULL)
+ {
+ int len = (int)strlen(file_name_in);
+ file_name_out = strdup(file_name_in);
+
+ while (len > 0 && file_name_out[len] != '.')
+ {
+ len--;
+ }
+ file_name_out[len] = '.';
+ file_name_out[len+1] = 'l';
+ file_name_out[len+2] = 'a';
+ file_name_out[len+3] = 's';
+ file_name_out[len+4] = '\0';
+ }
+
+
+ /* make sure that input and output are not *both* piped */
+ if (file_name_in == NULL && file_name_out == NULL)
+ {
+ LASError_Print("both input and output filenames are null!");
+ usage();
+ exit(1);
+ }
+
+ file_in = fopen(file_name_in, "r");
+
+ if (file_in == NULL)
+ {
+ LASError_Print("could not open file to read for first pass");
+ exit(1);
+ }
+
+ /* create a cheaper parse string that only looks for 'x' 'y' 'z' and 'r' */
+ parse_less = strdup(parse_string);
+ for (i = 0; i < (int)strlen(parse_string); i++)
+ {
+ if (parse_less[i] != 'x' &&
+ parse_less[i] != 'y' &&
+ parse_less[i] != 'z' &&
+ parse_less[i] != 'r')
+ {
+ parse_less[i] = 's';
+ }
+ }
+
+ do
+ {
+ parse_less[i] = '\0';
+ printf("nuking %d for %c\n", i, parse_less[i]);
+ i--;
+ } while (parse_less[i] == 's');
+
+
+ /* first pass to figure out the bounding box and number of returns */
+ if (verbose) {
+ fprintf(stderr,
+ "first pass over file '%s' with parse '%s'\n",
+ file_name_in,
+ parse_less);
+ }
+
+ /* read the first line */
+ while (fgets(line, sizeof(char) * MAX_CHARACTERS_PER_LINE, file_in))
+ {
+ point = LASPoint_Create();
+ if (parse(parse_less, line, xyz, point, &gps_time))
+ {
+ /* init the bounding box */
+ VecCopy3dv(xyz_min, xyz);
+ VecCopy3dv(xyz_max, xyz);
+
+ /* mark that we found the first point */
+ number_of_point_records = 1;
+
+ /* create return histogram */
+ number_of_points_by_return[LASPoint_GetReturnNumber(point)]++;
+
+ /* we can stop this loop */
+ break;
+ }
+ else
+ {
+ fprintf(stderr, "WARNING: cannot parse '%s' with '%s'. skipping ...\n",
+ line,
+ parse_less);
+
+ }
+ LASPoint_Destroy(point);
+ point = NULL;
+ }
+
+ /* did we manage to parse a line? */
+ if (number_of_point_records != 1)
+ {
+ fprintf(stderr, "ERROR: could not parse any lines with '%s'\n",
+ parse_less);
+ exit(1);
+ }
+
+ /* loop over the remaining lines */
+ while (fgets(line, sizeof(char) * MAX_CHARACTERS_PER_LINE, file_in))
+ {
+ point = LASPoint_Create();
+ if (parse(parse_less, line, xyz, point, &gps_time))
+ {
+ /* update bounding box */
+ VecUpdateMinMax3dv(xyz_min, xyz_max, xyz);
+
+ /* count points */
+ number_of_point_records++;
+
+ /* create return histogram */
+ number_of_points_by_return[LASPoint_GetReturnNumber(point)]++;
+ }
+ else
+ {
+ fprintf(stderr, "WARNING: cannot parse '%s' with '%s'. skipping ...\n",
+ line,
+ parse_less);
+
+ }
+ LASPoint_Destroy(point);
+ point = NULL;
+ }
+
+ /* output some stats */
+ if (verbose)
+ {
+ fprintf(stderr,
+ "npoints %d min %g %g %g max %g %g %g\n",
+ number_of_point_records,
+ xyz_min[0],
+ xyz_min[1],
+ xyz_min[2],
+ xyz_max[0],
+ xyz_max[1],
+ xyz_max[2]
+ );
+ fprintf(stderr,
+ "return histogram %d %d %d %d %d %d %d %d\n",
+ number_of_points_by_return[0],
+ number_of_points_by_return[1],
+ number_of_points_by_return[2],
+ number_of_points_by_return[3],
+ number_of_points_by_return[4],
+ number_of_points_by_return[5],
+ number_of_points_by_return[6],
+ number_of_points_by_return[7]
+ );
+ }
+
+ /* close the input file */
+ fclose(file_in);
+
+ /* compute bounding box after quantization */
+ for (i = 0; i < 3; i++)
+ {
+ xyz_min_quant[i] = (int)(0.5 + (xyz_min[i] - xyz_offset[i]) / xyz_scale[i]);
+ xyz_max_quant[i] = (int)(0.5 + (xyz_max[i] - xyz_offset[i]) / xyz_scale[i]);
+ }
+
+ for (i = 0; i < 3; i++)
+ {
+ xyz_min_dequant[i] = xyz_offset[i] + (xyz_min_quant[i] * xyz_scale[i]);
+ xyz_max_dequant[i] = xyz_offset[i] + (xyz_max_quant[i] * xyz_scale[i]);
+ }
+
+
+#define log_xor !=0==!
+
+ /* make sure there is not sign flip */
+ for (i = 0; i < 3; i++)
+ {
+ if ((xyz_min[i] > 0) log_xor (xyz_min_dequant[i] > 0))
+ {
+ fprintf(stderr,
+ "WARNING: quantization sign flip for %s min coord %g -> %g. use offset or scale up\n",
+ (i ? (i == 1 ? "y" : "z") : "x"),
+ xyz_min[i],
+ xyz_min_dequant[i]
+ );
+ }
+ if ((xyz_max[i] > 0) log_xor (xyz_max_dequant[i] > 0))
+ {
+ fprintf(stderr,
+ "WARNING: quantization sign flip for %s max coord %g -> %g. use offset or scale up\n",
+ (i ? (i == 1 ? "y" : "z") : "x"),
+ xyz_max[i],
+ xyz_max_dequant[i]
+ );
+ }
+ }
+
+#undef log_xor
+
+ /* populate the header */
+
+ header = LASHeader_Create();
+
+ if (system_identifier) LASHeader_SetSystemId(header, system_identifier);
+ if (generating_software) LASHeader_SetSoftwareId(header, generating_software);
+ LASHeader_SetCreationDOY(header, file_creation_day);
+ LASHeader_SetCreationYear(header, file_creation_year);
+
+
+ if (format == LAS_FORMAT_10) {
+ LASHeader_SetVersionMinor(header, 0);
+ } else if (format == LAS_FORMAT_11){
+ LASHeader_SetVersionMinor(header, 1);
+ } else if (format == LAS_FORMAT_12) {
+ LASHeader_SetVersionMinor(header, 2);
+ }
+
+ if (strstr(parse_string,"t") && (strstr(parse_string, "R") || strstr(parse_string, "G") ||strstr(parse_string, "B") ) )
+ {
+ fprintf(stderr, "Setting point format to 3, overriding version to 1.2 -- RGB + time\n");
+ LASHeader_SetDataFormatId(header, 3);
+ LASHeader_SetVersionMinor(header, 2);
+ }
+ else if ((strstr(parse_string, "R") || strstr(parse_string, "G") ||strstr(parse_string, "B") ) )
+ {
+ fprintf(stderr, "Setting point format to 2, overriding version to 1.2 -- RGB\n");
+ LASHeader_SetDataFormatId(header, 2);
+ LASHeader_SetVersionMinor(header, 2);
+ }
+ else if (strstr(parse_string,"t"))
+ {
+ fprintf(stderr, "Setting point format to 1\n");
+ LASHeader_SetDataFormatId(header, 1);
+ }
+
+ else
+ {
+ LASHeader_SetDataFormatId(header, 0);
+ }
+ LASHeader_SetPointRecordsCount(header, number_of_point_records);
+ LASHeader_SetScale(header, xyz_scale[0], xyz_scale[1], xyz_scale[2]);
+ LASHeader_SetOffset(header, xyz_offset[0], xyz_offset[1], xyz_offset[2]);
+ LASHeader_SetMin(header, xyz_min_dequant[0], xyz_min_dequant[1], xyz_min_dequant[2]);
+ LASHeader_SetMax(header, xyz_max_dequant[0], xyz_max_dequant[1], xyz_max_dequant[2]);
+ LASHeader_SetPointRecordsByReturnCount(header, 0, number_of_points_by_return[1]);
+ LASHeader_SetPointRecordsByReturnCount(header, 1, number_of_points_by_return[2]);
+ LASHeader_SetPointRecordsByReturnCount(header, 2, number_of_points_by_return[3]);
+ LASHeader_SetPointRecordsByReturnCount(header, 3, number_of_points_by_return[4]);
+ LASHeader_SetPointRecordsByReturnCount(header, 4, number_of_points_by_return[5]);
+
+
+
+
+ /* reopen input file for the second pass */
+ file_in = fopen(file_name_in, "r");
+
+ if (file_in == 0)
+ {
+ fprintf(stderr, "ERROR: could not open '%s' for second pass\n",file_name_in);
+ exit(1);
+ }
+
+ /*
+ because the output goes to a file we can do everything in a
+ single pass and compute the header information along the way
+ */
+
+ /* open output file */
+ printf("Creating file...\n");
+ writer = LASWriter_Create(file_name_out, header, LAS_MODE_WRITE);
+ if (!writer) {
+ LASError_Print("Could not open file for write mode ");
+ exit(1);
+ }
+
+ if (verbose) {
+ fprintf(stderr,
+ "scanning %s with parse '%s' writing to %s\n",
+ file_name_in ,
+ parse_string,
+ file_name_out
+ );
+ }
+
+
+ /* read the first line */
+ while (fgets(line, sizeof(char) * MAX_CHARACTERS_PER_LINE, file_in))
+ {
+ point = LASPoint_Create();
+ if (parse(parse_string, line, xyz, point, &gps_time))
+ {
+ /* init the bounding box */
+ VecCopy3dv(xyz_min, xyz);
+ VecCopy3dv(xyz_max, xyz);
+
+ /* mark that we found the first point */
+ number_of_point_records = 1;
+
+ /* create return histogram */
+ number_of_points_by_return[LASPoint_GetReturnNumber(point)]++;
+
+ /* compute the quantized x, y, and z values */
+ LASPoint_SetX(point, xyz[0]);
+ LASPoint_SetY(point, xyz[1]);
+ LASPoint_SetZ(point, xyz[2]);
+
+ /* write the first point */
+ err = LASWriter_WritePoint(writer, point);
+ if (err) {
+ LASError_Print("could not write point");
+ exit(1);
+ }
+
+ /* we can stop this loop */
+ break;
+ }
+ else
+ {
+ fprintf(stderr, "WARNING: cannot parse '%s' with '%s'. skipping ...\n",
+ line,
+ parse_string);
+ }
+ LASPoint_Destroy(point);
+ point = NULL;
+ }
+
+ /* did we manage to parse a line? */
+ if (number_of_point_records != 1)
+ {
+ fprintf(stderr, "ERROR: could not parse any lines with '%s'\n",
+ parse_less);
+ exit(1);
+ }
+
+ /* loop over the remaining lines */
+ while (fgets(line, sizeof(char) * MAX_CHARACTERS_PER_LINE, file_in))
+ {
+ point = LASPoint_Create();
+ if (parse(parse_string, line, xyz, point, &gps_time))
+ {
+ /* update bounding box */
+ VecUpdateMinMax3dv(xyz_min, xyz_max, xyz);
+
+ /* count points */
+ number_of_point_records++;
+
+ /* create return histogram */
+ number_of_points_by_return[LASPoint_GetReturnNumber(point)]++;
+
+ /* compute the quantized x, y, and z values */
+ LASPoint_SetX(point, xyz[0]);
+ LASPoint_SetY(point, xyz[1]);
+ LASPoint_SetZ(point, xyz[2]);
+
+ /* write the first point */
+ err = LASWriter_WritePoint(writer, point);
+ if (err) {
+ LASError_Print("could not write point");
+ exit(1);
+ }
+
+ }
+ else
+ {
+ fprintf(stderr, "WARNING: cannot parse '%s' with '%s'. skipping ...\n",
+ line,
+ parse_string);
+ }
+ LASPoint_Destroy(point);
+ point = NULL;
+ }
+
+
+ /* close up stuff */
+ fclose(file_in);
+ LASWriter_Destroy(writer);
+ if (verbose)
+ {
+ fprintf(stderr, "done.\n");
+ }
+
+
+ return 0;
+}
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/AUTHORS work/libLAS-1.2.1/AUTHORS
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/AUTHORS 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/AUTHORS 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,14 @@
+Mateusz Loskot
+mateusz at loskot.net
+
+Howard Butler
+hobu.inc at gmail.com
+
+Martin Vales
+mrodriguez at stereocarto.com
+
+Phillipe Vachon
+philippe at cowpig.ca
+
+Frank Warmerdam
+warmerdam at pobox.com
\ No newline at end of file
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/autogen.sh work/libLAS-1.2.1/autogen.sh
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/autogen.sh 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/autogen.sh 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,42 @@
+#!/bin/sh
+# $Id$
+#
+# Autotools boostrapping script
+#
+giveup()
+{
+ echo
+ echo " Something went wrong, giving up!"
+ echo
+ exit 1
+}
+
+OSTYPE=`uname -s`
+
+for libtoolize in glibtoolize libtoolize; do
+ LIBTOOLIZE=`which $libtoolize 2>/dev/null`
+ if test "$LIBTOOLIZE"; then
+ break;
+ fi
+done
+
+#AMFLAGS="--add-missing --copy --force-missing"
+AMFLAGS="--add-missing --copy"
+if test "$OSTYPE" = "IRIX" -o "$OSTYPE" = "IRIX64"; then
+ AMFLAGS=$AMFLAGS" --include-deps";
+fi
+
+echo "Running aclocal"
+aclocal || giveup
+#echo "Running autoheader"
+#autoheader || giveup
+echo "Running libtoolize"
+$LIBTOOLIZE --force --copy || giveup
+echo "Running automake"
+automake $AMFLAGS # || giveup
+echo "Running autoconf"
+autoconf || giveup
+
+echo "======================================"
+echo "Now you are ready to run './configure'"
+echo "======================================"
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/build/cmake/FindGeoTIFF.cmake work/libLAS-1.2.1/build/cmake/FindGeoTIFF.cmake
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/build/cmake/FindGeoTIFF.cmake 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/build/cmake/FindGeoTIFF.cmake 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,50 @@
+# CMake module to search for GeoTIFF library
+#
+# If it's found it sets GEOTIFF_FOUND to TRUE
+# and following variables are set:
+# GEOTIFF_INCLUDE_DIR
+# GEOTIFF_LIBRARY
+#
+#
+# FIND_PATH and FIND_LIBRARY normally search standard locations
+# before the specified paths. To search non-standard paths first,
+# FIND_* is invoked first with specified paths and NO_DEFAULT_PATH
+# and then again with no specified paths to search the default
+# locations. When an earlier FIND_* succeeds, subsequent FIND_*s
+# searching for the same item do nothing.
+FIND_PATH(GEOTIFF_INCLUDE_DIR geotiff.h
+ "$ENV{LIB_DIR}/include"
+ "$ENV{LIB_DIR}/include/geotiff"
+ #mingw
+ c:/msys/local/include
+ NO_DEFAULT_PATH
+ )
+FIND_PATH(GEOTIFF_INCLUDE_DIR geotiff.h)
+
+SET(GEOTIFF_NAMES ${GEOTIFF_NAMES} geotiff geotiff_i)
+
+FIND_LIBRARY(GEOTIFF_LIBRARY NAMES ${GEOTIFF_NAMES} PATHS
+ "$ENV{LIB_DIR}/lib"
+ #mingw
+ c:/msys/local/lib
+ NO_DEFAULT_PATH
+ )
+FIND_LIBRARY(GEOTIFF_LIBRARY NAMES ${GEOTIFF_NAMES})
+
+IF (GEOTIFF_INCLUDE_DIR AND GEOTIFF_LIBRARY)
+ SET(GEOTIFF_FOUND TRUE)
+ENDIF (GEOTIFF_INCLUDE_DIR AND GEOTIFF_LIBRARY)
+
+IF (GEOTIFF_FOUND)
+
+ IF (NOT GEOTIFF_FIND_QUIETLY)
+ MESSAGE(STATUS "Found GeoTIFF: ${GEOTIFF_LIBRARY}")
+ ENDIF (NOT GEOTIFF_FIND_QUIETLY)
+
+ELSE (GEOTIFF_FOUND)
+
+ IF (GEOTIFF_FIND_REQUIRED)
+ MESSAGE(FATAL_ERROR "Could not find GeoTIFF library")
+ ENDIF (GEOTIFF_FIND_REQUIRED)
+
+ENDIF (GEOTIFF_FOUND)
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/build/msvc60/las.dsw work/libLAS-1.2.1/build/msvc60/las.dsw
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/build/msvc60/las.dsw 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/build/msvc60/las.dsw 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,113 @@
+Microsoft Developer Studio Workspace File, Format Version 6.00
+# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
+
+###############################################################################
+
+Project: "las2las"=.\tools\las2las.dsp - Package Owner=<4>
+
+Package=<5>
+{{{
+}}}
+
+Package=<4>
+{{{
+}}}
+
+###############################################################################
+
+Project: "las2txt"=.\tools\las2txt.dsp - Package Owner=<4>
+
+Package=<5>
+{{{
+}}}
+
+Package=<4>
+{{{
+}}}
+
+###############################################################################
+
+Project: "lasdiff"=.\tools\lasdiff.dsp - Package Owner=<4>
+
+Package=<5>
+{{{
+}}}
+
+Package=<4>
+{{{
+}}}
+
+###############################################################################
+
+Project: "lasinfo"=.\tools\lasinfo.dsp - Package Owner=<4>
+
+Package=<5>
+{{{
+}}}
+
+Package=<4>
+{{{
+}}}
+
+###############################################################################
+
+Project: "lasmerge"=.\tools\lasmerge.dsp - Package Owner=<4>
+
+Package=<5>
+{{{
+}}}
+
+Package=<4>
+{{{
+}}}
+
+###############################################################################
+
+Project: "lasview"=.\tools\lasview.dsp - Package Owner=<4>
+
+Package=<5>
+{{{
+}}}
+
+Package=<4>
+{{{
+}}}
+
+###############################################################################
+
+Project: "laszip"=.\tools\laszip.dsp - Package Owner=<4>
+
+Package=<5>
+{{{
+}}}
+
+Package=<4>
+{{{
+}}}
+
+###############################################################################
+
+Project: "txt2las"=.\tools\txt2las.dsp - Package Owner=<4>
+
+Package=<5>
+{{{
+}}}
+
+Package=<4>
+{{{
+}}}
+
+###############################################################################
+
+Global:
+
+Package=<5>
+{{{
+}}}
+
+Package=<3>
+{{{
+}}}
+
+###############################################################################
+
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/build/msvc60/las2las.dsp work/libLAS-1.2.1/build/msvc60/las2las.dsp
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/build/msvc60/las2las.dsp 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/build/msvc60/las2las.dsp 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,134 @@
+# Microsoft Developer Studio Project File - Name="las2las" - Package Owner=<4>
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** DO NOT EDIT **
+
+# TARGTYPE "Win32 (x86) Console Application" 0x0103
+
+CFG=las2las - Win32 Debug
+!MESSAGE This is not a valid makefile. To build this project using NMAKE,
+!MESSAGE use the Export Makefile command and run
+!MESSAGE
+!MESSAGE NMAKE /f "las2las.mak".
+!MESSAGE
+!MESSAGE You can specify a configuration when running NMAKE
+!MESSAGE by defining the macro CFG on the command line. For example:
+!MESSAGE
+!MESSAGE NMAKE /f "las2las.mak" CFG="las2las - Win32 Debug"
+!MESSAGE
+!MESSAGE Possible choices for configuration are:
+!MESSAGE
+!MESSAGE "las2las - Win32 Release" (based on "Win32 (x86) Console Application")
+!MESSAGE "las2las - Win32 Debug" (based on "Win32 (x86) Console Application")
+!MESSAGE
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName ""
+# PROP Scc_LocalPath ""
+CPP=cl.exe
+RSC=rc.exe
+
+!IF "$(CFG)" == "las2las - Win32 Release"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "Release"
+# PROP BASE Intermediate_Dir "Release"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir "Release"
+# PROP Intermediate_Dir "Release"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
+# ADD CPP /nologo /W3 /GX /O2 /I "..\inc" /I "..\stl" /I "..\src" /D "NDEBUG" /D "WIN32" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
+# ADD BASE RSC /l 0x409 /d "NDEBUG"
+# ADD RSC /l 0x409 /i "../src" /d "NDEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
+# ADD LINK32 ../lib/LASlib.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
+# Begin Special Build Tool
+SOURCE="$(InputPath)"
+PostBuild_Cmds=copy Release\las2las.exe ..\bin\las2las.exe
+# End Special Build Tool
+
+!ELSEIF "$(CFG)" == "las2las - Win32 Debug"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir "Debug"
+# PROP BASE Intermediate_Dir "Debug"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir "Debug"
+# PROP Intermediate_Dir "Debug"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c
+# ADD CPP /nologo /W3 /Gm /GX /ZI /Od /I "..\inc" /I "..\stl" /I "..\src" /D "_DEBUG" /D "WIN32" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c
+# ADD BASE RSC /l 0x409 /d "_DEBUG"
+# ADD RSC /l 0x409 /i "..\..\src" /d "_DEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
+# ADD LINK32 ../libD/LASlib.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
+# Begin Special Build Tool
+SOURCE="$(InputPath)"
+PostBuild_Cmds=copy Debug\las2las.exe ..\bin\las2las.exe
+# End Special Build Tool
+
+!ENDIF
+
+# Begin Target
+
+# Name "las2las - Win32 Release"
+# Name "las2las - Win32 Debug"
+# Begin Group "Source Files"
+
+# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
+# Begin Source File
+
+SOURCE=.\src\fopengzipped.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=.\src\las2las.cpp
+# End Source File
+# End Group
+# Begin Group "Header Files"
+
+# PROP Default_Filter "h;hpp;hxx;hm;inl"
+# Begin Source File
+
+SOURCE=..\inc\lasdefinitions.h
+# End Source File
+# Begin Source File
+
+SOURCE=..\inc\laspointreader.h
+# End Source File
+# Begin Source File
+
+SOURCE=..\inc\laspointwriter.h
+# End Source File
+# Begin Source File
+
+SOURCE=..\inc\lasreader.h
+# End Source File
+# Begin Source File
+
+SOURCE=..\inc\laswriter.h
+# End Source File
+# End Group
+# Begin Group "Resource Files"
+
+# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
+# End Group
+# End Target
+# End Project
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/build/msvc60/las2txt.dsp work/libLAS-1.2.1/build/msvc60/las2txt.dsp
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/build/msvc60/las2txt.dsp 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/build/msvc60/las2txt.dsp 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,126 @@
+# Microsoft Developer Studio Project File - Name="las2txt" - Package Owner=<4>
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** DO NOT EDIT **
+
+# TARGTYPE "Win32 (x86) Console Application" 0x0103
+
+CFG=las2txt - Win32 Debug
+!MESSAGE This is not a valid makefile. To build this project using NMAKE,
+!MESSAGE use the Export Makefile command and run
+!MESSAGE
+!MESSAGE NMAKE /f "las2txt.mak".
+!MESSAGE
+!MESSAGE You can specify a configuration when running NMAKE
+!MESSAGE by defining the macro CFG on the command line. For example:
+!MESSAGE
+!MESSAGE NMAKE /f "las2txt.mak" CFG="las2txt - Win32 Debug"
+!MESSAGE
+!MESSAGE Possible choices for configuration are:
+!MESSAGE
+!MESSAGE "las2txt - Win32 Release" (based on "Win32 (x86) Console Application")
+!MESSAGE "las2txt - Win32 Debug" (based on "Win32 (x86) Console Application")
+!MESSAGE
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName ""
+# PROP Scc_LocalPath ""
+CPP=cl.exe
+RSC=rc.exe
+
+!IF "$(CFG)" == "las2txt - Win32 Release"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "Release"
+# PROP BASE Intermediate_Dir "Release"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir "Release"
+# PROP Intermediate_Dir "Release"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
+# ADD CPP /nologo /W3 /GX /O2 /I "..\inc" /I "..\stl" /I "..\src" /D "NDEBUG" /D "WIN32" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
+# ADD BASE RSC /l 0x409 /d "NDEBUG"
+# ADD RSC /l 0x409 /i "../src" /d "NDEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
+# ADD LINK32 ../lib/LASlib.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
+# Begin Special Build Tool
+SOURCE="$(InputPath)"
+PostBuild_Cmds=copy Release\las2txt.exe ..\bin\las2txt.exe
+# End Special Build Tool
+
+!ELSEIF "$(CFG)" == "las2txt - Win32 Debug"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir "Debug"
+# PROP BASE Intermediate_Dir "Debug"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir "Debug"
+# PROP Intermediate_Dir "Debug"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c
+# ADD CPP /nologo /W3 /Gm /GX /ZI /Od /I "..\inc" /I "..\stl" /I "..\src" /D "_DEBUG" /D "WIN32" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c
+# ADD BASE RSC /l 0x409 /d "_DEBUG"
+# ADD RSC /l 0x409 /i "..\..\src" /d "_DEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
+# ADD LINK32 ../libD/LASlib.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
+# Begin Special Build Tool
+SOURCE="$(InputPath)"
+PostBuild_Cmds=copy Debug\las2txt.exe ..\bin\las2txt.exe
+# End Special Build Tool
+
+!ENDIF
+
+# Begin Target
+
+# Name "las2txt - Win32 Release"
+# Name "las2txt - Win32 Debug"
+# Begin Group "Source Files"
+
+# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
+# Begin Source File
+
+SOURCE=.\src\fopengzipped.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=.\src\las2txt.cpp
+# End Source File
+# End Group
+# Begin Group "Header Files"
+
+# PROP Default_Filter "h;hpp;hxx;hm;inl"
+# Begin Source File
+
+SOURCE=..\inc\lasdefinitions.h
+# End Source File
+# Begin Source File
+
+SOURCE=..\inc\laspointreader.h
+# End Source File
+# Begin Source File
+
+SOURCE=..\inc\lasreader.h
+# End Source File
+# End Group
+# Begin Group "Resource Files"
+
+# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
+# End Group
+# End Target
+# End Project
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/build/msvc60/lasdiff.dsp work/libLAS-1.2.1/build/msvc60/lasdiff.dsp
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/build/msvc60/lasdiff.dsp 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/build/msvc60/lasdiff.dsp 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,126 @@
+# Microsoft Developer Studio Project File - Name="lasdiff" - Package Owner=<4>
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** DO NOT EDIT **
+
+# TARGTYPE "Win32 (x86) Console Application" 0x0103
+
+CFG=lasdiff - Win32 Debug
+!MESSAGE This is not a valid makefile. To build this project using NMAKE,
+!MESSAGE use the Export Makefile command and run
+!MESSAGE
+!MESSAGE NMAKE /f "lasdiff.mak".
+!MESSAGE
+!MESSAGE You can specify a configuration when running NMAKE
+!MESSAGE by defining the macro CFG on the command line. For example:
+!MESSAGE
+!MESSAGE NMAKE /f "lasdiff.mak" CFG="lasdiff - Win32 Debug"
+!MESSAGE
+!MESSAGE Possible choices for configuration are:
+!MESSAGE
+!MESSAGE "lasdiff - Win32 Release" (based on "Win32 (x86) Console Application")
+!MESSAGE "lasdiff - Win32 Debug" (based on "Win32 (x86) Console Application")
+!MESSAGE
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName ""
+# PROP Scc_LocalPath ""
+CPP=cl.exe
+RSC=rc.exe
+
+!IF "$(CFG)" == "lasdiff - Win32 Release"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "Release"
+# PROP BASE Intermediate_Dir "Release"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir "Release"
+# PROP Intermediate_Dir "Release"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
+# ADD CPP /nologo /W3 /GX /O2 /I "..\inc" /I "..\stl" /I "..\src" /D "NDEBUG" /D "WIN32" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
+# ADD BASE RSC /l 0x409 /d "NDEBUG"
+# ADD RSC /l 0x409 /i "../src" /d "NDEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
+# ADD LINK32 ../lib/LASlib.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
+# Begin Special Build Tool
+SOURCE="$(InputPath)"
+PostBuild_Cmds=copy Release\lasdiff.exe ..\bin\lasdiff.exe
+# End Special Build Tool
+
+!ELSEIF "$(CFG)" == "lasdiff - Win32 Debug"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir "Debug"
+# PROP BASE Intermediate_Dir "Debug"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir "Debug"
+# PROP Intermediate_Dir "Debug"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c
+# ADD CPP /nologo /W3 /Gm /GX /ZI /Od /I "..\inc" /I "..\stl" /I "..\src" /D "_DEBUG" /D "WIN32" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c
+# ADD BASE RSC /l 0x409 /d "_DEBUG"
+# ADD RSC /l 0x409 /i "..\..\src" /d "_DEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
+# ADD LINK32 ../libD/LASlib.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
+# Begin Special Build Tool
+SOURCE="$(InputPath)"
+PostBuild_Cmds=copy Debug\lasdiff.exe ..\bin\lasdiff.exe
+# End Special Build Tool
+
+!ENDIF
+
+# Begin Target
+
+# Name "lasdiff - Win32 Release"
+# Name "lasdiff - Win32 Debug"
+# Begin Group "Source Files"
+
+# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
+# Begin Source File
+
+SOURCE=.\src\fopengzipped.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=.\src\lasdiff.cpp
+# End Source File
+# End Group
+# Begin Group "Header Files"
+
+# PROP Default_Filter "h;hpp;hxx;hm;inl"
+# Begin Source File
+
+SOURCE=..\inc\lasdefinitions.h
+# End Source File
+# Begin Source File
+
+SOURCE=..\inc\laspointreader.h
+# End Source File
+# Begin Source File
+
+SOURCE=..\inc\lasreader.h
+# End Source File
+# End Group
+# Begin Group "Resource Files"
+
+# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
+# End Group
+# End Target
+# End Project
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/build/msvc60/lasinfo.dsp work/libLAS-1.2.1/build/msvc60/lasinfo.dsp
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/build/msvc60/lasinfo.dsp 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/build/msvc60/lasinfo.dsp 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,126 @@
+# Microsoft Developer Studio Project File - Name="lasinfo" - Package Owner=<4>
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** DO NOT EDIT **
+
+# TARGTYPE "Win32 (x86) Console Application" 0x0103
+
+CFG=lasinfo - Win32 Debug
+!MESSAGE This is not a valid makefile. To build this project using NMAKE,
+!MESSAGE use the Export Makefile command and run
+!MESSAGE
+!MESSAGE NMAKE /f "lasinfo.mak".
+!MESSAGE
+!MESSAGE You can specify a configuration when running NMAKE
+!MESSAGE by defining the macro CFG on the command line. For example:
+!MESSAGE
+!MESSAGE NMAKE /f "lasinfo.mak" CFG="lasinfo - Win32 Debug"
+!MESSAGE
+!MESSAGE Possible choices for configuration are:
+!MESSAGE
+!MESSAGE "lasinfo - Win32 Release" (based on "Win32 (x86) Console Application")
+!MESSAGE "lasinfo - Win32 Debug" (based on "Win32 (x86) Console Application")
+!MESSAGE
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName ""
+# PROP Scc_LocalPath ""
+CPP=cl.exe
+RSC=rc.exe
+
+!IF "$(CFG)" == "lasinfo - Win32 Release"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "Release"
+# PROP BASE Intermediate_Dir "Release"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir "Release"
+# PROP Intermediate_Dir "Release"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
+# ADD CPP /nologo /W3 /GX /O2 /I "..\inc" /I "..\stl" /I "..\src" /D "NDEBUG" /D "WIN32" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
+# ADD BASE RSC /l 0x409 /d "NDEBUG"
+# ADD RSC /l 0x409 /i "../src" /d "NDEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
+# ADD LINK32 ../lib/LASlib.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
+# Begin Special Build Tool
+SOURCE="$(InputPath)"
+PostBuild_Cmds=copy Release\lasinfo.exe ..\bin\lasinfo.exe
+# End Special Build Tool
+
+!ELSEIF "$(CFG)" == "lasinfo - Win32 Debug"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir "Debug"
+# PROP BASE Intermediate_Dir "Debug"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir "Debug"
+# PROP Intermediate_Dir "Debug"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c
+# ADD CPP /nologo /W3 /Gm /GX /ZI /Od /I "..\inc" /I "..\stl" /I "..\src" /D "_DEBUG" /D "WIN32" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c
+# ADD BASE RSC /l 0x409 /d "_DEBUG"
+# ADD RSC /l 0x409 /i "..\..\src" /d "_DEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
+# ADD LINK32 ../libD/LASlib.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
+# Begin Special Build Tool
+SOURCE="$(InputPath)"
+PostBuild_Cmds=copy Debug\lasinfo.exe ..\bin\lasinfo.exe
+# End Special Build Tool
+
+!ENDIF
+
+# Begin Target
+
+# Name "lasinfo - Win32 Release"
+# Name "lasinfo - Win32 Debug"
+# Begin Group "Source Files"
+
+# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
+# Begin Source File
+
+SOURCE=.\src\fopengzipped.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=.\src\lasinfo.cpp
+# End Source File
+# End Group
+# Begin Group "Header Files"
+
+# PROP Default_Filter "h;hpp;hxx;hm;inl"
+# Begin Source File
+
+SOURCE=..\inc\lasdefinitions.h
+# End Source File
+# Begin Source File
+
+SOURCE=..\inc\laspointreader.h
+# End Source File
+# Begin Source File
+
+SOURCE=..\inc\lasreader.h
+# End Source File
+# End Group
+# Begin Group "Resource Files"
+
+# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
+# End Group
+# End Target
+# End Project
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/build/msvc60/lasmerge.dsp work/libLAS-1.2.1/build/msvc60/lasmerge.dsp
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/build/msvc60/lasmerge.dsp 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/build/msvc60/lasmerge.dsp 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,126 @@
+# Microsoft Developer Studio Project File - Name="lasmerge" - Package Owner=<4>
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** DO NOT EDIT **
+
+# TARGTYPE "Win32 (x86) Console Application" 0x0103
+
+CFG=lasmerge - Win32 Debug
+!MESSAGE This is not a valid makefile. To build this project using NMAKE,
+!MESSAGE use the Export Makefile command and run
+!MESSAGE
+!MESSAGE NMAKE /f "lasmerge.mak".
+!MESSAGE
+!MESSAGE You can specify a configuration when running NMAKE
+!MESSAGE by defining the macro CFG on the command line. For example:
+!MESSAGE
+!MESSAGE NMAKE /f "lasmerge.mak" CFG="lasmerge - Win32 Debug"
+!MESSAGE
+!MESSAGE Possible choices for configuration are:
+!MESSAGE
+!MESSAGE "lasmerge - Win32 Release" (based on "Win32 (x86) Console Application")
+!MESSAGE "lasmerge - Win32 Debug" (based on "Win32 (x86) Console Application")
+!MESSAGE
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName ""
+# PROP Scc_LocalPath ""
+CPP=cl.exe
+RSC=rc.exe
+
+!IF "$(CFG)" == "lasmerge - Win32 Release"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "Release"
+# PROP BASE Intermediate_Dir "Release"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir "Release"
+# PROP Intermediate_Dir "Release"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
+# ADD CPP /nologo /W3 /GX /O2 /I "..\inc" /I "..\stl" /I "..\src" /D "NDEBUG" /D "WIN32" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
+# ADD BASE RSC /l 0x409 /d "NDEBUG"
+# ADD RSC /l 0x409 /i "../src" /d "NDEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
+# ADD LINK32 ../lib/LASlib.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
+# Begin Special Build Tool
+SOURCE="$(InputPath)"
+PostBuild_Cmds=copy Release\lasmerge.exe ..\bin\lasmerge.exe
+# End Special Build Tool
+
+!ELSEIF "$(CFG)" == "lasmerge - Win32 Debug"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir "Debug"
+# PROP BASE Intermediate_Dir "Debug"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir "Debug"
+# PROP Intermediate_Dir "Debug"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c
+# ADD CPP /nologo /W3 /Gm /GX /ZI /Od /I "..\inc" /I "..\stl" /I "..\src" /D "_DEBUG" /D "WIN32" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c
+# ADD BASE RSC /l 0x409 /d "_DEBUG"
+# ADD RSC /l 0x409 /i "..\..\src" /d "_DEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
+# ADD LINK32 ../libD/LASlib.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
+# Begin Special Build Tool
+SOURCE="$(InputPath)"
+PostBuild_Cmds=copy Debug\lasmerge.exe ..\bin\lasmerge.exe
+# End Special Build Tool
+
+!ENDIF
+
+# Begin Target
+
+# Name "lasmerge - Win32 Release"
+# Name "lasmerge - Win32 Debug"
+# Begin Group "Source Files"
+
+# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
+# Begin Source File
+
+SOURCE=.\src\fopengzipped.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=.\src\lasmerge.cpp
+# End Source File
+# End Group
+# Begin Group "Header Files"
+
+# PROP Default_Filter "h;hpp;hxx;hm;inl"
+# Begin Source File
+
+SOURCE=..\inc\lasdefinitions.h
+# End Source File
+# Begin Source File
+
+SOURCE=..\inc\laspointwriter.h
+# End Source File
+# Begin Source File
+
+SOURCE=..\inc\laswriter.h
+# End Source File
+# End Group
+# Begin Group "Resource Files"
+
+# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
+# End Group
+# End Target
+# End Project
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/build/msvc60/lasview.dsp work/libLAS-1.2.1/build/msvc60/lasview.dsp
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/build/msvc60/lasview.dsp 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/build/msvc60/lasview.dsp 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,126 @@
+# Microsoft Developer Studio Project File - Name="lasview" - Package Owner=<4>
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** DO NOT EDIT **
+
+# TARGTYPE "Win32 (x86) Console Application" 0x0103
+
+CFG=lasview - Win32 Debug
+!MESSAGE This is not a valid makefile. To build this project using NMAKE,
+!MESSAGE use the Export Makefile command and run
+!MESSAGE
+!MESSAGE NMAKE /f "lasview.mak".
+!MESSAGE
+!MESSAGE You can specify a configuration when running NMAKE
+!MESSAGE by defining the macro CFG on the command line. For example:
+!MESSAGE
+!MESSAGE NMAKE /f "lasview.mak" CFG="lasview - Win32 Debug"
+!MESSAGE
+!MESSAGE Possible choices for configuration are:
+!MESSAGE
+!MESSAGE "lasview - Win32 Release" (based on "Win32 (x86) Console Application")
+!MESSAGE "lasview - Win32 Debug" (based on "Win32 (x86) Console Application")
+!MESSAGE
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName ""
+# PROP Scc_LocalPath ""
+CPP=cl.exe
+RSC=rc.exe
+
+!IF "$(CFG)" == "lasview - Win32 Release"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "Release"
+# PROP BASE Intermediate_Dir "Release"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir "Release"
+# PROP Intermediate_Dir "Release"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
+# ADD CPP /nologo /W3 /GX /O2 /I "..\inc" /I "..\stl" /I "..\src" /D "NDEBUG" /D "WIN32" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
+# ADD BASE RSC /l 0x409 /d "NDEBUG"
+# ADD RSC /l 0x409 /i "../src" /d "NDEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
+# ADD LINK32 ../lib/LASlib.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
+# Begin Special Build Tool
+SOURCE="$(InputPath)"
+PostBuild_Cmds=copy Release\lasview.exe ..\bin\lasview.exe
+# End Special Build Tool
+
+!ELSEIF "$(CFG)" == "lasview - Win32 Debug"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir "Debug"
+# PROP BASE Intermediate_Dir "Debug"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir "Debug"
+# PROP Intermediate_Dir "Debug"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c
+# ADD CPP /nologo /W3 /Gm /GX /ZI /Od /I "..\inc" /I "..\stl" /I "..\src" /D "_DEBUG" /D "WIN32" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c
+# ADD BASE RSC /l 0x409 /d "_DEBUG"
+# ADD RSC /l 0x409 /i "..\..\src" /d "_DEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
+# ADD LINK32 ../libD/LASlib.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
+# Begin Special Build Tool
+SOURCE="$(InputPath)"
+PostBuild_Cmds=copy Debug\lasview.exe ..\bin\lasview.exe
+# End Special Build Tool
+
+!ENDIF
+
+# Begin Target
+
+# Name "lasview - Win32 Release"
+# Name "lasview - Win32 Debug"
+# Begin Group "Source Files"
+
+# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
+# Begin Source File
+
+SOURCE=.\src\fopengzipped.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=.\src\lasview.cpp
+# End Source File
+# End Group
+# Begin Group "Header Files"
+
+# PROP Default_Filter "h;hpp;hxx;hm;inl"
+# Begin Source File
+
+SOURCE=..\inc\lasdefinitions.h
+# End Source File
+# Begin Source File
+
+SOURCE=..\inc\laspointreader.h
+# End Source File
+# Begin Source File
+
+SOURCE=..\inc\lasreader.h
+# End Source File
+# End Group
+# Begin Group "Resource Files"
+
+# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
+# End Group
+# End Target
+# End Project
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/build/msvc60/laszip.dsp work/libLAS-1.2.1/build/msvc60/laszip.dsp
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/build/msvc60/laszip.dsp 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/build/msvc60/laszip.dsp 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,134 @@
+# Microsoft Developer Studio Project File - Name="laszip" - Package Owner=<4>
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** DO NOT EDIT **
+
+# TARGTYPE "Win32 (x86) Console Application" 0x0103
+
+CFG=laszip - Win32 Debug
+!MESSAGE This is not a valid makefile. To build this project using NMAKE,
+!MESSAGE use the Export Makefile command and run
+!MESSAGE
+!MESSAGE NMAKE /f "laszip.mak".
+!MESSAGE
+!MESSAGE You can specify a configuration when running NMAKE
+!MESSAGE by defining the macro CFG on the command line. For example:
+!MESSAGE
+!MESSAGE NMAKE /f "laszip.mak" CFG="laszip - Win32 Debug"
+!MESSAGE
+!MESSAGE Possible choices for configuration are:
+!MESSAGE
+!MESSAGE "laszip - Win32 Release" (based on "Win32 (x86) Console Application")
+!MESSAGE "laszip - Win32 Debug" (based on "Win32 (x86) Console Application")
+!MESSAGE
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName ""
+# PROP Scc_LocalPath ""
+CPP=cl.exe
+RSC=rc.exe
+
+!IF "$(CFG)" == "laszip - Win32 Release"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "Release"
+# PROP BASE Intermediate_Dir "Release"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir "Release"
+# PROP Intermediate_Dir "Release"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
+# ADD CPP /nologo /W3 /GX /O2 /I "..\inc" /I "..\stl" /I "..\src" /D "NDEBUG" /D "WIN32" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
+# ADD BASE RSC /l 0x409 /d "NDEBUG"
+# ADD RSC /l 0x409 /i "../src" /d "NDEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
+# ADD LINK32 ../lib/LASlib.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
+# Begin Special Build Tool
+SOURCE="$(InputPath)"
+PostBuild_Cmds=copy Release\laszip.exe ..\bin\laszip.exe
+# End Special Build Tool
+
+!ELSEIF "$(CFG)" == "laszip - Win32 Debug"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir "Debug"
+# PROP BASE Intermediate_Dir "Debug"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir "Debug"
+# PROP Intermediate_Dir "Debug"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c
+# ADD CPP /nologo /W3 /Gm /GX /ZI /Od /I "..\inc" /I "..\stl" /I "..\src" /D "_DEBUG" /D "WIN32" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c
+# ADD BASE RSC /l 0x409 /d "_DEBUG"
+# ADD RSC /l 0x409 /i "..\..\src" /d "_DEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
+# ADD LINK32 ../libD/LASlib.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
+# Begin Special Build Tool
+SOURCE="$(InputPath)"
+PostBuild_Cmds=copy Debug\laszip.exe ..\bin\laszip.exe
+# End Special Build Tool
+
+!ENDIF
+
+# Begin Target
+
+# Name "laszip - Win32 Release"
+# Name "laszip - Win32 Debug"
+# Begin Group "Source Files"
+
+# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
+# Begin Source File
+
+SOURCE=.\src\fopengzipped.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=.\src\laszip.cpp
+# End Source File
+# End Group
+# Begin Group "Header Files"
+
+# PROP Default_Filter "h;hpp;hxx;hm;inl"
+# Begin Source File
+
+SOURCE=..\inc\lasdefinitions.h
+# End Source File
+# Begin Source File
+
+SOURCE=..\inc\laspointreader.h
+# End Source File
+# Begin Source File
+
+SOURCE=..\inc\laspointwriter.h
+# End Source File
+# Begin Source File
+
+SOURCE=..\inc\lasreader.h
+# End Source File
+# Begin Source File
+
+SOURCE=..\inc\laswriter.h
+# End Source File
+# End Group
+# Begin Group "Resource Files"
+
+# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
+# End Group
+# End Target
+# End Project
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/build/msvc60/txt2las.dsp work/libLAS-1.2.1/build/msvc60/txt2las.dsp
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/build/msvc60/txt2las.dsp 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/build/msvc60/txt2las.dsp 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,126 @@
+# Microsoft Developer Studio Project File - Name="txt2las" - Package Owner=<4>
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** DO NOT EDIT **
+
+# TARGTYPE "Win32 (x86) Console Application" 0x0103
+
+CFG=txt2las - Win32 Debug
+!MESSAGE This is not a valid makefile. To build this project using NMAKE,
+!MESSAGE use the Export Makefile command and run
+!MESSAGE
+!MESSAGE NMAKE /f "txt2las.mak".
+!MESSAGE
+!MESSAGE You can specify a configuration when running NMAKE
+!MESSAGE by defining the macro CFG on the command line. For example:
+!MESSAGE
+!MESSAGE NMAKE /f "txt2las.mak" CFG="txt2las - Win32 Debug"
+!MESSAGE
+!MESSAGE Possible choices for configuration are:
+!MESSAGE
+!MESSAGE "txt2las - Win32 Release" (based on "Win32 (x86) Console Application")
+!MESSAGE "txt2las - Win32 Debug" (based on "Win32 (x86) Console Application")
+!MESSAGE
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName ""
+# PROP Scc_LocalPath ""
+CPP=cl.exe
+RSC=rc.exe
+
+!IF "$(CFG)" == "txt2las - Win32 Release"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "Release"
+# PROP BASE Intermediate_Dir "Release"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir "Release"
+# PROP Intermediate_Dir "Release"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
+# ADD CPP /nologo /W3 /GX /O2 /I "..\inc" /I "..\stl" /I "..\src" /D "NDEBUG" /D "WIN32" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
+# ADD BASE RSC /l 0x409 /d "NDEBUG"
+# ADD RSC /l 0x409 /i "../src" /d "NDEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
+# ADD LINK32 ../lib/LASlib.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
+# Begin Special Build Tool
+SOURCE="$(InputPath)"
+PostBuild_Cmds=copy Release\txt2las.exe ..\bin\txt2las.exe
+# End Special Build Tool
+
+!ELSEIF "$(CFG)" == "txt2las - Win32 Debug"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir "Debug"
+# PROP BASE Intermediate_Dir "Debug"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir "Debug"
+# PROP Intermediate_Dir "Debug"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c
+# ADD CPP /nologo /W3 /Gm /GX /ZI /Od /I "..\inc" /I "..\stl" /I "..\src" /D "_DEBUG" /D "WIN32" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c
+# ADD BASE RSC /l 0x409 /d "_DEBUG"
+# ADD RSC /l 0x409 /i "..\..\src" /d "_DEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
+# ADD LINK32 ../libD/LASlib.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
+# Begin Special Build Tool
+SOURCE="$(InputPath)"
+PostBuild_Cmds=copy Debug\txt2las.exe ..\bin\txt2las.exe
+# End Special Build Tool
+
+!ENDIF
+
+# Begin Target
+
+# Name "txt2las - Win32 Release"
+# Name "txt2las - Win32 Debug"
+# Begin Group "Source Files"
+
+# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
+# Begin Source File
+
+SOURCE=.\src\fopengzipped.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=.\src\txt2las.cpp
+# End Source File
+# End Group
+# Begin Group "Header Files"
+
+# PROP Default_Filter "h;hpp;hxx;hm;inl"
+# Begin Source File
+
+SOURCE=..\inc\lasdefinitions.h
+# End Source File
+# Begin Source File
+
+SOURCE=..\inc\laspointwriter.h
+# End Source File
+# Begin Source File
+
+SOURCE=..\inc\laswriter.h
+# End Source File
+# End Group
+# Begin Group "Resource Files"
+
+# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
+# End Group
+# End Target
+# End Project
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/build/msvc80/clean.bat work/libLAS-1.2.1/build/msvc80/clean.bat
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/build/msvc80/clean.bat 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/build/msvc80/clean.bat 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,26 @@
+@ECHO OFF
+REM
+REM $Id$
+REM
+REM This script is used to do fast cleanup of all intermediate files
+REM generated by Visual Studio during building process.
+REM NOTE: Some files can be erased only if liblas.sln is not loaded in VS IDE.
+REM
+FOR %%d in (liblas_lib liblas_dll liblas_c_dll lasdiff lasinfo lasmerge liblas_test las2las las2txt txt2las las2ogr) DO (
+ IF EXIST %%d\Debug DEL /F /Q %%d\Debug\*.*
+ IF EXIST %%d\Release DEL /F /Q %%d\Release\*.*
+ IF EXIST %%d\Debug RD %%d\Debug
+ IF EXIST %%d\Release RD %%d\Release
+ IF EXIST %%d\*.vcproj.*.user DEL /F /Q %%d\*.vcproj.*.user
+)
+
+IF EXIST .\Debug DEL /F /Q .\Debug\*.*
+IF EXIST .\Release DEL /F /Q .\Release\*.*
+IF EXIST .\Debug RD .\Debug
+IF EXIST .\Release RD .\Release
+
+FOR %%f in (liblas.ncb) DO (
+ IF EXIST %%f DEL /F /Q %%f
+)
+
+REM EOF
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/build/msvc80/las2las/las2las.vcproj work/libLAS-1.2.1/build/msvc80/las2las/las2las.vcproj
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/build/msvc80/las2las/las2las.vcproj 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/build/msvc80/las2las/las2las.vcproj 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,191 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/build/msvc80/las2ogr/las2ogr.vcproj work/libLAS-1.2.1/build/msvc80/las2ogr/las2ogr.vcproj
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/build/msvc80/las2ogr/las2ogr.vcproj 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/build/msvc80/las2ogr/las2ogr.vcproj 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,186 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/build/msvc80/las2ogr/las2ogr.vsprops work/libLAS-1.2.1/build/msvc80/las2ogr/las2ogr.vsprops
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/build/msvc80/las2ogr/las2ogr.vsprops 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/build/msvc80/las2ogr/las2ogr.vsprops 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,20 @@
+
+
+
+
+
+
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/build/msvc80/las2txt/las2txt.vcproj work/libLAS-1.2.1/build/msvc80/las2txt/las2txt.vcproj
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/build/msvc80/las2txt/las2txt.vcproj 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/build/msvc80/las2txt/las2txt.vcproj 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,191 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/build/msvc80/lasdiff/lasdiff.vcproj work/libLAS-1.2.1/build/msvc80/lasdiff/lasdiff.vcproj
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/build/msvc80/lasdiff/lasdiff.vcproj 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/build/msvc80/lasdiff/lasdiff.vcproj 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,189 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/build/msvc80/lasinfo/lasinfo.vcproj work/libLAS-1.2.1/build/msvc80/lasinfo/lasinfo.vcproj
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/build/msvc80/lasinfo/lasinfo.vcproj 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/build/msvc80/lasinfo/lasinfo.vcproj 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,191 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/build/msvc80/lasmerge/lasmerge.vcproj work/libLAS-1.2.1/build/msvc80/lasmerge/lasmerge.vcproj
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/build/msvc80/lasmerge/lasmerge.vcproj 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/build/msvc80/lasmerge/lasmerge.vcproj 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,189 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/build/msvc80/liblas_c_dll/liblas_c_dll.vcproj work/libLAS-1.2.1/build/msvc80/liblas_c_dll/liblas_c_dll.vcproj
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/build/msvc80/liblas_c_dll/liblas_c_dll.vcproj 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/build/msvc80/liblas_c_dll/liblas_c_dll.vcproj 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,207 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/build/msvc80/liblas_dll/liblas_dll.vcproj work/libLAS-1.2.1/build/msvc80/liblas_dll/liblas_dll.vcproj
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/build/msvc80/liblas_dll/liblas_dll.vcproj 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/build/msvc80/liblas_dll/liblas_dll.vcproj 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,261 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/build/msvc80/liblas_lib/liblas_lib.vcproj work/libLAS-1.2.1/build/msvc80/liblas_lib/liblas_lib.vcproj
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/build/msvc80/liblas_lib/liblas_lib.vcproj 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/build/msvc80/liblas_lib/liblas_lib.vcproj 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,367 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/build/msvc80/liblas_test/liblas_test.vcproj work/libLAS-1.2.1/build/msvc80/liblas_test/liblas_test.vcproj
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/build/msvc80/liblas_test/liblas_test.vcproj 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/build/msvc80/liblas_test/liblas_test.vcproj 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,256 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/build/msvc80/liblas.sln work/libLAS-1.2.1/build/msvc80/liblas.sln
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/build/msvc80/liblas.sln 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/build/msvc80/liblas.sln 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,107 @@
+
+Microsoft Visual Studio Solution File, Format Version 9.00
+# Visual Studio 2005
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "liblas_lib", "liblas_lib\liblas_lib.vcproj", "{208417AE-D08E-4938-AC26-A16ABD55AA5B}"
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "liblas_test", "liblas_test\liblas_test.vcproj", "{EC1C23B9-D9DF-48BA-9FB4-8A439D6006B9}"
+ ProjectSection(ProjectDependencies) = postProject
+ {208417AE-D08E-4938-AC26-A16ABD55AA5B} = {208417AE-D08E-4938-AC26-A16ABD55AA5B}
+ EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "lasinfo", "lasinfo\lasinfo.vcproj", "{83AF175F-01A1-44ED-9DDA-F716A4C6FD21}"
+ ProjectSection(ProjectDependencies) = postProject
+ {EC92BE01-CFA3-46C6-998E-810484CC5860} = {EC92BE01-CFA3-46C6-998E-810484CC5860}
+ EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "liblas_c_dll", "liblas_c_dll\liblas_c_dll.vcproj", "{EC92BE01-CFA3-46C6-998E-810484CC5860}"
+ ProjectSection(ProjectDependencies) = postProject
+ {208417AE-D08E-4938-AC26-A16ABD55AA5B} = {208417AE-D08E-4938-AC26-A16ABD55AA5B}
+ EndProjectSection
+EndProject
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{711FD426-D0B5-4176-BE24-34560B4E701E}"
+ ProjectSection(SolutionItems) = preProject
+ ..\..\AUTHORS = ..\..\AUTHORS
+ ..\..\ChangeLog = ..\..\ChangeLog
+ ..\..\CMakeLists.txt = ..\..\CMakeLists.txt
+ ..\..\COPYING = ..\..\COPYING
+ ..\..\HOWTORELEASE.txt = ..\..\HOWTORELEASE.txt
+ ..\..\INSTALL = ..\..\INSTALL
+ ..\..\LICENSE.txt = ..\..\LICENSE.txt
+ ..\..\makefile.vc = ..\..\makefile.vc
+ ..\..\NEWS = ..\..\NEWS
+ ..\..\nmake.opt = ..\..\nmake.opt
+ ..\..\README = ..\..\README
+ EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "las2las", "las2las\las2las.vcproj", "{9BE9762E-DF68-4628-81B0-A4192A4BA3A5}"
+ ProjectSection(ProjectDependencies) = postProject
+ {EC92BE01-CFA3-46C6-998E-810484CC5860} = {EC92BE01-CFA3-46C6-998E-810484CC5860}
+ EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "las2txt", "las2txt\las2txt.vcproj", "{719AD6A1-CD3F-4649-8656-B071CF653E0B}"
+ ProjectSection(ProjectDependencies) = postProject
+ {EC92BE01-CFA3-46C6-998E-810484CC5860} = {EC92BE01-CFA3-46C6-998E-810484CC5860}
+ EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "lasdiff", "lasdiff\lasdiff.vcproj", "{A40F48F5-CC0E-4FDB-BFF5-EC635AB70DEB}"
+ ProjectSection(ProjectDependencies) = postProject
+ {EC92BE01-CFA3-46C6-998E-810484CC5860} = {EC92BE01-CFA3-46C6-998E-810484CC5860}
+ EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "lasmerge", "lasmerge\lasmerge.vcproj", "{90DCFC67-4343-4880-9368-D7EAFB7ABF4F}"
+ ProjectSection(ProjectDependencies) = postProject
+ {EC92BE01-CFA3-46C6-998E-810484CC5860} = {EC92BE01-CFA3-46C6-998E-810484CC5860}
+ EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "txt2las", "txt2las\txt2las.vcproj", "{C78B8A0D-12CE-49D6-8615-96B9735564D5}"
+ ProjectSection(ProjectDependencies) = postProject
+ {EC92BE01-CFA3-46C6-998E-810484CC5860} = {EC92BE01-CFA3-46C6-998E-810484CC5860}
+ EndProjectSection
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Win32 = Debug|Win32
+ Release|Win32 = Release|Win32
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {208417AE-D08E-4938-AC26-A16ABD55AA5B}.Debug|Win32.ActiveCfg = Debug|Win32
+ {208417AE-D08E-4938-AC26-A16ABD55AA5B}.Debug|Win32.Build.0 = Debug|Win32
+ {208417AE-D08E-4938-AC26-A16ABD55AA5B}.Release|Win32.ActiveCfg = Release|Win32
+ {208417AE-D08E-4938-AC26-A16ABD55AA5B}.Release|Win32.Build.0 = Release|Win32
+ {EC1C23B9-D9DF-48BA-9FB4-8A439D6006B9}.Debug|Win32.ActiveCfg = Debug|Win32
+ {EC1C23B9-D9DF-48BA-9FB4-8A439D6006B9}.Debug|Win32.Build.0 = Debug|Win32
+ {EC1C23B9-D9DF-48BA-9FB4-8A439D6006B9}.Release|Win32.ActiveCfg = Release|Win32
+ {EC1C23B9-D9DF-48BA-9FB4-8A439D6006B9}.Release|Win32.Build.0 = Release|Win32
+ {83AF175F-01A1-44ED-9DDA-F716A4C6FD21}.Debug|Win32.ActiveCfg = Debug|Win32
+ {83AF175F-01A1-44ED-9DDA-F716A4C6FD21}.Debug|Win32.Build.0 = Debug|Win32
+ {83AF175F-01A1-44ED-9DDA-F716A4C6FD21}.Release|Win32.ActiveCfg = Release|Win32
+ {83AF175F-01A1-44ED-9DDA-F716A4C6FD21}.Release|Win32.Build.0 = Release|Win32
+ {EC92BE01-CFA3-46C6-998E-810484CC5860}.Debug|Win32.ActiveCfg = Debug|Win32
+ {EC92BE01-CFA3-46C6-998E-810484CC5860}.Debug|Win32.Build.0 = Debug|Win32
+ {EC92BE01-CFA3-46C6-998E-810484CC5860}.Release|Win32.ActiveCfg = Release|Win32
+ {EC92BE01-CFA3-46C6-998E-810484CC5860}.Release|Win32.Build.0 = Release|Win32
+ {9BE9762E-DF68-4628-81B0-A4192A4BA3A5}.Debug|Win32.ActiveCfg = Debug|Win32
+ {9BE9762E-DF68-4628-81B0-A4192A4BA3A5}.Debug|Win32.Build.0 = Debug|Win32
+ {9BE9762E-DF68-4628-81B0-A4192A4BA3A5}.Release|Win32.ActiveCfg = Release|Win32
+ {9BE9762E-DF68-4628-81B0-A4192A4BA3A5}.Release|Win32.Build.0 = Release|Win32
+ {719AD6A1-CD3F-4649-8656-B071CF653E0B}.Debug|Win32.ActiveCfg = Debug|Win32
+ {719AD6A1-CD3F-4649-8656-B071CF653E0B}.Debug|Win32.Build.0 = Debug|Win32
+ {719AD6A1-CD3F-4649-8656-B071CF653E0B}.Release|Win32.ActiveCfg = Release|Win32
+ {719AD6A1-CD3F-4649-8656-B071CF653E0B}.Release|Win32.Build.0 = Release|Win32
+ {A40F48F5-CC0E-4FDB-BFF5-EC635AB70DEB}.Debug|Win32.ActiveCfg = Debug|Win32
+ {A40F48F5-CC0E-4FDB-BFF5-EC635AB70DEB}.Debug|Win32.Build.0 = Debug|Win32
+ {A40F48F5-CC0E-4FDB-BFF5-EC635AB70DEB}.Release|Win32.ActiveCfg = Release|Win32
+ {A40F48F5-CC0E-4FDB-BFF5-EC635AB70DEB}.Release|Win32.Build.0 = Release|Win32
+ {90DCFC67-4343-4880-9368-D7EAFB7ABF4F}.Debug|Win32.ActiveCfg = Debug|Win32
+ {90DCFC67-4343-4880-9368-D7EAFB7ABF4F}.Debug|Win32.Build.0 = Debug|Win32
+ {90DCFC67-4343-4880-9368-D7EAFB7ABF4F}.Release|Win32.ActiveCfg = Release|Win32
+ {90DCFC67-4343-4880-9368-D7EAFB7ABF4F}.Release|Win32.Build.0 = Release|Win32
+ {C78B8A0D-12CE-49D6-8615-96B9735564D5}.Debug|Win32.ActiveCfg = Debug|Win32
+ {C78B8A0D-12CE-49D6-8615-96B9735564D5}.Debug|Win32.Build.0 = Debug|Win32
+ {C78B8A0D-12CE-49D6-8615-96B9735564D5}.Release|Win32.ActiveCfg = Release|Win32
+ {C78B8A0D-12CE-49D6-8615-96B9735564D5}.Release|Win32.Build.0 = Release|Win32
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/build/msvc80/liblas.vsprops work/libLAS-1.2.1/build/msvc80/liblas.vsprops
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/build/msvc80/liblas.vsprops 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/build/msvc80/liblas.vsprops 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,26 @@
+
+
+
+
+
+
+
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/build/msvc80/txt2las/txt2las.vcproj work/libLAS-1.2.1/build/msvc80/txt2las/txt2las.vcproj
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/build/msvc80/txt2las/txt2las.vcproj 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/build/msvc80/txt2las/txt2las.vcproj 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,189 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/build/msvc90/clean.bat work/libLAS-1.2.1/build/msvc90/clean.bat
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/build/msvc90/clean.bat 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/build/msvc90/clean.bat 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,26 @@
+@ECHO OFF
+REM
+REM $Id: clean.bat 917 2008-10-09 20:07:35Z mloskot $
+REM
+REM This script is used to do fast cleanup of all intermediate files
+REM generated by Visual Studio during building process.
+REM NOTE: Some files can be erased only if liblas.sln is not loaded in VS IDE.
+REM
+FOR %%d in (liblas_lib liblas_dll liblas_c_dll lasdiff lasinfo lasmerge liblas_test las2las las2txt txt2las las2ogr) DO (
+ IF EXIST %%d\Debug DEL /F /Q %%d\Debug\*.*
+ IF EXIST %%d\Release DEL /F /Q %%d\Release\*.*
+ IF EXIST %%d\Debug RD %%d\Debug
+ IF EXIST %%d\Release RD %%d\Release
+ IF EXIST %%d\*.vcproj.*.user DEL /F /Q %%d\*.vcproj.*.user
+)
+
+IF EXIST .\Debug DEL /F /Q .\Debug\*.*
+IF EXIST .\Release DEL /F /Q .\Release\*.*
+IF EXIST .\Debug RD .\Debug
+IF EXIST .\Release RD .\Release
+
+FOR %%f in (liblas.ncb) DO (
+ IF EXIST %%f DEL /F /Q %%f
+)
+
+REM EOF
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/build/msvc90/las2las/las2las.vcproj work/libLAS-1.2.1/build/msvc90/las2las/las2las.vcproj
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/build/msvc90/las2las/las2las.vcproj 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/build/msvc90/las2las/las2las.vcproj 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,190 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/build/msvc90/las2ogr/las2ogr.vcproj work/libLAS-1.2.1/build/msvc90/las2ogr/las2ogr.vcproj
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/build/msvc90/las2ogr/las2ogr.vcproj 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/build/msvc90/las2ogr/las2ogr.vcproj 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,186 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/build/msvc90/las2ogr/las2ogr.vsprops work/libLAS-1.2.1/build/msvc90/las2ogr/las2ogr.vsprops
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/build/msvc90/las2ogr/las2ogr.vsprops 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/build/msvc90/las2ogr/las2ogr.vsprops 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,20 @@
+
+
+
+
+
+
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/build/msvc90/las2txt/las2txt.vcproj work/libLAS-1.2.1/build/msvc90/las2txt/las2txt.vcproj
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/build/msvc90/las2txt/las2txt.vcproj 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/build/msvc90/las2txt/las2txt.vcproj 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,190 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/build/msvc90/lasdiff/lasdiff.vcproj work/libLAS-1.2.1/build/msvc90/lasdiff/lasdiff.vcproj
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/build/msvc90/lasdiff/lasdiff.vcproj 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/build/msvc90/lasdiff/lasdiff.vcproj 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,190 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/build/msvc90/lasinfo/lasinfo.vcproj work/libLAS-1.2.1/build/msvc90/lasinfo/lasinfo.vcproj
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/build/msvc90/lasinfo/lasinfo.vcproj 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/build/msvc90/lasinfo/lasinfo.vcproj 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,190 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/build/msvc90/lasmerge/lasmerge.vcproj work/libLAS-1.2.1/build/msvc90/lasmerge/lasmerge.vcproj
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/build/msvc90/lasmerge/lasmerge.vcproj 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/build/msvc90/lasmerge/lasmerge.vcproj 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,190 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/build/msvc90/liblas_c_dll/liblas_c_dll.vcproj work/libLAS-1.2.1/build/msvc90/liblas_c_dll/liblas_c_dll.vcproj
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/build/msvc90/liblas_c_dll/liblas_c_dll.vcproj 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/build/msvc90/liblas_c_dll/liblas_c_dll.vcproj 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,206 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/build/msvc90/liblas_dll/liblas_dll.vcproj work/libLAS-1.2.1/build/msvc90/liblas_dll/liblas_dll.vcproj
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/build/msvc90/liblas_dll/liblas_dll.vcproj 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/build/msvc90/liblas_dll/liblas_dll.vcproj 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,261 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/build/msvc90/liblas_lib/liblas_lib.vcproj work/libLAS-1.2.1/build/msvc90/liblas_lib/liblas_lib.vcproj
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/build/msvc90/liblas_lib/liblas_lib.vcproj 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/build/msvc90/liblas_lib/liblas_lib.vcproj 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,380 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/build/msvc90/liblas_test/liblas_test.vcproj work/libLAS-1.2.1/build/msvc90/liblas_test/liblas_test.vcproj
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/build/msvc90/liblas_test/liblas_test.vcproj 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/build/msvc90/liblas_test/liblas_test.vcproj 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,251 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/build/msvc90/liblas.sln work/libLAS-1.2.1/build/msvc90/liblas.sln
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/build/msvc90/liblas.sln 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/build/msvc90/liblas.sln 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,106 @@
+
+Microsoft Visual Studio Solution File, Format Version 10.00
+# Visual Studio 2008
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{711FD426-D0B5-4176-BE24-34560B4E701E}"
+ ProjectSection(SolutionItems) = preProject
+ ..\..\AUTHORS = ..\..\AUTHORS
+ ..\..\ChangeLog = ..\..\ChangeLog
+ ..\..\CMakeLists.txt = ..\..\CMakeLists.txt
+ ..\..\COPYING = ..\..\COPYING
+ ..\..\HOWTORELEASE.txt = ..\..\HOWTORELEASE.txt
+ ..\..\INSTALL = ..\..\INSTALL
+ ..\..\LICENSE.txt = ..\..\LICENSE.txt
+ ..\..\makefile.vc = ..\..\makefile.vc
+ ..\..\NEWS = ..\..\NEWS
+ ..\..\README = ..\..\README
+ EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "liblas_lib", "liblas_lib\liblas_lib.vcproj", "{208417AE-D08E-4938-AC26-A16ABD55AA5B}"
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "liblas_test", "liblas_test\liblas_test.vcproj", "{EC1C23B9-D9DF-48BA-9FB4-8A439D6006B9}"
+ ProjectSection(ProjectDependencies) = postProject
+ {208417AE-D08E-4938-AC26-A16ABD55AA5B} = {208417AE-D08E-4938-AC26-A16ABD55AA5B}
+ EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "lasinfo", "lasinfo\lasinfo.vcproj", "{83AF175F-01A1-44ED-9DDA-F716A4C6FD21}"
+ ProjectSection(ProjectDependencies) = postProject
+ {EC92BE01-CFA3-46C6-998E-810484CC5860} = {EC92BE01-CFA3-46C6-998E-810484CC5860}
+ EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "liblas_c_dll", "liblas_c_dll\liblas_c_dll.vcproj", "{EC92BE01-CFA3-46C6-998E-810484CC5860}"
+ ProjectSection(ProjectDependencies) = postProject
+ {208417AE-D08E-4938-AC26-A16ABD55AA5B} = {208417AE-D08E-4938-AC26-A16ABD55AA5B}
+ EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "las2las", "las2las\las2las.vcproj", "{9BE9762E-DF68-4628-81B0-A4192A4BA3A5}"
+ ProjectSection(ProjectDependencies) = postProject
+ {EC92BE01-CFA3-46C6-998E-810484CC5860} = {EC92BE01-CFA3-46C6-998E-810484CC5860}
+ EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "las2txt", "las2txt\las2txt.vcproj", "{719AD6A1-CD3F-4649-8656-B071CF653E0B}"
+ ProjectSection(ProjectDependencies) = postProject
+ {EC92BE01-CFA3-46C6-998E-810484CC5860} = {EC92BE01-CFA3-46C6-998E-810484CC5860}
+ EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "lasdiff", "lasdiff\lasdiff.vcproj", "{A40F48F5-CC0E-4FDB-BFF5-EC635AB70DEB}"
+ ProjectSection(ProjectDependencies) = postProject
+ {EC92BE01-CFA3-46C6-998E-810484CC5860} = {EC92BE01-CFA3-46C6-998E-810484CC5860}
+ EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "lasmerge", "lasmerge\lasmerge.vcproj", "{90DCFC67-4343-4880-9368-D7EAFB7ABF4F}"
+ ProjectSection(ProjectDependencies) = postProject
+ {EC92BE01-CFA3-46C6-998E-810484CC5860} = {EC92BE01-CFA3-46C6-998E-810484CC5860}
+ EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "txt2las", "txt2las\txt2las.vcproj", "{C78B8A0D-12CE-49D6-8615-96B9735564D5}"
+ ProjectSection(ProjectDependencies) = postProject
+ {EC92BE01-CFA3-46C6-998E-810484CC5860} = {EC92BE01-CFA3-46C6-998E-810484CC5860}
+ EndProjectSection
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Win32 = Debug|Win32
+ Release|Win32 = Release|Win32
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {208417AE-D08E-4938-AC26-A16ABD55AA5B}.Debug|Win32.ActiveCfg = Debug|Win32
+ {208417AE-D08E-4938-AC26-A16ABD55AA5B}.Debug|Win32.Build.0 = Debug|Win32
+ {208417AE-D08E-4938-AC26-A16ABD55AA5B}.Release|Win32.ActiveCfg = Release|Win32
+ {208417AE-D08E-4938-AC26-A16ABD55AA5B}.Release|Win32.Build.0 = Release|Win32
+ {EC1C23B9-D9DF-48BA-9FB4-8A439D6006B9}.Debug|Win32.ActiveCfg = Debug|Win32
+ {EC1C23B9-D9DF-48BA-9FB4-8A439D6006B9}.Debug|Win32.Build.0 = Debug|Win32
+ {EC1C23B9-D9DF-48BA-9FB4-8A439D6006B9}.Release|Win32.ActiveCfg = Release|Win32
+ {EC1C23B9-D9DF-48BA-9FB4-8A439D6006B9}.Release|Win32.Build.0 = Release|Win32
+ {83AF175F-01A1-44ED-9DDA-F716A4C6FD21}.Debug|Win32.ActiveCfg = Debug|Win32
+ {83AF175F-01A1-44ED-9DDA-F716A4C6FD21}.Debug|Win32.Build.0 = Debug|Win32
+ {83AF175F-01A1-44ED-9DDA-F716A4C6FD21}.Release|Win32.ActiveCfg = Release|Win32
+ {83AF175F-01A1-44ED-9DDA-F716A4C6FD21}.Release|Win32.Build.0 = Release|Win32
+ {EC92BE01-CFA3-46C6-998E-810484CC5860}.Debug|Win32.ActiveCfg = Debug|Win32
+ {EC92BE01-CFA3-46C6-998E-810484CC5860}.Debug|Win32.Build.0 = Debug|Win32
+ {EC92BE01-CFA3-46C6-998E-810484CC5860}.Release|Win32.ActiveCfg = Release|Win32
+ {EC92BE01-CFA3-46C6-998E-810484CC5860}.Release|Win32.Build.0 = Release|Win32
+ {9BE9762E-DF68-4628-81B0-A4192A4BA3A5}.Debug|Win32.ActiveCfg = Debug|Win32
+ {9BE9762E-DF68-4628-81B0-A4192A4BA3A5}.Debug|Win32.Build.0 = Debug|Win32
+ {9BE9762E-DF68-4628-81B0-A4192A4BA3A5}.Release|Win32.ActiveCfg = Release|Win32
+ {9BE9762E-DF68-4628-81B0-A4192A4BA3A5}.Release|Win32.Build.0 = Release|Win32
+ {719AD6A1-CD3F-4649-8656-B071CF653E0B}.Debug|Win32.ActiveCfg = Debug|Win32
+ {719AD6A1-CD3F-4649-8656-B071CF653E0B}.Debug|Win32.Build.0 = Debug|Win32
+ {719AD6A1-CD3F-4649-8656-B071CF653E0B}.Release|Win32.ActiveCfg = Release|Win32
+ {719AD6A1-CD3F-4649-8656-B071CF653E0B}.Release|Win32.Build.0 = Release|Win32
+ {A40F48F5-CC0E-4FDB-BFF5-EC635AB70DEB}.Debug|Win32.ActiveCfg = Debug|Win32
+ {A40F48F5-CC0E-4FDB-BFF5-EC635AB70DEB}.Debug|Win32.Build.0 = Debug|Win32
+ {A40F48F5-CC0E-4FDB-BFF5-EC635AB70DEB}.Release|Win32.ActiveCfg = Release|Win32
+ {A40F48F5-CC0E-4FDB-BFF5-EC635AB70DEB}.Release|Win32.Build.0 = Release|Win32
+ {90DCFC67-4343-4880-9368-D7EAFB7ABF4F}.Debug|Win32.ActiveCfg = Debug|Win32
+ {90DCFC67-4343-4880-9368-D7EAFB7ABF4F}.Debug|Win32.Build.0 = Debug|Win32
+ {90DCFC67-4343-4880-9368-D7EAFB7ABF4F}.Release|Win32.ActiveCfg = Release|Win32
+ {90DCFC67-4343-4880-9368-D7EAFB7ABF4F}.Release|Win32.Build.0 = Release|Win32
+ {C78B8A0D-12CE-49D6-8615-96B9735564D5}.Debug|Win32.ActiveCfg = Debug|Win32
+ {C78B8A0D-12CE-49D6-8615-96B9735564D5}.Debug|Win32.Build.0 = Debug|Win32
+ {C78B8A0D-12CE-49D6-8615-96B9735564D5}.Release|Win32.ActiveCfg = Release|Win32
+ {C78B8A0D-12CE-49D6-8615-96B9735564D5}.Release|Win32.Build.0 = Release|Win32
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/build/msvc90/liblas.vsprops work/libLAS-1.2.1/build/msvc90/liblas.vsprops
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/build/msvc90/liblas.vsprops 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/build/msvc90/liblas.vsprops 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,26 @@
+
+
+
+
+
+
+
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/build/msvc90/txt2las/txt2las.vcproj work/libLAS-1.2.1/build/msvc90/txt2las/txt2las.vcproj
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/build/msvc90/txt2las/txt2las.vcproj 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/build/msvc90/txt2las/txt2las.vcproj 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,190 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/build/xcode/xcode.xcodeproj/hobu.mode1v3 work/libLAS-1.2.1/build/xcode/xcode.xcodeproj/hobu.mode1v3
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/build/xcode/xcode.xcodeproj/hobu.mode1v3 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/build/xcode/xcode.xcodeproj/hobu.mode1v3 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,1441 @@
+
+
+
+
+ ActivePerspectiveName
+ Project
+ AllowedModules
+
+
+ BundleLoadPath
+
+ MaxInstances
+ n
+ Module
+ PBXSmartGroupTreeModule
+ Name
+ Groups and Files Outline View
+
+
+ BundleLoadPath
+
+ MaxInstances
+ n
+ Module
+ PBXNavigatorGroup
+ Name
+ Editor
+
+
+ BundleLoadPath
+
+ MaxInstances
+ n
+ Module
+ XCTaskListModule
+ Name
+ Task List
+
+
+ BundleLoadPath
+
+ MaxInstances
+ n
+ Module
+ XCDetailModule
+ Name
+ File and Smart Group Detail Viewer
+
+
+ BundleLoadPath
+
+ MaxInstances
+ 1
+ Module
+ PBXBuildResultsModule
+ Name
+ Detailed Build Results Viewer
+
+
+ BundleLoadPath
+
+ MaxInstances
+ 1
+ Module
+ PBXProjectFindModule
+ Name
+ Project Batch Find Tool
+
+
+ BundleLoadPath
+
+ MaxInstances
+ n
+ Module
+ XCProjectFormatConflictsModule
+ Name
+ Project Format Conflicts List
+
+
+ BundleLoadPath
+
+ MaxInstances
+ n
+ Module
+ PBXBookmarksModule
+ Name
+ Bookmarks Tool
+
+
+ BundleLoadPath
+
+ MaxInstances
+ n
+ Module
+ PBXClassBrowserModule
+ Name
+ Class Browser
+
+
+ BundleLoadPath
+
+ MaxInstances
+ n
+ Module
+ PBXCVSModule
+ Name
+ Source Code Control Tool
+
+
+ BundleLoadPath
+
+ MaxInstances
+ n
+ Module
+ PBXDebugBreakpointsModule
+ Name
+ Debug Breakpoints Tool
+
+
+ BundleLoadPath
+
+ MaxInstances
+ n
+ Module
+ XCDockableInspector
+ Name
+ Inspector
+
+
+ BundleLoadPath
+
+ MaxInstances
+ n
+ Module
+ PBXOpenQuicklyModule
+ Name
+ Open Quickly Tool
+
+
+ BundleLoadPath
+
+ MaxInstances
+ 1
+ Module
+ PBXDebugSessionModule
+ Name
+ Debugger
+
+
+ BundleLoadPath
+
+ MaxInstances
+ 1
+ Module
+ PBXDebugCLIModule
+ Name
+ Debug Console
+
+
+ BundleLoadPath
+
+ MaxInstances
+ n
+ Module
+ XCSnapshotModule
+ Name
+ Snapshots Tool
+
+
+ BundlePath
+ /Developer/Library/PrivateFrameworks/DevToolsInterface.framework/Resources
+ Description
+ DefaultDescriptionKey
+ DockingSystemVisible
+
+ Extension
+ mode1v3
+ FavBarConfig
+
+ PBXProjectModuleGUID
+ C80038FC0F0C60870080C499
+ XCBarModuleItemNames
+
+ XCBarModuleItems
+
+
+ FirstTimeWindowDisplayed
+
+ Identifier
+ com.apple.perspectives.project.mode1v3
+ MajorVersion
+ 33
+ MinorVersion
+ 0
+ Name
+ Default
+ Notifications
+
+ OpenEditors
+
+
+ Content
+
+ PBXProjectModuleGUID
+ C80038FD0F0C60870080C499
+ PBXProjectModuleLabel
+ file.cpp
+ PBXSplitModuleInNavigatorKey
+
+ Split0
+
+ PBXProjectModuleGUID
+ C80038FE0F0C60870080C499
+ PBXProjectModuleLabel
+ file.cpp
+ _historyCapacity
+ 0
+ bookmark
+ C892EFC00F1FAAD800655EE0
+ history
+
+ C8D9E04D0F13E27D00CD654B
+
+
+ SplitCount
+ 1
+
+ StatusBarVisibility
+
+
+ Geometry
+
+ Frame
+ {{0, 20}, {1246, 590}}
+ PBXModuleWindowStatusBarHidden2
+
+ RubberWindowFrame
+ 5 147 1246 631 0 0 1280 778
+
+
+
+ PerspectiveWidths
+
+ -1
+ -1
+
+ Perspectives
+
+
+ ChosenToolbarItems
+
+ active-target-popup
+ active-buildstyle-popup
+ action
+ NSToolbarFlexibleSpaceItem
+ buildOrClean
+ build-and-goOrGo
+ com.apple.ide.PBXToolbarStopButton
+ get-info
+ toggle-editor
+ NSToolbarFlexibleSpaceItem
+ com.apple.pbx.toolbar.searchfield
+
+ ControllerClassBaseName
+
+ IconName
+ WindowOfProjectWithEditor
+ Identifier
+ perspective.project
+ IsVertical
+
+ Layout
+
+
+ BecomeActive
+
+ ContentConfiguration
+
+ PBXBottomSmartGroupGIDs
+
+ 1C37FBAC04509CD000000102
+ 1C37FAAC04509CD000000102
+ 1C08E77C0454961000C914BD
+ 1C37FABC05509CD000000102
+ 1C37FABC05539CD112110102
+ E2644B35053B69B200211256
+ 1C37FABC04509CD000100104
+ 1CC0EA4004350EF90044410B
+
+ PBXProjectModuleGUID
+ 1CE0B1FE06471DED0097A5F4
+ PBXProjectModuleLabel
+ Files
+ PBXProjectStructureProvided
+ yes
+ PBXSmartGroupTreeModuleColumnData
+
+ PBXSmartGroupTreeModuleColumnWidthsKey
+
+ 259
+
+ PBXSmartGroupTreeModuleColumnsKey_v4
+
+ MainColumn
+
+
+ PBXSmartGroupTreeModuleOutlineStateKey_v7
+
+ PBXSmartGroupTreeModuleOutlineStateExpansionKey
+
+ 0867D691FE84028FC02AAC07
+ C80037E80F0C3B200080C499
+ C80038250F0C3B210080C499
+ 1C37FBAC04509CD000000102
+ 1C37FAAC04509CD000000102
+ 1C37FABC05509CD000000102
+
+ PBXSmartGroupTreeModuleOutlineStateSelectionKey
+
+
+ 28
+ 25
+
+
+ PBXSmartGroupTreeModuleOutlineStateVisibleRectKey
+ {{0, 0}, {259, 573}}
+
+ PBXTopSmartGroupGIDs
+
+ XCIncludePerspectivesSwitch
+
+ XCSharingToken
+ com.apple.Xcode.GFSharingToken
+
+ GeometryConfiguration
+
+ Frame
+ {{0, 0}, {276, 591}}
+ GroupTreeTableConfiguration
+
+ MainColumn
+ 259
+
+ RubberWindowFrame
+ 75 146 1440 632 0 0 1280 778
+
+ Module
+ PBXSmartGroupTreeModule
+ Proportion
+ 276pt
+
+
+ Dock
+
+
+ ContentConfiguration
+
+ PBXProjectModuleGUID
+ 1CE0B20306471E060097A5F4
+ PBXProjectModuleLabel
+ lascommon.c
+ PBXSplitModuleInNavigatorKey
+
+ Split0
+
+ PBXProjectModuleGUID
+ 1CE0B20406471E060097A5F4
+ PBXProjectModuleLabel
+ lascommon.c
+ _historyCapacity
+ 0
+ bookmark
+ C892EFBF0F1FAAD800655EE0
+ history
+
+ C80038F00F0C60870080C499
+ C80038F30F0C60870080C499
+ C8D9E04A0F13E27D00CD654B
+
+ prevStack
+
+ C80038F50F0C60870080C499
+ C80038F80F0C60870080C499
+
+
+ SplitCount
+ 1
+
+ StatusBarVisibility
+
+
+ GeometryConfiguration
+
+ Frame
+ {{0, 0}, {1159, 372}}
+ RubberWindowFrame
+ 75 146 1440 632 0 0 1280 778
+
+ Module
+ PBXNavigatorGroup
+ Proportion
+ 372pt
+
+
+ ContentConfiguration
+
+ PBXProjectModuleGUID
+ 1CE0B20506471E060097A5F4
+ PBXProjectModuleLabel
+ Detail
+
+ GeometryConfiguration
+
+ Frame
+ {{0, 377}, {1159, 214}}
+ RubberWindowFrame
+ 75 146 1440 632 0 0 1280 778
+
+ Module
+ XCDetailModule
+ Proportion
+ 214pt
+
+
+ Proportion
+ 1159pt
+
+
+ Name
+ Project
+ ServiceClasses
+
+ XCModuleDock
+ PBXSmartGroupTreeModule
+ XCModuleDock
+ PBXNavigatorGroup
+ XCDetailModule
+
+ TableOfContents
+
+ C892EFBB0F1FAAD800655EE0
+ 1CE0B1FE06471DED0097A5F4
+ C892EFBC0F1FAAD800655EE0
+ 1CE0B20306471E060097A5F4
+ 1CE0B20506471E060097A5F4
+
+ ToolbarConfiguration
+ xcode.toolbar.config.defaultV3
+
+
+ ControllerClassBaseName
+
+ IconName
+ WindowOfProject
+ Identifier
+ perspective.morph
+ IsVertical
+ 0
+ Layout
+
+
+ BecomeActive
+ 1
+ ContentConfiguration
+
+ PBXBottomSmartGroupGIDs
+
+ 1C37FBAC04509CD000000102
+ 1C37FAAC04509CD000000102
+ 1C08E77C0454961000C914BD
+ 1C37FABC05509CD000000102
+ 1C37FABC05539CD112110102
+ E2644B35053B69B200211256
+ 1C37FABC04509CD000100104
+ 1CC0EA4004350EF90044410B
+ 1CC0EA4004350EF90041110B
+
+ PBXProjectModuleGUID
+ 11E0B1FE06471DED0097A5F4
+ PBXProjectModuleLabel
+ Files
+ PBXProjectStructureProvided
+ yes
+ PBXSmartGroupTreeModuleColumnData
+
+ PBXSmartGroupTreeModuleColumnWidthsKey
+
+ 186
+
+ PBXSmartGroupTreeModuleColumnsKey_v4
+
+ MainColumn
+
+
+ PBXSmartGroupTreeModuleOutlineStateKey_v7
+
+ PBXSmartGroupTreeModuleOutlineStateExpansionKey
+
+ 29B97314FDCFA39411CA2CEA
+ 1C37FABC05509CD000000102
+
+ PBXSmartGroupTreeModuleOutlineStateSelectionKey
+
+
+ 0
+
+
+ PBXSmartGroupTreeModuleOutlineStateVisibleRectKey
+ {{0, 0}, {186, 337}}
+
+ PBXTopSmartGroupGIDs
+
+ XCIncludePerspectivesSwitch
+ 1
+ XCSharingToken
+ com.apple.Xcode.GFSharingToken
+
+ GeometryConfiguration
+
+ Frame
+ {{0, 0}, {203, 355}}
+ GroupTreeTableConfiguration
+
+ MainColumn
+ 186
+
+ RubberWindowFrame
+ 373 269 690 397 0 0 1440 878
+
+ Module
+ PBXSmartGroupTreeModule
+ Proportion
+ 100%
+
+
+ Name
+ Morph
+ PreferredWidth
+ 300
+ ServiceClasses
+
+ XCModuleDock
+ PBXSmartGroupTreeModule
+
+ TableOfContents
+
+ 11E0B1FE06471DED0097A5F4
+
+ ToolbarConfiguration
+ xcode.toolbar.config.default.shortV3
+
+
+ PerspectivesBarVisible
+
+ ShelfIsVisible
+
+ SourceDescription
+ file at '/Developer/Library/PrivateFrameworks/DevToolsInterface.framework/Resources/XCPerspectivesSpecificationMode1.xcperspec'
+ StatusbarIsVisible
+
+ TimeStamp
+ 0.0
+ ToolbarDisplayMode
+ 1
+ ToolbarIsVisible
+
+ ToolbarSizeMode
+ 1
+ Type
+ Perspectives
+ UpdateMessage
+ The Default Workspace in this version of Xcode now includes support to hide and show the detail view (what has been referred to as the "Metro-Morph" feature). You must discard your current Default Workspace settings and update to the latest Default Workspace in order to gain this feature. Do you wish to update to the latest Workspace defaults for project '%@'?
+ WindowJustification
+ 5
+ WindowOrderList
+
+ C80039000F0C60870080C499
+ C80038FD0F0C60870080C499
+ /Users/hobu/dev/svn/liblas/trunk/build/xcode/xcode.xcodeproj
+
+ WindowString
+ 75 146 1440 632 0 0 1280 778
+ WindowToolsV3
+
+
+ FirstTimeWindowDisplayed
+
+ Identifier
+ windowTool.build
+ IsVertical
+
+ Layout
+
+
+ Dock
+
+
+ ContentConfiguration
+
+ PBXProjectModuleGUID
+ 1CD0528F0623707200166675
+ PBXProjectModuleLabel
+
+ StatusBarVisibility
+
+
+ GeometryConfiguration
+
+ Frame
+ {{0, 0}, {1033, 99}}
+ RubberWindowFrame
+ 56 246 1033 532 0 0 1280 778
+
+ Module
+ PBXNavigatorGroup
+ Proportion
+ 99pt
+
+
+ ContentConfiguration
+
+ PBXBuildLogShowsTranscriptDefaultKey
+ {{0, 90}, {1033, 297}}
+ PBXProjectModuleGUID
+ XCMainBuildResultsModuleGUID
+ PBXProjectModuleLabel
+ Build
+ XCBuildResultsTrigger_Collapse
+ 1021
+ XCBuildResultsTrigger_Open
+ 1011
+
+ GeometryConfiguration
+
+ Frame
+ {{0, 104}, {1033, 387}}
+ RubberWindowFrame
+ 56 246 1033 532 0 0 1280 778
+
+ Module
+ PBXBuildResultsModule
+ Proportion
+ 387pt
+
+
+ Proportion
+ 491pt
+
+
+ Name
+ Build Results
+ ServiceClasses
+
+ PBXBuildResultsModule
+
+ StatusbarIsVisible
+
+ TableOfContents
+
+ C80039000F0C60870080C499
+ C892EFBE0F1FAAD800655EE0
+ 1CD0528F0623707200166675
+ XCMainBuildResultsModuleGUID
+
+ ToolbarConfiguration
+ xcode.toolbar.config.buildV3
+ WindowString
+ 56 246 1033 532 0 0 1280 778
+ WindowToolGUID
+ C80039000F0C60870080C499
+ WindowToolIsVisible
+
+
+
+ FirstTimeWindowDisplayed
+
+ Identifier
+ windowTool.debugger
+ IsVertical
+
+ Layout
+
+
+ Dock
+
+
+ ContentConfiguration
+
+ Debugger
+
+ HorizontalSplitView
+
+ _collapsingFrameDimension
+ 0.0
+ _indexOfCollapsedView
+ 0
+ _percentageOfCollapsedView
+ 0.0
+ isCollapsed
+ yes
+ sizes
+
+ {{0, 0}, {316, 185}}
+ {{316, 0}, {378, 185}}
+
+
+ VerticalSplitView
+
+ _collapsingFrameDimension
+ 0.0
+ _indexOfCollapsedView
+ 0
+ _percentageOfCollapsedView
+ 0.0
+ isCollapsed
+ yes
+ sizes
+
+ {{0, 0}, {694, 185}}
+ {{0, 185}, {694, 196}}
+
+
+
+ LauncherConfigVersion
+ 8
+ PBXProjectModuleGUID
+ 1C162984064C10D400B95A72
+ PBXProjectModuleLabel
+ Debug - GLUTExamples (Underwater)
+
+ GeometryConfiguration
+
+ DebugConsoleVisible
+ None
+ DebugConsoleWindowFrame
+ {{200, 200}, {500, 300}}
+ DebugSTDIOWindowFrame
+ {{200, 200}, {500, 300}}
+ Frame
+ {{0, 0}, {694, 381}}
+ PBXDebugSessionStackFrameViewKey
+
+ DebugVariablesTableConfiguration
+
+ Name
+ 120
+ Value
+ 85
+ Summary
+ 148
+
+ Frame
+ {{316, 0}, {378, 185}}
+ RubberWindowFrame
+ 274 733 694 422 0 0 1920 1178
+
+ RubberWindowFrame
+ 274 733 694 422 0 0 1920 1178
+
+ Module
+ PBXDebugSessionModule
+ Proportion
+ 381pt
+
+
+ Proportion
+ 381pt
+
+
+ Name
+ Debugger
+ ServiceClasses
+
+ PBXDebugSessionModule
+
+ StatusbarIsVisible
+
+ TableOfContents
+
+ 1CD10A99069EF8BA00B06720
+ C80039020F0C60870080C499
+ 1C162984064C10D400B95A72
+ C80039030F0C60870080C499
+ C80039040F0C60870080C499
+ C80039050F0C60870080C499
+ C80039060F0C60870080C499
+ C80039070F0C60870080C499
+
+ ToolbarConfiguration
+ xcode.toolbar.config.debugV3
+ WindowString
+ 274 733 694 422 0 0 1920 1178
+ WindowToolGUID
+ 1CD10A99069EF8BA00B06720
+ WindowToolIsVisible
+
+
+
+ Identifier
+ windowTool.find
+ Layout
+
+
+ Dock
+
+
+ Dock
+
+
+ ContentConfiguration
+
+ PBXProjectModuleGUID
+ 1CDD528C0622207200134675
+ PBXProjectModuleLabel
+ <No Editor>
+ PBXSplitModuleInNavigatorKey
+
+ Split0
+
+ PBXProjectModuleGUID
+ 1CD0528D0623707200166675
+
+ SplitCount
+ 1
+
+ StatusBarVisibility
+ 1
+
+ GeometryConfiguration
+
+ Frame
+ {{0, 0}, {781, 167}}
+ RubberWindowFrame
+ 62 385 781 470 0 0 1440 878
+
+ Module
+ PBXNavigatorGroup
+ Proportion
+ 781pt
+
+
+ Proportion
+ 50%
+
+
+ BecomeActive
+ 1
+ ContentConfiguration
+
+ PBXProjectModuleGUID
+ 1CD0528E0623707200166675
+ PBXProjectModuleLabel
+ Project Find
+
+ GeometryConfiguration
+
+ Frame
+ {{8, 0}, {773, 254}}
+ RubberWindowFrame
+ 62 385 781 470 0 0 1440 878
+
+ Module
+ PBXProjectFindModule
+ Proportion
+ 50%
+
+
+ Proportion
+ 428pt
+
+
+ Name
+ Project Find
+ ServiceClasses
+
+ PBXProjectFindModule
+
+ StatusbarIsVisible
+ 1
+ TableOfContents
+
+ 1C530D57069F1CE1000CFCEE
+ 1C530D58069F1CE1000CFCEE
+ 1C530D59069F1CE1000CFCEE
+ 1CDD528C0622207200134675
+ 1C530D5A069F1CE1000CFCEE
+ 1CE0B1FE06471DED0097A5F4
+ 1CD0528E0623707200166675
+
+ WindowString
+ 62 385 781 470 0 0 1440 878
+ WindowToolGUID
+ 1C530D57069F1CE1000CFCEE
+ WindowToolIsVisible
+ 0
+
+
+ Identifier
+ MENUSEPARATOR
+
+
+ FirstTimeWindowDisplayed
+
+ Identifier
+ windowTool.debuggerConsole
+ IsVertical
+
+ Layout
+
+
+ Dock
+
+
+ ContentConfiguration
+
+ PBXProjectModuleGUID
+ 1C78EAAC065D492600B07095
+ PBXProjectModuleLabel
+ Debugger Console
+
+ GeometryConfiguration
+
+ Frame
+ {{0, 0}, {650, 209}}
+ RubberWindowFrame
+ 274 905 650 250 0 0 1920 1178
+
+ Module
+ PBXDebugCLIModule
+ Proportion
+ 209pt
+
+
+ Proportion
+ 209pt
+
+
+ Name
+ Debugger Console
+ ServiceClasses
+
+ PBXDebugCLIModule
+
+ StatusbarIsVisible
+
+ TableOfContents
+
+ 1C78EAAD065D492600B07095
+ C80039080F0C60870080C499
+ 1C78EAAC065D492600B07095
+
+ ToolbarConfiguration
+ xcode.toolbar.config.consoleV3
+ WindowString
+ 274 905 650 250 0 0 1920 1178
+ WindowToolGUID
+ 1C78EAAD065D492600B07095
+ WindowToolIsVisible
+
+
+
+ Identifier
+ windowTool.snapshots
+ Layout
+
+
+ Dock
+
+
+ Module
+ XCSnapshotModule
+ Proportion
+ 100%
+
+
+ Proportion
+ 100%
+
+
+ Name
+ Snapshots
+ ServiceClasses
+
+ XCSnapshotModule
+
+ StatusbarIsVisible
+ Yes
+ ToolbarConfiguration
+ xcode.toolbar.config.snapshots
+ WindowString
+ 315 824 300 550 0 0 1440 878
+ WindowToolIsVisible
+ Yes
+
+
+ Identifier
+ windowTool.scm
+ Layout
+
+
+ Dock
+
+
+ ContentConfiguration
+
+ PBXProjectModuleGUID
+ 1C78EAB2065D492600B07095
+ PBXProjectModuleLabel
+ <No Editor>
+ PBXSplitModuleInNavigatorKey
+
+ Split0
+
+ PBXProjectModuleGUID
+ 1C78EAB3065D492600B07095
+
+ SplitCount
+ 1
+
+ StatusBarVisibility
+ 1
+
+ GeometryConfiguration
+
+ Frame
+ {{0, 0}, {452, 0}}
+ RubberWindowFrame
+ 743 379 452 308 0 0 1280 1002
+
+ Module
+ PBXNavigatorGroup
+ Proportion
+ 0pt
+
+
+ BecomeActive
+ 1
+ ContentConfiguration
+
+ PBXProjectModuleGUID
+ 1CD052920623707200166675
+ PBXProjectModuleLabel
+ SCM
+
+ GeometryConfiguration
+
+ ConsoleFrame
+ {{0, 259}, {452, 0}}
+ Frame
+ {{0, 7}, {452, 259}}
+ RubberWindowFrame
+ 743 379 452 308 0 0 1280 1002
+ TableConfiguration
+
+ Status
+ 30
+ FileName
+ 199
+ Path
+ 197.0950012207031
+
+ TableFrame
+ {{0, 0}, {452, 250}}
+
+ Module
+ PBXCVSModule
+ Proportion
+ 262pt
+
+
+ Proportion
+ 266pt
+
+
+ Name
+ SCM
+ ServiceClasses
+
+ PBXCVSModule
+
+ StatusbarIsVisible
+ 1
+ TableOfContents
+
+ 1C78EAB4065D492600B07095
+ 1C78EAB5065D492600B07095
+ 1C78EAB2065D492600B07095
+ 1CD052920623707200166675
+
+ ToolbarConfiguration
+ xcode.toolbar.config.scm
+ WindowString
+ 743 379 452 308 0 0 1280 1002
+
+
+ Identifier
+ windowTool.breakpoints
+ IsVertical
+ 0
+ Layout
+
+
+ Dock
+
+
+ BecomeActive
+ 1
+ ContentConfiguration
+
+ PBXBottomSmartGroupGIDs
+
+ 1C77FABC04509CD000000102
+
+ PBXProjectModuleGUID
+ 1CE0B1FE06471DED0097A5F4
+ PBXProjectModuleLabel
+ Files
+ PBXProjectStructureProvided
+ no
+ PBXSmartGroupTreeModuleColumnData
+
+ PBXSmartGroupTreeModuleColumnWidthsKey
+
+ 168
+
+ PBXSmartGroupTreeModuleColumnsKey_v4
+
+ MainColumn
+
+
+ PBXSmartGroupTreeModuleOutlineStateKey_v7
+
+ PBXSmartGroupTreeModuleOutlineStateExpansionKey
+
+ 1C77FABC04509CD000000102
+
+ PBXSmartGroupTreeModuleOutlineStateSelectionKey
+
+
+ 0
+
+
+ PBXSmartGroupTreeModuleOutlineStateVisibleRectKey
+ {{0, 0}, {168, 350}}
+
+ PBXTopSmartGroupGIDs
+
+ XCIncludePerspectivesSwitch
+ 0
+
+ GeometryConfiguration
+
+ Frame
+ {{0, 0}, {185, 368}}
+ GroupTreeTableConfiguration
+
+ MainColumn
+ 168
+
+ RubberWindowFrame
+ 315 424 744 409 0 0 1440 878
+
+ Module
+ PBXSmartGroupTreeModule
+ Proportion
+ 185pt
+
+
+ ContentConfiguration
+
+ PBXProjectModuleGUID
+ 1CA1AED706398EBD00589147
+ PBXProjectModuleLabel
+ Detail
+
+ GeometryConfiguration
+
+ Frame
+ {{190, 0}, {554, 368}}
+ RubberWindowFrame
+ 315 424 744 409 0 0 1440 878
+
+ Module
+ XCDetailModule
+ Proportion
+ 554pt
+
+
+ Proportion
+ 368pt
+
+
+ MajorVersion
+ 3
+ MinorVersion
+ 0
+ Name
+ Breakpoints
+ ServiceClasses
+
+ PBXSmartGroupTreeModule
+ XCDetailModule
+
+ StatusbarIsVisible
+ 1
+ TableOfContents
+
+ 1CDDB66807F98D9800BB5817
+ 1CDDB66907F98D9800BB5817
+ 1CE0B1FE06471DED0097A5F4
+ 1CA1AED706398EBD00589147
+
+ ToolbarConfiguration
+ xcode.toolbar.config.breakpointsV3
+ WindowString
+ 315 424 744 409 0 0 1440 878
+ WindowToolGUID
+ 1CDDB66807F98D9800BB5817
+ WindowToolIsVisible
+ 1
+
+
+ Identifier
+ windowTool.debugAnimator
+ Layout
+
+
+ Dock
+
+
+ Module
+ PBXNavigatorGroup
+ Proportion
+ 100%
+
+
+ Proportion
+ 100%
+
+
+ Name
+ Debug Visualizer
+ ServiceClasses
+
+ PBXNavigatorGroup
+
+ StatusbarIsVisible
+ 1
+ ToolbarConfiguration
+ xcode.toolbar.config.debugAnimatorV3
+ WindowString
+ 100 100 700 500 0 0 1280 1002
+
+
+ Identifier
+ windowTool.bookmarks
+ Layout
+
+
+ Dock
+
+
+ Module
+ PBXBookmarksModule
+ Proportion
+ 100%
+
+
+ Proportion
+ 100%
+
+
+ Name
+ Bookmarks
+ ServiceClasses
+
+ PBXBookmarksModule
+
+ StatusbarIsVisible
+ 0
+ WindowString
+ 538 42 401 187 0 0 1280 1002
+
+
+ Identifier
+ windowTool.projectFormatConflicts
+ Layout
+
+
+ Dock
+
+
+ Module
+ XCProjectFormatConflictsModule
+ Proportion
+ 100%
+
+
+ Proportion
+ 100%
+
+
+ Name
+ Project Format Conflicts
+ ServiceClasses
+
+ XCProjectFormatConflictsModule
+
+ StatusbarIsVisible
+ 0
+ WindowContentMinSize
+ 450 300
+ WindowString
+ 50 850 472 307 0 0 1440 877
+
+
+ FirstTimeWindowDisplayed
+
+ Identifier
+ windowTool.classBrowser
+ IsVertical
+
+ Layout
+
+
+ Dock
+
+
+ ContentConfiguration
+
+ OptionsSetName
+ Hierarchy, project classes
+ PBXProjectModuleGUID
+ 1CA6456E063B45B4001379D8
+ PBXProjectModuleLabel
+ Class Browser - moneypunct
+
+ GeometryConfiguration
+
+ ClassesFrame
+ {{0, 0}, {1115, 96}}
+ ClassesTreeTableConfiguration
+
+ PBXClassNameColumnIdentifier
+ 208
+ PBXClassBookColumnIdentifier
+ 22
+
+ Frame
+ {{0, 0}, {1367, 750}}
+ MembersFrame
+ {{0, 101}, {1115, 649}}
+ MembersTreeTableConfiguration
+
+ PBXMemberTypeIconColumnIdentifier
+ 22
+ PBXMemberNameColumnIdentifier
+ 216
+ PBXMemberTypeColumnIdentifier
+ 838
+ PBXMemberBookColumnIdentifier
+ 22
+
+ RubberWindowFrame
+ 273 383 1367 770 0 0 1920 1178
+
+ Module
+ PBXClassBrowserModule
+ Proportion
+ 750pt
+
+
+ Proportion
+ 750pt
+
+
+ Name
+ Class Browser
+ ServiceClasses
+
+ PBXClassBrowserModule
+
+ StatusbarIsVisible
+
+ TableOfContents
+
+ 1C0AD2AF069F1E9B00FABCE6
+ C800395B0F0C685D0080C499
+ 1CA6456E063B45B4001379D8
+
+ ToolbarConfiguration
+ xcode.toolbar.config.classbrowser
+ WindowString
+ 273 383 1367 770 0 0 1920 1178
+ WindowToolGUID
+ 1C0AD2AF069F1E9B00FABCE6
+ WindowToolIsVisible
+
+
+
+ Identifier
+ windowTool.refactoring
+ IncludeInToolsMenu
+ 0
+ Layout
+
+
+ Dock
+
+
+ BecomeActive
+ 1
+ GeometryConfiguration
+
+ Frame
+ {0, 0}, {500, 335}
+ RubberWindowFrame
+ {0, 0}, {500, 335}
+
+ Module
+ XCRefactoringModule
+ Proportion
+ 100%
+
+
+ Proportion
+ 100%
+
+
+ Name
+ Refactoring
+ ServiceClasses
+
+ XCRefactoringModule
+
+ WindowString
+ 200 200 500 356 0 0 1920 1200
+
+
+
+
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/build/xcode/xcode.xcodeproj/hobu.pbxuser work/libLAS-1.2.1/build/xcode/xcode.xcodeproj/hobu.pbxuser
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/build/xcode/xcode.xcodeproj/hobu.pbxuser 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/build/xcode/xcode.xcodeproj/hobu.pbxuser 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,363 @@
+// !$*UTF8*$!
+{
+ 0867D690FE84028FC02AAC07 /* Project object */ = {
+ activeBuildConfigurationName = Debug;
+ activeExecutable = C800390F0F0C60D10080C499 /* las2las */;
+ activeTarget = D2AAC09C05546B4700DB518D /* libLAS.dylib */;
+ addToTargets = (
+ C80039290F0C613F0080C499 /* txt2las */,
+ );
+ codeSenseManager = C80037E70F0C3ADE0080C499 /* Code sense */;
+ executables = (
+ C80038C40F0C5E230080C499 /* lasinfo */,
+ C80038DD0F0C5FF10080C499 /* lasmerge */,
+ C800390F0F0C60D10080C499 /* las2las */,
+ C800391C0F0C60FE0080C499 /* las2txt */,
+ C800392B0F0C613F0080C499 /* txt2las */,
+ );
+ perUserDictionary = {
+ PBXConfiguration.PBXFileTableDataSource3.PBXExecutablesDataSource = {
+ PBXFileTableDataSourceColumnSortingDirectionKey = "-1";
+ PBXFileTableDataSourceColumnSortingKey = PBXExecutablesDataSource_NameID;
+ PBXFileTableDataSourceColumnWidthsKey = (
+ 22,
+ 300,
+ 889,
+ );
+ PBXFileTableDataSourceColumnsKey = (
+ PBXExecutablesDataSource_ActiveFlagID,
+ PBXExecutablesDataSource_NameID,
+ PBXExecutablesDataSource_CommentsID,
+ );
+ };
+ PBXConfiguration.PBXFileTableDataSource3.PBXFileTableDataSource = {
+ PBXFileTableDataSourceColumnSortingDirectionKey = "-1";
+ PBXFileTableDataSourceColumnSortingKey = PBXFileDataSource_Filename_ColumnID;
+ PBXFileTableDataSourceColumnWidthsKey = (
+ 20,
+ 920,
+ 20,
+ 48,
+ 43,
+ 43,
+ 20,
+ );
+ PBXFileTableDataSourceColumnsKey = (
+ PBXFileDataSource_FiletypeID,
+ PBXFileDataSource_Filename_ColumnID,
+ PBXFileDataSource_Built_ColumnID,
+ PBXFileDataSource_ObjectSize_ColumnID,
+ PBXFileDataSource_Errors_ColumnID,
+ PBXFileDataSource_Warnings_ColumnID,
+ PBXFileDataSource_Target_ColumnID,
+ );
+ };
+ PBXConfiguration.PBXTargetDataSource.PBXTargetDataSource = {
+ PBXFileTableDataSourceColumnSortingDirectionKey = "-1";
+ PBXFileTableDataSourceColumnSortingKey = PBXFileDataSource_Filename_ColumnID;
+ PBXFileTableDataSourceColumnWidthsKey = (
+ 20,
+ 880,
+ 60,
+ 20,
+ 48,
+ 43,
+ 43,
+ );
+ PBXFileTableDataSourceColumnsKey = (
+ PBXFileDataSource_FiletypeID,
+ PBXFileDataSource_Filename_ColumnID,
+ PBXTargetDataSource_PrimaryAttribute,
+ PBXFileDataSource_Built_ColumnID,
+ PBXFileDataSource_ObjectSize_ColumnID,
+ PBXFileDataSource_Errors_ColumnID,
+ PBXFileDataSource_Warnings_ColumnID,
+ );
+ };
+ PBXPerProjectTemplateStateSaveDate = 253733541;
+ PBXWorkspaceStateSaveDate = 253733541;
+ };
+ perUserProjectItems = {
+ C80038F00F0C60870080C499 /* PBXTextBookmark */ = C80038F00F0C60870080C499 /* PBXTextBookmark */;
+ C80038F30F0C60870080C499 /* PBXTextBookmark */ = C80038F30F0C60870080C499 /* PBXTextBookmark */;
+ C80038F50F0C60870080C499 /* PBXTextBookmark */ = C80038F50F0C60870080C499 /* PBXTextBookmark */;
+ C80038F80F0C60870080C499 /* PBXTextBookmark */ = C80038F80F0C60870080C499 /* PBXTextBookmark */;
+ C892EFBF0F1FAAD800655EE0 /* PBXTextBookmark */ = C892EFBF0F1FAAD800655EE0 /* PBXTextBookmark */;
+ C892EFC00F1FAAD800655EE0 /* PBXTextBookmark */ = C892EFC00F1FAAD800655EE0 /* PBXTextBookmark */;
+ C8D9E04A0F13E27D00CD654B /* PBXTextBookmark */ = C8D9E04A0F13E27D00CD654B /* PBXTextBookmark */;
+ C8D9E04D0F13E27D00CD654B /* PBXTextBookmark */ = C8D9E04D0F13E27D00CD654B /* PBXTextBookmark */;
+ };
+ sourceControlManager = C80037E60F0C3ADE0080C499 /* Source Control */;
+ userBuildSettings = {
+ };
+ };
+ C80037E60F0C3ADE0080C499 /* Source Control */ = {
+ isa = PBXSourceControlManager;
+ fallbackIsa = XCSourceControlManager;
+ isSCMEnabled = 0;
+ scmConfiguration = {
+ };
+ };
+ C80037E70F0C3ADE0080C499 /* Code sense */ = {
+ isa = PBXCodeSenseManager;
+ indexTemplatePath = "";
+ };
+ C80038020F0C3B210080C499 /* file.cpp */ = {
+ uiCtxt = {
+ sepNavIntBoundsRect = "{{0, 0}, {1187, 2352}}";
+ sepNavSelRange = "{2208, 34}";
+ sepNavVisRange = "{406, 1957}";
+ sepNavWindowFrame = "{{5, 91}, {1246, 687}}";
+ };
+ };
+ C800381B0F0C3B210080C499 /* lasfile.cpp */ = {
+ uiCtxt = {
+ sepNavIntBoundsRect = "{{0, 0}, {1179, 1598}}";
+ sepNavSelRange = "{0, 0}";
+ sepNavVisRange = "{0, 1541}";
+ };
+ };
+ C80038440F0C3B210080C499 /* liblas.hpp */ = {
+ uiCtxt = {
+ sepNavIntBoundsRect = "{{0, 0}, {1179, 1632}}";
+ sepNavSelRange = "{0, 0}";
+ sepNavVisRange = "{0, 1609}";
+ };
+ };
+ C80038C20F0C5E230080C499 /* lasinfo */ = {
+ activeExec = 0;
+ executables = (
+ C80038C40F0C5E230080C499 /* lasinfo */,
+ );
+ };
+ C80038C40F0C5E230080C499 /* lasinfo */ = {
+ isa = PBXExecutable;
+ activeArgIndices = (
+ );
+ argumentStrings = (
+ );
+ autoAttachOnCrash = 1;
+ breakpointsEnabled = 0;
+ configStateDict = {
+ };
+ customDataFormattersEnabled = 1;
+ debuggerPlugin = GDBDebugging;
+ disassemblyDisplayState = 0;
+ dylibVariantSuffix = "";
+ enableDebugStr = 1;
+ environmentEntries = (
+ );
+ executableSystemSymbolLevel = 0;
+ executableUserSymbolLevel = 0;
+ libgmallocEnabled = 0;
+ name = lasinfo;
+ sourceDirectories = (
+ );
+ };
+ C80038D10F0C5F2E0080C499 /* lascommon.c */ = {
+ uiCtxt = {
+ sepNavIntBoundsRect = "{{0, 0}, {1098, 8008}}";
+ sepNavSelRange = "{0, 0}";
+ sepNavVisRange = "{0, 535}";
+ };
+ };
+ C80038DB0F0C5FF10080C499 /* lasmerge */ = {
+ activeExec = 0;
+ executables = (
+ C80038DD0F0C5FF10080C499 /* lasmerge */,
+ );
+ };
+ C80038DD0F0C5FF10080C499 /* lasmerge */ = {
+ isa = PBXExecutable;
+ activeArgIndices = (
+ );
+ argumentStrings = (
+ );
+ autoAttachOnCrash = 1;
+ breakpointsEnabled = 1;
+ configStateDict = {
+ };
+ customDataFormattersEnabled = 1;
+ debuggerPlugin = GDBDebugging;
+ disassemblyDisplayState = 0;
+ enableDebugStr = 1;
+ environmentEntries = (
+ );
+ executableSystemSymbolLevel = 0;
+ executableUserSymbolLevel = 0;
+ libgmallocEnabled = 0;
+ name = lasmerge;
+ sourceDirectories = (
+ );
+ };
+ C80038F00F0C60870080C499 /* PBXTextBookmark */ = {
+ isa = PBXTextBookmark;
+ fRef = C80038440F0C3B210080C499 /* liblas.hpp */;
+ name = "liblas.hpp: 1";
+ rLen = 0;
+ rLoc = 0;
+ rType = 0;
+ vrLen = 1609;
+ vrLoc = 0;
+ };
+ C80038F30F0C60870080C499 /* PBXTextBookmark */ = {
+ isa = PBXTextBookmark;
+ fRef = C800381B0F0C3B210080C499 /* lasfile.cpp */;
+ name = "lasfile.cpp: 1";
+ rLen = 0;
+ rLoc = 0;
+ rType = 0;
+ vrLen = 1541;
+ vrLoc = 0;
+ };
+ C80038F50F0C60870080C499 /* PBXTextBookmark */ = {
+ isa = PBXTextBookmark;
+ fRef = C80038440F0C3B210080C499 /* liblas.hpp */;
+ name = "liblas.hpp: 1";
+ rLen = 0;
+ rLoc = 0;
+ rType = 0;
+ vrLen = 1609;
+ vrLoc = 0;
+ };
+ C80038F80F0C60870080C499 /* PBXTextBookmark */ = {
+ isa = PBXTextBookmark;
+ fRef = C800381B0F0C3B210080C499 /* lasfile.cpp */;
+ name = "lasfile.cpp: 1";
+ rLen = 0;
+ rLoc = 0;
+ rType = 0;
+ vrLen = 1541;
+ vrLoc = 0;
+ };
+ C800390D0F0C60D10080C499 /* las2las */ = {
+ activeExec = 0;
+ executables = (
+ C800390F0F0C60D10080C499 /* las2las */,
+ );
+ };
+ C800390F0F0C60D10080C499 /* las2las */ = {
+ isa = PBXExecutable;
+ activeArgIndices = (
+ );
+ argumentStrings = (
+ );
+ autoAttachOnCrash = 1;
+ breakpointsEnabled = 1;
+ configStateDict = {
+ };
+ customDataFormattersEnabled = 1;
+ debuggerPlugin = GDBDebugging;
+ disassemblyDisplayState = 0;
+ enableDebugStr = 1;
+ environmentEntries = (
+ );
+ executableSystemSymbolLevel = 0;
+ executableUserSymbolLevel = 0;
+ libgmallocEnabled = 0;
+ name = las2las;
+ sourceDirectories = (
+ );
+ };
+ C800391A0F0C60FE0080C499 /* las2txt */ = {
+ activeExec = 0;
+ executables = (
+ C800391C0F0C60FE0080C499 /* las2txt */,
+ );
+ };
+ C800391C0F0C60FE0080C499 /* las2txt */ = {
+ isa = PBXExecutable;
+ activeArgIndices = (
+ );
+ argumentStrings = (
+ );
+ autoAttachOnCrash = 1;
+ breakpointsEnabled = 1;
+ configStateDict = {
+ };
+ customDataFormattersEnabled = 1;
+ debuggerPlugin = GDBDebugging;
+ disassemblyDisplayState = 0;
+ enableDebugStr = 1;
+ environmentEntries = (
+ );
+ executableSystemSymbolLevel = 0;
+ executableUserSymbolLevel = 0;
+ libgmallocEnabled = 0;
+ name = las2txt;
+ sourceDirectories = (
+ );
+ };
+ C80039290F0C613F0080C499 /* txt2las */ = {
+ activeExec = 0;
+ executables = (
+ C800392B0F0C613F0080C499 /* txt2las */,
+ );
+ };
+ C800392B0F0C613F0080C499 /* txt2las */ = {
+ isa = PBXExecutable;
+ activeArgIndices = (
+ );
+ argumentStrings = (
+ );
+ autoAttachOnCrash = 1;
+ breakpointsEnabled = 1;
+ configStateDict = {
+ };
+ customDataFormattersEnabled = 1;
+ debuggerPlugin = GDBDebugging;
+ disassemblyDisplayState = 0;
+ enableDebugStr = 1;
+ environmentEntries = (
+ );
+ executableSystemSymbolLevel = 0;
+ executableUserSymbolLevel = 0;
+ libgmallocEnabled = 0;
+ name = txt2las;
+ sourceDirectories = (
+ );
+ };
+ C892EFBF0F1FAAD800655EE0 /* PBXTextBookmark */ = {
+ isa = PBXTextBookmark;
+ fRef = C80038D10F0C5F2E0080C499 /* lascommon.c */;
+ name = "lascommon.c: 1";
+ rLen = 0;
+ rLoc = 0;
+ rType = 0;
+ vrLen = 535;
+ vrLoc = 0;
+ };
+ C892EFC00F1FAAD800655EE0 /* PBXTextBookmark */ = {
+ isa = PBXTextBookmark;
+ fRef = C80038020F0C3B210080C499 /* file.cpp */;
+ name = "file.cpp: 43";
+ rLen = 34;
+ rLoc = 2208;
+ rType = 0;
+ vrLen = 1957;
+ vrLoc = 406;
+ };
+ C8D9E04A0F13E27D00CD654B /* PBXTextBookmark */ = {
+ isa = PBXTextBookmark;
+ fRef = C80038D10F0C5F2E0080C499 /* lascommon.c */;
+ name = "lascommon.c: 1";
+ rLen = 0;
+ rLoc = 0;
+ rType = 0;
+ vrLen = 675;
+ vrLoc = 0;
+ };
+ C8D9E04D0F13E27D00CD654B /* PBXTextBookmark */ = {
+ isa = PBXTextBookmark;
+ fRef = C80038020F0C3B210080C499 /* file.cpp */;
+ name = "file.cpp: 43";
+ rLen = 34;
+ rLoc = 2208;
+ rType = 0;
+ vrLen = 2363;
+ vrLoc = 0;
+ };
+ D2AAC09C05546B4700DB518D /* libLAS.dylib */ = {
+ activeExec = 0;
+ };
+}
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/build/xcode/xcode.xcodeproj/project.pbxproj work/libLAS-1.2.1/build/xcode/xcode.xcodeproj/project.pbxproj
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/build/xcode/xcode.xcodeproj/project.pbxproj 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/build/xcode/xcode.xcodeproj/project.pbxproj 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,878 @@
+// !$*UTF8*$!
+{
+ archiveVersion = 1;
+ classes = {
+ };
+ objectVersion = 45;
+ objects = {
+
+/* Begin PBXBuildFile section */
+ C800385E0F0C3B210080C499 /* file.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C80038020F0C3B210080C499 /* file.cpp */; };
+ C80038610F0C3B210080C499 /* reader.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C80038070F0C3B210080C499 /* reader.cpp */; };
+ C80038630F0C3B210080C499 /* reader10.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C800380A0F0C3B210080C499 /* reader10.cpp */; };
+ C80038650F0C3B210080C499 /* reader11.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C800380D0F0C3B210080C499 /* reader11.cpp */; };
+ C80038670F0C3B210080C499 /* writer.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C80038100F0C3B210080C499 /* writer.cpp */; };
+ C80038690F0C3B210080C499 /* writer10.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C80038130F0C3B210080C499 /* writer10.cpp */; };
+ C800386B0F0C3B210080C499 /* writer11.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C80038160F0C3B210080C499 /* writer11.cpp */; };
+ C800386D0F0C3B210080C499 /* las_c_api.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C80038190F0C3B210080C499 /* las_c_api.cpp */; };
+ C800386E0F0C3B210080C499 /* laserror.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C800381A0F0C3B210080C499 /* laserror.cpp */; };
+ C800386F0F0C3B210080C499 /* lasfile.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C800381B0F0C3B210080C499 /* lasfile.cpp */; };
+ C80038700F0C3B210080C499 /* lasheader.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C800381C0F0C3B210080C499 /* lasheader.cpp */; };
+ C80038710F0C3B210080C499 /* laspoint.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C800381D0F0C3B210080C499 /* laspoint.cpp */; };
+ C80038720F0C3B210080C499 /* lasreader.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C800381E0F0C3B210080C499 /* lasreader.cpp */; };
+ C80038730F0C3B210080C499 /* lasrecordheader.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C800381F0F0C3B210080C499 /* lasrecordheader.cpp */; };
+ C80038740F0C3B210080C499 /* laswriter.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C80038200F0C3B210080C499 /* laswriter.cpp */; };
+ C80038750F0C3B210080C499 /* las_config.h in Headers */ = {isa = PBXBuildFile; fileRef = C80038280F0C3B210080C499 /* las_config.h */; };
+ C80038760F0C3B210080C499 /* las_version.h in Headers */ = {isa = PBXBuildFile; fileRef = C80038290F0C3B210080C499 /* las_version.h */; };
+ C80038770F0C3B210080C499 /* liblas.h in Headers */ = {isa = PBXBuildFile; fileRef = C800382A0F0C3B210080C499 /* liblas.h */; };
+ C80038780F0C3B210080C499 /* cstdint.hpp in Headers */ = {isa = PBXBuildFile; fileRef = C800382B0F0C3B210080C499 /* cstdint.hpp */; };
+ C80038790F0C3B210080C499 /* endian.hpp in Headers */ = {isa = PBXBuildFile; fileRef = C800382D0F0C3B210080C499 /* endian.hpp */; };
+ C800387A0F0C3B210080C499 /* file.hpp in Headers */ = {isa = PBXBuildFile; fileRef = C800382E0F0C3B210080C499 /* file.hpp */; };
+ C800387B0F0C3B210080C499 /* fwd.hpp in Headers */ = {isa = PBXBuildFile; fileRef = C800382F0F0C3B210080C499 /* fwd.hpp */; };
+ C800387C0F0C3B210080C499 /* reader.hpp in Headers */ = {isa = PBXBuildFile; fileRef = C80038300F0C3B210080C499 /* reader.hpp */; };
+ C800387D0F0C3B210080C499 /* reader10.hpp in Headers */ = {isa = PBXBuildFile; fileRef = C80038310F0C3B210080C499 /* reader10.hpp */; };
+ C800387E0F0C3B210080C499 /* reader11.hpp in Headers */ = {isa = PBXBuildFile; fileRef = C80038320F0C3B210080C499 /* reader11.hpp */; };
+ C800387F0F0C3B210080C499 /* sha1.hpp in Headers */ = {isa = PBXBuildFile; fileRef = C80038330F0C3B210080C499 /* sha1.hpp */; };
+ C80038800F0C3B210080C499 /* sharedptr.hpp in Headers */ = {isa = PBXBuildFile; fileRef = C80038340F0C3B210080C499 /* sharedptr.hpp */; };
+ C80038810F0C3B210080C499 /* timer.hpp in Headers */ = {isa = PBXBuildFile; fileRef = C80038350F0C3B210080C499 /* timer.hpp */; };
+ C80038820F0C3B210080C499 /* utility.hpp in Headers */ = {isa = PBXBuildFile; fileRef = C80038360F0C3B210080C499 /* utility.hpp */; };
+ C80038830F0C3B210080C499 /* writer.hpp in Headers */ = {isa = PBXBuildFile; fileRef = C80038370F0C3B210080C499 /* writer.hpp */; };
+ C80038840F0C3B210080C499 /* writer10.hpp in Headers */ = {isa = PBXBuildFile; fileRef = C80038380F0C3B210080C499 /* writer10.hpp */; };
+ C80038850F0C3B210080C499 /* writer11.hpp in Headers */ = {isa = PBXBuildFile; fileRef = C80038390F0C3B210080C499 /* writer11.hpp */; };
+ C80038860F0C3B210080C499 /* exception.hpp in Headers */ = {isa = PBXBuildFile; fileRef = C800383A0F0C3B210080C499 /* exception.hpp */; };
+ C80038870F0C3B210080C499 /* guid.hpp in Headers */ = {isa = PBXBuildFile; fileRef = C800383B0F0C3B210080C499 /* guid.hpp */; };
+ C80038880F0C3B210080C499 /* iterator.hpp in Headers */ = {isa = PBXBuildFile; fileRef = C800383C0F0C3B210080C499 /* iterator.hpp */; };
+ C80038890F0C3B210080C499 /* laserror.hpp in Headers */ = {isa = PBXBuildFile; fileRef = C800383D0F0C3B210080C499 /* laserror.hpp */; };
+ C800388A0F0C3B210080C499 /* lasfile.hpp in Headers */ = {isa = PBXBuildFile; fileRef = C800383E0F0C3B210080C499 /* lasfile.hpp */; };
+ C800388B0F0C3B210080C499 /* lasheader.hpp in Headers */ = {isa = PBXBuildFile; fileRef = C800383F0F0C3B210080C499 /* lasheader.hpp */; };
+ C800388C0F0C3B210080C499 /* laspoint.hpp in Headers */ = {isa = PBXBuildFile; fileRef = C80038400F0C3B210080C499 /* laspoint.hpp */; };
+ C800388D0F0C3B210080C499 /* lasreader.hpp in Headers */ = {isa = PBXBuildFile; fileRef = C80038410F0C3B210080C499 /* lasreader.hpp */; };
+ C800388E0F0C3B210080C499 /* lasrecordheader.hpp in Headers */ = {isa = PBXBuildFile; fileRef = C80038420F0C3B210080C499 /* lasrecordheader.hpp */; };
+ C800388F0F0C3B210080C499 /* laswriter.hpp in Headers */ = {isa = PBXBuildFile; fileRef = C80038430F0C3B210080C499 /* laswriter.hpp */; };
+ C80038900F0C3B210080C499 /* liblas.hpp in Headers */ = {isa = PBXBuildFile; fileRef = C80038440F0C3B210080C499 /* liblas.hpp */; };
+ C80038C90F0C5E5E0080C499 /* lasinfo.c in Sources */ = {isa = PBXBuildFile; fileRef = C80038C80F0C5E5E0080C499 /* lasinfo.c */; };
+ C80038CE0F0C5F0B0080C499 /* libLAS.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = C80038A00F0C3C2C0080C499 /* libLAS.dylib */; };
+ C80038D20F0C5F2E0080C499 /* lascommon.c in Sources */ = {isa = PBXBuildFile; fileRef = C80038D10F0C5F2E0080C499 /* lascommon.c */; };
+ C80038E20F0C60300080C499 /* lasmerge.c in Sources */ = {isa = PBXBuildFile; fileRef = C80038E10F0C60300080C499 /* lasmerge.c */; };
+ C80038E30F0C60370080C499 /* lascommon.c in Sources */ = {isa = PBXBuildFile; fileRef = C80038D10F0C5F2E0080C499 /* lascommon.c */; };
+ C80038E50F0C60470080C499 /* libLAS.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = C80038A00F0C3C2C0080C499 /* libLAS.dylib */; };
+ C80039120F0C60DF0080C499 /* libLAS.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = C80038A00F0C3C2C0080C499 /* libLAS.dylib */; };
+ C80039140F0C60F10080C499 /* las2las.c in Sources */ = {isa = PBXBuildFile; fileRef = C80039130F0C60F10080C499 /* las2las.c */; };
+ C800391F0F0C610B0080C499 /* libLAS.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = C80038A00F0C3C2C0080C499 /* libLAS.dylib */; };
+ C80039200F0C61180080C499 /* lascommon.c in Sources */ = {isa = PBXBuildFile; fileRef = C80038D10F0C5F2E0080C499 /* lascommon.c */; };
+ C80039210F0C611C0080C499 /* lascommon.c in Sources */ = {isa = PBXBuildFile; fileRef = C80038D10F0C5F2E0080C499 /* lascommon.c */; };
+ C80039230F0C612F0080C499 /* las2txt.c in Sources */ = {isa = PBXBuildFile; fileRef = C80039220F0C612F0080C499 /* las2txt.c */; };
+ C800392E0F0C614C0080C499 /* lascommon.c in Sources */ = {isa = PBXBuildFile; fileRef = C80038D10F0C5F2E0080C499 /* lascommon.c */; };
+ C800392F0F0C614D0080C499 /* libLAS.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = C80038A00F0C3C2C0080C499 /* libLAS.dylib */; };
+ C80039310F0C61620080C499 /* txt2las.c in Sources */ = {isa = PBXBuildFile; fileRef = C80039300F0C61620080C499 /* txt2las.c */; };
+/* End PBXBuildFile section */
+
+/* Begin PBXContainerItemProxy section */
+ C80039410F0C619C0080C499 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 0867D690FE84028FC02AAC07 /* Project object */;
+ proxyType = 1;
+ remoteGlobalIDString = D2AAC09C05546B4700DB518D;
+ remoteInfo = libLAS.dylib;
+ };
+ C80039430F0C61AA0080C499 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 0867D690FE84028FC02AAC07 /* Project object */;
+ proxyType = 1;
+ remoteGlobalIDString = D2AAC09C05546B4700DB518D;
+ remoteInfo = libLAS.dylib;
+ };
+ C80039450F0C61B30080C499 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 0867D690FE84028FC02AAC07 /* Project object */;
+ proxyType = 1;
+ remoteGlobalIDString = D2AAC09C05546B4700DB518D;
+ remoteInfo = libLAS.dylib;
+ };
+ C80039470F0C61BA0080C499 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 0867D690FE84028FC02AAC07 /* Project object */;
+ proxyType = 1;
+ remoteGlobalIDString = D2AAC09C05546B4700DB518D;
+ remoteInfo = libLAS.dylib;
+ };
+ C80039490F0C61C30080C499 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 0867D690FE84028FC02AAC07 /* Project object */;
+ proxyType = 1;
+ remoteGlobalIDString = D2AAC09C05546B4700DB518D;
+ remoteInfo = libLAS.dylib;
+ };
+/* End PBXContainerItemProxy section */
+
+/* Begin PBXFileReference section */
+ C80038020F0C3B210080C499 /* file.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = file.cpp; sourceTree = ""; };
+ C80038070F0C3B210080C499 /* reader.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = reader.cpp; sourceTree = ""; };
+ C800380A0F0C3B210080C499 /* reader10.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = reader10.cpp; sourceTree = ""; };
+ C800380D0F0C3B210080C499 /* reader11.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = reader11.cpp; sourceTree = ""; };
+ C80038100F0C3B210080C499 /* writer.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = writer.cpp; sourceTree = ""; };
+ C80038130F0C3B210080C499 /* writer10.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = writer10.cpp; sourceTree = ""; };
+ C80038160F0C3B210080C499 /* writer11.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = writer11.cpp; sourceTree = ""; };
+ C80038190F0C3B210080C499 /* las_c_api.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = las_c_api.cpp; sourceTree = ""; };
+ C800381A0F0C3B210080C499 /* laserror.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = laserror.cpp; sourceTree = ""; };
+ C800381B0F0C3B210080C499 /* lasfile.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = lasfile.cpp; sourceTree = ""; };
+ C800381C0F0C3B210080C499 /* lasheader.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = lasheader.cpp; sourceTree = ""; };
+ C800381D0F0C3B210080C499 /* laspoint.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = laspoint.cpp; sourceTree = ""; };
+ C800381E0F0C3B210080C499 /* lasreader.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = lasreader.cpp; sourceTree = ""; };
+ C800381F0F0C3B210080C499 /* lasrecordheader.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = lasrecordheader.cpp; sourceTree = ""; };
+ C80038200F0C3B210080C499 /* laswriter.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = laswriter.cpp; sourceTree = ""; };
+ C80038280F0C3B210080C499 /* las_config.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = las_config.h; sourceTree = ""; };
+ C80038290F0C3B210080C499 /* las_version.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = las_version.h; sourceTree = ""; };
+ C800382A0F0C3B210080C499 /* liblas.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = liblas.h; sourceTree = ""; };
+ C800382B0F0C3B210080C499 /* cstdint.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = cstdint.hpp; sourceTree = ""; };
+ C800382D0F0C3B210080C499 /* endian.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = endian.hpp; sourceTree = ""; };
+ C800382E0F0C3B210080C499 /* file.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = file.hpp; sourceTree = ""; };
+ C800382F0F0C3B210080C499 /* fwd.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = fwd.hpp; sourceTree = ""; };
+ C80038300F0C3B210080C499 /* reader.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = reader.hpp; sourceTree = ""; };
+ C80038310F0C3B210080C499 /* reader10.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = reader10.hpp; sourceTree = ""; };
+ C80038320F0C3B210080C499 /* reader11.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = reader11.hpp; sourceTree = ""; };
+ C80038330F0C3B210080C499 /* sha1.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = sha1.hpp; sourceTree = ""; };
+ C80038340F0C3B210080C499 /* sharedptr.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = sharedptr.hpp; sourceTree = ""; };
+ C80038350F0C3B210080C499 /* timer.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = timer.hpp; sourceTree = ""; };
+ C80038360F0C3B210080C499 /* utility.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = utility.hpp; sourceTree = ""; };
+ C80038370F0C3B210080C499 /* writer.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = writer.hpp; sourceTree = ""; };
+ C80038380F0C3B210080C499 /* writer10.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = writer10.hpp; sourceTree = ""; };
+ C80038390F0C3B210080C499 /* writer11.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = writer11.hpp; sourceTree = ""; };
+ C800383A0F0C3B210080C499 /* exception.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = exception.hpp; sourceTree = ""; };
+ C800383B0F0C3B210080C499 /* guid.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = guid.hpp; sourceTree = ""; };
+ C800383C0F0C3B210080C499 /* iterator.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = iterator.hpp; sourceTree = ""; };
+ C800383D0F0C3B210080C499 /* laserror.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = laserror.hpp; sourceTree = ""; };
+ C800383E0F0C3B210080C499 /* lasfile.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = lasfile.hpp; sourceTree = ""; };
+ C800383F0F0C3B210080C499 /* lasheader.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = lasheader.hpp; sourceTree = ""; };
+ C80038400F0C3B210080C499 /* laspoint.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = laspoint.hpp; sourceTree = ""; };
+ C80038410F0C3B210080C499 /* lasreader.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = lasreader.hpp; sourceTree = ""; };
+ C80038420F0C3B210080C499 /* lasrecordheader.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = lasrecordheader.hpp; sourceTree = ""; };
+ C80038430F0C3B210080C499 /* laswriter.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = laswriter.hpp; sourceTree = ""; };
+ C80038440F0C3B210080C499 /* liblas.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = liblas.hpp; sourceTree = ""; };
+ C80038A00F0C3C2C0080C499 /* libLAS.dylib */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.dylib"; includeInIndex = 0; path = libLAS.dylib; sourceTree = BUILT_PRODUCTS_DIR; };
+ C80038C30F0C5E230080C499 /* lasinfo */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = lasinfo; sourceTree = BUILT_PRODUCTS_DIR; };
+ C80038C80F0C5E5E0080C499 /* lasinfo.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = lasinfo.c; path = ../../apps/lasinfo.c; sourceTree = SOURCE_ROOT; };
+ C80038D10F0C5F2E0080C499 /* lascommon.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = lascommon.c; path = ../../apps/lascommon.c; sourceTree = SOURCE_ROOT; };
+ C80038DC0F0C5FF10080C499 /* lasmerge */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = lasmerge; sourceTree = BUILT_PRODUCTS_DIR; };
+ C80038E10F0C60300080C499 /* lasmerge.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = lasmerge.c; path = ../../apps/lasmerge.c; sourceTree = SOURCE_ROOT; };
+ C800390E0F0C60D10080C499 /* las2las */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = las2las; sourceTree = BUILT_PRODUCTS_DIR; };
+ C80039130F0C60F10080C499 /* las2las.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = las2las.c; path = ../../apps/las2las.c; sourceTree = SOURCE_ROOT; };
+ C800391B0F0C60FE0080C499 /* las2txt */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = las2txt; sourceTree = BUILT_PRODUCTS_DIR; };
+ C80039220F0C612F0080C499 /* las2txt.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = las2txt.c; path = ../../apps/las2txt.c; sourceTree = SOURCE_ROOT; };
+ C800392A0F0C613F0080C499 /* txt2las */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = txt2las; sourceTree = BUILT_PRODUCTS_DIR; };
+ C80039300F0C61620080C499 /* txt2las.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = txt2las.c; path = ../../apps/txt2las.c; sourceTree = SOURCE_ROOT; };
+/* End PBXFileReference section */
+
+/* Begin PBXFrameworksBuildPhase section */
+ C80038C10F0C5E230080C499 /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ C80038CE0F0C5F0B0080C499 /* libLAS.dylib in Frameworks */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ C80038DA0F0C5FF10080C499 /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ C80038E50F0C60470080C499 /* libLAS.dylib in Frameworks */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ C800390C0F0C60D10080C499 /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ C80039120F0C60DF0080C499 /* libLAS.dylib in Frameworks */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ C80039190F0C60FE0080C499 /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ C800391F0F0C610B0080C499 /* libLAS.dylib in Frameworks */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ C80039280F0C613F0080C499 /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ C800392F0F0C614D0080C499 /* libLAS.dylib in Frameworks */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ D2AAC09B05546B4700DB518D /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXFrameworksBuildPhase section */
+
+/* Begin PBXGroup section */
+ 0867D691FE84028FC02AAC07 /* xcode */ = {
+ isa = PBXGroup;
+ children = (
+ C80039300F0C61620080C499 /* txt2las.c */,
+ C80039220F0C612F0080C499 /* las2txt.c */,
+ C80039130F0C60F10080C499 /* las2las.c */,
+ C80038E10F0C60300080C499 /* lasmerge.c */,
+ C80038D10F0C5F2E0080C499 /* lascommon.c */,
+ C80037E80F0C3B200080C499 /* src */,
+ C80038250F0C3B210080C499 /* include */,
+ C80038A00F0C3C2C0080C499 /* libLAS.dylib */,
+ C80038C30F0C5E230080C499 /* lasinfo */,
+ C80038C80F0C5E5E0080C499 /* lasinfo.c */,
+ C80038DC0F0C5FF10080C499 /* lasmerge */,
+ C800390E0F0C60D10080C499 /* las2las */,
+ C800391B0F0C60FE0080C499 /* las2txt */,
+ C800392A0F0C613F0080C499 /* txt2las */,
+ );
+ name = xcode;
+ sourceTree = "";
+ };
+ C80037E80F0C3B200080C499 /* src */ = {
+ isa = PBXGroup;
+ children = (
+ C80037EA0F0C3B210080C499 /* detail */,
+ C80038190F0C3B210080C499 /* las_c_api.cpp */,
+ C800381A0F0C3B210080C499 /* laserror.cpp */,
+ C800381B0F0C3B210080C499 /* lasfile.cpp */,
+ C800381C0F0C3B210080C499 /* lasheader.cpp */,
+ C800381D0F0C3B210080C499 /* laspoint.cpp */,
+ C800381E0F0C3B210080C499 /* lasreader.cpp */,
+ C800381F0F0C3B210080C499 /* lasrecordheader.cpp */,
+ C80038200F0C3B210080C499 /* laswriter.cpp */,
+ );
+ name = src;
+ path = ../../src;
+ sourceTree = SOURCE_ROOT;
+ };
+ C80037EA0F0C3B210080C499 /* detail */ = {
+ isa = PBXGroup;
+ children = (
+ C80038020F0C3B210080C499 /* file.cpp */,
+ C80038070F0C3B210080C499 /* reader.cpp */,
+ C800380A0F0C3B210080C499 /* reader10.cpp */,
+ C800380D0F0C3B210080C499 /* reader11.cpp */,
+ C80038100F0C3B210080C499 /* writer.cpp */,
+ C80038130F0C3B210080C499 /* writer10.cpp */,
+ C80038160F0C3B210080C499 /* writer11.cpp */,
+ );
+ path = detail;
+ sourceTree = "";
+ };
+ C80038250F0C3B210080C499 /* include */ = {
+ isa = PBXGroup;
+ children = (
+ C80038260F0C3B210080C499 /* liblas */,
+ );
+ name = include;
+ path = ../../include;
+ sourceTree = SOURCE_ROOT;
+ };
+ C80038260F0C3B210080C499 /* liblas */ = {
+ isa = PBXGroup;
+ children = (
+ C80038270F0C3B210080C499 /* capi */,
+ C800382B0F0C3B210080C499 /* cstdint.hpp */,
+ C800382C0F0C3B210080C499 /* detail */,
+ C800383A0F0C3B210080C499 /* exception.hpp */,
+ C800383B0F0C3B210080C499 /* guid.hpp */,
+ C800383C0F0C3B210080C499 /* iterator.hpp */,
+ C800383D0F0C3B210080C499 /* laserror.hpp */,
+ C800383E0F0C3B210080C499 /* lasfile.hpp */,
+ C800383F0F0C3B210080C499 /* lasheader.hpp */,
+ C80038400F0C3B210080C499 /* laspoint.hpp */,
+ C80038410F0C3B210080C499 /* lasreader.hpp */,
+ C80038420F0C3B210080C499 /* lasrecordheader.hpp */,
+ C80038430F0C3B210080C499 /* laswriter.hpp */,
+ C80038440F0C3B210080C499 /* liblas.hpp */,
+ );
+ path = liblas;
+ sourceTree = "";
+ };
+ C80038270F0C3B210080C499 /* capi */ = {
+ isa = PBXGroup;
+ children = (
+ C80038280F0C3B210080C499 /* las_config.h */,
+ C80038290F0C3B210080C499 /* las_version.h */,
+ C800382A0F0C3B210080C499 /* liblas.h */,
+ );
+ path = capi;
+ sourceTree = "";
+ };
+ C800382C0F0C3B210080C499 /* detail */ = {
+ isa = PBXGroup;
+ children = (
+ C800382D0F0C3B210080C499 /* endian.hpp */,
+ C800382E0F0C3B210080C499 /* file.hpp */,
+ C800382F0F0C3B210080C499 /* fwd.hpp */,
+ C80038300F0C3B210080C499 /* reader.hpp */,
+ C80038310F0C3B210080C499 /* reader10.hpp */,
+ C80038320F0C3B210080C499 /* reader11.hpp */,
+ C80038330F0C3B210080C499 /* sha1.hpp */,
+ C80038340F0C3B210080C499 /* sharedptr.hpp */,
+ C80038350F0C3B210080C499 /* timer.hpp */,
+ C80038360F0C3B210080C499 /* utility.hpp */,
+ C80038370F0C3B210080C499 /* writer.hpp */,
+ C80038380F0C3B210080C499 /* writer10.hpp */,
+ C80038390F0C3B210080C499 /* writer11.hpp */,
+ );
+ path = detail;
+ sourceTree = "";
+ };
+/* End PBXGroup section */
+
+/* Begin PBXHeadersBuildPhase section */
+ D2AAC09905546B4700DB518D /* Headers */ = {
+ isa = PBXHeadersBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ C80038750F0C3B210080C499 /* las_config.h in Headers */,
+ C80038760F0C3B210080C499 /* las_version.h in Headers */,
+ C80038770F0C3B210080C499 /* liblas.h in Headers */,
+ C80038780F0C3B210080C499 /* cstdint.hpp in Headers */,
+ C80038790F0C3B210080C499 /* endian.hpp in Headers */,
+ C800387A0F0C3B210080C499 /* file.hpp in Headers */,
+ C800387B0F0C3B210080C499 /* fwd.hpp in Headers */,
+ C800387C0F0C3B210080C499 /* reader.hpp in Headers */,
+ C800387D0F0C3B210080C499 /* reader10.hpp in Headers */,
+ C800387E0F0C3B210080C499 /* reader11.hpp in Headers */,
+ C800387F0F0C3B210080C499 /* sha1.hpp in Headers */,
+ C80038800F0C3B210080C499 /* sharedptr.hpp in Headers */,
+ C80038810F0C3B210080C499 /* timer.hpp in Headers */,
+ C80038820F0C3B210080C499 /* utility.hpp in Headers */,
+ C80038830F0C3B210080C499 /* writer.hpp in Headers */,
+ C80038840F0C3B210080C499 /* writer10.hpp in Headers */,
+ C80038850F0C3B210080C499 /* writer11.hpp in Headers */,
+ C80038860F0C3B210080C499 /* exception.hpp in Headers */,
+ C80038870F0C3B210080C499 /* guid.hpp in Headers */,
+ C80038880F0C3B210080C499 /* iterator.hpp in Headers */,
+ C80038890F0C3B210080C499 /* laserror.hpp in Headers */,
+ C800388A0F0C3B210080C499 /* lasfile.hpp in Headers */,
+ C800388B0F0C3B210080C499 /* lasheader.hpp in Headers */,
+ C800388C0F0C3B210080C499 /* laspoint.hpp in Headers */,
+ C800388D0F0C3B210080C499 /* lasreader.hpp in Headers */,
+ C800388E0F0C3B210080C499 /* lasrecordheader.hpp in Headers */,
+ C800388F0F0C3B210080C499 /* laswriter.hpp in Headers */,
+ C80038900F0C3B210080C499 /* liblas.hpp in Headers */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXHeadersBuildPhase section */
+
+/* Begin PBXNativeTarget section */
+ C80038C20F0C5E230080C499 /* lasinfo */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = C80038C70F0C5E420080C499 /* Build configuration list for PBXNativeTarget "lasinfo" */;
+ buildPhases = (
+ C80038C00F0C5E230080C499 /* Sources */,
+ C80038C10F0C5E230080C499 /* Frameworks */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ C800394A0F0C61C30080C499 /* PBXTargetDependency */,
+ );
+ name = lasinfo;
+ productName = lasinfo;
+ productReference = C80038C30F0C5E230080C499 /* lasinfo */;
+ productType = "com.apple.product-type.tool";
+ };
+ C80038DB0F0C5FF10080C499 /* lasmerge */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = C80038E00F0C601F0080C499 /* Build configuration list for PBXNativeTarget "lasmerge" */;
+ buildPhases = (
+ C80038D90F0C5FF10080C499 /* Sources */,
+ C80038DA0F0C5FF10080C499 /* Frameworks */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ C80039480F0C61BA0080C499 /* PBXTargetDependency */,
+ );
+ name = lasmerge;
+ productName = lasmerge;
+ productReference = C80038DC0F0C5FF10080C499 /* lasmerge */;
+ productType = "com.apple.product-type.tool";
+ };
+ C800390D0F0C60D10080C499 /* las2las */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = C80039150F0C60F20080C499 /* Build configuration list for PBXNativeTarget "las2las" */;
+ buildPhases = (
+ C800390B0F0C60D10080C499 /* Sources */,
+ C800390C0F0C60D10080C499 /* Frameworks */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ C80039460F0C61B30080C499 /* PBXTargetDependency */,
+ );
+ name = las2las;
+ productName = las2las;
+ productReference = C800390E0F0C60D10080C499 /* las2las */;
+ productType = "com.apple.product-type.tool";
+ };
+ C800391A0F0C60FE0080C499 /* las2txt */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = C80039240F0C612F0080C499 /* Build configuration list for PBXNativeTarget "las2txt" */;
+ buildPhases = (
+ C80039180F0C60FE0080C499 /* Sources */,
+ C80039190F0C60FE0080C499 /* Frameworks */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ C80039440F0C61AA0080C499 /* PBXTargetDependency */,
+ );
+ name = las2txt;
+ productName = las2txt;
+ productReference = C800391B0F0C60FE0080C499 /* las2txt */;
+ productType = "com.apple.product-type.tool";
+ };
+ C80039290F0C613F0080C499 /* txt2las */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = C80039320F0C61620080C499 /* Build configuration list for PBXNativeTarget "txt2las" */;
+ buildPhases = (
+ C80039270F0C613F0080C499 /* Sources */,
+ C80039280F0C613F0080C499 /* Frameworks */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ C80039420F0C619C0080C499 /* PBXTargetDependency */,
+ );
+ name = txt2las;
+ productName = txt2las;
+ productReference = C800392A0F0C613F0080C499 /* txt2las */;
+ productType = "com.apple.product-type.tool";
+ };
+ D2AAC09C05546B4700DB518D /* libLAS.dylib */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = 1DEB916008733D950010E9CD /* Build configuration list for PBXNativeTarget "libLAS.dylib" */;
+ buildPhases = (
+ D2AAC09905546B4700DB518D /* Headers */,
+ D2AAC09B05546B4700DB518D /* Frameworks */,
+ D2AAC09A05546B4700DB518D /* Sources */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ );
+ name = libLAS.dylib;
+ productName = libxcode;
+ productReference = C80038A00F0C3C2C0080C499 /* libLAS.dylib */;
+ productType = "com.apple.product-type.library.dynamic";
+ };
+/* End PBXNativeTarget section */
+
+/* Begin PBXProject section */
+ 0867D690FE84028FC02AAC07 /* Project object */ = {
+ isa = PBXProject;
+ buildConfigurationList = 1DEB916408733D950010E9CD /* Build configuration list for PBXProject "xcode" */;
+ compatibilityVersion = "Xcode 3.1";
+ hasScannedForEncodings = 1;
+ mainGroup = 0867D691FE84028FC02AAC07 /* xcode */;
+ productRefGroup = 0867D691FE84028FC02AAC07 /* xcode */;
+ projectDirPath = "";
+ projectRoot = "";
+ targets = (
+ D2AAC09C05546B4700DB518D /* libLAS.dylib */,
+ C80038C20F0C5E230080C499 /* lasinfo */,
+ C80038DB0F0C5FF10080C499 /* lasmerge */,
+ C800390D0F0C60D10080C499 /* las2las */,
+ C800391A0F0C60FE0080C499 /* las2txt */,
+ C80039290F0C613F0080C499 /* txt2las */,
+ );
+ };
+/* End PBXProject section */
+
+/* Begin PBXSourcesBuildPhase section */
+ C80038C00F0C5E230080C499 /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ C80038C90F0C5E5E0080C499 /* lasinfo.c in Sources */,
+ C80038D20F0C5F2E0080C499 /* lascommon.c in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ C80038D90F0C5FF10080C499 /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ C80038E20F0C60300080C499 /* lasmerge.c in Sources */,
+ C80038E30F0C60370080C499 /* lascommon.c in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ C800390B0F0C60D10080C499 /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ C80039200F0C61180080C499 /* lascommon.c in Sources */,
+ C80039140F0C60F10080C499 /* las2las.c in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ C80039180F0C60FE0080C499 /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ C80039210F0C611C0080C499 /* lascommon.c in Sources */,
+ C80039230F0C612F0080C499 /* las2txt.c in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ C80039270F0C613F0080C499 /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ C800392E0F0C614C0080C499 /* lascommon.c in Sources */,
+ C80039310F0C61620080C499 /* txt2las.c in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ D2AAC09A05546B4700DB518D /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ C800385E0F0C3B210080C499 /* file.cpp in Sources */,
+ C80038610F0C3B210080C499 /* reader.cpp in Sources */,
+ C80038630F0C3B210080C499 /* reader10.cpp in Sources */,
+ C80038650F0C3B210080C499 /* reader11.cpp in Sources */,
+ C80038670F0C3B210080C499 /* writer.cpp in Sources */,
+ C80038690F0C3B210080C499 /* writer10.cpp in Sources */,
+ C800386B0F0C3B210080C499 /* writer11.cpp in Sources */,
+ C800386D0F0C3B210080C499 /* las_c_api.cpp in Sources */,
+ C800386E0F0C3B210080C499 /* laserror.cpp in Sources */,
+ C800386F0F0C3B210080C499 /* lasfile.cpp in Sources */,
+ C80038700F0C3B210080C499 /* lasheader.cpp in Sources */,
+ C80038710F0C3B210080C499 /* laspoint.cpp in Sources */,
+ C80038720F0C3B210080C499 /* lasreader.cpp in Sources */,
+ C80038730F0C3B210080C499 /* lasrecordheader.cpp in Sources */,
+ C80038740F0C3B210080C499 /* laswriter.cpp in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXSourcesBuildPhase section */
+
+/* Begin PBXTargetDependency section */
+ C80039420F0C619C0080C499 /* PBXTargetDependency */ = {
+ isa = PBXTargetDependency;
+ target = D2AAC09C05546B4700DB518D /* libLAS.dylib */;
+ targetProxy = C80039410F0C619C0080C499 /* PBXContainerItemProxy */;
+ };
+ C80039440F0C61AA0080C499 /* PBXTargetDependency */ = {
+ isa = PBXTargetDependency;
+ target = D2AAC09C05546B4700DB518D /* libLAS.dylib */;
+ targetProxy = C80039430F0C61AA0080C499 /* PBXContainerItemProxy */;
+ };
+ C80039460F0C61B30080C499 /* PBXTargetDependency */ = {
+ isa = PBXTargetDependency;
+ target = D2AAC09C05546B4700DB518D /* libLAS.dylib */;
+ targetProxy = C80039450F0C61B30080C499 /* PBXContainerItemProxy */;
+ };
+ C80039480F0C61BA0080C499 /* PBXTargetDependency */ = {
+ isa = PBXTargetDependency;
+ target = D2AAC09C05546B4700DB518D /* libLAS.dylib */;
+ targetProxy = C80039470F0C61BA0080C499 /* PBXContainerItemProxy */;
+ };
+ C800394A0F0C61C30080C499 /* PBXTargetDependency */ = {
+ isa = PBXTargetDependency;
+ target = D2AAC09C05546B4700DB518D /* libLAS.dylib */;
+ targetProxy = C80039490F0C61C30080C499 /* PBXContainerItemProxy */;
+ };
+/* End PBXTargetDependency section */
+
+/* Begin XCBuildConfiguration section */
+ 1DEB916108733D950010E9CD /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ COPY_PHASE_STRIP = NO;
+ GCC_DYNAMIC_NO_PIC = NO;
+ GCC_ENABLE_FIX_AND_CONTINUE = YES;
+ GCC_MODEL_TUNING = G5;
+ GCC_OPTIMIZATION_LEVEL = 0;
+ GCC_PRECOMPILE_PREFIX_HEADER = NO;
+ GCC_PREFIX_HEADER = "";
+ GCC_PREPROCESSOR_DEFINITIONS = (
+ "_GLIBCXX_DEBUG=1",
+ "_GLIBCXX_DEBUG_PEDANTIC=1",
+ );
+ PRODUCT_NAME = libLAS;
+ };
+ name = Debug;
+ };
+ 1DEB916208733D950010E9CD /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+ GCC_MODEL_TUNING = G5;
+ GCC_PRECOMPILE_PREFIX_HEADER = NO;
+ GCC_PREFIX_HEADER = xcode_Prefix.pch;
+ PRODUCT_NAME = libLAS;
+ STRIP_INSTALLED_PRODUCT = YES;
+ STRIP_STYLE = "non-global";
+ };
+ name = Release;
+ };
+ 1DEB916508733D950010E9CD /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
+ GCC_C_LANGUAGE_STANDARD = c99;
+ GCC_OPTIMIZATION_LEVEL = 0;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ HEADER_SEARCH_PATHS = "\"$(SRCROOT)/../../include\"/**";
+ ONLY_ACTIVE_ARCH = YES;
+ PREBINDING = NO;
+ PRECOMPS_INCLUDE_HEADERS_FROM_BUILT_PRODUCTS_DIR = NO;
+ SCAN_ALL_SOURCE_FILES_FOR_INCLUDES = YES;
+ SDKROOT = macosx10.5;
+ };
+ name = Debug;
+ };
+ 1DEB916608733D950010E9CD /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
+ GCC_C_LANGUAGE_STANDARD = c99;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ HEADER_SEARCH_PATHS = "\"$(SRCROOT)/../../include\"/**";
+ PREBINDING = NO;
+ PRECOMPS_INCLUDE_HEADERS_FROM_BUILT_PRODUCTS_DIR = NO;
+ SCAN_ALL_SOURCE_FILES_FOR_INCLUDES = YES;
+ SDKROOT = macosx10.5;
+ };
+ name = Release;
+ };
+ C80038C50F0C5E230080C499 /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ COPY_PHASE_STRIP = NO;
+ GCC_DYNAMIC_NO_PIC = NO;
+ GCC_ENABLE_FIX_AND_CONTINUE = YES;
+ GCC_MODEL_TUNING = G5;
+ GCC_OPTIMIZATION_LEVEL = 0;
+ INSTALL_PATH = /usr/local/bin;
+ PREBINDING = NO;
+ PRODUCT_NAME = lasinfo;
+ };
+ name = Debug;
+ };
+ C80038C60F0C5E230080C499 /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ COPY_PHASE_STRIP = YES;
+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+ GCC_ENABLE_FIX_AND_CONTINUE = NO;
+ GCC_MODEL_TUNING = G5;
+ INSTALL_PATH = "\"$(SRCROOT)/../../bin\"";
+ PREBINDING = NO;
+ PRODUCT_NAME = lasinfo;
+ ZERO_LINK = NO;
+ };
+ name = Release;
+ };
+ C80038DE0F0C5FF10080C499 /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ COPY_PHASE_STRIP = NO;
+ GCC_DYNAMIC_NO_PIC = NO;
+ GCC_ENABLE_FIX_AND_CONTINUE = YES;
+ GCC_MODEL_TUNING = G5;
+ GCC_OPTIMIZATION_LEVEL = 0;
+ INSTALL_PATH = /usr/local/bin;
+ PREBINDING = NO;
+ PRODUCT_NAME = lasmerge;
+ };
+ name = Debug;
+ };
+ C80038DF0F0C5FF10080C499 /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ COPY_PHASE_STRIP = YES;
+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+ GCC_ENABLE_FIX_AND_CONTINUE = NO;
+ GCC_MODEL_TUNING = G5;
+ INSTALL_PATH = "\"$(SRCROOT)/../../bin\"";
+ PREBINDING = NO;
+ PRODUCT_NAME = lasmerge;
+ ZERO_LINK = NO;
+ };
+ name = Release;
+ };
+ C80039100F0C60D20080C499 /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ COPY_PHASE_STRIP = NO;
+ GCC_DYNAMIC_NO_PIC = NO;
+ GCC_ENABLE_FIX_AND_CONTINUE = YES;
+ GCC_MODEL_TUNING = G5;
+ GCC_OPTIMIZATION_LEVEL = 0;
+ INSTALL_PATH = /usr/local/bin;
+ PREBINDING = NO;
+ PRODUCT_NAME = las2las;
+ };
+ name = Debug;
+ };
+ C80039110F0C60D20080C499 /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ COPY_PHASE_STRIP = YES;
+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+ GCC_ENABLE_FIX_AND_CONTINUE = NO;
+ GCC_MODEL_TUNING = G5;
+ INSTALL_PATH = /usr/local/bin;
+ PREBINDING = NO;
+ PRODUCT_NAME = las2las;
+ ZERO_LINK = NO;
+ };
+ name = Release;
+ };
+ C800391D0F0C60FF0080C499 /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ COPY_PHASE_STRIP = NO;
+ GCC_DYNAMIC_NO_PIC = NO;
+ GCC_ENABLE_FIX_AND_CONTINUE = YES;
+ GCC_MODEL_TUNING = G5;
+ GCC_OPTIMIZATION_LEVEL = 0;
+ INSTALL_PATH = /usr/local/bin;
+ PREBINDING = NO;
+ PRODUCT_NAME = las2txt;
+ };
+ name = Debug;
+ };
+ C800391E0F0C60FF0080C499 /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ COPY_PHASE_STRIP = YES;
+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+ GCC_ENABLE_FIX_AND_CONTINUE = NO;
+ GCC_MODEL_TUNING = G5;
+ INSTALL_PATH = /usr/local/bin;
+ PREBINDING = NO;
+ PRODUCT_NAME = las2txt;
+ ZERO_LINK = NO;
+ };
+ name = Release;
+ };
+ C800392C0F0C613F0080C499 /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ COPY_PHASE_STRIP = NO;
+ GCC_DYNAMIC_NO_PIC = NO;
+ GCC_ENABLE_FIX_AND_CONTINUE = YES;
+ GCC_MODEL_TUNING = G5;
+ GCC_OPTIMIZATION_LEVEL = 0;
+ INSTALL_PATH = /usr/local/bin;
+ PREBINDING = NO;
+ PRODUCT_NAME = txt2las;
+ };
+ name = Debug;
+ };
+ C800392D0F0C613F0080C499 /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ COPY_PHASE_STRIP = YES;
+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+ GCC_ENABLE_FIX_AND_CONTINUE = NO;
+ GCC_MODEL_TUNING = G5;
+ INSTALL_PATH = /usr/local/bin;
+ PREBINDING = NO;
+ PRODUCT_NAME = txt2las;
+ ZERO_LINK = NO;
+ };
+ name = Release;
+ };
+/* End XCBuildConfiguration section */
+
+/* Begin XCConfigurationList section */
+ 1DEB916008733D950010E9CD /* Build configuration list for PBXNativeTarget "libLAS.dylib" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 1DEB916108733D950010E9CD /* Debug */,
+ 1DEB916208733D950010E9CD /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ 1DEB916408733D950010E9CD /* Build configuration list for PBXProject "xcode" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 1DEB916508733D950010E9CD /* Debug */,
+ 1DEB916608733D950010E9CD /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ C80038C70F0C5E420080C499 /* Build configuration list for PBXNativeTarget "lasinfo" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ C80038C50F0C5E230080C499 /* Debug */,
+ C80038C60F0C5E230080C499 /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ C80038E00F0C601F0080C499 /* Build configuration list for PBXNativeTarget "lasmerge" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ C80038DE0F0C5FF10080C499 /* Debug */,
+ C80038DF0F0C5FF10080C499 /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ C80039150F0C60F20080C499 /* Build configuration list for PBXNativeTarget "las2las" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ C80039100F0C60D20080C499 /* Debug */,
+ C80039110F0C60D20080C499 /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ C80039240F0C612F0080C499 /* Build configuration list for PBXNativeTarget "las2txt" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ C800391D0F0C60FF0080C499 /* Debug */,
+ C800391E0F0C60FF0080C499 /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ C80039320F0C61620080C499 /* Build configuration list for PBXNativeTarget "txt2las" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ C800392C0F0C613F0080C499 /* Debug */,
+ C800392D0F0C613F0080C499 /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+/* End XCConfigurationList section */
+ };
+ rootObject = 0867D690FE84028FC02AAC07 /* Project object */;
+}
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/ChangeLog work/libLAS-1.2.1/ChangeLog
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/ChangeLog 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/ChangeLog 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,1100 @@
+2009-03-25 16:58 hobu
+
+ * trunk/nmake.opt: tweak some comments
+
+2009-03-25 16:52 hobu
+
+ * trunk/configure.ac: name our dist target to liblas-src and ensure
+ that the .bz2 file is made with 'make dist'
+
+2009-03-25 11:22 mloskot
+
+ * trunk: Updated svn:ignore property.
+
+2009-03-25 11:21 mloskot
+
+ * trunk/build/msvc90, trunk/build/msvc90/las2las,
+ trunk/build/msvc90/las2txt, trunk/build/msvc90/lasdiff,
+ trunk/build/msvc90/lasinfo, trunk/build/msvc90/lasmerge,
+ trunk/build/msvc90/liblas_c_dll, trunk/build/msvc90/liblas_lib,
+ trunk/build/msvc90/liblas_test, trunk/build/msvc90/txt2las: Updated
+ svn:ignore property.
+
+2009-03-25 11:14 mloskot
+
+ * trunk/apps/makefile.vc, trunk/nmake.opt: nmake.opt: Added support of
+ EXT_NMAKE_OPT for building libLAS with NMAKE (Ticket #117).
+ Improved detection of GDAL_HOME and GEOTIFF_HOME - check if
+ directories exist. Added auto-magical determination of version of
+ Visual C++ compiler based on NMAKE version (see WARNING in
+ NMAKE).
+
+2009-03-25 09:56 mloskot
+
+ * trunk/nmake.opt: Fixed LF to CRLF in nmake.opt.
+
+2009-03-25 09:43 mloskot
+
+ * trunk/src: Updated svn:ignore property for src.
+
+2009-03-23 09:47 mloskot
+
+ * trunk/build/msvc90/liblas_lib/liblas_lib.vcproj: build/msvc90:
+ updated project files after renaming classes LASSRS and LASVLR."
+
+2009-03-22 20:13 hobu
+
+ * trunk/include/liblas/lascolor.hpp, trunk/src/lascolor.cpp: fix #116,
+ LASColor has no == operation
+
+2009-03-22 20:12 hobu
+
+ * trunk/include/liblas/capi/liblas.h, trunk/src/las_c_api.cpp: Fix
+ #115, add Get/SetPointSourceId to C API
+
+2009-03-20 21:16 mloskot
+
+ * trunk/src/makefile.vc: Renamed class LASVLR to LASVariableRecord in
+ src/makefile.vc (Ticket #114).
+
+2009-03-20 20:59 mloskot
+
+ * trunk/src/Makefile.am: Renamed class LASVLR to LASVariableRecord in
+ src/Makefile.am (Ticket 14). The C API has not been touched.
+
+2009-03-20 20:55 mloskot
+
+ * trunk/build/msvc80/liblas_dll/liblas_dll.vcproj,
+ trunk/build/msvc80/liblas_lib/liblas_lib.vcproj,
+ trunk/build/msvc80/liblas_test/liblas_test.vcproj,
+ trunk/build/msvc90/liblas_dll/liblas_dll.vcproj,
+ trunk/build/msvc90/liblas_lib/liblas_lib.vcproj,
+ trunk/build/msvc90/liblas_test/liblas_test.vcproj,
+ trunk/include/Makefile.am, trunk/include/liblas/lasheader.hpp,
+ trunk/include/liblas/lasreader.hpp,
+ trunk/include/liblas/lasrecordheader.hpp,
+ trunk/include/liblas/lasspatialreference.hpp,
+ trunk/include/liblas/lasvariablerecord.hpp, trunk/src/CMakeLists.txt,
+ trunk/src/detail/reader.cpp, trunk/src/detail/reader10.cpp,
+ trunk/src/detail/reader11.cpp, trunk/src/detail/reader12.cpp,
+ trunk/src/detail/writer.cpp, trunk/src/las_c_api.cpp,
+ trunk/src/lasheader.cpp, trunk/src/lasrecordheader.cpp,
+ trunk/src/lasspatialreference.cpp, trunk/src/lasvariablerecord.cpp,
+ trunk/test/unit/CMakeLists.txt, trunk/test/unit/Makefile.am,
+ trunk/test/unit/lasrecordheader_test.cpp,
+ trunk/test/unit/lasvariablerecord_test.cpp: Renamed class LASVLR to
+ LASVariableRecord (Ticket #114). The C API has not been touched.
+
+2009-03-20 20:42 mloskot
+
+ * trunk/test/unit/Makefile.am: Renamed class LASSRS to
+ LASSpatialReference in test/unit/Makefile.am (Ticket #113).
+
+2009-03-20 20:35 mloskot
+
+ * trunk/build/msvc80/liblas_lib/liblas_lib.vcproj,
+ trunk/build/msvc80/liblas_test/liblas_test.vcproj,
+ trunk/build/msvc90/liblas_lib/liblas_lib.vcproj,
+ trunk/include/Makefile.am, trunk/include/liblas/detail/fwd.hpp,
+ trunk/include/liblas/detail/reader.hpp,
+ trunk/include/liblas/detail/writer.hpp,
+ trunk/include/liblas/lasheader.hpp,
+ trunk/include/liblas/lasreader.hpp,
+ trunk/include/liblas/lasspatialreference.hpp,
+ trunk/include/liblas/lassrs.hpp, trunk/include/liblas/laswriter.hpp,
+ trunk/src/CMakeLists.txt, trunk/src/Makefile.am,
+ trunk/src/detail/reader.cpp, trunk/src/detail/writer.cpp,
+ trunk/src/las_c_api.cpp, trunk/src/lasheader.cpp,
+ trunk/src/lasreader.cpp, trunk/src/lasspatialreference.cpp,
+ trunk/src/lassrs.cpp, trunk/src/laswriter.cpp, trunk/src/makefile.vc,
+ trunk/test/unit/lasheader_test.cpp,
+ trunk/test/unit/lasspatialreference_test.cpp,
+ trunk/test/unit/lassrs_test.cpp: Renamed class LASSRS to
+ LASSpatialReference (Ticket #113). The C API has not been
+ touched.
+
+2009-03-20 18:02 hobu
+
+ * trunk/configure.ac, trunk/include/liblas/capi/las_version.h,
+ trunk/nmake.opt, trunk/python/setup.py: increment versions in prep
+ for 1.2.0b3
+
+2009-03-20 17:19 hobu
+
+ * trunk/python/tests/Header.txt: try to fix date test again
+
+2009-03-20 16:59 hobu
+
+ * trunk/python/tests/SRS.txt, trunk/python/tests/VLR.txt: Guards for
+ when we have no HAVE_LIBGEOTIFF
+
+2009-03-20 16:59 hobu
+
+ * trunk/python/tests/File.txt: Make sure that void functions return
+ None for ctype or we'll get unexpected jtrunk back
+
+2009-03-20 16:57 hobu
+
+ * trunk/python/liblas/core.py: Make sure that void functions return
+ None for ctype or we'll get unexpected jtrunk back
+
+2009-03-20 16:50 hobu
+
+ * trunk/python/liblas/core.py: don't know where LASReader_Destroy
+ went
+
+2009-03-20 16:25 hobu
+
+ * trunk/src/las_c_api.cpp: We use #ifdef _WIN32 instead of #ifdef
+ WIN32 for strncasecmp
+
+2009-03-20 01:31 mloskot
+
+ * trunk/include/liblas/detail/reader.hpp,
+ trunk/include/liblas/lasreader.hpp, trunk/src/detail/reader.cpp,
+ trunk/src/detail/reader10.cpp, trunk/src/detail/reader11.cpp,
+ trunk/src/detail/reader12.cpp, trunk/src/lasreader.cpp: Fixed
+ weakness of MakePIMPL by reverting changes applied as r984 and
+ bringing m_pimpl back to constness. There is no need to re-create
+ internal reader object and reassign it to m_pimpl, because reader
+ state can be correctly reset by simple call of LASReader::Init.
+ This fix is also related to Ticket #85. All 87 test cases pass.
+
+2009-03-20 01:27 mloskot
+
+ * trunk/test/unit/lasreader_iterator_test.cpp: Fixed LF.
+
+2009-03-20 00:45 mloskot
+
+ * trunk/build/msvc80/liblas_lib/liblas_lib.vcproj,
+ trunk/build/msvc80/liblas_test/liblas_test.vcproj: Updated
+ build/msvc80 adding new files. Use $(SolutionDir) macro in unit
+ test runner, instead of relative path.
+
+2009-03-20 00:44 mloskot
+
+ * trunk/test/unit/liblas_test_suite.cpp: Cleanup
+
+2009-03-20 00:35 mloskot
+
+ * trunk/test/unit/lasreader_iterator_test.cpp: Fixed missing reset
+ operation on reader when re-using it with iterators (#85).
+
+2009-03-20 00:31 mloskot
+
+ * trunk/src/lasreader.cpp: Fixed but with incompletely re-initialized
+ LASReader after reset. The MakePIMPL idea is weak.
+
+2009-03-19 22:34 hobu
+
+ * trunk/python/liblas/core.py, trunk/python/tests/File.txt: beef up
+ test for _Destroy being called twice
+
+2009-03-19 22:11 hobu
+
+ * trunk/src/las_c_api.cpp: strncasecmp doesn't exist on windows
+
+2009-03-19 18:16 hobu
+
+ * trunk/src/las_c_api.cpp: fix #112, rename VALIDATE_POINTER0 and
+ VALIDATE_POINTER1
+
+2009-03-19 04:20 hobu
+
+ * trunk/include/liblas/lasheader.hpp, trunk/python/liblas/file.py,
+ trunk/python/tests/File.txt, trunk/src/las_c_api.cpp,
+ trunk/src/lasheader.cpp: stop tracking open readers/writers in
+ order to allow multiple readers to operate on a file #111
+
+2009-03-18 03:40 hobu
+
+ * trunk/include/liblas/detail/writer.hpp: dummy struct for when we
+ don't have GDAL
+
+2009-03-17 17:30 hobu
+
+ * trunk/apps/las2txt.c: fix #109, las2txt doesn't output RGB
+
+2009-03-17 17:24 hobu
+
+ * trunk/include/liblas/capi/liblas.h, trunk/src/las_c_api.cpp: fix
+ #110, LASSRS VLR methods for C API
+
+2009-03-17 17:19 hobu
+
+ * trunk/python/liblas/core.py, trunk/python/liblas/srs.py,
+ trunk/python/tests/SRS.txt: Add VLR methods to srs object
+
+2009-03-17 17:12 hobu
+
+ * trunk/src/detail/writer.cpp: oops #108
+
+2009-03-17 16:58 hobu
+
+ * trunk/include/liblas/detail/reader.hpp,
+ trunk/include/liblas/detail/writer.hpp, trunk/python/tests/SRS.txt,
+ trunk/src/detail/reader.cpp, trunk/src/detail/writer.cpp: Fix #108,
+ LASWriter::SetSRS and LASReader::SetSRS don't work
+
+2009-03-17 16:56 hobu
+
+ * trunk/python/liblas/file.py: clean up __del__ a bit when core is
+ already deleted
+
+2009-03-17 16:55 hobu
+
+ * trunk/python/liblas/point.py: complete #106, add descale/scale
+ convenience methods to liblas.point
+
+2009-03-17 04:15 hobu
+
+ * trunk/src/lassrs.cpp: clean up a bit
+
+2009-03-17 04:05 hobu
+
+ * trunk/include/liblas/capi/liblas.h,
+ trunk/include/liblas/detail/reader.hpp, trunk/python/liblas/core.py,
+ trunk/python/liblas/file.py, trunk/python/tests/SRS.txt,
+ trunk/src/detail/reader.cpp, trunk/src/las_c_api.cpp,
+ trunk/src/lassrs.cpp: start fixing LASReader/LASWriter SetSRS
+ methods
+
+2009-03-16 14:57 hobu
+
+ * trunk/test/unit/Makefile.am, trunk/test/unit/common.cpp,
+ trunk/test/unit/lasheader_test.cpp,
+ trunk/test/unit/laspoint_test.cpp, trunk/test/unit/lassrs_test.cpp:
+ making mloskot proud by adding to the tests
+
+2009-03-13 17:35 hobu
+
+ * trunk/configure.ac, trunk/include/liblas/capi/las_version.h,
+ trunk/nmake.opt, trunk/python/setup.py: increment versions to 1.2.0b2
+ in preparation for release
+
+2009-03-13 17:34 hobu
+
+ * trunk/apps/makefile.vc: link GEOTIFF_LIB to everything because we
+ do GTIFPrint when available now.
+
+2009-03-13 04:35 hobu
+
+ * trunk/configure.ac: try again on r1098
+
+2009-03-13 04:30 hobu
+
+ * trunk/configure.ac: try again on r1097
+
+2009-03-13 04:04 hobu
+
+ * trunk/configure.ac: don't overwrite GEOTIFF_INC in the GDAL source
+ tree case with the wrong stuff
+
+2009-03-12 19:53 hobu
+
+ * trunk/apps/las2las.c: default to writing 1.2 files for las2las, can
+ be overriden with --format
+
+2009-03-12 19:53 hobu
+
+ * trunk/apps/txt2las.c: clean up logic for RGB parsing, support
+ setting the format
+
+2009-03-12 19:40 hobu
+
+ * trunk/apps/txt2las.c: support setting RGB colors in txt2las #103
+
+2009-03-12 17:40 hobu
+
+ * trunk/src/laspoint.cpp: fix #104, copy the LASColor in copy and
+ assignment constructors of LASPoint
+
+2009-03-12 02:34 hobu
+
+ * trunk/configure.ac: attempt to fix #100 by pulling in libtiff's
+ header location
+
+2009-03-10 20:17 hobu
+
+ * trunk/apps/lascommon.c, trunk/include/liblas/lassrs.hpp,
+ trunk/src/las_c_api.cpp, trunk/src/lassrs.cpp: there is no such thing
+ as a TIFF*, clean up cases for when we don't have libgeotiff
+
+2009-03-09 18:07 hobu
+
+ * trunk/include/liblas/capi/liblas.h, trunk/include/liblas/lassrs.hpp,
+ trunk/src/las_c_api.cpp, trunk/src/lassrs.cpp: fix #102, add
+ LASSRS::SetGTIFF
+
+2009-03-08 20:11 hobu
+
+ * trunk/src/las_c_api.cpp: make sure to only free things that exist
+
+2009-03-08 20:10 hobu
+
+ * trunk/include/liblas/capi/liblas.h, trunk/src/las_c_api.cpp: fix
+ #101, LASString_Free
+
+2009-03-08 20:05 hobu
+
+ * trunk/include/liblas/capi/liblas.h: oops, missing LASSRS_Destroy
+
+2009-03-08 14:37 hobu
+
+ * trunk/apps/lascommon.c: silence const warning
+
+2009-03-08 13:34 hobu
+
+ * trunk/apps/lascommon.c: const qualifier for GTIF*
+
+2009-03-07 19:24 hobu
+
+ * trunk/src/lassrs.cpp, trunk/test/data/1.0_0.las,
+ trunk/test/data/1.0_1.las, trunk/test/data/1.1_0.las,
+ trunk/test/data/1.1_1.las, trunk/test/data/1.2_0.las,
+ trunk/test/data/1.2_1.las, trunk/test/data/1.2_2.las,
+ trunk/test/data/1.2_3.las: oops we were dumb with ASCII records
+
+2009-03-07 18:43 hobu
+
+ * trunk/apps/lascommon.c: use GTIFPrint if we can to print geotiff
+ info
+
+2009-03-07 18:39 hobu
+
+ * trunk/src/lassrs.cpp: return an empty string if we have nothing
+
+2009-03-04 19:36 hobu
+
+ * trunk/test/data/make_data.py: add number_of_points parameter
+
+2009-02-26 02:13 hobu
+
+ * trunk/configure.ac, trunk/include/liblas/capi/las_version.h,
+ trunk/nmake.opt, trunk/python/setup.py: increment versions in
+ preparation for 1.2.0b1
+
+2009-02-26 02:10 hobu
+
+ * trunk/include/Makefile.am: add 1.2-related headers to dist target
+
+2009-02-26 00:53 mloskot
+
+ * trunk/include/liblas/detail/reader12.hpp,
+ trunk/include/liblas/detail/writer12.hpp,
+ trunk/include/liblas/lascolor.hpp, trunk/src/detail/reader12.cpp,
+ trunk/src/detail/writer12.cpp: Little refactoring and cleanup, no
+ fixes applied.
+
+2009-02-26 00:36 mloskot
+
+ * trunk/include/liblas/lascolor.hpp, trunk/src/lascolor.cpp: Fixed LAS
+ version and copyright notice and updated doxygen doc in
+ lascolor.{hpp|cpp}
+
+2009-02-26 00:24 mloskot
+
+ * trunk/include/liblas/detail/reader12.hpp,
+ trunk/include/liblas/detail/writer12.hpp,
+ trunk/src/detail/reader12.cpp, trunk/src/detail/writer12.cpp: Fixed
+ LAS version and copyright notice in {reader12|writer12}.{hpp|cpp}
+
+2009-02-25 23:57 mloskot
+
+ * trunk/src/detail/reader.cpp, trunk/src/detail/writer.cpp,
+ trunk/src/lassrs.cpp: Use Zero as nullptr value instead of
+ 'almost-deprecated' NULL macro.
+
+2009-02-25 23:51 mloskot
+
+ * trunk/include/liblas/lassrs.hpp, trunk/src/lassrs.cpp: Little
+ refactoring of LASRSR class.
+
+2009-02-25 13:02 mloskot
+
+ * trunk/build/msvc90/liblas_lib/liblas_lib.vcproj,
+ trunk/src/detail/reader.cpp, trunk/src/detail/writer.cpp,
+ trunk/src/lasheader.cpp, trunk/src/lassrs.cpp: * Updated project
+ files for Visual C++ 2008.
+ * Cleaned up some warnings.
+
+2009-02-25 05:41 hobu
+
+ * trunk/src/lassrs.cpp: Fix #98, LASSRS not compiling without geotiff
+ or GDAL
+
+2009-02-25 05:34 hobu
+
+ * trunk/nmake.opt: support building against a GDAL source tree
+
+2009-02-25 05:33 hobu
+
+ * trunk/src/detail/writer.cpp, trunk/src/lassrs.cpp: clean up some
+ warnings, add a FIXME for projecting while writing PointRecord,
+ which needs to be descaled
+
+2009-02-24 04:33 hobu
+
+ * trunk/makefile.vc, trunk/src/makefile.vc: w00t! windows building.
+
+2009-02-23 23:52 hobu
+
+ * trunk/configure.ac: support building against a GDAL source tree
+
+2009-02-23 20:04 hobu
+
+ * trunk/configure.ac: add configure logic to use gdal source tree --
+ not quite done yet
+
+2009-02-21 03:11 hobu
+
+ * trunk/include/liblas/lassrs.hpp, trunk/python/tests/Header.txt,
+ trunk/python/tests/SRS.txt, trunk/src/las_c_api.cpp,
+ trunk/src/lasheader.cpp, trunk/src/lassrs.cpp: make ResetVLRs
+ private, clean up SetGeoreference
+
+2009-02-21 03:11 hobu
+
+ * trunk/test/data/1.0_0.las, trunk/test/data/1.0_1.las,
+ trunk/test/data/1.1_0.las, trunk/test/data/1.1_1.las,
+ trunk/test/data/1.2_0.las, trunk/test/data/1.2_1.las,
+ trunk/test/data/1.2_2.las, trunk/test/data/1.2_3.las,
+ trunk/test/data/make_data.py: latest version of test data with srs
+ and guids
+
+2009-02-21 03:06 hobu
+
+ * trunk/test/data/make_data.py: use a srs object now that
+ header.proj4 is gone
+
+2009-02-21 02:52 hobu
+
+ * trunk/python/liblas/header.py, trunk/python/tests/File.txt,
+ trunk/python/tests/Header.txt, trunk/python/tests/VLR.txt: fix up
+ tests
+
+2009-02-20 22:54 hobu
+
+ * trunk/src/lassrs.cpp: oops, we're broken right now
+
+2009-02-20 22:44 hobu
+
+ * trunk/apps/lascommon.c, trunk/include/liblas/capi/liblas.h,
+ trunk/include/liblas/lasheader.hpp, trunk/python/liblas/core.py,
+ trunk/python/liblas/header.py, trunk/python/tests/Header.txt,
+ trunk/src/detail/reader.cpp, trunk/src/las_c_api.cpp,
+ trunk/src/lasheader.cpp: remove LASHeader::[G|S]etProj4 #97
+
+2009-02-20 22:36 hobu
+
+ * trunk/python/tests/Header.txt, trunk/python/tests/VLR.txt: update
+ python tests to reflect current oprations
+
+2009-02-20 21:49 hobu
+
+ * trunk/include/liblas/capi/liblas.h, trunk/include/liblas/liblas.hpp,
+ trunk/python/liblas/__init__.py, trunk/python/liblas/core.py,
+ trunk/python/tests/VLR.txt, trunk/src/las_c_api.cpp: add the ability
+ to check for HAVE_GDAL and HAVE_LIBGEOTIFF at runtime
+
+2009-02-20 19:42 hobu
+
+ * trunk/src/lassrs.cpp: we should fetch the m_gtiff on Set* methods
+ to create it
+
+2009-02-20 19:14 hobu
+
+ * trunk/include/liblas/detail/reader.hpp,
+ trunk/include/liblas/detail/writer.hpp,
+ trunk/include/liblas/lasreader.hpp,
+ trunk/include/liblas/laswriter.hpp, trunk/src/detail/reader.cpp,
+ trunk/src/detail/writer.cpp, trunk/src/lasreader.cpp,
+ trunk/src/laswriter.cpp: add the ability to have Reader/Writer
+ project on the way out #93
+
+2009-02-20 05:43 hobu
+
+ * trunk/include/liblas/capi/liblas.h, trunk/python/liblas/__init__.py,
+ trunk/python/liblas/core.py, trunk/python/liblas/header.py,
+ trunk/python/liblas/srs.py, trunk/python/tests/Header.txt,
+ trunk/python/tests/SRS.txt, trunk/src/las_c_api.cpp: start on Python
+ API for SRS
+
+2009-02-20 04:19 hobu
+
+ * trunk/include/liblas/capi/liblas.h, trunk/include/liblas/lassrs.hpp,
+ trunk/src/las_c_api.cpp, trunk/src/lassrs.cpp: C API for LASSRS
+
+2009-02-19 19:34 hobu
+
+ * trunk/include/liblas/lassrs.hpp, trunk/src/Makefile.am,
+ trunk/src/gt_wkt_srs.cpp, trunk/src/lassrs.cpp: move the GDAL code
+ into its own file so it can easily be swapped in and out
+
+2009-02-19 19:20 hobu
+
+ * trunk/test/data/1.0_0.las, trunk/test/data/1.0_1.las,
+ trunk/test/data/1.1_0.las, trunk/test/data/1.1_1.las,
+ trunk/test/data/1.2_0.las, trunk/test/data/1.2_1.las,
+ trunk/test/data/1.2_2.las, trunk/test/data/1.2_3.las,
+ trunk/test/data/make_data.py: use correct SRS description and
+ points for the test data
+
+2009-02-19 19:08 hobu
+
+ * trunk/apps/lascommon.c: don't leak a LASColorH
+
+2009-02-19 19:04 hobu
+
+ * trunk/apps/lascommon.c: don't leak a LASColorH
+
+2009-02-19 19:02 hobu
+
+ * trunk/src/lassrs.cpp: don't leak, better error checking
+
+2009-02-19 05:27 hobu
+
+ * trunk/test/data/1.0_0.las, trunk/test/data/1.0_1.las,
+ trunk/test/data/1.1_0.las, trunk/test/data/1.1_1.las,
+ trunk/test/data/1.2_0.las, trunk/test/data/1.2_1.las,
+ trunk/test/data/1.2_2.las, trunk/test/data/1.2_3.las,
+ trunk/test/data/make_data.py: make files more rigorous
+
+2009-02-19 04:17 hobu
+
+ * trunk/src/lasheader.cpp, trunk/src/lassrs.cpp,
+ trunk/test/data/1.0_0.las, trunk/test/data/1.0_1.las,
+ trunk/test/data/1.1_0.las, trunk/test/data/1.1_1.las,
+ trunk/test/data/1.2_0.las, trunk/test/data/1.2_1.las,
+ trunk/test/data/1.2_2.las, trunk/test/data/1.2_3.las: fix up SRS
+ handling of ASCII keys. libgeotiff's simple keys stuff was at
+ fault
+
+2009-02-18 15:29 hobu
+
+ * trunk/src/detail/reader.cpp, trunk/src/lasheader.cpp,
+ trunk/src/lassrs.cpp, trunk/test/data/1.0_0.las,
+ trunk/test/data/1.0_1.las, trunk/test/data/1.1_0.las,
+ trunk/test/data/1.1_1.las, trunk/test/data/1.2_0.las,
+ trunk/test/data/1.2_1.las, trunk/test/data/1.2_2.las,
+ trunk/test/data/1.2_3.las, trunk/test/data/make_data.py: a bunch of
+ debugging lint to fix not supporting geotiff ASCII records
+
+2009-02-17 22:35 hobu
+
+ * trunk/test/data/1.0_0.las, trunk/test/data/1.0_1.las,
+ trunk/test/data/1.1_0.las, trunk/test/data/1.1_1.las,
+ trunk/test/data/1.2_0.las, trunk/test/data/1.2_1.las,
+ trunk/test/data/1.2_2.las, trunk/test/data/1.2_3.las,
+ trunk/test/data/make_data.py: add test data array
+
+2009-02-17 21:00 hobu
+
+ * trunk/python/tests/Header.txt: update test for 1.2 being default
+
+2009-02-17 21:00 hobu
+
+ * trunk/src/lassrs.cpp: support libgeotiff-only setting of proj4
+
+2009-02-17 20:26 hobu
+
+ * trunk/configure.ac: apply Doug's patch for #66
+
+2009-02-17 19:19 hobu
+
+ * trunk/include/liblas/lassrs.hpp, trunk/src/lassrs.cpp: allow building
+ without libgeotiff or GDAL
+
+2009-02-17 18:55 hobu
+
+ * trunk/test/unit/common.cpp, trunk/test/unit/laswriter_test.cpp:
+ update tests to reflect that 1.2 is now the default version
+
+2009-02-17 18:48 hobu
+
+ * trunk/test/data/make_data.py: add make_data script
+
+2009-02-17 17:57 hobu
+
+ * trunk/include/liblas/lassrs.hpp: docs for LASSRS
+
+2009-02-17 17:56 hobu
+
+ * trunk/src/lassrs.cpp: remember to clear the vlrs when doing a Reset
+
+2009-02-17 07:02 hobu
+
+ * trunk/python/liblas/color.py, trunk/python/liblas/header.py,
+ trunk/src/lasheader.cpp: default to using 1.2 for LASHeader and fix
+ SetVersionMinor interaction with the data offset that likely
+ prevented us from ever correctly writing 1.0 data
+
+2009-02-17 05:21 hobu
+
+ * trunk/include/liblas/lassrs.hpp: don't include private geotiff
+ stuff
+
+2009-02-17 04:49 hobu
+
+ * trunk/CMakeLists.txt, trunk/src/CMakeLists.txt: update cmake a bit.
+ We need to be able to set GDAL though
+
+2009-02-17 04:13 hobu
+
+ * trunk/python/tests/VLR.txt, trunk/src/detail/reader.cpp,
+ trunk/src/lasheader.cpp, trunk/src/lassrs.cpp: fix up so tests can
+ pass
+
+2009-02-17 02:51 hobu
+
+ * trunk/test/unit/Makefile.am: add geotiff and gdal info to test
+ automake stuff
+
+2009-02-17 02:40 hobu
+
+ * trunk/configure.ac: fix #96, check for ST_Create in libgeotiff
+ instead of XTIFFClientOpen
+
+2009-02-17 02:33 hobu
+
+ * trunk/include/Makefile.am: fix #95, nobase option for include files
+
+2009-02-17 02:32 hobu
+
+ * trunk/configure.ac, trunk/include/liblas/capi/las_version.h,
+ trunk/nmake.opt, trunk/python/setup.py: increment versions to 1.2
+ which is where we will be at the next release
+
+2009-02-16 20:34 hobu
+
+ * trunk/include/liblas/lassrs.hpp, trunk/src/lasheader.cpp,
+ trunk/src/lassrs.cpp: oh, it seems to work now :)
+
+2009-02-16 18:50 hobu
+
+ * trunk/include/liblas/lasheader.hpp, trunk/include/liblas/lassrs.hpp,
+ trunk/src/lasheader.cpp, trunk/src/lassrs.cpp: more updates to
+ LASSRS. Still broken, but improving :)
+
+2009-02-16 05:40 hobu
+
+ * trunk/include/liblas/detail/utility.hpp,
+ trunk/include/liblas/lassrs.hpp, trunk/src/detail/reader.cpp,
+ trunk/src/lassrs.cpp: some improvement on srs stuff
+
+2009-02-16 04:19 hobu
+
+ * trunk/include/liblas/detail/utility.hpp,
+ trunk/include/liblas/lasheader.hpp, trunk/include/liblas/lassrs.hpp,
+ trunk/src/detail/reader.cpp, trunk/src/lasheader.cpp,
+ trunk/src/lassrs.cpp: more SRS stuff, quite broken right now unless
+ you link GDAL in
+
+2009-02-14 03:07 hobu
+
+ * trunk/Makefile.am, trunk/apps/Makefile.am, trunk/include/Makefile.am,
+ trunk/include/liblas/lassrs.hpp: more LASSRS stuff
+
+2009-02-14 02:47 hobu
+
+ * trunk/src/lassrs.cpp: more LASSRS stuff, pull in GDAL's code
+
+2009-02-13 03:12 hobu
+
+ * trunk/include/liblas/detail/fwd.hpp,
+ trunk/include/liblas/lasheader.hpp, trunk/include/liblas/lassrs.hpp,
+ trunk/src/Makefile.am, trunk/src/lassrs.cpp: LASSRS skeleton
+
+2009-02-12 04:23 hobu
+
+ * trunk/src/Makefile.am: GDAL define support for src/
+
+2009-02-11 19:31 hobu
+
+ * trunk/include/liblas/detail/reader.hpp,
+ trunk/include/liblas/detail/reader10.hpp,
+ trunk/include/liblas/detail/reader11.hpp,
+ trunk/include/liblas/detail/reader12.hpp,
+ trunk/include/liblas/detail/writer.hpp,
+ trunk/include/liblas/detail/writer10.hpp,
+ trunk/include/liblas/detail/writer11.hpp,
+ trunk/include/liblas/detail/writer12.hpp,
+ trunk/src/detail/reader.cpp, trunk/src/detail/reader10.cpp,
+ trunk/src/detail/reader11.cpp, trunk/src/detail/reader12.cpp,
+ trunk/src/detail/writer.cpp, trunk/src/detail/writer10.cpp,
+ trunk/src/detail/writer11.cpp, trunk/src/detail/writer12.cpp:
+ reorganize reader and writer Impl to put redundant VLR-related
+ operations in the Reader:: and Writer:: abstract classes instead
+ of each Impl
+
+2009-02-11 19:18 hobu
+
+ * trunk/apps/lascommon.c, trunk/include/liblas/capi/liblas.h: report
+ min/max colors as part of a summary
+
+2009-02-11 15:55 hobu
+
+ * trunk/include/liblas/detail/reader.hpp,
+ trunk/include/liblas/detail/reader10.hpp,
+ trunk/include/liblas/detail/reader11.hpp,
+ trunk/include/liblas/detail/reader12.hpp,
+ trunk/include/liblas/detail/writer.hpp, trunk/src/detail/reader.cpp,
+ trunk/src/detail/reader10.cpp, trunk/src/detail/reader11.cpp,
+ trunk/src/detail/reader12.cpp: remove redundant GetStream and move
+ istream into abstract Reader:: class
+
+2009-02-11 15:49 hobu
+
+ * trunk/include/liblas/detail/writer.hpp,
+ trunk/include/liblas/detail/writer10.hpp,
+ trunk/include/liblas/detail/writer11.hpp,
+ trunk/include/liblas/detail/writer12.hpp,
+ trunk/src/detail/writer.cpp, trunk/src/detail/writer10.cpp,
+ trunk/src/detail/writer11.cpp, trunk/src/detail/writer12.cpp: remove
+ redundant GetStream and move ostream into abstract Writer:: class
+
+2009-02-11 04:34 hobu
+
+ * trunk/apps/las2las.c: allow las2las to write 1.2 format
+
+2009-02-11 04:33 hobu
+
+ * trunk/src/detail/writer.cpp, trunk/src/detail/writer12.cpp,
+ trunk/src/laswriter.cpp: actually support writing 1.2 now that
+ coding is done
+
+2009-02-11 04:24 hobu
+
+ * trunk/include/liblas/detail/writer.hpp, trunk/src/detail/writer.cpp,
+ trunk/src/detail/writer10.cpp, trunk/src/detail/writer11.cpp,
+ trunk/src/detail/writer12.cpp: we have to descale the points as we
+ write them
+
+2009-02-11 03:56 hobu
+
+ * trunk/include/liblas/detail/writer.hpp,
+ trunk/include/liblas/detail/writer10.hpp,
+ trunk/include/liblas/detail/writer11.hpp,
+ trunk/include/liblas/detail/writer12.hpp,
+ trunk/src/detail/reader12.cpp, trunk/src/detail/writer.cpp,
+ trunk/src/detail/writer10.cpp, trunk/src/detail/writer11.cpp,
+ trunk/src/detail/writer12.cpp, trunk/src/laswriter.cpp: 1.2 LASWriter
+ support
+
+2009-02-10 20:46 hobu
+
+ * trunk/include/liblas/capi/liblas.h, trunk/python/liblas/color.py,
+ trunk/python/liblas/core.py, trunk/python/liblas/point.py,
+ trunk/python/tests/Point.txt, trunk/src/las_c_api.cpp: color
+ implementation for C API and Python API
+
+2009-02-10 20:15 hobu
+
+ * trunk/include/liblas/detail/fwd.hpp,
+ trunk/include/liblas/detail/utility.hpp,
+ trunk/include/liblas/lascolor.hpp, trunk/include/liblas/laspoint.hpp,
+ trunk/include/liblas/lasreader.hpp, trunk/src/Makefile.am,
+ trunk/src/detail/reader10.cpp, trunk/src/detail/reader11.cpp,
+ trunk/src/detail/reader12.cpp, trunk/src/lascolor.cpp,
+ trunk/src/laspoint.cpp: rework to use public LASColor class, 1.2
+ reading now works
+
+2009-02-10 16:26 hobu
+
+ * trunk/src/detail/reader10.cpp, trunk/src/detail/reader12.cpp,
+ trunk/src/lasreader.cpp: clean up commented out code
+
+2009-02-10 15:54 hobu
+
+ * trunk/include/liblas/detail/reader.hpp: make FillPoint protected
+ instead of public
+
+2009-02-10 03:34 hobu
+
+ * trunk/include/liblas/detail/fwd.hpp,
+ trunk/include/liblas/detail/reader.hpp,
+ trunk/include/liblas/detail/reader10.hpp,
+ trunk/include/liblas/detail/reader11.hpp,
+ trunk/include/liblas/detail/reader12.hpp,
+ trunk/include/liblas/detail/utility.hpp,
+ trunk/include/liblas/laspoint.hpp,
+ trunk/include/liblas/lasreader.hpp, trunk/python/tests/File.txt,
+ trunk/src/detail/reader.cpp, trunk/src/detail/reader10.cpp,
+ trunk/src/detail/reader11.cpp, trunk/src/detail/reader12.cpp,
+ trunk/src/laspoint.cpp, trunk/src/lasreader.cpp: reorganize
+ LASReader. Tests (cppUnit and Python) all still pass
+
+2009-02-09 01:47 hobu
+
+ * trunk/include/liblas/detail/reader12.hpp,
+ trunk/include/liblas/detail/writer12.hpp,
+ trunk/include/liblas/lasheader.hpp, trunk/include/liblas/liblas.hpp,
+ trunk/src/Makefile.am, trunk/src/detail/reader.cpp,
+ trunk/src/detail/reader11.cpp, trunk/src/detail/reader12.cpp,
+ trunk/src/detail/writer12.cpp, trunk/src/lasheader.cpp,
+ trunk/src/laspoint.cpp, trunk/src/lasreader.cpp: start in on 1.2 read
+ support. Tests pass, but 1.2 reading is not working yet
+
+2009-02-06 03:01 hobu
+
+ * trunk/python/liblas/__init__.py, trunk/python/liblas/core.py: re-fix
+ #89 liblas.version
+
+2009-02-05 02:59 hobu
+
+ * trunk/include/liblas/laspoint.hpp: add Red, Green, and Blue to
+ LASPoint for 1.2 support #91
+
+2009-02-05 02:48 hobu
+
+ * trunk/include/liblas/lasheader.hpp,
+ trunk/test/unit/lasheader_test.cpp: increment max VersionMinor to 2
+ for 1.2 support #91
+
+2009-02-05 02:43 hobu
+
+ * trunk/include/liblas/lasheader.hpp: increment the point formats and
+ point sizes for LAS 1.2 #91
+
+2009-02-04 03:31 hobu
+
+ * trunk/README: add a link to the 1.2 specification
+
+2009-02-04 03:26 hobu
+
+ * trunk/build/xcode, trunk/build/xcode/xcode.xcodeproj/hobu.mode1v3,
+ trunk/build/xcode/xcode.xcodeproj/hobu.pbxuser,
+ trunk/build/xcode/xcode.xcodeproj/project.pbxproj: xcode projects
+
+2009-02-03 16:08 mloskot
+
+ * trunk/include/liblas/laspoint.hpp,
+ trunk/include/liblas/lasreader.hpp: * Documented libLAS-specific
+ elements of LASPoint class (no need to repeat LAS specification).
+
+2009-02-03 15:40 mloskot
+
+ * trunk/build/msvc90/liblas.sln, trunk/include/liblas/laspoint.hpp,
+ trunk/src/detail/reader11.cpp, trunk/test/unit/laswriter_test.cpp: *
+ Updated LASWriter test with checks of get/set methods for Point
+ Source ID attribute.
+ * Removed unused from laspoint.hpp.
+ * Include missing in reader11.cpp, std::cerr object is
+ used.
+ * build/msvc90 project updated.
+
+2009-02-03 15:21 hobu
+
+ * trunk/include/liblas/lasreader.hpp, trunk/src/lasreader.cpp: fix up
+ creation of a local m_pimpl that was masking the LASReader's
+
+2009-02-03 14:59 mloskot
+
+ * trunk/include/liblas/detail/utility.hpp,
+ trunk/include/liblas/laspoint.hpp, trunk/src/laspoint.cpp,
+ trunk/src/lasreader.cpp, trunk/src/laswriter.cpp,
+ trunk/test/unit/common.cpp: Fixed #87 - implemented support for
+ reading/writing "Point Source ID" - attribute of point record
+ defined in LAS 1.0.
+ The new LASPoint accessors operating on Point Source ID play dual
+ role, for LAS 1.0 they get/set User Bit Field but for LAS 1.1 -
+ Point Source ID.
+
+2009-02-03 14:50 mloskot
+
+ * trunk/test/sample/utility.hpp: Added print_point() function to
+ sample/utility.hpp header.
+
+2009-02-03 14:48 mloskot
+
+ * trunk/build/msvc90: Updated svn:ignore property for build/msvc90.
+
+2009-02-03 05:32 hobu
+
+ * trunk/include/liblas/lasreader.hpp, trunk/src/lasreader.cpp: an
+ attempt at a Reset() and IsEOF() functions #85
+
+2009-01-01 02:56 hobu
+
+ * trunk/build/xcode, trunk/build/xcode/xcode.xcodeproj,
+ trunk/build/xcode/xcode.xcodeproj/hobu.mode1v3,
+ trunk/build/xcode/xcode.xcodeproj/hobu.pbxuser,
+ trunk/build/xcode/xcode.xcodeproj/project.pbxproj: add xcode
+ project
+
+2008-12-31 04:50 hobu
+
+ * trunk/apps: ignore liblas-config
+
+2008-12-26 05:39 hobu
+
+ * trunk/apps/las2txt.c: add index parse option to las2txt #86
+
+2008-12-26 05:31 hobu
+
+ * trunk/test/unit/lasreader_iterator_test.cpp: fix test to use
+ qualified type names
+
+2008-12-26 05:21 hobu
+
+ * trunk/configure.ac, trunk/include/liblas/capi/las_version.h,
+ trunk/python/setup.py: bump minor version so we're now 1.1 in trtrunk
+
+2008-12-26 05:21 hobu
+
+ * trunk/nmake.opt: change to *nix line ending mode
+
+2008-12-26 05:16 hobu
+
+ * trunk/apps/Makefile.am, trunk/apps/liblas-config.in,
+ trunk/configure.ac: add a liblas-config script #88
+
+2008-12-26 04:00 hobu
+
+ * trunk/python/liblas/core.py: no lint
+
+2008-12-26 03:59 hobu
+
+ * trunk/python/liblas/core.py: make sure to free heap allocated
+ strings that were given to us by the C API
+
+2008-12-25 05:38 hobu
+
+ * trunk/python/liblas/core.py: fix #89, broken liblas.version
+
+2008-12-15 15:12 mloskot
+
+ * trunk/src/detail/reader10.cpp, trunk/src/detail/reader11.cpp: Unified
+ type of count value passed to ST_SetKey/ST_GetKey of libgeotiff
+ API
+
+2008-12-10 16:05 mloskot
+
+ * trunk/build/msvc90, trunk/build/msvc90/clean.bat,
+ trunk/build/msvc90/las2las,
+ trunk/build/msvc90/las2las/las2las.vcproj,
+ trunk/build/msvc90/las2ogr,
+ trunk/build/msvc90/las2ogr/las2ogr.vcproj,
+ trunk/build/msvc90/las2ogr/las2ogr.vsprops,
+ trunk/build/msvc90/las2txt,
+ trunk/build/msvc90/las2txt/las2txt.vcproj,
+ trunk/build/msvc90/lasdiff,
+ trunk/build/msvc90/lasdiff/lasdiff.vcproj,
+ trunk/build/msvc90/lasinfo,
+ trunk/build/msvc90/lasinfo/lasinfo.vcproj,
+ trunk/build/msvc90/lasmerge,
+ trunk/build/msvc90/lasmerge/lasmerge.vcproj,
+ trunk/build/msvc90/liblas.sln, trunk/build/msvc90/liblas.vsprops,
+ trunk/build/msvc90/liblas_c_dll,
+ trunk/build/msvc90/liblas_c_dll/liblas_c_dll.vcproj,
+ trunk/build/msvc90/liblas_dll,
+ trunk/build/msvc90/liblas_dll/liblas_dll.vcproj,
+ trunk/build/msvc90/liblas_lib,
+ trunk/build/msvc90/liblas_lib/liblas_lib.vcproj,
+ trunk/build/msvc90/liblas_test,
+ trunk/build/msvc90/liblas_test/liblas_test.vcproj,
+ trunk/build/msvc90/txt2las,
+ trunk/build/msvc90/txt2las/txt2las.vcproj: Added solution &
+ projects for Visual Studio 9.0
+
+2008-11-13 22:02 hobu
+
+ * trunk/README: dummy
+
+2008-11-13 21:59 hobu
+
+ * trunk/README: dummy
+
+2008-11-13 21:58 hobu
+
+ * trunk/README: dummy
+
+2008-11-13 21:50 hobu
+
+ * trunk/README: point to new maillist
+
+2008-11-09 12:41 mloskot
+
+ * trunk/test/unit/lasreader_iterator_test.cpp:
+ lasreader_iterator_test.cpp: refactored to remove redundant code
+ and reuse common test group data.
+
+2008-11-06 16:18 mloskot
+
+ * trunk/test/unit/common.hpp,
+ trunk/test/unit/lasreader_iterator_test.cpp:
+ lasreader_iterator_test.cpp: added test cases for number of
+ standard algorithms: copy, count, equal, find, find_if, for_each.
+
+2008-11-06 15:51 mloskot
+
+ * trunk/test/unit/common.hpp: test/unit/common.hpp: Added is_xy
+ predicated and bbox_calculator functor, both used in unit tests.
+
+2008-11-06 15:48 mloskot
+
+ * trunk/src/laspoint.cpp: liblas::LASPoint: fixed incorrect
+ logical-or where logical-and is expected (Ticket #84).
+
+2008-11-06 15:42 mloskot
+
+ * trunk/include/liblas/detail/utility.hpp: liblas::detail::Point:
+ improved equal-to operation for Point class.
+
+2008-11-05 20:41 mloskot
+
+ * trunk/build/msvc80/liblas_test/liblas_test.vcproj: Updated Visual
+ C++ project file liblas_test.vcproj.
+
+2008-11-05 20:38 mloskot
+
+ * trunk/test/unit/CMakeLists.txt, trunk/test/unit/Makefile.am,
+ trunk/test/unit/lasreader_iterator_test.cpp: Added unit test of
+ liblas::lasreader_iterator class.
+
+2008-11-05 20:33 mloskot
+
+ * trunk/test/unit/common.cpp, trunk/test/unit/common.hpp,
+ trunk/test/unit/lasreader_test.cpp: Move common test routines from
+ lasreader_test.cpp to common.hpp|.cpp
+
+2008-11-05 19:17 mloskot
+
+ * trunk/README: REAME: reordered utilities
+
+2008-10-30 08:35 mloskot
+
+ * trunk/include/liblas/capi/liblas.h,
+ trunk/include/liblas/lasheader.hpp,
+ trunk/include/liblas/laspoint.hpp,
+ trunk/include/liblas/lasreader.hpp,
+ trunk/include/liblas/laswriter.hpp, trunk/src/lasreader.cpp,
+ trunk/src/laswriter.cpp: Expose TODO entries in .c and .cpp files
+ from doxygen comments in headers, to not to forget about them.
+
+2008-10-29 11:15 mloskot
+
+ * trunk/doc/las2ogr.txt: doc/las2ogr.txt: Updated svn:mine-type,
+ svn:eol-style and svn:keywords.
+
+2008-10-29 11:12 mloskot
+
+ * trunk/doc/las2ogr.txt: Set svn:keywords on las2ogr.txt
+
+2008-10-29 11:09 mloskot
+
+ * trunk/README, trunk/doc/las2ogr.txt: Added doc/las2ogr.txt file.
+ Linked las2ogr.txt from main README.
+
+2008-10-29 10:54 mloskot
+
+ * trunk/apps/makefile.vc: apps/makefile.vc: remove .ilk and .pdb
+ files from clean target.
+
+2008-10-14 02:18 hobu
+
+ * trunk/python/liblas/point.py, trunk/python/tests/File.txt,
+ trunk/python/tests/Header.txt, trunk/python/tests/Point.txt: more
+ fixups related to #83.. ensure we use GMT and fix microseconds
+ overflow
+
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/CMakeLists.txt work/libLAS-1.2.1/CMakeLists.txt
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/CMakeLists.txt 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/CMakeLists.txt 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,249 @@
+# $Id$
+#
+# Top-level CMakeList.txt for libLAS
+#
+# ************************************************************************
+# WARNING (mloskot): A PROTOTYPE - WORK IN PROGRESS - FEEL FREE TO IMPROVE
+# ************************************************************************
+#
+PROJECT( libLAS )
+
+SET( LIBLAS_LIB_NAME liblas )
+SET( LIBLAS_C_LIB_NAME liblas_c )
+
+#############################################################
+# CMake settings
+
+CMAKE_MINIMUM_REQUIRED( VERSION 2.4.0 )
+
+SET( CMAKE_COLOR_MAKEFILE ON )
+
+# set path to additional CMake modules
+SET(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/build/cmake ${CMAKE_MODULE_PATH})
+
+
+#############################################################
+# Building general settings
+
+IF(NOT CMAKE_BUILD_TYPE)
+ SET(CMAKE_BUILD_TYPE Debug CACHE STRING
+ "Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel."
+ FORCE)
+ENDIF(NOT CMAKE_BUILD_TYPE)
+
+# Enable CTest to run libLas Unit Test Suite
+#ENABLE_TESTING()
+
+#############################################################
+# Platform and compiler specific settings
+
+IF (WIN32)
+
+ ADD_DEFINITIONS( /W4 )
+
+ IF (MSVC)
+ IF (MSVC80)
+ ADD_DEFINITIONS( /D_CRT_SECURE_NO_WARNINGS )
+ ADD_DEFINITIONS( /D_CRT_NONSTDC_NO_WARNING )
+ ENDIF (MSVC80)
+ ENDIF (MSVC)
+ELSE (WIN32)
+
+ IF (CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX)
+
+ ADD_DEFINITIONS( -Wall -Wno-long-long -pedantic -ansi )
+
+ IF (CMAKE_COMPILER_IS_GNUCXX)
+ SET( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++98" )
+ ENDIF (CMAKE_COMPILER_IS_GNUCXX)
+
+ ENDIF (CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX)
+ENDIF (WIN32)
+
+#############################################################
+# Search for dependencies
+
+# optinal GeoTIFF support
+FIND_PACKAGE(GeoTIFF)
+
+IF (GEOTIFF_FOUND)
+ #TODO: Use to generate config.h
+ #SET (HAVE_LIBGEOTIFF TRUE)
+ ADD_DEFINITIONS( -D HAVE_LIBGEOTIFF )
+ENDIF (GEOTIFF_FOUND)
+
+# optinal GeoTIFF support
+FIND_PACKAGE(GDAL)
+
+IF (GDAL_FOUND)
+ #TODO: Use to generate config.h
+ #SET (HAVE_GDAL TRUE)
+ ADD_DEFINITIONS( -D HAVE_GDAL )
+ENDIF (GDAL_FOUND)
+
+#############################################################
+# List of directories to process
+
+SUBDIRS(
+ include
+ src
+ apps
+ test
+)
+
+
+
+
+
+
+
+########## THE HUGE BLOCK BELOW IS TO LEARN CMAKE AND WILL BE REMOVED ###############
+# ------------------------- Begin Generic CMake Variable Logging ------------------
+MESSAGE( STATUS "=============== BEGIN TEST VARIABLES LOGGING OUTPUT =============" )
+
+# if you are building in-source, this is the same as CMAKE_SOURCE_DIR, otherwise
+# this is the top level directory of your build tree
+MESSAGE( STATUS "CMAKE_BINARY_DIR: " ${CMAKE_BINARY_DIR} )
+
+# if you are building in-source, this is the same as CMAKE_CURRENT_SOURCE_DIR, otherwise this
+# is the directory where the compiled or generated files from the current CMakeLists.txt will go to
+MESSAGE( STATUS "CMAKE_CURRENT_BINARY_DIR: " ${CMAKE_CURRENT_BINARY_DIR} )
+
+# this is the directory, from which cmake was started, i.e. the top level source directory
+MESSAGE( STATUS "CMAKE_SOURCE_DIR: " ${CMAKE_SOURCE_DIR} )
+
+# this is the directory where the currently processed CMakeLists.txt is located in
+MESSAGE( STATUS "CMAKE_CURRENT_SOURCE_DIR: " ${CMAKE_CURRENT_SOURCE_DIR} )
+
+# contains the full path to the top level directory of your build tree
+MESSAGE( STATUS "PROJECT_BINARY_DIR: " ${PROJECT_BINARY_DIR} )
+
+# contains the full path to the root of your project source directory,
+# i.e. to the nearest directory where CMakeLists.txt contains the PROJECT() command
+MESSAGE( STATUS "PROJECT_SOURCE_DIR: " ${PROJECT_SOURCE_DIR} )
+
+# set this variable to specify a common place where CMake should put all executable files
+# (instead of CMAKE_CURRENT_BINARY_DIR)
+MESSAGE( STATUS "EXECUTABLE_OUTPUT_PATH: " ${EXECUTABLE_OUTPUT_PATH} )
+
+# set this variable to specify a common place where CMake should put all libraries
+# (instead of CMAKE_CURRENT_BINARY_DIR)
+MESSAGE( STATUS "LIBRARY_OUTPUT_PATH: " ${LIBRARY_OUTPUT_PATH} )
+
+# tell CMake to search first in directories listed in CMAKE_MODULE_PATH
+# when you use FIND_PACKAGE() or INCLUDE()
+MESSAGE( STATUS "CMAKE_MODULE_PATH: " ${CMAKE_MODULE_PATH} )
+
+# this is the complete path of the cmake which runs currently (e.g. /usr/local/bin/cmake)
+MESSAGE( STATUS "CMAKE_COMMAND: " ${CMAKE_COMMAND} )
+
+# this is the CMake installation directory
+MESSAGE( STATUS "CMAKE_ROOT: " ${CMAKE_ROOT} )
+
+# this is the filename including the complete path of the file where this variable is used.
+MESSAGE( STATUS "CMAKE_CURRENT_LIST_FILE: " ${CMAKE_CURRENT_LIST_FILE} )
+
+# this is linenumber where the variable is used
+MESSAGE( STATUS "CMAKE_CURRENT_LIST_LINE: " ${CMAKE_CURRENT_LIST_LINE} )
+
+# this is used when searching for include files e.g. using the FIND_PATH() command.
+MESSAGE( STATUS "CMAKE_INCLUDE_PATH: " ${CMAKE_INCLUDE_PATH} )
+
+# this is used when searching for libraries e.g. using the FIND_LIBRARY() command.
+MESSAGE( STATUS "CMAKE_LIBRARY_PATH: " ${CMAKE_LIBRARY_PATH} )
+
+# the complete system name, e.g. "Linux-2.4.22", "FreeBSD-5.4-RELEASE" or "Windows 5.1"
+MESSAGE( STATUS "CMAKE_SYSTEM: " ${CMAKE_SYSTEM} )
+
+# the short system name, e.g. "Linux", "FreeBSD" or "Windows"
+MESSAGE( STATUS "CMAKE_SYSTEM_NAME: " ${CMAKE_SYSTEM_NAME} )
+
+# only the version part of CMAKE_SYSTEM
+MESSAGE( STATUS "CMAKE_SYSTEM_VERSION: " ${CMAKE_SYSTEM_VERSION} )
+
+# the processor name (e.g. "Intel(R) Pentium(R) M processor 2.00GHz")
+MESSAGE( STATUS "CMAKE_SYSTEM_PROCESSOR: " ${CMAKE_SYSTEM_PROCESSOR} )
+
+# is TRUE on all UNIX-like OS's, including Apple OS X and CygWin
+MESSAGE( STATUS "UNIX: " ${UNIX} )
+
+# is TRUE on Windows, including CygWin
+MESSAGE( STATUS "WIN32: " ${WIN32} )
+
+# is TRUE on Apple OS X
+MESSAGE( STATUS "APPLE: " ${APPLE} )
+
+# is TRUE when using the MinGW compiler in Windows
+MESSAGE( STATUS "MINGW: " ${MINGW} )
+
+# is TRUE on Windows when using the CygWin version of cmake
+MESSAGE( STATUS "CYGWIN: " ${CYGWIN} )
+
+# is TRUE on Windows when using a Borland compiler
+MESSAGE( STATUS "BORLAND: " ${BORLAND} )
+
+# Microsoft compiler
+MESSAGE( STATUS "MSVC: " ${MSVC} )
+MESSAGE( STATUS "MSVC_IDE: " ${MSVC_IDE} )
+MESSAGE( STATUS "MSVC60: " ${MSVC60} )
+MESSAGE( STATUS "MSVC70: " ${MSVC70} )
+MESSAGE( STATUS "MSVC71: " ${MSVC71} )
+MESSAGE( STATUS "MSVC80: " ${MSVC80} )
+MESSAGE( STATUS "CMAKE_COMPILER_2005: " ${CMAKE_COMPILER_2005} )
+
+# set this to true if you don't want to rebuild the object files if the rules have changed,
+# but not the actual source files or headers (e.g. if you changed the some compiler switches)
+MESSAGE( STATUS "CMAKE_SKIP_RULE_DEPENDENCY: " ${CMAKE_SKIP_RULE_DEPENDENCY} )
+
+# since CMake 2.1 the install rule depends on all, i.e. everything will be built before installing.
+# If you don't like this, set this one to true.
+MESSAGE( STATUS "CMAKE_SKIP_INSTALL_ALL_DEPENDENCY: " ${CMAKE_SKIP_INSTALL_ALL_DEPENDENCY} )
+
+# If set, runtime paths are not added when using shared libraries. Default it is set to OFF
+MESSAGE( STATUS "CMAKE_SKIP_RPATH: " ${CMAKE_SKIP_RPATH} )
+
+# set this to true if you are using makefiles and want to see the full compile and link
+# commands instead of only the shortened ones
+MESSAGE( STATUS "CMAKE_VERBOSE_MAKEFILE: " ${CMAKE_VERBOSE_MAKEFILE} )
+
+# this will cause CMake to not put in the rules that re-run CMake. This might be useful if
+# you want to use the generated build files on another machine.
+MESSAGE( STATUS "CMAKE_SUPPRESS_REGENERATION: " ${CMAKE_SUPPRESS_REGENERATION} )
+
+# Choose the type of build. Example: SET(CMAKE_BUILD_TYPE Debug)
+MESSAGE( STATUS "CMAKE_BUILD_TYPE: " ${CMAKE_BUILD_TYPE} )
+
+# A simple way to get switches to the compiler is to use ADD_DEFINITIONS().
+# But there are also two variables exactly for this purpose:
+
+# the compiler flags for compiling C sources
+MESSAGE( STATUS "CMAKE_C_FLAGS: " ${CMAKE_C_FLAGS} )
+MESSAGE( STATUS "CMAKE_C_FLAGS_RELEASE: " ${CMAKE_C_FLAGS_RELEASE} )
+MESSAGE( STATUS "CMAKE_C_FLAGS_DEBUG: " ${CMAKE_C_FLAGS_DEBUG} )
+
+# the compiler flags for compiling C++ sources
+MESSAGE( STATUS "CMAKE_CXX_FLAGS: " ${CMAKE_CXX_FLAGS} )
+MESSAGE( STATUS "CMAKE_CXX_FLAGS_RELEASE: " ${CMAKE_CXX_FLAGS_RELEASE} )
+MESSAGE( STATUS "CMAKE_CXX_FLAGS_DEBUG: " ${CMAKE_CXX_FLAGS_DEBUG} )
+
+# if this is set to ON, then all libraries are built as shared libraries by default.
+MESSAGE( STATUS "BUILD_SHARED_LIBS: " ${BUILD_SHARED_LIBS} )
+
+# the compiler used for C files
+MESSAGE( STATUS "CMAKE_C_COMPILER: " ${CMAKE_C_COMPILER} )
+
+# the compiler used for C++ files
+MESSAGE( STATUS "CMAKE_CXX_COMPILER: " ${CMAKE_CXX_COMPILER} )
+
+# if the compiler is a variant of gcc, this should be set to 1
+MESSAGE( STATUS "CMAKE_COMPILER_IS_GNUCC: " ${CMAKE_COMPILER_IS_GNUCC} )
+
+# if the compiler is a variant of g++, this should be set to 1
+MESSAGE( STATUS "CMAKE_COMPILER_IS_GNUCXX : " ${CMAKE_COMPILER_IS_GNUCXX} )
+
+# the tools for creating libraries
+MESSAGE( STATUS "CMAKE_AR: " ${CMAKE_AR} )
+MESSAGE( STATUS "CMAKE_RANLIB: " ${CMAKE_RANLIB} )
+
+MESSAGE( STATUS "=============== END TEST VARIABLES LOGGING OUTPUT ===============" )
+# ------------------------- End of Generic CMake Variable Logging ------------------
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/configure.ac work/libLAS-1.2.1/configure.ac
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/configure.ac 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/configure.ac 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,288 @@
+dnl $Id$
+dnl
+dnl This is main autoconf bootstrap script of libLAS project.
+dnl
+m4_define([liblas_version_major], [1])
+m4_define([liblas_version_minor], [2])
+m4_define([liblas_version_micro], [1])
+m4_define([liblas_version],
+ [liblas_version_major.liblas_version_minor.liblas_version_micro])
+
+AC_PREREQ([2.59])
+AC_INIT([las], [liblas_version], [hobu.inc@gmail.com],[liblas-src])
+AC_CANONICAL_BUILD
+
+RELEASE_VERSION=liblas_version
+AC_SUBST([RELEASE_VERSION])
+
+dnl #########################################################################
+dnl Default compilation flags
+dnl #########################################################################
+
+m4_define([debug_default],[no])
+
+CFLAGS="-Wall -Wno-long-long -pedantic $CFLAGS"
+CXXFLAGS="-Wall -Wno-long-long -pedantic -std=c++98 $CXXFLAGS"
+
+dnl #########################################################################
+dnl Checks for programs.
+dnl #########################################################################
+
+AM_INIT_AUTOMAKE([dist-bzip2])
+AC_PROG_CXX
+AC_PROG_CXXCPP
+AC_PROG_INSTALL
+AC_PROG_LN_S
+AC_PROG_MAKE_SET
+AC_PROG_LIBTOOL
+
+dnl #########################################################################
+dnl Check platform endianness
+dnl #########################################################################
+
+AC_C_BIGENDIAN
+
+dnl #########################################################################
+dnl Checks for header files.
+dnl #########################################################################
+
+AC_CHECK_HEADERS([string.h],, [AC_MSG_ERROR([cannot find string.h, bailing out])])
+AC_CHECK_HEADERS([stdio.h],, [AC_MSG_ERROR([cannot find stdio.h, bailing out])])
+AC_CHECK_HEADERS([stdlib.h],, [AC_MSG_ERROR([cannot find stdlib.h, bailing out])])
+
+
+LIBS="${LIBS}"
+
+
+dnl #########################################################################
+dnl Build mode configuration (debug/optimized)
+dnl #########################################################################
+
+AC_ARG_ENABLE([debug],
+ AC_HELP_STRING([--enable-debug=ARG], [Enable debug compilation mode @<:@yes|no@:>@, default=debug_default]),,)
+
+AC_MSG_CHECKING([for debug enabled])
+
+if test "x$enable_debug" = "xyes"; then
+ CFLAGS="$CFLAGS -g -DDEBUG"
+ CXXFLAGS="$CXXFLAGS -g -DDEBUG"
+ AC_MSG_RESULT(yes)
+else
+ CFLAGS="$CFLAGS -O3 -DNDEBUG"
+ CXXFLAGS="$CXXFLAGS -O3 -DNDEBUG"
+ AC_MSG_RESULT(no)
+fi
+
+dnl #########################################################################
+dnl Definition of custom Autoconf macros
+dnl #########################################################################
+
+AC_DEFUN([LOC_MSG],[
+echo "$1"
+])
+
+AC_DEFUN([AC_HAVE_LONG_LONG],
+[
+ AC_MSG_CHECKING([for 64bit integer type])
+
+ echo 'int main() { long long off=0; }' >> conftest.c
+ if test -z "`${CC} -o conftest conftest.c 2>&1`" ; then
+ AC_DEFINE(HAVE_LONG_LONG, 1, [Define to 1, if your compiler supports long long data type])
+ AC_MSG_RESULT([long long])
+ else
+ AC_MSG_RESULT([no])
+ fi
+ rm -f conftest*
+])
+
+
+
+HAVE_GDAL="no"
+GDAL_CONFIG="no"
+HAVE_GEOTIFF="no"
+GEOTIFF_CONFIG="no"
+
+USE_GDAL_SOURCE_TREE="no"
+
+dnl #########################################################################
+dnl Determine GDAL Support
+dnl #########################################################################
+
+AC_ARG_WITH([gdal],
+ AC_HELP_STRING([--with-gdal=ARG], [Path to gdal-config]),,)
+AC_MSG_CHECKING([for GDAL])
+
+if test "$with_gdal" = "no" -o "$with_gdal" = "" ; then
+ AC_MSG_RESULT([no])
+else
+
+ dnl Check if full path to gdal-config provided
+ if test "`basename xx/$with_gdal`" = "gdal-config" ; then
+ AC_MSG_RESULT([GDAL enabled with provided gdal-config])
+ GDAL_CONFIG="$with_gdal"
+ elif test -f ${with_gdal}/frmts/gtiff/libgeotiff/geotiff.h; then
+ GDAL_INC="-I$with_gdal/port -I$with_gdal/ogr -I$with_gdal/alg -I$with_gdal/frmts"
+ GDAL_PREFIX="$with_gdal"
+ HAVE_GDAL="yes"
+ HAVE_GEOTIFF="yes"
+ GEOTIFF_CONFIG="yes"
+ GDAL_CONFIG="yes"
+ USE_GDAL_SOURCE_TREE="yes"
+ LIBS="-L${with_gdal}/.libs -lgdal -L${with_gdal}/ -lgdal $LIBS"
+ AC_MSG_RESULT([GDAL and GeoTIFF enabled with provided GDAL source tree])
+ else
+ dnl --with-gdal=yes given, so try to find gdal-config in PATH
+ GDAL_CONFIG_TMP=`which gdal-config`
+ if test "`basename xx/${GDAL_CONFIG_TMP}`" = "gdal-config" ; then
+ AC_MSG_RESULT([GDAL enabled with gdal-config found in PATH])
+ GDAL_CONFIG=${GDAL_CONFIG_TMP}
+ else
+ AC_MSG_ERROR([--with-gdal should be yes, a path to gdal-config, or a path to GDAL's source tree])
+ fi
+ fi
+fi
+
+if test "$GDAL_CONFIG" != "no" ; then
+
+dnl if we are already yes, we don't need to run gdal-config
+ if test "$GDAL_CONFIG" != "yes" ; then
+
+ GDAL_VERSION=`$GDAL_CONFIG --version`
+ AC_MSG_RESULT([$GDAL_CONFIG reports version $GDAL_VERSION])
+ LIBS="`$GDAL_CONFIG --libs` $LIBS"
+ GDAL_INC=`$GDAL_CONFIG --cflags`
+ GDAL_PREFIX=`$GDAL_CONFIG --prefix`
+ OGR=`$GDAL_CONFIG --ogr-enabled`
+ if test "$OGR" != "yes" ; then
+ AC_MSG_ERROR([$GDAL_CONFIG says OGR is not enabled])
+ fi
+ HAVE_GDAL="yes"
+ fi
+fi
+
+AC_SUBST([GDAL_INC])
+AC_SUBST([GDAL_PREFIX])
+AM_CONDITIONAL([GDAL_IS_CONFIG], [test ! x$GDAL_CONFIG = xno])
+
+dnl #########################################################################
+dnl Determine GeoTIFF Support
+dnl #########################################################################
+
+AC_ARG_WITH([geotiff],
+ AC_HELP_STRING([--with-geotiff=ARG], [libgeotiff library to use (no or path)]),,)
+
+if test "$with_geotiff" != "no" -a "$with_geotiff" != "" -a "${GEOTIFF_CONFIG}" != "yes" ; then
+ dnl We now require libgeotiff 1.2.5 (for ST_Create the simpletags stuff).
+ dnl first check if $with_geotiff/lib has the library:
+ AC_CHECK_LIB([geotiff], [ST_Create],
+ [GEOTIFF_CONFIG=external], [GEOTIFF_CONFIG=no],
+ [-L$with_geotiff/lib])
+fi
+
+if test "${GEOTIFF_CONFIG}" != "no" ; then
+ dnl libgeotiff 1.2.5, is first version with geo_simpletags.h
+ AC_MSG_CHECKING([for geo_simpletags.h of libgeotiff >= 1.2.5])
+ if test -f ${with_geotiff}/include/geo_simpletags.h ; then
+ GEOTIFF_INC="-I$with_geotiff/include"
+ AC_MSG_RESULT([yes])
+ elif test -f ${with_geotiff}/include/geotiff/geo_simpletags.h ; then
+ GEOTIFF_INC="-I$with_geotiff/include/geotiff"
+ AC_MSG_RESULT([yes])
+ elif test -f ${with_gdal}/frmts/gtiff/libgeotiff/geo_simpletags.h ; then
+ GEOTIFF_INC="-I$with_gdal/frmts/gtiff/libgeotiff/ -I$with_gdal/frmts/gtiff/libtiff"
+ AC_MSG_RESULT([yes, from GDAL])
+ else
+ GEOTIFF_CONFIG="no"
+ AC_MSG_RESULT([no])
+ fi
+fi
+
+AC_MSG_CHECKING([for libgeotiff])
+if test "${GEOTIFF_CONFIG}" = "no" ; then
+ HAVE_GEOTIFF="no"
+ AC_MSG_RESULT([no])
+else
+ if test "${USE_GDAL_SOURCE_TREE}" != "yes" ; then
+ LIBS="-L$with_geotiff/lib -lgeotiff $LIBS"
+ HAVE_GEOTIFF="yes"
+ AC_MSG_RESULT([yes])
+ else
+ AC_MSG_RESULT([use GDAL source])
+ fi
+fi
+
+AC_SUBST([GEOTIFF_INC])
+AC_SUBST([GEOTIFF_PREFIX])
+AM_CONDITIONAL([GEOTIFF_IS_CONFIG], [test ! x$GEOTIFF_CONFIG = xno])
+
+dnl #########################################################################
+dnl If GDAL was requested, but geotiff is not configured, complain
+dnl #########################################################################
+
+if test "${HAVE_GDAL}" != "no" ; then
+ if test "${GEOTIFF_CONFIG}" = "no" -a "${USE_GDAL_SOURCE_TREE}" != "yes"; then
+ AC_MSG_ERROR([You must configure a libgeotiff if you are using GDAL binaries. You can configure using a GDAL source tree without libgeotiff, but not from binaries.])
+ fi
+fi
+
+dnl #########################################################################
+dnl Determine other features of compiler
+dnl #########################################################################
+
+AC_HAVE_LONG_LONG
+
+dnl #########################################################################
+dnl Checks for library functions.
+dnl #########################################################################
+
+AC_CHECK_FUNCS([gettimeofday bzero memset memcpy bcopy])
+
+dnl #########################################################################
+dnl Generate makefiles
+dnl #########################################################################
+
+AC_CONFIG_FILES([
+ Makefile
+ include/Makefile
+ src/Makefile
+ apps/Makefile
+ apps/liblas-config
+ test/Makefile
+ test/unit/Makefile
+])
+
+AC_OUTPUT
+
+dnl #########################################################################
+dnl Print configuration summary
+dnl #########################################################################
+
+LOC_MSG()
+LOC_MSG([libLAS configuration summary:])
+LOC_MSG()
+LOC_MSG([ Version..................: ${RELEASE_VERSION}])
+LOC_MSG([ Installation directory...: ${prefix}])
+LOC_MSG([ C compiler...............: ${CC} ${CFLAGS}])
+LOC_MSG([ C++ compiler.............: ${CXX} ${CXXFLAGS}])
+LOC_MSG([ Debugging support........: ${enable_debug}])
+LOC_MSG([ GDAL support.............: ${HAVE_GDAL}])
+if test "${HAVE_GDAL}" != "no" ; then
+ LOC_MSG([ - gdal-config...........: ${GDAL_CONFIG}])
+ if test -n "${GDAL_INC}" ; then
+ LOC_MSG([ - INCLUDE directories...: ${GDAL_INC}])
+ fi
+fi
+LOC_MSG([ GeoTIFF SRS support......: ${HAVE_GEOTIFF}])
+if test "${HAVE_GEOTIFF}" != "no" ; then
+ LOC_MSG([ - libgeotiff............: ${GEOTIFF_CONFIG}])
+ if test -n "${GEOTIFF_INC}" ; then
+ LOC_MSG([ - INCLUDE directories...: ${GEOTIFF_INC}])
+ fi
+fi
+LOC_MSG()
+LOC_MSG([ LIBS.....................: ${LIBS}])
+LOC_MSG()
+LOC_MSG([ libLAS - http://liblas.org])
+LOC_MSG()
+
+dnl EOF
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/csharp/dotnetLibLAS/AssemblyInfo.cs work/libLAS-1.2.1/csharp/dotnetLibLAS/AssemblyInfo.cs
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/csharp/dotnetLibLAS/AssemblyInfo.cs 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/csharp/dotnetLibLAS/AssemblyInfo.cs 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,35 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("dotnetLibLAS")]
+[assembly: AssemblyDescription("Library to read and write the lidar las format")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("Martin Vales")]
+[assembly: AssemblyProduct("dotnetLibLAS")]
+[assembly: AssemblyCopyright("Copyright © 2008")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("74fc1345-228e-4afe-8c3c-00727ed007d0")]
+
+// Version information for an assembly consists of the following four values:
+//
+// Major Version
+// Minor Version
+// Build Number
+// Revision
+//
+// You can specify all the values or you can default the Revision and Build Numbers
+// by using the '*' as shown below:
+[assembly: AssemblyVersion("0.3.0.0")]
+[assembly: AssemblyFileVersion("0.3.0.0")]
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/csharp/dotnetLibLAS/dotnetLibLAS_Express.csproj work/libLAS-1.2.1/csharp/dotnetLibLAS/dotnetLibLAS_Express.csproj
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/csharp/dotnetLibLAS/dotnetLibLAS_Express.csproj 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/csharp/dotnetLibLAS/dotnetLibLAS_Express.csproj 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,69 @@
+
+
+ Debug
+ AnyCPU
+ 8.0.50727
+ 2.0
+ {5652982E-9576-47F1-896A-1B700E6648FA}
+ Library
+ Properties
+ dotnetLibLAS
+ dotnetLibLAS
+ true
+ liblas.snk
+
+
+
+
+ 2.0
+
+
+ true
+ full
+ false
+ bin\Debug\
+ DEBUG;TRACE
+ prompt
+ 4
+ dotnetLibLas.xml
+
+
+ pdbonly
+ true
+ bin\Release\
+ TRACE
+ prompt
+ 4
+ dotnetLibLas.xml
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/csharp/dotnetLibLAS/dotnetLibLAS.csproj work/libLAS-1.2.1/csharp/dotnetLibLAS/dotnetLibLAS.csproj
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/csharp/dotnetLibLAS/dotnetLibLAS.csproj 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/csharp/dotnetLibLAS/dotnetLibLAS.csproj 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,64 @@
+
+
+ Debug
+ AnyCPU
+ 8.0.50727
+ 2.0
+ {5652982E-9576-47F1-896A-1B700E6648FA}
+ Library
+ Properties
+ dotnetLibLAS
+ dotnetLibLAS
+ true
+ liblas.snk
+
+
+ true
+ full
+ false
+ bin\Debug\
+ DEBUG;TRACE
+ prompt
+ 4
+ dotnetLibLas.xml
+
+
+ pdbonly
+ true
+ bin\Release\
+ TRACE
+ prompt
+ 4
+ dotnetLibLas.xml
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/csharp/dotnetLibLAS/dotnetLibLAS.dll.config work/libLAS-1.2.1/csharp/dotnetLibLAS/dotnetLibLAS.dll.config
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/csharp/dotnetLibLAS/dotnetLibLAS.dll.config 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/csharp/dotnetLibLAS/dotnetLibLAS.dll.config 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,3 @@
+
+
+
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/csharp/dotnetLibLAS/dotnetLibLas.xml work/libLAS-1.2.1/csharp/dotnetLibLAS/dotnetLibLas.xml
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/csharp/dotnetLibLAS/dotnetLibLas.xml 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/csharp/dotnetLibLAS/dotnetLibLas.xml 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,1449 @@
+
+
+
+ dotnetLibLAS
+
+
+
+
+ LASException class
+
+
+
+
+ Default constructor
+
+ string to show
+
+
+
+ TODO
+
+ TODO
+ the string
+
+
+
+ LASVariableLengthRecord class
+
+
+
+
+ The object user should call this method when they finished with the object.
+
+
+
+
+ Default constructor.
+
+
+
+
+ Creates a new variable length record uing the LASVLRH opaque pointer
+
+ LASVLRH opaque pointer
+
+
+
+ Get the LASVLRH opaque pointer.
+
+ LASVLRH opaque pointer
+
+
+
+ Gets the data stream for the variable length record as an array of bytes
+
+ a empty array of bytes where place the array
+
+
+
+ Sets the data stream for the variable length record as an array of bytes
+
+ array of bytes
+
+
+
+ the User Id for the variable length record.
+
+ It will be clipped to fit within 16 characters
+
+
+
+ the description for the variable length record.
+
+ It will be clipped to fit within 32 characters
+
+
+
+ the record length of the data stored in the variable length record.
+
+
+
+
+ the record id for the variable length record.
+
+
+
+
+ the reserved value of the variable length record.
+
+ This should be 0 and should always be 0.
+
+
+
+ LASReadWriteMode enum
+
+
+
+
+ Mode of Read
+
+
+
+
+ Mode of Write
+
+
+
+
+ Mode of ppend
+
+
+
+
+ LASWriter class
+
+
+
+
+ The object user should call this method when they finished with the object.
+
+
+
+
+ Default constructor of the class
+
+ string with the path of the LAS file
+ LASHeader to add the LAS file
+ mode to use the file by LASReadWriteMode enumeration
+
+
+
+ Write a new point in the LAS file
+
+ LASPoint to write in the file
+
+
+
+ LASReader class
+
+
+
+
+ Creates a LASReaderH object that can be used to read LASHeaderH and LASPointH objects with.
+
+ The LASReaderH must not be created with a filename that is opened for read or write by any other API functions.
+ filename to open for read
+
+
+
+ Reads the next available point on the LASReaderH instance.
+
+ true if we have next point
+
+
+
+ get the current LASPoint.
+
+ current LASPoint object
+
+
+
+ Reads a LASPointH from the given position in the LAS file represented by the LASReader instance.
+
+ If no point is available at that location, NULL is returned.
+ the integer position of the point in the file to read.
+ LASPoint object
+
+
+
+ Get the header for the file associated with this Reader Class.
+
+ LASHeader representing the header for the file.
+
+
+
+ The object user should call this method when they finished with the object. In .NET is magaged by the GC.
+
+
+
+
+ LASHeader class
+
+
+
+
+ The object user should call this method when they finished with the object.
+ In .NET is magaged by the GC.
+
+
+
+
+ gets the opaque pointer to the LASHeaderH instance.
+
+ opaque pointer to the LASHeaderH instance.
+
+
+
+ LASHeader constructor using the LASHeaderH opaque pointer.
+
+
+
+
+
+ Default constructor.
+
+ The default constructed header is configured according
+ to the ASPRS LAS 1.1 Specification, point data format set to 0.
+ Other fields filled with 0.
+
+
+
+ Copy the LASHeader in a new instance
+
+ new LASHeader instance.
+
+
+
+ Destroy the unmanaged resources to the instance.
+
+ The user could call this method when they finished with the object.
+
+
+
+ Comparison overload to the LASHeader
+
+ LASHeader instance to be compared
+ LASHeader instance to be compared
+ true if lasHeader1==lasHeader2
+
+
+
+ Comparison overload to the LASHeader
+
+ LASHeader instance to be compared
+ LASHeader instance to be compared
+
+
+
+
+ Returns the number of point records by return.
+
+ the return number to fetch the count for
+ the number of point records for a given return
+
+
+
+ Sets the number of point records for a given return
+
+ the return number to set the count for
+ the number of point records for the return
+
+
+
+ Get scale factor for X coordinate.
+
+ scale factor for X coordinate.
+
+
+
+ Get scale factor for Y coordinate.
+
+ scale factor for Y coordinate.
+
+
+
+ Get scale factor for Z coordinate.
+
+ scale factor for Z coordinate.
+
+
+
+ Set values of scale factor for X, Y and Z coordinates.
+
+ X scale factor of the coordinate
+ Y scale factor of the coordinate
+ Z scale factor of the coordinate
+
+
+
+ Get X coordinate offset.
+
+ X coordinate offset.
+
+
+
+ Get Y coordinate offset.
+
+ Y coordinate offset.
+
+
+
+ Get Z coordinate offset.
+
+ Z coordinate offset.
+
+
+
+ Set values of X, Y and Z coordinates offset.
+
+ X coordinate offset.
+ Y coordinate offset.
+ Z coordinate offset.
+
+
+
+ Get maximum value of extent of X coordinate.
+
+ maximum value of extent of X coordinate.
+
+
+
+ Get maximum value of extent of Y coordinate.
+
+ maximum value of extent of Y coordinate.
+
+
+
+ Get maximum value of extent of Z coordinate.
+
+ maximum value of extent of Z coordinate.
+
+
+
+ Get minimum value of extent of X coordinate.
+
+ minimum value of extent of X coordinate.
+
+
+
+ Get minimum value of extent of Y coordinate.
+
+ minimum value of extent of Y coordinate.
+
+
+
+ Get minimum value of extent of Z coordinate.
+
+ minimum value of extent of Z coordinate.
+
+
+
+ Set maximum values of extent of X, Y and Z coordinates.
+
+ maximum value of extent of X coordinate.
+ maximum value of extent of Y coordinate.
+ maximum value of extent of Z coordinate.
+
+
+
+ Set minimum values of extent of X, Y and Z coordinates.
+
+ Set minimum value of extent of X coordinate.
+ Set minimum value of extent of Y coordinate.
+ Set minimum value of extent of Z coordinate.
+
+
+
+ Adds a variable length record instance to the header.
+
+ variable Length record instance to add
+
+
+
+ Returns the variable length record for the given index.
+
+ the index starting from 0 of the variable length record to fetch
+ a new variable length record instance
+ Use VariableLengthRecordsCount property to determine the number of
+ variable length records available on the header.
+
+
+
+ Deletes a variable length record from the header for the given index.
+
+ the index starting from 0 of the variable length record to delete
+
+
+
+ Get ASPRS LAS file signature.
+
+ The only value allowed as file signature is "LASF",
+
+
+
+ file source identifier.
+
+ should be set to a value between 1 and 65535.
+
+
+
+ Get value field reserved by the ASPRS LAS Specification.
+
+ This field is always filled with 0.
+
+
+
+ Get project identifier.
+
+ return Global Unique Identifier.
+
+
+
+ major component of version of LAS format.
+
+ Always 1 as the only valid value. value between
+ eVersionMajorMin and eVersionMajorMax (always 1).
+
+
+
+ minor component of version of LAS format.
+
+ Valid values are 1 or 0. value between
+ eVersionMinorMin and eVersionMinorMax.
+
+
+
+ system identifier
+
+ Default value is "libLAS" specified as the SystemIdentifier constant.
+ string is padded right with spaces and its length is 32 bytes.
+
+
+
+ software identifier
+
+ Default value is "libLAS 1.0", specified as the SoftwareIdentifier constant.
+ String is padded right with spaces and its length is 32 bytes.
+
+
+
+ day of year of file creation date.
+
+ Use full date structure instead of Julian date number.
+ value is lower than number 366.
+
+
+
+ year of file creation date.
+
+ value is lower than number 9999.
+
+
+
+ number of bytes of generic verion of public header block storage.
+
+ Standard version of the public header block is 227 bytes long.
+
+
+
+ number of bytes from the beginning to the first point record.
+
+
+
+
+ Returns the number of variable length records in the header
+
+
+
+
+ the data format id for the file.
+
+ The value should be 1 or 0, with 1 being points that contain
+ time values and 0 being points that do not.
+
+
+
+ return the record length for the points based on their data format id in bytes.
+
+
+
+
+ number of point records in the file.
+
+ This value may not reflect the actual number of point
+ records in the file.
+
+
+
+ GUID value for the header.
+
+ sets and gets the LASGuid instance of the header.
+
+
+
+ sets and gets the Proj4 in the header.
+
+
+
+ Minimum of major component
+
+
+ Maximum of major component
+
+
+ Minimum of minor component
+
+
+ Maximum of minor component
+
+
+ Versions of point record format.
+
+
+ Point Data Format \e 0
+
+
+ Point Data Format \e 1
+
+
+ Number of bytes of point record storage in particular format.
+
+
+ Size of point record in data format \e 0
+
+
+ Size of point record in data format \e 1
+
+
+
+ LASGuid class
+
+
+
+
+ The object user should call this method when they finished with the object.
+
+
+
+
+
+ Create a new random GUID.
+
+
+
+
+ Creates a new GUID using a opaque pointer.
+
+ LASGuidH opaque pointer
+
+
+
+ Creates a new GUID opaque pointer using the given string.
+
+ An example GUID might be something like '8388F1B8-AA1B-4108-BCA3-6BC68E7B062E'
+ string A GUID string in the form "00000000-0000-0000-0000-000000000000"
+
+
+
+ Gets the String value of the Guid
+
+ the String value of the Guid
+
+
+
+ Gets the GUID opaque pointer
+
+ the GUID opaque pointer
+
+
+
+ test if is equal to other object.
+
+ object to compare
+ true if both are equal
+
+
+
+
+
+
+
+
+
+ test if is equal to other LASGuid.
+
+ LASGuid to compare
+ true if both are equal
+
+
+ Returns the version string for this library.
+ @return the version string for this library.
+
+ If libLAS is built using solution from trunk/build/msvc80/liblas.sln
+ then C API DLL is called liblas_c_dll.dll, so value of the constant below
+ should be updated to "liblas_c_dll.dll".
+
+
+ Resets the error stack for the libLAS C API.
+
+
+ Pops the top error off of the error stack for the libLAS C API.
+
+
+ Returns the error number of the last error on the error stack.
+ @return the error number of the last error on the error stack.
+
+
+ Returns the name of the method the last error message happened in.
+ @return the name of the method the last error message happened in.
+
+
+ Returns the name of the method the last error message happened in.
+ @return the name of the method the last error message happened in.
+
+
+ Returns the number of error messages on the error stack.
+ @return the number of error messages on the error stack.
+
+
+ Prints the last error message in the error stack to stderr. If
+ there is no error on the error stack, only the message is printed.
+ The function does not alter the error stack in any way.
+ @param message Message to include in the stderr output
+
+
+ Creates a LASReaderH object that can be used to read LASHeaderH and
+ LASPointH objects with. The LASReaderH must not be created with a
+ filename that is opened for read or write by any other API functions.
+ @return opaque pointer to a LASReaderH instance.
+ @param filename Filename to open for read
+
+
+ Reads the next available point on the LASReaderH instance. If no point
+ is available to read, NULL is returned. If an error happens during
+ the reading of the next available point, an error will be added to the
+ error stack and can be returned with the LASError_GetLastError* methods.
+ @param hReader the opaque handle to the LASReaderH
+ @return an opaque handle to a LASPointH object, or NULL if no point is
+ available to read or an error occured. Use the
+ LASError_GetLastError* methods to confirm the existence of an error
+ if NULL is returned.
+
+
+ Reads a LASPointH from the given position in the LAS file represented
+ by the LASReaderH instance. If no point is available at that location,
+ NULL is returned. If an error happens during the reading of the point,
+ an error will be added to the error stack and can be returned with the
+ LASError_GetLastError* methods.
+ @param hReader the opaque handle to the LASReaderH
+ @param position the integer position of the point in the file to read.
+ @return an opaque handle to a LASPointH object, or NULL if no point is
+ available at the given location or an error occured. Use the
+ LASError_GetLastError* methods to confirm the existence of an error
+ if NULL is returned.
+
+
+ Closes the file for reading operations represented by the LASReaderH instance.
+ @param hReader the opqaue handle to the LASReaderH
+
+
+ Returns a LASHeaderH representing the header for the file
+ @param hReader the LASReaderH instance
+ @return a LASHeaderH representing the header for the file. NULL is returned
+ in the event of an error. Use the LASError_GetLastError* methods to check
+ in the event of a NULL return.
+
+
+ Returns the X value for the point. This value is not scaled or offset
+ by any header values and stands on its own. If you need points to have
+ a scale and/or offset applied, this must be done in conjunction with the
+ header values after the value is read.
+ @param hPoint the opaque pointer to the LASPointH instance
+ @return the X value for the LASPointH
+
+
+ Sets the X value for the point. This value must be scaled or offset
+ by any header values before being set.
+ @param hPoint the opaque pointer to the LASPointH instance
+ @param value the double value to set for the X value of the point
+ @return an error number if an error occured during the setting of the point.
+
+
+ Returns the Y value for the point. This value is not scaled or offset
+ by any header values and stands on its own. If you need points to have
+ a scale and/or offset applied, this must be done in conjunction with the
+ header values after the value is read.
+ @param hPoint the opaque pointer to the LASPointH instance
+ @return the Y value for the LASPointH
+
+
+ Sets the Y value for the point. This value must be scaled or offset
+ by any header values before being set.
+ @param hPoint the opaque pointer to the LASPointH instance
+ @param value the double value to set for the Y value of the point
+ @return an error number if an error occured during the setting of the point.
+
+
+ Returns the Z value for the point. This value is not scaled or offset
+ by any header values and stands on its own. If you need points to have
+ a scale and/or offset applied, this must be done in conjunction with the
+ header values after the value is read.
+ @param hPoint the opaque pointer to the LASPointH instance
+ @return the Z value for the LASPointH
+
+
+ Sets the Z value for the point. This value must be scaled or offset
+ by any header values before being set.
+ @param hPoint the opaque pointer to the LASPointH instance
+ @param value the double value to set for the Z value of the point
+ @return an error number if an error occured during the setting of the point.
+
+
+ Returns the intensity value for the point. This value is the pulse return
+ magnitude, it is optional, and it is LiDAR system specific.
+ @return the intensity value for the point.
+
+
+ Sets the intensity value for the point.
+ @param hPoint the opaque pointer to the LASPointH instance
+ @param value the value to set the intensity to
+ @return an error number if an error occured.
+
+
+ Returns the return number for the point. The return number is "the pulse
+ return number for a given output pulse." The first return number starts with
+ the value 1.
+ @param hPoint LASPointH instance
+ @return a return number, valid from 1-6, for the point. Use the LASError
+ methods to determine if an error occurred during this operation if 0
+ is returned.
+
+
+ Sets the return number for the point. Valid values are from 1-6.
+ @param hPoint LASPointH instance
+ @param value the value to set for the return number
+ @return LASError value determine success or failure.
+
+
+ Returns the total number of returns for a given pulse.
+ @param hPoint LASPointH instance
+ @return total number of returns for this pulse.
+
+
+ Sets the number of returns for the point. Valid values are from 1-5.
+ @param hPoint LASPointH instance
+ @param value the value to set for the number of returns
+ @return LASError value determine success or failure.
+
+
+ Returns the scan direction for a given pulse.
+ @param hPoint LASPointH instance
+ @return the scan direction for a given pulse.
+
+
+ Sets the scan direction for a given pulse. Valid values are 0 or 1, with
+ 1 being a positive scan direction and 0 being a negative scan direction.
+ @param hPoint LASPointH instance
+ @param value the value to set for scan direction
+ @return LASError value determine success or failure.
+
+
+ Returns whether or not a given pulse is an edge point
+ @param hPoint LASPointH instance
+ @return whether or not a given pulse is an edge point.
+
+
+ Sets the edge marker for a given pulse. Valid values are 0 or 1, with
+ 1 being an edge point and 0 being interior.
+ @param hPoint LASPointH instance
+ @param value the value to set for flightline edge
+ @return LASError value determine success or failure.
+
+
+ Returns all of the scan flags for the point -- Return number, number of
+ returns, flightline edge, scan direction, and scan angle rank.
+ @param hPoint LASPointH instance
+ @return all of the scan flags for the point
+
+
+ Sets all of the scan flags for the point. No validation is done.
+ @param hPoint LASPointH instance
+ @param value the value to set for the flags
+ @return LASError value determine success or failure.
+
+
+ Returns the classification for the point
+ @param hPoint LASPointH instance
+ @return the classification for the point
+
+
+ Sets the classification for the point. No validation is done.
+ @param hPoint LASPointH instance
+ @param value the value to set for the classification
+ @return LASError value determine success or failure.
+
+
+ Returns the time for the point
+ @param hPoint LASPointH instance
+ @return the time for the point
+
+
+ Sets the time for the point. No validation is done.
+ @param hPoint LASPointH instance
+ @param value the value to set for the time
+ @return LASError value determine success or failure.
+
+
+ Returns the scan angle for the point
+ @param hPoint LASPointH instance
+ @return the scan angle for the point
+
+
+ Sets the scan angle for the point. No validation is done.
+ @param hPoint LASPointH instance
+ @param value the value to set for the scan angle
+ @return LASError value determine success or failure.
+
+
+ Returns the arbitrary user data for the point
+ @param hPoint LASPointH instance
+ @return the arbitrary user data for the point
+
+
+ Sets the arbitrary user data for the point. No validation is done.
+ @param hPoint LASPointH instance
+ @param value the value to set for the arbitrary user data
+ @return LASError value determine success or failure.
+
+
+ Returns a bitfield representing the validity of various members
+ * enum DataMemberFlag
+ {
+ eReturnNumber = 1,
+ eNumberOfReturns = 2,
+ eScanDirection = 4,
+ eFlightLineEdge = 8,
+ eClassification = 16,
+ eScanAngleRank = 32,
+ eTime = 64
+ };
+ * @param hPoint LASPointH instance
+ * @return bitfield representing the validity of various members.
+
+
+ Returns a boolean whether or not the point is valid
+ @param hPoint LASPointH instance
+ @return a boolean (1 or 0) whether or not the point is valid.
+
+
+ Creates a new empty LASPointH instance
+ @return LASPointH instance. If the value is NULL use the
+ LASError_GetLastError* methods to determine the problem
+
+
+ Creates a copy of a LASPointH instance
+ @param hPoint the LASPointH instance to copy
+ @return new LASPointH instance. If the value is NULL use the
+ LASError_GetLastError* methods to determine the problem
+
+
+ Destroys/deletes a LASPointH instance
+
+
+ Copies a LASHeaderH instance
+ @param hHeader the LASHeaderH to copy
+ @return a LASHeaderH instance or NULL on error
+
+
+ Creates an empty LASHeaderH with default values
+
+
+ Destroys/deletes a LASHeader instance
+
+
+ Returns the file signature the the file. This should always be 'LASF'
+ @param hHeader LASHeaderH instance
+ @return the file signature the the file. This should always be 'LASF'
+
+
+ Returns the file source id for the file. It is a number from 1-65535
+ @param hHeader LASHeaderH instance
+ @return the file source id for the file.
+
+
+ Returns the project id for the header as a GUID string
+ @return the project id for the header as a GUID string
+
+
+ Sets the project id/GUID for the header
+ @param hHeader LASHeaderH instance
+ @param hId LASGuidH instance to set the GUID for the header to
+ @return LASError enum
+
+
+ Returns the major version number for the header. This value is expected
+ to always be 1.
+ @param hHeader LASHeaderH instance
+ @return major version number for the header.
+
+
+ Sets the major version number for the header. All values other than 1
+ are invalid.
+ @param hHeader LASHeaderH instance
+ @param value integer value to set the major version to (only the value 1 is valid)
+ @return LASError enum
+
+
+ Returns the min version number for the header. This value is expected
+ to be 1 or 0 representing LAS 1.1 or LAS 1.0
+ @param hHeader LASHeaderH instance
+ @return minor version number for the header.
+
+
+ Sets the minor version number for the header. All values other than 1 or 0
+ are invalid.
+ @param hHeader LASHeaderH instance
+ @param value integer value to set the minor version to (only the values 1 or 0 are valid)
+ @return LASError enum
+
+
+ Returns the System ID for the header. The caller assumes ownership of the returned string
+ @return the system id for the header as a character array
+
+
+ Sets the System ID for the header. By default, this value is "libLAS" if it
+ is not explicitly set. See the LAS specification for details on what this
+ value should logically be set to.
+ @param hHeader LASHeaderH instance
+ @param value the value to set as the System ID for the header
+ @return LASError enum
+
+
+ Returns the Software ID for the header. The caller assumes ownership of the returned string
+ @return the software id for the header as a character array
+
+
+ Sets the Software ID for the header. By default, this value is "libLAS 1.0" if it
+ is not explicitly set. See the LAS specification for details on what this
+ value should logically be set to.
+ @param hHeader LASHeaderH instance
+ @param value the value to set as the Software ID for the header
+ @return LASError enum
+
+
+ Returns the reserved value for the header. This should aways be 0.
+ @return the reserved value for the header.
+
+
+ Returns the file creation day of the year. The values start from 1, being January 1st,
+ and end at 365 or 366 being December 31st, depending on leap year.
+ @return the day of the year as an integer starting from 1 for the file creation.
+
+
+ Sets the file creation day of the year. The values start from 1, being January 1st. No
+ date validation is done
+ @param hHeader LASHeaderH instance
+ @param value the value to set as the creation day
+ @return LASError enum
+
+
+ Returns the file creation year. This is a four digit number representing the
+ year for the file, ie 2003, 2008, etc.
+ @return the creation year for the file or 0 if none is set
+
+
+ Sets the file creation year. This should be a four digit number representing
+ the year for the file, ie 2003, 2008, etc. No validation on the value is done
+ @param hHeader LASHeaderH instance
+ @param value the value to set for the creation year
+ @return LASError enum
+
+
+ Returns the size of the header for the file in bytes.
+ @return the size of the header for the file in bytes.
+
+
+ Returns the byte offset to the start of actual point data for the file
+ @param hHeader LASHeaderH instance
+ @return the type offset to the start of actual point data for the file
+
+
+ Returns the number of variable length records in the header
+ @param hHeader LASHeaderH instance
+ @return the number of variable length records in the header
+
+
+ Returns the record length for the points based on their data format id in bytes
+ @param hHeader LASHeaderH instance
+ @return the record length for the points based on their data format id in bytes
+
+
+ Returns the data format id. If this value is 1, the point data have time values
+ associated with them. If it is 0, the point data do not have time values.
+ @param hHeader LASHeaderH instance
+ @return the data format id for the file.
+
+
+ Sets the data format id for the file. The value should be 1 or 0, with 1 being
+ points that contain time values and 0 being points that do not.
+ @param hHeader LASHeaderH instance
+ @param value the value for the data format id, 1 or 0 are valid values.
+ @return LASError enum
+
+
+ Returns the number of point records in the file. This value may not reflect the actual
+ number of point records in the file.
+ @param hHeader LASHeaderH instance
+ @return the number of point records in the file
+
+
+ Sets the number of point records for the file.
+ @param hHeader LASHeaderH instance
+ @param value the long integer to set for the number of point records in the file
+ @return LASError enum
+
+
+ Returns the number of point records by return.
+ @param hHeader LASHeaderH instance
+ @param index the return number to fetch the count for
+ @return the number of point records for a given return
+
+
+ Sets the number of point records for a given return
+ @param hHeader LASHeaderH instance
+ @param index the return number to set the count for
+ @param value the number of point records for the return
+ @return LASError enum
+
+
+ Return the X scale factor
+ @param hHeader LASHeaderH instance
+ @return the X scale factor
+
+
+ Return the Y scale factor
+ @param hHeader LASHeaderH instance
+ @return the Y scale factor
+
+
+ Return the Z scale factor
+ @param hHeader LASHeaderH instance
+ @return the Z scale factor
+
+
+ Sets the scale factors
+ @param hHeader LASHeaderH instance
+ @param x the x scale factor
+ @param y the y scale factor
+ @param z the z scale factor
+ @return LASError enum
+
+
+ Return the X offset
+ @param hHeader LASHeaderH instance
+ @return the X offset
+
+
+ Return the Y offset
+ @param hHeader LASHeaderH instance
+ @return the Y offset
+
+
+ Return the Z offset
+ @param hHeader LASHeaderH instance
+ @return the Z offset
+
+
+ Sets the offset values
+ @param hHeader LASHeaderH instance
+ @param x the x offset
+ @param y the y offset
+ @param z the z offset
+ @return LASError enum
+
+
+ Return the minimum x value
+ @param hHeader LASHeaderH instance
+ @return the minimum x value
+
+
+ Return the minimum y value
+ @param hHeader LASHeaderH instance
+ @return the minimum y value
+
+
+ Return the minimum z value
+ @param hHeader LASHeaderH instance
+ @return the minimum z value
+
+
+ Sets the minimum values
+ @param hHeader LASHeaderH instance
+ @param x the x minimum
+ @param y the y minimum
+ @param z the z minimum
+ @return LASError enum
+
+
+ Return the maximum x value
+ @param hHeader LASHeaderH instance
+ @return the maximum x value
+
+
+ Return the maximum y value
+ @param hHeader LASHeaderH instance
+ @return the maximum y value
+
+
+ Return the maximum z value
+ @param hHeader LASHeaderH instance
+ @return the maximum z value
+
+
+ Sets the maximum values
+ @param hHeader LASHeaderH instance
+ @param x the x maximum
+ @param y the y maximum
+ @param z the z maximum
+ @return LASError enum
+
+
+ Returns the proj.4 string describing the spatial reference of the
+ header if it is available
+ @param hHeader LASHeaderH instance
+ @return the proj.4 string or NULL if none is available. The caller
+ owns the string.
+
+
+ Sets the proj4 stirng describing the spatial reference of the header.
+ @param hHeader LASHeaderH instance
+ @param value the proj4 string to set for the header
+ @return LASError enum
+
+
+ Returns the VLR record for the given index. Use LASHeader_GetRecordsCount to
+ determine the number of VLR records available on the header.
+ @param hHeader the LASHeaderH instance
+ @param i the index starting from 0 of the VLR to fetch
+ @return LASVLRH instance that models the Variable Length Record
+
+
+ Deletes a VLR record from the header for the given index.
+ @param hHeader the LASHeaderH instance
+ @param index the index starting from 0 of the VLR to delete
+ @return LASErrorEnum
+
+
+ Adds a VLR record to the header.
+ @param hHeader the LASHeaderH instance
+ @param hVLR the VLR to add to the header
+ @return LASErrorEnum
+
+
+ Creates a new LASWriterH for write operations on LAS files. The file may
+ be opened in either LAS_MODE_APPEND or LAS_MODE_WRITE, but the file cannot
+ be open by another other operations (another LASReaderH or LASWriterH).
+ @param filename The filename to open to write
+ @param hHeader an opaque pointer to a LASHeaderH that will be written to
+ the file as part of the opening for write operation.
+ @param mode a mode value to denote whether to open for write or append
+ operations. Valid values are LAS_MODE_APPEND and LAS_MODE_WRITE.
+
+
+ Writes a point to the file. The location of where the point is writen is
+ determined by the mode the file is opened in, and what the last operation was.
+ For example, if the file was opened for append, the next point would be written
+ at the end of the file. Likewise, if the file is opened in write mode, even
+ if the file already existed, the next WritePoint operation will happen at the
+ end of the header and all of the existing points in the file will be overwritten.
+ @param hWriter opaque pointer to the LASWriterH instance
+ @param hPoint the opaque LASPointH pointer to write
+ @return LE_None if no error occurred during the write operation.
+
+
+ Overwrites the header for the file represented by the LASWriterH. It does
+ not matter if the file is opened for append or for write.
+ @param hWriter opaque pointer to the LASWriterH instance
+ @param hHeader LASHeaderH instance to write into the file
+ @return LE_None if no error occurred during the operation.
+
+
+ Destroys the LASWriterH instance, effectively closing the file and performing
+ housekeeping operations.
+ @param hWriter LASWriterH instance to close
+
+
+ Returns the GUID value for the header as an opaque LASGuidH pointer.
+ @param hHeader the opaque pointer to the LASHeaderH
+ @return the GUID value for the header as an opaque LASGuidH pointer.
+
+
+ Returns a new random GUID.
+ @return a new random GUID
+
+
+ Creates a new GUID opaque pointer using the given string.
+ @param string A GUID string in the form "00000000-0000-0000-0000-000000000000"
+ An example GUID might be something like '8388F1B8-AA1B-4108-BCA3-6BC68E7B062E'
+ @return the GUID value as an opaque LASGuidH pointer.
+
+
+ Destroys a GUID opaque pointer and removes it from the heap
+ @param hId the GUID value to destroy as an opaque LASGuidH pointer.
+
+
+ Determines if two GUIDs are equal.
+ @param hId1 the first GUID
+ @param hId2 the second GUID
+ @return 0 if false, 1 if true. Use the LASError_GetLastError* methods to
+ determine if an error occured during the operation of this function.
+
+
+ Returns a string representation of the GUID opqaue pointer. The caller
+ owns the string.
+ @param hId the LASGuidH pointer
+ @return a string representation of the GUID opaque pointer.
+
+
+ Creates a new VLR record
+ @return a new VLR record
+
+
+ Destroys a VLR record and removes it from the heap
+
+
+ Returns the User Id for the VLR
+ @param hVLR the LASVLRH instance
+ @return the User Id for the VLR
+
+
+ Sets the User Id for the VLR
+ @param hVLR the LASVLRH instance
+ @param value the value to set for the User Id. It will be clipped to fit
+ within 16 characters
+ @return LASErrorEnum
+
+
+ Gets the description for the VLR
+ @param hVLR the LASVLRH instance
+ @return the description for the VLR
+
+
+ Sets the description for the VLR
+ @param hVLR the LASVLRH instance
+ @param value the value to set for the description. It will be clipped to fit
+ within 32 characters
+ @return LASErrorEnum
+
+
+ Returns the record length of the data stored in the VLR
+ @param hVLR the LASVLRH instance
+ @return the record length of the data stored in the VLR
+
+
+ Sets the record length of the data stored in the VLR
+ @param hVLR the LASVLRH instance
+ @param value the length to set for the VLR data length
+ @return LASErrorEnum
+
+
+ Gets the record id for the VLR
+ @param hVLR the LASVLRH instance
+ @return the record id for the VLR
+
+
+ Sets the record id for the VLR
+ @param hVLR the LASVLRH instance
+ @param value the record id to set
+ @return LASErrorEnum
+
+
+ Gets the reserved value of the VLR. This should be 0 and should aways be 0.
+ @param hVLR the LASVLRH instance
+ @return the reserved value of the VLR.
+
+
+ Sets the reserved value of the VLR. This should be 0 and you should not
+ have to ever monkey with this value according to the spec.
+ @param hVLR the LASVLRH instance
+ @param value the value to set for the reserved value
+ @return LASErrorEnum
+
+
+ Gets the data stream for the VLR as an array of bytes
+ @param hVLR the LASVLRH instance
+ @param data a pointer to where place the array
+ @param length a pointer to where to place the length of the array
+ @return LASErrorEnum
+
+
+
+ LASPoint class
+
+
+
+
+ Create a new LASPoint from the LASPointH opaque structure
+
+ LASPointH opaque structure
+
+
+
+ Create a generic LASPoint
+
+
+
+
+ Compare 2 LASPoint to be equal
+
+ LASPoint object
+ true if lasPoint is equals to the instance.
+
+
+
+ test is the LASPoint is Valid
+
+ true is is valid
+
+
+
+ The object user should call this method when they finished with the object. In .NET is magaged by the GC.
+
+
+
+
+ gets the opaque pointer to the LASPointH instance.
+
+ the opaque pointer to the LASPointH instance
+
+
+
+ Copy a LASPoint object creating a new one.
+
+ a new LASPoint instance copied.
+
+
+
+
+
+
+
+
+
+ X value for the point.
+
+ This value must be scaled or offset by any header values before being set.
+
+
+
+ Y value for the point.
+
+ This value must be scaled or offset by any header values before being set.
+
+
+
+ Z value for the point.
+
+ This value must be scaled or offset by any header values before being set.
+
+
+
+
+ intensity value for the point.
+
+ This value is the pulse return magnitude, it is optional, and it is LiDAR system specific.
+
+
+
+
+ scan flags for the point -- Return number, number of returns, flightline edge, scan direction, and scan angle rank.
+
+
+
+
+
+ return number for the point.
+
+ The return number is "the pulse return number for a given output pulse." The first return number starts with the value 1. valid from 1 to 6.
+
+
+
+ total number of returns for a given pulse.
+
+ Valid values are from 1-5.
+
+
+
+ scan direction for a given pulse.
+
+ Valid values are 0 or 1, with 1 being a positive scan direction and 0 being a negative scan direction.
+
+
+
+ whether or not a given pulse is an edge point.
+
+ Valid values are 0 or 1, with 1 being an edge point and 0 being interior.
+
+
+
+ classification for the point.
+
+
+
+
+ the scan angle for the point.
+
+
+
+
+ arbitrary user data for the point.
+
+
+
+
+ time for the point.
+
+
+
+
+ Returns a bitfield representing the validity of various members.
+
+
+
+
+ ReturnNumber property flag.
+
+
+
+
+ NumberOfReturns property flag.
+
+
+
+
+ ScanDirection property flag.
+
+
+
+
+ FlightLineEdge property flag.
+
+
+
+
+ Classification property flag.
+
+
+
+
+ ScanAngleRank property flag.
+
+
+
+
+ Time property flag.
+
+
+
+
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/csharp/dotnetLibLAS/LASException.cs work/libLAS-1.2.1/csharp/dotnetLibLAS/LASException.cs
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/csharp/dotnetLibLAS/LASException.cs 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/csharp/dotnetLibLAS/LASException.cs 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,91 @@
+/******************************************************************************
+ * $Id$
+ *
+ * Project: libLAS - http://liblas.org - A BSD library for LAS format data.
+ * Purpose:
+ * Author: Martin Vales, martin_gnu@mundo-r.com
+ *
+ ******************************************************************************
+ * Copyright (c) 2008, Martin Vales
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following
+ * conditions are met:
+ *
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided
+ * with the distribution.
+ * * Neither the name of the Martin Isenburg or Iowa Department
+ * of Natural Resources nor the names of its contributors may be
+ * used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+ * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+ * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
+ * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
+ * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
+ * OF SUCH DAMAGE.
+ ****************************************************************************/
+
+using System;
+using System.Collections.Generic;
+using System.Text;
+using LASError = System.Int32;
+using LASWriterH = System.IntPtr;
+using LASReaderH = System.IntPtr;
+using LASPointH = System.IntPtr;
+using LASGuidH = System.IntPtr;
+using LASVLRH = System.IntPtr;
+using LASHeaderH = System.IntPtr;
+
+namespace LibLAS
+{
+ enum LASError
+ {
+ LENone = 0,
+ LEDebug = 1,
+ LEWarning = 2,
+ LEFailure = 3,
+ LEFatal = 4
+ };
+
+ ///
+ /// LASException class
+ ///
+ public class LASException :
+ System.ApplicationException
+ {
+ ///
+ /// Default constructor
+ ///
+ /// string to show
+ public LASException(string message)
+ :
+ base(message)
+ {
+ }
+
+ ///
+ /// TODO
+ ///
+ /// TODO
+ /// the string
+ public static string GetString(Int32 value)
+ {
+ //to do. Implementent enum errors
+ return "LibLAS exception";
+ }
+ }
+}
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/csharp/dotnetLibLAS/LASGuid.cs work/libLAS-1.2.1/csharp/dotnetLibLAS/LASGuid.cs
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/csharp/dotnetLibLAS/LASGuid.cs 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/csharp/dotnetLibLAS/LASGuid.cs 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,181 @@
+/******************************************************************************
+ * $Id$
+ *
+ * Project: libLAS - http://liblas.org - A BSD library for LAS format data.
+ * Purpose:
+ * Author: Martin Vales, martin_gnu@mundo-r.com
+ *
+ ******************************************************************************
+ * Copyright (c) 2008, Martin Vales
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following
+ * conditions are met:
+ *
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided
+ * with the distribution.
+ * * Neither the name of the Martin Isenburg or Iowa Department
+ * of Natural Resources nor the names of its contributors may be
+ * used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+ * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+ * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
+ * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
+ * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
+ * OF SUCH DAMAGE.
+ ****************************************************************************/
+
+using System;
+using System.Collections.Generic;
+using System.Text;
+using LASError = System.Int32;
+using LASWriterH = System.IntPtr;
+using LASReaderH = System.IntPtr;
+using LASPointH = System.IntPtr;
+using LASGuidH = System.IntPtr;
+using LASVLRH = System.IntPtr;
+using LASHeaderH = System.IntPtr;
+
+namespace LibLAS
+{
+ ///
+ /// LASGuid class
+ ///
+ public class LASGuid : IDisposable
+ {
+ private LASGuidH hguid;
+
+ ///
+ /// The object user should call this method when they finished with the object.
+ ///
+ ///
+ public void Dispose()
+ {
+ CAPI.LASGuid_Destroy(hguid);
+ // Clean up unmanaged resources here.
+ // Dispose other contained disposable objects.
+ }
+
+ ///
+ /// Create a new random GUID.
+ ///
+ public LASGuid()
+ {
+ hguid = CAPI.LASGuid_Create();
+ }
+
+ ///
+ /// Creates a new GUID using a opaque pointer.
+ ///
+ /// LASGuidH opaque pointer
+ public LASGuid(LASGuidH hGuid)
+ {
+ hguid = hGuid;
+ }
+
+ ///
+ /// Creates a new GUID opaque pointer using the given string.
+ ///
+ /// An example GUID might be something like '8388F1B8-AA1B-4108-BCA3-6BC68E7B062E'
+ /// string A GUID string in the form "00000000-0000-0000-0000-000000000000"
+ public LASGuid(String guidString)
+ {
+ hguid = CAPI.LASGuid_CreateFromString(guidString);
+ }
+
+ ///
+ /// Gets the String value of the Guid
+ ///
+ /// the String value of the Guid
+ public override string ToString()
+ {
+ return CAPI.LASGuid_AsString(hguid);
+ }
+
+ ///
+ /// Gets the GUID opaque pointer
+ ///
+ /// the GUID opaque pointer
+ internal LASGuidH GetPointer()
+ {
+ return hguid;
+ }
+
+ ///
+ /// test if is equal to other object.
+ ///
+ /// object to compare
+ /// true if both are equal
+ public override bool Equals(object obj)
+ {
+ //if parameter is null return false
+ if (obj == null)
+ {
+ return false;
+ }
+
+ //if parameter cannot be cast to Guid return false
+ LASGuid guidd = obj as LASGuid;
+ if ((object)guidd == null)
+ {
+ return false;
+ }
+
+ if (CAPI.LASGuid_Equals(hguid, guidd.GetPointer()) == 1)
+ {
+ return true;
+ }
+ else
+ {
+ return false;
+ }
+ }
+
+ ///
+ ///
+ ///
+ ///
+ public override int GetHashCode()
+ {
+ return base.GetHashCode();
+ }
+
+ ///
+ /// test if is equal to other LASGuid.
+ ///
+ /// LASGuid to compare
+ /// true if both are equal
+ public bool Equals(LASGuid obj)
+ {
+ //if parameter cannot be cast to Guid return false
+
+ if ((object)obj == null)
+ {
+ return false;
+ }
+
+ if (CAPI.LASGuid_Equals(hguid, obj.GetPointer()) == 1)
+ {
+ return true;
+ }
+ else
+ {
+ return false;
+ }
+ }
+ }
+}
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/csharp/dotnetLibLAS/LASHeader.cs work/libLAS-1.2.1/csharp/dotnetLibLAS/LASHeader.cs
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/csharp/dotnetLibLAS/LASHeader.cs 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/csharp/dotnetLibLAS/LASHeader.cs 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,751 @@
+/******************************************************************************
+ * $Id$
+ *
+ * Project: libLAS - http://liblas.org - A BSD library for LAS format data.
+ * Purpose:
+ * Author: Martin Vales, martin_gnu@mundo-r.com
+ *
+ ******************************************************************************
+ * Copyright (c) 2008, Martin Vales
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following
+ * conditions are met:
+ *
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided
+ * with the distribution.
+ * * Neither the name of the Martin Isenburg or Iowa Department
+ * of Natural Resources nor the names of its contributors may be
+ * used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+ * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+ * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
+ * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
+ * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
+ * OF SUCH DAMAGE.
+ ****************************************************************************/
+
+using System;
+using System.Collections.Generic;
+using System.Text;
+using LASError = System.Int32;
+using LASWriterH = System.IntPtr;
+using LASReaderH = System.IntPtr;
+using LASPointH = System.IntPtr;
+using LASGuidH = System.IntPtr;
+using LASVLRH = System.IntPtr;
+using LASHeaderH = System.IntPtr;
+
+namespace LibLAS
+{
+ ///
+ /// LASHeader class
+ ///
+ public class LASHeader : IDisposable
+ {
+
+ ///
+ /// The object user should call this method when they finished with the object.
+ /// In .NET is magaged by the GC.
+ ///
+ public void Dispose()
+ {
+
+ CAPI.LASHeader_Destroy(hHeader);
+ // Clean up unmanaged resources here.
+ // Dispose other contained disposable objects.
+ }
+
+ enum FormatVersion
+ {
+ /// Minimum of major component
+ eVersionMajorMin = 1,
+ ///Maximum of major component
+ eVersionMajorMax = 1,
+ /// Minimum of minor component
+ eVersionMinorMin = 0,
+ /// Maximum of minor component
+ eVersionMinorMax = 1
+ };
+
+ /// Versions of point record format.
+ public enum PointFormat
+ {
+ ///Point Data Format \e 0
+ ePointFormat0 = 0,
+ /// Point Data Format \e 1
+ ePointFormat1 = 1
+ };
+
+ /// Number of bytes of point record storage in particular format.
+ public enum PointSize
+ {
+ ///Size of point record in data format \e 0
+ ePointSize0 = 20,
+ /// Size of point record in data format \e 1
+ ePointSize1 = 28
+ };
+
+ //// Official signature of ASPRS LAS file format, always \b "LASF".
+ //public static readonly string FileSignature_;
+
+ //// Default system identifier used by libLAS, always \b "libLAS".
+ //public static readonly string SystemIdentifier;
+
+ ////Default software identifier used by libLAS, always \b "libLAS X.Y".
+ //public static readonly string SoftwareIdentifier;
+
+ private LASHeaderH hHeader;
+
+ ///
+ /// gets the opaque pointer to the LASHeaderH instance.
+ ///
+ /// opaque pointer to the LASHeaderH instance.
+ internal LASHeaderH GetPointer()
+ {
+ return hHeader;
+ }
+
+ ///
+ /// LASHeader constructor using the LASHeaderH opaque pointer.
+ ///
+ ///
+ public LASHeader(LASHeaderH hLASHeader)
+ {
+ hHeader = hLASHeader;
+ }
+
+ ///
+ /// Default constructor.
+ ///
+ /// The default constructed header is configured according
+ /// to the ASPRS LAS 1.1 Specification, point data format set to 0.
+ /// Other fields filled with 0.
+ public LASHeader()
+ {
+ hHeader = CAPI.LASHeader_Create();
+ }
+
+ ///
+ /// Copy the LASHeader in a new instance
+ ///
+ /// new LASHeader instance.
+ public LASHeader Copy()
+ {
+ return new LASHeader(CAPI.LASHeader_Copy(hHeader));
+ }
+
+ ///
+ /// Destroy the unmanaged resources to the instance.
+ ///
+ /// The user could call this method when they finished with the object.
+ public void Destroy()
+ {
+ CAPI.LASHeader_Destroy(hHeader);
+ }
+
+ ///
+ /// Comparison overload to the LASHeader
+ ///
+ /// LASHeader instance to be compared
+ /// LASHeader instance to be compared
+ /// true if lasHeader1==lasHeader2
+ public static bool operator ==(LASHeader lasHeader1, LASHeader lasHeader2)
+ {
+ return lasHeader1.Equals(lasHeader2);
+ }
+
+ ///
+ /// Comparison overload to the LASHeader
+ ///
+ /// LASHeader instance to be compared
+ /// LASHeader instance to be compared
+ ///
+ public static bool operator !=(LASHeader lasHeader1, LASHeader lasHeader2)
+ {
+ return !(lasHeader1 == lasHeader2);
+ }
+
+ ///
+ /// Get ASPRS LAS file signature.
+ ///
+ /// The only value allowed as file signature is "LASF",
+ public string FileSignature
+ {
+ get
+ {
+ return CAPI.LASHeader_GetFileSignature(hHeader);
+ }
+ }
+
+ ///
+ /// file source identifier.
+ ///
+ /// should be set to a value between 1 and 65535.
+ public UInt16 FileSourceId
+ {
+ get
+ {
+ return CAPI.LASHeader_GetFileSourceId(hHeader);
+ }
+ set
+ {
+ LASError error = CAPI.LASHeader_SetFileSourceId(hHeader, value);
+ if ((Int32)error != 0)
+ {
+ LASException e = new LASException("Exception in Set Header SetFileSourceId.");
+ throw e;
+ }
+ }
+ }
+
+ ///
+ /// Get value field reserved by the ASPRS LAS Specification.
+ ///
+ /// This field is always filled with 0.
+ public Int16 Reserved
+ {
+ get
+ {
+ return CAPI.LASHeader_GetReserved(hHeader);
+ }
+ }
+
+ ///
+ /// Get project identifier.
+ ///
+ /// return Global Unique Identifier.
+ public String ProjectId
+ {
+ get
+ {
+ return CAPI.LASHeader_GetProjectId(hHeader);
+ }
+ }
+
+ ///
+ /// major component of version of LAS format.
+ ///
+ /// Always 1 as the only valid value. value between
+ /// eVersionMajorMin and eVersionMajorMax (always 1).
+ public byte VersionMajor
+ {
+ get
+ {
+ return CAPI.LASHeader_GetVersionMajor(hHeader);
+ }
+ set
+ {
+ LASError error = CAPI.LASHeader_SetVersionMajor(hHeader, value);
+ if ((Int32)error != 0)
+ {
+ LASException e = new LASException("Exception in Set Header VersionMajor.");
+ throw e;
+ }
+ }
+ }
+
+ ///
+ /// minor component of version of LAS format.
+ ///
+ /// Valid values are 1 or 0. value between
+ /// eVersionMinorMin and eVersionMinorMax.
+ public byte VersionMinor
+ {
+ get
+ {
+
+ return CAPI.LASHeader_GetVersionMinor(hHeader);
+ }
+ set
+ {
+ LASError error = CAPI.LASHeader_SetVersionMinor(hHeader, value);
+ if ((Int32)error != 0)
+ {
+ LASException e = new LASException("Exception in Set Header VersionMinor.");
+ throw e;
+ }
+ }
+ }
+
+ ///
+ /// system identifier
+ ///
+ /// Default value is "libLAS" specified as the SystemIdentifier constant.
+ /// string is padded right with spaces and its length is 32 bytes.
+ public String SystemId
+ {
+ get
+ {
+ return CAPI.LASHeader_GetSystemId(hHeader);
+ }
+ set
+ {
+ LASError error = CAPI.LASHeader_SetSystemId(hHeader, value);
+ if ((Int32)error != 0)
+ {
+ LASException e = new LASException("Exception in Set Header SystemId.");
+ throw e;
+ }
+ }
+ }
+
+ ///
+ /// software identifier
+ ///
+ /// Default value is "libLAS 1.0", specified as the SoftwareIdentifier constant.
+ /// String is padded right with spaces and its length is 32 bytes.
+ public String SoftwareId
+ {
+ get
+ {
+
+ return CAPI.LASHeader_GetSoftwareId(hHeader);
+ }
+ set
+ {
+ LASError error = CAPI.LASHeader_SetSoftwareId(hHeader, value);
+ if ((Int32)error != 0)
+ {
+ LASException e = new LASException("Exception in Set Header SoftwareId.");
+ throw e;
+ }
+ }
+ }
+
+ ///
+ /// day of year of file creation date.
+ ///
+ /// Use full date structure instead of Julian date number.
+ /// value is lower than number 366.
+ public UInt16 CreationDOY
+ {
+ get
+ {
+ return CAPI.LASHeader_GetCreationDOY(hHeader);
+ }
+ set
+ {
+ LASError error = CAPI.LASHeader_SetCreationDOY(hHeader, value);
+ if ((Int32)error != 0)
+ {
+ LASException e = new LASException("Exception in Set Header CreationDOY.");
+ throw e;
+ }
+ }
+ }
+
+ ///
+ /// year of file creation date.
+ ///
+ /// value is lower than number 9999.
+ public UInt16 CreationYear
+ {
+ get
+ {
+ return CAPI.LASHeader_GetCreationYear(hHeader);
+ }
+ set
+ {
+ LASError error = CAPI.LASHeader_SetCreationYear(hHeader, value);
+ if ((Int32)error != 0)
+ {
+ LASException e = new LASException("Exception in Set Header CreationYear.");
+ throw e;
+ }
+ }
+ }
+
+ ///
+ /// number of bytes of generic verion of public header block storage.
+ ///
+ /// Standard version of the public header block is 227 bytes long.
+ public UInt16 HeaderSize
+ {
+ get
+ {
+ return CAPI.LASHeader_GetHeaderSize(hHeader);
+ }
+ }
+
+ ///
+ /// number of bytes from the beginning to the first point record.
+ ///
+ public UInt32 DataOffset
+ {
+ get
+ {
+ return CAPI.LASHeader_GetDataOffset(hHeader);
+ }
+ }
+
+ ///
+ /// Returns the number of variable length records in the header
+ ///
+ public UInt32 VariableLengthRecordsCount
+ {
+ get
+ {
+ return CAPI.LASHeader_GetRecordsCount(hHeader);
+ }
+ }
+
+ ///
+ /// the data format id for the file.
+ ///
+ /// The value should be 1 or 0, with 1 being points that contain
+ /// time values and 0 being points that do not.
+ public byte DataFormatId
+ {
+ get
+ {
+ return CAPI.LASHeader_GetDataFormatId(hHeader);
+ }
+ set
+ {
+ LASError error = CAPI.LASHeader_SetDataFormatId(hHeader, value);
+ if ((Int32)error != 0)
+ {
+ LASException e = new LASException("Exception in Set Header DataFormatId.");
+ throw e;
+ }
+ }
+ }
+
+ ///
+ /// return the record length for the points based on their data format id in bytes.
+ ///
+ public UInt16 DataRecordLength
+ {
+ get
+ {
+ return CAPI.LASHeader_GetDataRecordLength(hHeader);
+ }
+ }
+
+ ///
+ /// number of point records in the file.
+ ///
+ /// This value may not reflect the actual number of point
+ /// records in the file.
+ public UInt32 PointRecordsCount
+ {
+ get
+ {
+ //Get total number of point records stored in the LAS file.
+ return CAPI.LASHeader_GetPointRecordsCount(hHeader);
+ }
+ set
+ {
+ //Set number of point records that will be stored in a new LAS file.
+ LASError error = CAPI.LASHeader_SetPointRecordsCount(hHeader, value);
+ if ((Int32)error != 0)
+ {
+ LASException e = new LASException("Exception in Set Header PointRecordsCount.");
+ throw e;
+ }
+ }
+ }
+
+ ///
+ /// Returns the number of point records by return.
+ ///
+ /// the return number to fetch the count for
+ /// the number of point records for a given return
+ public UInt32 GetPointRecordsByReturnCount(int index)
+ {
+ // Get array of the total point records per return.
+ return CAPI.LASHeader_GetPointRecordsByReturnCount(hHeader, index);
+ }
+
+ // /// Set values of 5-elements array of total point records per return.
+ // /// \exception std::out_of_range - if index is bigger than 4.
+ // /// \param index - subscript (0-4) of array element being updated.
+ // /// \param v - new value to assign to array element identified by index.
+ ///
+ /// Sets the number of point records for a given return
+ ///
+ /// the return number to set the count for
+ /// the number of point records for the return
+ public void SetPointRecordsByReturnCount(int index, UInt32 value)
+ {
+ LASError error = CAPI.LASHeader_SetPointRecordsByReturnCount(hHeader, index, value);
+ if ((Int32)error != 0)
+ {
+ LASException e = new LASException("Exception in Set Header SetPointRecordsByReturnCount.");
+ throw e;
+ }
+ }
+
+ ///
+ /// Get scale factor for X coordinate.
+ ///
+ /// scale factor for X coordinate.
+ public double GetScaleX()
+ {
+ return CAPI.LASHeader_GetScaleX(hHeader);
+ }
+
+ ///
+ /// Get scale factor for Y coordinate.
+ ///
+ /// scale factor for Y coordinate.
+ public double GetScaleY()
+ {
+ return CAPI.LASHeader_GetScaleY(hHeader);
+ }
+
+ ///
+ /// Get scale factor for Z coordinate.
+ ///
+ /// scale factor for Z coordinate.
+ public double GetScaleZ()
+ {
+ return CAPI.LASHeader_GetScaleZ(hHeader);
+ }
+
+ ///
+ /// Set values of scale factor for X, Y and Z coordinates.
+ ///
+ /// X scale factor of the coordinate
+ /// Y scale factor of the coordinate
+ /// Z scale factor of the coordinate
+ public void SetScale(double x, double y, double z)
+ {
+ LASError error = CAPI.LASHeader_SetScale(hHeader, x, y, z);
+ if ((Int32)error != 0)
+ {
+ LASException e = new LASException("Exception in Set Header SetScale.");
+ throw e;
+ }
+ }
+
+ ///
+ /// Get X coordinate offset.
+ ///
+ /// X coordinate offset.
+ public double GetOffsetX()
+ {
+ return CAPI.LASHeader_GetOffsetX(hHeader);
+ }
+
+ ///
+ /// Get Y coordinate offset.
+ ///
+ /// Y coordinate offset.
+ public double GetOffsetY()
+ {
+ return CAPI.LASHeader_GetOffsetY(hHeader);
+ }
+
+ ///
+ /// Get Z coordinate offset.
+ ///
+ /// Z coordinate offset.
+ public double GetOffsetZ()
+ {
+ return CAPI.LASHeader_GetOffsetZ(hHeader);
+ }
+
+ //Set values of X, Y and Z coordinates offset.
+ ///
+ /// Set values of X, Y and Z coordinates offset.
+ ///
+ /// X coordinate offset.
+ /// Y coordinate offset.
+ /// Z coordinate offset.
+ public void SetOffset(double x, double y, double z)
+ {
+ LASError error = CAPI.LASHeader_SetOffset(hHeader, x, y, z);
+ if ((Int32)error != 0)
+ {
+ LASException e = new LASException("Exception in Set Header SetOffset.");
+ throw e;
+ }
+ }
+
+ ///
+ /// Get maximum value of extent of X coordinate.
+ ///
+ /// maximum value of extent of X coordinate.
+ public double MaxX()
+ {
+ return CAPI.LASHeader_GetMaxX(hHeader);
+ }
+
+ ///
+ /// Get maximum value of extent of Y coordinate.
+ ///
+ /// maximum value of extent of Y coordinate.
+ public double GetMaxY()
+ {
+ return CAPI.LASHeader_GetMaxY(hHeader);
+ }
+
+ ///
+ /// Get maximum value of extent of Z coordinate.
+ ///
+ /// maximum value of extent of Z coordinate.
+ public double GetMaxZ()
+ {
+ return CAPI.LASHeader_GetMaxZ(hHeader);
+ }
+
+ ///
+ /// Get minimum value of extent of X coordinate.
+ ///
+ /// minimum value of extent of X coordinate.
+ public double GetMinX()
+ {
+ return CAPI.LASHeader_GetMinX(hHeader);
+ }
+
+ ///
+ /// Get minimum value of extent of Y coordinate.
+ ///
+ /// minimum value of extent of Y coordinate.
+ public double GetMinY()
+ {
+ return CAPI.LASHeader_GetMinY(hHeader);
+ }
+
+ ///
+ /// Get minimum value of extent of Z coordinate.
+ ///
+ /// minimum value of extent of Z coordinate.
+ public double GetMinZ()
+ {
+ return CAPI.LASHeader_GetMinZ(hHeader);
+ }
+
+ ///
+ /// Set maximum values of extent of X, Y and Z coordinates.
+ ///
+ /// maximum value of extent of X coordinate.
+ /// maximum value of extent of Y coordinate.
+ /// maximum value of extent of Z coordinate.
+ public void SetMax(double x, double y, double z)
+ {
+ LASError error = CAPI.LASHeader_SetMax(hHeader, x, y, z);
+ if ((Int32)error != 0)
+ {
+ LASException e = new LASException("Exception in Set Header SetMax.");
+ throw e;
+ }
+ }
+
+ ///
+ /// Set minimum values of extent of X, Y and Z coordinates.
+ ///
+ /// Set minimum value of extent of X coordinate.
+ /// Set minimum value of extent of Y coordinate.
+ /// Set minimum value of extent of Z coordinate.
+ public void SetMin(double x, double y, double z)
+ {
+ LASError error = CAPI.LASHeader_SetMin(hHeader, x, y, z);
+ if ((Int32)error != 0)
+ {
+ LASException e = new LASException("Exception in Set Header SetMin.");
+ throw e;
+ }
+ }
+
+ ///
+ /// Adds a variable length record instance to the header.
+ ///
+ /// variable Length record instance to add
+ public void AddVariableLengthRecord(LASVariableLengthRecord variableLengthRecord)
+ {
+ LASError error = CAPI.LASHeader_AddVLR(hHeader, variableLengthRecord.GetPointer());
+ if ((Int32)error != 0)
+ {
+ LASException e = new LASException("Exception in Header AddVariableLengthRecord.");
+ throw e;
+ }
+ }
+
+ ///
+ /// Returns the variable length record for the given index.
+ ///
+ /// the index starting from 0 of the variable length record to fetch
+ /// a new variable length record instance
+ /// Use VariableLengthRecordsCount property to determine the number of
+ /// variable length records available on the header.
+ public LASVariableLengthRecord GetVariableLengthRecord(UInt32 i)
+ {
+ LASVLRH vlrh = CAPI.LASHeader_GetVLR(hHeader, i);
+ return new LASVariableLengthRecord(vlrh);
+ }
+
+ ///
+ /// Deletes a variable length record from the header for the given index.
+ ///
+ /// the index starting from 0 of the variable length record to delete
+ public void DeleteVariableLengthRecord(UInt32 index)
+ {
+ LASError error = CAPI.LASHeader_DeleteVLR(hHeader, index);
+ if ((Int32)error != 0)
+ {
+ LASException e = new LASException("Exception in Header DeleteVariableLengthRecord.");
+ throw e;
+ }
+ }
+
+ ///
+ /// GUID value for the header.
+ ///
+ /// sets and gets the LASGuid instance of the header.
+ public LASGuid GUID
+ {
+ get
+ {
+ LASGuidH guidh = CAPI.LASHeader_GetGUID(hHeader);
+ return new LASGuid(guidh);
+ }
+ set
+ {
+
+ LASError error = CAPI.LASHeader_SetGUID(hHeader, value.GetPointer());
+ if ((Int32)error != 0)
+ {
+ LASException e = new LASException("Exception in Set Header GUID.");
+ throw e;
+ }
+ }
+ }
+
+ ///
+ /// sets and gets the Proj4 in the header.
+ ///
+ public string Proj4
+ {
+ get
+ {
+ return CAPI.LASHeader_GetProj4(hHeader);
+ }
+ set
+ {
+ LASError error = CAPI.LASHeader_SetProj4(hHeader, value);
+ if ((Int32)error != 0)
+ {
+ LASException e = new LASException("Exception in Set Header Proj4.");
+ throw e;
+ }
+ }
+ }
+ }
+}
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/csharp/dotnetLibLAS/LASPoint.cs work/libLAS-1.2.1/csharp/dotnetLibLAS/LASPoint.cs
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/csharp/dotnetLibLAS/LASPoint.cs 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/csharp/dotnetLibLAS/LASPoint.cs 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,491 @@
+/******************************************************************************
+ * $Id$
+ *
+ * Project: libLAS - http://liblas.org - A BSD library for LAS format data.
+ * Purpose:
+ * Author: Martin Vales, martin_gnu@mundo-r.com
+ *
+ ******************************************************************************
+ * Copyright (c) 2008, Martin Vales
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following
+ * conditions are met:
+ *
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided
+ * with the distribution.
+ * * Neither the name of the Martin Isenburg or Iowa Department
+ * of Natural Resources nor the names of its contributors may be
+ * used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+ * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+ * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
+ * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
+ * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
+ * OF SUCH DAMAGE.
+ ****************************************************************************/
+
+using System;
+using System.Collections.Generic;
+using System.Text;
+using LASError = System.Int32;
+using LASWriterH = System.IntPtr;
+using LASReaderH = System.IntPtr;
+using LASPointH = System.IntPtr;
+using LASGuidH = System.IntPtr;
+using LASVLRH = System.IntPtr;
+using LASHeaderH = System.IntPtr;
+
+namespace LibLAS
+{
+ ///
+ /// LASPoint class
+ ///
+ public class LASPoint : IDisposable
+ {
+ ///
+ /// Returns a bitfield representing the validity of various members.
+ ///
+ public enum DataMemberFlag
+ {
+ ///
+ /// ReturnNumber property flag.
+ ///
+ eReturnNumber = 1,
+ ///
+ /// NumberOfReturns property flag.
+ ///
+ eNumberOfReturns = 2,
+ ///
+ /// ScanDirection property flag.
+ ///
+ eScanDirection = 4,
+ ///
+ /// FlightLineEdge property flag.
+ ///
+ eFlightLineEdge = 8,
+ ///
+ /// Classification property flag.
+ ///
+ eClassification = 16,
+ ///
+ /// ScanAngleRank property flag.
+ ///
+ eScanAngleRank = 32,
+ ///
+ /// Time property flag.
+ ///
+ eTime = 64
+ };
+
+ private LASPointH hPoint;
+
+ ///
+ /// Create a new LASPoint from the LASPointH opaque structure
+ ///
+ /// LASPointH opaque structure
+ public LASPoint(LASPointH hLASPoint)
+ {
+ hPoint = hLASPoint;
+ }
+
+ ///
+ /// Create a generic LASPoint
+ ///
+ public LASPoint()
+ {
+ hPoint = CAPI.LASPoint_Create();
+ }
+
+ ///
+ /// Compare 2 LASPoint to be equal
+ ///
+ /// LASPoint object
+ /// true if lasPoint is equals to the instance.
+ public bool Equals(LASPoint lasPoint)
+ {
+ if (X == lasPoint.X && Y == lasPoint.Y && Z == lasPoint.Z)
+ {
+ return true;
+ }
+ else
+ {
+ return false;
+ }
+ }
+
+ ///
+ /// test is the LASPoint is Valid
+ ///
+ /// true is is valid
+ public bool IsValid()
+ {
+ if (CAPI.LASPoint_IsValid(hPoint) == 1)
+ {
+ return true;
+ }
+ else
+ {
+ return false;
+ }
+ }
+
+ ///
+ /// The object user should call this method when they finished with the object. In .NET is magaged by the GC.
+ ///
+ public void Dispose()
+ {
+ CAPI.LASPoint_Destroy(hPoint);
+ // Clean up unmanaged resources here.
+ // Dispose other contained disposable objects.
+ }
+
+ enum ClassificationType
+ {
+ eCreated = 0,
+ eUnclassified,
+ eGround,
+ eLowVegetation,
+ eMediumVegetation,
+ eHighVegetation,
+ eBuilding,
+ eLowPoint,
+ eModelKeyPoint,
+ eWater = 9,
+ // = 10 // reserved for ASPRS Definition
+ // = 11 // reserved for ASPRS Definition
+ eOverlapPoints = 12
+ // = 13-31 // reserved for ASPRS Definition
+ };
+
+ enum ScanAngleRankRange
+ {
+ eScanAngleRankMin = -90,
+ eScanAngleRankMax = 90
+ };
+
+ ///
+ /// gets the opaque pointer to the LASPointH instance.
+ ///
+ /// the opaque pointer to the LASPointH instance
+ internal LASPointH GetPointer()
+ {
+ return hPoint;
+ }
+
+ ///
+ /// Copy a LASPoint object creating a new one.
+ ///
+ /// a new LASPoint instance copied.
+ public LASPoint Copy()
+ {
+ LASPointH laspointhTemp = CAPI.LASPoint_Copy(hPoint);
+ return new LASPoint(laspointhTemp);
+ }
+
+ ///
+ ///
+ ///
+ ///
+ public bool Validate()
+ {
+ int error = CAPI.LASPoint_Validate(hPoint);
+
+ if (error != 0)
+ {
+ LASException e = new LASException("Point data members out of range.");
+ e.Data.Add("DataMemberFlag", error);
+ throw e;
+ }
+
+ return true;
+ }
+
+ ///
+ /// X value for the point.
+ ///
+ /// This value must be scaled or offset by any header values before being set.
+ public double X
+ {
+ get
+ {
+ return CAPI.LASPoint_GetX(hPoint);
+ }
+ set
+ {
+ LASError error = CAPI.LASPoint_SetX(hPoint, value);
+ if ((Int32)error != 0)
+ {
+ LASException e = new LASException("Exception in Set Point X.");
+ throw e;
+ }
+ }
+ }
+
+ ///
+ /// Y value for the point.
+ ///
+ /// This value must be scaled or offset by any header values before being set.
+ public double Y
+ {
+ get
+ {
+ return CAPI.LASPoint_GetY(hPoint);
+ }
+ set
+ {
+ LASError error = CAPI.LASPoint_SetY(hPoint, value);
+ if ((Int32)error != 0)
+ {
+ LASException e = new LASException("Exception in Set Point Y.");
+ throw e;
+ }
+ }
+ }
+
+ ///
+ /// Z value for the point.
+ ///
+ /// This value must be scaled or offset by any header values before being set.
+ ///
+ public double Z
+ {
+ get
+ {
+ return CAPI.LASPoint_GetZ(hPoint);
+ }
+ set
+ {
+ LASError error = CAPI.LASPoint_SetZ(hPoint, value);
+ if ((Int32)error != 0)
+ {
+ LASException e = new LASException("Exception in Set Point Z.");
+ throw e;
+ }
+ }
+ }
+
+ ///
+ /// intensity value for the point.
+ ///
+ /// This value is the pulse return magnitude, it is optional, and it is LiDAR system specific.
+ ///
+ public UInt16 Intensity
+ {
+ get
+ {
+ return CAPI.LASPoint_GetIntensity(hPoint);
+ }
+ set
+ {
+ LASError error = CAPI.LASPoint_SetIntensity(hPoint, value);
+ if ((Int32)error != 0)
+ {
+ LASException e = new LASException("Exception in Set Point Intensity.");
+ throw e;
+ }
+ }
+ }
+
+ ///
+ /// scan flags for the point -- Return number, number of returns, flightline edge, scan direction, and scan angle rank.
+ ///
+ ///
+ public byte ScanFlags
+ {
+ get
+ {
+ return CAPI.LASPoint_GetScanFlags(hPoint);
+ }
+ set
+ {
+ LASError error = CAPI.LASPoint_SetScanFlags(hPoint, value);
+ if ((Int32)error != 0)
+ {
+ LASException e = new LASException("Exception in Set Point ScanFlags.");
+ throw e;
+ }
+
+ }
+ }
+
+ ///
+ /// return number for the point.
+ ///
+ /// The return number is "the pulse return number for a given output pulse." The first return number starts with the value 1. valid from 1 to 6.
+ public UInt16 ReturnNumber
+ {
+ get
+ {
+ return CAPI.LASPoint_GetReturnNumber(hPoint);
+ }
+ set
+ {
+ LASError error = CAPI.LASPoint_SetReturnNumber(hPoint, value);
+ if ((Int32)error != 0)
+ {
+ LASException e = new LASException("Exception in Set Point ReturnNumber.");
+ throw e;
+ }
+ }
+ }
+
+ ///
+ /// total number of returns for a given pulse.
+ ///
+ /// Valid values are from 1-5.
+ public UInt16 NumberOfReturns
+ {
+ get
+ {
+ return CAPI.LASPoint_GetNumberOfReturns(hPoint);
+ }
+ set
+ {
+ LASError error = CAPI.LASPoint_SetNumberOfReturns(hPoint, value);
+ if ((Int32)error != 0)
+ {
+ LASException e = new LASException("Exception in Set Point NumberOfReturns.");
+ throw e;
+ }
+ }
+ }
+
+ ///
+ /// scan direction for a given pulse.
+ ///
+ /// Valid values are 0 or 1, with 1 being a positive scan direction and 0 being a negative scan direction.
+ public UInt16 ScanDirection
+ {
+ get
+ {
+ return CAPI.LASPoint_GetScanDirection(hPoint);
+ }
+ set
+ {
+ LASError error = CAPI.LASPoint_SetScanDirection(hPoint, value);
+ if ((Int32)error != 0)
+ {
+ LASException e = new LASException("Exception in Set Point ScanDirection.");
+ throw e;
+ }
+ }
+ }
+
+ ///
+ /// whether or not a given pulse is an edge point.
+ ///
+ /// Valid values are 0 or 1, with 1 being an edge point and 0 being interior.
+ public UInt16 FlightLineEdge
+ {
+ get
+ {
+ return CAPI.LASPoint_GetFlightLineEdge(hPoint);
+ }
+ set
+ {
+ LASError error = CAPI.LASPoint_SetFlightLineEdge(hPoint, value);
+ if ((Int32)error != 0)
+ {
+ LASException e = new LASException("Exception in Set Point FlightLineEdge.");
+ throw e;
+ }
+ }
+ }
+
+ ///
+ /// classification for the point.
+ ///
+ public byte Classification
+ {
+ get
+ {
+ return CAPI.LASPoint_GetClassification(hPoint);
+ }
+ set
+ {
+ LASError error = CAPI.LASPoint_SetClassification(hPoint, value);
+ if ((Int32)error != 0)
+ {
+ LASException e = new LASException("Exception in Set Point Classification.");
+ throw e;
+ }
+ }
+ }
+
+ ///
+ /// the scan angle for the point.
+ ///
+ public SByte ScanAngleRank
+ {
+ get
+ {
+ return CAPI.LASPoint_GetScanAngleRank(hPoint);
+ }
+ set
+ {
+
+ LASError error = CAPI.LASPoint_SetScanAngleRank(hPoint, value);
+ if ((Int32)error != 0)
+ {
+ LASException e = new LASException("Exception in Set Point ScanAngleRank.");
+ throw e;
+ }
+ }
+ }
+
+ ///
+ /// arbitrary user data for the point.
+ ///
+ public byte UserData
+ {
+ get
+ {
+ return CAPI.LASPoint_GetUserData(hPoint);
+ }
+ set
+ {
+ LASError error = CAPI.LASPoint_SetUserData(hPoint, value);
+ if ((Int32)error != 0)
+ {
+ LASException e = new LASException("Exception in Set Point UserData.");
+ throw e;
+ }
+ }
+ }
+
+ ///
+ /// time for the point.
+ ///
+ public double Time
+ {
+ get
+ {
+ return CAPI.LASPoint_GetTime(hPoint);
+ }
+ set
+ {
+ LASError error = CAPI.LASPoint_SetTime(hPoint, value);
+ if ((Int32)error != 0)
+ {
+ LASException e = new LASException("Exception in Set Point Time.");
+ throw e;
+ }
+ }
+ }
+ }
+}
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/csharp/dotnetLibLAS/LASReader.cs work/libLAS-1.2.1/csharp/dotnetLibLAS/LASReader.cs
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/csharp/dotnetLibLAS/LASReader.cs 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/csharp/dotnetLibLAS/LASReader.cs 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,140 @@
+/******************************************************************************
+ * $Id$
+ *
+ * Project: libLAS - http://liblas.org - A BSD library for LAS format data.
+ * Purpose:
+ * Author: Martin Vales, martin_gnu@mundo-r.com
+ *
+ ******************************************************************************
+ * Copyright (c) 2008, Martin Vales
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following
+ * conditions are met:
+ *
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided
+ * with the distribution.
+ * * Neither the name of the Martin Isenburg or Iowa Department
+ * of Natural Resources nor the names of its contributors may be
+ * used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+ * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+ * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
+ * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
+ * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
+ * OF SUCH DAMAGE.
+ ****************************************************************************/
+
+using System;
+using System.Collections.Generic;
+using System.Text;
+using LASError = System.Int32;
+using LASWriterH = System.IntPtr;
+using LASReaderH = System.IntPtr;
+using LASPointH = System.IntPtr;
+using LASGuidH = System.IntPtr;
+using LASVLRH = System.IntPtr;
+using LASHeaderH = System.IntPtr;
+
+namespace LibLAS
+{
+ ///
+ /// LASReader class
+ ///
+ public class LASReader : IDisposable
+ {
+ private LASReaderH hReader;
+ private LASPoint laspoint;
+
+ ///
+ /// Creates a LASReaderH object that can be used to read LASHeaderH and LASPointH objects with.
+ ///
+ /// The LASReaderH must not be created with a filename that is opened for read or write by any other API functions.
+ /// filename to open for read
+ public LASReader(String filename)
+ {
+ hReader = CAPI.LASReader_Create(filename);
+ }
+
+ ///
+ /// Reads the next available point on the LASReaderH instance.
+ ///
+ /// true if we have next point
+ public bool GetNextPoint()
+ {
+ IntPtr pointer = CAPI.LASReader_GetNextPoint(hReader);
+
+ if (IntPtr.Zero != pointer)
+ {
+ laspoint = new LASPoint(pointer);
+ return true;
+ }
+ else
+ {
+ return false;
+ }
+ }
+
+ ///
+ ///
+ ///
+ ///
+ public string GetVersion()
+ {
+ return CAPI.LAS_GetVersion();
+ }
+
+ ///
+ /// get the current LASPoint.
+ ///
+ /// current LASPoint object
+ public LASPoint GetPoint()
+ {
+ return laspoint;
+ }
+
+ ///
+ /// Reads a LASPointH from the given position in the LAS file represented by the LASReader instance.
+ ///
+ /// If no point is available at that location, NULL is returned.
+ /// the integer position of the point in the file to read.
+ /// LASPoint object
+ public LASPoint GetPointAt(UInt32 position)
+ {
+ return new LASPoint(CAPI.LASReader_GetPointAt(hReader, position));
+ }
+
+ ///
+ /// Get the header for the file associated with this Reader Class.
+ ///
+ /// LASHeader representing the header for the file.
+ public LASHeader GetHeader()
+ {
+ return new LASHeader(CAPI.LASReader_GetHeader(hReader));
+ }
+
+ ///
+ /// The object user should call this method when they finished with the object. In .NET is magaged by the GC.
+ ///
+ public void Dispose()
+ {
+ CAPI.LASReader_Destroy(hReader);
+ // Clean up unmanaged resources here.
+ // Dispose other contained disposable objects.
+ }
+ }
+}
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/csharp/dotnetLibLAS/LASVariableLengthRecord.cs work/libLAS-1.2.1/csharp/dotnetLibLAS/LASVariableLengthRecord.cs
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/csharp/dotnetLibLAS/LASVariableLengthRecord.cs 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/csharp/dotnetLibLAS/LASVariableLengthRecord.cs 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,240 @@
+/******************************************************************************
+ * $Id$
+ *
+ * Project: libLAS - http://liblas.org - A BSD library for LAS format data.
+ * Purpose:
+ * Author: Martin Vales, martin_gnu@mundo-r.com
+ *
+ ******************************************************************************
+ * Copyright (c) 2008, Martin Vales
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following
+ * conditions are met:
+ *
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided
+ * with the distribution.
+ * * Neither the name of the Martin Isenburg or Iowa Department
+ * of Natural Resources nor the names of its contributors may be
+ * used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+ * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+ * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
+ * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
+ * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
+ * OF SUCH DAMAGE.
+ ****************************************************************************/
+
+using System;
+using System.Collections.Generic;
+using System.Text;
+using LASError = System.Int32;
+using LASWriterH = System.IntPtr;
+using LASReaderH = System.IntPtr;
+using LASPointH = System.IntPtr;
+using LASGuidH = System.IntPtr;
+using LASVLRH = System.IntPtr;
+using LASHeaderH = System.IntPtr;
+
+namespace LibLAS
+{
+ ///
+ /// LASVariableLengthRecord class
+ ///
+ public class LASVariableLengthRecord : IDisposable
+ {
+ private LASVLRH hvlrh;
+
+ ///
+ /// The object user should call this method when they finished with the object.
+ ///
+ public void Dispose()
+ {
+ CAPI.LASVLR_Destroy(hvlrh);
+ // Clean up unmanaged resources here.
+ // Dispose other contained disposable objects.
+ }
+
+ ///
+ /// Default constructor.
+ ///
+ public LASVariableLengthRecord()
+ {
+ hvlrh = CAPI.LASVLR_Create();
+ }
+
+ ///
+ /// Creates a new variable length record uing the LASVLRH opaque pointer
+ ///
+ /// LASVLRH opaque pointer
+ public LASVariableLengthRecord(LASVLRH hVlrh)
+ {
+ hvlrh = hVlrh;
+ }
+
+ //public override string ToString()
+ //{
+ // return CAPI.LASGuid_AsString(hguid);
+ //}
+
+ ///
+ /// Get the LASVLRH opaque pointer.
+ ///
+ /// LASVLRH opaque pointer
+ public LASVLRH GetPointer()
+ {
+ return hvlrh;
+ }
+
+ ///
+ /// the User Id for the variable length record.
+ ///
+ /// It will be clipped to fit within 16 characters
+ public string UserId
+ {
+ get
+ {
+ return CAPI.LASVLR_GetUserId(hvlrh);
+ }
+
+ set
+ {
+ LASError error = CAPI.LASVLR_SetUserId(hvlrh, value);
+ if ((Int32)error != 0)
+ {
+ LASException e = new LASException("Exception in Set VLR UserId.");
+ throw e;
+ }
+ }
+ }
+
+ ///
+ /// the description for the variable length record.
+ ///
+ /// It will be clipped to fit within 32 characters
+ public string Description
+ {
+ get
+ {
+ return CAPI.LASVLR_GetDescription(hvlrh);
+ }
+
+ set
+ {
+ LASError error = CAPI.LASVLR_SetDescription(hvlrh, value);
+ if ((Int32)error != 0)
+ {
+ LASException e = new LASException("Exception in Set VLR Description.");
+ throw e;
+ }
+ }
+ }
+
+ ///
+ /// the record length of the data stored in the variable length record.
+ ///
+ public UInt16 RecordLength
+ {
+ get
+ {
+ return CAPI.LASVLR_GetRecordLength(hvlrh);
+ }
+
+ set
+ {
+ LASError error = CAPI.LASVLR_SetRecordLength(hvlrh, value);
+ if ((Int32)error != 0)
+ {
+ LASException e = new LASException("Exception in Set VLR RecordLength.");
+ throw e;
+ }
+ }
+ }
+
+ ///
+ /// the record id for the variable length record.
+ ///
+ public UInt16 RecordId
+ {
+ get
+ {
+ return CAPI.LASVLR_GetRecordId(hvlrh);
+ }
+
+ set
+ {
+ LASError error = CAPI.LASVLR_SetRecordId(hvlrh, value);
+ if ((Int32)error != 0)
+ {
+ LASException e = new LASException("Exception in Set VLR RecordId.");
+ throw e;
+ }
+ }
+ }
+
+ ///
+ /// the reserved value of the variable length record.
+ ///
+ /// This should be 0 and should always be 0.
+ public UInt16 Reserved
+ {
+ get
+ {
+ return CAPI.LASVLR_GetReserved(hvlrh);
+ }
+
+ set
+ {
+ LASError error = CAPI.LASVLR_SetReserved(hvlrh, value);
+ if ((Int32)error != 0)
+ {
+ LASException e = new LASException("Exception in Set VLR Reserved.");
+ throw e;
+ }
+ }
+ }
+
+ ///
+ /// Gets the data stream for the variable length record as an array of bytes
+ ///
+ /// a empty array of bytes where place the array
+ public void GetData(out byte[] data)
+ {
+ LASError error = CAPI.LASVLR_GetData(hvlrh, out data);
+ if ((Int32)error != 0)
+ {
+ LASException e = new LASException("Exception in VLR GetData.");
+ throw e;
+ }
+ }
+
+ ///
+ /// Sets the data stream for the variable length record as an array of bytes
+ ///
+ /// array of bytes
+ public void SetData(ref byte[] data)
+ {
+ UInt16 lenght = (UInt16)data.Length;
+ LASError error = CAPI.LASVLR_SetData(hvlrh, ref data, lenght);
+ if ((Int32)error != 0)
+ {
+ LASException e = new LASException("Exception in VLR SetData.");
+ throw e;
+ }
+ }
+ }
+}
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/csharp/dotnetLibLAS/LASWriter.cs work/libLAS-1.2.1/csharp/dotnetLibLAS/LASWriter.cs
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/csharp/dotnetLibLAS/LASWriter.cs 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/csharp/dotnetLibLAS/LASWriter.cs 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,117 @@
+/******************************************************************************
+ * $Id$
+ *
+ * Project: libLAS - http://liblas.org - A BSD library for LAS format data.
+ * Purpose:
+ * Author: Martin Vales, martin_gnu@mundo-r.com
+ *
+ ******************************************************************************
+ * Copyright (c) 2008, Martin Vales
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following
+ * conditions are met:
+ *
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided
+ * with the distribution.
+ * * Neither the name of the Martin Isenburg or Iowa Department
+ * of Natural Resources nor the names of its contributors may be
+ * used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+ * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+ * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
+ * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
+ * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
+ * OF SUCH DAMAGE.
+ ****************************************************************************/
+
+using System;
+using System.Collections.Generic;
+using System.Text;
+using LASError = System.Int32;
+using LASWriterH = System.IntPtr;
+using LASReaderH = System.IntPtr;
+using LASPointH = System.IntPtr;
+using LASGuidH = System.IntPtr;
+using LASVLRH = System.IntPtr;
+using LASHeaderH = System.IntPtr;
+
+namespace LibLAS
+{
+ ///
+ /// LASReadWriteMode enum
+ ///
+ public enum LASReadWriteMode
+ {
+ ///
+ /// Mode of Read
+ ///
+ LASModeRead = 0,
+ ///
+ /// Mode of Write
+ ///
+ LASModeWrite = 1,
+ ///
+ /// Mode of ppend
+ ///
+ LASModeAppend = 2
+ }
+
+ ///
+ /// LASWriter class
+ ///
+ public class LASWriter : IDisposable
+ {
+ private LASWriterH hwriter;
+
+ ///
+ /// The object user should call this method when they finished with the object.
+ ///
+ public void Dispose()
+ {
+ CAPI.LASWriter_Destroy(hwriter);
+ // Clean up unmanaged resources here.
+ // Dispose other contained disposable objects.
+ }
+
+ ///
+ /// Default constructor of the class
+ ///
+ /// string with the path of the LAS file
+ /// LASHeader to add the LAS file
+ /// mode to use the file by LASReadWriteMode enumeration
+ public LASWriter(String filename, LASHeader hHeader, LASReadWriteMode mode)
+ {
+ hwriter = CAPI.LASWriter_Create(filename, hHeader.GetPointer(), (int)mode);
+ }
+
+ ///
+ /// Write a new point in the LAS file
+ ///
+ /// LASPoint to write in the file
+ public void WritePoint(LASPoint point)
+ {
+ LASError error = CAPI.LASWriter_WritePoint(hwriter, point.GetPointer());
+
+ if ((Int32)error != 0)
+ {
+ LASException e = new LASException("Exception in Set Writer WritePoint.");
+ throw e;
+ }
+ }
+ }
+}
Files /usr/ports/devel/liblas12/work/libLAS-1.2.1/csharp/dotnetLibLAS/liblas.snk and work/libLAS-1.2.1/csharp/dotnetLibLAS/liblas.snk differ
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/csharp/dotnetLibLAS/LibLASCAPI.cs work/libLAS-1.2.1/csharp/dotnetLibLAS/LibLASCAPI.cs
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/csharp/dotnetLibLAS/LibLASCAPI.cs 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/csharp/dotnetLibLAS/LibLASCAPI.cs 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,1033 @@
+/******************************************************************************
+ * $Id$
+ *
+ * Project: libLAS - http://liblas.org - A BSD library for LAS format data.
+ * Purpose:
+ * Author: Martin Vales, martin_gnu@mundo-r.com
+ *
+ ******************************************************************************
+ * Copyright (c) 2008, Martin Vales
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following
+ * conditions are met:
+ *
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided
+ * with the distribution.
+ * * Neither the name of the Martin Isenburg or Iowa Department
+ * of Natural Resources nor the names of its contributors may be
+ * used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+ * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+ * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
+ * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
+ * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
+ * OF SUCH DAMAGE.
+ ****************************************************************************/
+
+using System;
+using System.Collections.Generic;
+using System.Text;
+using System.Runtime.InteropServices;
+using LASError = System.Int32;
+using LASWriterH = System.IntPtr;
+using LASReaderH = System.IntPtr;
+using LASPointH = System.IntPtr;
+using LASGuidH = System.IntPtr;
+using LASVLRH = System.IntPtr;
+using LASHeaderH = System.IntPtr;
+
+namespace LibLAS
+{
+ internal class CAPI
+ {
+ /** Returns the version string for this library.
+ * @return the version string for this library.
+ *
+ * Name liblas1.dll is considered as unified across all builders on Windows platform.
+ * When building libLAS on Windows using NMAKE and makefile.vc, C API DLL is
+ * called liblas1.dll. The same name is used by Visual Studio solution liblas.sln.
+ */
+ public const string DLL_LAS_VERSION = "liblas1.dll";
+
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern String LAS_GetVersion();
+
+ /****************************************************************************/
+ /* Error handling */
+ /****************************************************************************/
+
+ /** Resets the error stack for the libLAS C API.
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern void LASError_Reset();
+
+ /** Pops the top error off of the error stack for the libLAS C API.
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern void LASError_Pop();
+
+ /** Returns the error number of the last error on the error stack.
+ * @return the error number of the last error on the error stack.
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern LASError LASError_GetLastErrorNum();
+
+ /** Returns the name of the method the last error message happened in.
+ * @return the name of the method the last error message happened in.
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern String LASError_GetLastErrorMsg();
+
+ /** Returns the name of the method the last error message happened in.
+ * @return the name of the method the last error message happened in.
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern String LASError_GetLastErrorMethod();
+
+ /** Returns the number of error messages on the error stack.
+ * @return the number of error messages on the error stack.
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern int LASError_GetErrorCount();
+
+ /** Prints the last error message in the error stack to stderr. If
+ * there is no error on the error stack, only the message is printed.
+ * The function does not alter the error stack in any way.
+ * @param message Message to include in the stderr output
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern void LASError_Print(String message);
+
+ /****************************************************************************/
+ /* Reader operations */
+ /****************************************************************************/
+
+ /** Creates a LASReaderH object that can be used to read LASHeaderH and
+ * LASPointH objects with. The LASReaderH must not be created with a
+ * filename that is opened for read or write by any other API functions.
+ * @return opaque pointer to a LASReaderH instance.
+ * @param filename Filename to open for read
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern LASReaderH LASReader_Create(String filename);
+
+ /** Reads the next available point on the LASReaderH instance. If no point
+ * is available to read, NULL is returned. If an error happens during
+ * the reading of the next available point, an error will be added to the
+ * error stack and can be returned with the LASError_GetLastError* methods.
+ * @param hReader the opaque handle to the LASReaderH
+ * @return an opaque handle to a LASPointH object, or NULL if no point is
+ * available to read or an error occured. Use the
+ * LASError_GetLastError* methods to confirm the existence of an error
+ * if NULL is returned.
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern LASPointH LASReader_GetNextPoint(LASReaderH hReader);
+
+ /** Reads a LASPointH from the given position in the LAS file represented
+ * by the LASReaderH instance. If no point is available at that location,
+ * NULL is returned. If an error happens during the reading of the point,
+ * an error will be added to the error stack and can be returned with the
+ * LASError_GetLastError* methods.
+ * @param hReader the opaque handle to the LASReaderH
+ * @param position the integer position of the point in the file to read.
+ * @return an opaque handle to a LASPointH object, or NULL if no point is
+ * available at the given location or an error occured. Use the
+ * LASError_GetLastError* methods to confirm the existence of an error
+ * if NULL is returned.
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern LASPointH LASReader_GetPointAt(LASReaderH hReader, UInt32 position);
+
+ /** Closes the file for reading operations represented by the LASReaderH instance.
+ * @param hReader the opqaue handle to the LASReaderH
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern void LASReader_Destroy(LASReaderH hReader);
+
+ /** Returns a LASHeaderH representing the header for the file
+ * @param hReader the LASReaderH instance
+ * @return a LASHeaderH representing the header for the file. NULL is returned
+ * in the event of an error. Use the LASError_GetLastError* methods to check
+ * in the event of a NULL return.
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern LASHeaderH LASReader_GetHeader(LASReaderH hReader);
+
+ /****************************************************************************/
+ /* Point operations */
+ /****************************************************************************/
+
+
+ /** Returns the X value for the point. This value is not scaled or offset
+ * by any header values and stands on its own. If you need points to have
+ * a scale and/or offset applied, this must be done in conjunction with the
+ * header values after the value is read.
+ * @param hPoint the opaque pointer to the LASPointH instance
+ * @return the X value for the LASPointH
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern double LASPoint_GetX(LASPointH hPoint);
+
+ /** Sets the X value for the point. This value must be scaled or offset
+ * by any header values before being set.
+ * @param hPoint the opaque pointer to the LASPointH instance
+ * @param value the double value to set for the X value of the point
+ * @return an error number if an error occured during the setting of the point.
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern LASError LASPoint_SetX(LASPointH hPoint, double value);
+
+ /** Returns the Y value for the point. This value is not scaled or offset
+ * by any header values and stands on its own. If you need points to have
+ * a scale and/or offset applied, this must be done in conjunction with the
+ * header values after the value is read.
+ * @param hPoint the opaque pointer to the LASPointH instance
+ * @return the Y value for the LASPointH
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern double LASPoint_GetY(LASPointH hPoint);
+
+ /** Sets the Y value for the point. This value must be scaled or offset
+ * by any header values before being set.
+ * @param hPoint the opaque pointer to the LASPointH instance
+ * @param value the double value to set for the Y value of the point
+ * @return an error number if an error occured during the setting of the point.
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern LASError LASPoint_SetY(LASPointH hPoint, double value);
+
+ /** Returns the Z value for the point. This value is not scaled or offset
+ * by any header values and stands on its own. If you need points to have
+ * a scale and/or offset applied, this must be done in conjunction with the
+ * header values after the value is read.
+ * @param hPoint the opaque pointer to the LASPointH instance
+ * @return the Z value for the LASPointH
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern double LASPoint_GetZ(LASPointH hPoint);
+
+ /** Sets the Z value for the point. This value must be scaled or offset
+ * by any header values before being set.
+ * @param hPoint the opaque pointer to the LASPointH instance
+ * @param value the double value to set for the Z value of the point
+ * @return an error number if an error occured during the setting of the point.
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern LASError LASPoint_SetZ(LASPointH hPoint, double value);
+
+ /** Returns the intensity value for the point. This value is the pulse return
+ * magnitude, it is optional, and it is LiDAR system specific.
+ * @return the intensity value for the point.
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern UInt16 LASPoint_GetIntensity(LASPointH hPoint);
+
+ /** Sets the intensity value for the point.
+ * @param hPoint the opaque pointer to the LASPointH instance
+ * @param value the value to set the intensity to
+ * @return an error number if an error occured.
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern LASError LASPoint_SetIntensity(LASPointH hPoint, UInt16 value);
+
+ /** Returns the return number for the point. The return number is "the pulse
+ * return number for a given output pulse." The first return number starts with
+ * the value 1.
+ * @param hPoint LASPointH instance
+ * @return a return number, valid from 1-6, for the point. Use the LASError
+ * methods to determine if an error occurred during this operation if 0
+ * is returned.
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern UInt16 LASPoint_GetReturnNumber(LASPointH hPoint);
+
+ /** Sets the return number for the point. Valid values are from 1-6.
+ * @param hPoint LASPointH instance
+ * @param value the value to set for the return number
+ * @return LASError value determine success or failure.
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern LASError LASPoint_SetReturnNumber(LASPointH hPoint, UInt16 value);
+
+ /** Returns the total number of returns for a given pulse.
+ * @param hPoint LASPointH instance
+ * @return total number of returns for this pulse.
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern UInt16 LASPoint_GetNumberOfReturns(LASPointH hPoint);
+
+ /** Sets the number of returns for the point. Valid values are from 1-5.
+ * @param hPoint LASPointH instance
+ * @param value the value to set for the number of returns
+ * @return LASError value determine success or failure.
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern LASError LASPoint_SetNumberOfReturns(LASPointH hPoint, UInt16 value);
+
+ /** Returns the scan direction for a given pulse.
+ * @param hPoint LASPointH instance
+ * @return the scan direction for a given pulse.
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern UInt16 LASPoint_GetScanDirection(LASPointH hPoint);
+
+ /** Sets the scan direction for a given pulse. Valid values are 0 or 1, with
+ * 1 being a positive scan direction and 0 being a negative scan direction.
+ * @param hPoint LASPointH instance
+ * @param value the value to set for scan direction
+ * @return LASError value determine success or failure.
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern LASError LASPoint_SetScanDirection(LASPointH hPoint, UInt16 value);
+
+ /** Returns whether or not a given pulse is an edge point
+ * @param hPoint LASPointH instance
+ * @return whether or not a given pulse is an edge point.
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern UInt16 LASPoint_GetFlightLineEdge(LASPointH hPoint);
+
+ /** Sets the edge marker for a given pulse. Valid values are 0 or 1, with
+ * 1 being an edge point and 0 being interior.
+ * @param hPoint LASPointH instance
+ * @param value the value to set for flightline edge
+ * @return LASError value determine success or failure.
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern LASError LASPoint_SetFlightLineEdge(LASPointH hPoint, UInt16 value);
+
+ /** Returns all of the scan flags for the point -- Return number, number of
+ * returns, flightline edge, scan direction, and scan angle rank.
+ * @param hPoint LASPointH instance
+ * @return all of the scan flags for the point
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern byte LASPoint_GetScanFlags(LASPointH hPoint);
+
+ /** Sets all of the scan flags for the point. No validation is done.
+ * @param hPoint LASPointH instance
+ * @param value the value to set for the flags
+ * @return LASError value determine success or failure.
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern LASError LASPoint_SetScanFlags(LASPointH hPoint, byte value);
+
+ /** Returns the classification for the point
+ * @param hPoint LASPointH instance
+ * @return the classification for the point
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern byte LASPoint_GetClassification(LASPointH hPoint);
+
+ /** Sets the classification for the point. No validation is done.
+ * @param hPoint LASPointH instance
+ * @param value the value to set for the classification
+ * @return LASError value determine success or failure.
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern LASError LASPoint_SetClassification(LASPointH hPoint, byte value);
+
+ /** Returns the time for the point
+ * @param hPoint LASPointH instance
+ * @return the time for the point
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern double LASPoint_GetTime(LASPointH hPoint);
+
+ /** Sets the time for the point. No validation is done.
+ * @param hPoint LASPointH instance
+ * @param value the value to set for the time
+ * @return LASError value determine success or failure.
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern LASError LASPoint_SetTime(LASPointH hPoint, double value);
+
+ /** Returns the scan angle for the point
+ * @param hPoint LASPointH instance
+ * @return the scan angle for the point
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern SByte LASPoint_GetScanAngleRank(LASPointH hPoint);
+
+ /** Sets the scan angle for the point. No validation is done.
+ * @param hPoint LASPointH instance
+ * @param value the value to set for the scan angle
+ * @return LASError value determine success or failure.
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern LASError LASPoint_SetScanAngleRank(LASPointH hPoint, SByte value);
+
+ /** Returns the arbitrary user data for the point
+ * @param hPoint LASPointH instance
+ * @return the arbitrary user data for the point
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern byte LASPoint_GetUserData(LASPointH hPoint);
+
+ /** Sets the arbitrary user data for the point. No validation is done.
+ * @param hPoint LASPointH instance
+ * @param value the value to set for the arbitrary user data
+ * @return LASError value determine success or failure.
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern LASError LASPoint_SetUserData(LASPointH hPoint, byte value);
+
+ /** Returns a bitfield representing the validity of various members
+ * enum DataMemberFlag
+ {
+ eReturnNumber = 1,
+ eNumberOfReturns = 2,
+ eScanDirection = 4,
+ eFlightLineEdge = 8,
+ eClassification = 16,
+ eScanAngleRank = 32,
+ eTime = 64
+ };
+ * @param hPoint LASPointH instance
+ * @return bitfield representing the validity of various members.
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern int LASPoint_Validate(LASPointH hPoint);
+
+ /** Returns a boolean whether or not the point is valid
+ * @param hPoint LASPointH instance
+ * @return a boolean (1 or 0) whether or not the point is valid.
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern int LASPoint_IsValid(LASPointH hPoint);
+
+ /** Creates a new empty LASPointH instance
+ * @return LASPointH instance. If the value is NULL use the
+ * LASError_GetLastError* methods to determine the problem
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern LASPointH LASPoint_Create();
+
+ /** Creates a copy of a LASPointH instance
+ * @param hPoint the LASPointH instance to copy
+ * @return new LASPointH instance. If the value is NULL use the
+ * LASError_GetLastError* methods to determine the problem
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern LASPointH LASPoint_Copy(LASPointH hPoint);
+
+ /** Destroys/deletes a LASPointH instance
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern void LASPoint_Destroy(LASPointH hPoint);
+
+ /****************************************************************************/
+ /* Header operations */
+ /****************************************************************************/
+
+ /** Copies a LASHeaderH instance
+ * @param hHeader the LASHeaderH to copy
+ * @return a LASHeaderH instance or NULL on error
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern LASHeaderH LASHeader_Copy(LASHeaderH hHeader);
+
+ /** Creates an empty LASHeaderH with default values
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern LASHeaderH LASHeader_Create();
+
+ /** Destroys/deletes a LASHeader instance
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern void LASHeader_Destroy(LASHeaderH hHeader);
+
+ /** Returns the file signature the the file. This should always be 'LASF'
+ * @param hHeader LASHeaderH instance
+ * @return the file signature the the file. This should always be 'LASF'
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern String LASHeader_GetFileSignature(LASHeaderH hHeader);
+
+ /** Returns the file source id for the file. It is a number from 1-65535
+ * @param hHeader LASHeaderH instance
+ * @return the file source id for the file.
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern UInt16 LASHeader_GetFileSourceId(LASHeaderH hHeader);
+
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern LASError LASHeader_SetFileSourceId(LASHeaderH hHeader, UInt16 value);
+
+ /** Returns the project id for the header as a GUID string
+ * @return the project id for the header as a GUID string
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern String LASHeader_GetProjectId(LASHeaderH hHeader);
+
+ /** Sets the project id/GUID for the header
+ * @param hHeader LASHeaderH instance
+ * @param hId LASGuidH instance to set the GUID for the header to
+ * @return LASError enum
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern LASError LASHeader_SetGUID(LASHeaderH hHeader, LASGuidH hId);
+
+ /** Returns the major version number for the header. This value is expected
+ * to always be 1.
+ * @param hHeader LASHeaderH instance
+ * @return major version number for the header.
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern byte LASHeader_GetVersionMajor(LASHeaderH hHeader);
+
+ /** Sets the major version number for the header. All values other than 1
+ * are invalid.
+ * @param hHeader LASHeaderH instance
+ * @param value integer value to set the major version to (only the value 1 is valid)
+ * @return LASError enum
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern LASError LASHeader_SetVersionMajor(LASHeaderH hHeader, byte value);
+
+ /** Returns the min version number for the header. This value is expected
+ * to be 1 or 0 representing LAS 1.1 or LAS 1.0
+ * @param hHeader LASHeaderH instance
+ * @return minor version number for the header.
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern byte LASHeader_GetVersionMinor(LASHeaderH hHeader);
+
+ /** Sets the minor version number for the header. All values other than 1 or 0
+ * are invalid.
+ * @param hHeader LASHeaderH instance
+ * @param value integer value to set the minor version to (only the values 1 or 0 are valid)
+ * @return LASError enum
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern LASError LASHeader_SetVersionMinor(LASHeaderH hHeader, byte value);
+
+ /** Returns the System ID for the header. The caller assumes ownership of the returned string
+ * @return the system id for the header as a character array
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern String LASHeader_GetSystemId(LASHeaderH hHeader);
+
+ /** Sets the System ID for the header. By default, this value is "libLAS" if it
+ * is not explicitly set. See the LAS specification for details on what this
+ * value should logically be set to.
+ * @param hHeader LASHeaderH instance
+ * @param value the value to set as the System ID for the header
+ * @return LASError enum
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern LASError LASHeader_SetSystemId(LASHeaderH hHeader, String value);
+
+ /** Returns the Software ID for the header. The caller assumes ownership of the returned string
+ * @return the software id for the header as a character array
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern String LASHeader_GetSoftwareId(LASHeaderH hHeader);
+
+ /** Sets the Software ID for the header. By default, this value is "libLAS 1.0" if it
+ * is not explicitly set. See the LAS specification for details on what this
+ * value should logically be set to.
+ * @param hHeader LASHeaderH instance
+ * @param value the value to set as the Software ID for the header
+ * @return LASError enum
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern LASError LASHeader_SetSoftwareId(LASHeaderH hHeader, String value);
+
+ /** Returns the reserved value for the header. This should aways be 0.
+ * @return the reserved value for the header.
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern Int16 LASHeader_GetReserved(LASHeaderH hHeader);
+
+ /** Returns the file creation day of the year. The values start from 1, being January 1st,
+ * and end at 365 or 366 being December 31st, depending on leap year.
+ * @return the day of the year as an integer starting from 1 for the file creation.
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern UInt16 LASHeader_GetCreationDOY(LASHeaderH hHeader);
+
+ /** Sets the file creation day of the year. The values start from 1, being January 1st. No
+ * date validation is done
+ * @param hHeader LASHeaderH instance
+ * @param value the value to set as the creation day
+ * @return LASError enum
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern LASError LASHeader_SetCreationDOY(LASHeaderH hHeader, UInt16 value);
+
+ /** Returns the file creation year. This is a four digit number representing the
+ * year for the file, ie 2003, 2008, etc.
+ * @return the creation year for the file or 0 if none is set
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern UInt16 LASHeader_GetCreationYear(LASHeaderH hHeader);
+
+ /** Sets the file creation year. This should be a four digit number representing
+ * the year for the file, ie 2003, 2008, etc. No validation on the value is done
+ * @param hHeader LASHeaderH instance
+ * @param value the value to set for the creation year
+ * @return LASError enum
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern LASError LASHeader_SetCreationYear(LASHeaderH hHeader, UInt16 value);
+
+ /** Returns the size of the header for the file in bytes.
+ * @return the size of the header for the file in bytes.
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern UInt16 LASHeader_GetHeaderSize(LASHeaderH hHeader);
+
+ /** Returns the byte offset to the start of actual point data for the file
+ * @param hHeader LASHeaderH instance
+ * @return the type offset to the start of actual point data for the file
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern UInt32 LASHeader_GetDataOffset(LASHeaderH hHeader);
+
+ /** Returns the number of variable length records in the header
+ * @param hHeader LASHeaderH instance
+ * @return the number of variable length records in the header
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern UInt32 LASHeader_GetRecordsCount(LASHeaderH hHeader);
+
+ /** Returns the record length for the points based on their data format id in bytes
+ * @param hHeader LASHeaderH instance
+ * @return the record length for the points based on their data format id in bytes
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern UInt16 LASHeader_GetDataRecordLength(LASHeaderH hHeader);
+
+ /** Returns the data format id. If this value is 1, the point data have time values
+ * associated with them. If it is 0, the point data do not have time values.
+ * @param hHeader LASHeaderH instance
+ * @return the data format id for the file.
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern byte LASHeader_GetDataFormatId(LASHeaderH hHeader);
+
+ /** Sets the data format id for the file. The value should be 1 or 0, with 1 being
+ * points that contain time values and 0 being points that do not.
+ * @param hHeader LASHeaderH instance
+ * @param value the value for the data format id, 1 or 0 are valid values.
+ * @return LASError enum
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern LASError LASHeader_SetDataFormatId(LASHeaderH hHeader, byte value);
+
+ /** Returns the number of point records in the file. This value may not reflect the actual
+ * number of point records in the file.
+ * @param hHeader LASHeaderH instance
+ * @return the number of point records in the file
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern UInt32 LASHeader_GetPointRecordsCount(LASHeaderH hHeader);
+
+ /** Sets the number of point records for the file.
+ * @param hHeader LASHeaderH instance
+ * @param value the long integer to set for the number of point records in the file
+ * @return LASError enum
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern LASError LASHeader_SetPointRecordsCount(LASHeaderH hHeader, UInt32 value);
+
+ /** Returns the number of point records by return.
+ * @param hHeader LASHeaderH instance
+ * @param index the return number to fetch the count for
+ * @return the number of point records for a given return
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern UInt32 LASHeader_GetPointRecordsByReturnCount(LASHeaderH hHeader, int index);
+
+ /** Sets the number of point records for a given return
+ * @param hHeader LASHeaderH instance
+ * @param index the return number to set the count for
+ * @param value the number of point records for the return
+ * @return LASError enum
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern LASError LASHeader_SetPointRecordsByReturnCount(LASHeaderH hHeader, int index, UInt32 value);
+
+ /** Return the X scale factor
+ * @param hHeader LASHeaderH instance
+ * @return the X scale factor
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern double LASHeader_GetScaleX(LASHeaderH hHeader);
+
+ /** Return the Y scale factor
+ * @param hHeader LASHeaderH instance
+ * @return the Y scale factor
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern double LASHeader_GetScaleY(LASHeaderH hHeader);
+
+ /** Return the Z scale factor
+ * @param hHeader LASHeaderH instance
+ * @return the Z scale factor
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern double LASHeader_GetScaleZ(LASHeaderH hHeader);
+
+ /** Sets the scale factors
+ * @param hHeader LASHeaderH instance
+ * @param x the x scale factor
+ * @param y the y scale factor
+ * @param z the z scale factor
+ * @return LASError enum
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern LASError LASHeader_SetScale(LASHeaderH hHeader, double x, double y, double z);
+
+ /** Return the X offset
+ * @param hHeader LASHeaderH instance
+ * @return the X offset
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern double LASHeader_GetOffsetX(LASHeaderH hHeader);
+
+ /** Return the Y offset
+ * @param hHeader LASHeaderH instance
+ * @return the Y offset
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern double LASHeader_GetOffsetY(LASHeaderH hHeader);
+
+ /** Return the Z offset
+ * @param hHeader LASHeaderH instance
+ * @return the Z offset
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern double LASHeader_GetOffsetZ(LASHeaderH hHeader);
+
+ /** Sets the offset values
+ * @param hHeader LASHeaderH instance
+ * @param x the x offset
+ * @param y the y offset
+ * @param z the z offset
+ * @return LASError enum
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern LASError LASHeader_SetOffset(LASHeaderH hHeader, double x, double y, double z);
+
+ /** Return the minimum x value
+ * @param hHeader LASHeaderH instance
+ * @return the minimum x value
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern double LASHeader_GetMinX(LASHeaderH hHeader);
+
+ /** Return the minimum y value
+ * @param hHeader LASHeaderH instance
+ * @return the minimum y value
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern double LASHeader_GetMinY(LASHeaderH hHeader);
+
+ /** Return the minimum z value
+ * @param hHeader LASHeaderH instance
+ * @return the minimum z value
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern double LASHeader_GetMinZ(LASHeaderH hHeader);
+
+ /** Sets the minimum values
+ * @param hHeader LASHeaderH instance
+ * @param x the x minimum
+ * @param y the y minimum
+ * @param z the z minimum
+ * @return LASError enum
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern LASError LASHeader_SetMin(LASHeaderH hHeader, double x, double y, double z);
+
+ /** Return the maximum x value
+ * @param hHeader LASHeaderH instance
+ * @return the maximum x value
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern double LASHeader_GetMaxX(LASHeaderH hHeader);
+
+ /** Return the maximum y value
+ * @param hHeader LASHeaderH instance
+ * @return the maximum y value
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern double LASHeader_GetMaxY(LASHeaderH hHeader);
+
+ /** Return the maximum z value
+ * @param hHeader LASHeaderH instance
+ * @return the maximum z value
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern double LASHeader_GetMaxZ(LASHeaderH hHeader);
+
+ /** Sets the maximum values
+ * @param hHeader LASHeaderH instance
+ * @param x the x maximum
+ * @param y the y maximum
+ * @param z the z maximum
+ * @return LASError enum
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern LASError LASHeader_SetMax(LASHeaderH hHeader, double x, double y, double z);
+
+ /** Returns the proj.4 string describing the spatial reference of the
+ * header if it is available
+ * @param hHeader LASHeaderH instance
+ * @return the proj.4 string or NULL if none is available. The caller
+ * owns the string.
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern String LASHeader_GetProj4(LASHeaderH hHeader);
+
+ /** Sets the proj4 stirng describing the spatial reference of the header.
+ * @param hHeader LASHeaderH instance
+ * @param value the proj4 string to set for the header
+ * @return LASError enum
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern LASError LASHeader_SetProj4(LASHeaderH hHeader, String value);
+
+ /** Returns the VLR record for the given index. Use LASHeader_GetRecordsCount to
+ * determine the number of VLR records available on the header.
+ * @param hHeader the LASHeaderH instance
+ * @param i the index starting from 0 of the VLR to fetch
+ * @return LASVLRH instance that models the Variable Length Record
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern LASVLRH LASHeader_GetVLR(LASHeaderH hHeader, UInt32 i);
+
+ /** Deletes a VLR record from the header for the given index.
+ * @param hHeader the LASHeaderH instance
+ * @param index the index starting from 0 of the VLR to delete
+ * @return LASErrorEnum
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern LASError LASHeader_DeleteVLR(LASHeaderH hHeader, UInt32 index);
+
+ /** Adds a VLR record to the header.
+ * @param hHeader the LASHeaderH instance
+ * @param hVLR the VLR to add to the header
+ * @return LASErrorEnum
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern LASError LASHeader_AddVLR(LASHeaderH hHeader, LASVLRH hVLR);
+
+ /****************************************************************************/
+ /* Writer Operations */
+ /****************************************************************************/
+
+ /** Creates a new LASWriterH for write operations on LAS files. The file may
+ * be opened in either LAS_MODE_APPEND or LAS_MODE_WRITE, but the file cannot
+ * be open by another other operations (another LASReaderH or LASWriterH).
+ * @param filename The filename to open to write
+ * @param hHeader an opaque pointer to a LASHeaderH that will be written to
+ * the file as part of the opening for write operation.
+ * @param mode a mode value to denote whether to open for write or append
+ * operations. Valid values are LAS_MODE_APPEND and LAS_MODE_WRITE.
+ */
+
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern LASWriterH LASWriter_Create(String filename, LASHeaderH hHeader, int mode);
+
+ /** Writes a point to the file. The location of where the point is writen is
+ * determined by the mode the file is opened in, and what the last operation was.
+ * For example, if the file was opened for append, the next point would be written
+ * at the end of the file. Likewise, if the file is opened in write mode, even
+ * if the file already existed, the next WritePoint operation will happen at the
+ * end of the header and all of the existing points in the file will be overwritten.
+ * @param hWriter opaque pointer to the LASWriterH instance
+ * @param hPoint the opaque LASPointH pointer to write
+ * @return LE_None if no error occurred during the write operation.
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern LASError LASWriter_WritePoint(LASWriterH hWriter, LASPointH hPoint);
+
+ /** Overwrites the header for the file represented by the LASWriterH. It does
+ * not matter if the file is opened for append or for write.
+ * @param hWriter opaque pointer to the LASWriterH instance
+ * @param hHeader LASHeaderH instance to write into the file
+ * @return LE_None if no error occurred during the operation.
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern LASError LASWriter_WriteHeader(LASWriterH hWriter, LASHeaderH hHeader);
+
+ /** Destroys the LASWriterH instance, effectively closing the file and performing
+ * housekeeping operations.
+ * @param hWriter LASWriterH instance to close
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern void LASWriter_Destroy(LASWriterH hWriter);
+
+ /****************************************************************************/
+ /* GUID Operations */
+ /****************************************************************************/
+
+ /** Returns the GUID value for the header as an opaque LASGuidH pointer.
+ * @param hHeader the opaque pointer to the LASHeaderH
+ * @return the GUID value for the header as an opaque LASGuidH pointer.
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern LASGuidH LASHeader_GetGUID(LASHeaderH hHeader);
+
+ /** Returns a new random GUID.
+ * @return a new random GUID
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern LASGuidH LASGuid_Create();
+
+ /** Creates a new GUID opaque pointer using the given string.
+ * @param string A GUID string in the form "00000000-0000-0000-0000-000000000000"
+ * An example GUID might be something like '8388F1B8-AA1B-4108-BCA3-6BC68E7B062E'
+ * @return the GUID value as an opaque LASGuidH pointer.
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern LASGuidH LASGuid_CreateFromString(String string_);
+
+ /** Destroys a GUID opaque pointer and removes it from the heap
+ * @param hId the GUID value to destroy as an opaque LASGuidH pointer.
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern void LASGuid_Destroy(LASGuidH hId);
+
+ /** Determines if two GUIDs are equal.
+ * @param hId1 the first GUID
+ * @param hId2 the second GUID
+ * @return 0 if false, 1 if true. Use the LASError_GetLastError* methods to
+ * determine if an error occured during the operation of this function.
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern int LASGuid_Equals(LASGuidH hId1, LASGuidH hId2);
+
+ /** Returns a string representation of the GUID opqaue pointer. The caller
+ * owns the string.
+ * @param hId the LASGuidH pointer
+ * @return a string representation of the GUID opaque pointer.
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern String LASGuid_AsString(LASGuidH hId);
+
+ /****************************************************************************/
+ /* VLR Operations */
+ /****************************************************************************/
+
+ /** Creates a new VLR record
+ * @return a new VLR record
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern LASVLRH LASVLR_Create();
+
+ /** Destroys a VLR record and removes it from the heap
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern void LASVLR_Destroy(LASVLRH hVLR);
+
+ /** Returns the User Id for the VLR
+ * @param hVLR the LASVLRH instance
+ * @return the User Id for the VLR
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern String LASVLR_GetUserId(LASVLRH hVLR);
+
+ /** Sets the User Id for the VLR
+ * @param hVLR the LASVLRH instance
+ * @param value the value to set for the User Id. It will be clipped to fit
+ * within 16 characters
+ * @return LASErrorEnum
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern LASError LASVLR_SetUserId(LASVLRH hVLR, String value);
+
+ /** Gets the description for the VLR
+ * @param hVLR the LASVLRH instance
+ * @return the description for the VLR
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern String LASVLR_GetDescription(LASVLRH hVLR);
+
+ /** Sets the description for the VLR
+ * @param hVLR the LASVLRH instance
+ * @param value the value to set for the description. It will be clipped to fit
+ * within 32 characters
+ * @return LASErrorEnum
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern LASError LASVLR_SetDescription(LASVLRH hVLR, String value);
+
+ /** Returns the record length of the data stored in the VLR
+ * @param hVLR the LASVLRH instance
+ * @return the record length of the data stored in the VLR
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern UInt16 LASVLR_GetRecordLength(LASVLRH hVLR);
+
+ /** Sets the record length of the data stored in the VLR
+ * @param hVLR the LASVLRH instance
+ * @param value the length to set for the VLR data length
+ * @return LASErrorEnum
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern LASError LASVLR_SetRecordLength(LASVLRH hVLR, UInt16 value);
+
+ /** Gets the record id for the VLR
+ * @param hVLR the LASVLRH instance
+ * @return the record id for the VLR
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern UInt16 LASVLR_GetRecordId(LASVLRH hVLR);
+
+ /** Sets the record id for the VLR
+ * @param hVLR the LASVLRH instance
+ * @param value the record id to set
+ * @return LASErrorEnum
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern LASError LASVLR_SetRecordId(LASVLRH hVLR, UInt16 value);
+
+ /** Gets the reserved value of the VLR. This should be 0 and should aways be 0.
+ * @param hVLR the LASVLRH instance
+ * @return the reserved value of the VLR.
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern UInt16 LASVLR_GetReserved(LASVLRH hVLR);
+
+ /** Sets the reserved value of the VLR. This should be 0 and you should not
+ * have to ever monkey with this value according to the spec.
+ * @param hVLR the LASVLRH instance
+ * @param value the value to set for the reserved value
+ * @return LASErrorEnum
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern LASError LASVLR_SetReserved(LASVLRH hVLR, UInt16 value);
+
+ /** Gets the data stream for the VLR as an array of bytes
+ * @param hVLR the LASVLRH instance
+ * @param data a pointer to where place the array
+ * @param length a pointer to where to place the length of the array
+ * @return LASErrorEnum
+ */
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern LASError LASVLR_GetData(LASVLRH hVLR, out byte[] data);//, ref int length);
+
+ [DllImport(DLL_LAS_VERSION)]
+ public static extern LASError LASVLR_SetData(LASVLRH hVLR, ref byte[] data, int length);
+ }
+}
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/csharp/dotnetLibLAS_xpress.sln work/libLAS-1.2.1/csharp/dotnetLibLAS_xpress.sln
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/csharp/dotnetLibLAS_xpress.sln 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/csharp/dotnetLibLAS_xpress.sln 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,53 @@
+
+Microsoft Visual Studio Solution File, Format Version 9.00
+# Visual C# Express 2005
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "dotnetLibLAS_Express", "dotnetLibLAS\dotnetLibLAS_Express.csproj", "{5652982E-9576-47F1-896A-1B700E6648FA}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NUnitTest_Express", "NUnitTest\NUnitTest_Express.csproj", "{E019C630-508C-4F2C-9743-F66423C216F2}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HelloWorldLAS_Express", "HelloWorldLAS\HelloWorldLAS_Express.csproj", "{85856BBA-7888-4196-9602-740986C7FA98}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Read_Express", "Samples\Read_Express\Read_Express.csproj", "{545BB2BA-CE19-474B-AB86-5BC2373658CB}"
+ ProjectSection(ProjectDependencies) = postProject
+ {5652982E-9576-47F1-896A-1B700E6648FA} = {5652982E-9576-47F1-896A-1B700E6648FA}
+ EndProjectSection
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Read", "Samples\Read\Read.csproj", "{D2CFF726-B11D-4C01-B8CD-5FFC250302A2}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Write_Express", "Samples\WriteLAS\Write_Express.csproj", "{51ACDC75-D5FA-445C-9E04-E7BF07AAFAD5}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {5652982E-9576-47F1-896A-1B700E6648FA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {5652982E-9576-47F1-896A-1B700E6648FA}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {5652982E-9576-47F1-896A-1B700E6648FA}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {5652982E-9576-47F1-896A-1B700E6648FA}.Release|Any CPU.Build.0 = Release|Any CPU
+ {E019C630-508C-4F2C-9743-F66423C216F2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {E019C630-508C-4F2C-9743-F66423C216F2}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {E019C630-508C-4F2C-9743-F66423C216F2}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {E019C630-508C-4F2C-9743-F66423C216F2}.Release|Any CPU.Build.0 = Release|Any CPU
+ {85856BBA-7888-4196-9602-740986C7FA98}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {85856BBA-7888-4196-9602-740986C7FA98}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {85856BBA-7888-4196-9602-740986C7FA98}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {85856BBA-7888-4196-9602-740986C7FA98}.Release|Any CPU.Build.0 = Release|Any CPU
+ {545BB2BA-CE19-474B-AB86-5BC2373658CB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {545BB2BA-CE19-474B-AB86-5BC2373658CB}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {545BB2BA-CE19-474B-AB86-5BC2373658CB}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {545BB2BA-CE19-474B-AB86-5BC2373658CB}.Release|Any CPU.Build.0 = Release|Any CPU
+ {D2CFF726-B11D-4C01-B8CD-5FFC250302A2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {D2CFF726-B11D-4C01-B8CD-5FFC250302A2}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {D2CFF726-B11D-4C01-B8CD-5FFC250302A2}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {D2CFF726-B11D-4C01-B8CD-5FFC250302A2}.Release|Any CPU.Build.0 = Release|Any CPU
+ {51ACDC75-D5FA-445C-9E04-E7BF07AAFAD5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {51ACDC75-D5FA-445C-9E04-E7BF07AAFAD5}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {51ACDC75-D5FA-445C-9E04-E7BF07AAFAD5}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {51ACDC75-D5FA-445C-9E04-E7BF07AAFAD5}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/csharp/dotnetLibLAS.sln work/libLAS-1.2.1/csharp/dotnetLibLAS.sln
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/csharp/dotnetLibLAS.sln 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/csharp/dotnetLibLAS.sln 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,38 @@
+
+Microsoft Visual Studio Solution File, Format Version 9.00
+# Visual Studio 2005
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "dotnetLibLAS", "dotnetLibLAS\dotnetLibLAS.csproj", "{5652982E-9576-47F1-896A-1B700E6648FA}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NUnitTest", "NUnitTest\NUnitTest.csproj", "{E019C630-508C-4F2C-9743-F66423C216F2}"
+ ProjectSection(ProjectDependencies) = postProject
+ {5652982E-9576-47F1-896A-1B700E6648FA} = {5652982E-9576-47F1-896A-1B700E6648FA}
+ EndProjectSection
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HelloWorldLAS", "HelloWorldLAS\HelloWorldLAS.csproj", "{85856BBA-7888-4196-9602-740986C7FA98}"
+ ProjectSection(ProjectDependencies) = postProject
+ {5652982E-9576-47F1-896A-1B700E6648FA} = {5652982E-9576-47F1-896A-1B700E6648FA}
+ EndProjectSection
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {5652982E-9576-47F1-896A-1B700E6648FA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {5652982E-9576-47F1-896A-1B700E6648FA}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {5652982E-9576-47F1-896A-1B700E6648FA}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {5652982E-9576-47F1-896A-1B700E6648FA}.Release|Any CPU.Build.0 = Release|Any CPU
+ {E019C630-508C-4F2C-9743-F66423C216F2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {E019C630-508C-4F2C-9743-F66423C216F2}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {E019C630-508C-4F2C-9743-F66423C216F2}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {E019C630-508C-4F2C-9743-F66423C216F2}.Release|Any CPU.Build.0 = Release|Any CPU
+ {85856BBA-7888-4196-9602-740986C7FA98}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {85856BBA-7888-4196-9602-740986C7FA98}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {85856BBA-7888-4196-9602-740986C7FA98}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {85856BBA-7888-4196-9602-740986C7FA98}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/csharp/HelloWorldLAS/HelloWorldLAS_Express.csproj work/libLAS-1.2.1/csharp/HelloWorldLAS/HelloWorldLAS_Express.csproj
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/csharp/HelloWorldLAS/HelloWorldLAS_Express.csproj 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/csharp/HelloWorldLAS/HelloWorldLAS_Express.csproj 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,56 @@
+
+
+ Debug
+ AnyCPU
+ 8.0.50727
+ 2.0
+ {85856BBA-7888-4196-9602-740986C7FA98}
+ Exe
+ Properties
+ HelloWordLAS
+ HelloWordLAS
+
+
+
+
+ 2.0
+
+
+ true
+ full
+ false
+ bin\Debug\
+ DEBUG;TRACE
+ prompt
+ 4
+
+
+ pdbonly
+ true
+ bin\Release\
+ TRACE
+ prompt
+ 4
+
+
+
+ False
+ ..\dotnetLibLAS\bin\Release\dotnetLibLAS.dll
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/csharp/HelloWorldLAS/HelloWorldLAS.csproj work/libLAS-1.2.1/csharp/HelloWorldLAS/HelloWorldLAS.csproj
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/csharp/HelloWorldLAS/HelloWorldLAS.csproj 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/csharp/HelloWorldLAS/HelloWorldLAS.csproj 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,59 @@
+
+
+ Debug
+ AnyCPU
+ 8.0.50727
+ 2.0
+ {85856BBA-7888-4196-9602-740986C7FA98}
+ Exe
+ Properties
+ HelloWordLAS
+ HelloWordLAS
+
+
+ true
+ full
+ false
+ bin\Debug\
+ DEBUG;TRACE
+ prompt
+ 4
+
+
+ pdbonly
+ true
+ bin\Release\
+ TRACE
+ prompt
+ 4
+
+
+
+
+
+
+
+
+ False
+ ..\dotnetLibLAS\bin\Debug\dotnetLibLAS.dll
+
+
+
+
+ False
+ ..\dotnetLibLAS\bin\Release\dotnetLibLAS.dll
+
+
+
+
+
+
+
+
+
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/csharp/HelloWorldLAS/Program.cs work/libLAS-1.2.1/csharp/HelloWorldLAS/Program.cs
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/csharp/HelloWorldLAS/Program.cs 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/csharp/HelloWorldLAS/Program.cs 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,92 @@
+/******************************************************************************
+ * $Id$
+ *
+ * Project: libLAS - http://liblas.org - A BSD library for LAS format data.
+ * Purpose: Sample program demonstrating use of libLAS for .NET/Mono
+ * Author: Martin Vales, martin_gnu@mundo-r.com
+ *
+ ******************************************************************************
+ * Copyright (c) 2008, Martin Vales
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following
+ * conditions are met:
+ *
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided
+ * with the distribution.
+ * * Neither the name of the Martin Isenburg or Iowa Department
+ * of Natural Resources nor the names of its contributors may be
+ * used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+ * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+ * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
+ * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
+ * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
+ * OF SUCH DAMAGE.
+ ****************************************************************************/
+
+using System;
+using System.Text;
+using LibLAS;
+
+class Program
+{
+ static void Main(string[] args)
+ {
+ try
+ {
+ LASReader lasreader = new LASReader(@"c:\las\sample_our2.las");
+
+ LASPoint laspoint;
+
+ LASHeader lasheader = lasreader.GetHeader();
+ Console.WriteLine(lasheader.SoftwareId);//
+ lasheader.VersionMinor = 0;
+ LASWriter laswriter = new LASWriter(@"c:\las\sample_our.las", lasheader, LASReadWriteMode.LASModeWrite);
+
+ Console.WriteLine("Number of points in file= {0}", lasheader.PointRecordsCount);
+
+ while (lasreader.GetNextPoint())
+ {
+ laspoint = lasreader.GetPoint();
+ laspoint.X = laspoint.X + 3;
+
+ //Console.WriteLine(laspoint.X + "," + laspoint.Y + "," + laspoint.Z);
+
+ laswriter.WritePoint(laspoint);
+ }
+ }
+ catch (LASException e)
+ {
+ Console.WriteLine("\nLASException! Msg: {0}", e.Message);
+ }
+ catch (SystemException e)
+ {
+ Console.WriteLine("\nException! Msg: {0}", e.Message);
+ }
+ catch
+ {
+ Console.WriteLine("Unknown exception caught");
+ }
+ finally
+ {
+ Console.WriteLine("Do i need something to do?");
+ }
+ Console.WriteLine("End of file");
+ Console.Read();
+ }
+}
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/csharp/HelloWorldLAS/Properties/AssemblyInfo.cs work/libLAS-1.2.1/csharp/HelloWorldLAS/Properties/AssemblyInfo.cs
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/csharp/HelloWorldLAS/Properties/AssemblyInfo.cs 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/csharp/HelloWorldLAS/Properties/AssemblyInfo.cs 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,33 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("HelloWorldLAS")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("Martin Vales")]
+[assembly: AssemblyProduct("HelloWorldLAS")]
+[assembly: AssemblyCopyright("Copyright © 2008")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("c988e4fe-9eb1-4333-bb7e-e978fb08af7a")]
+
+// Version information for an assembly consists of the following four values:
+//
+// Major Version
+// Minor Version
+// Build Number
+// Revision
+//
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/csharp/makefile.vc work/libLAS-1.2.1/csharp/makefile.vc
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/csharp/makefile.vc 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/csharp/makefile.vc 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,27 @@
+# $Id$
+#
+# A proxy makefile on MSBuild command to build .NET bindings using NMAKE.
+# Defines three targets: build, rebuild and clean.
+#
+# TODO: Define install and package targets
+#
+!INCLUDE ..\nmake.opt
+
+BUILDACTION="Build"
+BUILDPLATFORM="Any CPU"
+
+!IF "$(BUILD_DEBUG)" == "YES"
+BUILDCONFIG=Debug
+!ELSE
+BUILDCONFIG=Release
+!ENDIF
+
+default: build
+
+rebuild: clean build
+
+build:
+ msbuild dotnetLibLAS.sln /t:$(BUILDACTION) /p:Configuration=$(BUILDCONFIG) /p:Platform=$(BUILDPLATFORM)
+
+clean:
+ msbuild dotnetLibLAS.sln /t:Clean /p:Configuration=$(BUILDCONFIG) /p:Platform=$(BUILDPLATFORM)
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/csharp/NUnitTest/LASFilesClass.cs work/libLAS-1.2.1/csharp/NUnitTest/LASFilesClass.cs
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/csharp/NUnitTest/LASFilesClass.cs 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/csharp/NUnitTest/LASFilesClass.cs 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,60 @@
+/******************************************************************************
+ * $Id$
+ *
+ * Project: libLAS - http://liblas.org - A BSD library for LAS format data.
+ * Purpose: Test cases of LASFile class, .NET/Mono bindings
+ * Author: Martin Vales, martin_gnu@mundo-r.com
+ *
+ ******************************************************************************
+ * Copyright (c) 2008, Martin Vales
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following
+ * conditions are met:
+ *
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided
+ * with the distribution.
+ * * Neither the name of the Martin Isenburg or Iowa Department
+ * of Natural Resources nor the names of its contributors may be
+ * used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+ * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+ * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
+ * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
+ * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
+ * OF SUCH DAMAGE.
+ ****************************************************************************/
+
+using System;
+using System.Collections.Generic;
+using System.Text;
+
+namespace NUnitTest
+{
+ static public class LASFilesClass
+ {
+ static public string folder = @"C:\las\data";
+ static public string Folder
+ {
+ get
+ {
+ return folder;
+ }
+ //static public string TO_core_last_zoom = "TO_core_last_zoom";
+ }
+ }
+}
\ No newline at end of file
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/csharp/NUnitTest/LASGuidTest.cs work/libLAS-1.2.1/csharp/NUnitTest/LASGuidTest.cs
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/csharp/NUnitTest/LASGuidTest.cs 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/csharp/NUnitTest/LASGuidTest.cs 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,83 @@
+/******************************************************************************
+ * $Id$
+ *
+ * Project: libLAS - http://liblas.org - A BSD library for LAS format data.
+ * Purpose: Test cases of LASGuid class, .NET/Mono bindings
+ * Author: Martin Vales, martin_gnu@mundo-r.com
+ *
+ ******************************************************************************
+ * Copyright (c) 2008, Martin Vales
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following
+ * conditions are met:
+ *
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided
+ * with the distribution.
+ * * Neither the name of the Martin Isenburg or Iowa Department
+ * of Natural Resources nor the names of its contributors may be
+ * used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+ * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+ * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
+ * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
+ * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
+ * OF SUCH DAMAGE.
+ ****************************************************************************/
+
+using System;
+using System.Collections.Generic;
+using System.Text;
+using NUnit.Framework;
+using LibLAS;
+
+namespace NUnitTest
+{
+ [TestFixture]
+ public class LASGuidTest
+ {
+ // LASPoint.
+
+ [SetUp]
+ protected void SetUp()
+ {
+ }
+
+ [Test]
+ public void ConstructionfromString()
+ {
+ LASGuid guid1 = new LASGuid("00000000-0000-0000-0000-000000000000");
+
+ LASGuid guid2 = new LASGuid("3F2504E0-4F89-11D3-9A0C-0305E82C3301");
+
+ Assert.AreNotSame(guid1, guid2);
+ Assert.AreEqual(guid1.ToString(), "00000000-0000-0000-0000-000000000000");
+ Assert.AreEqual(guid2.ToString().ToUpper(), "3F2504E0-4F89-11D3-9A0C-0305E82C3301");
+ Assert.IsNotNull(guid1);
+ Assert.IsNotNull(guid2);
+ }
+
+ [Test]
+ public void Equals()
+ {
+ LASGuid guid1 = new LASGuid("3F2504E0-4F89-11D3-9A0C-0305E82C3301");
+ LASGuid guid2 = new LASGuid("3F2504E0-4F89-11D3-9A0C-0305E82C3301");
+
+ Assert.IsTrue(guid1.Equals(guid2));
+ }
+ }
+}
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/csharp/NUnitTest/LASHeaderTest.cs work/libLAS-1.2.1/csharp/NUnitTest/LASHeaderTest.cs
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/csharp/NUnitTest/LASHeaderTest.cs 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/csharp/NUnitTest/LASHeaderTest.cs 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,236 @@
+/******************************************************************************
+ * $Id$
+ *
+ * Project: libLAS - http://liblas.org - A BSD library for LAS format data.
+ * Purpose: Test cases of LASHeader class, .NET/Mono bindings
+ * Author: Martin Vales, martin_gnu@mundo-r.com
+ *
+ ******************************************************************************
+ * Copyright (c) 2008, Martin Vales
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following
+ * conditions are met:
+ *
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided
+ * with the distribution.
+ * * Neither the name of the Martin Isenburg or Iowa Department
+ * of Natural Resources nor the names of its contributors may be
+ * used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+ * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+ * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
+ * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
+ * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
+ * OF SUCH DAMAGE.
+ ****************************************************************************/
+
+using System;
+using System.Collections.Generic;
+using System.Text;
+using NUnit.Framework;
+using LibLAS;
+
+namespace NUnitTest
+{
+ [TestFixture]
+ public class LASHeaderTest
+ {
+ [SetUp]
+ protected void SetUp()
+ {
+ }
+
+ [Test]
+ public void CopyConstructor()
+ {
+ LASHeader header = new LASHeader();
+ // string sig = "LASF and garbage";
+ // header.FileSignature = sig;
+ // Assert.AreEqual(header.FileSignature.Length,4);
+ // LASHeader h1;
+ Assert.AreEqual(1, 1);
+ //h1.SetFileSignature(sig);
+ //ensure_not(h1.GetFileSignature() == sig);
+ //ensure_equals(h1.GetFileSignature().size(), 4);
+ //ensure_equals(h1.GetFileSignature(), LASHeader::FileSignature);
+
+ //LASHeader h2(h1);
+
+ //ensure_not(h2.GetFileSignature() == sig);
+ //ensure_equals(h2.GetFileSignature().size(), 4);
+ //ensure_equals(h2.GetFileSignature(), LASHeader::FileSignature);
+ }
+
+ [Test]
+ public void FileSignature()
+ {
+ LASHeader header = new LASHeader();
+ // string sig = "LASF and garbage";
+
+ Assert.AreEqual(header.FileSignature.Length, 4);
+ Assert.AreEqual(header.FileSignature, "LASF");
+
+ // I can not set FileSignature from c# API because i am a bad guy.
+ //header.FileSignature = "LASF";
+ }
+
+ [Test]
+ public void FileSourceId()
+ {
+ LASHeader h1 = new LASHeader();
+
+ UInt16 id1 = 1;
+ UInt16 id2 = 65535;
+ UInt16 overflowed = 0;
+
+ h1.FileSourceId = id1;
+ Assert.AreEqual(h1.FileSourceId, id1);
+ h1.FileSourceId = id2;
+ Assert.AreEqual(h1.FileSourceId, id2);
+
+ // Unsigned overflow
+ // Likely compiler warning: truncation from int to liblas::uint16_t
+ h1.FileSourceId = (ushort)(id2 + 1);
+ Assert.AreEqual(h1.FileSourceId, overflowed);
+ }
+
+ [Test]
+ public void Reserved()
+ {
+ LASHeader h = new LASHeader();
+
+ Assert.AreEqual(h.Reserved, 0);
+ }
+
+ [Test]
+ public void ProjectId()
+ {
+ LASHeader h = new LASHeader();
+
+ //string strid="030B4A82-1B7C-11CF-9D53-00AA003C9CB6";
+ // Assert.AreEqual(h.Reserved, 0);
+ // liblas::guid id(strid.c_str());
+ // h.ProjectId=;
+ // std::string strid("030B4A82-1B7C-11CF-9D53-00AA003C9CB6");
+ //liblas::guid id(strid.c_str());
+
+ //liblas::LASHeader h;
+ //h.SetProjectId(id);
+
+ //ensure_not(h.GetProjectId().is_null());
+ //ensure_equals(h.GetProjectId(), id);
+ }
+
+ [Test]
+ public void MinorMajorVersion()
+ {
+ LASHeader h = new LASHeader();
+ h.VersionMinor = 0;
+ h.VersionMajor = 1;
+ Assert.AreEqual(h.VersionMinor, 0);
+ Assert.AreEqual(h.VersionMajor, 1);
+
+ h.VersionMinor = 1;
+ h.VersionMajor = 1;
+ Assert.AreEqual(h.VersionMinor, 1);
+ Assert.AreEqual(h.VersionMajor, 1);
+
+ try
+ {
+ h.VersionMajor = 2;
+ //don´t get the next line...
+ Assert.AreEqual(2, 5);
+ }
+ catch (LASException e)
+ {
+ Assert.AreEqual(e.Message, "Exception in Set Header VersionMajor.");
+ }
+
+ try
+ {
+ h.VersionMinor = 2;
+ //don´t get the next line...
+ Assert.AreEqual(2, 5);
+ }
+ catch (LASException e)
+ {
+ Assert.AreEqual(e.Message, "Exception in Set Header VersionMinor.");
+ }
+ }
+
+ [Test]
+ public void SoftwareId()
+ {
+ LASHeader h = new LASHeader();
+
+ string softid1 = "Short Soft Id"; // 13 bytes
+ int len1 = softid1.Length;
+ string softid2 = "Long Software Identifier - XX YY"; // 32 bytes
+ int len2 = softid2.Length;
+
+ h.SoftwareId = softid1;
+ Assert.AreEqual(h.SoftwareId, softid1);
+ Assert.AreEqual(h.SoftwareId.Length, len1);
+ // Assert.AreEqual(h.GetSoftwareId(true).size(), 32);
+
+ h.SoftwareId = softid2;
+ Assert.AreEqual(h.SoftwareId, softid2);
+ Assert.AreEqual(h.SoftwareId.Length, len2);
+ // Assert.AreEqual(h.GetSoftwareId(true).size(), 32);
+ }
+
+ [Test]
+ public void PointRecordsByReturnCount()
+ {
+ LASHeader h = new LASHeader();
+ // Assert.AreEqual(h.GetPointRecordsByReturnCount(5),5);
+
+ h.SetPointRecordsByReturnCount(0, 100);
+ //ensure_equals(h.GetPointRecordsByReturnCount().size(), 5);
+ Assert.AreEqual(h.GetPointRecordsByReturnCount(0), 100);
+
+ h.SetPointRecordsByReturnCount(1, 101);
+ //ensure_equals(h.GetPointRecordsByReturnCount().size(), 5);
+ Assert.AreEqual(h.GetPointRecordsByReturnCount(1), 101);
+
+ h.SetPointRecordsByReturnCount(2, 102);
+ //ensure_equals(h.GetPointRecordsByReturnCount().size(), 5);
+ Assert.AreEqual(h.GetPointRecordsByReturnCount(2), 102);
+
+ h.SetPointRecordsByReturnCount(3, 103);
+ //ensure_equals(h.GetPointRecordsByReturnCount().size(), 5);
+ Assert.AreEqual(h.GetPointRecordsByReturnCount(3), 103);
+
+ h.SetPointRecordsByReturnCount(4, 104);
+ //ensure_equals(h.GetPointRecordsByReturnCount().size(), 5);
+ Assert.AreEqual(h.GetPointRecordsByReturnCount(4), 104);
+
+ try
+ {
+ // 5 is out of range
+ h.SetPointRecordsByReturnCount(5, 500);
+ //don´t get the next line...
+ Assert.AreEqual(2, 5);
+ }
+ catch (LASException e)
+ {
+ Assert.AreEqual(e.Message, "Exception in Set Header SetPointRecordsByReturnCount.");
+ }
+ }
+ }
+}
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/csharp/NUnitTest/LASPointTest.cs work/libLAS-1.2.1/csharp/NUnitTest/LASPointTest.cs
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/csharp/NUnitTest/LASPointTest.cs 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/csharp/NUnitTest/LASPointTest.cs 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,281 @@
+/******************************************************************************
+ * $Id$
+ *
+ * Project: libLAS - http://liblas.org - A BSD library for LAS format data.
+ * Purpose: Test cases of LASPoint class, .NET/Mono bindings
+ * Author: Martin Vales, martin_gnu@mundo-r.com
+ *
+ ******************************************************************************
+ * Copyright (c) 2008, Martin Vales
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following
+ * conditions are met:
+ *
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided
+ * with the distribution.
+ * * Neither the name of the Martin Isenburg or Iowa Department
+ * of Natural Resources nor the names of its contributors may be
+ * used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+ * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+ * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
+ * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
+ * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
+ * OF SUCH DAMAGE.
+ ****************************************************************************/
+
+using System;
+using System.Collections.Generic;
+using System.Text;
+using NUnit.Framework;
+using LibLAS;
+
+namespace NUnitTest
+{
+ [TestFixture]
+ public class LASPointTest
+ {
+ LASPoint point = new LASPoint();
+
+ [SetUp]
+ protected void SetUp()
+ {
+ }
+
+ [Test]
+ public void SetPointCoordinates()
+ {
+ LASPoint pointB = new LASPoint();
+ pointB.X = 23.0;
+
+ Assert.AreEqual(pointB.X, 23.0);
+
+ Assert.IsFalse(point.Equals(pointB));
+ pointB.X = 0.0;
+ point.X = 0.0;
+ Assert.IsTrue(point.Equals(point));
+
+ pointB.X = 1.123;
+ pointB.Y = 2.456;
+ pointB.Z = 3.789;
+ LASPoint pointC = new LASPoint();
+ pointC.X = 1.123;
+ pointC.Y = 2.456;
+ pointC.Z = 3.789;
+ Assert.IsTrue(pointC.Equals(pointB));
+ }
+
+ [Test]
+ public void PointValid()
+ {
+ LASPoint pointB = new LASPoint();
+ pointB.X = 23.0;
+
+ Assert.IsTrue(point.IsValid());
+ Assert.IsTrue(pointB.IsValid());
+ }
+
+ [Test]
+ public void ReturnNumber()
+ {
+ Assert.AreEqual(point.ReturnNumber, 0);
+
+ UInt16 num1 = 7;
+ point.ReturnNumber = num1;
+ Assert.AreEqual(point.ReturnNumber, num1);
+
+ UInt16 num2 = 3;
+ point.ReturnNumber = num2;
+ Assert.AreEqual(point.ReturnNumber, num2);
+
+ try
+ {
+ //out of range
+ point.ReturnNumber = 8;
+ Assert.IsTrue(point.Validate());
+ }
+ catch (LASException e)
+ {
+ Assert.AreEqual((int)e.Data["DataMemberFlag"] & (int)LASPoint.DataMemberFlag.eReturnNumber,
+ (int)LASPoint.DataMemberFlag.eReturnNumber);
+ }
+ }
+
+ [Test]
+ public void NumberOfReturns()
+ {
+ Assert.AreEqual(point.NumberOfReturns, 0);
+
+ UInt16 num1 = 7;
+ point.NumberOfReturns = num1;
+ Assert.AreEqual(point.NumberOfReturns, num1);
+
+ UInt16 num2 = 3;
+ point.NumberOfReturns = num2;
+ Assert.AreEqual(point.NumberOfReturns, num2);
+
+ try
+ {
+ //out of range
+ point.NumberOfReturns = 8;
+ Assert.IsTrue(point.Validate());
+ }
+ catch (LASException e)
+ {
+ Assert.AreEqual((int)e.Data["DataMemberFlag"] & (int)LASPoint.DataMemberFlag.eNumberOfReturns,
+ (int)LASPoint.DataMemberFlag.eNumberOfReturns);
+ }
+ }
+
+ [Test]
+ public void ScanDirection()
+ {
+ //Assert.AreEqual(point.ScanDirection, 0);
+
+ //UInt16 num1 = 0;
+ //point.ScanDirection = num1;
+ //Assert.AreEqual(point.ScanDirection, num1);
+ //UInt16 num2 = 1;
+ //point.ScanDirection = num2;
+ //Assert.AreEqual(point.ScanDirection, num2);
+
+ //try
+ //{
+ // //out of range
+ // point.ScanDirection = 2;
+ // Assert.IsTrue(point.Validate());
+ //}
+ //catch (LASException e)
+ //{
+ // Assert.AreEqual((int)e.Data["DataMemberFlag"] & (int)LASPoint.DataMemberFlag.eScanDirection,
+ // (int)LASPoint.DataMemberFlag.eScanDirection);
+ //}
+ }
+
+ [Test]
+ public void FlightLineEdge()
+ {
+ Assert.AreEqual(point.FlightLineEdge, 0);
+
+ UInt16 num1 = 0;
+ point.FlightLineEdge = num1;
+ Assert.AreEqual(point.FlightLineEdge, num1);
+
+ UInt16 num2 = 1;
+ point.FlightLineEdge = num2;
+ Assert.AreEqual(point.FlightLineEdge, num2);
+
+ try
+ {
+ //out of range
+ point.FlightLineEdge = 2;
+
+ Assert.IsTrue(point.Validate());
+ }
+ catch (LASException e)
+ {
+ Assert.AreEqual((int)e.Data["DataMemberFlag"] & (int)LASPoint.DataMemberFlag.eFlightLineEdge,
+ (int)LASPoint.DataMemberFlag.eFlightLineEdge);
+ }
+ }
+
+ [Test]
+ public void ScanFlags()
+ {
+ byte zeros = 0;
+ LASPoint pointS = new LASPoint();
+ Assert.AreEqual(pointS.ScanFlags, zeros);
+ pointS.ReturnNumber = 3;
+ pointS.NumberOfReturns = 7;
+ pointS.ScanDirection = 0;
+ pointS.FlightLineEdge = 1;
+ string expected = "10111011";
+ byte bits = pointS.ScanFlags;
+ Assert.AreEqual(Convert.ToString(pointS.ScanFlags, 2), (expected));
+
+ LASPoint pointN;
+ pointN = pointS.Copy();
+
+ Assert.AreEqual(pointN.ScanFlags, pointS.ScanFlags);
+ }
+
+ [Test]
+ public void Classification()
+ {
+ Assert.AreEqual(point.Classification, 0);
+
+ byte num1 = 0;
+ point.Classification = num1;
+ Assert.AreEqual(point.Classification, num1);
+
+ byte num2 = 31;
+ point.Classification = num2;
+ Assert.AreEqual(point.Classification, num2);
+
+ //try
+ //{
+ // //out of range
+ // point.Classification = 2;
+
+ // Assert.IsTrue(point.Validate());
+ //}
+ //catch (LASException e)
+ //{
+ // Assert.AreEqual((int)e.Data["DataMemberFlag"] & (int)LASPoint.DataMemberFlag.eClassification,
+ // (int)LASPoint.DataMemberFlag.eClassification);
+ //}
+ }
+
+ [Test]
+ public void ScanAngleRank()
+ {
+ Assert.AreEqual(point.ScanAngleRank, 0);
+
+ SByte num1 = 90;
+ point.ScanAngleRank = num1;
+ Assert.AreEqual(point.ScanAngleRank, num1);
+
+ SByte num2 = -90;
+ point.ScanAngleRank = num2;
+ Assert.AreEqual(point.ScanAngleRank, num2);
+
+ try
+ {
+ //out of range
+ point.ScanAngleRank = 91;
+
+ Assert.IsTrue(point.Validate());
+ }
+ catch (LASException e)
+ {
+ Assert.AreEqual((int)e.Data["DataMemberFlag"] & (int)LASPoint.DataMemberFlag.eScanAngleRank,
+ (int)LASPoint.DataMemberFlag.eScanAngleRank);
+ }
+ }
+
+ [Test]
+ public void UserData()
+ {
+ Assert.AreEqual(point.UserData, 0);
+
+ byte num1 = 7;
+ point.UserData = num1;
+ Assert.AreEqual(point.UserData, num1);
+ }
+ }
+}
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/csharp/NUnitTest/LASReaderTest.cs work/libLAS-1.2.1/csharp/NUnitTest/LASReaderTest.cs
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/csharp/NUnitTest/LASReaderTest.cs 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/csharp/NUnitTest/LASReaderTest.cs 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,121 @@
+/******************************************************************************
+ * $Id$
+ *
+ * Project: libLAS - http://liblas.org - A BSD library for LAS format data.
+ * Purpose: Test cases of LASReader class, .NET/Mono bindings
+ * Author: Martin Vales, martin_gnu@mundo-r.com
+ *
+ ******************************************************************************
+ * Copyright (c) 2008, Martin Vales
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following
+ * conditions are met:
+ *
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided
+ * with the distribution.
+ * * Neither the name of the Martin Isenburg or Iowa Department
+ * of Natural Resources nor the names of its contributors may be
+ * used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+ * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+ * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
+ * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
+ * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
+ * OF SUCH DAMAGE.
+ ****************************************************************************/
+
+using System;
+using System.Collections.Generic;
+using System.Text;
+using NUnit.Framework;
+using LibLAS;
+
+namespace NUnitTest
+{
+ [TestFixture]
+ public class LASReaderTest
+ {
+ private string folder = @"C:\las\data";
+
+ private string TO_core_last_zoom;
+
+ [SetUp]
+ protected void SetUp()
+ {
+ TO_core_last_zoom = folder + "\\TO_core_last_zoom.las";
+ }
+
+ [Test]
+ public void hhhhh()
+ {
+ // LASReader lasreader = new LASReader(@"c:\las\sample_our2.las");
+ LASReader lasreader = new LASReader(@"C:\las\data\TO_core_last_clip.las");
+
+ LASPoint laspoint;
+
+ //laspoint = lasreader.GetPointAt(0);
+ //Console.WriteLine(laspoint.X + "," + laspoint.Y + "," + laspoint.Z + " " + laspoint.Intensity );
+
+ LASHeader lasheader = lasreader.GetHeader();
+
+ LASWriter laswriter = new LASWriter(@"c:\las\sample_our.las", lasheader, LASReadWriteMode.LASModeWrite);
+
+ //LASReader lasreader = new LASReader(@"C:\las\data\TO_core_last_clip.las");
+ //LASPoint laspoint = new LASPoint();
+
+ laspoint = lasreader.GetPointAt(0);
+ //laspoint.X = 23.0;
+ //Assert.AreEqual(laspoint.X, 23.0);
+ //byte gg = laspoint.Classification;
+ //bool d = lasreader.GetNextPoint();
+ ////d = lasreader.GetNextPoint();
+ //LASPoint point = lasreader.GetPointAt(1);
+ //Assert.LessOrEqual(Math.Abs(point.X - 630262.30), 0.0001);
+ //Assert.LessOrEqual(Math.Abs(point.Y - 4834500.0), 0.0001);
+ //Assert.LessOrEqual(Math.Abs(point.Z - 51.53), 0.0001);
+ Assert.AreEqual(laspoint.Intensity, 670);
+ // Assert.AreEqual(laspoint.Classification,(byte) 1);
+
+ //Assert.AreEqual(point.ScanAngleRank, 0);
+ //Assert.AreEqual(point.UserData, 3);
+ //Assert.AreEqual(point.ScanFlags, 9);
+ //Assert.LessOrEqual(Math.Abs(point.Time - 413665.23360000004), 0.0001);
+ }
+
+ //[Test]
+ //public void Point2()
+ //{
+ // LASReader lasreader = new LASReader(@"C:\las\data\TO_core_last_clip.las");
+ // // LASHeader lasheader = lasreader.GetHeader();
+ // if (lasreader.GetNextPoint())
+ // {
+ // LASPoint point = lasreader.GetPointAt(2);
+ // Assert.LessOrEqual(Math.Abs(point.X - 630282.45), 0.0001);
+ // Assert.LessOrEqual(Math.Abs(point.Y - 4834500.0), 0.0001);
+ // Assert.LessOrEqual(Math.Abs(point.Z - 51.63), 0.0001);
+ // Assert.AreEqual(point.Intensity, 350);
+ // Assert.AreEqual(point.Classification, 1);
+ // Assert.AreEqual(point.ScanAngleRank, 0);
+ // Assert.AreEqual(point.UserData, 3);
+ // Assert.AreEqual(point.ScanFlags, 9);
+ // Assert.LessOrEqual(Math.Abs(point.Time - 413665.52880000003), 0.0001);
+ // }
+ //}
+
+ }
+}
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/csharp/NUnitTest/LASVariableLengthRecordTest.cs work/libLAS-1.2.1/csharp/NUnitTest/LASVariableLengthRecordTest.cs
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/csharp/NUnitTest/LASVariableLengthRecordTest.cs 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/csharp/NUnitTest/LASVariableLengthRecordTest.cs 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,75 @@
+/******************************************************************************
+ * $Id$
+ *
+ * Project: libLAS - http://liblas.org - A BSD library for LAS format data.
+ * Purpose: Test cases of LASVariableLengthRecord class, .NET/Mono bindings
+ * Author: Martin Vales, martin_gnu@mundo-r.com
+ *
+ ******************************************************************************
+ * Copyright (c) 2008, Martin Vales
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following
+ * conditions are met:
+ *
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided
+ * with the distribution.
+ * * Neither the name of the Martin Isenburg or Iowa Department
+ * of Natural Resources nor the names of its contributors may be
+ * used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+ * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+ * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
+ * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
+ * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
+ * OF SUCH DAMAGE.
+ ****************************************************************************/
+
+using System;
+using System.Collections.Generic;
+using System.Text;
+using NUnit.Framework;
+using LibLAS;
+
+namespace NUnitTest
+{
+ [TestFixture]
+ public class LASVariableLengthRecordTest
+ {
+ [SetUp]
+ protected void SetUp()
+ {
+ }
+
+ [Test]
+ public void TestDefault()
+ {
+ LASVariableLengthRecord vlr = new LASVariableLengthRecord();
+
+ Assert.AreEqual(vlr.RecordId, 0);
+ Assert.AreEqual(vlr.RecordLength, 0);
+ Assert.AreEqual(vlr.Reserved, 0);
+ Assert.AreEqual(vlr.UserId, "");
+ Assert.AreEqual(vlr.Description, "");
+ }
+
+ [Test]
+ public void Equals()
+ {
+ }
+ }
+}
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/csharp/NUnitTest/LASWriterTest.cs work/libLAS-1.2.1/csharp/NUnitTest/LASWriterTest.cs
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/csharp/NUnitTest/LASWriterTest.cs 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/csharp/NUnitTest/LASWriterTest.cs 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,235 @@
+/******************************************************************************
+ * $Id$
+ *
+ * Project: libLAS - http://liblas.org - A BSD library for LAS format data.
+ * Purpose: Test cases of LASWriter class, .NET/Mono bindings
+ * Author: Martin Vales, martin_gnu@mundo-r.com
+ *
+ ******************************************************************************
+ * Copyright (c) 2008, Martin Vales
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following
+ * conditions are met:
+ *
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided
+ * with the distribution.
+ * * Neither the name of the Martin Isenburg or Iowa Department
+ * of Natural Resources nor the names of its contributors may be
+ * used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+ * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+ * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
+ * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
+ * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
+ * OF SUCH DAMAGE.
+ ****************************************************************************/
+
+using System;
+using System.Collections.Generic;
+using System.Text;
+using NUnit.Framework;
+using LibLAS;
+
+namespace NUnitTest
+{
+ [TestFixture]
+ public class LASWriterTest
+ {
+ [SetUp]
+ protected void SetUp()
+ {
+ }
+
+ [Test]
+ public void CopyConstructor()
+ {
+ LASHeader header = new LASHeader();
+ //string sig = "LASF and garbage";
+
+ // header.FileSignature = sig;
+ // Assert.AreEqual(header.FileSignature.Length,4);
+ // LASHeader h1;
+ Assert.AreEqual(1, 1);
+ //h1.SetFileSignature(sig);
+ //ensure_not(h1.GetFileSignature() == sig);
+ //ensure_equals(h1.GetFileSignature().size(), 4);
+ //ensure_equals(h1.GetFileSignature(), LASHeader::FileSignature);
+
+ //LASHeader h2(h1);
+ //ensure_not(h2.GetFileSignature() == sig);
+ //ensure_equals(h2.GetFileSignature().size(), 4);
+ //ensure_equals(h2.GetFileSignature(), LASHeader::FileSignature);
+ }
+
+ [Test]
+ public void FileSignature()
+ {
+ LASHeader header = new LASHeader();
+ // string sig = "LASF and garbage";
+
+ Assert.AreEqual(header.FileSignature.Length, 4);
+ Assert.AreEqual(header.FileSignature, "LASF");
+
+ // I can not set FileSignature from c# API because i am a bad guy.
+ //header.FileSignature = "LASF";
+ }
+
+ [Test]
+ public void FileSourceId()
+ {
+ LASHeader h1 = new LASHeader();
+
+ UInt16 id1 = 1;
+ UInt16 id2 = 65535;
+ UInt16 overflowed = 0;
+
+ h1.FileSourceId = id1;
+ Assert.AreEqual(h1.FileSourceId, id1);
+ h1.FileSourceId = id2;
+ Assert.AreEqual(h1.FileSourceId, id2);
+
+ // Unsigned overflow
+ // Likely compiler warning: truncation from int to liblas::uint16_t
+ h1.FileSourceId = (ushort)(id2 + 1);
+ Assert.AreEqual(h1.FileSourceId, overflowed);
+ }
+
+ [Test]
+ public void Reserved()
+ {
+ LASHeader h = new LASHeader();
+
+ Assert.AreEqual(h.Reserved, 0);
+ }
+
+ [Test]
+ public void ProjectId()
+ {
+ LASHeader h = new LASHeader();
+
+ //string strid="030B4A82-1B7C-11CF-9D53-00AA003C9CB6";
+ // Assert.AreEqual(h.Reserved, 0);
+ // liblas::guid id(strid.c_str());
+ // h.ProjectId=;
+ // std::string strid("030B4A82-1B7C-11CF-9D53-00AA003C9CB6");
+ //liblas::guid id(strid.c_str());
+
+ //liblas::LASHeader h;
+ //h.SetProjectId(id);
+ //ensure_not(h.GetProjectId().is_null());
+ //ensure_equals(h.GetProjectId(), id);
+ }
+
+ [Test]
+ public void MinorMajorVersion()
+ {
+ LASHeader h = new LASHeader();
+ h.VersionMinor = 0;
+ h.VersionMajor = 1;
+ Assert.AreEqual(h.VersionMinor, 0);
+ Assert.AreEqual(h.VersionMajor, 1);
+
+ h.VersionMinor = 1;
+ h.VersionMajor = 1;
+ Assert.AreEqual(h.VersionMinor, 1);
+ Assert.AreEqual(h.VersionMajor, 1);
+
+ try
+ {
+ h.VersionMajor = 2;
+ //don´t get the next line...
+ Assert.AreEqual(2, 5);
+ }
+ catch (LASException e)
+ {
+ Assert.AreEqual(e.Message, "Exception in Set Header VersionMajor.");
+ }
+
+ try
+ {
+ h.VersionMinor = 2;
+ //don´t get the next line...
+ Assert.AreEqual(2, 5);
+ }
+ catch (LASException e)
+ {
+ Assert.AreEqual(e.Message, "Exception in Set Header VersionMinor.");
+ }
+ }
+
+ [Test]
+ public void SoftwareId()
+ {
+ LASHeader h = new LASHeader();
+
+ string softid1 = "Short Soft Id"; // 13 bytes
+ int len1 = softid1.Length;
+ string softid2 = "Long Software Identifier - XX YY"; // 32 bytes
+ int len2 = softid2.Length;
+
+ h.SoftwareId = softid1;
+ Assert.AreEqual(h.SoftwareId, softid1);
+ Assert.AreEqual(h.SoftwareId.Length, len1);
+ // Assert.AreEqual(h.GetSoftwareId(true).size(), 32);
+
+ h.SoftwareId = softid2;
+ Assert.AreEqual(h.SoftwareId, softid2);
+ Assert.AreEqual(h.SoftwareId.Length, len2);
+ // Assert.AreEqual(h.GetSoftwareId(true).size(), 32);
+ }
+
+ [Test]
+ public void PointRecordsByReturnCount()
+ {
+ LASHeader h = new LASHeader();
+ // Assert.AreEqual(h.GetPointRecordsByReturnCount(5),5);
+
+ h.SetPointRecordsByReturnCount(0, 100);
+ //ensure_equals(h.GetPointRecordsByReturnCount().size(), 5);
+ Assert.AreEqual(h.GetPointRecordsByReturnCount(0), 100);
+
+ h.SetPointRecordsByReturnCount(1, 101);
+ //ensure_equals(h.GetPointRecordsByReturnCount().size(), 5);
+ Assert.AreEqual(h.GetPointRecordsByReturnCount(1), 101);
+
+ h.SetPointRecordsByReturnCount(2, 102);
+ //ensure_equals(h.GetPointRecordsByReturnCount().size(), 5);
+ Assert.AreEqual(h.GetPointRecordsByReturnCount(2), 102);
+
+ h.SetPointRecordsByReturnCount(3, 103);
+ //ensure_equals(h.GetPointRecordsByReturnCount().size(), 5);
+ Assert.AreEqual(h.GetPointRecordsByReturnCount(3), 103);
+
+ h.SetPointRecordsByReturnCount(4, 104);
+ //ensure_equals(h.GetPointRecordsByReturnCount().size(), 5);
+ Assert.AreEqual(h.GetPointRecordsByReturnCount(4), 104);
+
+ try
+ {
+ // 5 is out of range
+ h.SetPointRecordsByReturnCount(5, 500);
+ //don´t get the next line...
+ Assert.AreEqual(2, 5);
+ }
+ catch (LASException e)
+ {
+ Assert.AreEqual(e.Message, "Exception in Set Header SetPointRecordsByReturnCount.");
+ }
+ }
+ }
+}
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/csharp/NUnitTest/NUnitTest_Express.csproj work/libLAS-1.2.1/csharp/NUnitTest/NUnitTest_Express.csproj
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/csharp/NUnitTest/NUnitTest_Express.csproj 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/csharp/NUnitTest/NUnitTest_Express.csproj 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,63 @@
+
+
+ Debug
+ AnyCPU
+ 8.0.50727
+ 2.0
+ {E019C630-508C-4F2C-9743-F66423C216F2}
+ Library
+ Properties
+ NUnitTest
+ NUnitTest
+
+
+
+
+ 2.0
+
+
+ true
+ full
+ false
+ bin\Debug\
+ DEBUG;TRACE
+ prompt
+ 4
+
+
+ pdbonly
+ true
+ bin\Release\
+ TRACE
+ prompt
+ 4
+
+
+
+ False
+ ..\dotnetLibLAS\bin\$(Configuration)\dotnetLibLAS.dll
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/csharp/NUnitTest/NUnitTest.csproj work/libLAS-1.2.1/csharp/NUnitTest/NUnitTest.csproj
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/csharp/NUnitTest/NUnitTest.csproj 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/csharp/NUnitTest/NUnitTest.csproj 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,58 @@
+
+
+ Debug
+ AnyCPU
+ 8.0.50727
+ 2.0
+ {E019C630-508C-4F2C-9743-F66423C216F2}
+ Library
+ Properties
+ NUnitTest
+ NUnitTest
+
+
+ true
+ full
+ false
+ bin\Debug\
+ DEBUG;TRACE
+ prompt
+ 4
+
+
+ pdbonly
+ true
+ bin\Release\
+ TRACE
+ prompt
+ 4
+
+
+
+ False
+ ..\dotnetLibLAS\bin\$(Configuration)\dotnetLibLAS.dll
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/csharp/NUnitTest/Properties/AssemblyInfo.cs work/libLAS-1.2.1/csharp/NUnitTest/Properties/AssemblyInfo.cs
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/csharp/NUnitTest/Properties/AssemblyInfo.cs 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/csharp/NUnitTest/Properties/AssemblyInfo.cs 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,33 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("NUnitTest")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("Martin Vales")]
+[assembly: AssemblyProduct("NUnitTest")]
+[assembly: AssemblyCopyright("Copyright © 2008")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("c984e4fe-9eb1-4313-bc7e-e978ab08af7a")]
+
+// Version information for an assembly consists of the following four values:
+//
+// Major Version
+// Minor Version
+// Build Number
+// Revision
+//
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/csharp/README work/libLAS-1.2.1/csharp/README
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/csharp/README 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/csharp/README 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,176 @@
+
+ .NET/Mono bindings for libLAS - ASPRS LiDAR data translation toolset
+==============================================================================
+
+This directory consists of all components of .NET/Mono bindings for libLAS.
+
+
+Building with Visual Studio 2003/2005/2008 and .NET Framework
+------------------------------------------------------------------------------
+
+Requirements:
+
+* Visual Studio 2003, 2005 or 2008
+* .NET Framework 1.x, 2.0 or 3.0
+
+Steps:
+
+1. Build libLAS C++ and C DLLs
+
+nmake /f makefile.vc
+
+or
+
+Open trunk/build/msvc80/liblas.sln in VS2005 or VS2008. Build the solution. Successfull build is required for only two projects: liblas_lib.vcproj and liblas_c_dll.vcproj.
+
+2. Load trunk/csharp/dotnetLibLAS.sln in VS2005/2008 and build solution dotnetLibLAS dll.
+
+or
+
+Now, in order to build .NET bindings, one can do:
+
+2.1. cd trunk/csharp
+2.2. nmake -f makefile.vc
+
+To clean:
+
+2.3. nmake -f makefile.vc clean
+
+To rebuild:
+
+2.4. nmake -f makefile.vc rebuild
+
+This makefile is just a tiny proxy calling MSBuild which in turn
+builds the dotnetLibLAS.sln solution. Debug/Release builds is controlled by BUILD_DEBUG variable defined in nmake.opt.
+
+Notes:
+- To build dotnetLibLAS is not mandatory build the native C/C++ library but it is if you want use the .NET bindings.
+- dotnetLibLAS search liblas1.dll according the Dynamic-Link Library Search Order of Windows:
+ http://msdn.microsoft.com/en-us/library/ms682586.aspx
+- If you try the HelloWorldLAS sample and you have a P/Invoke exception, perhaps is because the .NET bindings don`t find the native DLL.
+
+Register the dotnetLibLAS Assembly in the GAC in Windows/.NET and Unix/Mono
+------------------------------------------------------------------------------
+1. Use the sn.exe tool to create a new key file in trunk/csharp/dotnetLibLAS:
+sn -k liblas.snk
+
+2. Add your assembly to the GAC
+
+gacutil /i dotnetLibLAS.dll
+
+To uninstall this assembly from the GAC, use the command:
+
+3. gacutil /u dotnetLibLAS
+
+Notes:
+- This operation is not recomended by now. Remember you need have the Native DLL install in your computer.
+- If your path environment variables aren't set, you'll have to go to the C:\Program Files\Microsoft.NET\FrameworkSDK\Bin\ directory to run sn.exe
+
+Run the test
+------------------------------------------------------------------------------
+dotnetLibLAS use the NUNIT library to testing:
+http://www.nunit.org/index.php
+
+Steps to run the test:
+
+1. Download the last NUNIT version:
+ http://prdownloads.sourceforge.net/nunit/NUnit-2.4.8-net-2.0.msi?download
+
+2. Install NUNIT in your computer to have the NUNIT assembly and the NUNIT applications to run the test.
+
+3. Open the NUNIT test project from trunk/csharp/dotnetLibLAS/NUnitTest
+
+3. Update the nunit.dll reference in the properties of the project.
+
+or
+
+if you have problems delete nunit.dll reference and add it. Previous NUNIT intallation installed nunit.dll in the GAC for you.
+
+4. From Windows Start Menu\Programs menu open the NUnit Gui Runner application.
+ http://www.nunit.org/index.php?p=nunit-gui&r=2.4.8
+
+ or
+
+ use the NUnit-Console applications instead:
+ http://www.nunit.org/index.php?p=nunit-console&r=2.4.8
+
+5. Run the test of this assembly:
+ trunk/csharp/csharp/NUnitTest/bin/release/NUnitTest.dll
+
+
+Building with Mono
+------------------------------------------------------------------------------
+
+To build liblas for MONO you need have installed these dependencies:
+
+1. mono mono-gmcs mono-gac mono-utils
+ mono is the Virtual machine o run the applications.
+ gmcs is the compiler of the c# programming language.
+
+2. In debian (or variants like ubuntu):
+ sudo apt-get install mono mono-gmcs mono-gac mono-utils
+
+Further you could need these dependencies if need unit testing with NUNIT
+
+1. nunit libmono-i18n2.0-cil nunit-console
+ sudo apt-get install libmono-i18n2.0-cil nunit nunit-console
+ nunit is the assembly to link to your unit test projects.
+ nunit-console is the tool to run the tests.
+
+
+Notes:
+- NUNIT by now have bad support in the linux repositories. Perhaps the best is download it from the official web.
+ You can use the compiled version of NUNIT for windows:
+ http://prdownloads.sourceforge.net/nunit/NUnit-2.4.8-net-2.0.zip?download
+ The basic assemblies are:
+ nunit.core.dll
+ nunit.core.interfaces.dll
+ nunit.framework.dll
+ nunit.util.dll
+ nunit-console.exe
+ nunit-console-runner.dll
+
+Using Monodevelop
+------------------------------------------------------------------------------
+You could install also Monodevelop 1.x if you want have a full IDE for C#.
+The problem i see with this IDE now is it have an own build system. You can open Visual studio projects but with bad support.
+In Monodevelop 2.x (in alpha status yet) you work with visual studio solutions files like native format of the IDE.
+http://monodevelop.com/Release_notes_for_MonoDevelop_2.0_Alpha_1#MSBuild_File_format
+
+Besides msbuild system in MONO is xbuild. This will let us in the future release the dotnetLibLAS bindings with visual studio solutions.
+By now xbuild is not complete.
+http://www.mono-project.com/Microsoft.Build
+
+
+Compiling dotnetLibLAS in MONO
+------------------------------------------------------------------------------
+By now dotnetLibLAS is not officially supported by MONO but it's possible use it:
+
+1. You can use the compiled library you have in windows. It's fully compatible.
+
+2. Compile the library by hand.
+ gmcs /target:library /out:dotnetLibLAS.dll *.cs /keyfile:liblas.snk
+ You must run this command in the /trunk/csharp/dotnetLibLAS folder.
+
+3. Autools. TODO
+
+Notes:
+In the project folder you can see this file dotnetLibLAS.dll.config.
+This file maps the linux shared library from the windows native DLL. The names shared libraries in windows and linux are different.
+You need have always this file in your linux applications folder. MONO read this XML file before our dotnetLibLAS assembly.
+
+Run the tests in MONO
+------------------------------------------------------------------------------
+By now you need compile and run the tests by hand.
+
+1. The test are in the folder /trunk/csharp/NUnitTest
+
+2. You need have the assemblies of nunit and dotnetLibLAS referenced to the library.
+
+3. Run this command to compile the library:
+ gmcs /target:library /r:nunit.framework.dll /r:dotnetLibLAS.dll /out:pruebaunit.dll *.cs
+
+4. Run the tests:
+ mono nunit-console.exe pruebaunit.dll
+
+$Id$
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/csharp/Samples/Read_Express/Read_Express.csproj work/libLAS-1.2.1/csharp/Samples/Read_Express/Read_Express.csproj
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/csharp/Samples/Read_Express/Read_Express.csproj 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/csharp/Samples/Read_Express/Read_Express.csproj 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,53 @@
+
+
+ Debug
+ AnyCPU
+ 8.0.50727
+ 2.0
+ {545BB2BA-CE19-474B-AB86-5BC2373658CB}
+ Exe
+ Properties
+ Read_Express
+ Read_Express
+
+
+
+
+ true
+ full
+ false
+ bin\Debug\
+ DEBUG;TRACE
+ prompt
+ 4
+
+
+ pdbonly
+ true
+ bin\Release\
+ TRACE
+ prompt
+ 4
+
+
+
+ False
+ ..\..\dotnetLibLAS\bin\Release\dotnetLibLAS.dll
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/csharp/Samples/Read_Express/ReadLAS.cs work/libLAS-1.2.1/csharp/Samples/Read_Express/ReadLAS.cs
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/csharp/Samples/Read_Express/ReadLAS.cs 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/csharp/Samples/Read_Express/ReadLAS.cs 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,91 @@
+/******************************************************************************
+ * $Id$
+ *
+ * Project: libLAS - http://liblas.org - A BSD library for LAS format data.
+ * Purpose: Sample program demonstrating use of libLAS for .NET/Mono
+ * Author: Martin Vales, martin_gnu@mundo-r.com
+ *
+ ******************************************************************************
+ * Copyright (c) 2008, Martin Vales
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following
+ * conditions are met:
+ *
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided
+ * with the distribution.
+ * * Neither the name of the Martin Isenburg or Iowa Department
+ * of Natural Resources nor the names of its contributors may be
+ * used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+ * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+ * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
+ * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
+ * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
+ * OF SUCH DAMAGE.
+ ****************************************************************************/
+
+using System;
+using System.Text;
+using LibLAS;
+
+
+class ReadProgram
+{
+ static void Main(string[] args)
+ {
+ try
+ {
+
+ string filename = @"..\..\..\..\..\test\data\TO_core_last_zoom.las";
+ LASReader lasreader = new LASReader(filename);
+ LASHeader h = lasreader.GetHeader();
+ Console.WriteLine("Version : " + lasreader.GetVersion());
+ Console.WriteLine("Signature: : " + h.FileSignature);
+ Console.WriteLine("Format : " + h.DataFormatId);
+ Console.WriteLine("Project : " + h.ProjectId);
+ Console.WriteLine("Points count: " + h.PointRecordsCount);
+ Console.WriteLine("VLRecords count: " + h.VariableLengthRecordsCount);
+ int counter = 0;
+ while (lasreader.GetNextPoint())
+ {
+ LASPoint laspoint = lasreader.GetPoint();
+ counter += 1;
+ }
+
+ if (lasreader.GetHeader().PointRecordsCount != counter)
+ throw new LASException("read incorrect number of point records");
+
+
+ }
+ catch (LASException e)
+ {
+ Console.WriteLine("\nLASException! Msg: {0}", e.Message);
+ }
+ catch (SystemException e)
+ {
+ Console.WriteLine("\nException! Msg: {0}", e.Message);
+ }
+ catch
+ {
+ Console.WriteLine("Unknown exception caught");
+ }
+
+ Console.WriteLine("End of file");
+ Console.Read();
+ }
+}
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/csharp/Samples/WriteLAS/Properties/AssemblyInfo.cs work/libLAS-1.2.1/csharp/Samples/WriteLAS/Properties/AssemblyInfo.cs
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/csharp/Samples/WriteLAS/Properties/AssemblyInfo.cs 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/csharp/Samples/WriteLAS/Properties/AssemblyInfo.cs 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,35 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("WriteLAS")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("WriteLAS")]
+[assembly: AssemblyCopyright("Copyright © 2008")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("4b75d764-15be-4739-9dcc-80e564199de6")]
+
+// Version information for an assembly consists of the following four values:
+//
+// Major Version
+// Minor Version
+// Build Number
+// Revision
+//
+// You can specify all the values or you can default the Revision and Build Numbers
+// by using the '*' as shown below:
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/csharp/Samples/WriteLAS/Write_Express.csproj work/libLAS-1.2.1/csharp/Samples/WriteLAS/Write_Express.csproj
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/csharp/Samples/WriteLAS/Write_Express.csproj 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/csharp/Samples/WriteLAS/Write_Express.csproj 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,53 @@
+
+
+ Debug
+ AnyCPU
+ 8.0.50727
+ 2.0
+ {51ACDC75-D5FA-445C-9E04-E7BF07AAFAD5}
+ Exe
+ Properties
+ WriteLAS
+ WriteLAS
+
+
+
+
+ true
+ full
+ false
+ bin\Debug\
+ DEBUG;TRACE
+ prompt
+ 4
+
+
+ pdbonly
+ true
+ bin\Release\
+ TRACE
+ prompt
+ 4
+
+
+
+ False
+ ..\..\dotnetLibLAS\bin\Release\dotnetLibLAS.dll
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/csharp/Samples/WriteLAS/WriteLAS.cs work/libLAS-1.2.1/csharp/Samples/WriteLAS/WriteLAS.cs
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/csharp/Samples/WriteLAS/WriteLAS.cs 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/csharp/Samples/WriteLAS/WriteLAS.cs 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,50 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+using LibLAS;
+using System.IO;
+
+
+namespace WriteLAS
+{
+ public class WriteLAS
+ {
+ static void Main(string[] args)
+ {
+ try
+ {
+
+ string filename = @".\test.las";
+ LASHeader hdr = new LASHeader();
+ hdr.VersionMajor = 1;
+ hdr.VersionMinor = 1;
+ hdr.DataFormatId = (byte)LASHeader.PointFormat.ePointFormat1;
+ hdr.PointRecordsCount = 1000; // should be corrected automatically by writer
+ LASWriter laswriter = new LASWriter(filename, hdr, LASReadWriteMode.LASModeWrite);
+ LASPoint p=new LASPoint();
+ p.X = 10;
+ p.Y = 20;
+ p.Z = 30;
+ laswriter.WritePoint(p);
+ //File.Delete(filename);
+
+ }
+ catch (LASException e)
+ {
+ Console.WriteLine("\nLASException! Msg: {0}", e.Message);
+ }
+ catch (SystemException e)
+ {
+ Console.WriteLine("\nException! Msg: {0}", e.Message);
+ }
+ catch
+ {
+ Console.WriteLine("Unknown exception caught");
+ }
+
+ Console.WriteLine("End of file");
+ Console.Read();
+ }
+
+ }
+}
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/doc/api/doxygen_dev.conf work/libLAS-1.2.1/doc/api/doxygen_dev.conf
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/doc/api/doxygen_dev.conf 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/doc/api/doxygen_dev.conf 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,1259 @@
+# Doxyfile 1.5.4
+#
+# $Id$
+
+# This file describes the settings to be used by the documentation system
+# doxygen (www.doxygen.org) for a project
+#
+# All text after a hash (#) is considered a comment and will be ignored
+# The format is:
+# TAG = value [value, ...]
+# For lists items can also be appended using:
+# TAG += value [value, ...]
+# Values that contain spaces should be placed between quotes (" ")
+
+#---------------------------------------------------------------------------
+# Project related configuration options
+#---------------------------------------------------------------------------
+
+# This tag specifies the encoding used for all characters in the config file that
+# follow. The default is UTF-8 which is also the encoding used for all text before
+# the first occurrence of this tag. Doxygen uses libiconv (or the iconv built into
+# libc) for the transcoding. See http://www.gnu.org/software/libiconv for the list of
+# possible encodings.
+
+DOXYFILE_ENCODING = UTF-8
+
+# The PROJECT_NAME tag is a single word (or a sequence of words surrounded
+# by quotes) that should identify the project.
+
+PROJECT_NAME = "libLAS Developer's Reference"
+
+# The PROJECT_NUMBER tag can be used to enter a project or revision number.
+# This could be handy for archiving the generated documentation or
+# if some version control system is used.
+
+PROJECT_NUMBER = (svn-trunk)
+
+# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute)
+# base path where the generated documentation will be put.
+# If a relative path is entered, it will be relative to the location
+# where doxygen was started. If left blank the current directory will be used.
+
+OUTPUT_DIRECTORY = .
+
+# If the CREATE_SUBDIRS tag is set to YES, then doxygen will create
+# 4096 sub-directories (in 2 levels) under the output directory of each output
+# format and will distribute the generated files over these directories.
+# Enabling this option can be useful when feeding doxygen a huge amount of
+# source files, where putting all generated files in the same directory would
+# otherwise cause performance problems for the file system.
+
+CREATE_SUBDIRS = NO
+
+# The OUTPUT_LANGUAGE tag is used to specify the language in which all
+# documentation generated by doxygen is written. Doxygen will use this
+# information to generate all constant output in the proper language.
+# The default language is English, other supported languages are:
+# Afrikaans, Arabic, Brazilian, Catalan, Chinese, Chinese-Traditional,
+# Croatian, Czech, Danish, Dutch, Finnish, French, German, Greek, Hungarian,
+# Italian, Japanese, Japanese-en (Japanese with English messages), Korean,
+# Korean-en, Lithuanian, Norwegian, Polish, Portuguese, Romanian, Russian,
+# Serbian, Slovak, Slovene, Spanish, Swedish, and Ukrainian.
+
+OUTPUT_LANGUAGE = English
+
+# If the BRIEF_MEMBER_DESC tag is set to YES (the default) Doxygen will
+# include brief member descriptions after the members that are listed in
+# the file and class documentation (similar to JavaDoc).
+# Set to NO to disable this.
+
+BRIEF_MEMBER_DESC = YES
+
+# If the REPEAT_BRIEF tag is set to YES (the default) Doxygen will prepend
+# the brief description of a member or function before the detailed description.
+# Note: if both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the
+# brief descriptions will be completely suppressed.
+
+REPEAT_BRIEF = YES
+
+# This tag implements a quasi-intelligent brief description abbreviator
+# that is used to form the text in various listings. Each string
+# in this list, if found as the leading text of the brief description, will be
+# stripped from the text and the result after processing the whole list, is
+# used as the annotated text. Otherwise, the brief description is used as-is.
+# If left blank, the following values are used ("$name" is automatically
+# replaced with the name of the entity): "The $name class" "The $name widget"
+# "The $name file" "is" "provides" "specifies" "contains"
+# "represents" "a" "an" "the"
+
+ABBREVIATE_BRIEF =
+
+# If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then
+# Doxygen will generate a detailed section even if there is only a brief
+# description.
+
+ALWAYS_DETAILED_SEC = NO
+
+# If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all
+# inherited members of a class in the documentation of that class as if those
+# members were ordinary class members. Constructors, destructors and assignment
+# operators of the base classes will not be shown.
+
+INLINE_INHERITED_MEMB = NO
+
+# If the FULL_PATH_NAMES tag is set to YES then Doxygen will prepend the full
+# path before files name in the file list and in the header files. If set
+# to NO the shortest path that makes the file name unique will be used.
+
+FULL_PATH_NAMES = NO
+
+# If the FULL_PATH_NAMES tag is set to YES then the STRIP_FROM_PATH tag
+# can be used to strip a user-defined part of the path. Stripping is
+# only done if one of the specified strings matches the left-hand part of
+# the path. The tag can be used to show relative paths in the file list.
+# If left blank the directory from which doxygen is run is used as the
+# path to strip.
+
+STRIP_FROM_PATH =
+
+# The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of
+# the path mentioned in the documentation of a class, which tells
+# the reader which header file to include in order to use a class.
+# If left blank only the name of the header file containing the class
+# definition is used. Otherwise one should specify the include paths that
+# are normally passed to the compiler using the -I flag.
+
+STRIP_FROM_INC_PATH =
+
+# If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter
+# (but less readable) file names. This can be useful is your file systems
+# doesn't support long names like on DOS, Mac, or CD-ROM.
+
+SHORT_NAMES = NO
+
+# If the JAVADOC_AUTOBRIEF tag is set to YES then Doxygen
+# will interpret the first line (until the first dot) of a JavaDoc-style
+# comment as the brief description. If set to NO, the JavaDoc
+# comments will behave just like the Qt-style comments (thus requiring an
+# explicit @brief command for a brief description.
+
+JAVADOC_AUTOBRIEF = YES
+
+# The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make Doxygen
+# treat a multi-line C++ special comment block (i.e. a block of //! or ///
+# comments) as a brief description. This used to be the default behaviour.
+# The new default is to treat a multi-line C++ comment block as a detailed
+# description. Set this tag to YES if you prefer the old behaviour instead.
+
+MULTILINE_CPP_IS_BRIEF = NO
+
+# If the DETAILS_AT_TOP tag is set to YES then Doxygen
+# will output the detailed description near the top, like JavaDoc.
+# If set to NO, the detailed description appears after the member
+# documentation.
+
+DETAILS_AT_TOP = NO
+
+# If the INHERIT_DOCS tag is set to YES (the default) then an undocumented
+# member inherits the documentation from any documented member that it
+# re-implements.
+
+INHERIT_DOCS = YES
+
+# If the SEPARATE_MEMBER_PAGES tag is set to YES, then doxygen will produce
+# a new page for each member. If set to NO, the documentation of a member will
+# be part of the file/class/namespace that contains it.
+
+SEPARATE_MEMBER_PAGES = NO
+
+# The TAB_SIZE tag can be used to set the number of spaces in a tab.
+# Doxygen uses this value to replace tabs by spaces in code fragments.
+
+TAB_SIZE = 4
+
+# This tag can be used to specify a number of aliases that acts
+# as commands in the documentation. An alias has the form "name=value".
+# For example adding "sideeffect=\par Side Effects:\n" will allow you to
+# put the command \sideeffect (or @sideeffect) in the documentation, which
+# will result in a user-defined paragraph with heading "Side Effects:".
+# You can put \n's in the value part of an alias to insert newlines.
+
+ALIASES =
+
+# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C
+# sources only. Doxygen will then generate output that is more tailored for C.
+# For instance, some of the names that are used will be different. The list
+# of all members will be omitted, etc.
+
+OPTIMIZE_OUTPUT_FOR_C = NO
+
+# Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java
+# sources only. Doxygen will then generate output that is more tailored for Java.
+# For instance, namespaces will be presented as packages, qualified scopes
+# will look different, etc.
+
+OPTIMIZE_OUTPUT_JAVA = NO
+
+# If you use STL classes (i.e. std::string, std::vector, etc.) but do not want to
+# include (a tag file for) the STL sources as input, then you should
+# set this tag to YES in order to let doxygen match functions declarations and
+# definitions whose arguments contain STL classes (e.g. func(std::string); v.s.
+# func(std::string) {}). This also make the inheritance and collaboration
+# diagrams that involve STL classes more complete and accurate.
+
+BUILTIN_STL_SUPPORT = YES
+
+# If you use Microsoft's C++/CLI language, you should set this option to YES to
+# enable parsing support.
+
+CPP_CLI_SUPPORT = NO
+
+# If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC
+# tag is set to YES, then doxygen will reuse the documentation of the first
+# member in the group (if any) for the other members of the group. By default
+# all members of a group must be documented explicitly.
+
+DISTRIBUTE_GROUP_DOC = NO
+
+# Set the SUBGROUPING tag to YES (the default) to allow class member groups of
+# the same type (for instance a group of public functions) to be put as a
+# subgroup of that type (e.g. under the Public Functions section). Set it to
+# NO to prevent subgrouping. Alternatively, this can be done per class using
+# the \nosubgrouping command.
+
+SUBGROUPING = YES
+
+#---------------------------------------------------------------------------
+# Build related configuration options
+#---------------------------------------------------------------------------
+
+# If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in
+# documentation are documented, even if no documentation was available.
+# Private class members and static file members will be hidden unless
+# the EXTRACT_PRIVATE and EXTRACT_STATIC tags are set to YES
+
+EXTRACT_ALL = YES
+
+# If the EXTRACT_PRIVATE tag is set to YES all private members of a class
+# will be included in the documentation.
+
+EXTRACT_PRIVATE = YES
+
+# If the EXTRACT_STATIC tag is set to YES all static members of a file
+# will be included in the documentation.
+
+EXTRACT_STATIC = YES
+
+# If the EXTRACT_LOCAL_CLASSES tag is set to YES classes (and structs)
+# defined locally in source files will be included in the documentation.
+# If set to NO only classes defined in header files are included.
+
+EXTRACT_LOCAL_CLASSES = YES
+
+# This flag is only useful for Objective-C code. When set to YES local
+# methods, which are defined in the implementation section but not in
+# the interface are included in the documentation.
+# If set to NO (the default) only methods in the interface are included.
+
+EXTRACT_LOCAL_METHODS = YES
+
+# If the HIDE_UNDOC_MEMBERS tag is set to YES, Doxygen will hide all
+# undocumented members of documented classes, files or namespaces.
+# If set to NO (the default) these members will be included in the
+# various overviews, but no documentation section is generated.
+# This option has no effect if EXTRACT_ALL is enabled.
+
+HIDE_UNDOC_MEMBERS = NO
+
+# If the HIDE_UNDOC_CLASSES tag is set to YES, Doxygen will hide all
+# undocumented classes that are normally visible in the class hierarchy.
+# If set to NO (the default) these classes will be included in the various
+# overviews. This option has no effect if EXTRACT_ALL is enabled.
+
+HIDE_UNDOC_CLASSES = NO
+
+# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, Doxygen will hide all
+# friend (class|struct|union) declarations.
+# If set to NO (the default) these declarations will be included in the
+# documentation.
+
+HIDE_FRIEND_COMPOUNDS = NO
+
+# If the HIDE_IN_BODY_DOCS tag is set to YES, Doxygen will hide any
+# documentation blocks found inside the body of a function.
+# If set to NO (the default) these blocks will be appended to the
+# function's detailed documentation block.
+
+HIDE_IN_BODY_DOCS = NO
+
+# The INTERNAL_DOCS tag determines if documentation
+# that is typed after a \internal command is included. If the tag is set
+# to NO (the default) then the documentation will be excluded.
+# Set it to YES to include the internal documentation.
+
+INTERNAL_DOCS = NO
+
+# If the CASE_SENSE_NAMES tag is set to NO then Doxygen will only generate
+# file names in lower-case letters. If set to YES upper-case letters are also
+# allowed. This is useful if you have classes or files whose names only differ
+# in case and if your file system supports case sensitive file names. Windows
+# and Mac users are advised to set this option to NO.
+
+CASE_SENSE_NAMES = YES
+
+# If the HIDE_SCOPE_NAMES tag is set to NO (the default) then Doxygen
+# will show members with their full class and namespace scopes in the
+# documentation. If set to YES the scope will be hidden.
+
+HIDE_SCOPE_NAMES = NO
+
+# If the SHOW_INCLUDE_FILES tag is set to YES (the default) then Doxygen
+# will put a list of the files that are included by a file in the documentation
+# of that file.
+
+SHOW_INCLUDE_FILES = YES
+
+# If the INLINE_INFO tag is set to YES (the default) then a tag [inline]
+# is inserted in the documentation for inline members.
+
+INLINE_INFO = YES
+
+# If the SORT_MEMBER_DOCS tag is set to YES (the default) then doxygen
+# will sort the (detailed) documentation of file and class members
+# alphabetically by member name. If set to NO the members will appear in
+# declaration order.
+
+SORT_MEMBER_DOCS = YES
+
+# If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the
+# brief documentation of file, namespace and class members alphabetically
+# by member name. If set to NO (the default) the members will appear in
+# declaration order.
+
+SORT_BRIEF_DOCS = NO
+
+# If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be
+# sorted by fully-qualified names, including namespaces. If set to
+# NO (the default), the class list will be sorted only by class name,
+# not including the namespace part.
+# Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES.
+# Note: This option applies only to the class list, not to the
+# alphabetical list.
+
+SORT_BY_SCOPE_NAME = NO
+
+# The GENERATE_TODOLIST tag can be used to enable (YES) or
+# disable (NO) the todo list. This list is created by putting \todo
+# commands in the documentation.
+
+GENERATE_TODOLIST = YES
+
+# The GENERATE_TESTLIST tag can be used to enable (YES) or
+# disable (NO) the test list. This list is created by putting \test
+# commands in the documentation.
+
+GENERATE_TESTLIST = YES
+
+# The GENERATE_BUGLIST tag can be used to enable (YES) or
+# disable (NO) the bug list. This list is created by putting \bug
+# commands in the documentation.
+
+GENERATE_BUGLIST = YES
+
+# The GENERATE_DEPRECATEDLIST tag can be used to enable (YES) or
+# disable (NO) the deprecated list. This list is created by putting
+# \deprecated commands in the documentation.
+
+GENERATE_DEPRECATEDLIST= YES
+
+# The ENABLED_SECTIONS tag can be used to enable conditional
+# documentation sections, marked by \if sectionname ... \endif.
+
+ENABLED_SECTIONS =
+
+# The MAX_INITIALIZER_LINES tag determines the maximum number of lines
+# the initial value of a variable or define consists of for it to appear in
+# the documentation. If the initializer consists of more lines than specified
+# here it will be hidden. Use a value of 0 to hide initializers completely.
+# The appearance of the initializer of individual variables and defines in the
+# documentation can be controlled using \showinitializer or \hideinitializer
+# command in the documentation regardless of this setting.
+
+MAX_INITIALIZER_LINES = 30
+
+# Set the SHOW_USED_FILES tag to NO to disable the list of files generated
+# at the bottom of the documentation of classes and structs. If set to YES the
+# list will mention the files that were used to generate the documentation.
+
+SHOW_USED_FILES = YES
+
+# If the sources in your project are distributed over multiple directories
+# then setting the SHOW_DIRECTORIES tag to YES will show the directory hierarchy
+# in the documentation. The default is NO.
+
+SHOW_DIRECTORIES = YES
+
+# The FILE_VERSION_FILTER tag can be used to specify a program or script that
+# doxygen should invoke to get the current version for each file (typically from the
+# version control system). Doxygen will invoke the program by executing (via
+# popen()) the command , where is the value of
+# the FILE_VERSION_FILTER tag, and is the name of an input file
+# provided by doxygen. Whatever the program writes to standard output
+# is used as the file version. See the manual for examples.
+
+FILE_VERSION_FILTER =
+
+#---------------------------------------------------------------------------
+# configuration options related to warning and progress messages
+#---------------------------------------------------------------------------
+
+# The QUIET tag can be used to turn on/off the messages that are generated
+# by doxygen. Possible values are YES and NO. If left blank NO is used.
+
+QUIET = NO
+
+# The WARNINGS tag can be used to turn on/off the warning messages that are
+# generated by doxygen. Possible values are YES and NO. If left blank
+# NO is used.
+
+WARNINGS = YES
+
+# If WARN_IF_UNDOCUMENTED is set to YES, then doxygen will generate warnings
+# for undocumented members. If EXTRACT_ALL is set to YES then this flag will
+# automatically be disabled.
+
+WARN_IF_UNDOCUMENTED = YES
+
+# If WARN_IF_DOC_ERROR is set to YES, doxygen will generate warnings for
+# potential errors in the documentation, such as not documenting some
+# parameters in a documented function, or documenting parameters that
+# don't exist or using markup commands wrongly.
+
+WARN_IF_DOC_ERROR = YES
+
+# This WARN_NO_PARAMDOC option can be abled to get warnings for
+# functions that are documented, but have no documentation for their parameters
+# or return value. If set to NO (the default) doxygen will only warn about
+# wrong or incomplete parameter documentation, but not about the absence of
+# documentation.
+
+WARN_NO_PARAMDOC = NO
+
+# The WARN_FORMAT tag determines the format of the warning messages that
+# doxygen can produce. The string should contain the $file, $line, and $text
+# tags, which will be replaced by the file and line number from which the
+# warning originated and the warning text. Optionally the format may contain
+# $version, which will be replaced by the version of the file (if it could
+# be obtained via FILE_VERSION_FILTER)
+
+WARN_FORMAT = "$file:$line: $text"
+
+# The WARN_LOGFILE tag can be used to specify a file to which warning
+# and error messages should be written. If left blank the output is written
+# to stderr.
+
+WARN_LOGFILE =
+
+#---------------------------------------------------------------------------
+# configuration options related to the input files
+#---------------------------------------------------------------------------
+
+# The INPUT tag can be used to specify the files and/or directories that contain
+# documented source files. You may enter file names like "myfile.cpp" or
+# directories like "/usr/src/myproject". Separate the files or directories
+# with spaces.
+
+INPUT = ../../include ../../include/liblas ../../include/liblas/capi ../../src ../../apps
+
+# This tag can be used to specify the character encoding of the source files that
+# doxygen parses. Internally doxygen uses the UTF-8 encoding, which is also the default
+# input encoding. Doxygen uses libiconv (or the iconv built into libc) for the transcoding.
+# See http://www.gnu.org/software/libiconv for the list of possible encodings.
+
+INPUT_ENCODING = UTF-8
+
+# If the value of the INPUT tag contains directories, you can use the
+# FILE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp
+# and *.h) to filter out the source-files in the directories. If left
+# blank the following patterns are tested:
+# *.c *.cc *.cxx *.cpp *.c++ *.java *.ii *.ixx *.ipp *.i++ *.inl *.h *.hh *.hxx
+# *.hpp *.h++ *.idl *.odl *.cs *.php *.php3 *.inc *.m *.mm *.py
+
+FILE_PATTERNS = *.hpp *.cpp *.h *.c
+
+# The RECURSIVE tag can be used to turn specify whether or not subdirectories
+# should be searched for input files as well. Possible values are YES and NO.
+# If left blank NO is used.
+
+RECURSIVE = YES
+
+# The EXCLUDE tag can be used to specify files and/or directories that should
+# excluded from the INPUT source files. This way you can easily exclude a
+# subdirectory from a directory tree whose root is specified with the INPUT tag.
+
+EXCLUDE =
+
+# The EXCLUDE_SYMLINKS tag can be used select whether or not files or
+# directories that are symbolic links (a Unix filesystem feature) are excluded
+# from the input.
+
+EXCLUDE_SYMLINKS = NO
+
+# If the value of the INPUT tag contains directories, you can use the
+# EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude
+# certain files from those directories. Note that the wildcards are matched
+# against the file with absolute path, so to exclude all test directories
+# for example use the pattern */test/*
+
+EXCLUDE_PATTERNS = */.svn/*
+
+# The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names
+# (namespaces, classes, functions, etc.) that should be excluded from the output.
+# The symbol name can be a fully qualified name, a word, or if the wildcard * is used,
+# a substring. Examples: ANamespace, AClass, AClass::ANamespace, ANamespace::*Test
+
+EXCLUDE_SYMBOLS =
+
+# The EXAMPLE_PATH tag can be used to specify one or more files or
+# directories that contain example code fragments that are included (see
+# the \include command).
+
+EXAMPLE_PATH =
+
+# If the value of the EXAMPLE_PATH tag contains directories, you can use the
+# EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp
+# and *.h) to filter out the source-files in the directories. If left
+# blank all files are included.
+
+EXAMPLE_PATTERNS =
+
+# If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be
+# searched for input files to be used with the \include or \dontinclude
+# commands irrespective of the value of the RECURSIVE tag.
+# Possible values are YES and NO. If left blank NO is used.
+
+EXAMPLE_RECURSIVE = NO
+
+# The IMAGE_PATH tag can be used to specify one or more files or
+# directories that contain image that are included in the documentation (see
+# the \image command).
+
+IMAGE_PATH =
+
+# The INPUT_FILTER tag can be used to specify a program that doxygen should
+# invoke to filter for each input file. Doxygen will invoke the filter program
+# by executing (via popen()) the command , where
+# is the value of the INPUT_FILTER tag, and is the name of an
+# input file. Doxygen will then use the output that the filter program writes
+# to standard output. If FILTER_PATTERNS is specified, this tag will be
+# ignored.
+
+INPUT_FILTER =
+
+# The FILTER_PATTERNS tag can be used to specify filters on a per file pattern
+# basis. Doxygen will compare the file name with each pattern and apply the
+# filter if there is a match. The filters are a list of the form:
+# pattern=filter (like *.cpp=my_cpp_filter). See INPUT_FILTER for further
+# info on how filters are used. If FILTER_PATTERNS is empty, INPUT_FILTER
+# is applied to all files.
+
+FILTER_PATTERNS =
+
+# If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using
+# INPUT_FILTER) will be used to filter the input files when producing source
+# files to browse (i.e. when SOURCE_BROWSER is set to YES).
+
+FILTER_SOURCE_FILES = NO
+
+#---------------------------------------------------------------------------
+# configuration options related to source browsing
+#---------------------------------------------------------------------------
+
+# If the SOURCE_BROWSER tag is set to YES then a list of source files will
+# be generated. Documented entities will be cross-referenced with these sources.
+# Note: To get rid of all source code in the generated output, make sure also
+# VERBATIM_HEADERS is set to NO.
+
+SOURCE_BROWSER = NO
+
+# Setting the INLINE_SOURCES tag to YES will include the body
+# of functions and classes directly in the documentation.
+
+INLINE_SOURCES = NO
+
+# Setting the STRIP_CODE_COMMENTS tag to YES (the default) will instruct
+# doxygen to hide any special comment blocks from generated source code
+# fragments. Normal C and C++ comments will always remain visible.
+
+STRIP_CODE_COMMENTS = YES
+
+# If the REFERENCED_BY_RELATION tag is set to YES (the default)
+# then for each documented function all documented
+# functions referencing it will be listed.
+
+REFERENCED_BY_RELATION = YES
+
+# If the REFERENCES_RELATION tag is set to YES (the default)
+# then for each documented function all documented entities
+# called/used by that function will be listed.
+
+REFERENCES_RELATION = YES
+
+# If the REFERENCES_LINK_SOURCE tag is set to YES (the default)
+# and SOURCE_BROWSER tag is set to YES, then the hyperlinks from
+# functions in REFERENCES_RELATION and REFERENCED_BY_RELATION lists will
+# link to the source code. Otherwise they will link to the documentstion.
+
+REFERENCES_LINK_SOURCE = YES
+
+# If the USE_HTAGS tag is set to YES then the references to source code
+# will point to the HTML generated by the htags(1) tool instead of doxygen
+# built-in source browser. The htags tool is part of GNU's global source
+# tagging system (see http://www.gnu.org/software/global/global.html). You
+# will need version 4.8.6 or higher.
+
+USE_HTAGS = NO
+
+# If the VERBATIM_HEADERS tag is set to YES (the default) then Doxygen
+# will generate a verbatim copy of the header file for each class for
+# which an include is specified. Set to NO to disable this.
+
+VERBATIM_HEADERS = YES
+
+#---------------------------------------------------------------------------
+# configuration options related to the alphabetical class index
+#---------------------------------------------------------------------------
+
+# If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index
+# of all compounds will be generated. Enable this if the project
+# contains a lot of classes, structs, unions or interfaces.
+
+ALPHABETICAL_INDEX = YES
+
+# If the alphabetical index is enabled (see ALPHABETICAL_INDEX) then
+# the COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns
+# in which this list will be split (can be a number in the range [1..20])
+
+COLS_IN_ALPHA_INDEX = 3
+
+# In case all classes in a project start with a common prefix, all
+# classes will be put under the same header in the alphabetical index.
+# The IGNORE_PREFIX tag can be used to specify one or more prefixes that
+# should be ignored while generating the index headers.
+
+IGNORE_PREFIX =
+
+#---------------------------------------------------------------------------
+# configuration options related to the HTML output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_HTML tag is set to YES (the default) Doxygen will
+# generate HTML output.
+
+GENERATE_HTML = YES
+
+# The HTML_OUTPUT tag is used to specify where the HTML docs will be put.
+# If a relative path is entered the value of OUTPUT_DIRECTORY will be
+# put in front of it. If left blank `html' will be used as the default path.
+
+HTML_OUTPUT = html_dev
+
+# The HTML_FILE_EXTENSION tag can be used to specify the file extension for
+# each generated HTML page (for example: .htm,.php,.asp). If it is left blank
+# doxygen will generate files with .html extension.
+
+HTML_FILE_EXTENSION = .html
+
+# The HTML_HEADER tag can be used to specify a personal HTML header for
+# each generated HTML page. If it is left blank doxygen will generate a
+# standard header.
+
+HTML_HEADER =
+
+# The HTML_FOOTER tag can be used to specify a personal HTML footer for
+# each generated HTML page. If it is left blank doxygen will generate a
+# standard footer.
+
+HTML_FOOTER =
+
+# The HTML_STYLESHEET tag can be used to specify a user-defined cascading
+# style sheet that is used by each HTML page. It can be used to
+# fine-tune the look of the HTML output. If the tag is left blank doxygen
+# will generate a default style sheet. Note that doxygen will try to copy
+# the style sheet file to the HTML output directory, so don't put your own
+# stylesheet in the HTML output directory as well, or it will be erased!
+
+HTML_STYLESHEET =
+
+# If the HTML_ALIGN_MEMBERS tag is set to YES, the members of classes,
+# files or namespaces will be aligned in HTML using tables. If set to
+# NO a bullet list will be used.
+
+HTML_ALIGN_MEMBERS = YES
+
+# If the GENERATE_HTMLHELP tag is set to YES, additional index files
+# will be generated that can be used as input for tools like the
+# Microsoft HTML help workshop to generate a compressed HTML help file (.chm)
+# of the generated HTML documentation.
+
+GENERATE_HTMLHELP = NO
+
+# If the GENERATE_HTMLHELP tag is set to YES, the CHM_FILE tag can
+# be used to specify the file name of the resulting .chm file. You
+# can add a path in front of the file if the result should not be
+# written to the html output directory.
+
+CHM_FILE =
+
+# If the GENERATE_HTMLHELP tag is set to YES, the HHC_LOCATION tag can
+# be used to specify the location (absolute path including file name) of
+# the HTML help compiler (hhc.exe). If non-empty doxygen will try to run
+# the HTML help compiler on the generated index.hhp.
+
+HHC_LOCATION =
+
+# If the GENERATE_HTMLHELP tag is set to YES, the GENERATE_CHI flag
+# controls if a separate .chi index file is generated (YES) or that
+# it should be included in the master .chm file (NO).
+
+GENERATE_CHI = NO
+
+# If the GENERATE_HTMLHELP tag is set to YES, the BINARY_TOC flag
+# controls whether a binary table of contents is generated (YES) or a
+# normal table of contents (NO) in the .chm file.
+
+BINARY_TOC = NO
+
+# The TOC_EXPAND flag can be set to YES to add extra items for group members
+# to the contents of the HTML help documentation and to the tree view.
+
+TOC_EXPAND = NO
+
+# The DISABLE_INDEX tag can be used to turn on/off the condensed index at
+# top of each HTML page. The value NO (the default) enables the index and
+# the value YES disables it.
+
+DISABLE_INDEX = NO
+
+# This tag can be used to set the number of enum values (range [1..20])
+# that doxygen will group on one line in the generated HTML documentation.
+
+ENUM_VALUES_PER_LINE = 4
+
+# If the GENERATE_TREEVIEW tag is set to YES, a side panel will be
+# generated containing a tree-like index structure (just like the one that
+# is generated for HTML Help). For this to work a browser that supports
+# JavaScript, DHTML, CSS and frames is required (for instance Mozilla 1.0+,
+# Netscape 6.0+, Internet explorer 5.0+, or Konqueror). Windows users are
+# probably better off using the HTML help feature.
+
+GENERATE_TREEVIEW = YES
+
+# If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be
+# used to set the initial width (in pixels) of the frame in which the tree
+# is shown.
+
+TREEVIEW_WIDTH = 250
+
+#---------------------------------------------------------------------------
+# configuration options related to the LaTeX output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_LATEX tag is set to YES (the default) Doxygen will
+# generate Latex output.
+
+GENERATE_LATEX = NO
+
+# The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put.
+# If a relative path is entered the value of OUTPUT_DIRECTORY will be
+# put in front of it. If left blank `latex' will be used as the default path.
+
+LATEX_OUTPUT = latex
+
+# The LATEX_CMD_NAME tag can be used to specify the LaTeX command name to be
+# invoked. If left blank `latex' will be used as the default command name.
+
+LATEX_CMD_NAME = latex
+
+# The MAKEINDEX_CMD_NAME tag can be used to specify the command name to
+# generate index for LaTeX. If left blank `makeindex' will be used as the
+# default command name.
+
+MAKEINDEX_CMD_NAME = makeindex
+
+# If the COMPACT_LATEX tag is set to YES Doxygen generates more compact
+# LaTeX documents. This may be useful for small projects and may help to
+# save some trees in general.
+
+COMPACT_LATEX = NO
+
+# The PAPER_TYPE tag can be used to set the paper type that is used
+# by the printer. Possible values are: a4, a4wide, letter, legal and
+# executive. If left blank a4wide will be used.
+
+PAPER_TYPE = a4wide
+
+# The EXTRA_PACKAGES tag can be to specify one or more names of LaTeX
+# packages that should be included in the LaTeX output.
+
+EXTRA_PACKAGES =
+
+# The LATEX_HEADER tag can be used to specify a personal LaTeX header for
+# the generated latex document. The header should contain everything until
+# the first chapter. If it is left blank doxygen will generate a
+# standard header. Notice: only use this tag if you know what you are doing!
+
+LATEX_HEADER =
+
+# If the PDF_HYPERLINKS tag is set to YES, the LaTeX that is generated
+# is prepared for conversion to pdf (using ps2pdf). The pdf file will
+# contain links (just like the HTML output) instead of page references
+# This makes the output suitable for online browsing using a pdf viewer.
+
+PDF_HYPERLINKS = NO
+
+# If the USE_PDFLATEX tag is set to YES, pdflatex will be used instead of
+# plain latex in the generated Makefile. Set this option to YES to get a
+# higher quality PDF documentation.
+
+USE_PDFLATEX = NO
+
+# If the LATEX_BATCHMODE tag is set to YES, doxygen will add the \\batchmode.
+# command to the generated LaTeX files. This will instruct LaTeX to keep
+# running if errors occur, instead of asking the user for help.
+# This option is also used when generating formulas in HTML.
+
+LATEX_BATCHMODE = NO
+
+# If LATEX_HIDE_INDICES is set to YES then doxygen will not
+# include the index chapters (such as File Index, Compound Index, etc.)
+# in the output.
+
+LATEX_HIDE_INDICES = NO
+
+#---------------------------------------------------------------------------
+# configuration options related to the RTF output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_RTF tag is set to YES Doxygen will generate RTF output
+# The RTF output is optimized for Word 97 and may not look very pretty with
+# other RTF readers or editors.
+
+GENERATE_RTF = NO
+
+# The RTF_OUTPUT tag is used to specify where the RTF docs will be put.
+# If a relative path is entered the value of OUTPUT_DIRECTORY will be
+# put in front of it. If left blank `rtf' will be used as the default path.
+
+RTF_OUTPUT = rtf
+
+# If the COMPACT_RTF tag is set to YES Doxygen generates more compact
+# RTF documents. This may be useful for small projects and may help to
+# save some trees in general.
+
+COMPACT_RTF = NO
+
+# If the RTF_HYPERLINKS tag is set to YES, the RTF that is generated
+# will contain hyperlink fields. The RTF file will
+# contain links (just like the HTML output) instead of page references.
+# This makes the output suitable for online browsing using WORD or other
+# programs which support those fields.
+# Note: wordpad (write) and others do not support links.
+
+RTF_HYPERLINKS = NO
+
+# Load stylesheet definitions from file. Syntax is similar to doxygen's
+# config file, i.e. a series of assignments. You only have to provide
+# replacements, missing definitions are set to their default value.
+
+RTF_STYLESHEET_FILE =
+
+# Set optional variables used in the generation of an rtf document.
+# Syntax is similar to doxygen's config file.
+
+RTF_EXTENSIONS_FILE =
+
+#---------------------------------------------------------------------------
+# configuration options related to the man page output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_MAN tag is set to YES (the default) Doxygen will
+# generate man pages
+
+GENERATE_MAN = NO
+
+# The MAN_OUTPUT tag is used to specify where the man pages will be put.
+# If a relative path is entered the value of OUTPUT_DIRECTORY will be
+# put in front of it. If left blank `man' will be used as the default path.
+
+MAN_OUTPUT = man
+
+# The MAN_EXTENSION tag determines the extension that is added to
+# the generated man pages (default is the subroutine's section .3)
+
+MAN_EXTENSION = .3
+
+# If the MAN_LINKS tag is set to YES and Doxygen generates man output,
+# then it will generate one additional man file for each entity
+# documented in the real man page(s). These additional files
+# only source the real man page, but without them the man command
+# would be unable to find the correct page. The default is NO.
+
+MAN_LINKS = NO
+
+#---------------------------------------------------------------------------
+# configuration options related to the XML output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_XML tag is set to YES Doxygen will
+# generate an XML file that captures the structure of
+# the code including all documentation.
+
+GENERATE_XML = NO
+
+# The XML_OUTPUT tag is used to specify where the XML pages will be put.
+# If a relative path is entered the value of OUTPUT_DIRECTORY will be
+# put in front of it. If left blank `xml' will be used as the default path.
+
+XML_OUTPUT = xml
+
+# The XML_SCHEMA tag can be used to specify an XML schema,
+# which can be used by a validating XML parser to check the
+# syntax of the XML files.
+
+XML_SCHEMA =
+
+# The XML_DTD tag can be used to specify an XML DTD,
+# which can be used by a validating XML parser to check the
+# syntax of the XML files.
+
+XML_DTD =
+
+# If the XML_PROGRAMLISTING tag is set to YES Doxygen will
+# dump the program listings (including syntax highlighting
+# and cross-referencing information) to the XML output. Note that
+# enabling this will significantly increase the size of the XML output.
+
+XML_PROGRAMLISTING = YES
+
+#---------------------------------------------------------------------------
+# configuration options for the AutoGen Definitions output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_AUTOGEN_DEF tag is set to YES Doxygen will
+# generate an AutoGen Definitions (see autogen.sf.net) file
+# that captures the structure of the code including all
+# documentation. Note that this feature is still experimental
+# and incomplete at the moment.
+
+GENERATE_AUTOGEN_DEF = NO
+
+#---------------------------------------------------------------------------
+# configuration options related to the Perl module output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_PERLMOD tag is set to YES Doxygen will
+# generate a Perl module file that captures the structure of
+# the code including all documentation. Note that this
+# feature is still experimental and incomplete at the
+# moment.
+
+GENERATE_PERLMOD = NO
+
+# If the PERLMOD_LATEX tag is set to YES Doxygen will generate
+# the necessary Makefile rules, Perl scripts and LaTeX code to be able
+# to generate PDF and DVI output from the Perl module output.
+
+PERLMOD_LATEX = NO
+
+# If the PERLMOD_PRETTY tag is set to YES the Perl module output will be
+# nicely formatted so it can be parsed by a human reader. This is useful
+# if you want to understand what is going on. On the other hand, if this
+# tag is set to NO the size of the Perl module output will be much smaller
+# and Perl will parse it just the same.
+
+PERLMOD_PRETTY = YES
+
+# The names of the make variables in the generated doxyrules.make file
+# are prefixed with the string contained in PERLMOD_MAKEVAR_PREFIX.
+# This is useful so different doxyrules.make files included by the same
+# Makefile don't overwrite each other's variables.
+
+PERLMOD_MAKEVAR_PREFIX =
+
+#---------------------------------------------------------------------------
+# Configuration options related to the preprocessor
+#---------------------------------------------------------------------------
+
+# If the ENABLE_PREPROCESSING tag is set to YES (the default) Doxygen will
+# evaluate all C-preprocessor directives found in the sources and include
+# files.
+
+ENABLE_PREPROCESSING = YES
+
+# If the MACRO_EXPANSION tag is set to YES Doxygen will expand all macro
+# names in the source code. If set to NO (the default) only conditional
+# compilation will be performed. Macro expansion can be done in a controlled
+# way by setting EXPAND_ONLY_PREDEF to YES.
+
+MACRO_EXPANSION = NO
+
+# If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES
+# then the macro expansion is limited to the macros specified with the
+# PREDEFINED and EXPAND_AS_DEFINED tags.
+
+EXPAND_ONLY_PREDEF = NO
+
+# If the SEARCH_INCLUDES tag is set to YES (the default) the includes files
+# in the INCLUDE_PATH (see below) will be search if a #include is found.
+
+SEARCH_INCLUDES = YES
+
+# The INCLUDE_PATH tag can be used to specify one or more directories that
+# contain include files that are not input files but should be processed by
+# the preprocessor.
+
+INCLUDE_PATH =
+
+# You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard
+# patterns (like *.h and *.hpp) to filter out the header-files in the
+# directories. If left blank, the patterns specified with FILE_PATTERNS will
+# be used.
+
+INCLUDE_FILE_PATTERNS =
+
+# The PREDEFINED tag can be used to specify one or more macro names that
+# are defined before the preprocessor is started (similar to the -D option of
+# gcc). The argument of the tag is a list of macros of the form: name
+# or name=definition (no spaces). If the definition and the = are
+# omitted =1 is assumed. To prevent a macro definition from being
+# undefined via #undef or recursively expanded use the := operator
+# instead of the = operator.
+
+PREDEFINED =
+
+# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then
+# this tag can be used to specify a list of macro names that should be expanded.
+# The macro definition that is found in the sources will be used.
+# Use the PREDEFINED tag if you want to use a different macro definition.
+
+EXPAND_AS_DEFINED =
+
+# If the SKIP_FUNCTION_MACROS tag is set to YES (the default) then
+# doxygen's preprocessor will remove all function-like macros that are alone
+# on a line, have an all uppercase name, and do not end with a semicolon. Such
+# function macros are typically used for boiler-plate code, and will confuse
+# the parser if not removed.
+
+SKIP_FUNCTION_MACROS = YES
+
+#---------------------------------------------------------------------------
+# Configuration::additions related to external references
+#---------------------------------------------------------------------------
+
+# The TAGFILES option can be used to specify one or more tagfiles.
+# Optionally an initial location of the external documentation
+# can be added for each tagfile. The format of a tag file without
+# this location is as follows:
+# TAGFILES = file1 file2 ...
+# Adding location for the tag files is done as follows:
+# TAGFILES = file1=loc1 "file2 = loc2" ...
+# where "loc1" and "loc2" can be relative or absolute paths or
+# URLs. If a location is present for each tag, the installdox tool
+# does not have to be run to correct the links.
+# Note that each tag file must have a unique name
+# (where the name does NOT include the path)
+# If a tag file is not located in the directory in which doxygen
+# is run, you must also specify the path to the tagfile here.
+
+TAGFILES =
+
+# When a file name is specified after GENERATE_TAGFILE, doxygen will create
+# a tag file that is based on the input files it reads.
+
+GENERATE_TAGFILE =
+
+# If the ALLEXTERNALS tag is set to YES all external classes will be listed
+# in the class index. If set to NO only the inherited external classes
+# will be listed.
+
+ALLEXTERNALS = NO
+
+# If the EXTERNAL_GROUPS tag is set to YES all external groups will be listed
+# in the modules index. If set to NO, only the current project's groups will
+# be listed.
+
+EXTERNAL_GROUPS = YES
+
+# The PERL_PATH should be the absolute path and name of the perl script
+# interpreter (i.e. the result of `which perl').
+
+PERL_PATH = /usr/bin/perl
+
+#---------------------------------------------------------------------------
+# Configuration options related to the dot tool
+#---------------------------------------------------------------------------
+
+# If the CLASS_DIAGRAMS tag is set to YES (the default) Doxygen will
+# generate a inheritance diagram (in HTML, RTF and LaTeX) for classes with base
+# or super classes. Setting the tag to NO turns the diagrams off. Note that
+# this option is superseded by the HAVE_DOT option below. This is only a
+# fallback. It is recommended to install and use dot, since it yields more
+# powerful graphs.
+
+CLASS_DIAGRAMS = YES
+
+# You can define message sequence charts within doxygen comments using the \msc
+# command. Doxygen will then run the mscgen tool (see http://www.mcternan.me.uk/mscgen/) to
+# produce the chart and insert it in the documentation. The MSCGEN_PATH tag allows you to
+# specify the directory where the mscgen tool resides. If left empty the tool is assumed to
+# be found in the default search path.
+
+MSCGEN_PATH =
+
+# If set to YES, the inheritance and collaboration graphs will hide
+# inheritance and usage relations if the target is undocumented
+# or is not a class.
+
+HIDE_UNDOC_RELATIONS = YES
+
+# If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is
+# available from the path. This tool is part of Graphviz, a graph visualization
+# toolkit from AT&T and Lucent Bell Labs. The other options in this section
+# have no effect if this option is set to NO (the default)
+
+HAVE_DOT = YES
+
+# If the CLASS_GRAPH and HAVE_DOT tags are set to YES then doxygen
+# will generate a graph for each documented class showing the direct and
+# indirect inheritance relations. Setting this tag to YES will force the
+# the CLASS_DIAGRAMS tag to NO.
+
+CLASS_GRAPH = YES
+
+# If the COLLABORATION_GRAPH and HAVE_DOT tags are set to YES then doxygen
+# will generate a graph for each documented class showing the direct and
+# indirect implementation dependencies (inheritance, containment, and
+# class references variables) of the class with other documented classes.
+
+COLLABORATION_GRAPH = YES
+
+# If the GROUP_GRAPHS and HAVE_DOT tags are set to YES then doxygen
+# will generate a graph for groups, showing the direct groups dependencies
+
+GROUP_GRAPHS = YES
+
+# If the UML_LOOK tag is set to YES doxygen will generate inheritance and
+# collaboration diagrams in a style similar to the OMG's Unified Modeling
+# Language.
+
+UML_LOOK = YES
+
+# If set to YES, the inheritance and collaboration graphs will show the
+# relations between templates and their instances.
+
+TEMPLATE_RELATIONS = YES
+
+# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDE_GRAPH, and HAVE_DOT
+# tags are set to YES then doxygen will generate a graph for each documented
+# file showing the direct and indirect include dependencies of the file with
+# other documented files.
+
+INCLUDE_GRAPH = YES
+
+# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDED_BY_GRAPH, and
+# HAVE_DOT tags are set to YES then doxygen will generate a graph for each
+# documented header file showing the documented files that directly or
+# indirectly include this file.
+
+INCLUDED_BY_GRAPH = YES
+
+# If the CALL_GRAPH and HAVE_DOT tags are set to YES then doxygen will
+# generate a call dependency graph for every global function or class method.
+# Note that enabling this option will significantly increase the time of a run.
+# So in most cases it will be better to enable call graphs for selected
+# functions only using the \callgraph command.
+
+CALL_GRAPH = YES
+
+# If the CALLER_GRAPH and HAVE_DOT tags are set to YES then doxygen will
+# generate a caller dependency graph for every global function or class method.
+# Note that enabling this option will significantly increase the time of a run.
+# So in most cases it will be better to enable caller graphs for selected
+# functions only using the \callergraph command.
+
+CALLER_GRAPH = YES
+
+# If the GRAPHICAL_HIERARCHY and HAVE_DOT tags are set to YES then doxygen
+# will graphical hierarchy of all classes instead of a textual one.
+
+GRAPHICAL_HIERARCHY = YES
+
+# If the DIRECTORY_GRAPH, SHOW_DIRECTORIES and HAVE_DOT tags are set to YES
+# then doxygen will show the dependencies a directory has on other directories
+# in a graphical way. The dependency relations are determined by the #include
+# relations between the files in the directories.
+
+DIRECTORY_GRAPH = YES
+
+# The DOT_IMAGE_FORMAT tag can be used to set the image format of the images
+# generated by dot. Possible values are png, jpg, or gif
+# If left blank png will be used.
+
+DOT_IMAGE_FORMAT = png
+
+# The tag DOT_PATH can be used to specify the path where the dot tool can be
+# found. If left blank, it is assumed the dot tool can be found in the path.
+
+DOT_PATH = "c:\Program Files\Graphviz2.16\bin"
+
+# The DOTFILE_DIRS tag can be used to specify one or more directories that
+# contain dot files that are included in the documentation (see the
+# \dotfile command).
+
+DOTFILE_DIRS =
+
+# The MAX_DOT_GRAPH_MAX_NODES tag can be used to set the maximum number of
+# nodes that will be shown in the graph. If the number of nodes in a graph
+# becomes larger than this value, doxygen will truncate the graph, which is
+# visualized by representing a node as a red box. Note that doxygen will always
+# show the root nodes and its direct children regardless of this setting.
+
+DOT_GRAPH_MAX_NODES = 50
+
+# Set the DOT_TRANSPARENT tag to YES to generate images with a transparent
+# background. This is disabled by default, which results in a white background.
+# Warning: Depending on the platform used, enabling this option may lead to
+# badly anti-aliased labels on the edges of a graph (i.e. they become hard to
+# read).
+
+DOT_TRANSPARENT = NO
+
+# Set the DOT_MULTI_TARGETS tag to YES allow dot to generate multiple output
+# files in one run (i.e. multiple -o and -T options on the command line). This
+# makes dot run faster, but since only newer versions of dot (>1.8.10)
+# support this, this feature is disabled by default.
+
+DOT_MULTI_TARGETS = NO
+
+# If the GENERATE_LEGEND tag is set to YES (the default) Doxygen will
+# generate a legend page explaining the meaning of the various boxes and
+# arrows in the dot generated graphs.
+
+GENERATE_LEGEND = YES
+
+# If the DOT_CLEANUP tag is set to YES (the default) Doxygen will
+# remove the intermediate dot files that are used to generate
+# the various graphs.
+
+DOT_CLEANUP = YES
+
+#---------------------------------------------------------------------------
+# Configuration::additions related to the search engine
+#---------------------------------------------------------------------------
+
+# The SEARCHENGINE tag specifies whether or not a search engine should be
+# used. If set to NO the values of all tags below this one will be ignored.
+
+SEARCHENGINE = NO
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/doc/api/doxygen.conf work/libLAS-1.2.1/doc/api/doxygen.conf
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/doc/api/doxygen.conf 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/doc/api/doxygen.conf 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,1259 @@
+# Doxyfile 1.5.4
+#
+# $Id$
+
+# This file describes the settings to be used by the documentation system
+# doxygen (www.doxygen.org) for a project
+#
+# All text after a hash (#) is considered a comment and will be ignored
+# The format is:
+# TAG = value [value, ...]
+# For lists items can also be appended using:
+# TAG += value [value, ...]
+# Values that contain spaces should be placed between quotes (" ")
+
+#---------------------------------------------------------------------------
+# Project related configuration options
+#---------------------------------------------------------------------------
+
+# This tag specifies the encoding used for all characters in the config file that
+# follow. The default is UTF-8 which is also the encoding used for all text before
+# the first occurrence of this tag. Doxygen uses libiconv (or the iconv built into
+# libc) for the transcoding. See http://www.gnu.org/software/libiconv for the list of
+# possible encodings.
+
+DOXYFILE_ENCODING = UTF-8
+
+# The PROJECT_NAME tag is a single word (or a sequence of words surrounded
+# by quotes) that should identify the project.
+
+PROJECT_NAME = "libLAS API Reference"
+
+# The PROJECT_NUMBER tag can be used to enter a project or revision number.
+# This could be handy for archiving the generated documentation or
+# if some version control system is used.
+
+PROJECT_NUMBER = (svn-trunk)
+
+# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute)
+# base path where the generated documentation will be put.
+# If a relative path is entered, it will be relative to the location
+# where doxygen was started. If left blank the current directory will be used.
+
+OUTPUT_DIRECTORY = .
+
+# If the CREATE_SUBDIRS tag is set to YES, then doxygen will create
+# 4096 sub-directories (in 2 levels) under the output directory of each output
+# format and will distribute the generated files over these directories.
+# Enabling this option can be useful when feeding doxygen a huge amount of
+# source files, where putting all generated files in the same directory would
+# otherwise cause performance problems for the file system.
+
+CREATE_SUBDIRS = NO
+
+# The OUTPUT_LANGUAGE tag is used to specify the language in which all
+# documentation generated by doxygen is written. Doxygen will use this
+# information to generate all constant output in the proper language.
+# The default language is English, other supported languages are:
+# Afrikaans, Arabic, Brazilian, Catalan, Chinese, Chinese-Traditional,
+# Croatian, Czech, Danish, Dutch, Finnish, French, German, Greek, Hungarian,
+# Italian, Japanese, Japanese-en (Japanese with English messages), Korean,
+# Korean-en, Lithuanian, Norwegian, Polish, Portuguese, Romanian, Russian,
+# Serbian, Slovak, Slovene, Spanish, Swedish, and Ukrainian.
+
+OUTPUT_LANGUAGE = English
+
+# If the BRIEF_MEMBER_DESC tag is set to YES (the default) Doxygen will
+# include brief member descriptions after the members that are listed in
+# the file and class documentation (similar to JavaDoc).
+# Set to NO to disable this.
+
+BRIEF_MEMBER_DESC = YES
+
+# If the REPEAT_BRIEF tag is set to YES (the default) Doxygen will prepend
+# the brief description of a member or function before the detailed description.
+# Note: if both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the
+# brief descriptions will be completely suppressed.
+
+REPEAT_BRIEF = YES
+
+# This tag implements a quasi-intelligent brief description abbreviator
+# that is used to form the text in various listings. Each string
+# in this list, if found as the leading text of the brief description, will be
+# stripped from the text and the result after processing the whole list, is
+# used as the annotated text. Otherwise, the brief description is used as-is.
+# If left blank, the following values are used ("$name" is automatically
+# replaced with the name of the entity): "The $name class" "The $name widget"
+# "The $name file" "is" "provides" "specifies" "contains"
+# "represents" "a" "an" "the"
+
+ABBREVIATE_BRIEF =
+
+# If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then
+# Doxygen will generate a detailed section even if there is only a brief
+# description.
+
+ALWAYS_DETAILED_SEC = NO
+
+# If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all
+# inherited members of a class in the documentation of that class as if those
+# members were ordinary class members. Constructors, destructors and assignment
+# operators of the base classes will not be shown.
+
+INLINE_INHERITED_MEMB = NO
+
+# If the FULL_PATH_NAMES tag is set to YES then Doxygen will prepend the full
+# path before files name in the file list and in the header files. If set
+# to NO the shortest path that makes the file name unique will be used.
+
+FULL_PATH_NAMES = NO
+
+# If the FULL_PATH_NAMES tag is set to YES then the STRIP_FROM_PATH tag
+# can be used to strip a user-defined part of the path. Stripping is
+# only done if one of the specified strings matches the left-hand part of
+# the path. The tag can be used to show relative paths in the file list.
+# If left blank the directory from which doxygen is run is used as the
+# path to strip.
+
+STRIP_FROM_PATH =
+
+# The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of
+# the path mentioned in the documentation of a class, which tells
+# the reader which header file to include in order to use a class.
+# If left blank only the name of the header file containing the class
+# definition is used. Otherwise one should specify the include paths that
+# are normally passed to the compiler using the -I flag.
+
+STRIP_FROM_INC_PATH =
+
+# If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter
+# (but less readable) file names. This can be useful is your file systems
+# doesn't support long names like on DOS, Mac, or CD-ROM.
+
+SHORT_NAMES = NO
+
+# If the JAVADOC_AUTOBRIEF tag is set to YES then Doxygen
+# will interpret the first line (until the first dot) of a JavaDoc-style
+# comment as the brief description. If set to NO, the JavaDoc
+# comments will behave just like the Qt-style comments (thus requiring an
+# explicit @brief command for a brief description.
+
+JAVADOC_AUTOBRIEF = YES
+
+# The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make Doxygen
+# treat a multi-line C++ special comment block (i.e. a block of //! or ///
+# comments) as a brief description. This used to be the default behaviour.
+# The new default is to treat a multi-line C++ comment block as a detailed
+# description. Set this tag to YES if you prefer the old behaviour instead.
+
+MULTILINE_CPP_IS_BRIEF = NO
+
+# If the DETAILS_AT_TOP tag is set to YES then Doxygen
+# will output the detailed description near the top, like JavaDoc.
+# If set to NO, the detailed description appears after the member
+# documentation.
+
+DETAILS_AT_TOP = NO
+
+# If the INHERIT_DOCS tag is set to YES (the default) then an undocumented
+# member inherits the documentation from any documented member that it
+# re-implements.
+
+INHERIT_DOCS = YES
+
+# If the SEPARATE_MEMBER_PAGES tag is set to YES, then doxygen will produce
+# a new page for each member. If set to NO, the documentation of a member will
+# be part of the file/class/namespace that contains it.
+
+SEPARATE_MEMBER_PAGES = NO
+
+# The TAB_SIZE tag can be used to set the number of spaces in a tab.
+# Doxygen uses this value to replace tabs by spaces in code fragments.
+
+TAB_SIZE = 4
+
+# This tag can be used to specify a number of aliases that acts
+# as commands in the documentation. An alias has the form "name=value".
+# For example adding "sideeffect=\par Side Effects:\n" will allow you to
+# put the command \sideeffect (or @sideeffect) in the documentation, which
+# will result in a user-defined paragraph with heading "Side Effects:".
+# You can put \n's in the value part of an alias to insert newlines.
+
+ALIASES =
+
+# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C
+# sources only. Doxygen will then generate output that is more tailored for C.
+# For instance, some of the names that are used will be different. The list
+# of all members will be omitted, etc.
+
+OPTIMIZE_OUTPUT_FOR_C = NO
+
+# Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java
+# sources only. Doxygen will then generate output that is more tailored for Java.
+# For instance, namespaces will be presented as packages, qualified scopes
+# will look different, etc.
+
+OPTIMIZE_OUTPUT_JAVA = NO
+
+# If you use STL classes (i.e. std::string, std::vector, etc.) but do not want to
+# include (a tag file for) the STL sources as input, then you should
+# set this tag to YES in order to let doxygen match functions declarations and
+# definitions whose arguments contain STL classes (e.g. func(std::string); v.s.
+# func(std::string) {}). This also make the inheritance and collaboration
+# diagrams that involve STL classes more complete and accurate.
+
+BUILTIN_STL_SUPPORT = NO
+
+# If you use Microsoft's C++/CLI language, you should set this option to YES to
+# enable parsing support.
+
+CPP_CLI_SUPPORT = NO
+
+# If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC
+# tag is set to YES, then doxygen will reuse the documentation of the first
+# member in the group (if any) for the other members of the group. By default
+# all members of a group must be documented explicitly.
+
+DISTRIBUTE_GROUP_DOC = NO
+
+# Set the SUBGROUPING tag to YES (the default) to allow class member groups of
+# the same type (for instance a group of public functions) to be put as a
+# subgroup of that type (e.g. under the Public Functions section). Set it to
+# NO to prevent subgrouping. Alternatively, this can be done per class using
+# the \nosubgrouping command.
+
+SUBGROUPING = YES
+
+#---------------------------------------------------------------------------
+# Build related configuration options
+#---------------------------------------------------------------------------
+
+# If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in
+# documentation are documented, even if no documentation was available.
+# Private class members and static file members will be hidden unless
+# the EXTRACT_PRIVATE and EXTRACT_STATIC tags are set to YES
+
+EXTRACT_ALL = YES
+
+# If the EXTRACT_PRIVATE tag is set to YES all private members of a class
+# will be included in the documentation.
+
+EXTRACT_PRIVATE = NO
+
+# If the EXTRACT_STATIC tag is set to YES all static members of a file
+# will be included in the documentation.
+
+EXTRACT_STATIC = YES
+
+# If the EXTRACT_LOCAL_CLASSES tag is set to YES classes (and structs)
+# defined locally in source files will be included in the documentation.
+# If set to NO only classes defined in header files are included.
+
+EXTRACT_LOCAL_CLASSES = NO
+
+# This flag is only useful for Objective-C code. When set to YES local
+# methods, which are defined in the implementation section but not in
+# the interface are included in the documentation.
+# If set to NO (the default) only methods in the interface are included.
+
+EXTRACT_LOCAL_METHODS = YES
+
+# If the HIDE_UNDOC_MEMBERS tag is set to YES, Doxygen will hide all
+# undocumented members of documented classes, files or namespaces.
+# If set to NO (the default) these members will be included in the
+# various overviews, but no documentation section is generated.
+# This option has no effect if EXTRACT_ALL is enabled.
+
+HIDE_UNDOC_MEMBERS = NO
+
+# If the HIDE_UNDOC_CLASSES tag is set to YES, Doxygen will hide all
+# undocumented classes that are normally visible in the class hierarchy.
+# If set to NO (the default) these classes will be included in the various
+# overviews. This option has no effect if EXTRACT_ALL is enabled.
+
+HIDE_UNDOC_CLASSES = NO
+
+# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, Doxygen will hide all
+# friend (class|struct|union) declarations.
+# If set to NO (the default) these declarations will be included in the
+# documentation.
+
+HIDE_FRIEND_COMPOUNDS = NO
+
+# If the HIDE_IN_BODY_DOCS tag is set to YES, Doxygen will hide any
+# documentation blocks found inside the body of a function.
+# If set to NO (the default) these blocks will be appended to the
+# function's detailed documentation block.
+
+HIDE_IN_BODY_DOCS = NO
+
+# The INTERNAL_DOCS tag determines if documentation
+# that is typed after a \internal command is included. If the tag is set
+# to NO (the default) then the documentation will be excluded.
+# Set it to YES to include the internal documentation.
+
+INTERNAL_DOCS = NO
+
+# If the CASE_SENSE_NAMES tag is set to NO then Doxygen will only generate
+# file names in lower-case letters. If set to YES upper-case letters are also
+# allowed. This is useful if you have classes or files whose names only differ
+# in case and if your file system supports case sensitive file names. Windows
+# and Mac users are advised to set this option to NO.
+
+CASE_SENSE_NAMES = YES
+
+# If the HIDE_SCOPE_NAMES tag is set to NO (the default) then Doxygen
+# will show members with their full class and namespace scopes in the
+# documentation. If set to YES the scope will be hidden.
+
+HIDE_SCOPE_NAMES = NO
+
+# If the SHOW_INCLUDE_FILES tag is set to YES (the default) then Doxygen
+# will put a list of the files that are included by a file in the documentation
+# of that file.
+
+SHOW_INCLUDE_FILES = YES
+
+# If the INLINE_INFO tag is set to YES (the default) then a tag [inline]
+# is inserted in the documentation for inline members.
+
+INLINE_INFO = YES
+
+# If the SORT_MEMBER_DOCS tag is set to YES (the default) then doxygen
+# will sort the (detailed) documentation of file and class members
+# alphabetically by member name. If set to NO the members will appear in
+# declaration order.
+
+SORT_MEMBER_DOCS = YES
+
+# If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the
+# brief documentation of file, namespace and class members alphabetically
+# by member name. If set to NO (the default) the members will appear in
+# declaration order.
+
+SORT_BRIEF_DOCS = NO
+
+# If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be
+# sorted by fully-qualified names, including namespaces. If set to
+# NO (the default), the class list will be sorted only by class name,
+# not including the namespace part.
+# Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES.
+# Note: This option applies only to the class list, not to the
+# alphabetical list.
+
+SORT_BY_SCOPE_NAME = NO
+
+# The GENERATE_TODOLIST tag can be used to enable (YES) or
+# disable (NO) the todo list. This list is created by putting \todo
+# commands in the documentation.
+
+GENERATE_TODOLIST = YES
+
+# The GENERATE_TESTLIST tag can be used to enable (YES) or
+# disable (NO) the test list. This list is created by putting \test
+# commands in the documentation.
+
+GENERATE_TESTLIST = YES
+
+# The GENERATE_BUGLIST tag can be used to enable (YES) or
+# disable (NO) the bug list. This list is created by putting \bug
+# commands in the documentation.
+
+GENERATE_BUGLIST = YES
+
+# The GENERATE_DEPRECATEDLIST tag can be used to enable (YES) or
+# disable (NO) the deprecated list. This list is created by putting
+# \deprecated commands in the documentation.
+
+GENERATE_DEPRECATEDLIST= YES
+
+# The ENABLED_SECTIONS tag can be used to enable conditional
+# documentation sections, marked by \if sectionname ... \endif.
+
+ENABLED_SECTIONS =
+
+# The MAX_INITIALIZER_LINES tag determines the maximum number of lines
+# the initial value of a variable or define consists of for it to appear in
+# the documentation. If the initializer consists of more lines than specified
+# here it will be hidden. Use a value of 0 to hide initializers completely.
+# The appearance of the initializer of individual variables and defines in the
+# documentation can be controlled using \showinitializer or \hideinitializer
+# command in the documentation regardless of this setting.
+
+MAX_INITIALIZER_LINES = 30
+
+# Set the SHOW_USED_FILES tag to NO to disable the list of files generated
+# at the bottom of the documentation of classes and structs. If set to YES the
+# list will mention the files that were used to generate the documentation.
+
+SHOW_USED_FILES = YES
+
+# If the sources in your project are distributed over multiple directories
+# then setting the SHOW_DIRECTORIES tag to YES will show the directory hierarchy
+# in the documentation. The default is NO.
+
+SHOW_DIRECTORIES = YES
+
+# The FILE_VERSION_FILTER tag can be used to specify a program or script that
+# doxygen should invoke to get the current version for each file (typically from the
+# version control system). Doxygen will invoke the program by executing (via
+# popen()) the command , where is the value of
+# the FILE_VERSION_FILTER tag, and is the name of an input file
+# provided by doxygen. Whatever the program writes to standard output
+# is used as the file version. See the manual for examples.
+
+FILE_VERSION_FILTER =
+
+#---------------------------------------------------------------------------
+# configuration options related to warning and progress messages
+#---------------------------------------------------------------------------
+
+# The QUIET tag can be used to turn on/off the messages that are generated
+# by doxygen. Possible values are YES and NO. If left blank NO is used.
+
+QUIET = NO
+
+# The WARNINGS tag can be used to turn on/off the warning messages that are
+# generated by doxygen. Possible values are YES and NO. If left blank
+# NO is used.
+
+WARNINGS = YES
+
+# If WARN_IF_UNDOCUMENTED is set to YES, then doxygen will generate warnings
+# for undocumented members. If EXTRACT_ALL is set to YES then this flag will
+# automatically be disabled.
+
+WARN_IF_UNDOCUMENTED = YES
+
+# If WARN_IF_DOC_ERROR is set to YES, doxygen will generate warnings for
+# potential errors in the documentation, such as not documenting some
+# parameters in a documented function, or documenting parameters that
+# don't exist or using markup commands wrongly.
+
+WARN_IF_DOC_ERROR = YES
+
+# This WARN_NO_PARAMDOC option can be abled to get warnings for
+# functions that are documented, but have no documentation for their parameters
+# or return value. If set to NO (the default) doxygen will only warn about
+# wrong or incomplete parameter documentation, but not about the absence of
+# documentation.
+
+WARN_NO_PARAMDOC = NO
+
+# The WARN_FORMAT tag determines the format of the warning messages that
+# doxygen can produce. The string should contain the $file, $line, and $text
+# tags, which will be replaced by the file and line number from which the
+# warning originated and the warning text. Optionally the format may contain
+# $version, which will be replaced by the version of the file (if it could
+# be obtained via FILE_VERSION_FILTER)
+
+WARN_FORMAT = "$file:$line: $text"
+
+# The WARN_LOGFILE tag can be used to specify a file to which warning
+# and error messages should be written. If left blank the output is written
+# to stderr.
+
+WARN_LOGFILE =
+
+#---------------------------------------------------------------------------
+# configuration options related to the input files
+#---------------------------------------------------------------------------
+
+# The INPUT tag can be used to specify the files and/or directories that contain
+# documented source files. You may enter file names like "myfile.cpp" or
+# directories like "/usr/src/myproject". Separate the files or directories
+# with spaces.
+
+INPUT = ../../include/liblas ../../include/liblas/capi
+
+# This tag can be used to specify the character encoding of the source files that
+# doxygen parses. Internally doxygen uses the UTF-8 encoding, which is also the default
+# input encoding. Doxygen uses libiconv (or the iconv built into libc) for the transcoding.
+# See http://www.gnu.org/software/libiconv for the list of possible encodings.
+
+INPUT_ENCODING = UTF-8
+
+# If the value of the INPUT tag contains directories, you can use the
+# FILE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp
+# and *.h) to filter out the source-files in the directories. If left
+# blank the following patterns are tested:
+# *.c *.cc *.cxx *.cpp *.c++ *.java *.ii *.ixx *.ipp *.i++ *.inl *.h *.hh *.hxx
+# *.hpp *.h++ *.idl *.odl *.cs *.php *.php3 *.inc *.m *.mm *.py
+
+FILE_PATTERNS = *.hpp *.cpp *.h *.c
+
+# The RECURSIVE tag can be used to turn specify whether or not subdirectories
+# should be searched for input files as well. Possible values are YES and NO.
+# If left blank NO is used.
+
+RECURSIVE = NO
+
+# The EXCLUDE tag can be used to specify files and/or directories that should
+# excluded from the INPUT source files. This way you can easily exclude a
+# subdirectory from a directory tree whose root is specified with the INPUT tag.
+
+EXCLUDE =
+
+# The EXCLUDE_SYMLINKS tag can be used select whether or not files or
+# directories that are symbolic links (a Unix filesystem feature) are excluded
+# from the input.
+
+EXCLUDE_SYMLINKS = NO
+
+# If the value of the INPUT tag contains directories, you can use the
+# EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude
+# certain files from those directories. Note that the wildcards are matched
+# against the file with absolute path, so to exclude all test directories
+# for example use the pattern */test/*
+
+EXCLUDE_PATTERNS = */.svn/*
+
+# The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names
+# (namespaces, classes, functions, etc.) that should be excluded from the output.
+# The symbol name can be a fully qualified name, a word, or if the wildcard * is used,
+# a substring. Examples: ANamespace, AClass, AClass::ANamespace, ANamespace::*Test
+
+EXCLUDE_SYMBOLS =
+
+# The EXAMPLE_PATH tag can be used to specify one or more files or
+# directories that contain example code fragments that are included (see
+# the \include command).
+
+EXAMPLE_PATH =
+
+# If the value of the EXAMPLE_PATH tag contains directories, you can use the
+# EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp
+# and *.h) to filter out the source-files in the directories. If left
+# blank all files are included.
+
+EXAMPLE_PATTERNS =
+
+# If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be
+# searched for input files to be used with the \include or \dontinclude
+# commands irrespective of the value of the RECURSIVE tag.
+# Possible values are YES and NO. If left blank NO is used.
+
+EXAMPLE_RECURSIVE = NO
+
+# The IMAGE_PATH tag can be used to specify one or more files or
+# directories that contain image that are included in the documentation (see
+# the \image command).
+
+IMAGE_PATH =
+
+# The INPUT_FILTER tag can be used to specify a program that doxygen should
+# invoke to filter for each input file. Doxygen will invoke the filter program
+# by executing (via popen()) the command , where
+# is the value of the INPUT_FILTER tag, and is the name of an
+# input file. Doxygen will then use the output that the filter program writes
+# to standard output. If FILTER_PATTERNS is specified, this tag will be
+# ignored.
+
+INPUT_FILTER =
+
+# The FILTER_PATTERNS tag can be used to specify filters on a per file pattern
+# basis. Doxygen will compare the file name with each pattern and apply the
+# filter if there is a match. The filters are a list of the form:
+# pattern=filter (like *.cpp=my_cpp_filter). See INPUT_FILTER for further
+# info on how filters are used. If FILTER_PATTERNS is empty, INPUT_FILTER
+# is applied to all files.
+
+FILTER_PATTERNS =
+
+# If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using
+# INPUT_FILTER) will be used to filter the input files when producing source
+# files to browse (i.e. when SOURCE_BROWSER is set to YES).
+
+FILTER_SOURCE_FILES = NO
+
+#---------------------------------------------------------------------------
+# configuration options related to source browsing
+#---------------------------------------------------------------------------
+
+# If the SOURCE_BROWSER tag is set to YES then a list of source files will
+# be generated. Documented entities will be cross-referenced with these sources.
+# Note: To get rid of all source code in the generated output, make sure also
+# VERBATIM_HEADERS is set to NO.
+
+SOURCE_BROWSER = NO
+
+# Setting the INLINE_SOURCES tag to YES will include the body
+# of functions and classes directly in the documentation.
+
+INLINE_SOURCES = NO
+
+# Setting the STRIP_CODE_COMMENTS tag to YES (the default) will instruct
+# doxygen to hide any special comment blocks from generated source code
+# fragments. Normal C and C++ comments will always remain visible.
+
+STRIP_CODE_COMMENTS = YES
+
+# If the REFERENCED_BY_RELATION tag is set to YES (the default)
+# then for each documented function all documented
+# functions referencing it will be listed.
+
+REFERENCED_BY_RELATION = YES
+
+# If the REFERENCES_RELATION tag is set to YES (the default)
+# then for each documented function all documented entities
+# called/used by that function will be listed.
+
+REFERENCES_RELATION = YES
+
+# If the REFERENCES_LINK_SOURCE tag is set to YES (the default)
+# and SOURCE_BROWSER tag is set to YES, then the hyperlinks from
+# functions in REFERENCES_RELATION and REFERENCED_BY_RELATION lists will
+# link to the source code. Otherwise they will link to the documentstion.
+
+REFERENCES_LINK_SOURCE = YES
+
+# If the USE_HTAGS tag is set to YES then the references to source code
+# will point to the HTML generated by the htags(1) tool instead of doxygen
+# built-in source browser. The htags tool is part of GNU's global source
+# tagging system (see http://www.gnu.org/software/global/global.html). You
+# will need version 4.8.6 or higher.
+
+USE_HTAGS = NO
+
+# If the VERBATIM_HEADERS tag is set to YES (the default) then Doxygen
+# will generate a verbatim copy of the header file for each class for
+# which an include is specified. Set to NO to disable this.
+
+VERBATIM_HEADERS = YES
+
+#---------------------------------------------------------------------------
+# configuration options related to the alphabetical class index
+#---------------------------------------------------------------------------
+
+# If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index
+# of all compounds will be generated. Enable this if the project
+# contains a lot of classes, structs, unions or interfaces.
+
+ALPHABETICAL_INDEX = YES
+
+# If the alphabetical index is enabled (see ALPHABETICAL_INDEX) then
+# the COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns
+# in which this list will be split (can be a number in the range [1..20])
+
+COLS_IN_ALPHA_INDEX = 3
+
+# In case all classes in a project start with a common prefix, all
+# classes will be put under the same header in the alphabetical index.
+# The IGNORE_PREFIX tag can be used to specify one or more prefixes that
+# should be ignored while generating the index headers.
+
+IGNORE_PREFIX =
+
+#---------------------------------------------------------------------------
+# configuration options related to the HTML output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_HTML tag is set to YES (the default) Doxygen will
+# generate HTML output.
+
+GENERATE_HTML = YES
+
+# The HTML_OUTPUT tag is used to specify where the HTML docs will be put.
+# If a relative path is entered the value of OUTPUT_DIRECTORY will be
+# put in front of it. If left blank `html' will be used as the default path.
+
+HTML_OUTPUT = html
+
+# The HTML_FILE_EXTENSION tag can be used to specify the file extension for
+# each generated HTML page (for example: .htm,.php,.asp). If it is left blank
+# doxygen will generate files with .html extension.
+
+HTML_FILE_EXTENSION = .html
+
+# The HTML_HEADER tag can be used to specify a personal HTML header for
+# each generated HTML page. If it is left blank doxygen will generate a
+# standard header.
+
+HTML_HEADER = TracHeader.html
+
+# The HTML_FOOTER tag can be used to specify a personal HTML footer for
+# each generated HTML page. If it is left blank doxygen will generate a
+# standard footer.
+
+HTML_FOOTER = TracHeader.html
+
+# The HTML_STYLESHEET tag can be used to specify a user-defined cascading
+# style sheet that is used by each HTML page. It can be used to
+# fine-tune the look of the HTML output. If the tag is left blank doxygen
+# will generate a default style sheet. Note that doxygen will try to copy
+# the style sheet file to the HTML output directory, so don't put your own
+# stylesheet in the HTML output directory as well, or it will be erased!
+
+HTML_STYLESHEET =
+
+# If the HTML_ALIGN_MEMBERS tag is set to YES, the members of classes,
+# files or namespaces will be aligned in HTML using tables. If set to
+# NO a bullet list will be used.
+
+HTML_ALIGN_MEMBERS = YES
+
+# If the GENERATE_HTMLHELP tag is set to YES, additional index files
+# will be generated that can be used as input for tools like the
+# Microsoft HTML help workshop to generate a compressed HTML help file (.chm)
+# of the generated HTML documentation.
+
+GENERATE_HTMLHELP = NO
+
+# If the GENERATE_HTMLHELP tag is set to YES, the CHM_FILE tag can
+# be used to specify the file name of the resulting .chm file. You
+# can add a path in front of the file if the result should not be
+# written to the html output directory.
+
+CHM_FILE =
+
+# If the GENERATE_HTMLHELP tag is set to YES, the HHC_LOCATION tag can
+# be used to specify the location (absolute path including file name) of
+# the HTML help compiler (hhc.exe). If non-empty doxygen will try to run
+# the HTML help compiler on the generated index.hhp.
+
+HHC_LOCATION =
+
+# If the GENERATE_HTMLHELP tag is set to YES, the GENERATE_CHI flag
+# controls if a separate .chi index file is generated (YES) or that
+# it should be included in the master .chm file (NO).
+
+GENERATE_CHI = NO
+
+# If the GENERATE_HTMLHELP tag is set to YES, the BINARY_TOC flag
+# controls whether a binary table of contents is generated (YES) or a
+# normal table of contents (NO) in the .chm file.
+
+BINARY_TOC = NO
+
+# The TOC_EXPAND flag can be set to YES to add extra items for group members
+# to the contents of the HTML help documentation and to the tree view.
+
+TOC_EXPAND = NO
+
+# The DISABLE_INDEX tag can be used to turn on/off the condensed index at
+# top of each HTML page. The value NO (the default) enables the index and
+# the value YES disables it.
+
+DISABLE_INDEX = NO
+
+# This tag can be used to set the number of enum values (range [1..20])
+# that doxygen will group on one line in the generated HTML documentation.
+
+ENUM_VALUES_PER_LINE = 4
+
+# If the GENERATE_TREEVIEW tag is set to YES, a side panel will be
+# generated containing a tree-like index structure (just like the one that
+# is generated for HTML Help). For this to work a browser that supports
+# JavaScript, DHTML, CSS and frames is required (for instance Mozilla 1.0+,
+# Netscape 6.0+, Internet explorer 5.0+, or Konqueror). Windows users are
+# probably better off using the HTML help feature.
+
+GENERATE_TREEVIEW = YES
+
+# If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be
+# used to set the initial width (in pixels) of the frame in which the tree
+# is shown.
+
+TREEVIEW_WIDTH = 250
+
+#---------------------------------------------------------------------------
+# configuration options related to the LaTeX output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_LATEX tag is set to YES (the default) Doxygen will
+# generate Latex output.
+
+GENERATE_LATEX = NO
+
+# The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put.
+# If a relative path is entered the value of OUTPUT_DIRECTORY will be
+# put in front of it. If left blank `latex' will be used as the default path.
+
+LATEX_OUTPUT = latex
+
+# The LATEX_CMD_NAME tag can be used to specify the LaTeX command name to be
+# invoked. If left blank `latex' will be used as the default command name.
+
+LATEX_CMD_NAME = latex
+
+# The MAKEINDEX_CMD_NAME tag can be used to specify the command name to
+# generate index for LaTeX. If left blank `makeindex' will be used as the
+# default command name.
+
+MAKEINDEX_CMD_NAME = makeindex
+
+# If the COMPACT_LATEX tag is set to YES Doxygen generates more compact
+# LaTeX documents. This may be useful for small projects and may help to
+# save some trees in general.
+
+COMPACT_LATEX = NO
+
+# The PAPER_TYPE tag can be used to set the paper type that is used
+# by the printer. Possible values are: a4, a4wide, letter, legal and
+# executive. If left blank a4wide will be used.
+
+PAPER_TYPE = a4wide
+
+# The EXTRA_PACKAGES tag can be to specify one or more names of LaTeX
+# packages that should be included in the LaTeX output.
+
+EXTRA_PACKAGES =
+
+# The LATEX_HEADER tag can be used to specify a personal LaTeX header for
+# the generated latex document. The header should contain everything until
+# the first chapter. If it is left blank doxygen will generate a
+# standard header. Notice: only use this tag if you know what you are doing!
+
+LATEX_HEADER =
+
+# If the PDF_HYPERLINKS tag is set to YES, the LaTeX that is generated
+# is prepared for conversion to pdf (using ps2pdf). The pdf file will
+# contain links (just like the HTML output) instead of page references
+# This makes the output suitable for online browsing using a pdf viewer.
+
+PDF_HYPERLINKS = NO
+
+# If the USE_PDFLATEX tag is set to YES, pdflatex will be used instead of
+# plain latex in the generated Makefile. Set this option to YES to get a
+# higher quality PDF documentation.
+
+USE_PDFLATEX = NO
+
+# If the LATEX_BATCHMODE tag is set to YES, doxygen will add the \\batchmode.
+# command to the generated LaTeX files. This will instruct LaTeX to keep
+# running if errors occur, instead of asking the user for help.
+# This option is also used when generating formulas in HTML.
+
+LATEX_BATCHMODE = NO
+
+# If LATEX_HIDE_INDICES is set to YES then doxygen will not
+# include the index chapters (such as File Index, Compound Index, etc.)
+# in the output.
+
+LATEX_HIDE_INDICES = NO
+
+#---------------------------------------------------------------------------
+# configuration options related to the RTF output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_RTF tag is set to YES Doxygen will generate RTF output
+# The RTF output is optimized for Word 97 and may not look very pretty with
+# other RTF readers or editors.
+
+GENERATE_RTF = NO
+
+# The RTF_OUTPUT tag is used to specify where the RTF docs will be put.
+# If a relative path is entered the value of OUTPUT_DIRECTORY will be
+# put in front of it. If left blank `rtf' will be used as the default path.
+
+RTF_OUTPUT = rtf
+
+# If the COMPACT_RTF tag is set to YES Doxygen generates more compact
+# RTF documents. This may be useful for small projects and may help to
+# save some trees in general.
+
+COMPACT_RTF = NO
+
+# If the RTF_HYPERLINKS tag is set to YES, the RTF that is generated
+# will contain hyperlink fields. The RTF file will
+# contain links (just like the HTML output) instead of page references.
+# This makes the output suitable for online browsing using WORD or other
+# programs which support those fields.
+# Note: wordpad (write) and others do not support links.
+
+RTF_HYPERLINKS = NO
+
+# Load stylesheet definitions from file. Syntax is similar to doxygen's
+# config file, i.e. a series of assignments. You only have to provide
+# replacements, missing definitions are set to their default value.
+
+RTF_STYLESHEET_FILE =
+
+# Set optional variables used in the generation of an rtf document.
+# Syntax is similar to doxygen's config file.
+
+RTF_EXTENSIONS_FILE =
+
+#---------------------------------------------------------------------------
+# configuration options related to the man page output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_MAN tag is set to YES (the default) Doxygen will
+# generate man pages
+
+GENERATE_MAN = NO
+
+# The MAN_OUTPUT tag is used to specify where the man pages will be put.
+# If a relative path is entered the value of OUTPUT_DIRECTORY will be
+# put in front of it. If left blank `man' will be used as the default path.
+
+MAN_OUTPUT = man
+
+# The MAN_EXTENSION tag determines the extension that is added to
+# the generated man pages (default is the subroutine's section .3)
+
+MAN_EXTENSION = .3
+
+# If the MAN_LINKS tag is set to YES and Doxygen generates man output,
+# then it will generate one additional man file for each entity
+# documented in the real man page(s). These additional files
+# only source the real man page, but without them the man command
+# would be unable to find the correct page. The default is NO.
+
+MAN_LINKS = NO
+
+#---------------------------------------------------------------------------
+# configuration options related to the XML output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_XML tag is set to YES Doxygen will
+# generate an XML file that captures the structure of
+# the code including all documentation.
+
+GENERATE_XML = NO
+
+# The XML_OUTPUT tag is used to specify where the XML pages will be put.
+# If a relative path is entered the value of OUTPUT_DIRECTORY will be
+# put in front of it. If left blank `xml' will be used as the default path.
+
+XML_OUTPUT = xml
+
+# The XML_SCHEMA tag can be used to specify an XML schema,
+# which can be used by a validating XML parser to check the
+# syntax of the XML files.
+
+XML_SCHEMA =
+
+# The XML_DTD tag can be used to specify an XML DTD,
+# which can be used by a validating XML parser to check the
+# syntax of the XML files.
+
+XML_DTD =
+
+# If the XML_PROGRAMLISTING tag is set to YES Doxygen will
+# dump the program listings (including syntax highlighting
+# and cross-referencing information) to the XML output. Note that
+# enabling this will significantly increase the size of the XML output.
+
+XML_PROGRAMLISTING = YES
+
+#---------------------------------------------------------------------------
+# configuration options for the AutoGen Definitions output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_AUTOGEN_DEF tag is set to YES Doxygen will
+# generate an AutoGen Definitions (see autogen.sf.net) file
+# that captures the structure of the code including all
+# documentation. Note that this feature is still experimental
+# and incomplete at the moment.
+
+GENERATE_AUTOGEN_DEF = NO
+
+#---------------------------------------------------------------------------
+# configuration options related to the Perl module output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_PERLMOD tag is set to YES Doxygen will
+# generate a Perl module file that captures the structure of
+# the code including all documentation. Note that this
+# feature is still experimental and incomplete at the
+# moment.
+
+GENERATE_PERLMOD = NO
+
+# If the PERLMOD_LATEX tag is set to YES Doxygen will generate
+# the necessary Makefile rules, Perl scripts and LaTeX code to be able
+# to generate PDF and DVI output from the Perl module output.
+
+PERLMOD_LATEX = NO
+
+# If the PERLMOD_PRETTY tag is set to YES the Perl module output will be
+# nicely formatted so it can be parsed by a human reader. This is useful
+# if you want to understand what is going on. On the other hand, if this
+# tag is set to NO the size of the Perl module output will be much smaller
+# and Perl will parse it just the same.
+
+PERLMOD_PRETTY = YES
+
+# The names of the make variables in the generated doxyrules.make file
+# are prefixed with the string contained in PERLMOD_MAKEVAR_PREFIX.
+# This is useful so different doxyrules.make files included by the same
+# Makefile don't overwrite each other's variables.
+
+PERLMOD_MAKEVAR_PREFIX =
+
+#---------------------------------------------------------------------------
+# Configuration options related to the preprocessor
+#---------------------------------------------------------------------------
+
+# If the ENABLE_PREPROCESSING tag is set to YES (the default) Doxygen will
+# evaluate all C-preprocessor directives found in the sources and include
+# files.
+
+ENABLE_PREPROCESSING = YES
+
+# If the MACRO_EXPANSION tag is set to YES Doxygen will expand all macro
+# names in the source code. If set to NO (the default) only conditional
+# compilation will be performed. Macro expansion can be done in a controlled
+# way by setting EXPAND_ONLY_PREDEF to YES.
+
+MACRO_EXPANSION = NO
+
+# If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES
+# then the macro expansion is limited to the macros specified with the
+# PREDEFINED and EXPAND_AS_DEFINED tags.
+
+EXPAND_ONLY_PREDEF = NO
+
+# If the SEARCH_INCLUDES tag is set to YES (the default) the includes files
+# in the INCLUDE_PATH (see below) will be search if a #include is found.
+
+SEARCH_INCLUDES = YES
+
+# The INCLUDE_PATH tag can be used to specify one or more directories that
+# contain include files that are not input files but should be processed by
+# the preprocessor.
+
+INCLUDE_PATH =
+
+# You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard
+# patterns (like *.h and *.hpp) to filter out the header-files in the
+# directories. If left blank, the patterns specified with FILE_PATTERNS will
+# be used.
+
+INCLUDE_FILE_PATTERNS =
+
+# The PREDEFINED tag can be used to specify one or more macro names that
+# are defined before the preprocessor is started (similar to the -D option of
+# gcc). The argument of the tag is a list of macros of the form: name
+# or name=definition (no spaces). If the definition and the = are
+# omitted =1 is assumed. To prevent a macro definition from being
+# undefined via #undef or recursively expanded use the := operator
+# instead of the = operator.
+
+PREDEFINED =
+
+# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then
+# this tag can be used to specify a list of macro names that should be expanded.
+# The macro definition that is found in the sources will be used.
+# Use the PREDEFINED tag if you want to use a different macro definition.
+
+EXPAND_AS_DEFINED =
+
+# If the SKIP_FUNCTION_MACROS tag is set to YES (the default) then
+# doxygen's preprocessor will remove all function-like macros that are alone
+# on a line, have an all uppercase name, and do not end with a semicolon. Such
+# function macros are typically used for boiler-plate code, and will confuse
+# the parser if not removed.
+
+SKIP_FUNCTION_MACROS = YES
+
+#---------------------------------------------------------------------------
+# Configuration::additions related to external references
+#---------------------------------------------------------------------------
+
+# The TAGFILES option can be used to specify one or more tagfiles.
+# Optionally an initial location of the external documentation
+# can be added for each tagfile. The format of a tag file without
+# this location is as follows:
+# TAGFILES = file1 file2 ...
+# Adding location for the tag files is done as follows:
+# TAGFILES = file1=loc1 "file2 = loc2" ...
+# where "loc1" and "loc2" can be relative or absolute paths or
+# URLs. If a location is present for each tag, the installdox tool
+# does not have to be run to correct the links.
+# Note that each tag file must have a unique name
+# (where the name does NOT include the path)
+# If a tag file is not located in the directory in which doxygen
+# is run, you must also specify the path to the tagfile here.
+
+TAGFILES =
+
+# When a file name is specified after GENERATE_TAGFILE, doxygen will create
+# a tag file that is based on the input files it reads.
+
+GENERATE_TAGFILE =
+
+# If the ALLEXTERNALS tag is set to YES all external classes will be listed
+# in the class index. If set to NO only the inherited external classes
+# will be listed.
+
+ALLEXTERNALS = NO
+
+# If the EXTERNAL_GROUPS tag is set to YES all external groups will be listed
+# in the modules index. If set to NO, only the current project's groups will
+# be listed.
+
+EXTERNAL_GROUPS = YES
+
+# The PERL_PATH should be the absolute path and name of the perl script
+# interpreter (i.e. the result of `which perl').
+
+PERL_PATH = /usr/bin/perl
+
+#---------------------------------------------------------------------------
+# Configuration options related to the dot tool
+#---------------------------------------------------------------------------
+
+# If the CLASS_DIAGRAMS tag is set to YES (the default) Doxygen will
+# generate a inheritance diagram (in HTML, RTF and LaTeX) for classes with base
+# or super classes. Setting the tag to NO turns the diagrams off. Note that
+# this option is superseded by the HAVE_DOT option below. This is only a
+# fallback. It is recommended to install and use dot, since it yields more
+# powerful graphs.
+
+CLASS_DIAGRAMS = YES
+
+# You can define message sequence charts within doxygen comments using the \msc
+# command. Doxygen will then run the mscgen tool (see http://www.mcternan.me.uk/mscgen/) to
+# produce the chart and insert it in the documentation. The MSCGEN_PATH tag allows you to
+# specify the directory where the mscgen tool resides. If left empty the tool is assumed to
+# be found in the default search path.
+
+MSCGEN_PATH =
+
+# If set to YES, the inheritance and collaboration graphs will hide
+# inheritance and usage relations if the target is undocumented
+# or is not a class.
+
+HIDE_UNDOC_RELATIONS = YES
+
+# If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is
+# available from the path. This tool is part of Graphviz, a graph visualization
+# toolkit from AT&T and Lucent Bell Labs. The other options in this section
+# have no effect if this option is set to NO (the default)
+
+HAVE_DOT = YES
+
+# If the CLASS_GRAPH and HAVE_DOT tags are set to YES then doxygen
+# will generate a graph for each documented class showing the direct and
+# indirect inheritance relations. Setting this tag to YES will force the
+# the CLASS_DIAGRAMS tag to NO.
+
+CLASS_GRAPH = YES
+
+# If the COLLABORATION_GRAPH and HAVE_DOT tags are set to YES then doxygen
+# will generate a graph for each documented class showing the direct and
+# indirect implementation dependencies (inheritance, containment, and
+# class references variables) of the class with other documented classes.
+
+COLLABORATION_GRAPH = YES
+
+# If the GROUP_GRAPHS and HAVE_DOT tags are set to YES then doxygen
+# will generate a graph for groups, showing the direct groups dependencies
+
+GROUP_GRAPHS = YES
+
+# If the UML_LOOK tag is set to YES doxygen will generate inheritance and
+# collaboration diagrams in a style similar to the OMG's Unified Modeling
+# Language.
+
+UML_LOOK = YES
+
+# If set to YES, the inheritance and collaboration graphs will show the
+# relations between templates and their instances.
+
+TEMPLATE_RELATIONS = YES
+
+# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDE_GRAPH, and HAVE_DOT
+# tags are set to YES then doxygen will generate a graph for each documented
+# file showing the direct and indirect include dependencies of the file with
+# other documented files.
+
+INCLUDE_GRAPH = YES
+
+# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDED_BY_GRAPH, and
+# HAVE_DOT tags are set to YES then doxygen will generate a graph for each
+# documented header file showing the documented files that directly or
+# indirectly include this file.
+
+INCLUDED_BY_GRAPH = YES
+
+# If the CALL_GRAPH and HAVE_DOT tags are set to YES then doxygen will
+# generate a call dependency graph for every global function or class method.
+# Note that enabling this option will significantly increase the time of a run.
+# So in most cases it will be better to enable call graphs for selected
+# functions only using the \callgraph command.
+
+CALL_GRAPH = YES
+
+# If the CALLER_GRAPH and HAVE_DOT tags are set to YES then doxygen will
+# generate a caller dependency graph for every global function or class method.
+# Note that enabling this option will significantly increase the time of a run.
+# So in most cases it will be better to enable caller graphs for selected
+# functions only using the \callergraph command.
+
+CALLER_GRAPH = YES
+
+# If the GRAPHICAL_HIERARCHY and HAVE_DOT tags are set to YES then doxygen
+# will graphical hierarchy of all classes instead of a textual one.
+
+GRAPHICAL_HIERARCHY = YES
+
+# If the DIRECTORY_GRAPH, SHOW_DIRECTORIES and HAVE_DOT tags are set to YES
+# then doxygen will show the dependencies a directory has on other directories
+# in a graphical way. The dependency relations are determined by the #include
+# relations between the files in the directories.
+
+DIRECTORY_GRAPH = YES
+
+# The DOT_IMAGE_FORMAT tag can be used to set the image format of the images
+# generated by dot. Possible values are png, jpg, or gif
+# If left blank png will be used.
+
+DOT_IMAGE_FORMAT = png
+
+# The tag DOT_PATH can be used to specify the path where the dot tool can be
+# found. If left blank, it is assumed the dot tool can be found in the path.
+
+DOT_PATH = "c:\Program Files\Graphviz2.16\bin"
+
+# The DOTFILE_DIRS tag can be used to specify one or more directories that
+# contain dot files that are included in the documentation (see the
+# \dotfile command).
+
+DOTFILE_DIRS =
+
+# The MAX_DOT_GRAPH_MAX_NODES tag can be used to set the maximum number of
+# nodes that will be shown in the graph. If the number of nodes in a graph
+# becomes larger than this value, doxygen will truncate the graph, which is
+# visualized by representing a node as a red box. Note that doxygen will always
+# show the root nodes and its direct children regardless of this setting.
+
+DOT_GRAPH_MAX_NODES = 50
+
+# Set the DOT_TRANSPARENT tag to YES to generate images with a transparent
+# background. This is disabled by default, which results in a white background.
+# Warning: Depending on the platform used, enabling this option may lead to
+# badly anti-aliased labels on the edges of a graph (i.e. they become hard to
+# read).
+
+DOT_TRANSPARENT = NO
+
+# Set the DOT_MULTI_TARGETS tag to YES allow dot to generate multiple output
+# files in one run (i.e. multiple -o and -T options on the command line). This
+# makes dot run faster, but since only newer versions of dot (>1.8.10)
+# support this, this feature is disabled by default.
+
+DOT_MULTI_TARGETS = NO
+
+# If the GENERATE_LEGEND tag is set to YES (the default) Doxygen will
+# generate a legend page explaining the meaning of the various boxes and
+# arrows in the dot generated graphs.
+
+GENERATE_LEGEND = YES
+
+# If the DOT_CLEANUP tag is set to YES (the default) Doxygen will
+# remove the intermediate dot files that are used to generate
+# the various graphs.
+
+DOT_CLEANUP = YES
+
+#---------------------------------------------------------------------------
+# Configuration::additions related to the search engine
+#---------------------------------------------------------------------------
+
+# The SEARCHENGINE tag specifies whether or not a search engine should be
+# used. If set to NO the values of all tags below this one will be ignored.
+
+SEARCHENGINE = NO
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/doc/api/TracFooter.html work/libLAS-1.2.1/doc/api/TracFooter.html
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/doc/api/TracFooter.html 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/doc/api/TracFooter.html 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,2 @@
+
+
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/doc/api/TracHeader.html work/libLAS-1.2.1/doc/api/TracHeader.html
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/doc/api/TracHeader.html 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/doc/api/TracHeader.html 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,5 @@
+
+
+
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/doc/las2las.txt work/libLAS-1.2.1/doc/las2las.txt
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/doc/las2las.txt 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/doc/las2las.txt 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,160 @@
+****************************************************************
+ las2las: converts from binary LAS to binary LAS
+****************************************************************
+
+:Author: Martin Isenburg
+:Contact: isenburg@cs.unc.edu
+:Author: Howard Butler
+:Contact: hobu.inc@gmail.com
+:Revision: $Revision$
+:Date: $Date$
+
+.. sectnum::
+
+.. contents::
+ :depth: 3
+ :backlinks: top
+
+Description
+-----------
+
+`las2las` reads and writes LiDAR data in the ASPRS LAS 1.0 and 1.1 formats while
+modifying its contents. While `lasinfo` can do a few simple operations like
+updating header information, more drastic changes, like removing points or
+altering values, will require `las2las`. `las2las` is expected to be used for
+modifying single files at a time, and all `las2las` operations require multiple
+read passes through the points. Some examples of operations `las2las` can be
+used for include:
+
+* clipping of points to those that lie within a certain region specified
+ by a bounding box (--clip)
+* eliminating points that are the second return (--eliminate_return 2),
+* eliminating points that have a scan angle
+ above some threshold (--eliminate_scan_angle_above 5)
+* eliminating points that have an intensity below some
+ threshold (--eliminate_intensity_below 15)
+* extracting only first (--first-only) or last (--last-only) returns
+* changing the format from LAS 1.0 to 1.1 or vice versa
+* eliminating points of a given classification (--eliminate class 2)
+
+`las2las` is a port of Martin Isenburg's `las2las` utility from `LASTools`_
+to the libLAS library. For the most part, it is unchanged from Martin's
+utility except for a few differences:
+
+* Text output describing the operation(s) is only provided when the --verbose
+ switch is provided.
+
+* Provides some point validation
+
+* Variable Length Records (VLRs) are carried forward by default.
+
+* Supports format (1.1->1.0 & 1.0->1.1) conversion.
+
+* GNU-style arguments and switches (although most of the switches used by
+ Martin's utilities should continue to work).
+
+Usage
+-----
+
+Clipping with a rectangle
+~~~~~~~~~~~~~~~~~~~~~~~~~
+
+::
+
+ $ las2las --input in.las --output out.las --clip 63025000 483450000 63050000 483475000
+
+clips points of in.las with x<63025000 or y<483450000 or x>63050000
+or y>483475000 and stores surviving points to out.las. Note that
+clip expects the scaled integer values that the points are stored
+with (not the floating point coordinates they represent).
+
+Eliminating specified returns
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+::
+
+ $ las2las --input in.las --output out.las --eliminate_return 1
+
+eliminates all points of in.las that are designated first returns by the
+value in their return_number field and stores surviving points to out.las.
+
+Limiting based on scan angle
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+::
+
+ $ las2las --input in.las --output out.las --eliminate_scan_angle_above 15
+
+eliminates all points of in.las whose scan angle is above 15 or below -15
+and stores surviving points to out.las.
+
+Limiting based on intensity
+~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+::
+
+ $ las2las --input in.las --output out.las --eliminate_intensity_below 1000
+
+eliminates all points of in.las whose intensity is below 1000 and stores
+surviving points to out.las.
+
+Extract last returns
+~~~~~~~~~~~~~~~~~~~~
+
+::
+
+ $ las2las --input in.las --output out.las --last_only
+
+extracts all last return points from in.las and stores them to out.las.
+
+Throw out invalid data
+~~~~~~~~~~~~~~~~~~~~~~
+
+::
+
+ $ las2las --input in.las --output out.las --skip_invalid
+
+removes invalid (according to the ASPRS LAS file format specification) points.
+This switch should only be required in a few special circumstances.
+
+Eliminate ground points
+~~~~~~~~~~~~~~~~~~~~~~~
+
+::
+
+ $ las2las --input in.las --output out.las --eliminate_class 2
+
+removes points with that have a classification of 2. Points with a
+classification of 2 are conventionally called ground points, but that convention
+may not be followed for older LAS 1.0 files.
+
+Convert to 1.1
+~~~~~~~~~~~~~~~~~~~~~~
+
+::
+
+ $ las2las --input in.las --output out.las --format 1.1
+
+converts the in.las file to a 1.1-formatted file. For the most part, this
+conversion is "in name only." For example,
+
+
+
+
+Usage
+-----
+
+::
+
+ C:\lastools\bin>las2las -h
+ usage:
+ las2las -remove_extra_header in.las out.las
+ las2las -i in.las -clip 63000000 483450000 63050000 483500000 -o out.las
+ las2las -i in.las -eliminate_return 2 -o out.las
+ las2las -i in.las -eliminate_scan_angle_above 15 -o out.las
+ las2las -i in.las -eliminate_intensity_below 1000 -olas > out.las
+ las2las -i in.las -first_only -clip 63000000 483450000 63050000 483500000 -o out.las
+ las2las -i in.las -last_only -eliminate_intensity_below 2000 -olas > out.las
+ las2las -h
+
+.. _`LAStools`: http://www.cs.unc.edu/~isenburg/lastools/
\ No newline at end of file
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/doc/las2ogr.txt work/libLAS-1.2.1/doc/las2ogr.txt
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/doc/las2ogr.txt 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/doc/las2ogr.txt 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,51 @@
+****************************************************************
+ las2ogr: converts from binary LAS to one of OGR formats
+****************************************************************
+
+:Author: Mateusz Loskot
+:Contact: mateusz@loskot.net
+:Revision: $Revision$
+:Date: $Date$
+
+.. sectnum::
+
+.. contents::
+ :depth: 3
+ :backlinks: top
+
+lasdiff compares two LAS files and reports whether they are identical
+or whether they are different.
+
+las2ogr converts LAS file to data source using OGR drivers
+available from GDAL/OGR package. This utility is useful to translate
+cloud of points collected by LiDAR sensors to vectors for easier
+data exchange and processing.
+
+In order to build las2ogr utility, one has to link libLAS against GDAL library.
+For Unix, use ./configure script option --with-gdal.
+For Windows, edit nmake.opt file and set GDAL_HOME variable.
+Windows users can instal GDAL binaries using friendly installer from OSGeo4W package.
+
+Usage
+-----
+
+::
+
+ $ las2ogr -h
+ Usage: las2ogr OPTIONS
+ Options are:
+ -h print this message
+ -i input ASPRS LAS file
+ -o output file
+ -f OGR format for output file
+ -formats list supported OGR formats
+
+Example
+-------
+
+Shows how to convert LAS file to ESRI Shapefile with POINT geometry type:
+
+::
+
+ $ las2ogr -i mydata.las -o points.shp -f "ESRI Shapefile"
+
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/doc/las2txt.txt work/libLAS-1.2.1/doc/las2txt.txt
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/doc/las2txt.txt 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/doc/las2txt.txt 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,111 @@
+****************************************************************
+ las2txt: converts from binary LAS to a standard ASCII format
+****************************************************************
+
+:Author: Martin Isenburg
+:Contact: isenburg@cs.unc.edu
+:Revision: $Revision$
+:Date: $Date$
+
+.. sectnum::
+
+.. contents::
+ :depth: 3
+ :backlinks: top
+
+Simple conversion to text file
+------------------------------
+
+::
+
+ $ las2txt -i lidar.las -o lidar.txt -parse xyz
+
+converts LAS file to ASCII and places the x, y, and z coordinate
+of each point at the 1st, 2nd, and 3rd entry of each line. the
+entries are seperated by a space.
+
+Specifying a separator
+----------------------
+
+::
+
+ $ las2txt -i lidar.las -o lidar.txt -parse txyzr -sep komma
+
+converts LAS file to ASCII and places the gps_time as the first
+entry, the x, y, and z coordinates at the 2nd, 3rd, and 4th entry
+and the number of the return as the 5th entry of each line. the
+entries are separated by a komma.
+
+Altering the header separtor
+----------------------------
+
+::
+
+ $ las2txt -i lidar.las -o lidar.txt -parse xyzia -sep semicolon -header pound
+
+converts LAS file to ASCII and places the x, y, and z coordinate
+at the 1st, 2nd, and 3rd entry, the intensity at the 4th and the
+scan angle as the 5th entry of each line. the entries are separated
+by a semicolon. at the beginning of the file we print the header
+information as a comment starting with a '#' symbol.
+
+Altering the coordinate order
+-----------------------------
+
+::
+
+ $ las2txt -i lidar.las -o lidar.txt -parse xyzcu -sep tab -header percent
+
+converts LAS file to ASCII and places the x, y, and z coordinate
+at the 1st, 2nd, and 3rd entry, the classification at the 4th and
+the user data as the 5th entry of each line. the entries are
+separated by a semicolon. at the beginning of the file we print
+the header information as a comment starting with a '%' symbol.
+
+Usage
+-----
+
+::
+
+ C:\lastools\bin>las2txt -h
+ usage:
+ las2txt lidar.las
+ las2txt -parse xyziar lidar.las lidar.txt
+ las2txt -i lidar.las -o lidar.laz -parse xyz
+ las2txt -parse xyzt -verbose lidar.las
+ las2txt -parse xyz lidar.las.gz
+ las2txt -h
+
+The '-parse txyz' flag specifies how to format each each line of the ASCII
+file. For example, 'txyzia' means that the first number of each line should
+be the gpstime, the next three numbers should be the x, y, and z coordinate,
+the next number should be the intensity and the next number should be the
+scan angle.
+
+Supported entries
+~~~~~~~~~~~~~~~~~
+
+ * a - scan angle
+ * i - intensity,
+ * n - number of returns for given pulse
+ * r - number of this return
+ * c - classification
+ * u - user data
+ * p - point source ID
+ * e - edge of flight line flag
+ * d - direction of scan flag
+
+Separators
+~~~~~~~~~~
+
+The '-sep space' flag specifies what separator to use. The default is a
+space but 'tab', 'komma', 'colon', 'hyphen', 'dot', or 'semicolon'
+are other possibilities.
+
+Header Separators
+~~~~~~~~~~~~~~~~~
+The '-header pound' flag results in the header information being printed at
+the beginning of the ASCII file in form of a comment that starts with the
+special character '#'. Also possible are 'percent', 'dollar', 'semicolon',
+'komma', 'star', 'colon', or 'semicolon' as that special character.
+
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/doc/lasdiff.txt work/libLAS-1.2.1/doc/lasdiff.txt
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/doc/lasdiff.txt 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/doc/lasdiff.txt 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,29 @@
+****************************************************************
+ lasdiff: comparison of LAS files
+****************************************************************
+
+:Author: Martin Isenburg
+:Contact: isenburg@cs.unc.edu
+:Revision: $Revision$
+:Date: $Date$
+
+.. sectnum::
+
+.. contents::
+ :depth: 3
+ :backlinks: top
+
+lasdiff compares two LAS files and reports whether they are identical
+or whether they are different.
+
+Usage
+-----
+
+::
+
+ C:\lastools\bin>lasdiff -h
+ usage:
+ lasdiff lidar1.las lidar2.las
+ lasdiff lidar1.las lidar1.laz
+ lasdiff -i lidar1.las -i lidar1.laz
+ lasdiff -h
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/doc/lasinfo.txt work/libLAS-1.2.1/doc/lasinfo.txt
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/doc/lasinfo.txt 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/doc/lasinfo.txt 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,148 @@
+****************************************************************
+ lasinfo: a utility for inspecting LAS files
+****************************************************************
+
+:Author: Martin Isenburg
+:Contact: isenburg@cs.unc.edu
+:Author: Howard Butler
+:Contact: hobu.inc@gmail.com
+:Revision: $Revision$
+:Date: $Date$
+
+.. sectnum::
+
+.. contents::
+ :depth: 3
+ :backlinks: top
+
+Description
+-----------
+
+`lasinfo` prints the header contents by default, and with a switch, can
+be used to print a short summary of the points. When in summary mode (using
+the --check switch), differences between header info and point content are
+reported as warnings. `lasinfo` prints its information to stderr, and you
+can use pipes to redirect the output of `lasinfo` as necessary. `lasinfo`
+supports reading from stdin, but it does not attempt to read from stdin if the
+--stdin switch is not used. `lasinfo` can also be used to modify a few header
+entries in-place as described in the examples.
+
+`lasinfo` is a port of Martin Isenburg's `lasinfo` utility from `LASTools`_
+to the libLAS library. For the most part, it is unchanged from Martin's
+utility except for a few differences:
+
+* It does *not* scan the points by default and instead you must use the --check
+ switch to have them scanned.
+
+* It *does* print the Variable Length Records (VLRs) by default.
+
+* Slightly different (and tidier) output format.
+
+* GNU-style arguments and switches (although most of the switches used by
+ Martin's utilities should continue to work).
+
+
+Usage
+-----
+
+Simple header inspection
+~~~~~~~~~~~~~~~~~~~~~~~~
+
+::
+
+ $ lasinfo lidar.las
+ $ lasinfo --input lidar.las
+
+
+Read from STDIN
+~~~~~~~~~~~~~~~
+
+::
+
+ $ lasinfo --stdin < lidar.las
+
+
+Variable Header Records
+~~~~~~~~~~~~~~~~~~~~~~~
+
+::
+
+ $ lasinfo --input lidar.las -skip_vlr
+
+will skip the printing of Variable Record Headers (VLRs) for the file.
+
+Check the points for header inconsistencies
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+::
+
+ $ lasinfo --input lidar.las --check
+
+scans over all the points and reports any differences with the header.
+Descriptive information like minimums and maximums of various variables
+(time, x, y, z, etc) and some basic histograms are also reported.
+
+Repair missing or inconsistent header information
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+::
+
+ $ lasinfo --input lidar.las --repair
+
+will add missing or repair inconsistent header entries with respect to the points.
+Items that are repaired with --repair include the bounding box header entries
+and the point records by return count. Future versions of the software may
+include other header repair types if they can be done in such a way as to not
+require rewriting of the file.
+
+Update bounding box of LAS file
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+::
+
+ $ lasinfo --input lidar.las --repair_boundingbox
+
+reads all points, computes their bounding box, and updates it in the header.
+
+Set file creation date
+~~~~~~~~~~~~~~~~~~~~~~
+
+::
+
+ $ lasinfo -i lidar.las --file_creation 8 2007
+
+sets the file creation day/year in the header to 8/2007. With accordance to the
+ASPRS LAS specification, this literally means the 8th day of 2007.
+
+Set system identifier
+~~~~~~~~~~~~~~~~~~~~~
+
+::
+
+ $ lasinfo -i lidar.las --system_identifier "hello world!"
+
+copies the first 31 characters of the string into the system_identifier
+field of the header.
+
+Set generating software header field
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+::
+
+ $ lasinfo -i lidar.las -generating_software "this is a test (-:"
+
+copies the first 31 characters of the string into the generating_software
+field of the header.
+
+Example data
+------------
+
+try these sources for sample lidar data in LAS format:
+
+http://www.geoict.net/LidarData/Data/OptechSampleLAS.zip
+
+http://www.qcoherent.com/data/LP360_Sample_Data.rar
+
+http://www.appliedimagery.com/Serpent%20Mound%20Model%20LAS%20Data.las
+
+.. _`LAStools`: http://www.cs.unc.edu/~isenburg/lastools/
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/doc/lasmerge.txt work/libLAS-1.2.1/doc/lasmerge.txt
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/doc/lasmerge.txt 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/doc/lasmerge.txt 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,77 @@
+****************************************************************
+ lasmerge: merge multiple LAS files into a single file
+****************************************************************
+
+:Author: Martin Isenburg
+:Contact: isenburg@cs.unc.edu
+:Revision: $Revision$
+:Date: $Date$
+
+.. sectnum::
+
+.. contents::
+ :depth: 3
+ :backlinks: top
+
+lasmerge reads multiple LIDAR data files in the LAS format and merges them
+into a single file. The filenames can either be provided one by one or in
+form of a text file.
+
+All the header information of the first file provided is used including
+variable and user_defined headers. but some records are updated by
+integrating the corresponding information from other headers. these are:
+
+* number_of_point_records
+* number_of_points_by_return[5]
+* max_x, min_x, max_y, min_y, max_z, and min_z
+
+In addition x_scale_factor, y_scale_factor, z_scale_factor may need to be
+increased to accommodate a possibly larger bounding box. The user can
+also set those in the command line with
+
+ -scale 0.01 or -scale_xyz 0.01 0.01 0.001
+
+Similarly a new offset can be specified
+
+ -xyz_offset 63025000 483450000 0
+
+Usage
+-----
+
+::
+
+ $ lasmerge -i in1.las -i in2.las -i in3.las -o out.las
+
+merge the three inX.las files into one out.las file.
+
+::
+
+ $ lasmerge -i las_file_list.txt -o out.las
+
+merges all LAS files listed in the text file into one out.las file
+
+::
+
+ $ lasmerge -i las_file_list.txt -o out.las -scale 0.01 -verbose
+
+merges the file and stores the LIDAR points with 0.01 accuracy in x, y, and
+z and prints out control information.
+
+::
+
+ $ lasmerge -i las_file_list.txt -o out.las -scale_xyz 0.01 0.01 0.001
+
+same but with a different accuracy for z.
+
+Help
+~~~~
+
+::
+
+ C:\lastools\bin>lasmerge -h
+ usage:
+ lasmerge -i lasfiles.txt -o out.las
+ lasmerge -i file1.las -i file2.las -i file3.las -o out.las
+ lasmerge -i file1.las -i file2.las -olas > out.las
+ lasmerge -i lasfiles.txt -scale 0.01 -verbose -o out.las
+ lasmerge -h
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/doc/Makefile.am work/libLAS-1.2.1/doc/Makefile.am
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/doc/Makefile.am 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/doc/Makefile.am 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1 @@
+SUBDIRS= man
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/doc/man/Makefile.am work/libLAS-1.2.1/doc/man/Makefile.am
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/doc/man/Makefile.am 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/doc/man/Makefile.am 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,11 @@
+man3_MANS=lasinfo.man las2las.man lasmerge.man
+dist_man3_MANS = lasinfo.man las2las.man lasmerge.man
+
+lasinfo.man: ../lasinfo.txt
+ python ../rst2man.py ../lasinfo.txt lasinfo.man
+
+las2las.man: ../las2las.txt
+ python ../rst2man.py ../las2las.txt las2las.man
+
+lasmerge.man: ../lasmerge.txt
+ python ../rst2man.py ../lasmerge.txt lasmerge.man
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/doc/rst2man.py work/libLAS-1.2.1/doc/rst2man.py
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/doc/rst2man.py 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/doc/rst2man.py 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,26 @@
+#!/usr/bin/env python
+
+# Author:
+# Contact: grubert@users.sf.net
+# Copyright: This module has been placed in the public domain.
+
+"""
+man.py
+======
+
+This module provides a simple command line interface that uses the
+man page writer to output from ReStructuredText source.
+"""
+
+import locale
+try:
+ locale.setlocale(locale.LC_ALL, '')
+except:
+ pass
+
+from docutils.core import publish_cmdline, default_description
+from writers import manpage
+
+description = ("Generates plain man. " + default_description)
+
+publish_cmdline(writer=manpage.Writer(), description=description)
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/doc/txt2las.txt work/libLAS-1.2.1/doc/txt2las.txt
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/doc/txt2las.txt 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/doc/txt2las.txt 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,84 @@
+****************************************************************
+ las2txt: converts from standard ASCII to LAS
+****************************************************************
+
+:Author: Martin Isenburg
+:Contact: isenburg@cs.unc.edu
+:Revision: $Revision$
+:Date: $Date$
+
+.. sectnum::
+
+.. contents::
+ :depth: 3
+ :backlinks: top
+
+txt2las converts LIDAR data from a standard ASCII format into the more
+efficient binary LAS representation.
+
+Usage
+-----
+
+::
+
+ $ txt2las -i lidar.taxyz -o lidar.las -parse ssxyz
+
+converts ASCII file and uses the 3rd, 4th, and 5th entry of each
+line as the x, y, and z coordinate of each point.
+
+::
+
+ $ txt2las -i lidar.txt.gz -o lidar.las -parse txyzsa
+
+converts a gzipped ASCII file and uses the 1st entry of each line
+as the gps time, the 3rd, 4th, and 5th entry as the x, y, and z
+coordinate of each point, and the 6th entry as the scan angle
+
+Help
+~~~~
+
+::
+
+ C:\lastools\bin>txt2las -h
+ usage:
+ txt2las -parse tsxyz lidar.txt
+ txt2las -parse txyzar lidar.txt.gz lidar.laz
+ txt2las -parse xyz -scale 0.02 -i lidar.txt -o lidar.laz
+ txt2las -parse xyzsst -verbose -scale 0.05 lidar.txt
+ txt2las -parse xsysz -xyz_scale 0.02 0.02 0.01 lidar.txt
+ txt2las -h
+
+Parsing Flags
+-------------
+
+The '-parse tsxyz' flag specifies how to interpret each line of the ASCII
+file. For example, 'tsxyzssa' means that the first number is the gpstime,
+the next number should be skipped, the next three numbers are the x, y,
+and z coordinate, the next two should be skipped, and the next number
+is the scan angle.
+
+The other supported entries are:
+ * i - intensity
+ * n - number of returns of given pulse
+ * r - number of return
+ * c - classification
+ * u - user data
+ * p - point source ID
+ * e - edge of flight line flag
+ * d - direction of scan flag.
+
+Scale
+-----
+
+The '-scale 0.02' flag specifies the quantization. The default value of
+0.01 means that the smallest increment two between coordinates is 0.01.
+If measurements are in meters this corresponds to centimeter accuracy,
+which is commonly considered sufficient for LIDAR data.
+
+Other parameters
+----------------
+
+Other parameters such as '-xyz_offset 500000 2000000 0'
+or '-xyz_scale 0.02 0.02 0.01' or '-file_creation 67 2003'
+or '-system_identifier "Airborne One Leica 50,000 Hz"'
+or '-generating_software "TerraScan"' are available too.
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/doc/writers/manpage.py work/libLAS-1.2.1/doc/writers/manpage.py
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/doc/writers/manpage.py 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/doc/writers/manpage.py 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,1072 @@
+# $Id: manpage.py 5554 2008-05-15 07:12:34Z grubert $
+# Author: Engelbert Gruber
+# Copyright: This module is put into the public domain.
+
+"""
+Simple man page writer for reStructuredText.
+
+Man pages (short for "manual pages") contain system documentation on unix-like
+systems. The pages are grouped in numbered sections:
+
+ 1 executable programs and shell commands
+ 2 system calls
+ 3 library functions
+ 4 special files
+ 5 file formats
+ 6 games
+ 7 miscellaneous
+ 8 system administration
+
+Man pages are written *troff*, a text file formatting system.
+
+See http://www.tldp.org/HOWTO/Man-Page for a start.
+
+Man pages have no subsection only parts.
+Standard parts
+
+ NAME ,
+ SYNOPSIS ,
+ DESCRIPTION ,
+ OPTIONS ,
+ FILES ,
+ SEE ALSO ,
+ BUGS ,
+
+and
+
+ AUTHOR .
+
+A unix-like system keeps an index of the DESCRIPTIONs, which is accesable
+by the command whatis or apropos.
+
+"""
+
+# NOTE: the macros only work when at line start, so try the rule
+# start new lines in visit_ functions.
+
+__docformat__ = 'reStructuredText'
+
+import sys
+import os
+import time
+import re
+from types import ListType
+
+import docutils
+from docutils import nodes, utils, writers, languages
+
+FIELD_LIST_INDENT = 7
+DEFINITION_LIST_INDENT = 7
+OPTION_LIST_INDENT = 7
+BLOCKQOUTE_INDENT = 3.5
+
+# Define two macros so man/roff can calculate the
+# indent/unindent margins by itself
+MACRO_DEF = (r"""
+.nr rst2man-indent-level 0
+.
+.de1 rstReportMargin
+\\$1 \\n[an-margin]
+level \\n[rst2man-indent-level]
+level magin: \\n[rst2man-indent\\n[rst2man-indent-level]]
+-
+\\n[rst2man-indent0]
+\\n[rst2man-indent1]
+\\n[rst2man-indent2]
+..
+.de1 INDENT
+.\" .rstReportMargin pre:
+. RS \\$1
+. nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
+. nr rst2man-indent-level +1
+.\" .rstReportMargin post:
+..
+.de UNINDENT
+. RE
+.\" indent \\n[an-margin]
+.\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
+.nr rst2man-indent-level -1
+.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
+.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
+..
+""")
+
+class Writer(writers.Writer):
+
+ supported = ('manpage')
+ """Formats this writer supports."""
+
+ output = None
+ """Final translated form of `document`."""
+
+ def __init__(self):
+ writers.Writer.__init__(self)
+ self.translator_class = Translator
+
+ def translate(self):
+ visitor = self.translator_class(self.document)
+ self.document.walkabout(visitor)
+ self.output = visitor.astext()
+
+
+class Table:
+ def __init__(self):
+ self._rows = []
+ self._options = ['center', ]
+ self._tab_char = '\t'
+ self._coldefs = []
+ def new_row(self):
+ self._rows.append([])
+ def append_cell(self, cell_lines):
+ """cell_lines is an array of lines"""
+ self._rows[-1].append(cell_lines)
+ if len(self._coldefs) < len(self._rows[-1]):
+ self._coldefs.append('l')
+ def astext(self):
+ text = '.TS\n'
+ text += ' '.join(self._options) + ';\n'
+ text += '|%s|.\n' % ('|'.join(self._coldefs))
+ for row in self._rows:
+ # row = array of cells. cell = array of lines.
+ # line above
+ text += '_\n'
+ max_lns_in_cell = 0
+ for cell in row:
+ max_lns_in_cell = max(len(cell), max_lns_in_cell)
+ for ln_cnt in range(max_lns_in_cell):
+ line = []
+ for cell in row:
+ if len(cell) > ln_cnt:
+ line.append(cell[ln_cnt])
+ else:
+ line.append(" ")
+ text += self._tab_char.join(line) + '\n'
+ text += '_\n'
+ text += '.TE\n'
+ return text
+
+class Translator(nodes.NodeVisitor):
+ """"""
+
+ words_and_spaces = re.compile(r'\S+| +|\n')
+ document_start = """Man page generated from reStructeredText."""
+
+ def __init__(self, document):
+ nodes.NodeVisitor.__init__(self, document)
+ self.settings = settings = document.settings
+ lcode = settings.language_code
+ self.language = languages.get_language(lcode)
+ self.head = []
+ self.body = []
+ self.foot = []
+ self.section_level = 0
+ self.context = []
+ self.topic_class = ''
+ self.colspecs = []
+ self.compact_p = 1
+ self.compact_simple = None
+ # the list style "*" bullet or "#" numbered
+ self._list_char = []
+ # writing the header .TH and .SH NAME is postboned after
+ # docinfo.
+ self._docinfo = {
+ "title" : "", "subtitle" : "",
+ "manual_section" : "", "manual_group" : "",
+ "author" : "",
+ "date" : "",
+ "copyright" : "",
+ "version" : "",
+ }
+ self._in_docinfo = None
+ self._active_table = None
+ self._in_entry = None
+ self.header_written = 0
+ self.authors = []
+ self.section_level = 0
+ self._indent = [0]
+ # central definition of simple processing rules
+ # what to output on : visit, depart
+ self.defs = {
+ 'indent' : ('.INDENT %.1f\n', '.UNINDENT\n'),
+ 'definition' : ('', ''),
+ 'definition_list' : ('', '.TP 0\n'),
+ 'definition_list_item' : ('\n.TP', ''),
+ #field_list
+ #field
+ 'field_name' : ('\n.TP\n.B ', '\n'),
+ 'field_body' : ('', '.RE\n', ),
+ 'literal' : ('\\fB', '\\fP'),
+ 'literal_block' : ('\n.nf\n', '\n.fi\n'),
+
+ #option_list
+ 'option_list_item' : ('\n.TP', ''),
+ #option_group, option
+ 'description' : ('\n', ''),
+
+ 'reference' : (r'\fI\%', r'\fP'),
+ #'target' : (r'\fI\%', r'\fP'),
+ 'emphasis': ('\\fI', '\\fP'),
+ 'strong' : ('\\fB', '\\fP'),
+ 'term' : ('\n.B ', '\n'),
+ 'title_reference' : ('\\fI', '\\fP'),
+ }
+ # TODO dont specify the newline before a dot-command, but ensure
+ # check it is there.
+
+ def comment_begin(self, text):
+ """Return commented version of the passed text WITHOUT end of line/comment."""
+ prefix = '\n.\\" '
+ return prefix+prefix.join(text.split('\n'))
+
+ def comment(self, text):
+ """Return commented version of the passed text."""
+ return self.comment_begin(text)+'\n'
+
+ def astext(self):
+ """Return the final formatted document as a string."""
+ if not self.header_written:
+ # ensure we get a ".TH" as viewers require it.
+ self.head.append(self.header())
+ return ''.join(self.head + self.body + self.foot)
+
+ def visit_Text(self, node):
+ text = node.astext().replace('-','\-')
+ text = text.replace("'","\\'")
+ self.body.append(text)
+
+ def depart_Text(self, node):
+ pass
+
+ def list_start(self, node):
+ class enum_char:
+ enum_style = {
+ 'arabic' : (3,1),
+ 'loweralpha' : (3,'a'),
+ 'upperalpha' : (3,'A'),
+ 'lowerroman' : (5,'i'),
+ 'upperroman' : (5,'I'),
+ 'bullet' : (2,'\\(bu'),
+ 'emdash' : (2,'\\(em'),
+ }
+ def __init__(self, style):
+ if style == 'arabic':
+ if node.has_key('start'):
+ start = node['start']
+ else:
+ start = 1
+ self._style = (
+ len(str(len(node.children)))+2,
+ start )
+ # BUG: fix start for alpha
+ else:
+ self._style = self.enum_style[style]
+ self._cnt = -1
+ def next(self):
+ self._cnt += 1
+ # BUG add prefix postfix
+ try:
+ return "%d." % (self._style[1] + self._cnt)
+ except:
+ if self._style[1][0] == '\\':
+ return self._style[1]
+ # BUG romans dont work
+ # BUG alpha only a...z
+ return "%c." % (ord(self._style[1])+self._cnt)
+ def get_width(self):
+ return self._style[0]
+ def __repr__(self):
+ return 'enum_style%r' % list(self._style)
+
+ if node.has_key('enumtype'):
+ self._list_char.append(enum_char(node['enumtype']))
+ else:
+ self._list_char.append(enum_char('bullet'))
+ if len(self._list_char) > 1:
+ # indent nested lists
+ # BUG indentation depends on indentation of parent list.
+ self.indent(self._list_char[-2].get_width())
+ else:
+ self.indent(self._list_char[-1].get_width())
+
+ def list_end(self):
+ self.dedent()
+ self._list_char.pop()
+
+ def header(self):
+ tmpl = (".TH %(title)s %(manual_section)s"
+ " \"%(date)s\" \"%(version)s\" \"%(manual_group)s\"\n"
+ ".SH NAME\n"
+ "%(title)s \- %(subtitle)s\n")
+ return tmpl % self._docinfo
+
+ def append_header(self):
+ """append header with .TH and .SH NAME"""
+ # TODO before everything
+ # .TH title section date source manual
+ if self.header_written:
+ return
+ self.body.append(self.header())
+ self.body.append(MACRO_DEF)
+ self.header_written = 1
+
+ def visit_address(self, node):
+ raise NotImplementedError, node.astext()
+ self.visit_docinfo_item(node, 'address', meta=None)
+
+ def depart_address(self, node):
+ self.depart_docinfo_item()
+
+ def visit_admonition(self, node, name):
+ raise NotImplementedError, node.astext()
+ self.body.append(self.starttag(node, 'div', CLASS=name))
+ self.body.append(''
+ + self.language.labels[name] + '
\n')
+
+ def depart_admonition(self):
+ raise NotImplementedError, node.astext()
+ self.body.append('\n')
+
+ def visit_attention(self, node):
+ self.visit_admonition(node, 'attention')
+
+ def depart_attention(self, node):
+ self.depart_admonition()
+
+ def visit_author(self, node):
+ self._docinfo['author'] = node.astext()
+ raise nodes.SkipNode
+
+ def depart_author(self, node):
+ pass
+
+ def visit_authors(self, node):
+ self.body.append(self.comment('visit_authors'))
+
+ def depart_authors(self, node):
+ self.body.append(self.comment('depart_authors'))
+
+ def visit_block_quote(self, node):
+ #self.body.append(self.comment('visit_block_quote'))
+ # BUG/HACK: indent alway uses the _last_ indention,
+ # thus we need two of them.
+ self.indent(BLOCKQOUTE_INDENT)
+ self.indent(0)
+
+ def depart_block_quote(self, node):
+ #self.body.append(self.comment('depart_block_quote'))
+ self.dedent()
+ self.dedent()
+
+ def visit_bullet_list(self, node):
+ self.list_start(node)
+
+ def depart_bullet_list(self, node):
+ self.list_end()
+
+ def visit_caption(self, node):
+ raise NotImplementedError, node.astext()
+ self.body.append(self.starttag(node, 'p', '', CLASS='caption'))
+
+ def depart_caption(self, node):
+ raise NotImplementedError, node.astext()
+ self.body.append('
\n')
+
+ def visit_caution(self, node):
+ self.visit_admonition(node, 'caution')
+
+ def depart_caution(self, node):
+ self.depart_admonition()
+
+ def visit_citation(self, node):
+ raise NotImplementedError, node.astext()
+ self.body.append(self.starttag(node, 'table', CLASS='citation',
+ frame="void", rules="none"))
+ self.body.append('\n'
+ '\n'
+ '\n'
+ '')
+ self.footnote_backrefs(node)
+
+ def depart_citation(self, node):
+ raise NotImplementedError, node.astext()
+ self.body.append('
\n'
+ '\n\n')
+
+ def visit_citation_reference(self, node):
+ raise NotImplementedError, node.astext()
+ href = ''
+ if node.has_key('refid'):
+ href = '#' + node['refid']
+ elif node.has_key('refname'):
+ href = '#' + self.document.nameids[node['refname']]
+ self.body.append(self.starttag(node, 'a', '[', href=href,
+ CLASS='citation-reference'))
+
+ def depart_citation_reference(self, node):
+ raise NotImplementedError, node.astext()
+ self.body.append(']')
+
+ def visit_classifier(self, node):
+ raise NotImplementedError, node.astext()
+ self.body.append(' : ')
+ self.body.append(self.starttag(node, 'span', '', CLASS='classifier'))
+
+ def depart_classifier(self, node):
+ raise NotImplementedError, node.astext()
+ self.body.append('')
+
+ def visit_colspec(self, node):
+ self.colspecs.append(node)
+
+ def depart_colspec(self, node):
+ pass
+
+ def write_colspecs(self):
+ self.body.append("%s.\n" % ('L '*len(self.colspecs)))
+
+ def visit_comment(self, node,
+ sub=re.compile('-(?=-)').sub):
+ self.body.append(self.comment(node.astext()))
+ raise nodes.SkipNode
+
+ def visit_contact(self, node):
+ self.visit_docinfo_item(node, 'contact')
+
+ def depart_contact(self, node):
+ self.depart_docinfo_item()
+
+ def visit_copyright(self, node):
+ self._docinfo['copyright'] = node.astext()
+ raise nodes.SkipNode
+
+ def visit_danger(self, node):
+ self.visit_admonition(node, 'danger')
+
+ def depart_danger(self, node):
+ self.depart_admonition()
+
+ def visit_date(self, node):
+ self._docinfo['date'] = node.astext()
+ raise nodes.SkipNode
+
+ def visit_decoration(self, node):
+ pass
+
+ def depart_decoration(self, node):
+ pass
+
+ def visit_definition(self, node):
+ self.body.append(self.defs['definition'][0])
+
+ def depart_definition(self, node):
+ self.body.append(self.defs['definition'][1])
+
+ def visit_definition_list(self, node):
+ self.indent(DEFINITION_LIST_INDENT)
+
+ def depart_definition_list(self, node):
+ self.dedent()
+
+ def visit_definition_list_item(self, node):
+ self.body.append(self.defs['definition_list_item'][0])
+
+ def depart_definition_list_item(self, node):
+ self.body.append(self.defs['definition_list_item'][1])
+
+ def visit_description(self, node):
+ self.body.append(self.defs['description'][0])
+
+ def depart_description(self, node):
+ self.body.append(self.defs['description'][1])
+
+ def visit_docinfo(self, node):
+ self._in_docinfo = 1
+
+ def depart_docinfo(self, node):
+ self._in_docinfo = None
+ # TODO nothing should be written before this
+ self.append_header()
+
+ def visit_docinfo_item(self, node, name):
+ self.body.append(self.comment('%s: ' % self.language.labels[name]))
+ if len(node):
+ return
+ if isinstance(node[0], nodes.Element):
+ node[0].set_class('first')
+ if isinstance(node[0], nodes.Element):
+ node[-1].set_class('last')
+
+ def depart_docinfo_item(self):
+ pass
+
+ def visit_doctest_block(self, node):
+ raise NotImplementedError, node.astext()
+ self.body.append(self.starttag(node, 'pre', CLASS='doctest-block'))
+
+ def depart_doctest_block(self, node):
+ raise NotImplementedError, node.astext()
+ self.body.append('\n\n')
+
+ def visit_document(self, node):
+ self.body.append(self.comment(self.document_start).lstrip())
+ # writing header is postboned
+ self.header_written = 0
+
+ def depart_document(self, node):
+ if self._docinfo['author']:
+ self.body.append('\n.SH AUTHOR\n%s\n'
+ % self._docinfo['author'])
+ if self._docinfo['copyright']:
+ self.body.append('\n.SH COPYRIGHT\n%s\n'
+ % self._docinfo['copyright'])
+ self.body.append(
+ self.comment(
+ 'Generated by docutils manpage writer on %s.\n'
+ % (time.strftime('%Y-%m-%d %H:%M')) ) )
+
+ def visit_emphasis(self, node):
+ self.body.append(self.defs['emphasis'][0])
+
+ def depart_emphasis(self, node):
+ self.body.append(self.defs['emphasis'][1])
+
+ def visit_entry(self, node):
+ # BUG entries have to be on one line separated by tab force it.
+ self.context.append(len(self.body))
+ self._in_entry = 1
+
+ def depart_entry(self, node):
+ start = self.context.pop()
+ self._active_table.append_cell(self.body[start:])
+ del self.body[start:]
+ self._in_entry = 0
+
+ def visit_enumerated_list(self, node):
+ self.list_start(node)
+
+ def depart_enumerated_list(self, node):
+ self.list_end()
+
+ def visit_error(self, node):
+ self.visit_admonition(node, 'error')
+
+ def depart_error(self, node):
+ self.depart_admonition()
+
+ def visit_field(self, node):
+ #self.body.append(self.comment('visit_field'))
+ pass
+
+ def depart_field(self, node):
+ #self.body.append(self.comment('depart_field'))
+ pass
+
+ def visit_field_body(self, node):
+ #self.body.append(self.comment('visit_field_body'))
+ if self._in_docinfo:
+ self._docinfo[
+ self._field_name.lower().replace(" ","_")] = node.astext()
+ raise nodes.SkipNode
+
+ def depart_field_body(self, node):
+ pass
+
+ def visit_field_list(self, node):
+ self.indent(FIELD_LIST_INDENT)
+
+ def depart_field_list(self, node):
+ self.dedent('depart_field_list')
+
+
+ def visit_field_name(self, node):
+ if self._in_docinfo:
+ self._field_name = node.astext()
+ raise nodes.SkipNode
+ else:
+ self.body.append(self.defs['field_name'][0])
+
+ def depart_field_name(self, node):
+ self.body.append(self.defs['field_name'][1])
+
+ def visit_figure(self, node):
+ raise NotImplementedError, node.astext()
+
+ def depart_figure(self, node):
+ raise NotImplementedError, node.astext()
+
+ def visit_footer(self, node):
+ raise NotImplementedError, node.astext()
+
+ def depart_footer(self, node):
+ raise NotImplementedError, node.astext()
+ start = self.context.pop()
+ footer = (['\n',
+ self.starttag(node, 'div', CLASS='footer')]
+ + self.body[start:] + ['\n'])
+ self.body_suffix[:0] = footer
+ del self.body[start:]
+
+ def visit_footnote(self, node):
+ raise NotImplementedError, node.astext()
+ self.body.append(self.starttag(node, 'table', CLASS='footnote',
+ frame="void", rules="none"))
+ self.body.append('\n'
+ '\n'
+ '')
+ self.footnote_backrefs(node)
+
+ def footnote_backrefs(self, node):
+ raise NotImplementedError, node.astext()
+ if self.settings.footnote_backlinks and node.hasattr('backrefs'):
+ backrefs = node['backrefs']
+ if len(backrefs) == 1:
+ self.context.append('')
+ self.context.append('' % (backrefs[0], node['id']))
+ else:
+ i = 1
+ backlinks = []
+ for backref in backrefs:
+ backlinks.append('%s'
+ % (backref, i))
+ i += 1
+ self.context.append('(%s) ' % ', '.join(backlinks))
+ self.context.append('' % node['id'])
+ else:
+ self.context.append('')
+ self.context.append('' % node['id'])
+
+ def depart_footnote(self, node):
+ raise NotImplementedError, node.astext()
+ self.body.append('
\n'
+ '\n\n')
+
+ def visit_footnote_reference(self, node):
+ raise NotImplementedError, node.astext()
+ href = ''
+ if node.has_key('refid'):
+ href = '#' + node['refid']
+ elif node.has_key('refname'):
+ href = '#' + self.document.nameids[node['refname']]
+ format = self.settings.footnote_references
+ if format == 'brackets':
+ suffix = '['
+ self.context.append(']')
+ elif format == 'superscript':
+ suffix = ''
+ self.context.append('')
+ else: # shouldn't happen
+ suffix = '???'
+ self.content.append('???')
+ self.body.append(self.starttag(node, 'a', suffix, href=href,
+ CLASS='footnote-reference'))
+
+ def depart_footnote_reference(self, node):
+ raise NotImplementedError, node.astext()
+ self.body.append(self.context.pop() + '')
+
+ def visit_generated(self, node):
+ pass
+
+ def depart_generated(self, node):
+ pass
+
+ def visit_header(self, node):
+ raise NotImplementedError, node.astext()
+ self.context.append(len(self.body))
+
+ def depart_header(self, node):
+ raise NotImplementedError, node.astext()
+ start = self.context.pop()
+ self.body_prefix.append(self.starttag(node, 'div', CLASS='header'))
+ self.body_prefix.extend(self.body[start:])
+ self.body_prefix.append('
\n\n')
+ del self.body[start:]
+
+ def visit_hint(self, node):
+ self.visit_admonition(node, 'hint')
+
+ def depart_hint(self, node):
+ self.depart_admonition()
+
+ def visit_image(self, node):
+ raise NotImplementedError, node.astext()
+ atts = node.attributes.copy()
+ atts['src'] = atts['uri']
+ del atts['uri']
+ if not atts.has_key('alt'):
+ atts['alt'] = atts['src']
+ if isinstance(node.parent, nodes.TextElement):
+ self.context.append('')
+ else:
+ self.body.append('')
+ self.context.append('
\n')
+ self.body.append(self.emptytag(node, 'img', '', **atts))
+
+ def depart_image(self, node):
+ raise NotImplementedError, node.astext()
+ self.body.append(self.context.pop())
+
+ def visit_important(self, node):
+ self.visit_admonition(node, 'important')
+
+ def depart_important(self, node):
+ self.depart_admonition()
+
+ def visit_label(self, node):
+ raise NotImplementedError, node.astext()
+ self.body.append(self.starttag(node, 'td', '%s[' % self.context.pop(),
+ CLASS='label'))
+
+ def depart_label(self, node):
+ raise NotImplementedError, node.astext()
+ self.body.append(']%s' % self.context.pop())
+
+ def visit_legend(self, node):
+ raise NotImplementedError, node.astext()
+ self.body.append(self.starttag(node, 'div', CLASS='legend'))
+
+ def depart_legend(self, node):
+ raise NotImplementedError, node.astext()
+ self.body.append('\n')
+
+ def visit_line_block(self, node):
+ self.body.append('\n')
+
+ def depart_line_block(self, node):
+ self.body.append('\n')
+
+ def visit_line(self, node):
+ pass
+
+ def depart_line(self, node):
+ self.body.append('\n.br\n')
+
+ def visit_list_item(self, node):
+ # man 7 man argues to use ".IP" instead of ".TP"
+ self.body.append('\n.IP %s %d\n' % (
+ self._list_char[-1].next(),
+ self._list_char[-1].get_width(),) )
+
+ def depart_list_item(self, node):
+ pass
+
+ def visit_literal(self, node):
+ self.body.append(self.defs['literal'][0])
+
+ def depart_literal(self, node):
+ self.body.append(self.defs['literal'][1])
+
+ def visit_literal_block(self, node):
+ self.body.append(self.defs['literal_block'][0])
+
+ def depart_literal_block(self, node):
+ self.body.append(self.defs['literal_block'][1])
+
+ def visit_meta(self, node):
+ raise NotImplementedError, node.astext()
+ self.head.append(self.emptytag(node, 'meta', **node.attributes))
+
+ def depart_meta(self, node):
+ pass
+
+ def visit_note(self, node):
+ self.visit_admonition(node, 'note')
+
+ def depart_note(self, node):
+ self.depart_admonition()
+
+ def indent(self, by=0.5):
+ # if we are in a section ".SH" there already is a .RS
+ #self.body.append('\n[[debug: listchar: %r]]\n' % map(repr, self._list_char))
+ #self.body.append('\n[[debug: indent %r]]\n' % self._indent)
+ step = self._indent[-1]
+ self._indent.append(by)
+ self.body.append(self.defs['indent'][0] % step)
+
+ def dedent(self, name=''):
+ #self.body.append('\n[[debug: dedent %s %r]]\n' % (name, self._indent))
+ self._indent.pop()
+ self.body.append(self.defs['indent'][1])
+
+ def visit_option_list(self, node):
+ self.indent(OPTION_LIST_INDENT)
+
+ def depart_option_list(self, node):
+ self.dedent()
+
+ def visit_option_list_item(self, node):
+ # one item of the list
+ self.body.append(self.defs['option_list_item'][0])
+
+ def depart_option_list_item(self, node):
+ self.body.append(self.defs['option_list_item'][1])
+
+ def visit_option_group(self, node):
+ # as one option could have several forms it is a group
+ # options without parameter bold only, .B, -v
+ # options with parameter bold italic, .BI, -f file
+
+ # we do not know if .B or .BI
+ self.context.append('.B') # blind guess
+ self.context.append(len(self.body)) # to be able to insert later
+ self.context.append(0) # option counter
+
+ def depart_option_group(self, node):
+ self.context.pop() # the counter
+ start_position = self.context.pop()
+ text = self.body[start_position:]
+ del self.body[start_position:]
+ self.body.append('\n%s%s' % (self.context.pop(), ''.join(text)))
+
+ def visit_option(self, node):
+ # each form of the option will be presented separately
+ if self.context[-1]>0:
+ self.body.append(' ,')
+ if self.context[-3] == '.BI':
+ self.body.append('\\')
+ self.body.append(' ')
+
+ def depart_option(self, node):
+ self.context[-1] += 1
+
+ def visit_option_string(self, node):
+ # do not know if .B or .BI
+ pass
+
+ def depart_option_string(self, node):
+ pass
+
+ def visit_option_argument(self, node):
+ self.context[-3] = '.BI' # bold/italic alternate
+ if node['delimiter'] != ' ':
+ self.body.append('\\fn%s ' % node['delimiter'] )
+ elif self.body[len(self.body)-1].endswith('='):
+ # a blank only means no blank in output, just changing font
+ self.body.append(' ')
+ else:
+ # backslash blank blank
+ self.body.append('\\ ')
+
+ def depart_option_argument(self, node):
+ pass
+
+ def visit_organization(self, node):
+ raise NotImplementedError, node.astext()
+ self.visit_docinfo_item(node, 'organization')
+
+ def depart_organization(self, node):
+ raise NotImplementedError, node.astext()
+ self.depart_docinfo_item()
+
+ def visit_paragraph(self, node):
+ # BUG every but the first paragraph in a list must be intended
+ # TODO .PP or new line
+ return
+
+ def depart_paragraph(self, node):
+ # TODO .PP or an empty line
+ if not self._in_entry:
+ self.body.append('\n\n')
+
+ def visit_problematic(self, node):
+ raise NotImplementedError, node.astext()
+ if node.hasattr('refid'):
+ self.body.append('' % (node['refid'],
+ node['id']))
+ self.context.append('')
+ else:
+ self.context.append('')
+ self.body.append(self.starttag(node, 'span', '', CLASS='problematic'))
+
+ def depart_problematic(self, node):
+ raise NotImplementedError, node.astext()
+ self.body.append('')
+ self.body.append(self.context.pop())
+
+ def visit_raw(self, node):
+ if node.get('format') == 'manpage':
+ self.body.append(node.astext())
+ # Keep non-manpage raw text out of output:
+ raise nodes.SkipNode
+
+ def visit_reference(self, node):
+ """E.g. link or email address."""
+ self.body.append(self.defs['reference'][0])
+
+ def depart_reference(self, node):
+ self.body.append(self.defs['reference'][1])
+
+ def visit_revision(self, node):
+ self.visit_docinfo_item(node, 'revision')
+
+ def depart_revision(self, node):
+ self.depart_docinfo_item()
+
+ def visit_row(self, node):
+ self._active_table.new_row()
+
+ def depart_row(self, node):
+ pass
+
+ def visit_section(self, node):
+ self.section_level += 1
+
+ def depart_section(self, node):
+ self.section_level -= 1
+
+ def visit_status(self, node):
+ raise NotImplementedError, node.astext()
+ self.visit_docinfo_item(node, 'status', meta=None)
+
+ def depart_status(self, node):
+ self.depart_docinfo_item()
+
+ def visit_strong(self, node):
+ self.body.append(self.defs['strong'][1])
+
+ def depart_strong(self, node):
+ self.body.append(self.defs['strong'][1])
+
+ def visit_substitution_definition(self, node):
+ """Internal only."""
+ raise nodes.SkipNode
+
+ def visit_substitution_reference(self, node):
+ self.unimplemented_visit(node)
+
+ def visit_subtitle(self, node):
+ self._docinfo["subtitle"] = node.astext()
+ raise nodes.SkipNode
+
+ def visit_system_message(self, node):
+ # TODO add report_level
+ #if node['level'] < self.document.reporter['writer'].report_level:
+ # Level is too low to display:
+ # raise nodes.SkipNode
+ self.body.append('\.SH system-message\n')
+ attr = {}
+ backref_text = ''
+ if node.hasattr('id'):
+ attr['name'] = node['id']
+ if node.hasattr('line'):
+ line = ', line %s' % node['line']
+ else:
+ line = ''
+ self.body.append('System Message: %s/%s (%s:%s)\n'
+ % (node['type'], node['level'], node['source'], line))
+
+ def depart_system_message(self, node):
+ self.body.append('\n')
+
+ def visit_table(self, node):
+ self._active_table = Table()
+
+ def depart_table(self, node):
+ self.body.append(self._active_table.astext())
+ self._active_table = None
+
+ def visit_target(self, node):
+ self.body.append(self.comment('visit_target'))
+ #self.body.append(self.defs['target'][0])
+ #self.body.append(node['refuri'])
+
+ def depart_target(self, node):
+ self.body.append(self.comment('depart_target'))
+ #self.body.append(self.defs['target'][1])
+
+ def visit_tbody(self, node):
+ pass
+
+ def depart_tbody(self, node):
+ pass
+
+ def visit_term(self, node):
+ self.body.append(self.defs['term'][0])
+
+ def depart_term(self, node):
+ self.body.append(self.defs['term'][1])
+
+ def visit_tgroup(self, node):
+ pass
+
+ def depart_tgroup(self, node):
+ pass
+
+ def visit_thead(self, node):
+ raise NotImplementedError, node.astext()
+ self.write_colspecs()
+ self.body.append(self.context.pop()) # '\n'
+ # There may or may not be a ; this is for | to use:
+ self.context.append('')
+ self.body.append(self.starttag(node, 'thead', valign='bottom'))
+
+ def depart_thead(self, node):
+ raise NotImplementedError, node.astext()
+ self.body.append('\n')
+
+ def visit_tip(self, node):
+ self.visit_admonition(node, 'tip')
+
+ def depart_tip(self, node):
+ self.depart_admonition()
+
+ def visit_title(self, node):
+ if isinstance(node.parent, nodes.topic):
+ self.body.append(self.comment('topic-title'))
+ elif isinstance(node.parent, nodes.sidebar):
+ self.body.append(self.comment('sidebar-title'))
+ elif isinstance(node.parent, nodes.admonition):
+ self.body.append(self.comment('admonition-title'))
+ elif self.section_level == 0:
+ # document title for .TH
+ self._docinfo['title'] = node.astext()
+ raise nodes.SkipNode
+ elif self.section_level == 1:
+ self.body.append('\n.SH ')
+ else:
+ self.body.append('\n.SS ')
+
+ def depart_title(self, node):
+ self.body.append('\n')
+
+ def visit_title_reference(self, node):
+ """inline citation reference"""
+ self.body.append(self.defs['title_reference'][0])
+
+ def depart_title_reference(self, node):
+ self.body.append(self.defs['title_reference'][1])
+
+ def visit_topic(self, node):
+ self.body.append(self.comment('topic: '+node.astext()))
+ raise nodes.SkipNode
+ ##self.topic_class = node.get('class')
+
+ def depart_topic(self, node):
+ ##self.topic_class = ''
+ pass
+
+ def visit_transition(self, node):
+ # .PP Begin a new paragraph and reset prevailing indent.
+ # .sp N leaves N lines of blank space.
+ # .ce centers the next line
+ self.body.append('\n.sp\n.ce\n----\n')
+
+ def depart_transition(self, node):
+ self.body.append('\n.ce 0\n.sp\n')
+
+ def visit_version(self, node):
+ self._docinfo["version"] = node.astext()
+ raise nodes.SkipNode
+
+ def visit_warning(self, node):
+ self.visit_admonition(node, 'warning')
+
+ def depart_warning(self, node):
+ self.depart_admonition()
+
+ def unimplemented_visit(self, node):
+ raise NotImplementedError('visiting unimplemented node type: %s'
+ % node.__class__.__name__)
+
+# vim: set et ts=4 ai :
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/HOWTORELEASE.txt work/libLAS-1.2.1/HOWTORELEASE.txt
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/HOWTORELEASE.txt 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/HOWTORELEASE.txt 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,100 @@
+
+Steps for Making a libLAS Release
+==============================================================================
+
+:Author: Howard Butler
+:Contact: hobu.inc@gmail.com
+:Revision: $Revision$
+:Date: $Date$
+
+This document describes the process for releasing a new version of libLAS.
+
+General Notes
+------------------------------------------------------------------------------
+
+The libLAS library is very conservative with regards to API linkages.
+Specifically, major versions (1.0, 2.0, ..., X.0) of the library should be
+released if the C API changes in any significant way, especially if you are
+removing or changing API functions. It is desirable that minor versions
+(1.1, 1.2, ..., 1.X) of the library are API compatible for the C++ APIs,
+but this is not required.
+
+Release Process
+
+1) Increment Version Numbers
+
+ - configure.ac
+ - include/liblas/capi/las_version.h
+ - python/setup.py
+ - nmake.opt
+
+2) Update README to include any relevant info about the release that
+ might have changed.
+
+3) Build Windows version
+
+ - Issue nmake and nmake install commands
+
+ ::
+
+ nmake /f makefile.vc clean
+ nmake /f makefile.vc
+ nmake /f makefile.vc install
+ nmake /f makefile.vc package
+
+ - Build Python bindings for Python 2.4 and Python 2.5
+
+ ::
+ cd python
+ python setup.py bdist_wininst
+ python setup.py bdist_egg
+
+ - Upload Python bindings to PyPI
+
+ ::
+
+ # ensure a .pypirc file exists here with login info
+ set HOME=C:\Docume~1\hobu.FIRE-WINDOWS
+ c:\python24\python.exe setup.py register
+ c:\python24\python.exe setup.py sdist upload
+ c:\python24\python.exe setup.py bdist_wininst upload
+ c:\python24\python.exe setup.py bdist_egg upload
+ c:\python25\python.exe setup.py bdist_egg upload
+
+ - Create a zip file from the .\bin directory. This will contain the
+ utilities and relevant DLLs. The Python bindings are packaged with their
+ own copies of the DLLs. I usually call this file liblas$(VERSION).zip.
+
+
+4) Make the source distribution
+
+ ::
+
+ make dist
+
+5) Only bz2 files can be uploaded to trac, so gunzip the dist file and
+ recompress it as bz2.
+
+
+6) Generate MD5 sums
+
+ ::
+
+ md5 las-0.9.7.tar.bz2
+ md5 liblas0.9.7.zip
+
+6) Create a new release page on http://liblas.org/wiki/Releases
+
+7) Upload windows and source package as attachments to the new release page.
+
+8) Tag the release
+
+ ::
+
+ svn cp http://liblas.org/svn/trunk http://liblas.org/svn/tags/0.9.7
+
+9) Write the release notes. Place a copy of the release notes on the release
+ page you created as well as send an email to liblas-devel announcing the
+ new release.
+
+$Id$
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/include/liblas/capi/las_config.h work/libLAS-1.2.1/include/liblas/capi/las_config.h
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/include/liblas/capi/las_config.h 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/include/liblas/capi/las_config.h 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,93 @@
+/******************************************************************************
+ * $Id$
+ *
+ * Project: libLAS - http://liblas.org - A BSD library for LAS format data.
+ * Purpose: Basic macros for the libLAS C API
+ * Author: Howard Butler, hobu.inc@gmail.com
+ *
+ ******************************************************************************
+ * Copyright (c) 2008, Howard Butler
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following
+ * conditions are met:
+ *
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided
+ * with the distribution.
+ * * Neither the name of the Martin Isenburg or Iowa Department
+ * of Natural Resources nor the names of its contributors may be
+ * used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+ * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+ * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
+ * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
+ * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
+ * OF SUCH DAMAGE.
+ ****************************************************************************/
+
+#ifndef LAS_CONFIG_H_INCLUDED
+#define LAS_CONFIG_H_INCLUDED
+
+#define LIBLAS_C_API 1
+
+/* ==================================================================== */
+/* Other standard services. */
+/* ==================================================================== */
+#ifdef __cplusplus
+# define LAS_C_START extern "C" {
+# define LAS_C_END }
+#else
+# define LAS_C_START
+# define LAS_C_END
+#endif
+
+#ifndef LAS_DLL
+#if defined(_MSC_VER) && !defined(LAS_DISABLE_DLL)
+# define LAS_DLL __declspec(dllexport)
+#else
+# if defined(USE_GCC_VISIBILITY_FLAG)
+# define LAS_DLL __attribute__ ((visibility("default")))
+# else
+# define LAS_DLL
+# endif
+#endif
+#endif
+
+#ifndef NULL
+#define NULL 0
+#endif
+
+#ifndef TRUE
+#define TRUE 1
+#endif
+
+#ifndef FALSE
+#define FALSE 0
+#endif
+
+#ifndef MAX
+# define MIN(a,b) ((ab) ? a : b)
+#endif
+
+#ifdef _MSC_VER
+#define strdup _strdup
+#endif
+
+
+#endif /* LAS_CONFIG_H_INCLUDED */
+
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/include/liblas/capi/las_version.h work/libLAS-1.2.1/include/liblas/capi/las_version.h
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/include/liblas/capi/las_version.h 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/include/liblas/capi/las_version.h 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,64 @@
+/******************************************************************************
+ * $Id$
+ *
+ * Project: libLAS - http://liblas.org - A BSD library for LAS format data.
+ * Purpose: Basic macros for the libLAS C API
+ * Author: Howard Butler, hobu.inc@gmail.com
+ *
+ ******************************************************************************
+ * Copyright (c) 2008, Howard Butler
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following
+ * conditions are met:
+ *
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided
+ * with the distribution.
+ * * Neither the name of the Martin Isenburg or Iowa Department
+ * of Natural Resources nor the names of its contributors may be
+ * used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+ * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+ * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
+ * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
+ * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
+ * OF SUCH DAMAGE.
+ ****************************************************************************/
+
+#ifndef LAS_VERSION_H_INCLUDED
+#define LAS_VERSION_H_INCLUDED
+
+#ifndef LIBLAS_VERSION_MAJOR
+#define LIBLAS_VERSION_MAJOR 1
+#define LIBLAS_VERSION_MINOR 2
+#define LIBLAS_VERSION_REV 1
+#define LIBLAS_VERSION_BUILD 0
+#endif
+
+#ifndef LIBLAS_VERSION_NUM
+#define LIBLAS_VERSION_NUM (LIBLAS_VERSION_MAJOR*1000+LIBLAS_VERSION_MINOR*100+LIBLAS_VERSION_REV*10+LIBLAS_VERSION_BUILD)
+#endif
+
+#ifndef LIBLAS_RELEASE_DATE
+#define LIBLAS_RELEASE_DATE 20091002
+#endif
+
+#ifndef LIBLAS_RELEASE_NAME
+#define LIBLAS_RELEASE_NAME "1.2.1"
+#endif
+
+#endif /* LAS_VERSION_H_INCLUDED */
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/include/liblas/capi/liblas.h work/libLAS-1.2.1/include/liblas/capi/liblas.h
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/include/liblas/capi/liblas.h 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/include/liblas/capi/liblas.h 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,1116 @@
+/******************************************************************************
+ * $Id$
+ *
+ * Project: libLAS - http://liblas.org - A BSD library for LAS format data.
+ * Purpose: Main prototypes for the libLAS C API
+ * Author: Howard Butler, hobu.inc@gmail.com
+ *
+ ******************************************************************************
+ * Copyright (c) 2008, Howard Butler
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following
+ * conditions are met:
+ *
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided
+ * with the distribution.
+ * * Neither the name of the Martin Isenburg or Iowa Department
+ * of Natural Resources nor the names of its contributors may be
+ * used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+ * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+ * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
+ * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
+ * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
+ * OF SUCH DAMAGE.
+ ****************************************************************************/
+
+#ifndef LIBLAS_H_INCLUDED
+#define LIBLAS_H_INCLUDED
+
+
+
+#define LIBLAS_C_API 1
+
+#include "las_version.h"
+#include "las_config.h"
+
+
+#include
+
+
+typedef struct LASWriterHS *LASWriterH;
+typedef struct LASReaderHS *LASReaderH;
+typedef struct LASPointHS *LASPointH;
+typedef struct LASHeaderHS *LASHeaderH;
+typedef struct LASGuidHS *LASGuidH;
+typedef struct LASVLRHS *LASVLRH;
+typedef struct LASColorHS *LASColorH;
+typedef struct LASSRSHS *LASSRSH;
+
+
+/* Fake out the compiler if we don't have libgeotiff */
+#ifndef HAVE_LIBGEOTIFF
+ typedef struct GTIFS * GTIF;
+ typedef struct TIFFS * TIFF;
+#else
+#include
+#endif
+
+
+LAS_C_START
+
+
+#define LAS_MODE_READ 0
+#define LAS_MODE_WRITE 1
+#define LAS_MODE_APPEND 2
+
+/**
+ * \todo to be documented
+ */
+typedef enum
+{
+ LE_None = 0,
+ LE_Debug = 1,
+ LE_Warning = 2,
+ LE_Failure = 3,
+ LE_Fatal = 4
+} LASError;
+
+/**
+ * \todo to be documented
+ */
+typedef struct {
+
+ double t;
+ double x, y, z;
+ uint16_t intensity;
+ uint8_t cls;
+ int8_t scan_angle;
+ uint8_t user_data;
+ uint16_t retnum;
+ uint16_t numret;
+ uint16_t scandir;
+ uint16_t fedge;
+ uint16_t red;
+ uint16_t green;
+ uint16_t blue;
+ long rgpsum;
+ int number_of_point_records;
+ int number_of_points_by_return[8];
+ int number_of_returns_of_given_pulse[8];
+ int classification[32];
+ int classification_synthetic;
+ int classification_keypoint;
+ int classification_withheld;
+ LASPointH pmax;
+ LASPointH pmin;
+} LASPointSummary;
+
+
+/** Returns the version string for this library.
+ * @return the version string for this library.
+*/
+LAS_DLL char* LAS_GetVersion(void);
+
+LAS_DLL int LAS_IsLibGeoTIFFEnabled(void);
+
+LAS_DLL int LAS_IsGDALEnabled(void);
+
+/****************************************************************************/
+/* Error handling */
+/****************************************************************************/
+
+/** Resets the error stack for the libLAS C API.
+*/
+LAS_DLL void LASError_Reset(void);
+
+/** Pops the top error off of the error stack for the libLAS C API.
+*/
+LAS_DLL void LASError_Pop(void);
+
+/** Returns the error number of the last error on the error stack.
+ * @return the error number of the last error on the error stack.
+*/
+LAS_DLL LASError LASError_GetLastErrorNum(void);
+
+/** Returns the name of the method the last error message happened in.
+ * @return the name of the method the last error message happened in.
+*/
+LAS_DLL char * LASError_GetLastErrorMsg(void);
+
+/** Returns the name of the method the last error message happened in.
+ * @return the name of the method the last error message happened in.
+*/
+LAS_DLL char * LASError_GetLastErrorMethod(void);
+
+/** Returns the number of error messages on the error stack.
+ * @return the number of error messages on the error stack.
+*/
+LAS_DLL int LASError_GetErrorCount(void);
+
+/** Prints the last error message in the error stack to stderr. If
+ * there is no error on the error stack, only the message is printed.
+ * The function does not alter the error stack in any way.
+ * @param message Message to include in the stderr output
+*/
+LAS_DLL void LASError_Print(const char* message);
+
+/****************************************************************************/
+/* Reader operations */
+/****************************************************************************/
+
+/** Creates a LASReaderH object that can be used to read LASHeaderH and
+ * LASPointH objects with. The LASReaderH must not be created with a
+ * filename that is opened for read or write by any other API functions.
+ * @return opaque pointer to a LASReaderH instance.
+ * @param filename Filename to open for read
+*/
+LAS_DLL LASReaderH LASReader_Create(const char * filename);
+
+/** Reads the next available point on the LASReaderH instance. If no point
+ * is available to read, NULL is returned. If an error happens during
+ * the reading of the next available point, an error will be added to the
+ * error stack and can be returned with the LASError_GetLastError* methods.
+ * @param hReader the opaque handle to the LASReaderH
+ * @return an opaque handle to a LASPointH object, or NULL if no point is
+ * available to read or an error occured. Use the
+ * LASError_GetLastError* methods to confirm the existence of an error
+ * if NULL is returned.
+*/
+LAS_DLL LASPointH LASReader_GetNextPoint(const LASReaderH hReader);
+
+/** Reads a LASPointH from the given position in the LAS file represented
+ * by the LASReaderH instance. If no point is available at that location,
+ * NULL is returned. If an error happens during the reading of the point,
+ * an error will be added to the error stack and can be returned with the
+ * LASError_GetLastError* methods.
+ * @param hReader the opaque handle to the LASReaderH
+ * @param position the integer position of the point in the file to read.
+ * @return an opaque handle to a LASPointH object, or NULL if no point is
+ * available at the given location or an error occured. Use the
+ * LASError_GetLastError* methods to confirm the existence of an error
+ * if NULL is returned.
+*/
+LAS_DLL LASPointH LASReader_GetPointAt(const LASReaderH hReader, uint32_t position);
+
+/** Closes the file for reading operations represented by the LASReaderH instance.
+ * @param hReader the opqaue handle to the LASReaderH
+*/
+LAS_DLL void LASReader_Destroy(LASReaderH hReader);
+
+/** Returns a LASHeaderH representing the header for the file
+ * @param hReader the LASReaderH instance
+ * @return a LASHeaderH representing the header for the file. NULL is returned
+ * in the event of an error. Use the LASError_GetLastError* methods to check
+ * in the event of a NULL return.
+*/
+LAS_DLL LASHeaderH LASReader_GetHeader(const LASReaderH hReader);
+
+
+LAS_DLL LASError LASReader_SetSRS(LASHeaderH hReader, const LASSRSH hSRS);
+
+
+/****************************************************************************/
+/* Point operations */
+/****************************************************************************/
+
+/** Returns the X value for the point. This value is not scaled or offset
+ * by any header values and stands on its own. If you need points to have
+ * a scale and/or offset applied, this must be done in conjunction with the
+ * header values after the value is read.
+ * @param hPoint the opaque pointer to the LASPointH instance
+ * @return the X value for the LASPointH
+*/
+LAS_DLL double LASPoint_GetX(const LASPointH hPoint);
+
+/** Sets the X value for the point. This value must be scaled or offset
+ * by any header values before being set.
+ * @param hPoint the opaque pointer to the LASPointH instance
+ * @param value the double value to set for the X value of the point
+ * @return an error number if an error occured during the setting of the point.
+*/
+LAS_DLL LASError LASPoint_SetX(LASPointH hPoint, double value);
+
+/** Returns the Y value for the point. This value is not scaled or offset
+ * by any header values and stands on its own. If you need points to have
+ * a scale and/or offset applied, this must be done in conjunction with the
+ * header values after the value is read.
+ * @param hPoint the opaque pointer to the LASPointH instance
+ * @return the Y value for the LASPointH
+*/
+LAS_DLL double LASPoint_GetY(const LASPointH hPoint);
+
+/** Sets the Y value for the point. This value must be scaled or offset
+ * by any header values before being set.
+ * @param hPoint the opaque pointer to the LASPointH instance
+ * @param value the double value to set for the Y value of the point
+ * @return an error number if an error occured during the setting of the point.
+*/
+LAS_DLL LASError LASPoint_SetY(LASPointH hPoint, double value);
+
+/** Returns the Z value for the point. This value is not scaled or offset
+ * by any header values and stands on its own. If you need points to have
+ * a scale and/or offset applied, this must be done in conjunction with the
+ * header values after the value is read.
+ * @param hPoint the opaque pointer to the LASPointH instance
+ * @return the Z value for the LASPointH
+*/
+LAS_DLL double LASPoint_GetZ(const LASPointH hPoint);
+
+/** Sets the Z value for the point. This value must be scaled or offset
+ * by any header values before being set.
+ * @param hPoint the opaque pointer to the LASPointH instance
+ * @param value the double value to set for the Z value of the point
+ * @return an error number if an error occured during the setting of the point.
+*/
+LAS_DLL LASError LASPoint_SetZ(LASPointH hPoint, double value);
+
+/** Returns the intensity value for the point. This value is the pulse return
+ * magnitude, it is optional, and it is LiDAR system specific.
+ * @return the intensity value for the point.
+*/
+LAS_DLL uint16_t LASPoint_GetIntensity(const LASPointH hPoint);
+
+/** Sets the intensity value for the point.
+ * @param hPoint the opaque pointer to the LASPointH instance
+ * @param value the value to set the intensity to
+ * @return an error number if an error occured.
+*/
+LAS_DLL LASError LASPoint_SetIntensity(LASPointH hPoint, uint16_t value);
+
+/** Returns the return number for the point. The return number is "the pulse
+ * return number for a given output pulse." The first return number starts with
+ * the value 1.
+ * @param hPoint LASPointH instance
+ * @return a return number, valid from 1-6, for the point. Use the LASError
+ * methods to determine if an error occurred during this operation if 0
+ * is returned.
+*/
+LAS_DLL uint16_t LASPoint_GetReturnNumber(const LASPointH hPoint);
+
+/** Sets the return number for the point. Valid values are from 1-6.
+ * @param hPoint LASPointH instance
+ * @param value the value to set for the return number
+ * @return LASError value determine success or failure.
+*/
+LAS_DLL LASError LASPoint_SetReturnNumber(LASPointH hPoint, uint16_t value);
+
+/** Returns the total number of returns for a given pulse.
+ * @param hPoint LASPointH instance
+ * @return total number of returns for this pulse.
+*/
+LAS_DLL uint16_t LASPoint_GetNumberOfReturns(const LASPointH hPoint);
+
+/** Sets the number of returns for the point. Valid values are from 1-5.
+ * @param hPoint LASPointH instance
+ * @param value the value to set for the number of returns
+ * @return LASError value determine success or failure.
+*/
+LAS_DLL LASError LASPoint_SetNumberOfReturns(LASPointH hPoint, uint16_t value);
+
+/** Returns the scan direction for a given pulse.
+ * @param hPoint LASPointH instance
+ * @return the scan direction for a given pulse.
+*/
+LAS_DLL uint16_t LASPoint_GetScanDirection(const LASPointH hPoint);
+
+/** Sets the scan direction for a given pulse. Valid values are 0 or 1, with
+ * 1 being a positive scan direction and 0 being a negative scan direction.
+ * @param hPoint LASPointH instance
+ * @param value the value to set for scan direction
+ * @return LASError value determine success or failure.
+*/
+LAS_DLL LASError LASPoint_SetScanDirection(LASPointH hPoint, uint16_t value);
+
+/** Returns whether or not a given pulse is an edge point
+ * @param hPoint LASPointH instance
+ * @return whether or not a given pulse is an edge point.
+*/
+LAS_DLL uint16_t LASPoint_GetFlightLineEdge(const LASPointH hPoint);
+
+/** Sets the edge marker for a given pulse. Valid values are 0 or 1, with
+ * 1 being an edge point and 0 being interior.
+ * @param hPoint LASPointH instance
+ * @param value the value to set for flightline edge
+ * @return LASError value determine success or failure.
+*/
+LAS_DLL LASError LASPoint_SetFlightLineEdge(LASPointH hPoint, uint16_t value);
+
+/** Returns all of the scan flags for the point -- Return number, number of
+ * returns, flightline edge, scan direction, and scan angle rank.
+ * @param hPoint LASPointH instance
+ * @return all of the scan flags for the point
+*/
+LAS_DLL uint8_t LASPoint_GetScanFlags(const LASPointH hPoint);
+
+/** Sets all of the scan flags for the point. No validation is done.
+ * @param hPoint LASPointH instance
+ * @param value the value to set for the flags
+ * @return LASError value determine success or failure.
+*/
+LAS_DLL LASError LASPoint_SetScanFlags(LASPointH hPoint, uint8_t value);
+
+/** Returns the classification for the point
+ * @param hPoint LASPointH instance
+ * @return the classification for the point
+*/
+LAS_DLL uint8_t LASPoint_GetClassification(const LASPointH hPoint);
+
+/** Sets the classification for the point. No validation is done.
+ * @param hPoint LASPointH instance
+ * @param value the value to set for the classification
+ * @return LASError value determine success or failure.
+*/
+LAS_DLL LASError LASPoint_SetClassification(LASPointH hPoint, uint8_t value);
+
+/** Returns the time for the point
+ * @param hPoint LASPointH instance
+ * @return the time for the point
+*/
+LAS_DLL double LASPoint_GetTime(const LASPointH hPoint);
+
+/** Sets the time for the point. No validation is done.
+ * @param hPoint LASPointH instance
+ * @param value the value to set for the time
+ * @return LASError value determine success or failure.
+*/
+LAS_DLL LASError LASPoint_SetTime(LASPointH hPoint, double value);
+
+/** Returns the scan angle for the point
+ * @param hPoint LASPointH instance
+ * @return the scan angle for the point
+*/
+LAS_DLL int8_t LASPoint_GetScanAngleRank(const LASPointH hPoint);
+
+/** Sets the scan angle for the point. No validation is done.
+ * @param hPoint LASPointH instance
+ * @param value the value to set for the scan angle
+ * @return LASError value determine success or failure.
+*/
+LAS_DLL LASError LASPoint_SetScanAngleRank(LASPointH hPoint, int8_t value);
+
+/** Sets the point source id for the point. No validation is done.
+ * @param hPoint LASPointH instance
+ * @param value the value to set for the point source id
+ * @return LASError value determine success or failure.
+*/
+LAS_DLL LASError LASPoint_SetPointSourceId(LASPointH hPoint, uint16_t value);
+
+/** Returns the point source id for the point
+ * @param hPoint LASPointH instance
+ * @return the scan angle for the point
+*/
+LAS_DLL uint16_t LASPoint_GetPointSourceId(LASPointH hPoint);
+
+/** Returns the arbitrary user data for the point
+ * @param hPoint LASPointH instance
+ * @return the arbitrary user data for the point
+*/
+LAS_DLL uint8_t LASPoint_GetUserData(const LASPointH hPoint);
+
+/** Sets the arbitrary user data for the point. No validation is done.
+ * @param hPoint LASPointH instance
+ * @param value the value to set for the arbitrary user data
+ * @return LASError value determine success or failure.
+*/
+LAS_DLL LASError LASPoint_SetUserData(LASPointH hPoint, uint8_t value);
+
+/** Returns a bitfield representing the validity of various members
+ * enum DataMemberFlag
+ {
+ eReturnNumber = 1,
+ eNumberOfReturns = 2,
+ eScanDirection = 4,
+ eFlightLineEdge = 8,
+ eClassification = 16,
+ eScanAngleRank = 32,
+ eTime = 64
+ };
+ * @param hPoint LASPointH instance
+ * @return bitfield representing the validity of various members.
+*/
+LAS_DLL int LASPoint_Validate(LASPointH hPoint);
+
+/** Returns a boolean whether or not the point is valid
+ * @param hPoint LASPointH instance
+ * @return a boolean (1 or 0) whether or not the point is valid.
+*/
+LAS_DLL int LASPoint_IsValid(LASPointH hPoint);
+
+/** Creates a new empty LASPointH instance
+ * @return LASPointH instance. If the value is NULL use the
+ * LASError_GetLastError* methods to determine the problem
+*/
+LAS_DLL LASPointH LASPoint_Create(void);
+
+/** Creates a copy of a LASPointH instance
+ * @param hPoint the LASPointH instance to copy
+ * @return new LASPointH instance. If the value is NULL use the
+ * LASError_GetLastError* methods to determine the problem
+*/
+LAS_DLL LASPointH LASPoint_Copy(const LASPointH);
+
+/** Destroys/deletes a LASPointH instance
+*/
+LAS_DLL void LASPoint_Destroy(LASPointH hPoint);
+
+/****************************************************************************/
+/* Header operations */
+/****************************************************************************/
+
+/** Copies a LASHeaderH instance
+ * @param hHeader the LASHeaderH to copy
+ * @return a LASHeaderH instance or NULL on error
+*/
+LAS_DLL LASHeaderH LASHeader_Copy(const LASHeaderH hHeader);
+
+/** Creates an empty LASHeaderH with default values
+*/
+LAS_DLL LASHeaderH LASHeader_Create(void);
+
+/** Destroys/deletes a LASHeader instance
+*/
+LAS_DLL void LASHeader_Destroy(LASHeaderH hHeader);
+
+/** Returns the file signature the the file. This should always be 'LASF'
+ * @param hHeader LASHeaderH instance
+ * @return the file signature the the file. This should always be 'LASF'
+*/
+LAS_DLL char *LASHeader_GetFileSignature(const LASHeaderH hHeader);
+
+/** Returns the file source id for the file. It is a number from 1-65535
+ * @param hHeader LASHeaderH instance
+ * @return the file source id for the file.
+*/
+LAS_DLL uint16_t LASHeader_GetFileSourceId(const LASHeaderH hHeader);
+
+/** Sets the FileSource ID value for the header. By default, this value is "0" if it
+ * is not explicitly set. See the LAS specification for details on what this
+ * value should logically be set to.
+ * @param hHeader LASHeaderH instance
+ * @param value the value to set as the FileSource ID value for the header
+ * @return LASError enum
+*/
+LAS_DLL LASError LASHeader_SetFileSourceId(LASHeaderH hHeader, uint16_t value);
+
+/** Returns the project id for the header as a GUID string
+ * @return the project id for the header as a GUID string
+*/
+LAS_DLL char *LASHeader_GetProjectId(const LASHeaderH hHeader);
+
+/** Sets the project id/GUID for the header
+ * @param hHeader LASHeaderH instance
+ * @param value character value GUID to set the header value to
+ * @return LASError enum
+*/
+LAS_DLL LASError LASHeader_SetProjectId(LASHeaderH hHeader, const char* value);
+
+/** Sets the project id/GUID for the header
+ * @param hHeader LASHeaderH instance
+ * @param hId LASGuidH instance to set the GUID for the header to
+ * @return LASError enum
+*/
+LAS_DLL LASError LASHeader_SetGUID(LASHeaderH hHeader, LASGuidH hId);
+
+/** Returns the major version number for the header. This value is expected
+ * to always be 1.
+ * @param hHeader LASHeaderH instance
+ * @return major version number for the header.
+*/
+LAS_DLL uint8_t LASHeader_GetVersionMajor(const LASHeaderH hHeader);
+
+/** Sets the major version number for the header. All values other than 1
+ * are invalid.
+ * @param hHeader LASHeaderH instance
+ * @param value integer value to set the major version to (only the value 1 is valid)
+ * @return LASError enum
+*/
+LAS_DLL LASError LASHeader_SetVersionMajor(LASHeaderH hHeader, uint8_t value);
+
+/** Returns the min version number for the header. This value is expected
+ * to be 1 or 0 representing LAS 1.1 or LAS 1.0
+ * @param hHeader LASHeaderH instance
+ * @return minor version number for the header.
+*/
+LAS_DLL uint8_t LASHeader_GetVersionMinor(const LASHeaderH hHeader);
+
+/** Sets the minor version number for the header. All values other than 1 or 0
+ * are invalid.
+ * @param hHeader LASHeaderH instance
+ * @param value integer value to set the minor version to (only the values 1 or 0 are valid)
+ * @return LASError enum
+ *
+ * @todo TODO: Maybe this should return fatal error if version out of range -- hobu
+*/
+LAS_DLL LASError LASHeader_SetVersionMinor(LASHeaderH hHeader, uint8_t value);
+
+/** Returns the System ID for the header. The caller assumes ownership of the returned string
+ * @return the system id for the header as a character array
+*/
+LAS_DLL char *LASHeader_GetSystemId(const LASHeaderH hHeader);
+
+/** Sets the System ID for the header. By default, this value is "libLAS" if it
+ * is not explicitly set. See the LAS specification for details on what this
+ * value should logically be set to.
+ * @param hHeader LASHeaderH instance
+ * @param value the value to set as the System ID for the header
+ * @return LASError enum
+*/
+LAS_DLL LASError LASHeader_SetSystemId(LASHeaderH hHeader, const char* value);
+
+/** Returns the Software ID for the header. The caller assumes ownership of the returned string
+ * @return the software id for the header as a character array
+*/
+LAS_DLL char *LASHeader_GetSoftwareId(const LASHeaderH hHeader);
+
+/** Sets the Software ID for the header. By default, this value is "libLAS 1.0" if it
+ * is not explicitly set. See the LAS specification for details on what this
+ * value should logically be set to.
+ * @param hHeader LASHeaderH instance
+ * @param value the value to set as the Software ID for the header
+ * @return LASError enum
+*/
+LAS_DLL LASError LASHeader_SetSoftwareId(LASHeaderH hHeader, const char* value);
+
+/** Returns the reserved value for the header. This should aways be 0.
+ * @return the reserved value for the header.
+*/
+LAS_DLL uint16_t LASHeader_GetReserved(const LASHeaderH hHeader);
+
+/** Sets the Reserved value for the header. By default, this value is "0" if it
+ * is not explicitly set. See the LAS specification for details on what this
+ * value should logically be set to.
+ * @param hHeader LASHeaderH instance
+ * @param value the value to set as the reserved value for the header
+ * @return LASError enum
+*/
+LAS_DLL LASError LASHeader_SetReserved(LASHeaderH hHeader, uint16_t value);
+
+/** Returns the file creation day of the year. The values start from 1, being January 1st,
+ * and end at 365 or 366 being December 31st, depending on leap year.
+ * @return the day of the year as an integer starting from 1 for the file creation.
+*/
+LAS_DLL uint16_t LASHeader_GetCreationDOY(const LASHeaderH hHeader);
+
+/** Sets the file creation day of the year. The values start from 1, being January 1st. No
+ * date validation is done
+ * @param hHeader LASHeaderH instance
+ * @param value the value to set as the creation day
+ * @return LASError enum
+*/
+LAS_DLL LASError LASHeader_SetCreationDOY(LASHeaderH hHeader, uint16_t value);
+
+/** Returns the file creation year. This is a four digit number representing the
+ * year for the file, ie 2003, 2008, etc.
+ * @return the creation year for the file or 0 if none is set
+*/
+LAS_DLL uint16_t LASHeader_GetCreationYear(const LASHeaderH hHeader);
+
+/** Sets the file creation year. This should be a four digit number representing
+ * the year for the file, ie 2003, 2008, etc. No validation on the value is done
+ * @param hHeader LASHeaderH instance
+ * @param value the value to set for the creation year
+ * @return LASError enum
+*/
+LAS_DLL LASError LASHeader_SetCreationYear(LASHeaderH hHeader, uint16_t value);
+
+/** Returns the size of the header for the file in bytes.
+ * @return the size of the header for the file in bytes.
+*/
+LAS_DLL uint16_t LASHeader_GetHeaderSize(const LASHeaderH hHeader);
+
+/** Returns the byte offset to the start of actual point data for the file
+ * @param hHeader LASHeaderH instance
+ * @return the type offset to the start of actual point data for the file
+*/
+LAS_DLL uint32_t LASHeader_GetDataOffset(const LASHeaderH hHeader);
+
+/** Sets the location in number of bytes to start writing point data. Any
+ * space between the end of the LASVLRHs and this value will be written with 0's.
+ * @param hHeader LASHeaderH instance
+ * @param value the long integer to set for byte location determining the end of the header
+ * @return LASError enum
+*/
+ LAS_DLL LASError LASHeader_SetDataOffset(const LASHeaderH hHeader, uint32_t value);
+
+/** Returns the number of variable length records in the header
+ * @param hHeader LASHeaderH instance
+ * @return the number of variable length records in the header
+*/
+LAS_DLL uint32_t LASHeader_GetRecordsCount(const LASHeaderH hHeader);
+
+/** Returns the record length for the points based on their data format id in bytes
+ * @param hHeader LASHeaderH instance
+ * @return the record length for the points based on their data format id in bytes
+*/
+LAS_DLL uint16_t LASHeader_GetDataRecordLength(const LASHeaderH hHeader);
+
+/** Returns the data format id. If this value is 1, the point data have time values
+ * associated with them. If it is 0, the point data do not have time values.
+ * @param hHeader LASHeaderH instance
+ * @return the data format id for the file.
+*/
+LAS_DLL uint8_t LASHeader_GetDataFormatId(const LASHeaderH hHeader);
+
+/** Sets the data format id for the file. The value should be 1 or 0, with 1 being
+ * points that contain time values and 0 being points that do not.
+ * @param hHeader LASHeaderH instance
+ * @param value the value for the data format id, 1 or 0 are valid values.
+ * @return LASError enum
+*/
+LAS_DLL LASError LASHeader_SetDataFormatId(const LASHeaderH hHeader, uint8_t value);
+
+/** Returns the number of point records in the file. This value may not reflect the actual
+ * number of point records in the file.
+ * @param hHeader LASHeaderH instance
+ * @return the number of point records in the file
+*/
+LAS_DLL uint32_t LASHeader_GetPointRecordsCount(const LASHeaderH hHeader);
+
+/** Sets the number of point records for the file.
+ * @param hHeader LASHeaderH instance
+ * @param value the long integer to set for the number of point records in the file
+ * @return LASError enum
+*/
+LAS_DLL LASError LASHeader_SetPointRecordsCount(const LASHeaderH hHeader, uint32_t value);
+
+/** Returns the number of point records by return.
+ * @param hHeader LASHeaderH instance
+ * @param index the return number to fetch the count for
+ * @return the number of point records for a given return
+*/
+LAS_DLL uint32_t LASHeader_GetPointRecordsByReturnCount(const LASHeaderH hHeader, int index);
+
+/** Sets the number of point records for a given return
+ * @param hHeader LASHeaderH instance
+ * @param index the return number to set the count for
+ * @param value the number of point records for the return
+ * @return LASError enum
+*/
+LAS_DLL LASError LASHeader_SetPointRecordsByReturnCount(const LASHeaderH hHeader, int index, uint32_t value);
+
+/** Return the X scale factor
+ * @param hHeader LASHeaderH instance
+ * @return the X scale factor
+*/
+LAS_DLL double LASHeader_GetScaleX(const LASHeaderH hHeader);
+
+/** Return the Y scale factor
+ * @param hHeader LASHeaderH instance
+ * @return the Y scale factor
+*/
+LAS_DLL double LASHeader_GetScaleY(const LASHeaderH hHeader);
+
+/** Return the Z scale factor
+ * @param hHeader LASHeaderH instance
+ * @return the Z scale factor
+*/
+LAS_DLL double LASHeader_GetScaleZ(const LASHeaderH hHeader);
+
+/** Sets the scale factors
+ * @param hHeader LASHeaderH instance
+ * @param x the x scale factor
+ * @param y the y scale factor
+ * @param z the z scale factor
+ * @return LASError enum
+*/
+LAS_DLL LASError LASHeader_SetScale(LASHeaderH hHeader, double x, double y, double z);
+
+/** Return the X offset
+ * @param hHeader LASHeaderH instance
+ * @return the X offset
+*/
+LAS_DLL double LASHeader_GetOffsetX(const LASHeaderH hHeader);
+
+/** Return the Y offset
+ * @param hHeader LASHeaderH instance
+ * @return the Y offset
+*/
+LAS_DLL double LASHeader_GetOffsetY(const LASHeaderH hHeader);
+
+/** Return the Z offset
+ * @param hHeader LASHeaderH instance
+ * @return the Z offset
+*/
+LAS_DLL double LASHeader_GetOffsetZ(const LASHeaderH hHeader);
+
+/** Sets the offset values
+ * @param hHeader LASHeaderH instance
+ * @param x the x offset
+ * @param y the y offset
+ * @param z the z offset
+ * @return LASError enum
+*/
+LAS_DLL LASError LASHeader_SetOffset(LASHeaderH hHeader, double x, double y, double z);
+
+/** Return the minimum x value
+ * @param hHeader LASHeaderH instance
+ * @return the minimum x value
+*/
+LAS_DLL double LASHeader_GetMinX(const LASHeaderH hHeader);
+
+/** Return the minimum y value
+ * @param hHeader LASHeaderH instance
+ * @return the minimum y value
+*/
+LAS_DLL double LASHeader_GetMinY(const LASHeaderH hHeader);
+
+/** Return the minimum z value
+ * @param hHeader LASHeaderH instance
+ * @return the minimum z value
+*/
+LAS_DLL double LASHeader_GetMinZ(const LASHeaderH hHeader);
+
+/** Sets the minimum values
+ * @param hHeader LASHeaderH instance
+ * @param x the x minimum
+ * @param y the y minimum
+ * @param z the z minimum
+ * @return LASError enum
+*/
+LAS_DLL LASError LASHeader_SetMin(LASHeaderH hHeader, double x, double y, double z);
+
+/** Return the maximum x value
+ * @param hHeader LASHeaderH instance
+ * @return the maximum x value
+*/
+LAS_DLL double LASHeader_GetMaxX(const LASHeaderH hHeader);
+
+/** Return the maximum y value
+ * @param hHeader LASHeaderH instance
+ * @return the maximum y value
+*/
+LAS_DLL double LASHeader_GetMaxY(const LASHeaderH hHeader);
+
+/** Return the maximum z value
+ * @param hHeader LASHeaderH instance
+ * @return the maximum z value
+*/
+LAS_DLL double LASHeader_GetMaxZ(const LASHeaderH hHeader);
+
+/** Sets the maximum values
+ * @param hHeader LASHeaderH instance
+ * @param x the x maximum
+ * @param y the y maximum
+ * @param z the z maximum
+ * @return LASError enum
+*/
+LAS_DLL LASError LASHeader_SetMax(LASHeaderH hHeader, double x, double y, double z);
+
+/** Returns the VLR record for the given index. Use LASHeader_GetRecordsCount to
+ * determine the number of VLR records available on the header.
+ * @param hHeader the LASHeaderH instance
+ * @param i the index starting from 0 of the VLR to fetch
+ * @return LASVLRH instance that models the Variable Length Record
+*/
+LAS_DLL LASVLRH LASHeader_GetVLR(const LASHeaderH hHeader, uint32_t i);
+
+/** Deletes a VLR record from the header for the given index.
+ * @param hHeader the LASHeaderH instance
+ * @param index the index starting from 0 of the VLR to delete
+ * @return LASErrorEnum
+*/
+LAS_DLL LASError LASHeader_DeleteVLR(LASHeaderH hHeader, uint32_t index);
+
+/** Adds a VLR record to the header.
+ * @param hHeader the LASHeaderH instance
+ * @param hVLR the VLR to add to the header
+ * @return LASErrorEnum
+*/
+LAS_DLL LASError LASHeader_AddVLR(LASHeaderH hHeader, const LASVLRH hVLR);
+
+/****************************************************************************/
+/* Writer Operations */
+/****************************************************************************/
+
+/** Creates a new LASWriterH for write operations on LAS files. The file may
+ * be opened in either LAS_MODE_APPEND or LAS_MODE_WRITE, but the file cannot
+ * be open by another other operations (another LASReaderH or LASWriterH).
+ * @param filename The filename to open to write
+ * @param hHeader an opaque pointer to a LASHeaderH that will be written to
+ * the file as part of the opening for write operation.
+ * @param mode a mode value to denote whether to open for write or append
+ * operations. Valid values are LAS_MODE_APPEND and LAS_MODE_WRITE.
+*/
+LAS_DLL LASWriterH LASWriter_Create(const char* filename, const LASHeaderH hHeader, int mode);
+
+/** Writes a point to the file. The location of where the point is writen is
+ * determined by the mode the file is opened in, and what the last operation was.
+ * For example, if the file was opened for append, the next point would be written
+ * at the end of the file. Likewise, if the file is opened in write mode, even
+ * if the file already existed, the next WritePoint operation will happen at the
+ * end of the header and all of the existing points in the file will be overwritten.
+ * @param hWriter opaque pointer to the LASWriterH instance
+ * @param hPoint the opaque LASPointH pointer to write
+ * @return LE_None if no error occurred during the write operation.
+*/
+LAS_DLL LASError LASWriter_WritePoint(const LASWriterH hWriter, const LASPointH hPoint);
+
+/** Overwrites the header for the file represented by the LASWriterH. It does
+ * not matter if the file is opened for append or for write.
+ * @param hWriter opaque pointer to the LASWriterH instance
+ * @param hHeader LASHeaderH instance to write into the file
+ * @return LE_None if no error occurred during the operation.
+*/
+
+LAS_DLL LASError LASWriter_WriteHeader(const LASWriterH hWriter, const LASHeaderH hHeader);
+
+/** Destroys the LASWriterH instance, effectively closing the file and performing
+ * housekeeping operations.
+ * @param hWriter LASWriterH instance to close
+*/
+LAS_DLL void LASWriter_Destroy(LASWriterH hWriter);
+
+
+LAS_DLL LASError LASWriter_SetSRS(LASWriterH hWriter, const LASSRSH hSRS);
+
+/****************************************************************************/
+/* GUID Operations */
+/****************************************************************************/
+
+/** Returns the GUID value for the header as an opaque LASGuidH pointer.
+ * @param hHeader the opaque pointer to the LASHeaderH
+ * @return the GUID value for the header as an opaque LASGuidH pointer.
+*/
+LAS_DLL LASGuidH LASHeader_GetGUID(const LASHeaderH hHeader);
+
+/** Returns a new random GUID.
+ * @return a new random GUID
+*/
+LAS_DLL LASGuidH LASGuid_Create();
+
+/** Creates a new GUID opaque pointer using the given string.
+ * @param string A GUID string in the form "00000000-0000-0000-0000-000000000000"
+ * An example GUID might be something like '8388F1B8-AA1B-4108-BCA3-6BC68E7B062E'
+ * @return the GUID value as an opaque LASGuidH pointer.
+*/
+LAS_DLL LASGuidH LASGuid_CreateFromString(const char* string);
+
+/** Destroys a GUID opaque pointer and removes it from the heap
+ * @param hId the GUID value to destroy as an opaque LASGuidH pointer.
+*/
+LAS_DLL void LASGuid_Destroy(LASGuidH hId);
+
+/** Determines if two GUIDs are equal.
+ * @param hId1 the first GUID
+ * @param hId2 the second GUID
+ * @return 0 if false, 1 if true. Use the LASError_GetLastError* methods to
+ * determine if an error occured during the operation of this function.
+*/
+LAS_DLL int LASGuid_Equals(LASGuidH hId1, LASGuidH hId2);
+
+/** Returns a string representation of the GUID opqaue pointer. The caller
+ * owns the string.
+ * @param hId the LASGuidH pointer
+ * @return a string representation of the GUID opaque pointer.
+*/
+LAS_DLL char* LASGuid_AsString(LASGuidH hId);
+
+/****************************************************************************/
+/* VLR Operations */
+/****************************************************************************/
+
+/** Creates a new VLR record
+ * @return a new VLR record
+*/
+LAS_DLL LASVLRH LASVLR_Create(void);
+
+/** Destroys a VLR record and removes it from the heap
+*/
+LAS_DLL void LASVLR_Destroy(LASVLRH hVLR);
+
+/** Returns the User Id for the VLR
+ * @param hVLR the LASVLRH instance
+ * @return the User Id for the VLR
+*/
+LAS_DLL char* LASVLR_GetUserId(const LASVLRH hVLR);
+
+/** Sets the User Id for the VLR
+ * @param hVLR the LASVLRH instance
+ * @param value the value to set for the User Id. It will be clipped to fit
+ * within 16 characters
+ * @return LASErrorEnum
+*/
+LAS_DLL LASError LASVLR_SetUserId(LASVLRH hVLR, const char* value);
+
+/** Gets the description for the VLR
+ * @param hVLR the LASVLRH instance
+ * @return the description for the VLR
+*/
+LAS_DLL char* LASVLR_GetDescription(const LASVLRH hVLR);
+
+/** Sets the description for the VLR
+ * @param hVLR the LASVLRH instance
+ * @param value the value to set for the description. It will be clipped to fit
+ * within 32 characters
+ * @return LASErrorEnum
+*/
+LAS_DLL LASError LASVLR_SetDescription(LASVLRH hVLR, const char* value);
+
+/** Returns the record length of the data stored in the VLR
+ * @param hVLR the LASVLRH instance
+ * @return the record length of the data stored in the VLR
+*/
+LAS_DLL uint16_t LASVLR_GetRecordLength(const LASVLRH hVLR);
+
+/** Sets the record length of the data stored in the VLR
+ * @param hVLR the LASVLRH instance
+ * @param value the length to set for the VLR data length
+ * @return LASErrorEnum
+*/
+LAS_DLL LASError LASVLR_SetRecordLength(LASVLRH hVLR, uint16_t value);
+
+/** Gets the record id for the VLR
+ * @param hVLR the LASVLRH instance
+ * @return the record id for the VLR
+*/
+LAS_DLL uint16_t LASVLR_GetRecordId(const LASVLRH hVLR);
+
+/** Sets the record id for the VLR
+ * @param hVLR the LASVLRH instance
+ * @param value the record id to set
+ * @return LASErrorEnum
+*/
+LAS_DLL LASError LASVLR_SetRecordId(LASVLRH hVLR, uint16_t value);
+
+/** Gets the reserved value of the VLR. This should be 0 and should aways be 0.
+ * @param hVLR the LASVLRH instance
+ * @return the reserved value of the VLR.
+*/
+LAS_DLL uint16_t LASVLR_GetReserved(const LASVLRH hVLR);
+
+/** Sets the reserved value of the VLR. This should be 0 and you should not
+ * have to ever monkey with this value according to the spec.
+ * @param hVLR the LASVLRH instance
+ * @param value the value to set for the reserved value
+ * @return LASErrorEnum
+*/
+LAS_DLL LASError LASVLR_SetReserved(LASVLRH hVLR, uint16_t value);
+
+/** Gets the data stream for the VLR as an array of bytes. The length of this
+ * array should be the same as LASVLR_GetRecordLength. You must allocate it on
+ * the heap and you are responsible for its destruction.
+ * @param hVLR the LASVLRH instance
+ * @param data a pointer to your array where you want the data copied
+ * @return LASErrorEnum
+*/
+LAS_DLL LASError LASVLR_GetData(const LASVLRH hVLR, uint8_t* data);
+
+/** Sets the data stream for the VLR as an array of bytes. The length of this
+ * array should be the same as LASVLR_GetRecordLength. The data are copied into
+ * the VLR structure.
+ * @param hVLR the LASVLRH instance
+ * @param data a pointer to your array. It must be LASVLR_GetRecordLength in size
+ * @return LASErrorEnum
+*/
+LAS_DLL LASError LASVLR_SetData(const LASVLRH hVLR, uint8_t* data, uint16_t length);
+
+
+/****************************************************************************/
+/* Color Operations */
+/****************************************************************************/
+
+/** Creates a new Color
+ * @return a new Color
+*/
+LAS_DLL LASColorH LASColor_Create(void);
+
+/** Destroys a Color and removes it from the heap
+*/
+LAS_DLL void LASColor_Destroy(LASColorH hColor);
+
+/** Returns the red value for the color.
+ * @return the red value for the color.
+*/
+LAS_DLL uint16_t LASColor_GetRed(const LASColorH hColor);
+
+/** Sets the red value for the color
+ * @param hColor the opaque pointer to the LASColorH instance
+ * @param value the value to set the red value to
+ * @return an error number if an error occured.
+*/
+LAS_DLL LASError LASColor_SetRed(LASColorH hColor, uint16_t value);
+
+/** Returns the green value for the color.
+ * @return the green value for the color.
+*/
+LAS_DLL uint16_t LASColor_GetGreen(const LASColorH hColor);
+
+/** Sets the green value for the color
+ * @param hColor the opaque pointer to the LASColorH instance
+ * @param value the value to set the green value to
+ * @return an error number if an error occured.
+*/
+LAS_DLL LASError LASColor_SetGreen(LASColorH hColor, uint16_t value);
+
+/** Returns the blue value for the color.
+ * @return the blue value for the color.
+*/
+LAS_DLL uint16_t LASColor_GetBlue(const LASColorH hColor);
+
+/** Sets the blue value for the color
+ * @param hColor the opaque pointer to the LASColorH instance
+ * @param value the value to set the blue value to
+ * @return an error number if an error occured.
+*/
+LAS_DLL LASError LASColor_SetBlue(LASColorH hColor, uint16_t value);
+
+
+/** Returns the color for the LASPointH
+ * @return the color for the LASPointH.
+*/
+LAS_DLL LASColorH LASPoint_GetColor(const LASPointH hPoint);
+
+/** Sets the color for the point
+ * @param hPoint the opaque pointer to the LASPointH instance
+ * @param hColor the opaque pointer to the LASColorH instance
+ * @return an error number if an error occured.
+*/
+LAS_DLL LASError LASPoint_SetColor(LASPointH hPoint, const LASColorH hColor);
+
+
+/****************************************************************************/
+/* SRS Operations */
+/****************************************************************************/
+
+/** Creates a new SRS
+ * @return a new SRS
+*/
+LAS_DLL LASSRSH LASSRS_Create(void);
+
+
+LAS_DLL const GTIF* LASSRS_GetGTIF(LASSRSH hSRS);
+LAS_DLL char* LASSRS_GetWKT(LASSRSH hSRS);
+LAS_DLL LASError LASSRS_SetWKT(LASSRSH hSRS, const char* value);
+LAS_DLL char* LASSRS_GetProj4(LASSRSH hSRS);
+LAS_DLL LASError LASSRS_SetProj4(LASSRSH hSRS, const char* value);
+LAS_DLL LASSRSH LASHeader_GetSRS(const LASHeaderH hHeader);
+LAS_DLL LASError LASHeader_SetSRS(LASHeaderH hHeader, const LASSRSH hSRS);
+LAS_DLL void LASSRS_Destroy(LASSRSH hSRS);
+LAS_DLL LASVLRH LASSRS_GetVLR(const LASSRSH hSRS, uint32_t i);
+LAS_DLL uint32_t LASSRS_GetVLRCount(const LASSRSH hSRS);
+
+/** Method to ensure that you are freeing char*'s from the
+ * correct heap.
+ * @param string the string to free
+*/
+LAS_DLL void LASString_Free(char* string);
+
+LAS_C_END
+#endif
+
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/include/liblas/cstdint.hpp work/libLAS-1.2.1/include/liblas/cstdint.hpp
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/include/liblas/cstdint.hpp 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/include/liblas/cstdint.hpp 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,173 @@
+/******************************************************************************
+ * $Id$
+ *
+ * Project: libLAS - http://liblas.org - A BSD library for LAS format data.
+ * Purpose: Integer types definitions
+ * Author: Mateusz Loskot, mateusz@loskot.net
+ *
+ * This file has been stolen from and
+ * modified for libLAS purposes.
+ *
+ * (C) Copyright Mateusz Loskot 2007, mateusz@loskot.net
+ * (C) Copyright Phil Vachon 2007, philippe@cowpig.ca
+ * (C) Copyright John Maddock 2001
+ * (C) Copyright Jens Mauer 2001
+ * (C) Copyright Beman Dawes 1999
+ * Distributed under the Boost Software License, Version 1.0.
+ * (See accompanying file LICENSE_1_0.txt or copy at
+ * http://www.boost.org/LICENSE_1_0.txt)
+ *
+ ******************************************************************************
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following
+ * conditions are met:
+ *
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided
+ * with the distribution.
+ * * Neither the name of the Martin Isenburg or Iowa Department
+ * of Natural Resources nor the names of its contributors may be
+ * used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+ * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+ * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
+ * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
+ * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
+ * OF SUCH DAMAGE.
+ ****************************************************************************/
+
+#ifndef LIBLAS_CSTDINT_HPP_INCLUDED
+#define LIBLAS_CSTDINT_HPP_INCLUDED
+
+#ifdef LIBLAS_C_API
+# include
+# ifndef _MSC_VER
+# include
+# endif /* _MSC_VER */
+#else /* LIBLAS_C_API */
+# include
+namespace liblas
+{
+#endif /* LIBLAS_C_API */
+
+/*
+// These are fairly safe guesses for some 16-bit, and most 32-bit and 64-bit
+// platforms. For other systems, they will have to be hand tailored.
+//
+// Because the fast types are assumed to be the same as the undecorated types,
+// it may be possible to hand tailor a more efficient implementation. Such
+// an optimization may be illusionary; on the Intel x86-family 386 on, for
+// example, byte arithmetic and load/stores are as fast as "int" sized ones.
+
+// 8-bit types ------------------------------------------------------------//
+*/
+
+#ifndef UINT8_C
+# if UCHAR_MAX == 0xff
+ typedef unsigned char uint8_t;
+ typedef signed char int8_t;
+# else
+# error defaults not correct; you must hand modify liblas/cstdint.hpp
+# endif
+#else
+# ifndef LIBLAS_C_API
+ typedef ::uint8_t uint8_t;
+ typedef ::int8_t int8_t;
+# endif
+
+#endif /* UINT8_C */
+
+/*
+// 16-bit types -----------------------------------------------------------//
+*/
+
+#ifndef UINT16_C
+# if USHRT_MAX == 0xffff
+ typedef unsigned short uint16_t;
+ typedef short int16_t;
+# else
+# error defaults not correct; you must hand modify liblas/cstdint.hpp
+# endif
+#else
+# ifndef LIBLAS_C_API
+ typedef ::uint16_t uint16_t;
+ typedef ::int16_t int16_t;
+# endif
+#endif /* UINT16_C */
+
+/*
+// 32-bit types -----------------------------------------------------------//
+*/
+
+#ifndef UINT32_C
+# if ULONG_MAX == 0xffffffff
+ typedef unsigned long uint32_t;
+# elif UINT_MAX == 0xffffffff
+ typedef unsigned int uint32_t;
+# else
+# error defaults not correct; you must hand modify liblas/cstdint.hpp
+# endif
+#else
+# ifndef LIBLAS_C_API
+ typedef ::uint32_t uint32_t;
+# endif
+#endif /* UINT32_C */
+
+#ifndef INT32_C
+# if ULONG_MAX == 0xffffffff
+ typedef long int32_t;
+# elif UINT_MAX == 0xffffffff
+ typedef int int32_t;
+# else
+# error defaults not correct; you must hand modify liblas/cstdint.hpp
+# endif
+#else
+# ifndef LIBLAS_C_API
+ typedef ::int32_t int32_t;
+# endif
+#endif /* INT32_C */
+
+/*
+// 64-bit types + intmax_t and uintmax_t ----------------------------------//
+*/
+
+#ifndef UINT64_C
+# if ULONG_MAX != 0xffffffffu
+# if ULONG_MAX == 18446744073709551615u /* 2**64 - 1 */
+ typedef long int64_t;
+ typedef unsigned long uint64_t;
+# else
+# error defaults not correct; you must hand modify boost/cstdint.hpp
+# endif
+# elif defined(__GNUC__) || defined(HAVE_LONG_LONG)
+ __extension__ typedef long long int64_t;
+ __extension__ typedef unsigned long long uint64_t;
+# elif defined(_MSC_VER)
+/* // we have Borland/Intel/Microsoft __int64: */
+ typedef __int64 int64_t;
+ typedef unsigned __int64 uint64_t;
+# else /* // assume no 64-bit integers */
+# define LIBLAS_NO_INT64_T
+# endif
+#endif /* UINT64_C */
+
+#ifndef LIBLAS_C_API
+} /* namespace liblas */
+#endif /* LIBLAS_C_API */
+
+#endif /* LIBLAS_CSTDINT_HPP_INCLUDED */
+
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/include/liblas/detail/endian.hpp work/libLAS-1.2.1/include/liblas/detail/endian.hpp
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/include/liblas/detail/endian.hpp 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/include/liblas/detail/endian.hpp 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,127 @@
+/******************************************************************************
+ * $Id$
+ *
+ * Project: libLAS - http://liblas.org - A BSD library for LAS format data.
+ * Purpose: Endian macros
+ * Author: Mateusz Loskot, mateusz@loskot.net
+ *
+ * This file has been stolen from and
+ * modified for libLAS purposes.
+ *
+ * (C) Copyright Mateusz Loskot 2007, mateusz@loskot.net
+ * (C) Copyright Caleb Epstein 2005
+ * (C) Copyright John Maddock 2006
+ * Distributed under the Boost Software License, Version 1.0.
+ * (See accompanying file LICENSE_1_0.txt or copy at
+ * http://www.boost.org/LICENSE_1_0.txt)
+ *
+ * Revision History
+ * 06 Feb 2006 - Initial Revision
+ * 09 Nov 2006 - fixed variant and version bits for v4 guids
+ * 13 Nov 2006 - added serialization
+ * 17 Nov 2006 - added name-based guid creation
+ * 20 Nov 2006 - add fixes for gcc (from Tim Blechmann)
+ * 07 Mar 2007 - converted to header only
+ * 20 Jan 2008 - removed dependency of Boost and modified for libLAS (by Mateusz Loskot)
+ ******************************************************************************
+ *
+ * Copyright (c) 1997
+ * Silicon Graphics Computer Systems, Inc.
+ *
+ * Permission to use, copy, modify, distribute and sell this software
+ * and its documentation for any purpose is hereby granted without fee,
+ * provided that the above copyright notice appear in all copies and
+ * that both that copyright notice and this permission notice appear
+ * in supporting documentation. Silicon Graphics makes no
+ * representations about the suitability of this software for any
+ * purpose. It is provided "as is" without express or implied warranty.
+ *
+ *
+ *
+ * Copyright notice reproduced from , from
+ * which this code was originally taken.
+ *
+ * Modified by Caleb Epstein to use with GNU libc and to
+ * defined the BOOST_ENDIAN macro.
+ ****************************************************************************/
+
+#ifndef LIBLAS_DETAIL_ENDIAN_HPP_INCLUDED
+#define LIBLAS_DETAIL_ENDIAN_HPP_INCLUDED
+
+// GNU libc offers the helpful header which defines
+// __BYTE_ORDER
+
+#if defined (__GLIBC__)
+# include
+# if (__BYTE_ORDER == __LITTLE_ENDIAN)
+# define LIBLAS_LITTLE_ENDIAN
+# elif (__BYTE_ORDER == __BIG_ENDIAN)
+# define LIBLAS_BIG_ENDIAN
+# elif (__BYTE_ORDER == __PDP_ENDIAN)
+# define LIBLAS_PDP_ENDIAN
+# else
+# error Unknown machine endianness detected.
+# endif
+# define LIBLAS_BYTE_ORDER __BYTE_ORDER
+#elif defined(_BIG_ENDIAN)
+# define LIBLAS_BIG_ENDIAN
+# define LIBLAS_BYTE_ORDER 4321
+#elif defined(_LITTLE_ENDIAN)
+# define LIBLAS_LITTLE_ENDIAN
+# define LIBLAS_BYTE_ORDER 1234
+
+// If they're both defined, we're assuming little for now. See http://liblas.org/ticket/133
+#elif defined(_LITTLE_ENDIAN) && defined(_BIG_ENDIAN)
+# define LIBLAS_LITTLE_ENDIAN
+# define LIBLAS_BYTE_ORDER 1234
+
+#elif defined(__sparc) || defined(__sparc__) \
+ || defined(_POWER) || defined(__powerpc__) \
+ || defined(__ppc__) || defined(__hpux) \
+ || defined(_MIPSEB) || defined(_POWER) \
+ || defined(__s390__)
+# define LIBLAS_BIG_ENDIAN
+# define LIBLAS_BYTE_ORDER 4321
+#elif defined(__i386__) || defined(__alpha__) \
+ || defined(__ia64) || defined(__ia64__) \
+ || defined(_M_IX86) || defined(_M_IA64) \
+ || defined(_M_ALPHA) || defined(__amd64) \
+ || defined(__amd64__) || defined(_M_AMD64) \
+ || defined(__x86_64) || defined(__x86_64__) \
+ || defined(_M_X64)
+
+# define LIBLAS_LITTLE_ENDIAN
+# define LIBLAS_BYTE_ORDER 1234
+#else
+# error The file liblas/detail/endian.hpp needs to be set up for your CPU type.
+#endif
+
+
+#if defined(LIBLAS_BIG_ENDIAN)
+# define LIBLAS_SWAP_BYTES(p) \
+ do { \
+ char* first = static_cast(static_cast(&p)); \
+ char* last = first + sizeof(p) - 1; \
+ for(; first < last; ++first, --last) { \
+ char const x = *last; \
+ *last = *first; \
+ *first = x; \
+ }} while(false)
+
+# define LIBLAS_SWAP_BYTES_N(p, n) \
+ do { \
+ char* first = static_cast(static_cast(&p)); \
+ char* last = first + n - 1; \
+ for(; first < last; ++first, --last) { \
+ char const x = *last; \
+ *last = *first; \
+ *first = x; \
+ }} while(false)
+
+#else
+# define LIBLAS_SWAP_BYTES(p) do {} while(false)
+# define LIBLAS_SWAP_BYTES_N(p, n) do {} while(false)
+#endif // LIBLAS_BIG_ENDIAN
+
+#endif // LIBLAS_DETAIL_ENDIAN_HPP_INCLUDED
+
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/include/liblas/detail/file.hpp work/libLAS-1.2.1/include/liblas/detail/file.hpp
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/include/liblas/detail/file.hpp 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/include/liblas/detail/file.hpp 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,90 @@
+/******************************************************************************
+ * $Id$
+ *
+ * Project: libLAS - http://liblas.org - A BSD library for LAS format data.
+ * Purpose: A composite class to handle read/write operations
+ * Author: Mateusz Loskot, mateusz@loskot.net
+ *
+ ******************************************************************************
+ * Copyright (c) 2008, Mateusz Loskot
+ * Copyright (c) 2008, Howard Butler
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following
+ * conditions are met:
+ *
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided
+ * with the distribution.
+ * * Neither the name of the Martin Isenburg or Iowa Department
+ * of Natural Resources nor the names of its contributors may be
+ * used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+ * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+ * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
+ * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
+ * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
+ * OF SUCH DAMAGE.
+ ****************************************************************************/
+
+#ifndef LIBLAS_DETAIL_FILE_HPP_INCLUDED
+#define LIBLAS_DETAIL_FILE_HPP_INCLUDED
+
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+
+namespace liblas { namespace detail {
+
+class FileImpl
+{
+public:
+
+ FileImpl(std::string const& filename);
+ FileImpl(std::string const& filename, LASHeader const& header, int mode);
+ ~FileImpl();
+
+ std::string GetName() const;
+ int GetMode() const;
+ LASHeader const& GetHeader() const;
+ LASReader& GetReader();
+ LASWriter& GetWriter();
+
+private:
+
+ // Blocked copying operations, declared but not defined.
+ FileImpl(FileImpl const& other);
+ FileImpl& operator=(FileImpl const& rhs);
+
+ int m_mode;
+ std::string m_filename;
+ std::istream* m_istrm;
+ std::ostream* m_ostrm;
+ LASReader* m_reader;
+ LASWriter* m_writer;
+ LASHeader m_header;
+
+ void throw_no_file_error() const;
+};
+
+}} // namespace liblas::detail
+
+#endif // LIBLAS_DETAIL_FILE_HPP_INCLUDED
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/include/liblas/detail/fwd.hpp work/libLAS-1.2.1/include/liblas/detail/fwd.hpp
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/include/liblas/detail/fwd.hpp 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/include/liblas/detail/fwd.hpp 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,64 @@
+/******************************************************************************
+ * $Id$
+ *
+ * Project: libLAS - http://liblas.org - A BSD library for LAS format data.
+ * Purpose: Forward declarations for C++ libLAS
+ * Author: Mateusz Loskot, mateusz@loskot.net
+ *
+ ******************************************************************************
+ * Copyright (c) 2008, Mateusz Loskot
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following
+ * conditions are met:
+ *
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided
+ * with the distribution.
+ * * Neither the name of the Martin Isenburg or Iowa Department
+ * of Natural Resources nor the names of its contributors may be
+ * used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+ * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+ * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
+ * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
+ * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
+ * OF SUCH DAMAGE.
+ ****************************************************************************/
+
+#ifndef LIBLAS_DETAIL_FWD_HPP_INCLUDED
+#define LIBLAS_DETAIL_FWD_HPP_INCLUDED
+
+// Forward declarations
+namespace liblas {
+
+class LASHeader;
+class LASPoint;
+class LASReader;
+class LASWriter;
+class LASColor;
+class LASSpatialReference;
+
+namespace detail {
+
+class Reader;
+class Writer;
+struct PointRecord;
+struct Color;
+
+}} // namespace liblas::detail
+
+#endif // LIBLAS_DETAIL_FWD_HPP_INCLUDED
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/include/liblas/detail/reader.hpp work/libLAS-1.2.1/include/liblas/detail/reader.hpp
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/include/liblas/detail/reader.hpp 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/include/liblas/detail/reader.hpp 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,110 @@
+/******************************************************************************
+ * $Id$
+ *
+ * Project: libLAS - http://liblas.org - A BSD library for LAS format data.
+ * Purpose: Reader implementation for C++ libLAS
+ * Author: Mateusz Loskot, mateusz@loskot.net
+ *
+ ******************************************************************************
+ * Copyright (c) 2008, Mateusz Loskot
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following
+ * conditions are met:
+ *
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided
+ * with the distribution.
+ * * Neither the name of the Martin Isenburg or Iowa Department
+ * of Natural Resources nor the names of its contributors may be
+ * used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+ * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+ * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
+ * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
+ * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
+ * OF SUCH DAMAGE.
+ ****************************************************************************/
+
+#ifndef LIBLAS_DETAIL_READER_HPP_INCLUDED
+#define LIBLAS_DETAIL_READER_HPP_INCLUDED
+
+#include
+#include
+#include
+
+#ifndef HAVE_GDAL
+ typedef struct OGRCoordinateTransformationHS *OGRCoordinateTransformationH;
+ typedef struct OGRSpatialReferenceHS *OGRSpatialReferenceH;
+#endif
+
+// std
+#include
+
+namespace liblas { namespace detail {
+
+struct PointRecord;
+
+class Reader
+{
+public:
+
+ Reader(std::istream& ifs);
+ virtual ~Reader();
+ virtual std::size_t GetVersion() const = 0;
+ virtual bool ReadHeader(LASHeader& header) = 0;
+ virtual bool ReadNextPoint(LASPoint& point, const LASHeader& header) = 0;
+ virtual bool ReadPointAt(std::size_t n, LASPoint& point, const LASHeader& header) = 0;
+
+ std::istream& GetStream() const;
+ bool ReadVLR(LASHeader& header);
+ bool ReadGeoreference(LASHeader& header);
+ void Reset(LASHeader const& header);
+ void SetSRS(const LASSpatialReference& srs);
+
+protected:
+
+ std::istream& m_ifs;
+ uint32_t m_size;
+ uint32_t m_current;
+ LASSpatialReference m_out_srs;
+ LASSpatialReference m_in_srs;
+ OGRCoordinateTransformationH m_transform;
+ OGRSpatialReferenceH m_in_ref;
+ OGRSpatialReferenceH m_out_ref;
+
+ void FillPoint(PointRecord& record, LASPoint& point);
+ void Project(LASPoint& point);
+
+private:
+
+ // Blocked copying operations, declared but not defined.
+ Reader(Reader const& other);
+ Reader& operator=(Reader const& rhs);
+};
+
+class ReaderFactory
+{
+public:
+
+ // TODO: prototypes
+ static Reader* Create(std::istream& ifs);
+ static void Destroy(Reader* p);
+};
+
+}} // namespace liblas::detail
+
+#endif // LIBLAS_DETAIL_READER_HPP_INCLUDED
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/include/liblas/detail/reader10.hpp work/libLAS-1.2.1/include/liblas/detail/reader10.hpp
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/include/liblas/detail/reader10.hpp 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/include/liblas/detail/reader10.hpp 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,68 @@
+/******************************************************************************
+ * $Id$
+ *
+ * Project: libLAS - http://liblas.org - A BSD library for LAS format data.
+ * Purpose: LAS 1.0 reader implementation for C++ libLAS
+ * Author: Mateusz Loskot, mateusz@loskot.net
+ *
+ ******************************************************************************
+ * Copyright (c) 2008, Mateusz Loskot
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following
+ * conditions are met:
+ *
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided
+ * with the distribution.
+ * * Neither the name of the Martin Isenburg or Iowa Department
+ * of Natural Resources nor the names of its contributors may be
+ * used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+ * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+ * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
+ * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
+ * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
+ * OF SUCH DAMAGE.
+ ****************************************************************************/
+
+#ifndef LIBLAS_DETAIL_READER10_HPP_INCLUDED
+#define LIBLAS_DETAIL_READER10_HPP_INCLUDED
+
+#include
+#include
+// std
+#include
+
+namespace liblas { namespace detail { namespace v10 {
+
+class ReaderImpl : public Reader
+{
+public:
+
+ typedef Reader Base;
+
+ ReaderImpl(std::istream& ifs);
+ std::size_t GetVersion() const;
+ bool ReadHeader(LASHeader& header);
+ bool ReadNextPoint(LASPoint& point, const LASHeader& header);
+ bool ReadPointAt(std::size_t n, LASPoint& record, const LASHeader& header);
+
+};
+
+}}} // namespace liblas::detail::v10
+
+#endif // LIBLAS_DETAIL_READER10_HPP_INCLUDED
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/include/liblas/detail/reader11.hpp work/libLAS-1.2.1/include/liblas/detail/reader11.hpp
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/include/liblas/detail/reader11.hpp 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/include/liblas/detail/reader11.hpp 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,68 @@
+/******************************************************************************
+ * $Id$
+ *
+ * Project: libLAS - http://liblas.org - A BSD library for LAS format data.
+ * Purpose: LAS 1.1 reader implementation for C++ libLAS
+ * Author: Mateusz Loskot, mateusz@loskot.net
+ *
+ ******************************************************************************
+ * Copyright (c) 2008, Mateusz Loskot
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following
+ * conditions are met:
+ *
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided
+ * with the distribution.
+ * * Neither the name of the Martin Isenburg or Iowa Department
+ * of Natural Resources nor the names of its contributors may be
+ * used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+ * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+ * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
+ * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
+ * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
+ * OF SUCH DAMAGE.
+ ****************************************************************************/
+
+#ifndef LIBLAS_DETAIL_READER11_HPP_INCLUDED
+#define LIBLAS_DETAIL_READER11_HPP_INCLUDED
+
+#include
+#include
+// std
+#include
+
+namespace liblas { namespace detail { namespace v11 {
+
+class ReaderImpl : public Reader
+{
+public:
+
+ typedef Reader Base;
+
+ ReaderImpl(std::istream& ifs);
+ std::size_t GetVersion() const;
+ bool ReadHeader(LASHeader& header);
+ bool ReadNextPoint(LASPoint& point, const LASHeader& header);
+ bool ReadPointAt(std::size_t n, LASPoint& record, const LASHeader& header);
+
+};
+
+}}} // namespace liblas::detail::v11
+
+#endif // LIBLAS_DETAIL_READER11_HPP_INCLUDED
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/include/liblas/detail/reader12.hpp work/libLAS-1.2.1/include/liblas/detail/reader12.hpp
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/include/liblas/detail/reader12.hpp 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/include/liblas/detail/reader12.hpp 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,68 @@
+/******************************************************************************
+ * $Id$
+ *
+ * Project: libLAS - http://liblas.org - A BSD library for LAS format data.
+ * Purpose: LAS 1.2 reader implementation for C++ libLAS
+ * Author: Howard Butler, hobu.inc@gmail.com
+ *
+ ******************************************************************************
+ * Copyright (c) 2008, Howard Butler
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following
+ * conditions are met:
+ *
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided
+ * with the distribution.
+ * * Neither the name of the Martin Isenburg or Iowa Department
+ * of Natural Resources nor the names of its contributors may be
+ * used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+ * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+ * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
+ * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
+ * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
+ * OF SUCH DAMAGE.
+ ****************************************************************************/
+
+#ifndef LIBLAS_DETAIL_READER12_HPP_INCLUDED
+#define LIBLAS_DETAIL_READER12_HPP_INCLUDED
+
+#include
+#include
+// std
+#include
+
+namespace liblas { namespace detail { namespace v12 {
+
+class ReaderImpl : public Reader
+{
+public:
+
+ typedef Reader Base;
+
+ ReaderImpl(std::istream& ifs);
+ std::size_t GetVersion() const;
+ bool ReadHeader(LASHeader& header);
+ bool ReadNextPoint(LASPoint& point, LASHeader const& header);
+ bool ReadPointAt(std::size_t n, LASPoint& record, LASHeader const& header);
+
+};
+
+}}} // namespace liblas::detail::v12
+
+#endif // LIBLAS_DETAIL_READER12_HPP_INCLUDED
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/include/liblas/detail/sha1.hpp work/libLAS-1.2.1/include/liblas/detail/sha1.hpp
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/include/liblas/detail/sha1.hpp 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/include/liblas/detail/sha1.hpp 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,625 @@
+// $Id$
+//
+// sha1.h
+//
+// Copyright (C) 1998
+// Paul E. Jones
+// All Rights Reserved.
+//
+// This software is licensed as "freeware." Permission to distribute
+// this software in source and binary forms is hereby granted without
+// a fee. THIS SOFTWARE IS PROVIDED 'AS IS' AND WITHOUT ANY EXPRESSED
+// OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+// THE AUTHOR SHALL NOT BE HELD LIABLE FOR ANY DAMAGES RESULTING
+// FROM THE USE OF THIS SOFTWARE, EITHER DIRECTLY OR INDIRECTLY, INCLUDING,
+// BUT NOT LIMITED TO, LOSS OF DATA OR DATA BEING RENDERED INACCURATE.
+//
+//////////////////////////////////////////////////////////////////////////////
+// ###Id: sha1.h,v 1.6 2004/03/27 18:02:26 paulej Exp ###
+// Modified March 7, 2007 - Andy Tompkins - change to a header only library
+//////////////////////////////////////////////////////////////////////////////
+//
+// Description:
+// This class implements the Secure Hashing Standard as defined
+// in FIPS PUB 180-1 published April 17, 1995.
+//
+// Many of the variable names in this class, especially the single
+// character names, were used because those were the names used
+// in the publication.
+//
+// The Secure Hashing Standard, which uses the Secure Hashing
+// Algorithm (SHA), produces a 160-bit message digest for a
+// given data stream. In theory, it is highly improbable that
+// two messages will produce the same message digest. Therefore,
+// this algorithm can serve as a means of providing a "fingerprint"
+// for a message.
+//
+// Portability Issues:
+// SHA-1 is defined in terms of 32-bit "words". This code was
+// written with the expectation that the processor has at least
+// a 32-bit machine word size. If the machine word size is larger,
+// the code should still function properly. One caveat to that
+// is that the input functions taking characters and character arrays
+// assume that only 8 bits of information are stored in each character.
+//
+// Caveats:
+// SHA-1 is designed to work with messages less than 2^64 bits long.
+// Although SHA-1 allows a message digest to be generated for
+// messages of any number of bits less than 2^64, this implementation
+// only works with messages with a length that is a multiple of 8
+// bits.
+//
+#ifndef LIBLAS_SHA1_HPP_INCLUDED
+#define LIBLAS_SHA1_HPP_INCLUDED
+
+namespace liblas { namespace detail {
+
+class SHA1
+{
+public:
+ /*
+ * SHA1
+ *
+ * Description:
+ * This is the constructor for the sha1 class.
+ *
+ * Parameters:
+ * None.
+ *
+ * Returns:
+ * Nothing.
+ *
+ * Comments:
+ *
+ */
+ SHA1()
+ {
+ Reset();
+ }
+
+ /*
+ * ~SHA1
+ *
+ * Description:
+ * This is the destructor for the sha1 class
+ *
+ * Parameters:
+ * None.
+ *
+ * Returns:
+ * Nothing.
+ *
+ * Comments:
+ *
+ */
+ ~SHA1()
+ {
+ // The destructor does nothing
+ }
+
+ /*
+ * Reset
+ *
+ * Description:
+ * This function will initialize the sha1 class member variables
+ * in preparation for computing a new message digest.
+ *
+ * Parameters:
+ * None.
+ *
+ * Returns:
+ * Nothing.
+ *
+ * Comments:
+ *
+ */
+ void Reset()
+ {
+ Length_Low = 0;
+ Length_High = 0;
+ Message_Block_Index = 0;
+
+ H[0] = 0x67452301;
+ H[1] = 0xEFCDAB89;
+ H[2] = 0x98BADCFE;
+ H[3] = 0x10325476;
+ H[4] = 0xC3D2E1F0;
+
+ Computed = false;
+ Corrupted = false;
+ }
+
+ /*
+ * Result
+ *
+ * Description:
+ * This function will return the 160-bit message digest into the
+ * array provided.
+ *
+ * Parameters:
+ * message_digest_array: [out]
+ * This is an array of five unsigned integers which will be filled
+ * with the message digest that has been computed.
+ *
+ * Returns:
+ * True if successful, false if it failed.
+ *
+ * Comments:
+ *
+ */
+ bool Result(unsigned *message_digest_array)
+ {
+ int i; // Counter
+
+ if (Corrupted)
+ {
+ return false;
+ }
+
+ if (!Computed)
+ {
+ PadMessage();
+ Computed = true;
+ }
+
+ for(i = 0; i < 5; i++)
+ {
+ message_digest_array[i] = H[i];
+ }
+
+ return true;
+ }
+
+ /*
+ * Input
+ *
+ * Description:
+ * This function accepts an array of octets as the next portion of
+ * the message.
+ *
+ * Parameters:
+ * message_array: [in]
+ * An array of characters representing the next portion of the
+ * message.
+ *
+ * Returns:
+ * Nothing.
+ *
+ * Comments:
+ *
+ */
+ void Input( const unsigned char *message_array,
+ unsigned length)
+ {
+ if (!length)
+ {
+ return;
+ }
+
+ if (Computed || Corrupted)
+ {
+ Corrupted = true;
+ return;
+ }
+
+ while(length-- && !Corrupted)
+ {
+ Message_Block[Message_Block_Index++] = (*message_array & 0xFF);
+
+ Length_Low += 8;
+ Length_Low &= 0xFFFFFFFF; // Force it to 32 bits
+ if (Length_Low == 0)
+ {
+ Length_High++;
+ Length_High &= 0xFFFFFFFF; // Force it to 32 bits
+ if (Length_High == 0)
+ {
+ Corrupted = true; // Message is too long
+ }
+ }
+
+ if (Message_Block_Index == 64)
+ {
+ ProcessMessageBlock();
+ }
+
+ message_array++;
+ }
+ }
+
+ /*
+ * Input
+ *
+ * Description:
+ * This function accepts an array of octets as the next portion of
+ * the message.
+ *
+ * Parameters:
+ * message_array: [in]
+ * An array of characters representing the next portion of the
+ * message.
+ * length: [in]
+ * The length of the message_array
+ *
+ * Returns:
+ * Nothing.
+ *
+ * Comments:
+ *
+ */
+ void Input( const char *message_array,
+ unsigned length)
+ {
+ Input((unsigned char *) message_array, length);
+ }
+
+ /*
+ * Input
+ *
+ * Description:
+ * This function accepts a single octets as the next message element.
+ *
+ * Parameters:
+ * message_element: [in]
+ * The next octet in the message.
+ *
+ * Returns:
+ * Nothing.
+ *
+ * Comments:
+ *
+ */
+ void Input(unsigned char message_element)
+ {
+ Input(&message_element, 1);
+ }
+
+ /*
+ * Input
+ *
+ * Description:
+ * This function accepts a single octet as the next message element.
+ *
+ * Parameters:
+ * message_element: [in]
+ * The next octet in the message.
+ *
+ * Returns:
+ * Nothing.
+ *
+ * Comments:
+ *
+ */
+ void Input(char message_element)
+ {
+ Input((unsigned char *) &message_element, 1);
+ }
+
+ /*
+ * operator<<
+ *
+ * Description:
+ * This operator makes it convenient to provide character strings to
+ * the SHA1 object for processing.
+ *
+ * Parameters:
+ * message_array: [in]
+ * The character array to take as input.
+ *
+ * Returns:
+ * A reference to the SHA1 object.
+ *
+ * Comments:
+ * Each character is assumed to hold 8 bits of information.
+ *
+ */
+ SHA1& operator<<(const char *message_array)
+ {
+ const char *p = message_array;
+
+ while(*p)
+ {
+ Input(*p);
+ p++;
+ }
+
+ return *this;
+ }
+
+ /*
+ * operator<<
+ *
+ * Description:
+ * This operator makes it convenient to provide character strings to
+ * the SHA1 object for processing.
+ *
+ * Parameters:
+ * message_array: [in]
+ * The character array to take as input.
+ *
+ * Returns:
+ * A reference to the SHA1 object.
+ *
+ * Comments:
+ * Each character is assumed to hold 8 bits of information.
+ *
+ */
+ SHA1& operator<<(const unsigned char *message_array)
+ {
+ const unsigned char *p = message_array;
+
+ while(*p)
+ {
+ Input(*p);
+ p++;
+ }
+
+ return *this;
+ }
+
+ /*
+ * operator<<
+ *
+ * Description:
+ * This function provides the next octet in the message.
+ *
+ * Parameters:
+ * message_element: [in]
+ * The next octet in the message
+ *
+ * Returns:
+ * A reference to the SHA1 object.
+ *
+ * Comments:
+ * The character is assumed to hold 8 bits of information.
+ *
+ */
+ SHA1& operator<<(const char message_element)
+ {
+ Input((unsigned char *) &message_element, 1);
+
+ return *this;
+ }
+
+ /*
+ * operator<<
+ *
+ * Description:
+ * This function provides the next octet in the message.
+ *
+ * Parameters:
+ * message_element: [in]
+ * The next octet in the message
+ *
+ * Returns:
+ * A reference to the SHA1 object.
+ *
+ * Comments:
+ * The character is assumed to hold 8 bits of information.
+ *
+ */
+ SHA1& operator<<(const unsigned char message_element)
+ {
+ Input(&message_element, 1);
+
+ return *this;
+ }
+
+private:
+ /*
+ * ProcessMessageBlock
+ *
+ * Description:
+ * This function will process the next 512 bits of the message
+ * stored in the Message_Block array.
+ *
+ * Parameters:
+ * None.
+ *
+ * Returns:
+ * Nothing.
+ *
+ * Comments:
+ * Many of the variable names in this function, especially the single
+ * character names, were used because those were the names used
+ * in the publication.
+ *
+ */
+ void ProcessMessageBlock()
+ {
+ const unsigned K[] = { // Constants defined for SHA-1
+ 0x5A827999,
+ 0x6ED9EBA1,
+ 0x8F1BBCDC,
+ 0xCA62C1D6
+ };
+ int t; // Loop counter
+ unsigned temp; // Temporary word value
+ unsigned W[80]; // Word sequence
+ unsigned A, B, C, D, E; // Word buffers
+
+ /*
+ * Initialize the first 16 words in the array W
+ */
+ for(t = 0; t < 16; t++)
+ {
+ W[t] = ((unsigned) Message_Block[t * 4]) << 24;
+ W[t] |= ((unsigned) Message_Block[t * 4 + 1]) << 16;
+ W[t] |= ((unsigned) Message_Block[t * 4 + 2]) << 8;
+ W[t] |= ((unsigned) Message_Block[t * 4 + 3]);
+ }
+
+ for(t = 16; t < 80; t++)
+ {
+ W[t] = CircularShift(1,W[t-3] ^ W[t-8] ^ W[t-14] ^ W[t-16]);
+ }
+
+ A = H[0];
+ B = H[1];
+ C = H[2];
+ D = H[3];
+ E = H[4];
+
+ for(t = 0; t < 20; t++)
+ {
+ temp = CircularShift(5,A) + ((B & C) | ((~B) & D)) + E + W[t] + K[0];
+ temp &= 0xFFFFFFFF;
+ E = D;
+ D = C;
+ C = CircularShift(30,B);
+ B = A;
+ A = temp;
+ }
+
+ for(t = 20; t < 40; t++)
+ {
+ temp = CircularShift(5,A) + (B ^ C ^ D) + E + W[t] + K[1];
+ temp &= 0xFFFFFFFF;
+ E = D;
+ D = C;
+ C = CircularShift(30,B);
+ B = A;
+ A = temp;
+ }
+
+ for(t = 40; t < 60; t++)
+ {
+ temp = CircularShift(5,A) +
+ ((B & C) | (B & D) | (C & D)) + E + W[t] + K[2];
+ temp &= 0xFFFFFFFF;
+ E = D;
+ D = C;
+ C = CircularShift(30,B);
+ B = A;
+ A = temp;
+ }
+
+ for(t = 60; t < 80; t++)
+ {
+ temp = CircularShift(5,A) + (B ^ C ^ D) + E + W[t] + K[3];
+ temp &= 0xFFFFFFFF;
+ E = D;
+ D = C;
+ C = CircularShift(30,B);
+ B = A;
+ A = temp;
+ }
+
+ H[0] = (H[0] + A) & 0xFFFFFFFF;
+ H[1] = (H[1] + B) & 0xFFFFFFFF;
+ H[2] = (H[2] + C) & 0xFFFFFFFF;
+ H[3] = (H[3] + D) & 0xFFFFFFFF;
+ H[4] = (H[4] + E) & 0xFFFFFFFF;
+
+ Message_Block_Index = 0;
+ }
+
+ /*
+ * PadMessage
+ *
+ * Description:
+ * According to the standard, the message must be padded to an even
+ * 512 bits. The first padding bit must be a '1'. The last 64 bits
+ * represent the length of the original message. All bits in between
+ * should be 0. This function will pad the message according to those
+ * rules by filling the message_block array accordingly. It will also
+ * call ProcessMessageBlock() appropriately. When it returns, it
+ * can be assumed that the message digest has been computed.
+ *
+ * Parameters:
+ * None.
+ *
+ * Returns:
+ * Nothing.
+ *
+ * Comments:
+ *
+ */
+ void PadMessage()
+ {
+ /*
+ * Check to see if the current message block is too small to hold
+ * the initial padding bits and length. If so, we will pad the
+ * block, process it, and then continue padding into a second block.
+ */
+ if (Message_Block_Index > 55)
+ {
+ Message_Block[Message_Block_Index++] = 0x80;
+ while(Message_Block_Index < 64)
+ {
+ Message_Block[Message_Block_Index++] = 0;
+ }
+
+ ProcessMessageBlock();
+
+ while(Message_Block_Index < 56)
+ {
+ Message_Block[Message_Block_Index++] = 0;
+ }
+ }
+ else
+ {
+ Message_Block[Message_Block_Index++] = 0x80;
+ while(Message_Block_Index < 56)
+ {
+ Message_Block[Message_Block_Index++] = 0;
+ }
+
+ }
+
+ /*
+ * Store the message length as the last 8 octets
+ */
+ Message_Block[56] = static_cast((Length_High >> 24) & 0xFF);
+ Message_Block[57] = static_cast((Length_High >> 16) & 0xFF);
+ Message_Block[58] = static_cast((Length_High >> 8) & 0xFF);
+ Message_Block[59] = static_cast((Length_High) & 0xFF);
+ Message_Block[60] = static_cast((Length_Low >> 24) & 0xFF);
+ Message_Block[61] = static_cast((Length_Low >> 16) & 0xFF);
+ Message_Block[62] = static_cast((Length_Low >> 8) & 0xFF);
+ Message_Block[63] = static_cast((Length_Low) & 0xFF);
+
+ ProcessMessageBlock();
+ }
+
+
+ /*
+ * CircularShift
+ *
+ * Description:
+ * This member function will perform a circular shifting operation.
+ *
+ * Parameters:
+ * bits: [in]
+ * The number of bits to shift (1-31)
+ * word: [in]
+ * The value to shift (assumes a 32-bit integer)
+ *
+ * Returns:
+ * The shifted value.
+ *
+ * Comments:
+ *
+ */
+ unsigned CircularShift(int bits, unsigned word)
+ {
+ return ((word << bits) & 0xFFFFFFFF) | ((word & 0xFFFFFFFF) >> (32-bits));
+ }
+
+private:
+ unsigned H[5]; // Message digest buffers
+
+ unsigned Length_Low; // Message length in bits
+ unsigned Length_High; // Message length in bits
+
+ unsigned char Message_Block[64]; // 512-bit message blocks
+ int Message_Block_Index; // Index into message block array
+
+ bool Computed; // Is the digest computed?
+ bool Corrupted; // Is the message digest corruped?
+};
+
+}} //namespace liblas::detail
+
+#endif // LIBLAS_SHA1_HPP_INCLUDED
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/include/liblas/detail/sharedptr.hpp work/libLAS-1.2.1/include/liblas/detail/sharedptr.hpp
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/include/liblas/detail/sharedptr.hpp 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/include/liblas/detail/sharedptr.hpp 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,132 @@
+/******************************************************************************
+ * $Id$
+ *
+ * Project: libLAS - http://liblas.org - A BSD library for LAS format data.
+ * Purpose: Shared pointer implementation for C++ libLAS
+ * Author: Mateusz Loskot, mateusz@loskot.net
+ *
+ ******************************************************************************
+ * The SharedPtr class is based on implementation of CountedPtr
+ * from the book "The C++ Standard Library - A Tutorial and Reference"
+ *
+ * (C) Copyright Nicolai M. Josuttis 1999
+ * (C) Copyright Mateusz Loskot 2008, mateusz@loskot.net (modifications)
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following
+ * conditions are met:
+ *
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided
+ * with the distribution.
+ * * Neither the name of the Martin Isenburg or Iowa Department
+ * of Natural Resources nor the names of its contributors may be
+ * used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+ * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+ * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
+ * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
+ * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
+ * OF SUCH DAMAGE.
+ ****************************************************************************/
+
+#ifndef LIBLAS_DETAIL_SHAREDPTR_HPP_INCLUDED
+#define LIBLAS_DETAIL_SHAREDPTR_HPP_INCLUDED
+#include
+
+namespace liblas { namespace detail {
+
+template
+class SharedPtr
+{
+public:
+
+ // Initialize pointer with existing pointer, where pointer p
+ // is required to be a return value of new operator
+ // TODO: Relax the "0 != p requirement"
+ // m_count(new long(p ? 1 : 0))
+ explicit SharedPtr(T* p = 0)
+ : m_ptr(p), m_count(new long(1))
+ {}
+
+ // Copy pointer (one more owner)
+ SharedPtr(SharedPtr const& other) throw()
+ : m_ptr(other.m_ptr), m_count(other.m_count)
+ {
+ ++*m_count;
+ }
+
+ // Destructor (delete value if this was the last owner)
+ ~SharedPtr() throw()
+ {
+ dispose();
+ }
+
+ // Assignment operator (unshare old and share new value)
+ SharedPtr& operator=(SharedPtr const& rhs) throw()
+ {
+ if (&rhs != this)
+ {
+ dispose();
+ m_ptr = rhs.m_ptr;
+ m_count = rhs.m_count;
+ ++*m_count;
+ }
+ return *this;
+ }
+
+ T& operator*() const throw()
+ {
+ assert(0 != m_ptr);
+ return *m_ptr;
+ }
+
+ T* operator->() const throw()
+ {
+ assert(0 != m_ptr);
+ return m_ptr;
+ }
+
+ T* get() const
+ {
+ return m_ptr;
+ }
+
+ long use_count() const
+ {
+ return (*m_count);
+ }
+
+private:
+
+ T* m_ptr;
+ long* m_count; // shared number of owners
+
+ void dispose()
+ {
+
+ if (--*m_count == 0)
+ {
+ delete m_count;
+ delete m_ptr;
+ }
+ }
+
+};
+
+}} // namespace liblas::detail
+
+#endif // LIBLAS_DETAIL_SHAREDPTR_HPP_INCLUDED
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/include/liblas/detail/timer.hpp work/libLAS-1.2.1/include/liblas/detail/timer.hpp
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/include/liblas/detail/timer.hpp 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/include/liblas/detail/timer.hpp 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,102 @@
+/******************************************************************************
+ * $Id$
+ *
+ * Project: libLAS - http://liblas.org - A BSD library for LAS format data.
+ * Purpose: A simple timing class for performance tuning
+ * Author: Mateusz Loskot, mateusz@loskot.net
+ *
+ ******************************************************************************
+ * Copyright (c) 2008, Mateusz Loskot
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following
+ * conditions are met:
+ *
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided
+ * with the distribution.
+ * * Neither the name of the Martin Isenburg or Iowa Department
+ * of Natural Resources nor the names of its contributors may be
+ * used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+ * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+ * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
+ * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
+ * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
+ * OF SUCH DAMAGE.
+ ****************************************************************************/
+
+#ifndef LIBLAS_DETAIL_TIMER_HPP_INCLUDED
+#define LIBLAS_DETAIL_TIMER_HPP_INCLUDED
+
+#ifdef WIN32
+#include
+#else
+#include // gettimeofday
+#endif
+
+namespace liblas { namespace detail {
+
+class Timer
+{
+public:
+
+ Timer()
+ {
+#ifdef WIN32
+ LARGE_INTEGER rfreq = { 0 };
+ QueryPerformanceFrequency(&rfreq);
+ m_freq = rfreq.LowPart / double(1000);
+#endif
+ }
+
+ void start()
+ {
+#ifdef WIN32
+ QueryPerformanceCounter(&m_start);
+#else
+ gettimeofday(&m_start, 0);
+#endif
+ }
+
+ double stop()
+ {
+#ifdef WIN32
+ QueryPerformanceCounter(&m_stop);
+ return (m_stop.LowPart - m_start.LowPart) / m_freq;
+#else
+ gettimeofday(&m_stop, 0);
+ return (m_stop.tv_sec - m_start.tv_sec) * double(1000)
+ + (m_stop.tv_usec - m_start.tv_usec) / double(1000);
+#endif
+ }
+
+private:
+
+#ifdef WIN32
+ double m_freq;
+ LARGE_INTEGER m_start;
+ LARGE_INTEGER m_stop;
+#else
+ timeval m_start;
+ timeval m_stop;
+#endif
+
+};
+
+}} // namespace liblas::detail
+
+#endif // LIBLAS_DETAIL_TIMER_HPP_INCLUDED
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/include/liblas/detail/utility.hpp work/libLAS-1.2.1/include/liblas/detail/utility.hpp
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/include/liblas/detail/utility.hpp 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/include/liblas/detail/utility.hpp 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,490 @@
+/******************************************************************************
+ * $Id$
+ *
+ * Project: libLAS - http://liblas.org - A BSD library for LAS format data.
+ * Purpose: A grab bucket 'o fun for C++ libLAS
+ * Author: Mateusz Loskot, mateusz@loskot.net
+ *
+ ******************************************************************************
+ * Copyright (c) 2008, Mateusz Loskot
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following
+ * conditions are met:
+ *
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided
+ * with the distribution.
+ * * Neither the name of the Martin Isenburg or Iowa Department
+ * of Natural Resources nor the names of its contributors may be
+ * used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+ * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+ * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
+ * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
+ * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
+ * OF SUCH DAMAGE.
+ ****************************************************************************/
+
+#ifndef LIBLAS_DETAIL_UTILITY_HPP_INCLUDED
+#define LIBLAS_DETAIL_UTILITY_HPP_INCLUDED
+
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+
+//
+// Private macros definition
+//
+
+#ifndef UNREFERENCED_PARAMETER
+#define UNREFERENCED_PARAMETER(param) ((void)param)
+#endif
+
+//
+// Private utilities for internal use in libLAS
+//
+
+namespace liblas { namespace detail {
+
+/// Simple RAII wrapper.
+/// It's dedicated to use with types associated with custom deleter,
+/// opaque pointers and C API objects.
+template
+class raii_wrapper
+{
+ typedef void(*deleter_type)(T* p);
+
+public:
+
+ raii_wrapper(T* p, deleter_type d)
+ : p_(p), del_(d)
+ {
+ assert(0 != p_);
+ assert(0 != del_);
+ }
+
+ // FIXME: ooh, this is really, really bad. - hobu
+ raii_wrapper& operator=(raii_wrapper const& rhs)
+ {
+ if (&rhs != this)
+ {
+ p_ = rhs.p_;
+ del_ = rhs.del_;
+ }
+ return *this;
+ }
+
+
+ ~raii_wrapper()
+ {
+ do_delete(p_);
+ }
+
+ void reset(T* p)
+ {
+ do_delete(p_);
+ p_= p;
+ }
+
+ T* get() const
+ {
+ return p_;
+ }
+
+ void swap(raii_wrapper& other)
+ {
+ std::swap(p_, other.p_);
+ }
+
+
+private:
+
+ raii_wrapper(raii_wrapper const& other);
+ // raii_wrapper& operator=(raii_wrapper const& rhs);
+
+ void do_delete(T* p)
+ {
+ assert(del_);
+ if (0 != p)
+ del_(p);
+ }
+
+ T* p_;
+ deleter_type del_;
+};
+
+
+/// Definition of variable-length record header.
+struct VLRHeader
+{
+ uint16_t reserved;
+ char userId[16];
+ uint16_t recordId;
+ uint16_t recordLengthAfterHeader;
+ char description[32];
+};
+
+struct GeoKeysHeader
+{
+ uint16_t keyDirectoryVersion;
+ uint16_t keyRevision;
+ uint16_t minorRevision;
+ uint16_t numberOfKeys;
+};
+
+struct GeoKeyEntry
+{
+ uint16_t keyId;
+ uint16_t tiffTagLocation;
+ uint16_t count;
+ uint16_t valueOffset;
+};
+
+class VariableLengthRecord
+{
+ VariableLengthRecord()
+ : reserved(0), record_id(0), record_length_after_header(0)
+ {
+ std::memset(user_id, 0, eUserIdSize);
+ std::memset(description, 0, eDescriptionSize);
+ }
+
+ enum
+ {
+ eUserIdSize = 16,
+ eDescriptionSize = 32
+ };
+
+ uint16_t reserved;
+ int8_t user_id[eUserIdSize];
+ uint16_t record_id;
+ uint16_t record_length_after_header;
+ int8_t description[eDescriptionSize];
+ uint8_t data;
+};
+
+struct PointRecord
+{
+ PointRecord() :
+ x(0), y(0), z(0),
+ intensity(0),
+ flags(0),
+ classification(0),
+ scan_angle_rank(0),
+ user_data(0),
+ point_source_id(0)
+ {}
+
+ int32_t x;
+ int32_t y;
+ int32_t z;
+ uint16_t intensity;
+ uint8_t flags; // TODO: Replace with portable std::bitset<8>
+ uint8_t classification;
+ int8_t scan_angle_rank;
+ uint8_t user_data; // 1.0: File Marker / 1.1: User Data
+ uint16_t point_source_id; // 1.0: User Bit field / 1.1: Point Source ID
+};
+
+template
+bool compare_distance(const T& actual, const T& expected);
+
+template
+struct Point
+{
+ Point()
+ : x(T()), y(T()), z(T())
+ {}
+
+ Point(T const& x, T const& y, T const& z)
+ : x(x), y(y), z(z)
+ {}
+
+ bool equal(Point const& other) const
+ {
+ return (compare_distance(x, other.x)
+ && compare_distance(y, other.y)
+ && compare_distance(z, other.z));
+ }
+
+ T x;
+ T y;
+ T z;
+};
+
+template
+bool operator==(Point const& lhs, Point const& rhs)
+{
+ return lhs.equal(rhs);
+}
+
+template
+bool operator!=(Point const& lhs, Point const& rhs)
+{
+ return (!lhs.equal(rhs));
+}
+
+template
+struct Extents
+{
+ Extents() {}
+ Extents(detail::Point const& min, detail::Point const& max)
+ : min(min), max(max)
+ {}
+
+ bool equal(Extents const& other) const
+ {
+ return (min == other.min && max == other.max);
+ }
+
+ typename detail::Point min;
+ typename detail::Point max;
+};
+
+template
+bool operator==(Extents const& lhs, Extents const& rhs)
+{
+ return lhs.equal(rhs);
+}
+
+template
+bool operator!=(Extents const& lhs, Extents const& rhs)
+{
+ return (!lhs.equal(rhs));
+}
+
+template
+inline T generate_random_byte()
+{
+ // Requires pseudo-random numbers generator to be initialized
+ // in create_random_based() function - a poor man solution.
+ T const rmin = std::numeric_limits::min();
+ T const rmax = std::numeric_limits::max();
+ unsigned int const rnd = std::rand() % rmax + rmin;
+
+ assert(rnd <= 255);
+ return static_cast(rnd);
+}
+
+template
+bool compare_distance(const T& actual, const T& expected)
+{
+ const T epsilon = std::numeric_limits::epsilon();
+ const T diff = actual - expected;
+
+ if ( !((diff <= epsilon) && (diff >= -epsilon )) )
+ {
+ return false;
+ }
+
+ return true;
+}
+
+template
+inline char* as_buffer(T& data)
+{
+ return static_cast(static_cast(&data));
+}
+
+template
+inline char* as_buffer(T* data)
+{
+ return static_cast(static_cast(data));
+}
+
+template
+inline char const* as_bytes(T const& data)
+{
+ return static_cast(static_cast(&data));
+}
+
+template
+inline char const* as_bytes(T const* data)
+{
+ return static_cast(static_cast(data));
+}
+
+template
+inline void check_stream_state(std::basic_ios& srtm)
+{
+ // NOTE: Detailed stream check disabled in optimized
+ // builds to increase performance.
+#if defined(DEBUG) || defined(_DEBUG)
+ // Test stream state bits
+ if (srtm.eof())
+ throw std::out_of_range("end of file encountered");
+ else if (srtm.fail())
+ throw std::runtime_error("non-fatal I/O error occured");
+ else if (srtm.bad())
+ throw std::runtime_error("fatal I/O error occured");
+#else
+ UNREFERENCED_PARAMETER(srtm);
+#endif
+}
+
+#ifdef _MSC_VER
+# pragma warning(push)
+# pragma warning(disable: 4127) // conditional expression is constant.
+#endif
+
+template
+inline void read_n(T& dest, std::istream& src, std::streamsize const& num)
+{
+ // TODO: Review and redesign errors handling logic if necessary
+ if (!src)
+ throw std::runtime_error("detail::liblas::read_n input stream is not readable");
+
+ src.read(detail::as_buffer(dest), num);
+
+ // Fix little-endian
+ LIBLAS_SWAP_BYTES_N(dest, num);
+
+ check_stream_state(src);
+}
+
+template <>
+inline void read_n(PointRecord& dest, std::istream& src, std::streamsize const& num)
+{
+ // TODO: Review and redesign errors handling logic if necessary
+ if (!src)
+ throw std::runtime_error("detail::liblas::read_n input stream is not readable");
+
+ src.read(detail::as_buffer(dest), num);
+ check_stream_state(src);
+
+ // Fix little-endian
+ LIBLAS_SWAP_BYTES(dest.x);
+ LIBLAS_SWAP_BYTES(dest.y);
+ LIBLAS_SWAP_BYTES(dest.z);
+ LIBLAS_SWAP_BYTES(dest.intensity);
+ LIBLAS_SWAP_BYTES(dest.flags);
+ LIBLAS_SWAP_BYTES(dest.classification);
+ LIBLAS_SWAP_BYTES(dest.scan_angle_rank);
+ LIBLAS_SWAP_BYTES(dest.user_data);
+ LIBLAS_SWAP_BYTES(dest.point_source_id);
+}
+
+template <>
+inline void read_n(VLRHeader& dest, std::istream& src, std::streamsize const& num)
+{
+ // TODO: Review and redesign errors handling logic if necessary
+ if (!src)
+ throw std::runtime_error("detail::liblas::read_n input stream is not readable");
+
+ src.read(detail::as_buffer(dest), num);
+ check_stream_state(src);
+
+ // Fix little-endian
+ LIBLAS_SWAP_BYTES(dest.reserved);
+ LIBLAS_SWAP_BYTES(dest.recordId);
+ LIBLAS_SWAP_BYTES(dest.recordLengthAfterHeader);
+}
+
+template <>
+inline void read_n(std::string& dest, std::istream& src, std::streamsize const& num)
+{
+ assert(dest.max_size() >= static_cast(num));
+
+ // TODO: Review and redesign errors handling logic if necessary
+ if (!src)
+ throw std::runtime_error("detail::liblas::read_n input stream is not readable");
+
+ // Read bytes into temporary buffer then assign as string
+ char* buf = new char[num];
+ src.read(buf, num);
+ dest.assign(buf, num);
+ delete [] buf;
+
+ assert(dest.size() == static_cast(num));
+ check_stream_state(src);
+}
+
+template
+inline void write_n(std::ostream& dest, T const& src, std::streamsize const& num)
+{
+ if (!dest)
+ throw std::runtime_error("detail::liblas::write_n: output stream is not writable");
+
+ // Fix little-endian
+ T& tmp = const_cast(src);
+ LIBLAS_SWAP_BYTES_N(tmp, num);
+
+ dest.write(detail::as_bytes(tmp), num);
+ check_stream_state(dest);
+}
+
+template <>
+inline void write_n(std::ostream& dest, PointRecord const& src, std::streamsize const& num)
+{
+ if (!dest)
+ throw std::runtime_error("detail::liblas::write_n: output stream is not writable");
+
+ // Fix little-endian
+ PointRecord& tmp = const_cast(src);
+ LIBLAS_SWAP_BYTES(tmp.x);
+ LIBLAS_SWAP_BYTES(tmp.y);
+ LIBLAS_SWAP_BYTES(tmp.z);
+ LIBLAS_SWAP_BYTES(tmp.intensity);
+ LIBLAS_SWAP_BYTES(tmp.flags);
+ LIBLAS_SWAP_BYTES(tmp.classification);
+ LIBLAS_SWAP_BYTES(tmp.scan_angle_rank);
+ LIBLAS_SWAP_BYTES(tmp.user_data);
+ LIBLAS_SWAP_BYTES(tmp.point_source_id);
+
+ dest.write(detail::as_bytes(tmp), num);
+ check_stream_state(dest);
+}
+
+template <>
+inline void write_n(std::ostream& dest, VLRHeader const& src, std::streamsize const& num)
+{
+ if (!dest)
+ throw std::runtime_error("detail::liblas::write_n: output stream is not writable");
+
+ // Fix little-endian
+ VLRHeader& tmp = const_cast(src);
+ LIBLAS_SWAP_BYTES(tmp.reserved);
+ LIBLAS_SWAP_BYTES(tmp.recordId);
+ LIBLAS_SWAP_BYTES(tmp.recordLengthAfterHeader);
+
+ dest.write(detail::as_bytes(tmp), num);
+ check_stream_state(dest);
+}
+
+template <>
+inline void write_n(std::ostream& dest, std::string const& src, std::streamsize const& num)
+{
+ if (!dest)
+ throw std::runtime_error("detail::liblas::write_n: output stream is not writable");
+
+ dest.write(src.c_str(), num);
+ check_stream_state(dest);
+}
+
+#ifdef _MSC_VER
+# pragma warning(push)
+#endif
+
+}} // namespace liblas::detail
+
+#endif // LIBLAS_DETAIL_UTILITY_HPP_INCLUDED
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/include/liblas/detail/writer.hpp work/libLAS-1.2.1/include/liblas/detail/writer.hpp
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/include/liblas/detail/writer.hpp 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/include/liblas/detail/writer.hpp 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,106 @@
+/******************************************************************************
+ * $Id$
+ *
+ * Project: libLAS - http://liblas.org - A BSD library for LAS format data.
+ * Purpose: LAS writer implementation for C++ libLAS
+ * Author: Mateusz Loskot, mateusz@loskot.net
+ *
+ ******************************************************************************
+ * Copyright (c) 2008, Mateusz Loskot
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following
+ * conditions are met:
+ *
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided
+ * with the distribution.
+ * * Neither the name of the Martin Isenburg or Iowa Department
+ * of Natural Resources nor the names of its contributors may be
+ * used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+ * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+ * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
+ * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
+ * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
+ * OF SUCH DAMAGE.
+ ****************************************************************************/
+
+#ifndef LIBLAS_DETAIL_WRITER_HPP_INCLUDED
+#define LIBLAS_DETAIL_WRITER_HPP_INCLUDED
+
+#include
+#include
+#include
+
+#ifndef HAVE_GDAL
+ typedef struct OGRCoordinateTransformationHS *OGRCoordinateTransformationH;
+ typedef struct OGRSpatialReferenceHS *OGRSpatialReferenceH;
+#endif
+
+// std
+#include
+
+namespace liblas { namespace detail {
+
+class Writer
+{
+public:
+
+ Writer(std::ostream& ofs);
+ virtual ~Writer();
+ virtual std::size_t GetVersion() const = 0;
+ virtual void WriteHeader(LASHeader& header) = 0;
+ virtual void UpdateHeader(LASHeader const& header) = 0;
+ virtual void WritePointRecord(LASPoint const& point, const LASHeader& header) = 0;
+ std::ostream& GetStream() const;
+ uint32_t WriteVLR(LASHeader const& header);
+
+ void SetSRS(const LASSpatialReference& srs);
+
+protected:
+ PointRecord m_record;
+ std::ostream& m_ofs;
+
+ void FillPointRecord(PointRecord& record, const LASPoint& point, const LASHeader& header);
+
+ void Project(LASPoint& point);
+ LASSpatialReference m_out_srs;
+ LASSpatialReference m_in_srs;
+
+ OGRCoordinateTransformationH m_transform;
+ OGRSpatialReferenceH m_in_ref;
+ OGRSpatialReferenceH m_out_ref;
+
+private:
+
+ // Blocked copying operations, declared but not defined.
+ Writer(Writer const& other);
+ Writer& operator=(Writer const& rhs);
+
+};
+
+class WriterFactory
+{
+public:
+
+ static Writer* Create(std::ostream& ofs, LASHeader const& header);
+ static void Destroy(Writer* p);
+};
+
+}} // namespace liblas::detail
+
+#endif // LIBLAS_DETAIL_WRITER_HPP_INCLUDED
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/include/liblas/detail/writer10.hpp work/libLAS-1.2.1/include/liblas/detail/writer10.hpp
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/include/liblas/detail/writer10.hpp 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/include/liblas/detail/writer10.hpp 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,72 @@
+/******************************************************************************
+ * $Id$
+ *
+ * Project: libLAS - http://liblas.org - A BSD library for LAS format data.
+ * Purpose: LAS 1.0 writer implementation for C++ libLAS
+ * Author: Mateusz Loskot, mateusz@loskot.net
+ *
+ ******************************************************************************
+ * Copyright (c) 2008, Mateusz Loskot
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following
+ * conditions are met:
+ *
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided
+ * with the distribution.
+ * * Neither the name of the Martin Isenburg or Iowa Department
+ * of Natural Resources nor the names of its contributors may be
+ * used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+ * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+ * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
+ * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
+ * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
+ * OF SUCH DAMAGE.
+ ****************************************************************************/
+
+#ifndef LIBLAS_DETAIL_WRITER10_HPP_INCLUDED
+#define LIBLAS_DETAIL_WRITER10_HPP_INCLUDED
+
+#include
+#include
+#include
+// std
+#include
+
+namespace liblas { namespace detail { namespace v10 {
+
+class WriterImpl : public Writer
+{
+public:
+
+ typedef Writer Base;
+
+ WriterImpl(std::ostream& ofs);
+ std::size_t GetVersion() const;
+ void WriteHeader(LASHeader& header);
+ void UpdateHeader(LASHeader const& header);
+ void WritePointRecord(LASPoint const& record, const LASHeader& header);
+
+private:
+
+ liblas::uint32_t m_pointCount;
+};
+
+}}} // namespace liblas::detail::v10
+
+#endif // LIBLAS_DETAIL_WRITER10_HPP_INCLUDED
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/include/liblas/detail/writer11.hpp work/libLAS-1.2.1/include/liblas/detail/writer11.hpp
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/include/liblas/detail/writer11.hpp 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/include/liblas/detail/writer11.hpp 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,72 @@
+/******************************************************************************
+ * $Id$
+ *
+ * Project: libLAS - http://liblas.org - A BSD library for LAS format data.
+ * Purpose: LAS 1.1 writer implementation for C++ libLAS
+ * Author: Mateusz Loskot, mateusz@loskot.net
+ *
+ ******************************************************************************
+ * Copyright (c) 2008, Mateusz Loskot
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following
+ * conditions are met:
+ *
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided
+ * with the distribution.
+ * * Neither the name of the Martin Isenburg or Iowa Department
+ * of Natural Resources nor the names of its contributors may be
+ * used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+ * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+ * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
+ * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
+ * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
+ * OF SUCH DAMAGE.
+ ****************************************************************************/
+
+#ifndef LIBLAS_DETAIL_WRITER11_HPP_INCLUDED
+#define LIBLAS_DETAIL_WRITER11_HPP_INCLUDED
+
+#include
+#include
+#include
+// std
+#include
+
+namespace liblas { namespace detail { namespace v11 {
+
+class WriterImpl : public Writer
+{
+public:
+
+ typedef Writer Base;
+
+ WriterImpl(std::ostream& ofs);
+ std::size_t GetVersion() const;
+ void WriteHeader(LASHeader& header);
+ void UpdateHeader(LASHeader const& header);
+ void WritePointRecord(LASPoint const& record, const LASHeader& header);
+
+private:
+
+ liblas::uint32_t m_pointCount;
+};
+
+}}} // namespace liblas::detail::v11
+
+#endif // LIBLAS_DETAIL_WRITER11_HPP_INCLUDED
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/include/liblas/detail/writer12.hpp work/libLAS-1.2.1/include/liblas/detail/writer12.hpp
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/include/liblas/detail/writer12.hpp 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/include/liblas/detail/writer12.hpp 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,72 @@
+/******************************************************************************
+ * $Id$
+ *
+ * Project: libLAS - http://liblas.org - A BSD library for LAS format data.
+ * Purpose: LAS 1.2 writer implementation for C++ libLAS
+ * Author: Howard Butler, hobu.inc@gmail.com
+ *
+ ******************************************************************************
+ * Copyright (c) 2008, Howard Butler
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following
+ * conditions are met:
+ *
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided
+ * with the distribution.
+ * * Neither the name of the Martin Isenburg or Iowa Department
+ * of Natural Resources nor the names of its contributors may be
+ * used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+ * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+ * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
+ * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
+ * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
+ * OF SUCH DAMAGE.
+ ****************************************************************************/
+
+#ifndef LIBLAS_DETAIL_WRITER12_HPP_INCLUDED
+#define LIBLAS_DETAIL_WRITER12_HPP_INCLUDED
+
+#include
+#include
+#include
+// std
+#include
+
+namespace liblas { namespace detail { namespace v12 {
+
+class WriterImpl : public Writer
+{
+public:
+
+ typedef Writer Base;
+
+ WriterImpl(std::ostream& ofs);
+ std::size_t GetVersion() const;
+ void WriteHeader(LASHeader& header);
+ void UpdateHeader(LASHeader const& header);
+ void WritePointRecord(LASPoint const& record, LASHeader const& header);
+
+private:
+
+ liblas::uint32_t m_pointCount;
+};
+
+}}} // namespace liblas::detail::v12
+
+#endif // LIBLAS_DETAIL_WRITER12_HPP_INCLUDED
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/include/liblas/exception.hpp work/libLAS-1.2.1/include/liblas/exception.hpp
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/include/liblas/exception.hpp 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/include/liblas/exception.hpp 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,77 @@
+/******************************************************************************
+ * $Id$
+ *
+ * Project: libLAS - http://liblas.org - A BSD library for LAS format data.
+ * Purpose: Exception subclasses for C++ libLAS
+ * Author: Mateusz Loskot, mateusz@loskot.net
+ *
+ ******************************************************************************
+ * Copyright (c) 2008, Mateusz Loskot
+ * Copyright (c) 2008, Howard Butler
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following
+ * conditions are met:
+ *
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided
+ * with the distribution.
+ * * Neither the name of the Martin Isenburg or Iowa Department
+ * of Natural Resources nor the names of its contributors may be
+ * used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+ * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+ * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
+ * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
+ * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
+ * OF SUCH DAMAGE.
+ ****************************************************************************/
+
+#ifndef LIBLAS_EXCEPTION_HPP_INCLUDED
+#define LIBLAS_EXCEPTION_HPP_INCLUDED
+
+#include
+#include
+
+namespace liblas {
+
+/// Exception reporting invalid point data.
+/// It's usually thrown by LASPoint::Validate function.
+class invalid_point_data : public std::runtime_error
+{
+public:
+
+ invalid_point_data(std::string const& msg, unsigned int who)
+ : std::runtime_error(msg), m_who(who)
+ {}
+
+ /// Return flags identifying invalid point data members.
+ /// Flags are composed with composed with LASPoint::DataMemberFlag.
+ /// Testing flags example: bool timeValid = e.who() & LASPoint::eTime;
+ unsigned int who() const
+ {
+ return m_who;
+ }
+
+private:
+
+ unsigned int m_who;
+};
+
+} // namespace liblas
+
+#endif // LIBLAS_EXCEPTION_HPP_INCLUDED
+
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/include/liblas/guid.hpp work/libLAS-1.2.1/include/liblas/guid.hpp
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/include/liblas/guid.hpp 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/include/liblas/guid.hpp 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,593 @@
+/******************************************************************************
+ * $Id$
+ *
+ * Project: libLAS - http://liblas.org - A BSD library for LAS format data.
+ * Purpose: GUID implementation
+ * Author: Andy Tompkins (modified by Mateusz Loskot)
+ *
+ * This file has been stolen from the Boost Vault and
+ * modified for libLAS purposes. Here is the original code posted:
+ * http://lists.boost.org/boost-users/2007/04/27397.php
+ *
+ * (C) Copyright 2006 Andy Tompkins.
+ * (C) Copyright 2008 Mateusz Loskot, mateusz@loskot.net.
+ * Distributed under the Boost Software License, Version 1.0.
+ * (See accompanying file LICENSE_1_0.txt or copy at
+ * http://www.boost.org/LICENSE_1_0.txt)
+ *
+ * Revision History
+ * 06 Feb 2006 - Initial Revision
+ * 09 Nov 2006 - fixed variant and version bits for v4 guids
+ * 13 Nov 2006 - added serialization
+ * 17 Nov 2006 - added name-based guid creation
+ * 20 Nov 2006 - add fixes for gcc (from Tim Blechmann)
+ * 07 Mar 2007 - converted to header only
+ * 20 Jan 2008 - removed dependency of Boost and modified for libLAS (by Mateusz Loskot)
+ ******************************************************************************
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following
+ * conditions are met:
+ *
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided
+ * with the distribution.
+ * * Neither the name of the Martin Isenburg or Iowa Department
+ * of Natural Resources nor the names of its contributors may be
+ * used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+ * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+ * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
+ * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
+ * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
+ * OF SUCH DAMAGE.
+ ****************************************************************************/
+
+#ifndef LIBLAS_GUID_HPP_INCLUDED
+#define LIBLAS_GUID_HPP_INCLUDED
+
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+
+namespace liblas {
+
+/// Definition of Globally Unique Identifier type.
+/// The GUID is a 16-byte (128-bit) number.
+/// This class is used to represent value stored as Project Identifier
+/// in public header block (see LASHeader) of a LAS file.
+/// All files in a unique project should have the same value of
+/// the Project Identifier. It is used together with File Source ID to
+/// uniquely identify every LAS, globally.
+///
+/// \see About GUID in Wikipedia http://en.wikipedia.org/wiki/Globally_Unique_Identifier
+class guid
+{
+public:
+
+ /// Default constructor initializes GUID as null.
+ /// \exception nothrow
+ /// \post guid::is_null() == true.
+ guid() /* throw() */
+ {
+ std::fill(data_, data_ + static_size, 0);
+ }
+
+ /// Initializes from textual representation of valid GUID.
+ /// \param str - non-null pointer to string with GUID text.
+ /// \exception std::invalid_argument if construction failed.
+ /// \post guid::is_null() == false.
+ explicit guid(char const* const str)
+ {
+ if (0 == str)
+ throw_invalid_argument();
+ construct(std::string(str));
+ }
+
+ /// Initializes from textual representation of valid GUID.
+ /// \param str - string with GUID text.
+ /// \exception std::invalid_argument if construction failed.
+ /// \post guid::is_null() == false.
+ template
+ explicit guid(std::basic_string const& str)
+ {
+ construct(str);
+ }
+
+ /// Initializes from 4-fields structure.
+ /// \param d1 - field of first 32 bits of GUID number.
+ /// \param d2 - field of subsequent 16 bits of GUID number.
+ /// \param d3 - third field of 16 bits of GUID number.
+ /// \param d4 - last 64 bits of GUID number.
+ /// \exception std::invalid_argument if construction failed.
+ /// \post guid::is_null() == false.
+ guid(liblas::uint32_t const& d1, liblas::uint16_t const& d2, liblas::uint16_t const& d3, liblas::uint8_t const (&d4)[8])
+ {
+ construct(d1, d2, d3, d4);
+ }
+
+ /// Copy constructor.
+ /// \exception nothrow
+ guid(guid const& rhs) /* throw() */
+ {
+ std::copy(rhs.data_, rhs.data_ + static_size, data_);
+ }
+
+ /// Destructor.
+ /// \exception nothrow
+ ~guid() /* throw() */
+ {}
+
+ /// Assignment operator.
+ /// \exception nothrow
+ guid& operator=(guid const& rhs) /* throw() */
+ {
+ if (&rhs != this)
+ {
+ std::copy(rhs.data_, rhs.data_ + static_size, data_);
+ }
+ return *this;
+ }
+
+ /// Equality operator.
+ /// \exception nothrow
+ bool operator==(guid const& rhs) const /* throw() */
+ {
+ return std::equal(data_, data_ + static_size, rhs.data_);
+ }
+
+ /// Inequality operator.
+ /// \exception nothrow
+ bool operator!=(guid const& rhs) const /* throw() */
+ {
+ return (!(*this == rhs));
+ }
+
+ /// Less-than operator.
+ /// \param rhs - GUID object on the right-hand side of the comparison.
+ /// \return true if the GUID on the left-hand side is lexicographically less
+ /// than GUID on the right side; false otherwise.
+ /// \exception nothrow
+ bool operator<(guid const& rhs) const /* throw() */
+ {
+ return std::lexicographical_compare(data_, data_ + static_size, rhs.data_, rhs.data_ + static_size);
+ }
+
+ /// More-than operator.
+ /// \param rhs - GUID object on the right-hand side of the comparison.
+ /// \return true if the GUID on the left-hand side is not lexicographically less
+ /// than GUID on the right side; false otherwise.
+ /// \exception nothrow
+ bool operator>(guid const& rhs) const /* throw() */
+ {
+ return std::lexicographical_compare(rhs.data_, rhs.data_ + static_size, data_, data_ + static_size);
+ }
+
+ /// Less-than-or-equal-to operator.
+ /// \param rhs - GUID object on the right-hand side of the comparison.
+ /// \exception nothrow
+ bool operator<=(guid const& rhs) const /* throw() */
+ {
+ return (*this == rhs) || (*this < rhs);
+ }
+
+ /// More-than-or-equal-to operator.
+ /// \param rhs - GUID object on the right-hand side of the comparison.
+ /// \exception nothrow
+ bool operator>=(guid const& rhs) const /* throw() */
+ {
+ return (*this == rhs) || (*this > rhs);
+ }
+
+ /// Test if the GUID object is null GUID or not.
+ /// Null means GUID number value is Zero.
+ /// \return true if the GUID is null; false otherwise
+ /// \exception nothrow
+ bool is_null() const /* throw() */
+ {
+ return ((*this) == null());
+ }
+
+ /// Generate textual representation of the GUID number.
+ /// Specialization for std::string type.
+ /// \return string with textual representation of GUID
+ /// \exception std::runtime_error - thrown on GUID to string conversion failure
+ /// \post guid::to_string().empty() == false.
+ std::string to_string() const
+ {
+ return to_basic_string();
+ }
+
+ /// Generic generator of textual representation of the GUID number.
+ /// \exception std::runtime_error - thrown on GUID to string conversion failure
+ /// \post guid::to_basic_string().empty() == false.
+ template
+ std::basic_string to_basic_string() const
+ {
+ std::basic_string s;
+ std::basic_stringstream ss;
+ liblas::guid const& g = *this;
+ ss << g;
+ if (!ss || !(ss >> s))
+ {
+ throw std::runtime_error("failed to convert guid to string");
+ }
+
+ assert(!s.empty());
+ return s;
+ }
+
+ /// Size of the GUID number in bytes.
+ /// \return The number of bytes is constant for all GUID objects
+ /// and equal to 16 bytes (128-bit number).
+ size_t byte_count() const /* throw() */
+ {
+ return static_size;
+ }
+
+
+ /// Send bytes of GUID data to sequenec of bytes using given output iterator.
+ /// \exception nothrow
+ template
+ void output_bytes(ByteOutputIterator out) const
+ {
+ std::copy(data_, data_ + static_size, out);
+ }
+
+ /// Separate bytes of GUID data to distinct buffers.
+ /// \param d1 - buffer for first 32 bits of GUID number.
+ /// \param d2 - buffer for 16 bits of second chunk of GUID number.
+ /// \param d3 - buffer for 16 bits of third chunk of GUID number.
+ /// \param d4 - buffer for last 64 bits of GUID number.
+ /// \exception nothrow
+ void output_data(liblas::uint32_t& d1, liblas::uint16_t& d2, liblas::uint16_t& d3, liblas::uint8_t (&d4)[8]) const
+ {
+ d1 = d2 = d3 = 0;
+ std::size_t pos = 0;
+ int const charbit = std::numeric_limits::digits;
+
+ for (; pos < 4; ++pos)
+ {
+
+ d1 <<= charbit;
+ d1 |= static_cast(data_[pos]);
+ }
+
+ for (; pos < 6; ++pos)
+ {
+ d2 <<= charbit;
+ d2 |= static_cast(data_[pos]);
+ }
+
+ for (; pos < 8; ++pos)
+ {
+ d3 <<= charbit;
+ d3 |= static_cast(data_[pos]);
+ }
+
+ for (std::size_t j = 0; j < sizeof(d4); ++j)
+ {
+ d4[j] = data_[j + 8];
+ }
+ }
+
+ /// Null GUID number generator.
+ /// \return null-initialized instance of GUID number.
+ /// \exception nothrow
+ static guid const& null() /* throw() */
+ {
+ static const guid n;
+ return n;
+ }
+
+ /// Random GUID number generator.
+ /// \return random-initialized instance of GUID number.
+ /// \exception nothrow
+ static guid create()
+ {
+ return create_random_based();
+ }
+
+ /// Create GUID number based on calculation of SHA1 has for given name.
+ /// \exception std::runtime_error on GUID creation failure.
+ static guid create(guid const& namespace_guid, char const* name, int name_length)
+ {
+ return create_name_based(namespace_guid, name, name_length);
+ }
+
+ /// Return flag indicating if bracket text form of GUID on output is set.
+ /// \exception nothrow
+ static inline bool get_showbraces(std::ios_base & iosbase)
+ {
+ return (iosbase.iword(get_showbraces_index()) != 0);
+ }
+
+ /// Request to bracket text form of GUID on output.
+ /// \exception nothrow
+ static inline void set_showbraces(std::ios_base & iosbase, bool showbraces)
+ {
+ iosbase.iword(get_showbraces_index()) = showbraces;
+ }
+
+ /// Request to bracket text form of GUID on output.
+ /// \exception nothrow
+ static inline std::ios_base& showbraces(std::ios_base& iosbase)
+ {
+ set_showbraces(iosbase, true);
+ return iosbase;
+ }
+ static inline std::ios_base& noshowbraces(std::ios_base& iosbase)
+ {
+ set_showbraces(iosbase, false);
+ return iosbase;
+ }
+
+ /// Overloaded output stream operator for guid type.
+ friend std::ostream& operator<<(std::ostream& os, guid const& g);
+
+ /// Overloaded input stream operator for guid type.
+ friend std::istream& operator>>(std::istream& is, guid &g);
+
+private:
+
+ void throw_invalid_argument() const
+ {
+ throw std::invalid_argument("invalid guid string");
+ }
+
+ template
+ void construct(std::basic_string const& str)
+ {
+ std::basic_stringstream ss;
+ if (!(ss << str) || !(ss >> *this))
+ {
+ throw_invalid_argument();
+ }
+ }
+
+ void construct(liblas::uint32_t const& d1, liblas::uint16_t const& d2, liblas::uint16_t const& d3, liblas::uint8_t const (&d4)[8])
+ {
+ std::ostringstream ss;
+ ss.flags(std::ios::hex);
+ ss.fill('0');
+
+ ss.width(8);
+ ss << d1;
+ ss << '-';
+
+ ss.width(4);
+ ss << d2;
+ ss << '-';
+
+ ss.width(4);
+ ss << d3;
+ ss << '-';
+
+ for (std::size_t i = 0; i < sizeof(d4); ++i)
+ {
+ ss.width(2);
+ ss << static_cast(d4[i]);
+ if (1 == i)
+ ss << '-';
+ }
+
+ construct(ss.str());
+ }
+
+ //random number based
+ static guid create_random_based() // throw()
+ {
+ guid result;
+ static bool init_rand = true;
+ if (init_rand)
+ {
+ std::srand(static_cast(std::time(0)));
+ init_rand = false;
+ }
+
+ for (size_t i = 0; i < static_size; i++)
+ {
+ result.data_[i] = detail::generate_random_byte();
+ }
+
+ // set variant
+ // should be 0b10xxxxxx
+ result.data_[8] &= 0xBF;
+ result.data_[8] |= 0x80;
+
+ // set version
+ // should be 0b0100xxxx
+ result.data_[6] &= 0x4F; //0b01001111
+ result.data_[6] |= 0x40; //0b01000000
+
+ return result;
+ }
+
+ // name based
+ static guid create_name_based(guid const& namespace_guid, char const* name, int name_length)
+ {
+ using liblas::uint8_t;
+
+ detail::SHA1 sha1;
+ sha1.Input(namespace_guid.data_, namespace_guid.static_size);
+ sha1.Input(name, name_length);
+ unsigned int digest[5];
+
+ if (sha1.Result(digest) == false)
+ {
+ throw std::runtime_error("create error");
+ }
+
+ guid result;
+ for (int i = 0; i < 4; ++i)
+ {
+
+ result.data_[i*4+0] = static_cast((digest[i] >> 24) & 0xFF);
+ result.data_[i*4+1] = static_cast((digest[i] >> 16) & 0xFF);
+ result.data_[i*4+2] = static_cast((digest[i] >> 8) & 0xFF);
+ result.data_[i*4+3] = static_cast((digest[i] >> 0) & 0xFF);
+ }
+
+ // set variant
+ // should be 0b10xxxxxx
+ result.data_[8] &= 0xBF;
+ result.data_[8] |= 0x80;
+
+ // set version
+ // should be 0b0101xxxx
+ result.data_[6] &= 0x5F; //0b01011111
+ result.data_[6] |= 0x50; //0b01010000
+
+ return result;
+ }
+
+ static int get_showbraces_index()
+ {
+ static int index = std::ios_base::xalloc();
+ return index;
+ }
+
+private:
+
+ static const std::size_t static_size = 16;
+ liblas::uint8_t data_[static_size];
+};
+
+inline std::ostream& operator<<(std::ostream& os, guid const& g)
+{
+ using namespace std;
+
+ // TODO: If optional support of Boost is added,
+ // use Boost I/O State Savers for safe RAII.
+ std::ios_base::fmtflags flags_saver(os.flags());
+ std::streamsize width_saver(os.width());
+ std::ostream::char_type fill_saver(os.fill());
+
+ const std::ostream::sentry ok(os);
+ if (ok)
+ {
+ bool showbraces = guid::get_showbraces(os);
+ if (showbraces)
+ {
+ os << '{';
+ }
+ os << hex;
+ os.fill('0');
+ for (size_t i = 0; i < g.static_size; ++i)
+ {
+ os.width(2);
+ os << static_cast(g.data_[i]);
+ if (i == 3 || i == 5 || i == 7 || i == 9)
+ {
+ os << '-';
+ }
+ }
+ if (showbraces)
+ {
+ os << '}';
+ }
+ }
+
+ os.flags(flags_saver);
+ os.width(width_saver);
+ os.fill(fill_saver);
+
+ return os;
+}
+
+inline std::istream& operator>>(std::istream& is, guid &g)
+{
+ using namespace std;
+
+ typedef std::istream::char_type char_type;
+ guid temp_guid;
+ const std::istream::sentry ok(is);
+ if (ok)
+ {
+ char_type c;
+ c = static_cast(is.peek());
+ bool bHaveBraces = false;
+ if (c == '{')
+ {
+ bHaveBraces = true;
+ is >> c; // read brace
+ }
+
+ for (size_t i = 0; i < temp_guid.static_size && is; ++i)
+ {
+ std::stringstream ss;
+
+ // read 2 characters into stringstream
+ is >> c; ss << c;
+ is >> c; ss << c;
+
+ // extract 2 characters from stringstream as a hex number
+ unsigned int val = 0;
+ ss >> hex >> val;
+ if (!ss)
+ {
+ is.setstate(ios_base::failbit);
+ }
+
+ // check that val is within valid range
+ if (val > 255)
+ {
+ is.setstate(ios_base::badbit);
+ }
+
+ temp_guid.data_[i] = static_cast(val);
+
+ if (is)
+ {
+ if (i == 3 || i == 5 || i == 7 || i == 9)
+ {
+ is >> c;
+ if (c != '-')
+ is.setstate(ios_base::failbit);
+ }
+ }
+ }
+
+ if (bHaveBraces && is)
+ {
+ is >> c;
+ if (c != '}')
+ is.setstate(ios_base::failbit);
+ }
+
+ if (is)
+ {
+ g = temp_guid;
+ }
+ }
+
+ return is;
+}
+
+} //namespace liblas
+
+#endif // LIBLAS_GUID_HPP_INCLUDED
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/include/liblas/iterator.hpp work/libLAS-1.2.1/include/liblas/iterator.hpp
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/include/liblas/iterator.hpp 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/include/liblas/iterator.hpp 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,221 @@
+/******************************************************************************
+ * $Id$
+ *
+ * Project: libLAS - http://liblas.org - A BSD library for LAS format data.
+ * Purpose: Reader and writer iterator implementation
+ * Author: Mateusz Loskot, mateusz@loskot.net
+ *
+ ******************************************************************************
+ * Copyright (c) 2008, Mateusz Loskot
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following
+ * conditions are met:
+ *
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided
+ * with the distribution.
+ * * Neither the name of the Martin Isenburg or Iowa Department
+ * of Natural Resources nor the names of its contributors may be
+ * used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+ * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+ * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
+ * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
+ * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
+ * OF SUCH DAMAGE.
+ ****************************************************************************/
+
+#ifndef LIBLAS_ITERATOR_HPP_INCLUDED
+#define LIBLAS_ITERATOR_HPP_INCLUDED
+
+#include
+#include
+#include
+#include
+
+namespace liblas {
+
+/// Input iterator associated with liblas::LASReader.
+/// It allows to read LAS file records in similar way to elements of STL container,
+/// as well as apply STL algorithms that accept pair of input iterators.
+/// \sa About Input Iterator at http://www.sgi.com/tech/stl/InputIterator.html
+///
+template
+class reader_iterator
+{
+public:
+
+ typedef std::input_iterator_tag iterator_category;
+ typedef T value_type;
+ typedef T const* pointer;
+ typedef T const& reference;
+ typedef ptrdiff_t difference_type;
+
+ /// Initializes iterator pointing to pass-the-end.
+ reader_iterator()
+ : m_reader(0)
+ {}
+
+ /// Initializes iterator pointing to beginning of LAS file sequence.
+ /// No ownership transfer of reader object occurs.
+ reader_iterator(liblas::LASReader& reader)
+ : m_reader(&reader)
+ {
+ assert(0 != m_reader);
+ getval();
+ }
+
+ /// Dereference operator.
+ /// It is implemented in terms of LASReader::GetPoint function.
+ reference operator*() const
+ {
+ assert(0 != m_reader);
+ return m_reader->GetPoint();
+ }
+
+ /// Pointer-to-member operator.
+ /// It is implemented in terms of LASReader::GetPoint function.
+ pointer operator->() const
+ {
+ return &(operator*());
+ }
+
+ /// Pre-increment opertor.
+ /// Moves iterator to next record by calling LASReader::ReadNextPoint.
+ reader_iterator& operator++()
+ {
+ assert(0 != m_reader);
+ getval();
+ return (*this);
+ }
+
+ /// Post-increment opertor.
+ /// Moves iterator to next record by calling LASReader::ReadNextPoint.
+ reader_iterator operator++(int)
+ {
+ reader_iterator tmp(*this);
+ ++(*this);
+ return tmp;
+ }
+
+ /// Compare passed iterator to this.
+ /// Determine if both iterators apply to the same instance of LASReader class.
+ bool equal(reader_iterator const& rhs) const
+ {
+ return m_reader == rhs.m_reader;
+ }
+
+private:
+
+ void getval()
+ {
+ if (0 != m_reader && !(m_reader->ReadNextPoint()))
+ {
+ m_reader = 0;
+ }
+ }
+
+ liblas::LASReader* m_reader;
+};
+
+/// Equality operator implemented in terms of reader_iterator::equal
+template
+bool operator==(reader_iterator const& lhs, reader_iterator const& rhs)
+{
+ return lhs.equal(rhs);
+}
+
+/// Inequality operator implemented in terms of reader_iterator::equal
+template
+bool operator!=(reader_iterator const& lhs, reader_iterator const& rhs)
+{
+ return (!(lhs == rhs));
+}
+
+/// Output iterator associated with liblas::LASWriter.
+/// It allows to store a sequence of records into LAS file.
+/// \sa About Output Iterator at http://www.sgi.com/tech/stl/OutputIterator.html
+///
+template
+class writer_iterator
+{
+public:
+
+ typedef std::output_iterator_tag iterator_category;
+ typedef void value_type;
+ typedef void pointer;
+ typedef T const& reference;
+ typedef void difference_type;
+
+ /// Initialize iterator with given writer.
+ /// The writer position is not changed.
+ /// No ownership transfer of writer object occurs.
+ writer_iterator(liblas::LASWriter& writer)
+ : m_writer(&writer)
+ {
+ assert(0 != m_writer);
+ }
+
+ /// Dereference assignment operator.
+ /// Implemented in terms of LASWriter::WritePoint function.
+ writer_iterator& operator=(reference value)
+ {
+ assert(0 != m_writer);
+
+ bool const ret = m_writer->WritePoint(value);
+ assert(ret); // TODO: Low-level debugging
+
+ return (*this);
+ }
+
+ /// Dereference operator.
+ writer_iterator& operator*()
+ {
+ // pretend to return designated value
+ return (*this);
+ }
+
+ /// Pre-increment operator.
+ writer_iterator& operator++()
+ {
+ // pretend to preincrement
+ return (*this);
+ }
+
+ /// Post-increment operator.
+ writer_iterator operator++(int)
+ {
+ // pretend to postincrement
+ return (*this);
+ }
+
+private:
+
+ liblas::LASWriter* m_writer;
+};
+
+// Declare specializations for user's convenience
+
+/// Public specialization of LASReader input iterator for liblas::LASPoint type.
+typedef reader_iterator lasreader_iterator;
+
+/// Public specialization of LASWriter output iterator for liblas::LASPoint type.
+typedef writer_iterator laswriter_iterator;
+
+} // namespace liblas
+
+#endif // LIBLAS_ITERATOR_HPP_INCLUDED
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/include/liblas/lascolor.hpp work/libLAS-1.2.1/include/liblas/lascolor.hpp
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/include/liblas/lascolor.hpp 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/include/liblas/lascolor.hpp 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,165 @@
+/******************************************************************************
+ * $Id$
+ *
+ * Project: libLAS - http://liblas.org - A BSD library for LAS format data.
+ * Purpose: LAS color class
+ * Author: Howard Butler, hobu.inc@gmail.com
+ *
+ ******************************************************************************
+ * Copyright (c) 2008, Howard Butler
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following
+ * conditions are met:
+ *
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided
+ * with the distribution.
+ * * Neither the name of the Martin Isenburg or Iowa Department
+ * of Natural Resources nor the names of its contributors may be
+ * used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+ * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+ * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
+ * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
+ * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
+ * OF SUCH DAMAGE.
+ ****************************************************************************/
+
+#ifndef LIBLAS_LASCOLOR_HPP_INCLUDED
+#define LIBLAS_LASCOLOR_HPP_INCLUDED
+
+#include
+#include
+#include
+// std
+#include // std::out_of_range
+#include // std::size_t
+
+namespace liblas {
+
+/// RGB color container
+class LASColor
+{
+public:
+
+ /// Default constructor.
+ /// Initializes with black color using RGB {0, 0, 0}.
+ LASColor();
+
+ /// Copy constructor.
+ LASColor(LASColor const& other);
+
+ /// Assignment opreator.
+ LASColor& operator=(LASColor const& rhs);
+
+ /// Comparison operator.
+ bool operator==(const LASColor& other) const;
+
+ /// Fetch value of the red image channel
+ uint16_t GetRed() const;
+
+ /// Set value of the red image channel
+ void SetRed(uint16_t const& value);
+
+ /// Fetch value of the blue image channel
+ uint16_t GetBlue() const;
+
+ /// Set value of the blue image channel
+ void SetBlue(uint16_t const& value);
+
+ /// Fetch value of the green image channel
+ uint16_t GetGreen() const;
+
+ /// Set value of the red image channel
+ void SetGreen(uint16_t const& value);
+
+ /// Index operator providing access to RGB values.
+ /// Valid index values are 0, 1 or 2.
+ /// \exception std::out_of_range if requested index is out of range (> 2).
+ uint16_t& operator[](std::size_t const& n);
+
+ /// Const version of index operator providing access to RGB values.
+ /// Valid index values are 0, 1 or 2.
+ /// \exception std::out_of_range if requested index is out of range (> 2).
+ uint16_t const& operator[](std::size_t const& n) const;
+
+private:
+
+
+ uint16_t m_red;
+ uint16_t m_green;
+ uint16_t m_blue;
+
+ void throw_out_of_range() const
+ {
+ throw std::out_of_range("subscript out of range");
+ }
+};
+
+
+inline uint16_t LASColor::GetRed() const
+{
+ return m_red;
+}
+
+inline void LASColor::SetRed(uint16_t const& value)
+{
+ m_red = value;
+}
+
+inline uint16_t LASColor::GetBlue() const
+{
+ return m_blue;
+}
+
+inline void LASColor::SetBlue(uint16_t const& value)
+{
+ m_blue = value;
+}
+
+inline uint16_t LASColor::GetGreen() const
+{
+ return m_green;
+}
+
+inline void LASColor::SetGreen(uint16_t const& value)
+{
+ m_green = value;
+}
+
+inline uint16_t& LASColor::operator[](std::size_t const& n)
+{
+ if (n == 0) { return m_red; }
+ if (n == 1) { return m_green; }
+ if (n == 2) { return m_blue; }
+
+ throw_out_of_range();
+
+}
+
+inline uint16_t const& LASColor::operator[](std::size_t const& n) const
+{
+ if (n == 0) { return m_red; }
+ if (n == 1) { return m_green; }
+ if (n == 2) { return m_blue; }
+
+ throw_out_of_range();
+}
+
+} // namespace liblas
+
+#endif // LIBLAS_LASCOLOR_HPP_INCLUDED
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/include/liblas/laserror.hpp work/libLAS-1.2.1/include/liblas/laserror.hpp
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/include/liblas/laserror.hpp 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/include/liblas/laserror.hpp 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,89 @@
+/******************************************************************************
+ * $Id$
+ *
+ * Project: libLAS - http://liblas.org - A BSD library for LAS format data.
+ * Purpose: An error encapsulation class
+ * Author: Mateusz Loskot, mateusz@loskot.net
+ *
+ ******************************************************************************
+ * Copyright (c) 2008, Mateusz Loskot
+ * Copyright (c) 2008, Howard Butler
+ * Copyright (c) 2008, Phil Vachon
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following
+ * conditions are met:
+ *
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided
+ * with the distribution.
+ * * Neither the name of the Martin Isenburg or Iowa Department
+ * of Natural Resources nor the names of its contributors may be
+ * used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+ * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+ * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
+ * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
+ * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
+ * OF SUCH DAMAGE.
+ ****************************************************************************/
+
+#ifndef LIBLAS_LASERROR_HPP_INCLUDED
+#define LIBLAS_LASERROR_HPP_INCLUDED
+
+//std
+#include
+#include
+
+namespace liblas {
+
+/// Definition of error notification used on the level of C API.
+/// This class describes details of error condition occured in
+/// libLAS core. All errors are stacked by C API layer, so it's
+/// possible to track problem down to its source.
+class LASError
+{
+public:
+
+ /// Custom constructor.
+ /// This is the main and the only tool to initialize error instance.
+ LASError(int code, std::string const& message, std::string const& method);
+
+ /// Copy constructor.
+ /// Error objects are copyable.
+ LASError(LASError const& other);
+
+ /// Assignment operator.
+ /// Error objects are assignable.
+ LASError& operator=(LASError const& rhs);
+
+ // TODO - mloskot: What about replacing string return by copy with const char* ?
+ // char const* GetMethod() const { return m_method.c_str(); }, etc.
+
+ int GetCode() const { return m_code; };
+ std::string GetMessage() const { return m_message; };
+ std::string GetMethod() const { return m_method; };
+
+private:
+
+ int m_code;
+ std::string m_message;
+ std::string m_method;
+};
+
+} // namespace liblas
+
+#endif
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/include/liblas/lasfile.hpp work/libLAS-1.2.1/include/liblas/lasfile.hpp
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/include/liblas/lasfile.hpp 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/include/liblas/lasfile.hpp 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,85 @@
+/******************************************************************************
+ * $Id$
+ *
+ * Project: libLAS - http://liblas.org - A BSD library for LAS format data.
+ * Purpose: A composite class to handle read/write operations
+ * Author: Mateusz Loskot, mateusz@loskot.net
+ *
+ ******************************************************************************
+ * Copyright (c) 2008, Mateusz Loskot
+ * Copyright (c) 2008, Howard Butler
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following
+ * conditions are met:
+ *
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided
+ * with the distribution.
+ * * Neither the name of the Martin Isenburg or Iowa Department
+ * of Natural Resources nor the names of its contributors may be
+ * used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+ * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+ * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
+ * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
+ * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
+ * OF SUCH DAMAGE.
+ ****************************************************************************/
+
+#ifndef LIBLAS_LASFILE_HPP_INCLUDED
+#define LIBLAS_LASFILE_HPP_INCLUDED
+
+#include // complete type required
+#include
+#include
+#include
+
+namespace liblas {
+
+/// \todo to be documented
+class LASFile
+{
+public:
+
+ enum Mode
+ {
+ eRead = 0,
+ eWrite = 1,
+ eAppend = 2
+ };
+
+ LASFile();
+ LASFile(std::string const& filename);
+ LASFile(std::string const& filename, LASHeader const& header, Mode mode);
+ LASFile(LASFile const& other);
+ LASFile& operator=(LASFile const& rhs);
+
+ bool IsNull() const;
+ std::string GetName() const;
+ Mode GetMode() const;
+ LASHeader const& GetHeader() const;
+ LASReader& GetReader();
+ LASWriter& GetWriter();
+
+private:
+
+ detail::SharedPtr m_pimpl;
+};
+
+} // namespace liblas
+
+#endif // LIBLAS_LASFILE_HPP_INCLUDED
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/include/liblas/lasheader.hpp work/libLAS-1.2.1/include/liblas/lasheader.hpp
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/include/liblas/lasheader.hpp 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/include/liblas/lasheader.hpp 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,393 @@
+/******************************************************************************
+ * $Id$
+ *
+ * Project: libLAS - http://liblas.org - A BSD library for LAS format data.
+ * Purpose: LAS header class
+ * Author: Mateusz Loskot, mateusz@loskot.net
+ *
+ ******************************************************************************
+ * Copyright (c) 2008, Mateusz Loskot
+ * Copyright (c) 2008, Phil Vachon
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following
+ * conditions are met:
+ *
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided
+ * with the distribution.
+ * * Neither the name of the Martin Isenburg or Iowa Department
+ * of Natural Resources nor the names of its contributors may be
+ * used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+ * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+ * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
+ * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
+ * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
+ * OF SUCH DAMAGE.
+ ****************************************************************************/
+
+#ifndef LIBLAS_LASHEADER_HPP_INCLUDED
+#define LIBLAS_LASHEADER_HPP_INCLUDED
+
+#include
+#include
+#include
+#include
+#include
+#include
+
+//std
+#include
+#include
+
+namespace liblas {
+
+/// Definition of public header block.
+/// The header contains set of generic data and metadata
+/// describing a family of ASPRS LAS files. The header is stored
+/// at the beginning of every valid ASPRS LAS file.
+///
+/// \todo TODO (low-priority): replace static-size char arrays as data members
+/// with std::string and return const-reference to string object.
+///
+class LASHeader
+{
+public:
+
+ /// Range of allowed ASPRS LAS file format versions.
+ enum FormatVersion
+ {
+ eVersionMajorMin = 1, ///< Minimum of major component
+ eVersionMajorMax = 1, ///< Maximum of major component
+ eVersionMinorMin = 0, ///< Minimum of minor component
+ eVersionMinorMax = 2 ///< Maximum of minor component
+ };
+
+ /// Versions of point record format.
+ enum PointFormat
+ {
+ ePointFormat0 = 0, ///< Point Data Format \e 0
+ ePointFormat1 = 1, ///< Point Data Format \e 1
+ ePointFormat2 = 2, ///< Point Data Format \e 2
+ ePointFormat3 = 3 ///< Point Data Format \e 3
+
+ };
+
+ /// Number of bytes of point record storage in particular format.
+ enum PointSize
+ {
+ ePointSize0 = 20, ///< Size of point record in data format \e 0
+ ePointSize1 = 28, ///< Size of point record in data format \e 1
+ ePointSize2 = 26, ///< Size of point record in data format \e 2
+ ePointSize3 = 34 ///< Size of point record in data format \e 3
+
+ };
+
+ /// Official signature of ASPRS LAS file format, always \b "LASF".
+ static char const* const FileSignature;
+
+ /// Default system identifier used by libLAS, always \b "libLAS".
+ static char const* const SystemIdentifier;
+
+ /// Default software identifier used by libLAS, always \b "libLAS X.Y".
+ static char const* const SoftwareIdentifier;
+
+ /// Default constructor.
+ /// The default constructed header is configured according to the ASPRS
+ /// LAS 1.1 Specification, point data format set to 0.
+ /// Other fields filled with 0.
+ LASHeader();
+
+ /// Copy constructor.
+ LASHeader(LASHeader const& other);
+
+ /// Assignment operator.
+ LASHeader& operator=(LASHeader const& rhs);
+
+ /// Comparison operator.
+ bool operator==(const LASHeader& other) const;
+
+ /// Get ASPRS LAS file signature.
+ /// \return 4-characters long string - \b "LASF".
+ std::string GetFileSignature() const;
+
+ /// Set ASPRS LAS file signature.
+ /// The only value allowed as file signature is \b "LASF",
+ /// defined as FileSignature constant.
+ /// \exception std::invalid_argument - if invalid signature given.
+ /// \param v - string contains file signature, at least 4-bytes long
+ /// with "LASF" as first four bytes.
+ void SetFileSignature(std::string const& v);
+
+ /// Get file source identifier.
+ /// \exception No throw
+ uint16_t GetFileSourceId() const;
+
+ /// Set file source identifier.
+ /// \param v - should be set to a value between 1 and 65535.
+ /// \exception No throw
+ ///
+ /// \todo TODO: Should we warn or throw about type overflow when user passes 65535 + 1 = 0
+ void SetFileSourceId(uint16_t v);
+
+ /// Get value field reserved by the ASPRS LAS Specification.
+ /// \note This field is always filled with 0.
+ ///
+ /// \todo TODO: Should we warn or throw about type overflow when user passes 65535 + 1 = 0
+ uint16_t GetReserved() const;
+
+ /// Set reserved value for the header identifier.
+ /// \param v - should be set to a value between 1 and 65535.
+ /// \exception No throw
+ void SetReserved(uint16_t v);
+
+ /// Get project identifier.
+ /// \return Global Unique Identifier as an instance of liblas::guid class.
+ guid GetProjectId() const;
+
+ /// Set project identifier.
+ void SetProjectId(guid const& v);
+
+ /// Get major component of version of LAS format.
+ /// \return Always 1 is returned as the only valid value.
+ uint8_t GetVersionMajor() const;
+
+ /// Set major component of version of LAS format.
+ /// \exception std::out_of_range - invalid value given.
+ /// \param v - value between eVersionMajorMin and eVersionMajorMax.
+ void SetVersionMajor(uint8_t v);
+
+ /// Get minor component of version of LAS format.
+ /// \return Valid values are 1 or 0.
+ uint8_t GetVersionMinor() const;
+
+ /// Set minor component of version of LAS format.
+ /// \exception std::out_of_range - invalid value given.
+ /// \param v - value between eVersionMinorMin and eVersionMinorMax.
+ void SetVersionMinor(uint8_t v);
+
+ /// Get system identifier.
+ /// Default value is \b "libLAS" specified as the SystemIdentifier constant.
+ /// \param pad - if true the returned string is padded right with spaces and
+ /// its length is 32 bytes, if false (default) no padding occurs and
+ /// length of the returned string is <= 32 bytes.
+ /// \return value of system identifier field.
+ std::string GetSystemId(bool pad = false) const;
+
+ /// Set system identifier.
+ /// \exception std::invalid_argument - if identifier longer than 32 bytes.
+ /// \param v - system identifiers string.
+ void SetSystemId(std::string const& v);
+
+ /// Get software identifier.
+ /// Default value is \b "libLAS 1.0", specified as the SoftwareIdentifier constant.
+ /// \param pad - if true the returned string is padded right with spaces and its length is 32 bytes,
+ /// if false (default) no padding occurs and length of the returned string is <= 32 bytes.
+ /// \return value of generating software identifier field.
+ std::string GetSoftwareId(bool pad = false) const;
+
+ /// Set software identifier.
+ /// \exception std::invalid_argument - if identifier is longer than 32 bytes.
+ /// \param v - software identifiers string.
+ void SetSoftwareId(std::string const& v);
+
+ /// Get day of year of file creation date.
+ /// \todo TODO: Use full date structure instead of Julian date number.
+ uint16_t GetCreationDOY() const;
+
+ /// Set day of year of file creation date.
+ /// \exception std::out_of_range - given value is higher than number 366.
+ /// \todo TODO: Use full date structure instead of Julian date number.
+ void SetCreationDOY(uint16_t v);
+
+ /// Set year of file creation date.
+ /// \todo TODO: Remove if full date structure is used.
+ uint16_t GetCreationYear() const;
+
+ /// Get year of file creation date.
+ /// \exception std::out_of_range - given value is higher than number 9999.
+ /// \todo TODO: Remove if full date structure is used.
+ void SetCreationYear(uint16_t v);
+
+ /// Get number of bytes of generic verion of public header block storage.
+ /// Standard version of the public header block is 227 bytes long.
+ uint16_t GetHeaderSize() const;
+
+ /// Get number of bytes from the beginning to the first point record.
+ uint32_t GetDataOffset() const;
+
+ /// Set number of bytes from the beginning to the first point record.
+ /// \exception std::out_of_range - if given offset is bigger than 227+2 bytes
+ /// for the LAS 1.0 format and 227 bytes for the LAS 1.1 format.
+ void SetDataOffset(uint32_t v);
+
+ /// Get number of variable-length records.
+ uint32_t GetRecordsCount() const;
+
+ /// Set number of variable-length records.
+ void SetRecordsCount(uint32_t v);
+
+ /// Get identifier of point data (record) format.
+ PointFormat GetDataFormatId() const;
+
+ /// Set identifier of point data (record) format.
+ void SetDataFormatId(PointFormat v);
+
+ /// \todo To be documented
+ uint16_t GetDataRecordLength() const;
+
+ /// Get total number of point records stored in the LAS file.
+ uint32_t GetPointRecordsCount() const;
+
+ /// Set number of point records that will be stored in a new LAS file.
+ void SetPointRecordsCount(uint32_t v);
+
+ /// Get array of the total point records per return.
+ std::vector const& GetPointRecordsByReturnCount() const;
+
+ /// Set values of 5-elements array of total point records per return.
+ /// \exception std::out_of_range - if index is bigger than 4.
+ /// \param index - subscript (0-4) of array element being updated.
+ /// \param v - new value to assign to array element identified by index.
+ void SetPointRecordsByReturnCount(std::size_t index, uint32_t v);
+
+ /// Get scale factor for X coordinate.
+ double GetScaleX() const;
+
+ /// Get scale factor for Y coordinate.
+ double GetScaleY() const;
+
+ /// Get scale factor for Z coordinate.
+ double GetScaleZ() const;
+
+ /// Set values of scale factor for X, Y and Z coordinates.
+ void SetScale(double x, double y, double z);
+
+ /// Get X coordinate offset.
+ double GetOffsetX() const;
+
+ /// Get Y coordinate offset.
+ double GetOffsetY() const;
+
+ /// Get Z coordinate offset.
+ double GetOffsetZ() const;
+
+ /// Set values of X, Y and Z coordinates offset.
+ void SetOffset(double x, double y, double z);
+
+ /// Get minimum value of extent of X coordinate.
+ double GetMaxX() const;
+
+ /// Get maximum value of extent of X coordinate.
+ double GetMinX() const;
+
+ /// Get minimum value of extent of Y coordinate.
+ double GetMaxY() const;
+
+ /// Get maximum value of extent of Y coordinate.
+ double GetMinY() const;
+
+ /// Get minimum value of extent of Z coordinate.
+ double GetMaxZ() const;
+
+ /// Get maximum value of extent of Z coordinate.
+ double GetMinZ() const;
+
+ /// Set maximum values of extent of X, Y and Z coordinates.
+ void SetMax(double x, double y, double z);
+
+ /// Set minimum values of extent of X, Y and Z coordinates.
+ void SetMin(double x, double y, double z);
+
+ /// Adds a variable length record to the header
+ void AddVLR(LASVariableRecord const& v);
+
+ /// Returns a VLR
+ LASVariableRecord const& GetVLR(uint32_t index) const;
+
+ /// Removes a VLR from the the header.
+ void DeleteVLR(uint32_t index);
+
+ /// Rewrite variable-length record with georeference infomation, if available.
+ void SetGeoreference();
+
+ /// Fetch the georeference
+ LASSpatialReference GetSRS() const;
+
+ /// Set the georeference
+ void SetSRS(LASSpatialReference& srs);
+
+private:
+
+ typedef detail::Point PointScales;
+ typedef detail::Point PointOffsets;
+ typedef detail::Extents PointExtents;
+
+ enum
+ {
+ eDataSignatureSize = 2,
+ eFileSignatureSize = 4,
+ ePointsByReturnSize = 5,
+ eProjectId4Size = 8,
+ eSystemIdSize = 32,
+ eSoftwareIdSize = 32,
+ eHeaderSize = 227,
+ eFileSourceIdMax = 65535
+ };
+
+ // TODO (low-priority): replace static-size char arrays
+ // with std::string and return const-reference to string object.
+
+ //
+ // Private function members
+ //
+ void Init();
+ void ClearGeoKeyVLRs();
+
+ //
+ // Private data members
+ //
+ char m_signature[eFileSignatureSize];
+ uint16_t m_sourceId;
+ uint16_t m_reserved;
+ uint32_t m_projectId1;
+ uint16_t m_projectId2;
+ uint16_t m_projectId3;
+ uint8_t m_projectId4[eProjectId4Size];
+ uint8_t m_versionMajor;
+ uint8_t m_versionMinor;
+ char m_systemId[eSystemIdSize];
+ char m_softwareId[eSoftwareIdSize];
+ uint16_t m_createDOY;
+ uint16_t m_createYear;
+ uint16_t m_headerSize;
+ uint32_t m_dataOffset;
+ uint32_t m_recordsCount;
+ uint8_t m_dataFormatId;
+ uint16_t m_dataRecordLen;
+ uint32_t m_pointRecordsCount;
+ std::vector m_pointRecordsByReturn;
+ PointScales m_scales;
+ PointOffsets m_offsets;
+ PointExtents m_extents;
+ std::vector m_vlrs;
+ LASSpatialReference m_srs;
+};
+
+} // namespace liblas
+
+#endif // LIBLAS_LASHEADER_HPP_INCLUDED
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/include/liblas/laspoint.hpp work/libLAS-1.2.1/include/liblas/laspoint.hpp
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/include/liblas/laspoint.hpp 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/include/liblas/laspoint.hpp 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,365 @@
+/******************************************************************************
+ * $Id$
+ *
+ * Project: libLAS - http://liblas.org - A BSD library for LAS format data.
+ * Purpose: LAS point class
+ * Author: Mateusz Loskot, mateusz@loskot.net
+ *
+ ******************************************************************************
+ * Copyright (c) 2008, Mateusz Loskot
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following
+ * conditions are met:
+ *
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided
+ * with the distribution.
+ * * Neither the name of the Martin Isenburg or Iowa Department
+ * of Natural Resources nor the names of its contributors may be
+ * used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+ * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+ * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
+ * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
+ * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
+ * OF SUCH DAMAGE.
+ ****************************************************************************/
+
+#ifndef LIBLAS_LASPOINT_HPP_INCLUDED
+#define LIBLAS_LASPOINT_HPP_INCLUDED
+
+#include
+#include
+#include
+#include
+// std
+#include // std::out_of_range
+#include // std::size_t
+
+namespace liblas {
+
+/// Point data record composed with X, Y, Z coordinates and attributes.
+class LASPoint
+{
+public:
+
+ enum DataMemberFlag
+ {
+ eReturnNumber = 1,
+ eNumberOfReturns = 2,
+ eScanDirection = 4,
+ eFlightLineEdge = 8,
+ eClassification = 16,
+ eScanAngleRank = 32,
+ eTime = 64
+ };
+
+
+ enum ClassificationType
+ {
+ eCreated = 0,
+ eUnclassified,
+ eGround,
+ eLowVegetation,
+ eMediumVegetation,
+ eHighVegetation,
+ eBuilding,
+ eLowPoint,
+ eModelKeyPoint,
+ eWater = 9,
+ // = 10 // reserved for ASPRS Definition
+ // = 11 // reserved for ASPRS Definition
+ eOverlapPoints = 12
+ // = 13-31 // reserved for ASPRS Definition
+ };
+
+ enum ScanAngleRankRange
+ {
+ eScanAngleRankMin = -90,
+ eScanAngleRankMax = 90
+ };
+
+ LASPoint();
+ LASPoint(LASPoint const& other);
+ LASPoint& operator=(LASPoint const& rhs);
+
+ double GetX() const;
+ double GetY() const;
+ double GetZ() const;
+ void SetCoordinates(double const& x, double const& y, double const& z);
+ void SetCoordinates(LASHeader const& header, double x, double y, double z);
+
+ void SetX(double const& value);
+ void SetY(double const& value);
+ void SetZ(double const& value);
+
+ uint16_t GetIntensity() const;
+ void SetIntensity(uint16_t const& intensity);
+
+ /// Gets all scanning flags encoded as single byte.
+ /// The flags are (mandatory):
+ /// - Return Number (bits 0, 1, 2);
+ /// - Number of Returns - given pulse (bits 3, 4, 5);
+ /// - Scan Direction Flag (bit 6);
+ /// - Edge of Flight Line (bit 7).
+ uint8_t GetScanFlags() const;
+
+ /// Sets all scanning flags passed as a single byte.
+ /// \sa Documentation of GetScanFlags method for flags details.
+ void SetScanFlags(uint8_t const& flags);
+
+ uint16_t GetReturnNumber() const;
+ void SetReturnNumber(uint16_t const& num);
+
+ uint16_t GetNumberOfReturns() const;
+ void SetNumberOfReturns(uint16_t const& num);
+
+ uint16_t GetScanDirection() const;
+ void SetScanDirection(uint16_t const& dir);
+
+ uint16_t GetFlightLineEdge() const;
+ void SetFlightLineEdge(uint16_t const& edge);
+
+ uint8_t GetClassification() const;
+ void SetClassification(uint8_t const& classify);
+
+ int8_t GetScanAngleRank() const;
+ void SetScanAngleRank(int8_t const& rank);
+
+ /// Fetch value of File Marker (LAS 1.0) or User Data (LAS 1.1).
+ uint8_t GetUserData() const;
+
+ /// Set value of File Marker (LAS 1.0) or User Data (LAS 1.1).
+ void SetUserData(uint8_t const& data);
+
+ /// Fetch value of User Bit Field (LAS 1.0) or Point Source ID (LAS 1.1).
+ uint16_t GetPointSourceID() const;
+
+ /// Set value of User Bit Field (LAS 1.0) or Point Source ID (LAS 1.1).
+ void SetPointSourceID(uint16_t const& id);
+
+ /// Fetch color value associated with this point (LAS 1.2)
+ LASColor const& GetColor() const;
+
+ /// Set color value associated with this point (LAS 1.2)
+ void SetColor(LASColor const& value);
+
+
+ double GetTime() const;
+ void SetTime(double const& time);
+
+ /// Index operator providing access to XYZ coordinates of point record.
+ /// Valid index values are 0, 1 or 2.
+ /// \exception std::out_of_range if requested index is out of range (> 2).
+ double& operator[](std::size_t const& n);
+
+ /// Const version of index operator providing access to XYZ coordinates of point record.
+ /// Valid index values are 0, 1 or 2.
+ /// \exception std::out_of_range if requested index is out of range (> 2).
+ double const& operator[](std::size_t const& n) const;
+
+ /// \todo TODO: Should we compare other data members, but not only coordinates?
+ bool equal(LASPoint const& other) const;
+
+ bool Validate() const;
+ bool IsValid() const;
+
+
+private:
+
+ static std::size_t const coords_size = 3;
+ double m_coords[coords_size];
+ uint16_t m_intensity;
+ uint8_t m_flags;
+ uint8_t m_class;
+ int8_t m_angleRank;
+ uint8_t m_userData;
+ uint16_t m_pointSourceId;
+ double m_gpsTime;
+
+ LASColor m_color;
+ detail::PointRecord m_rec;
+
+ void throw_out_of_range() const
+ {
+ throw std::out_of_range("coordinate subscript out of range");
+ }
+};
+
+/// Equal-to operator implemented in terms of LASPoint::equal method.
+inline bool operator==(LASPoint const& lhs, LASPoint const& rhs)
+{
+ return lhs.equal(rhs);
+}
+
+/// Not-equal-to operator implemented in terms of LASPoint::equal method.
+inline bool operator!=(LASPoint const& lhs, LASPoint const& rhs)
+{
+ return (!(lhs == rhs));
+}
+
+inline void LASPoint::SetCoordinates(double const& x, double const& y, double const& z)
+{
+ m_coords[0] = x;
+ m_coords[1] = y;
+ m_coords[2] = z;
+}
+
+inline double LASPoint::GetX() const
+{
+ return m_coords[0];
+}
+
+inline void LASPoint::SetX( double const& value )
+{
+ m_coords[0] = value;
+}
+
+inline double LASPoint::GetY() const
+{
+ return m_coords[1];
+}
+
+inline void LASPoint::SetY( double const& value )
+{
+ m_coords[1] = value;
+}
+
+inline double LASPoint::GetZ() const
+{
+ return m_coords[2];
+}
+
+inline void LASPoint::SetZ( double const& value )
+{
+ m_coords[2] = value;
+}
+
+inline uint16_t LASPoint::GetIntensity() const
+{
+ return m_intensity;
+}
+
+inline void LASPoint::SetIntensity(uint16_t const& intensity)
+{
+ m_intensity = intensity;
+}
+
+inline uint16_t LASPoint::GetReturnNumber() const
+{
+ // Read bits 1,2,3 (first 3 bits)
+ return (m_flags & 0x07);
+}
+
+inline uint16_t LASPoint::GetNumberOfReturns() const
+{
+ // Read bits 4,5,6
+ return ((m_flags >> 3) & 0x07);
+}
+
+inline uint16_t LASPoint::GetScanDirection() const
+{
+ // Read 7th bit
+ return ((m_flags >> 6) & 0x01);
+}
+
+inline uint16_t LASPoint::GetFlightLineEdge() const
+{
+ // Read 8th bit
+ return ((m_flags >> 7) & 0x01);
+}
+
+inline uint8_t LASPoint::GetScanFlags() const
+{
+ return m_flags;
+}
+
+inline void LASPoint::SetScanFlags(uint8_t const& flags)
+{
+ m_flags = flags;
+}
+
+inline uint8_t LASPoint::GetClassification() const
+{
+ return m_class;
+}
+
+inline void LASPoint::SetClassification(uint8_t const& classify)
+{
+ m_class = classify;
+}
+
+inline int8_t LASPoint::GetScanAngleRank() const
+{
+ return m_angleRank;
+}
+
+inline uint8_t LASPoint::GetUserData() const
+{
+ return m_userData;
+}
+
+inline uint16_t LASPoint::GetPointSourceID() const
+{
+ return m_pointSourceId;
+}
+
+inline void LASPoint::SetPointSourceID(uint16_t const& id)
+{
+ m_pointSourceId = id;
+}
+
+inline double LASPoint::GetTime() const
+{
+ return m_gpsTime;
+}
+
+inline void LASPoint::SetTime(double const& time)
+{
+ m_gpsTime = time;
+}
+
+inline LASColor const& LASPoint::GetColor() const
+{
+ return m_color;
+}
+
+inline void LASPoint::SetColor(LASColor const& value)
+{
+ m_color = value;
+}
+
+
+inline double& LASPoint::operator[](std::size_t const& n)
+{
+ if (coords_size <= n)
+ throw_out_of_range();
+
+ return m_coords[n];
+}
+
+inline double const& LASPoint::operator[](std::size_t const& n) const
+{
+ if (coords_size <= n)
+ throw_out_of_range();
+
+ return m_coords[n];
+}
+
+} // namespace liblas
+
+#endif // LIBLAS_LASPOINT_HPP_INCLUDED
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/include/liblas/lasreader.hpp work/libLAS-1.2.1/include/liblas/lasreader.hpp
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/include/liblas/lasreader.hpp 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/include/liblas/lasreader.hpp 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,103 @@
+/******************************************************************************
+* $Id$
+*
+* Project: libLAS - http://liblas.org - A BSD library for LAS format data.
+* Purpose: LAS reader class
+* Author: Mateusz Loskot, mateusz@loskot.net
+*
+******************************************************************************
+* Copyright (c) 2008, Mateusz Loskot
+* Copyright (c) 2008, Phil Vachon
+*
+* All rights reserved.
+*
+* Redistribution and use in source and binary forms, with or without
+* modification, are permitted provided that the following
+* conditions are met:
+*
+* * Redistributions of source code must retain the above copyright
+* notice, this list of conditions and the following disclaimer.
+* * Redistributions in binary form must reproduce the above copyright
+* notice, this list of conditions and the following disclaimer in
+* the documentation and/or other materials provided
+* with the distribution.
+* * Neither the name of the Martin Isenburg or Iowa Department
+* of Natural Resources nor the names of its contributors may be
+* used to endorse or promote products derived from this software
+* without specific prior written permission.
+*
+* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
+* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
+* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
+* OF SUCH DAMAGE.
+****************************************************************************/
+
+#ifndef LIBLAS_LASREADER_HPP_INCLUDED
+#define LIBLAS_LASREADER_HPP_INCLUDED
+
+#include
+#include
+#include
+#include
+#include
+// std
+#include
+#include
+#include
+#include // std::size_t
+
+namespace liblas {
+
+/// \todo To be documented.
+class LASReader
+{
+public:
+
+ LASReader(std::istream& ifs);
+ ~LASReader();
+
+ std::size_t GetVersion() const;
+ LASHeader const& GetHeader() const;
+ LASPoint const& GetPoint() const;
+ std::vector const& GetVLRs() const;
+ /// Allow fetching of the stream
+ std::istream& GetStream() const;
+ bool IsEOF() const;
+
+ bool ReadNextPoint();
+ bool ReadPointAt(std::size_t n);
+ bool ReadVLR();
+ void Reset();
+
+ /// Reproject data as they are written if the LASWriter's reference is
+ /// different than the LASHeader's
+ bool SetSRS(const LASSpatialReference& ref);
+
+ /// The operator is not const because it updates file stream position.
+ LASPoint const& operator[](std::size_t n);
+
+private:
+
+ // Blocked copying operations, declared but not defined.
+ LASReader(LASReader const& other);
+ LASReader& operator=(LASReader const& rhs);
+
+ void Init(); // throws on error
+
+ const std::auto_ptr m_pimpl;
+ LASHeader m_header;
+ LASPoint m_point;
+ std::vector m_vlrs;
+};
+
+} // namespace liblas
+
+#endif // ndef LIBLAS_LASREADER_HPP_INCLUDED
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/include/liblas/lasspatialreference.hpp work/libLAS-1.2.1/include/liblas/lasspatialreference.hpp
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/include/liblas/lasspatialreference.hpp 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/include/liblas/lasspatialreference.hpp 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,183 @@
+/******************************************************************************
+ * $Id: lasspatialreference.hpp 1091 2009-03-10 20:17:35Z hobu $
+ *
+ * Project: libLAS - http://liblas.org - A BSD library for LAS format data.
+ * Purpose: LAS Spatial Reference class
+ * Author: Howard Butler, hobu.inc@gmail.com
+ *
+ ******************************************************************************
+ * Copyright (c) 2009, Howard Butler
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following
+ * conditions are met:
+ *
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided
+ * with the distribution.
+ * * Neither the name of the Martin Isenburg or Iowa Department
+ * of Natural Resources nor the names of its contributors may be
+ * used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+ * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+ * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
+ * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
+ * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
+ * OF SUCH DAMAGE.
+ ****************************************************************************/
+
+#ifndef LIBLAS_LASSPATIALREFERENCE_HPP_INCLUDED
+#define LIBLAS_LASSPATIALREFERENCE_HPP_INCLUDED
+
+#include
+#include
+#include
+#include
+#include
+#include
+
+// GDAL OSR
+#ifdef HAVE_GDAL
+#include "ogr_srs_api.h"
+#include "cpl_port.h"
+#include "cpl_serv.h"
+#include "geo_tiffp.h"
+#define CPL_ERROR_H_INCLUDED
+
+#include "geo_normalize.h"
+#include "geovalues.h"
+#include "ogr_spatialref.h"
+#include "gdal.h"
+#include "xtiffio.h"
+#include "cpl_multiproc.h"
+
+#endif
+
+// GeoTIFF
+#ifdef HAVE_LIBGEOTIFF
+#include "geotiff.h"
+#include "geo_simpletags.h"
+#include "geo_normalize.h"
+#include "geo_simpletags.h"
+#include "geovalues.h"
+#endif // HAVE_LIBGEOTIFF
+
+// std
+#include // std::out_of_range
+#include // std::size_t
+#include
+
+// Fake out the compiler if we don't have libgeotiff
+#ifndef HAVE_LIBGEOTIFF
+typedef struct GTIFS * GTIF;
+typedef struct ST_TIFFS * ST_TIFF;
+#endif
+
+namespace liblas {
+
+/// Spatial Reference System container for libLAS
+class LASSpatialReference
+{
+public:
+
+ /// Default constructor.
+ LASSpatialReference();
+
+ /// Destructor.
+ /// If libgeotiff is enabled, deallocates libtiff and libgeotiff objects used internally.
+ ~LASSpatialReference();
+
+ /// Constructor creating LASSpatialReference instance from given Variable-Length Record.
+ LASSpatialReference(const std::vector& vlrs);
+
+ /// Copy constryctor.
+ LASSpatialReference(LASSpatialReference const& other);
+
+ /// Assignment operator.
+ LASSpatialReference& operator=(LASSpatialReference const& rhs);
+
+ /// Returns a pointer to the internal GTIF*. Only available if
+ /// you have libgeotiff linked in.
+ const GTIF* GetGTIF();
+
+ void SetGTIF(const GTIF* gtiff, const ST_TIFF* tiff);
+
+ /// Returns the OGC WKT describing Spatial Reference System.
+ /// If GDAL is linked, it uses GDAL's operations and methods to determine
+ /// the WKT. If GDAL is not linked, no WKT is returned.
+ std::string GetWKT() const;
+
+ /// Sets the SRS using GDAL's OGC WKT. If GDAL is not linked, this
+ /// operation has no effect.
+ /// \param v - a string containing the WKT string.
+ void SetWKT(std::string const& v);
+
+ /// Returns the Proj.4 string describing the Spatial Reference System.
+ /// If GDAL is linked, it uses GDAL's operations and methods to determine
+ /// the Proj.4 string -- otherwise, if libgeotiff is linked, it uses
+ /// that. Note that GDAL's operations are much more mature and
+ /// support more coordinate systems and descriptions.
+ std::string GetProj4() const;
+
+ /// Sets the Proj.4 string describing the Spatial Reference System.
+ /// If GDAL is linked, it uses GDAL's operations and methods to determine
+ /// the Proj.4 string -- otherwise, if libgeotiff is linked, it uses
+ /// that. Note that GDAL's operations are much more mature and
+ /// support more coordinate systems and descriptions.
+ /// \param v - a string containing the Proj.4 string.
+ void SetProj4(std::string const& v);
+
+ /// Set the LASVLRs for the LASSpatialReference. SetVLRs will only copy
+ /// VLR records that pertain to the GeoTIFF keys, and extraneous
+ /// VLR records will not be copied.
+ /// \param vlrs - A list of VLRs that contains VLRs describing GeoTIFF keys
+ void SetVLRs(const std::vector& vlrs);
+
+ /// Add a VLR representing GeoTIFF keys to the SRS
+ void AddVLR(const LASVariableRecord& vlr);
+
+ /// Return a copy of the LASVLRs that LASSpatialReference maintains
+ std::vector GetVLRs() const;
+
+private:
+
+ GTIF* m_gtiff;
+ ST_TIFF* m_tiff;
+
+ std::vector m_vlrs;
+ bool IsGeoVLR(const LASVariableRecord& vlr) const;
+
+ /// Reset the VLRs of the LASSpatialReference using the existing GTIF* and ST_TIF*
+ /// Until this method is called,
+ /// the LASSpatialReference will only contain a SRS description using the VLRs
+ /// that it was first instantiated with. SetWKT and SetProj4 can
+ /// be used to change the GTIF*
+ void ResetVLRs();
+};
+
+} // namespace liblas
+
+#ifdef HAVE_GDAL
+LAS_C_START
+char LAS_DLL * GTIFGetOGISDefn(GTIF*, GTIFDefn*);
+int LAS_DLL GTIFSetFromOGISDefn(GTIF*, const char*);
+
+void SetLinearUnitCitation(GTIF* psGTIF, char* pszLinearUOMName);
+void SetGeogCSCitation(GTIF* psGTIF, OGRSpatialReference* poSRS, char* angUnitName, int nDatum, short nSpheroid);
+LAS_C_END
+#endif
+
+#endif // LIBLAS_LASSPATIALREFERENCE_HPP_INCLUDED
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/include/liblas/lasvariablerecord.hpp work/libLAS-1.2.1/include/liblas/lasvariablerecord.hpp
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/include/liblas/lasvariablerecord.hpp 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/include/liblas/lasvariablerecord.hpp 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,156 @@
+/******************************************************************************
+ * $Id: lasvariablerecord.hpp 889 2008-09-28 04:17:22Z hobu $
+ *
+ * Project: libLAS - http://liblas.org - A BSD library for LAS format data.
+ * Purpose: LAS record header class
+ * Author: Phil Vachon, philippe@cowpig.ca
+ *
+ ******************************************************************************
+ * Copyright (c) 2008, Phil Vachon
+ * Copyright (c) 2008, Howard Butler
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following
+ * conditions are met:
+ *
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided
+ * with the distribution.
+ * * Neither the name of the Martin Isenburg or Iowa Department
+ * of Natural Resources nor the names of its contributors may be
+ * used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+ * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+ * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
+ * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
+ * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
+ * OF SUCH DAMAGE.
+ ****************************************************************************/
+
+#ifndef LIBLAS_LASVARIABLERECORD_HPP_INCLUDED
+#define LIBLAS_LASVARIABLERECORD_HPP_INCLUDED
+
+#include
+// std
+#include
+#include
+
+namespace liblas {
+
+/// Representation of variable-length record data.
+class LASVariableRecord
+{
+public:
+
+ /// Default constructor.
+ /// Zero-initialization of record data.
+ /// \exception No throw
+ LASVariableRecord();
+
+ /// Copy constructor.
+ /// Construction of new record object as a copy of existing one.
+ /// \exception No throw
+ LASVariableRecord(LASVariableRecord const& other);
+
+ ~LASVariableRecord();
+
+ /// Assignment operator.
+ /// Construction and initializition of record object by
+ /// assignment of another one.
+ /// \exception No throw
+ LASVariableRecord& operator=(LASVariableRecord const& rhs);
+
+ /// Get record signature (LAS 1.0) or reserved bytes (LAS 1.1).
+ /// \exception No throw
+ uint16_t GetReserved() const;
+
+ void SetReserved(uint16_t);
+
+ /// Get identifier of user which created the record.
+ /// The character data is up to 16 bytes long.
+ /// \exception No throw
+ std::string GetUserId(bool pad /*= false*/) const;
+
+ void SetUserId(std::string const&);
+
+ /// Get identifier of record.
+ /// The record ID is closely related to the user ID.
+ /// \exception No throw
+ uint16_t GetRecordId() const;
+
+ void SetRecordId(uint16_t);
+
+ /// Get record length after the header.
+ /// \exception No throw
+ uint16_t GetRecordLength() const;
+
+ void SetRecordLength(uint16_t);
+
+ /// Get text description of data in the record.
+ /// The character data is up to 32 bytes long.
+ /// \exception No throw
+ std::string GetDescription(bool pad /*= false*/) const;
+
+ void SetDescription(std::string const&);
+
+ /// Get the data for this VLR
+ std::vector const& GetData() const;
+
+ void SetData(std::vector const&);
+
+ /// Compare actual header object against the other.
+ /// \exception No throw
+ bool equal(LASVariableRecord const& other) const;
+
+ /// Get the total size of the VLR in bytes
+ uint32_t GetTotalSize() const;
+
+private:
+
+ enum
+ {
+ eUIDSize = 16,
+ eDescriptionSize = 32
+ };
+
+ uint16_t m_reserved;
+ uint16_t m_recordId;
+ uint16_t m_recordLength; // after header
+
+ char m_userId[eUIDSize];
+ char m_desc[eDescriptionSize];
+ std::vector m_data;
+};
+
+/// Equality operator.
+/// Implemented in terms of LASVariableRecord::equal member function.
+/// \exception No throw
+inline bool operator==(LASVariableRecord const& lhs, LASVariableRecord const& rhs)
+{
+ return lhs.equal(rhs);
+}
+
+/// Inequality operator.
+/// Implemented in terms of LASRecordHeader::equal member function.
+/// \exception No throw
+inline bool operator!=(LASVariableRecord const& lhs, LASVariableRecord const& rhs)
+{
+ return (!(lhs == rhs));
+}
+
+} // namespace liblas
+
+#endif // LIBLAS_LASVARIABLERECORD_HPP_INCLUDED
diff -ruN /usr/ports/devel/liblas12/work/libLAS-1.2.1/include/liblas/laswriter.hpp work/libLAS-1.2.1/include/liblas/laswriter.hpp
--- /usr/ports/devel/liblas12/work/libLAS-1.2.1/include/liblas/laswriter.hpp 1970-01-01 08:00:00.000000000 +0800
+++ work/libLAS-1.2.1/include/liblas/laswriter.hpp 2009-10-03 01:48:41.000000000 +0800
@@ -0,0 +1,98 @@
+/******************************************************************************
+ * $Id$
+ *
+ * Project: libLAS - http://liblas.org - A BSD library for LAS format data.
+ * Purpose: LAS writer class
+ * Author: Mateusz Loskot, mateusz@loskot.net
+ *
+ ******************************************************************************
+ * Copyright (c) 2008, Mateusz Loskot
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following
+ * conditions are met:
+ *
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided
+ * with the distribution.
+ * * Neither the name of the Martin Isenburg or Iowa Department
+ * of Natural Resources nor the names of its contributors may be
+ * used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+ * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+ * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
+ * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
+ * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
+ * OF SUCH DAMAGE.
+ ****************************************************************************/
+
+#ifndef LIBLAS_LASWRITER_HPP_INCLUDED
+#define LIBLAS_LASWRITER_HPP_INCLUDED
+
+#include
+#include