public static GeometryType getGeometryType(Geometry jtsGeom, int srid) { byte[] bytes = getBytes(jtsGeom, true); return new GeometryType(bytes, srid); }
public static GeometryType getGeometryType(Geometry jtsGeom, int srid) { jtsGeom.setSRID(srid); byte[] bytes = getBytes(jtsGeom, true); GeometryType result = new GeometryType(bytes, srid); result.setGeoCache(jtsGeom); return result; }
public static BlobType asBlob(GeometryType geometry, String encoding) throws FunctionExecutionException { if ("NDR".equals(encoding)) { //$NON-NLS-1$ return new BlobType(GeometryUtils.getBytes(GeometryUtils.getGeometry(geometry), false)); } Blob b = geometry.getReference(); return new BlobType(b); }
public static GeometryType getGeometryType(Geometry jtsGeom, int srid) { jtsGeom.setSRID(srid); byte[] bytes = getBytes(jtsGeom, true); GeometryType result = new GeometryType(bytes, srid); result.setGeoCache(jtsGeom); return result; }
public static BlobType asBlob(AbstractGeospatialType geometry, String encoding) throws FunctionExecutionException { if ("NDR".equals(encoding)) { //$NON-NLS-1$ return new BlobType(GeometryUtils.getBytes(GeometryUtils.getGeometry(geometry), false)); } Blob b = geometry.getReference(); return new BlobType(b); }
public static GeographyType getGeographyType(Geometry geom) { byte[] bytes = getBytes(geom, true); GeographyType result = new GeographyType(bytes, geom.getSRID()); result.setGeoCache(geom); return result; }
public static BlobType asBlob(AbstractGeospatialType geometry, String encoding) throws FunctionExecutionException { if ("NDR".equals(encoding)) { //$NON-NLS-1$ return new BlobType(GeometryUtils.getBytes(GeometryUtils.getGeometry(geometry), false)); } Blob b = geometry.getReference(); return new BlobType(b); }
public static GeographyType getGeographyType(Geometry geom) { byte[] bytes = getBytes(geom, true); GeographyType result = new GeographyType(bytes, geom.getSRID()); result.setGeoCache(geom); return result; }