Skip to content

Commit

Permalink
SPH index generatie in doel dir van TIFFs + SLD verschuiving 1600px t…
Browse files Browse the repository at this point in the history
…bv OSM tiling
  • Loading branch information
justb4 committed Mar 5, 2015
1 parent ed568cc commit 27bb0bc
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 8 deletions.
6 changes: 4 additions & 2 deletions opentopo/bin/topotrans.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,7 @@ do

done

echo "Maak index aan met gdaltindex"
gdaltindex opentopo.shp $dst_dir/*.tif
echo "Maak index.shp aan met gdaltindex in $dst_dir"
pushd $dst_dir
gdaltindex index.shp *.tif
popd
31 changes: 27 additions & 4 deletions opentopo/sld/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ de kaart wordt afgebeeld. De omrekeneenheid hiervoor is DPI (dots per inch) om v
komen. The OGC standard output resolution is 90 DPI. OpenLayers 25.4 / 0.28 = 90.7. 1 inch is 0.0254m.
90 / 0.0254 = 3543.3 px/m. Dus bijv resolutie 6.72 wordt schaal: 6.72 * 3543.3 = 1: 23811 (benadering)



Overzicht zoom/resolutie/aantal tiles/opslag en OpenTopo set. De GeoServer DPI is 90 (OGC standaard), dus omrekening
van resolutie naar schaal (voor RD) is:

Expand Down Expand Up @@ -92,8 +90,8 @@ Hierop baseren we deze indeling naar schalen bij benadering, zodat iedere resolu
Google projectie, maar maakt voor tiling niet uit omdat daar vaste resoluties gekozen worden.

```
0-4000 1600px/km
4000-10000 800px/km
0-5000 1600px/km
5000-10000 800px/km
10000-20000 400px/km
20000-80000 200px/km
80000-en hoger 37.5px/km
Expand Down Expand Up @@ -130,3 +128,28 @@ worden uitgezet. Dit kan mbv van SLDs, bijv. tussen schalen 1:9000 en 1:20000 wo
```

OSM tilecache berekening


| Zoom | Tiles at zoom | Total tiles | Storage tot |
|--------|---------------|----------------|-------------|
| 5 | 1 | 1 | 100 |
| 6 | 4 | 4 | 100 |
| 7 | 16 | 16 | 100 |
| 8 | 64 | 64 | 100 |
| 9 | 256 | 256 | 100 |
| 10 | 1,024 | 1,024 | 100 |
| 11 | 4,096 | 4,096 | 100 |
| 12 | 16,384 | 16,384 | 100 |
| 13 | 65,536 | 87,380 | 100 |
| 14 | 262,144 | 262,144 | 100 |
| 15 | 1,048,576 | 1,048,576 | 100 |
| 16 | 4,194,304 | 4,194,304 | 100 |
| 17 | 16,777,216 | 16,777,216 | 80.32 |
| 18 | 67,108,864 | 67,108,864 | 53.11 |
| 19 | 268,435,456 | 268,435,456 | 32.72 |




2 changes: 1 addition & 1 deletion opentopo/sld/opentopo-1600.sld
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<FeatureTypeStyle>
<FeatureTypeName>Feature</FeatureTypeName>
<Rule>
<MaxScaleDenominator>4000</MaxScaleDenominator>
<MaxScaleDenominator>5000</MaxScaleDenominator>
<RasterSymbolizer>
<Opacity>1.0</Opacity>
</RasterSymbolizer>
Expand Down
2 changes: 1 addition & 1 deletion opentopo/sld/opentopo-800.sld
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<FeatureTypeStyle>
<FeatureTypeName>Feature</FeatureTypeName>
<Rule>
<MinScaleDenominator>4000</MinScaleDenominator>
<MinScaleDenominator>5000</MinScaleDenominator>
<MaxScaleDenominator>10000</MaxScaleDenominator>
<RasterSymbolizer>
<Opacity>1.0</Opacity>
Expand Down

0 comments on commit 27bb0bc

Please sign in to comment.