public static Integer getCoordinateDimension ( byte [ ] geom ) throws IOException { if ( geom == null ) { return null ; } return GeometryMetaData . getMetaDataFromWKB ( geom ) . dimension ; }
Returns the dimension of the coordinates of the given geometry .