| 137 | |
| 138 | |
| 139 | void CropFilter::ready(PointTableRef table) |
| 140 | { |
| 141 | // If the user didn't provide an SRS, take one from the table. |
| 142 | if (m_args->m_assignedSrs.empty()) |
| 143 | { |
| 144 | m_args->m_assignedSrs = table.anySpatialReference(); |
| 145 | if (!table.spatialReferenceUnique()) |
| 146 | log()->get(LogLevel::Warning) << "Can't determine spatial " |
| 147 | "reference for provided bounds. Consider using 'a_srs' " |
| 148 | "option.\n"; |
| 149 | } |
| 150 | for (auto& geom : m_geoms) |
| 151 | geom.m_poly.setSpatialReference(m_args->m_assignedSrs); |
| 152 | } |
| 153 | |
| 154 | |
| 155 | bool CropFilter::processOne(PointRef& point) |
nothing calls this directly
no test coverage detected