MathiasVDA opened a new pull request, #3577: URL: https://github.com/apache/jena/pull/3577
GitHub issue resolved # Pull request Description: Fixes https://github.com/apache/jena/issues/3576 Running this query on a spatial enabled Jena (with SIS support): ``` PREFIX gsp: <http://www.opengis.net/ont/geosparql#> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> PREFIX spatialf: <http://jena.apache.org/function/spatial#> select * WHERE { bind("<http://www.opengis.net/def/crs/EPSG/0/25832> POINT ZM (628319.4 6654189.1 -99999 -1)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> as ?wkt_epsg25832) BIND(spatialf:transformSRS(?wkt_epsg25832, "http://www.opengis.net/def/crs/EPSG/0/4326") as ?wkt_epsg4326) } ``` Would previously result in this: wkt_epsg25832 | wkt_epsg4326 -- | -- "<http://www.opengis.net/def/crs/EPSG/0/25832> POINT ZM (628319.4 6654189.1 -99999 -1)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> | "<http://www.opengis.net/def/crs/EPSG/0/4326> POINT ZM(60.0049 11.301201 -99999)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> In order to be a valid POINT ZM, there should be 4 coordinates and not three. After this pull request, the result is: wkt_epsg25832 | wkt_epsg4326 -- | -- "<http://www.opengis.net/def/crs/EPSG/0/25832> POINT ZM (628319.4 6654189.1 -99999 -1)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> | "<http://www.opengis.net/def/crs/EPSG/0/4326> POINT ZM(60.0049 11.301201 -99999 -1)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> ---- - [X] Tests are included. - [ ] Documentation change and updates are provided for the [Apache Jena website](https://github.com/apache/jena-site/) -> Not applicable - [ ] Commits have been squashed to remove intermediate development commit messages. -> I can't do this - [X] Key commit messages start with the issue number (GH-xxxx) By submitting this pull request, I acknowledge that I am making a contribution to the Apache Software Foundation under the terms and conditions of the [Contributor's Agreement](https://www.apache.org/licenses/contributor-agreements.html). ---- See the [Apache Jena "Contributing" guide](https://github.com/apache/jena/blob/main/CONTRIBUTING.md). -- 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]
