Skip to content

Next tests on TileStache

3. May 2013

This time I will collect some additional functionalities of TileStache, that I have tested today.

The file I am working on is: gridding_test.cfg started by ~/Software/TileStache/scripts/tilestache-server.py -~/Software/TileStache/gridding_tests.cfg

The preview:

Was completely new to me…see TileStache-Documentation: Projections–>preview

This is a very good option to get an immediate preview of the data & styling that you are working on:

"layers": 
 {
 "visualise-vector":
 {
 "provider": {"name": "mapnik", "mapfile": "examples/gridding_style.xml"},
 "projection": "spherical mercator",
 "preview": 
 {
 "lat": 51.993,
 "lon": 10.744,
 "zoom": 7,
 "ext": "png"
 }
},
...

In my example…I call the preview via: http://localhost:8080/visualise-vector/preview.html

Vector-tiling:

Very simple…detailled descriptions can be found in the TileStache-Documentation: Layers–>Vector

I want to test the tile supply of tiled data in GeoJSON-format…so my code looks like this:

"vector-test":
 {
 "provider":{"name":"vector",
"driver":"GeoJSON", 
"parameters":{"file":"examples/sample_data/vg1000_bld.json"}, 
"properties":{"NAME":"GEN"}}
}

To test the code…I call: http://localhost:8080/vector-test/5/17/11.geojson

 

Advertisements
Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: