private Point asPoint ( List coords , CrsId crsId ) throws IOException { if ( coords != null && coords . size ( ) >= 2 ) { ArrayList < List > coordinates = new ArrayList < List > ( ) ; coordinates . add ( coords ) ; return new Point ( getPointSequence ( coordinates , crsId ) ) ; } else { throw new IOException ( "A point must has exactly one coordinate (an x, a y and possibly a z value). Additional numbers in the coordinate are permitted but ignored." ) ; } }
Parses the JSON as a point geometry .