Hot answers tagged tilecache
8
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.
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
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
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
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
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
1
check these links:
http://geowebcache.org/docs/current/services/gmaps.html
How to setup GeoWebCache to produce same grid as GoogleMaps?
http://fuzzytolerance.info/blog/google-earth-api-integration-via-geowebcache/
Hope these links will help you.
1
As @Sunil notes: for the tiles part, see the Tiles in local storage developer sample and for the feature layers see Local storage - experimental. Each sample is complete, in the sense that they're working demos, you'll still need to modify to suit your local circumstances.
1
Standard L.Tilelayer in leaflet supports TMS and tilecache outputs TMS.
Don't forget to set the tms property to true.
example:
var grb = L.tileLayer( "http://grb.agiv.be/geodiensten/raadpleegdiensten/geocache/tms/1.0.0/grb_bsk@GoogleMapsVL/{z}/{x}/{y}.png" , {
tms: true
});
1
Thank you for your help Mintx. I had 2 versions of python on my computer. I removed both then, jsust to be thorough, I also uninstalled sp1. Then I used to original install disk and re-installed python and ran sp1 again. Everything works fine now. Looks like it was pointing to an older version of python after all. Thanks again.
1
I managed to find the issue with this after having a break for a while and coming back to it.
The Mapserver config needed the EXTENT parameter changing from
EXTENT 600000.000000 200000.000000 660000.000000 300000.000
to
EXTENT 600000.000000 200000.000000 660000.000000 300000.000000
Once I'd made this change I ran the command from ...
1
Try using http headers to control the cache in the local browser or caching proxy server and set a shorter time interval such as 5 mins or 15 mins depending on how static your data is. This way you can get some of the benefit of caching and let the http cache or http caching proxy handle the expiry.
1
If I understood correct your problem is that it is impossible to determine the combination of layers with each request as users can select any of the 140 layers and the client is sending one request for all layers combined (ie not a request for each layer).
In that case you could try fronting your WMS servers with a caching service like MapProxy or Mapcache ...
1
It sounds like you first tried a source install of Mapnik. At this time input plugins were properly installed into the default directory at /usr/local/lib/mapnik/input. But the postgis plugin was not built because you did not have the pg_config program available and/or the postgres-devel package. If you followed ...
1
can u try it not defining lots of layer definations as following:
var url = "http://107.21.18.93/ArcGIS/rest/services/GeoScience
/GeologyUnitBoundaries/MapServer"
var overlayLayer = new OpenLayers.Layer.ArcGISCache('GeoScience', url, {
tileOrigin: tileOrigin,
...
1
you can do it on your tilecache.cfg configuration file to changing tms_type parameter to #tms_type=google... you can get some information here...
tms_type
Setting this to “google” will cause tiles to switch vertical order (that is,
following the Google style x/y pattern).
i hope it helps you...
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
(B2) When you will try to request getCapabilities for the WMTS layer and layer name has same name in geowebcache.xml you will get the response which contains capabilities of two layers with the same name but different . If you are getting layers on client via OpenScales you'll notice that HashMap of my:Layer will be broken.
Different names in ...
1
Ran into the same issue (e), using namespace:layername for WMTS layer parameter solved this issue for me.
I noticed following behaviour:
Requesting a WMTS Tile without namespace for the WMTS layer parameter
always forces a reseed of tiles (e.g.
http://example.net/geoserver/gwc/service/wmts/?SERVICE=WMTS&REQUEST=GetTile&LAYER=layername...)
...
1
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 ...
1
It is not enough to make the extents match. Setting the service bbox value and the OL map maxExtent to be the same value will not result in layers begin placed in the correct location. You must be very specific about the extent you choose. I've posted a tool here which provides an extent which corresponds to a tile in the web mercator projection.
For all ...
Only top voted, non community-wiki answers of a minimum length are eligible
