kinow commented on code in PR #1675:
URL: https://github.com/apache/jena/pull/1675#discussion_r1050066368
##########
jena-geosparql/src/main/java/org/apache/jena/geosparql/spatial/property_functions/GenericSpatialPropertyFunction.java:
##########
@@ -126,12 +127,12 @@ private boolean checkBound(ExecutionContext execCxt, Node
subject) {
iter = graph.find(geometry, Geo.AS_GML_NODE, null);
}
spatialTriples.addIterator(iter);
- }
+ });
} else {
//Check for Geo predicates against the feature when no
geometry literals found.
if (graph.contains(subject, SpatialExtension.GEO_LAT_NODE,
null) && graph.contains(subject, SpatialExtension.GEO_LON_NODE, null)) {
- Node lat = graph.find(subject,
SpatialExtension.GEO_LAT_NODE, null).next().getObject();
- Node lon = graph.find(subject,
SpatialExtension.GEO_LON_NODE, null).next().getObject();
+ Node lat = G.getOneSP(graph, subject,
SpatialExtension.GEO_LAT_NODE);
+ Node lon = G.getOneSP(graph, subject,
SpatialExtension.GEO_LON_NODE);
Review Comment:
:ok_man:
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]