public String ExportToWkt() { final String array[] = new String[] { null }; ExportToWkt(array); return array[0]; }
public String ExportToWkt() { String array[] = new String[] {null}; ExportToWkt(array); return array[0]; }
@Override public String SpatialRefExportToWkt(Object spatialRef) { return ((SpatialReference) spatialRef).ExportToWkt(); }
public static String getSpatialReferenceWkt(final int srid) { final SpatialReference spatialReference = getSpatialReference(srid); return spatialReference.ExportToWkt(); }
public static void setSpatialReference(final Dataset dataset, final CoordinateSystem coordinateSystem) { final SpatialReference spatialReference = getSpatialReference(coordinateSystem); if (spatialReference != null) { dataset.SetProjection(spatialReference.ExportToWkt()); } }
String toWKT(CoordinateReferenceSystem crs) { SpatialReference ref = new SpatialReference(); ref.ImportFromProj4(Proj.toString(crs)); return ref.ExportToWkt(); }
private BufferedImage extractAndReprojectRegion( ICRS nativeCrs ) { int requestEpsgCode = CRSUtils.getEpsgCode( bbox.getCoordinateSystem() ); int nativeEpsgCode = CRSUtils.getEpsgCode( nativeCrs ); SpatialReference requestSr = gdalSettings.getCrsAsWkt( requestEpsgCode ); SpatialReference nativeSr = gdalSettings.getCrsAsWkt( nativeEpsgCode ); Envelope nativeBbox = transform( bbox, requestSr, nativeSr ); List<byte[][]> nativeRegions = getIntersectingRegionsFromAllDatasets( nativeBbox ); if ( nativeRegions.isEmpty() ) { return null; } Dataset nativeRegion = composeMemDataset( nativeBbox, nativeSr.ExportToWkt(), nativeRegions ); Dataset reprojectedRegion = reproject( nativeRegion, requestSr.ExportToWkt() ); byte[][] rawImage = readBands( reprojectedRegion ); nativeRegion.delete(); reprojectedRegion.delete(); return toImage( rawImage, width, height, true ); }