if (type.equals("Polygon") && isValidGeometryPath(path)) { polyType = "Polygon"; } else if (type.equals("MultiPolygon") && isValidGeometryPath(path)) { polyType = "MultiPolygon"; } else if ((type.equals("FeatureCollection") || type.equals("Feature")) && (path.equals("features.[]") || path.equals(""))) { throw newParseException("can only handle type FeatureCollection (if it has a single polygon geometry), Feature, Polygon or MutiPolygon, but got " + type); } else if (key.equals("coordinates") && isValidGeometryPath(path)) { if (o instanceof List == false) { upto = uptoStart;
if (type.equals("Polygon") && isValidGeometryPath(path)) { polyType = "Polygon"; } else if (type.equals("MultiPolygon") && isValidGeometryPath(path)) { polyType = "MultiPolygon"; } else if ((type.equals("FeatureCollection") || type.equals("Feature")) && (path.equals("features.[]") || path.equals(""))) { throw newParseException("can only handle type FeatureCollection (if it has a single polygon geometry), Feature, Polygon or MutiPolygon, but got " + type); } else if (key.equals("coordinates") && isValidGeometryPath(path)) { if (o instanceof List == false) { upto = uptoStart;