org.h2gis.utilities.jts_utils
Class GeometryMetaData

java.lang.Object
  extended by org.h2gis.utilities.jts_utils.GeometryMetaData

public class GeometryMetaData
extends Object

Extract Geometry MetaData from WKB. WKB Conversion source from WKBReader


Field Summary
 int dimension
          Geometry dimension 2 or 3
 int geometryType
          Geometry type code
 boolean hasSRID
          If SRID is available
 boolean hasZ
          If Z Component is available
 int SRID
          Projection code
 
Method Summary
static GeometryMetaData getMetaDataFromWKB(byte[] bytes)
          Read the first bytes of Geometry WKB.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

hasSRID

public final boolean hasSRID
If SRID is available


hasZ

public final boolean hasZ
If Z Component is available


geometryType

public final int geometryType
Geometry type code


dimension

public final int dimension
Geometry dimension 2 or 3


SRID

public final int SRID
Projection code

Method Detail

getMetaDataFromWKB

public static GeometryMetaData getMetaDataFromWKB(byte[] bytes)
                                           throws IOException
Read the first bytes of Geometry WKB.

Parameters:
bytes - WKB Bytes
Returns:
Geometry MetaData
Throws:
IOException - If WKB meta is invalid (do not check the Geometry)


Copyright © 2015 IRSTV CNRS-FR-2488. All Rights Reserved.