Skip to content
Snippets Groups Projects
Commit ec9ded86 authored by Rodríguez Ortega, Alejandro's avatar Rodríguez Ortega, Alejandro
Browse files

Fix Bug with LineString

parent a69b9bcc
No related branches found
No related tags found
No related merge requests found
......@@ -164,18 +164,18 @@ public class DataUtils {
node.set("@context", arrayNodeContext);
ObjectNode location = new ObjectMapper().createObjectNode();
ArrayNode coordinates = new ObjectMapper().createArrayNode();
//ArrayNode coordinates = new ObjectMapper().createArrayNode();
ArrayNode poligons = new ObjectMapper().createArrayNode();
ArrayNode trozos = new ObjectMapper().createArrayNode();
//ArrayNode trozos = new ObjectMapper().createArrayNode();
for (GPSPoint nodo:nodos) {
ArrayNode point = new ObjectMapper().createArrayNode();
point.add(nodo.getLatitude());
point.add(nodo.getLongitude());
poligons.add(point);
}
trozos.add(poligons);
coordinates.add(trozos);
location.set("coordinates",coordinates);
//trozos.add(poligons);
//coordinates.add(poligons);
location.set("coordinates",poligons);
location.put("type","LineString");
node.set("location",location);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment