1212
1313import com .esri .core .geometry .Envelope ;
1414import com .esri .core .geometry .Envelope1D ;
15- import com .esri .core .geometry .GeoJsonExportFlags ;
1615import com .esri .core .geometry .Geometry ;
1716import com .esri .core .geometry .GeometryCursor ;
1817import com .esri .core .geometry .GeometryCursorAppend ;
3029import com .esri .core .geometry .OperatorFactoryLocal ;
3130import com .esri .core .geometry .OperatorImportFromESRIShape ;
3231import com .esri .core .geometry .OperatorImportFromGeoJson ;
33- import com .esri .core .geometry .OperatorImportFromJson ;
3432import com .esri .core .geometry .OperatorImportFromWkb ;
3533import com .esri .core .geometry .OperatorImportFromWkt ;
3634import com .esri .core .geometry .OperatorIntersection ;
@@ -496,7 +494,7 @@ public static OGCGeometry fromEsriShape(ByteBuffer buffer) {
496494 }
497495
498496 public static OGCGeometry fromJson (String string )
499- throws Exception {
497+ throws JsonParseException , IOException {
500498 JsonFactory factory = new JsonFactory ();
501499 JsonParser jsonParserPt = factory .createJsonParser (string );
502500 jsonParserPt .nextToken ();
@@ -506,7 +504,7 @@ public static OGCGeometry fromJson(String string)
506504 }
507505
508506 public static OGCGeometry fromGeoJson (String string )
509- throws Exception {
507+ throws JSONException {
510508 OperatorImportFromGeoJson op = (OperatorImportFromGeoJson ) OperatorFactoryLocal
511509 .getInstance ().getOperator (Operator .Type .ImportFromGeoJson );
512510 MapOGCStructure mapOGCStructure = op .executeOGC (0 , string , null );
0 commit comments