forked from gwaldron/osgearth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfeature_rasterize_2.earth
56 lines (43 loc) · 1.53 KB
/
feature_rasterize_2.earth
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<!--
osgEarth Sample
This demonstrates the "agglite" feature rasterizing driver. It "drapes" vector data by
rasterizing it into image tiles.
-->
<map name="Rasterization Example" type="geocentric" version="2">
<image name="readymap_imagery" driver="tms">
<url>http://readymap.org/readymap/tiles/1.0.0/7/</url>
</image>
<image name="states" driver="agglite">
<cache_policy usage="no_cache"/>
<features name="states" driver="ogr">
<url>../data/usa.shp</url>
<ogr_driver>ESRI Shapefile</ogr_driver>
<build_spatial_index>true</build_spatial_index>
</features>
<styles>
<style type="text/css">
default {
stroke: #ffff00;
stroke-width: .5km;
}
</style>
</styles>
</image>
<image name="roads" driver="agglite" min_level="3">
<cache_policy usage="no_cache"/>
<features name="roads" driver="ogr">
<url>../data/istates_dissolve.shp</url>
<ogr_driver>ESRI Shapefile</ogr_driver>
<build_spatial_index>true</build_spatial_index>
</features>
<styles>
<style type="text/css">
default {
stroke: #ff6666ff;
stroke-width: 4km;
stroke-min-pixels: 2;
}
</style>
</styles>
</image>
</map>