public static Geometry geometryFromEsriShape ( byte [ ] esriShapeBuffer , Geometry . Type geometryType ) { OperatorImportFromESRIShape op = ( OperatorImportFromESRIShape ) factory . getOperator ( Operator . Type . ImportFromESRIShape ) ; return op . execute ( ShapeImportFlags . ShapeImportNonTrusted , geometryType , ByteBuffer . wrap ( esriShapeBuffer ) . order ( ByteOrder . LITTLE_ENDIAN ) ) ; }
Imports geometry from the ESRI shape file format .