Tag Info

Hot answers tagged

18

Here is excel sheet in Google Docs from GeoSolutions team (http://geo-solutions.blogspot.com/2010/12/estimating-time-and-space-required-to.html) https://spreadsheets4.google.com/ccc?key=tyCIm7rz8753DUGC9FyOXaw#gid=0


9

In other implementations (as in, our implementation) this is done with palette modification; you can quickly recolor a PNG image without touching the actual data, if you know the full original palette. Google doesn't do that; they likely have a tile-based database and tiles of vector data that are rasterized on the fly.


7

I'd recommend using TileMill to generate the tiles, it can save them out to a variety of formats including as mbtiles bundles which can be used for offline applications. Tilemill will give you cartographic control over the maps, and produces beautiful results. Alternatively, you could download the styled data from Cloudmade, the .img files should be full ...


6

I think there are two things that should help you accomplish this: documentation for creating custom layers sample showing how to put tiles in local storage Side note: you linked to the 1.6 docs. While valid for 1.6, the current version of the API is 2.5 and we recommend you use that as 1.6 is no longer being updated. Edit: Here's a working example of ...


5

i think you can achieve this with some css bindings which is not a gis solution. in css there are lots of css media types and one of these is print element. you can add this to your index page with this way: <link rel="stylesheet" type="text/css" media="print" href="print.css"> and with some css code may help you. body { background: white; ...


4

Another way would be to use Maperitive's generate-tiles command. Note: "couple of GBs" could be an optimistic estimate. Also note that Web tile servers usually don't pre-render all high-zoom tiles (like those for level 17) because a very small number (less than 1%) of them is actually ever used (requested) by browsers. So you'd probably need a way to ...


4

Did you try what the error message suggested and set the extent_type to loose? [vmap0] type=WMS url=http://localhost/cgi-bin/mapserv?map=maps/poimanager/nav 2tiles.map layers=nav_map bbox=-855822.40976158,3975513.7271299,-847686.6435646,3976531.2950689 levels=20 extent_type=loose I've also had to update one of the Python files in TileCache to avoid the ...


4

Unless you have access to some kind of geospatial server such as GeoServer, MapServer, or access to any ESRI Server products, rendering the GeoTiffs will be a problem. What I have done in the past when lacking a geospatial server was convert what I can via QGIS to a geojson file. QGIS can handle several formats of data which can be exported in several ...


3

There was a mention of a TileCache patch for this on the OSGeo mailing lists: http://www.osgeo.org/pipermail//tilecache/2009-June/001863.html Unfortunately the links to the patches no longer work. Apparently the patch involved a few changes to the code base, and would allow different caches to be used based on any URL argument. I have an old script (in ...


3

MapProxy is certainly a good option. If it is just a script you require, TileCache is another option. It's not as configurable as MapProxy, but it is a nice, light-weight solution. If you are already serving your WMS using GeoServer, then I'd recommend GeoWebCache.


3

I made a cheat-sheet that lists the total number of tiles for given zoom-levels. It has two tables. One showing the number of zoom-levels needed to show things at a certain scale, starting from a tile showing people. level 1: 1 # Person level 2: 5 # Car level 3: 21 # House building level 4: 85 # Square level 5: 341 # Small neighbourhood level 6: 1,365 # ...


3

I needed my TileCache configuration to look like this: [osm] type=Mapnik mapfile=/var/maps/bin/mapnik/osm.xml spherical_mercator=true I also needed to use a TMS layer type in OpenLayers. Everything is better now!


3

With your purpose, i think mapproxy (www.mapproxy.org) is the best choice. MapProxy not only caches tiles, wms source but also serve the cached tiles as TMS, WMS.


3

answer to my comment(this code is for my tms scheme and you can adapt it to your need): var originShift = 2 * Math.PI * 6378137 / 2.0; var initialResolution = 2 * Math.PI * 6378137 / 256; //tilesize var lon = 10; var lat = 20; var mx = lon * originShift / 180.0; var my = Math.log(Math.tan((90 + lat) * Math.PI / 360.0)) / (Math.PI / 180.0); my = my * ...


3

I know this isn't quite what you are looking for, but I thought you might find it useful anyway. Have you seen this example by Odoe which uses css filters on the maps? Might be limited outside of chrome http://www.odoe.net/apps/mapstyler/ https://github.com/odoe/MapStyler


2

Did you read the OSM Mapnik tutorial on the OSM wiki or any of the other tutorials online? Now you will find it much harderto do this on Windows, so for every single component of those tutorials, you are going to need to find a Windows port - not fun. Do yourself a favor and download Cygwin and OSGeo4W which will provide 90% of the components you need ...


2

Your bounds are wrong (in fact they are so wrong I'm surprised that you see that much map). Change maxExtent: new OpenLayers.Bounds(0.05917265625,0.1171263671875,0.0593009765625,0.11720234375), to something like : 'maxExtent': new OpenLayers.Bounds(-20037508.34,-20037508.34,20037508.34,20037508.34) You can also read this tutorial which discusses ...


2

You should be able to easily achieve that by: implement an on insert/update trigger which puts changed features on a work queue a worker that periodically wales up and grabs stuff to do from the queue and refreshes tiles Item 1 can be easily written in pure sql in postgres by means of a trigger. As for item 2 you just need to call the seed program (all ...


2

This issue is coming directly from ConfigParser, in Python. Glancing at your config, it looks like you have spaces at the beginning of your newlines, indenting your configuration options. If that's the case -- don't do that. I'm pretty sure that ConfigParser is refusing to parse that file.


2

Your tilecache.cfg file seems to be missing the mandatory [cache] section. Try adding: [cache] type=Disk base=C:/tmp/tilecache There are a few other options other than saving your cache to disk: # [cache] section examples: (mandatory!) # # Disk: # [cache] # type=Disk (works out of the box) # base=<full path to cache directory> # # Memcached: # ...


2

As per the documentation, switching from WMS to GeoWebCache only requires a URL change from: /geoserver/wms <- direct WMS /geoserver/gwc/service/wms <- geocached wms and you're good to go, no need to switch WMTS. BTW, GeoWebCache requires all tiles be 256x256. You can also seed the cache from the GeoCache home that can be reached from the ...


2

See the details for the sample Esri service at that URL, which contains the line: Single Fused Map Cache: true Verify that your own service also contains this line - chances are that it doesn't. In that case you need to build a cache using the instructions here. You'll then be able to display your data as a tiled layer.


2

Depending on what you need it may be that the new WMS animator from GeoServer could be a solution to your problem. See http://docs.geoserver.org/stable/en/user/tutorials/animreflector.html for more details. This blog post gives a longer account and an example.


2

To elaborate on johanvdw's answer: Files stored on hard drives use a minimum amount of storage, and the amount of storage they use is incremental and based on the formatted block size. The default windows block size is 4096 bytes, meaning that each file uses at least 4096 bytes of storage, and the amount of space used increments based on the block size. ...


2

use this: OpenLayers.Util.onImageLoadError = function() {this.src = '/img/noimg.png';}; i hope it helps you...


2

There are two patents I found while asking that question myself: Dynamic map rendering as a function of a user parameter US8103445 and Demand based texture rendering in a tile based rendering system US20110254852 Couldn't find any official information on who uses these or similar schemes, yet I guess the second paper's drawings look pretty straight ...


2

Here is a guide that is using Ordnance Survey tilecached rasters http://www.esdmwms.no-ip.co.uk/scripts/tilecache/tilecache-2.11/indexOS27700.html (some tiles are no longer present - seems the location has been moved/expired) How to Guide http://www.esdmdata.co.uk/tilecache-on-iis7-how-to


2

I just had the same problem. The answer is easy but the documentation made it non-obvious. Simply change the cache type to GoogleDisk. [cache] type=GoogleDisk Found the answer here: http://osgeo-org.1560.x6.nabble.com/SOLVED-Combine-Mapnik-generate-tiles-py-w-TileCache-td3965126.html


1

This will be a function of the block size used to format your hard disk and the actual tiles you have. It is best to create a small set and test it: On a windows box you can right click your directory and look at the properties to find out how much space on the disk your files occupy and how large they are. On unix systems you could use ls -ls to have ...


1

If you use OpenLayers 2.12RC2 (the stable version is coming), there is a build-in function to do this. See cache-read and cache-write examples. But I'm not sure you will have enought space throught html5 storage for all OSM :( You can also use MBTiles to keep OSM Tiles in SQLite database. Always throught OpenLayers, you can access them. See an example in ...



Only top voted, non community-wiki answers of a minimum length are eligible