Skip to content

Commit

Permalink
return empty srs if no srid is available for the SDO_PC
Browse files Browse the repository at this point in the history
  • Loading branch information
hobu committed Mar 13, 2012
1 parent d230211 commit 85462be
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/drivers/oci/Reader.cpp
Expand Up @@ -372,7 +372,11 @@ pdal::SpatialReference Reader::fetchSpatialReference(Statement statement, sdo_pc

std::ostringstream oss;
oss <<"EPSG:" << srid;
return pdal::SpatialReference(oss.str());

if (srid)
return pdal::SpatialReference(oss.str());
else
return pdal::SpatialReference();
}

pdal::Schema Reader::fetchSchema(Statement statement, sdo_pc* pc, boost::uint32_t& capacity) const
Expand Down

0 comments on commit 85462be

Please sign in to comment.