From efdd2402c9e345ab549a3850300c4e737a7264db Mon Sep 17 00:00:00 2001 From: Andrew Bell Date: Thu, 10 Aug 2017 17:39:37 -0400 Subject: [PATCH] Update doc for spatialreference option. --- doc/stages/readers.las.rst | 5 +++++ doc/stages/readers.oci.rst | 5 ++++- doc/stages/readers.pgpointcloud.rst | 6 ++++-- pdal/Stage.cpp | 1 + 4 files changed, 14 insertions(+), 3 deletions(-) diff --git a/doc/stages/readers.las.rst b/doc/stages/readers.las.rst index a2dd96f23b..0c045aef1d 100644 --- a/doc/stages/readers.las.rst +++ b/doc/stages/readers.las.rst @@ -92,3 +92,8 @@ _`compression` support for the decompressor being requested. The LazPerf decompressor doesn't support version 1 LAZ files or version 1.4 of LAS. [Default: "laszip"] + +_`spatialreference` + Sets the spatial reference for the file data. Overrides any spatial + reference information in the file itself. Most text-based formats of + SRS information are accepted, including WKT and proj.4. diff --git a/doc/stages/readers.oci.rst b/doc/stages/readers.oci.rst index 702e465a26..10cf592092 100644 --- a/doc/stages/readers.oci.rst +++ b/doc/stages/readers.oci.rst @@ -39,7 +39,10 @@ query SELECT statement that returns an SDO_PC object as its first and only queried item [Required] spatialreference - Spatial reference system of the data being read. E.g. "EPSG:26910". + _`spatialreference` + Sets the spatial reference for the point ata. Overrides any spatial + reference information read from the database. Most text-based formats of + SRS information are accepted, including WKT and proj.4. xml_schema_dump Filename to dump the XML schema to. diff --git a/doc/stages/readers.pgpointcloud.rst b/doc/stages/readers.pgpointcloud.rst index 41d5e5732d..4033690af6 100644 --- a/doc/stages/readers.pgpointcloud.rst +++ b/doc/stages/readers.pgpointcloud.rst @@ -46,7 +46,9 @@ column Table column to read patches from. [Default: **pa**] spatialreference - The spatial reference to use for the points. Over-rides the value read from the database. - + _`spatialreference` + Sets the spatial reference for the point data. Overrides any spatial + reference information read from the database. Most text-based formats of + SRS information are accepted, including WKT and proj.4. .. _PostgreSQL Pointcloud: https://github.com/pramsey/pointcloud diff --git a/pdal/Stage.cpp b/pdal/Stage.cpp index ac6b1c59c8..5379818d4a 100644 --- a/pdal/Stage.cpp +++ b/pdal/Stage.cpp @@ -434,6 +434,7 @@ void Stage::l_initialize(PointTableRef table) } +// This function allows m_spatialReference to remain private. void Stage::addSpatialReferenceArg(ProgramArgs& args) { args.add("spatialreference", "Spatial reference to apply to data",