Skip to content

Commit

Permalink
Added raster tiles
Browse files Browse the repository at this point in the history
  • Loading branch information
faselm committed Jun 5, 2020
1 parent 3aef4bb commit 188cf8e
Show file tree
Hide file tree
Showing 58 changed files with 292 additions and 0 deletions.
13 changes: 13 additions & 0 deletions data/mapfiles/raster_tileindex_simple.map
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
LAYER
NAME "raster_tileindex_simple"
TILEINDEX "../data/rasters/tileindex_simple.shp"
TYPE RASTER
PROCESSING "SCALE=AUTO"
DATA "../rasters/raster.tif"
EXTENT -180 -90 180 90
METADATA
"wms_title" "raster_tileindex_simple"
"wms_srs" "EPSG:4326"
END
OPACITY 100
END
17 changes: 17 additions & 0 deletions data/mapfiles/raster_tileindex_token.map
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
LAYER
NAME "raster_tileindex_token"
TILEINDEX "../data/rasters/tileindex_token.shp"
TYPE RASTER
PROCESSING "SCALE=AUTO"
DATA "../rasters/raster.tif"
METADATA
"wms_title" "raster_tileindex_token"
"wms_srs" "EPSG:4326"
END
EXTENT -180 -90 180 90
METADATA
"wms_title" "raster_tileindex_token"
"wms_srs" "EPSG:4326"
END
OPACITY 100
END
Binary file added data/rasters/1/raster_1_1.tif
Binary file not shown.
11 changes: 11 additions & 0 deletions data/rasters/1/raster_1_1.tif.aux.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<PAMDataset>
<PAMRasterBand band="1">
<Metadata>
<MDI key="STATISTICS_MAXIMUM">1563</MDI>
<MDI key="STATISTICS_MEAN">788.30791793456</MDI>
<MDI key="STATISTICS_MINIMUM">422</MDI>
<MDI key="STATISTICS_STDDEV">281.72302701398</MDI>
<MDI key="STATISTICS_VALID_PERCENT">97.28</MDI>
</Metadata>
</PAMRasterBand>
</PAMDataset>
Binary file added data/rasters/1/raster_1_2.tif
Binary file not shown.
11 changes: 11 additions & 0 deletions data/rasters/1/raster_1_2.tif.aux.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<PAMDataset>
<PAMRasterBand band="1">
<Metadata>
<MDI key="STATISTICS_MAXIMUM">1316</MDI>
<MDI key="STATISTICS_MEAN">643.752627641</MDI>
<MDI key="STATISTICS_MINIMUM">421</MDI>
<MDI key="STATISTICS_STDDEV">170.86862702274</MDI>
<MDI key="STATISTICS_VALID_PERCENT">98.33</MDI>
</Metadata>
</PAMRasterBand>
</PAMDataset>
Binary file added data/rasters/1/raster_2_1.tif
Binary file not shown.
11 changes: 11 additions & 0 deletions data/rasters/1/raster_2_1.tif.aux.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<PAMDataset>
<PAMRasterBand band="1">
<Metadata>
<MDI key="STATISTICS_MAXIMUM">2276</MDI>
<MDI key="STATISTICS_MEAN">772.10982148236</MDI>
<MDI key="STATISTICS_MINIMUM">370</MDI>
<MDI key="STATISTICS_STDDEV">337.13775312675</MDI>
<MDI key="STATISTICS_VALID_PERCENT">96.78</MDI>
</Metadata>
</PAMRasterBand>
</PAMDataset>
Binary file added data/rasters/1/raster_2_2.tif
Binary file not shown.
11 changes: 11 additions & 0 deletions data/rasters/1/raster_2_2.tif.aux.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<PAMDataset>
<PAMRasterBand band="1">
<Metadata>
<MDI key="STATISTICS_MAXIMUM">3592</MDI>
<MDI key="STATISTICS_MEAN">1455.4054539257</MDI>
<MDI key="STATISTICS_MINIMUM">557</MDI>
<MDI key="STATISTICS_STDDEV">496.04683282357</MDI>
<MDI key="STATISTICS_VALID_PERCENT">98.18</MDI>
</Metadata>
</PAMRasterBand>
</PAMDataset>
Binary file added data/rasters/2/raster_1_1.tif
Binary file not shown.
11 changes: 11 additions & 0 deletions data/rasters/2/raster_1_1.tif.aux.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<PAMDataset>
<PAMRasterBand band="1">
<Metadata>
<MDI key="STATISTICS_MAXIMUM">3492</MDI>
<MDI key="STATISTICS_MEAN">882.08639406041</MDI>
<MDI key="STATISTICS_MINIMUM">370</MDI>
<MDI key="STATISTICS_STDDEV">439.05731821905</MDI>
<MDI key="STATISTICS_VALID_PERCENT">97.88</MDI>
</Metadata>
</PAMRasterBand>
</PAMDataset>
Binary file added data/rasters/raster_1_1.tif
Binary file not shown.
11 changes: 11 additions & 0 deletions data/rasters/raster_1_1.tif.aux.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<PAMDataset>
<PAMRasterBand band="1">
<Metadata>
<MDI key="STATISTICS_MAXIMUM">1419</MDI>
<MDI key="STATISTICS_MEAN">931.78893389501</MDI>
<MDI key="STATISTICS_MINIMUM">435</MDI>
<MDI key="STATISTICS_STDDEV">150.08006836026</MDI>
<MDI key="STATISTICS_VALID_PERCENT">94.18</MDI>
</Metadata>
</PAMRasterBand>
</PAMDataset>
Binary file added data/rasters/raster_1_2.tif
Binary file not shown.
11 changes: 11 additions & 0 deletions data/rasters/raster_1_2.tif.aux.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<PAMDataset>
<PAMRasterBand band="1">
<Metadata>
<MDI key="STATISTICS_MAXIMUM">1584</MDI>
<MDI key="STATISTICS_MEAN">899.78103732248</MDI>
<MDI key="STATISTICS_MINIMUM">422</MDI>
<MDI key="STATISTICS_STDDEV">270.08486495298</MDI>
<MDI key="STATISTICS_VALID_PERCENT">98.2</MDI>
</Metadata>
</PAMRasterBand>
</PAMDataset>
Binary file added data/rasters/raster_1_3.tif
Binary file not shown.
11 changes: 11 additions & 0 deletions data/rasters/raster_1_3.tif.aux.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<PAMDataset>
<PAMRasterBand band="1">
<Metadata>
<MDI key="STATISTICS_MAXIMUM">1326</MDI>
<MDI key="STATISTICS_MEAN">588.90162303339</MDI>
<MDI key="STATISTICS_MINIMUM">420</MDI>
<MDI key="STATISTICS_STDDEV">195.51040526398</MDI>
<MDI key="STATISTICS_VALID_PERCENT">98.15</MDI>
</Metadata>
</PAMRasterBand>
</PAMDataset>
Binary file added data/rasters/raster_1_4.tif
Binary file not shown.
11 changes: 11 additions & 0 deletions data/rasters/raster_1_4.tif.aux.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<PAMDataset>
<PAMRasterBand band="1">
<Metadata>
<MDI key="STATISTICS_MAXIMUM">883</MDI>
<MDI key="STATISTICS_MEAN">561.6930314927</MDI>
<MDI key="STATISTICS_MINIMUM">419</MDI>
<MDI key="STATISTICS_STDDEV">104.54291063459</MDI>
<MDI key="STATISTICS_VALID_PERCENT">95.85</MDI>
</Metadata>
</PAMRasterBand>
</PAMDataset>
Binary file added data/rasters/raster_2_1.tif
Binary file not shown.
11 changes: 11 additions & 0 deletions data/rasters/raster_2_1.tif.aux.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<PAMDataset>
<PAMRasterBand band="1">
<Metadata>
<MDI key="STATISTICS_MAXIMUM">1582</MDI>
<MDI key="STATISTICS_MEAN">823.05617155311</MDI>
<MDI key="STATISTICS_MINIMUM">422</MDI>
<MDI key="STATISTICS_STDDEV">319.83941483055</MDI>
<MDI key="STATISTICS_VALID_PERCENT">95.92</MDI>
</Metadata>
</PAMRasterBand>
</PAMDataset>
Binary file added data/rasters/raster_2_2.tif
Binary file not shown.
11 changes: 11 additions & 0 deletions data/rasters/raster_2_2.tif.aux.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<PAMDataset>
<PAMRasterBand band="1">
<Metadata>
<MDI key="STATISTICS_MAXIMUM">935</MDI>
<MDI key="STATISTICS_MEAN">509.51097106934</MDI>
<MDI key="STATISTICS_MINIMUM">422</MDI>
<MDI key="STATISTICS_STDDEV">90.770865412915</MDI>
<MDI key="STATISTICS_VALID_PERCENT">100</MDI>
</Metadata>
</PAMRasterBand>
</PAMDataset>
Binary file added data/rasters/raster_2_3.tif
Binary file not shown.
11 changes: 11 additions & 0 deletions data/rasters/raster_2_3.tif.aux.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<PAMDataset>
<PAMRasterBand band="1">
<Metadata>
<MDI key="STATISTICS_MAXIMUM">1276</MDI>
<MDI key="STATISTICS_MEAN">677.00445556641</MDI>
<MDI key="STATISTICS_MINIMUM">429</MDI>
<MDI key="STATISTICS_STDDEV">142.52009578412</MDI>
<MDI key="STATISTICS_VALID_PERCENT">100</MDI>
</Metadata>
</PAMRasterBand>
</PAMDataset>
Binary file added data/rasters/raster_2_4.tif
Binary file not shown.
11 changes: 11 additions & 0 deletions data/rasters/raster_2_4.tif.aux.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<PAMDataset>
<PAMRasterBand band="1">
<Metadata>
<MDI key="STATISTICS_MAXIMUM">1201</MDI>
<MDI key="STATISTICS_MEAN">752.83227398177</MDI>
<MDI key="STATISTICS_MINIMUM">508</MDI>
<MDI key="STATISTICS_STDDEV">153.46118457061</MDI>
<MDI key="STATISTICS_VALID_PERCENT">97.82</MDI>
</Metadata>
</PAMRasterBand>
</PAMDataset>
Binary file added data/rasters/raster_3_1.tif
Binary file not shown.
11 changes: 11 additions & 0 deletions data/rasters/raster_3_1.tif.aux.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<PAMDataset>
<PAMRasterBand band="1">
<Metadata>
<MDI key="STATISTICS_MAXIMUM">947</MDI>
<MDI key="STATISTICS_MEAN">638.63463747766</MDI>
<MDI key="STATISTICS_MINIMUM">386</MDI>
<MDI key="STATISTICS_STDDEV">124.58954079356</MDI>
<MDI key="STATISTICS_VALID_PERCENT">95.63</MDI>
</Metadata>
</PAMRasterBand>
</PAMDataset>
Binary file added data/rasters/raster_3_2.tif
Binary file not shown.
11 changes: 11 additions & 0 deletions data/rasters/raster_3_2.tif.aux.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<PAMDataset>
<PAMRasterBand band="1">
<Metadata>
<MDI key="STATISTICS_MAXIMUM">2217</MDI>
<MDI key="STATISTICS_MEAN">874.01443481446</MDI>
<MDI key="STATISTICS_MINIMUM">461</MDI>
<MDI key="STATISTICS_STDDEV">245.54087580493</MDI>
<MDI key="STATISTICS_VALID_PERCENT">100</MDI>
</Metadata>
</PAMRasterBand>
</PAMDataset>
Binary file added data/rasters/raster_3_3.tif
Binary file not shown.
11 changes: 11 additions & 0 deletions data/rasters/raster_3_3.tif.aux.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<PAMDataset>
<PAMRasterBand band="1">
<Metadata>
<MDI key="STATISTICS_MAXIMUM">2368</MDI>
<MDI key="STATISTICS_MEAN">1373.6136474609</MDI>
<MDI key="STATISTICS_MINIMUM">650</MDI>
<MDI key="STATISTICS_STDDEV">323.59586630808</MDI>
<MDI key="STATISTICS_VALID_PERCENT">100</MDI>
</Metadata>
</PAMRasterBand>
</PAMDataset>
Binary file added data/rasters/raster_3_4.tif
Binary file not shown.
11 changes: 11 additions & 0 deletions data/rasters/raster_3_4.tif.aux.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<PAMDataset>
<PAMRasterBand band="1">
<Metadata>
<MDI key="STATISTICS_MAXIMUM">2673</MDI>
<MDI key="STATISTICS_MEAN">1152.9533241402</MDI>
<MDI key="STATISTICS_MINIMUM">555</MDI>
<MDI key="STATISTICS_STDDEV">489.8074155498</MDI>
<MDI key="STATISTICS_VALID_PERCENT">97.89</MDI>
</Metadata>
</PAMRasterBand>
</PAMDataset>
Binary file added data/rasters/raster_4_1.tif
Binary file not shown.
11 changes: 11 additions & 0 deletions data/rasters/raster_4_1.tif.aux.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<PAMDataset>
<PAMRasterBand band="1">
<Metadata>
<MDI key="STATISTICS_MAXIMUM">1089</MDI>
<MDI key="STATISTICS_MEAN">440.11167849518</MDI>
<MDI key="STATISTICS_MINIMUM">370</MDI>
<MDI key="STATISTICS_STDDEV">140.74230009025</MDI>
<MDI key="STATISTICS_VALID_PERCENT">92.74</MDI>
</Metadata>
</PAMRasterBand>
</PAMDataset>
Binary file added data/rasters/raster_4_2.tif
Binary file not shown.
11 changes: 11 additions & 0 deletions data/rasters/raster_4_2.tif.aux.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<PAMDataset>
<PAMRasterBand band="1">
<Metadata>
<MDI key="STATISTICS_MAXIMUM">2322</MDI>
<MDI key="STATISTICS_MEAN">1138.4627631688</MDI>
<MDI key="STATISTICS_MINIMUM">370</MDI>
<MDI key="STATISTICS_STDDEV">429.05921180517</MDI>
<MDI key="STATISTICS_VALID_PERCENT">96.96</MDI>
</Metadata>
</PAMRasterBand>
</PAMDataset>
Binary file added data/rasters/raster_4_3.tif
Binary file not shown.
11 changes: 11 additions & 0 deletions data/rasters/raster_4_3.tif.aux.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<PAMDataset>
<PAMRasterBand band="1">
<Metadata>
<MDI key="STATISTICS_MAXIMUM">2725</MDI>
<MDI key="STATISTICS_MEAN">1561.0085002201</MDI>
<MDI key="STATISTICS_MINIMUM">951</MDI>
<MDI key="STATISTICS_STDDEV">314.07794643421</MDI>
<MDI key="STATISTICS_VALID_PERCENT">97.26</MDI>
</Metadata>
</PAMRasterBand>
</PAMDataset>
Binary file added data/rasters/raster_4_4.tif
Binary file not shown.
11 changes: 11 additions & 0 deletions data/rasters/raster_4_4.tif.aux.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<PAMDataset>
<PAMRasterBand band="1">
<Metadata>
<MDI key="STATISTICS_MAXIMUM">3647</MDI>
<MDI key="STATISTICS_MEAN">2059.1472777861</MDI>
<MDI key="STATISTICS_MINIMUM">890</MDI>
<MDI key="STATISTICS_STDDEV">511.44452753138</MDI>
<MDI key="STATISTICS_VALID_PERCENT">95.37</MDI>
</Metadata>
</PAMRasterBand>
</PAMDataset>
Binary file added data/rasters/tileindex_pyr1.dbf
Binary file not shown.
1 change: 1 addition & 0 deletions data/rasters/tileindex_pyr1.prj
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]]
Binary file added data/rasters/tileindex_pyr1.shp
Binary file not shown.
Binary file added data/rasters/tileindex_pyr1.shx
Binary file not shown.
Binary file added data/rasters/tileindex_pyr2.dbf
Binary file not shown.
1 change: 1 addition & 0 deletions data/rasters/tileindex_pyr2.prj
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]]
Binary file added data/rasters/tileindex_pyr2.shp
Binary file not shown.
Binary file added data/rasters/tileindex_pyr2.shx
Binary file not shown.
Binary file added data/rasters/tileindex_simple.dbf
Binary file not shown.
1 change: 1 addition & 0 deletions data/rasters/tileindex_simple.prj
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]]
Binary file added data/rasters/tileindex_simple.shp
Binary file not shown.
Binary file added data/rasters/tileindex_simple.shx
Binary file not shown.
14 changes: 14 additions & 0 deletions data/styles/raster_tileindex_simple.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { Style } from 'geostyler-style';

const rasterStyle: Style = {
'name': 'raster_tileindex_simple',
'rules': [{
'name': 'Test raster',
'symbolizers': [{
'kind': 'Raster',
'opacity': 0.5,
}]
}]
};

export default rasterStyle;
14 changes: 14 additions & 0 deletions data/styles/raster_tileindex_token.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { Style } from 'geostyler-style';

const rasterStyle: Style = {
'name': 'raster_tileindex_token',
'rules': [{
'name': 'Test raster',
'symbolizers': [{
'kind': 'Raster',
'opacity': 0.5,
}]
}]
};

export default rasterStyle;

0 comments on commit 188cf8e

Please sign in to comment.