Skip to content

Commit

Permalink
log jsonGeometry
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvaroVega committed Sep 24, 2024
1 parent 7b4b014 commit cf54f2c
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -354,8 +354,10 @@ public static Feature createInstanceFromJson(JsonObject json) throws ArcgisExcep
Geometry geometry = null;
if (json.has(GEOMETRY_TAG)) {
JsonElement jsonGeometryElement = json.get(GEOMETRY_TAG);
LOGGER.debug("createInstanceFromJson jsonGeometryElement: " + jsonGeometryElement);
if (jsonGeometryElement.isJsonObject()) {
JsonObject jsonGeometry = jsonGeometryElement.getAsJsonObject();
LOGGER.debug("createInstanceFromJson jsonGeometry as JsonObject: " + jsonGeometry);
if (jsonGeometry.get("x") != null) {
geometry = Point.createInstanceFromJson(jsonGeometry);
} else if (jsonGeometry.get("paths") != null) {
Expand Down

0 comments on commit cf54f2c

Please sign in to comment.