private MultiPoint parseMultiPoint ( JsonParser jp ) throws IOException , SQLException { jp . nextToken ( ) ; // FIELD_NAME coordinates String coordinatesField = jp . getText ( ) ; if ( coordinatesField . equalsIgnoreCase ( GeoJsonField . COORDINATES ) ) { jp . nextToken ( ) ; // START_ARRAY [ coordinates MultiPoint mPoint = GF . createMultiPoint ( parseCoordinates ( jp ) ) ; jp . nextToken ( ) ; //END_OBJECT } geometry return mPoint ; } else { throw new SQLException ( "Malformed GeoJSON file. Expected 'coordinates', found '" + coordinatesField + "'" ) ; } }
Parses an array of positions