Skip to content

Commit 2b5747b

Browse files
committed
Make no_srs only applicable to las readers
1 parent e7f55a2 commit 2b5747b

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,11 @@ Options
6161
- a_srs
6262

6363
Assign an output SRS. Example `--a_srs EPSG:2056`
64-
64+
65+
- no_srs
66+
67+
Don't read the SLR VLRs. This is only applicable to las files. [Default: false]
68+
6569
- dims
6670

6771
List of dimensions to load. X, Y and Z are always loaded. Limiting the dimensions can

epf/Epf.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,8 @@ void Epf::createFileInfos(const StringList& input, std::vector<FileInfo>& fileIn
286286

287287
pdal::Options opts;
288288
opts.add("filename", filename);
289-
opts.add("nosrs", m_b.opts.no_srs);
289+
if (driver == "readers.las")
290+
opts.add("nosrs", m_b.opts.no_srs);
290291
s->setOptions(opts);
291292

292293
FileInfo fi;

epf/EpfTypes.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ struct FileInfo
4848

4949
std::string filename;
5050
std::string driver;
51-
bool no_srs = false;
51+
bool no_srs;
5252
DimInfoList dimInfo;
5353
uint64_t numPoints;
5454
uint64_t start;

epf/FileProcessor.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,8 @@ void FileProcessor::run()
133133
pdal::Options opts;
134134
opts.add("filename", m_fi.filename);
135135
opts.add("count", m_fi.numPoints);
136-
opts.add("nosrs", m_fi.no_srs);
136+
if (m_fi.driver == "readers.las")
137+
opts.add("nosrs", m_fi.no_srs);
137138
#ifdef PDAL_LAS_START
138139
if (m_fi.driver == "readers.las")
139140
opts.add("start", m_fi.start);

0 commit comments

Comments
 (0)