Skip to content
Nutiteq edited this page Jan 27, 2014 · 2 revisions

GDAL Map layer is included in AdvancedMap project as GdalMapLayer.java. Usage as baselayer:

  gdalLayer = new GdalMapLayer(proj, 0, 18, 9991, Environment.getExternalStorageDirectory().getPath()+"/NE2_HR_LC_SR_W.tif", mapView, true);
  mapView.getLayers().setBaseLayer(gdalLayer);

Usage notes:

  • Raster data looks nice on narrow zoom range, downscaling is slow for big datasets and upscaling gives only huge pixels. You may need to adjust visible zoom range by modifying isSuitableZoom() method of the layer, this limits dataset to certain zoom levels close to raster native zoom.
  • The layer caches data as map tiles, so next loading is much faster than initial data loading
  • The layer supports on the fly reprojection (using GDAL VRT feature), but this is generally at least 2x slower than reading data from same projection as map layer
  • Not all GDAL drivers are compiled in, the ones which require additional dependencies (e.g. online data like WMS, or online databases) are therefore not available. If you really need some of these, then we could take a look if this is fixable.
  • We have tried out only small list of test files (GeoTIFF, NOAA KAP/BSB), other formats and raster encodings may or may not work. Please post to the nutiteq-dev list if your data did not work, and give us your data sample.
  • Currently included drivers:
VRT (Virtual Raster)
GTiff (GeoTIFF)
NITF (National Imagery Transmission Format)
RPFTOC (Raster Product Format TOC format)
ECRGTOC (ECRG TOC format)
HFA (Erdas Imagine Images (.img))
SAR_CEOS (CEOS SAR Image)
CEOS (CEOS Image)
JAXAPALSAR (JAXA PALSAR Product Reader (Level 1.1/1.5))
GFF (Ground-based SAR Applications Testbed File Format (.gff))
ELAS (ELAS)
AIG (Arc/Info Binary Grid)
AAIGrid (Arc/Info ASCII Grid)
GRASSASCIIGrid (GRASS ASCII Grid)
SDTS (SDTS Raster)
DTED (DTED Elevation Raster)
PNG (Portable Network Graphics)
JPEG (JPEG JFIF)
MEM (In Memory Raster)
JDEM (Japanese DEM (.mem))
GIF (Graphics Interchange Format (.gif))
BIGGIF (Graphics Interchange Format (.gif))
ESAT (Envisat Image Format)
BSB (Maptech BSB Nautical Charts)
XPM (X11 PixMap Format)
BMP (MS Windows Device Independent Bitmap)
DIMAP (SPOT DIMAP)
AirSAR (AirSAR Polarimetric Image)
RS2 (RadarSat 2 XML Product)
PCIDSK (PCIDSK Database File)
PCRaster (PCRaster Raster File)
ILWIS (ILWIS Raster Map)
SGI (SGI Image File Format 1.0)
SRTMHGT (SRTMHGT File Format)
Leveller (Leveller heightfield)
Terragen (Terragen heightfield)
ISIS3 (USGS Astrogeology ISIS cube (Version 3))
ISIS2 (USGS Astrogeology ISIS cube (Version 2))
PDS (NASA Planetary Data System)
TIL (EarthWatch .TIL)
ERS (ERMapper .ers Labelled)
L1B (NOAA Polar Orbiter Level 1b Data Set)
FIT (FIT Image)
GRIB (GRIdded Binary (.grb))
RMF (Raster Matrix Format)
MSGN (EUMETSAT Archive native (.nat))
RST (Idrisi Raster A.1)
INGR (Intergraph Raster)
GSAG (Golden Software ASCII Grid (.grd))
GSBG (Golden Software Binary Grid (.grd))
GS7BG (Golden Software 7 Binary Grid (.grd))
COSAR (COSAR Annotated Binary Matrix (TerraSAR-X))
TSX (TerraSAR-X Product)
COASP (DRDC COASP SAR Processor Raster)
R (R Object Data Store)
PNM (Portable Pixmap Format (netpbm))
DOQ1 (USGS DOQ (Old Style))
DOQ2 (USGS DOQ (New Style))
ENVI (ENVI .hdr Labelled)
EHdr (ESRI .hdr Labelled)
GenBin (Generic Binary (.hdr Labelled))
PAux (PCI .aux Labelled)
MFF (Vexcel MFF Raster)
MFF2 (Vexcel MFF2 (HKV) Raster)
FujiBAS (Fuji BAS Scanner Image)
GSC (GSC Geogrid)
FAST (EOSAT FAST Format)
BT (VTP .bt (Binary Terrain) 1.3 Format)
LAN (Erdas .LAN/.GIS)
CPG (Convair PolGASP)
IDA (Image Data and Analysis)
NDF (NLAPS Data Format)
EIR (Erdas Imagine Raw)
DIPEx (DIPEx)
LCP (FARSITE v.4 Landscape File (.lcp))
GTX (NOAA Vertical Datum .GTX)
LOSLAS (NADCON .los/.las Datum Grid Shift)
NTv2 (NTv2 Datum Grid Shift)
ACE2 (ACE2)
SNODAS (Snow Data Assimilation System)
RIK (Swedish Grid RIK (.rik))
USGSDEM (USGS Optional ASCII DEM (and CDED))
GXF (GeoSoft Grid Exchange Format)
NWT_GRD (Northwood Numeric Grid Format .grd/.tab)
NWT_GRC (Northwood Classified Grid Format .grc/.tab)
ADRG (ARC Digitized Raster Graphics)
SRP (Standard Raster Product (ASRP/USRP))
BLX (Magellan topo (.blx))
SAGA (SAGA GIS Binary Grid (.sdat))
KMLSUPEROVERLAY (Kml Super Overlay)
XYZ (ASCII Gridded XYZ)
HF2 (HF2/HFZ heightfield raster)
OZI (OziExplorer Image File)
CTG (USGS LULC Composite Theme Grid)
E00GRID (Arc/Info Export E00 GRID)
ZMap (ZMap Plus Grid)
NGSGEOID (NOAA NGS Geoid Height Grids)
Clone this wiki locally