skrueger.geotools.io
Class GeoImportUtilURL
java.lang.Object
schmitzm.geotools.io.GeoImportUtil
skrueger.geotools.io.GeoImportUtilURL
public class GeoImportUtilURL
- extends GeoImportUtil
Erweiterungen von Martin's GeoImportUtil
classe fuer die konsequente Benutzung mit URL
s.
TODO Diese Klasse sollte vielleicht mit der GeoImportUtil
zusammengefuegt werden.
- Author:
- Stefan Alfons Krüger
Method Summary |
static GridCoverage2D |
readGridFromGeoTiff(URL geotiffURL,
CoordinateReferenceSystem crs)
Diese Methode importiert ein Raster aus einer Datei im GeoTIFF-Format. |
static GridCoverage2D |
readGridFromImage(URL url)
Read a GridCoverage2D from an image file. .prj and .wld files are usually expected |
static GridCoverage2D |
readGridFromImage(URL url,
CoordinateReferenceSystem crs)
Read a GridCoverage2D from an image file. .wld file is usually expected also. |
Methods inherited from class schmitzm.geotools.io.GeoImportUtil |
createGridReaderFromGeoTiff, createGridReaderFromGeoTiff, determineProjection, determineProjection, getDEFAULT_CRS, readDataStoreFromShape, readFeaturesFromShapeFile, readFeaturesFromShapeURL, readGeometriesFromShapeFile, readGridFromArcInfoASCII, readGridFromArcInfoASCII, readGridFromArcInfoASCII, readGridFromGeoTiff, readGridFromGeoTiff, readGridRasterFromArcInfoASCII, readGridRasterFromArcInfoASCII, readGridRasterFromGeoTiff, readGridRasterFromGeoTiff, readProjectionFile, readProjectionFile, readProjectionString, readWorldFile, readWorldFile, setDEFAULT_CRS |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GeoImportUtilURL
public GeoImportUtilURL()
readGridFromImage
public static GridCoverage2D readGridFromImage(URL url)
throws IOException
- Read a
GridCoverage2D
from an image file. .prj and .wld files are usually expected
- Throws:
IOException
readGridFromImage
public static GridCoverage2D readGridFromImage(URL url,
CoordinateReferenceSystem crs)
throws IOException
- Read a
GridCoverage2D
from an image file. .wld file is usually expected also. The CRS can be given as the crs parameter. null is valid.
- Throws:
IOException
readGridFromGeoTiff
public static GridCoverage2D readGridFromGeoTiff(URL geotiffURL,
CoordinateReferenceSystem crs)
throws Exception
- Diese Methode importiert ein Raster aus einer Datei im GeoTIFF-Format.
Zunaechst wird versucht, die Geo-Informationen (Referenz+CRS) aus den
TIFF-Metadaten zu ermitteln. Ist dies nicht erfolgreich, werden ein
gleichnamiges World-File (.tfw) und Projection-File (.prj) herangezogen.
Als Projektion (.prj) ist sowohl ein EPSG-Code "EPSG:...", als auch eine
WKT-Definition erlaubt. Kann kein CRS ermitteln werden, wird
GeoImportUtil.DEFAULT_CRS
als CRS verwendet.
- Parameters:
geotiffURL
- URL to GeoTIFF-Filecrs
- erzwungenes CoordinateReferenceSystem fuer das Raster (kann
null
sein)
- Throws:
Exception
- bei irgendeinem Fehler