-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
The code in RdfJsonUtils will probably fail with exception for non-WKT geometry literals. Needs to be fixed and tested.
jenax/jenax-arq-parent/jenax-arq-json/src/main/java/org/aksw/jenax/arq/json/RdfJsonUtils.java
Lines 110 to 121 in efa4197
| } else if(obj instanceof GeometryWrapper) { | |
| WKTReader wktReader = new WKTReader(); | |
| try { | |
| final Geometry geom = wktReader.read(node.getLiteralLexicalForm()); | |
| GeoJsonWriter geoJsonWriter = new GeoJsonWriter(); | |
| String jsonString = geoJsonWriter.write(geom); | |
| Gson gson = new Gson(); | |
| result = gson.fromJson(jsonString, JsonObject.class); | |
| } catch (ParseException e) { | |
| throw new RuntimeException("Invalid WKT : " + node); | |
| } |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels