Skip to content

Commit

Permalink
synch code with JTS
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-jts committed Jan 8, 2024
1 parent 078a37e commit ce538ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
3 changes: 1 addition & 2 deletions src/algorithm/PointLocator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,10 @@ void
PointLocator::computeLocation(const CoordinateXY& p, const Geometry* geom)
{
//-- handle empty elements
/*
if (geom->isEmpty()) {
return;
}
*/
GeometryTypeId geomTypeId = geom->getGeometryTypeId();
switch (geomTypeId)
{
Expand Down
5 changes: 1 addition & 4 deletions src/geomgraph/GeometryGraph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -208,10 +208,7 @@ void
GeometryGraph::addCollection(const GeometryCollection* gc)
{
for(std::size_t i = 0, n = gc->getNumGeometries(); i < n; ++i) {
const Geometry* g = gc->getGeometryN(i);
if (! g->isEmpty()) {
add(g);
}
add(gc->getGeometryN(i));
}
}

Expand Down

0 comments on commit ce538ff

Please sign in to comment.