Tag Info

Hot answers tagged

5

The cache directory at C:/Users/Russell/.qgis/cache/ is actually the WMS-C/WMTS cache as @jef has mentioned. That's why it's in the Network tab of the Options dialog along with the WMS search address and proxy settings. The naming is unfortunate but it has nothing to do with the render caching which is used to speed up redraws and other common operations. ...


4

Given that you are requesting WMS tiles, you can use a cache service like WMS-C (WMS Cached), Tile Map Service (TMS) or Web Map Tile Service (WMTS); the latter is an OGC standard. There are several implementations of these standards; to mention some, there are GeoWebCache, TileCache or MapProxy. Because you are using GeoServer, I think that the best ...


4

You could create a TEMPORARY (or better UNLOGGED if you use pg9+) table to store the precalculated data (along with trigger functions to keep it in sync), but that's not an out-of-the-box solution as you'd have to write the queries yourself. But before you do that, you may want to try EXPLAIN and EXPLAIN ANALYZE on your view query, you may be able to find ...


4

GeoCache is not the only caching software (even if it fits nicely in the Geoserver ecosystem and UI). You could try MapCache (from the fine MapServer folks) which states to support vendor params (see last item on feature list). I could not find documentation on the matter, but the author(s) will usually answer quickly to well-termed questions. If MapCache ...


4

I think you would be violating the "Terms of Use" (third party terms here). It clearly says you cannot, "Store the results derived from Licensee's use of Web Service(s) for the purpose of creating a value-added, Webenabled Application that Licensee intends to resell, license, or otherwise distribute to third parties without the prior express written ...


4

The JSON response from the server should contain an error object (in JSON) that you might be able to use to tell your cache server to dismiss. I wasn't able to match your "Invalid URL" using ESRI's online servers, but got a similar light-pink error with the following URL: ...


3

It depends on tiling software. For example, in MapProxy (what is excellent choice for tiling), you can define 'coverages' in your configuration: http://mapproxy.org/docs/1.5.0/seed.html#id7, and regenerate only those areas. So, whenever your polygons change, define new coverage and re-seed your cache.


3

For caching postgres queries you should take a look ad pgPool II. pgPool is a middleware for postgres which, among other useful things, has an in-memory cache for queries. Please note that if even a single parameter changes the results will not be fetched from the cache (for obvious reasons). Depending on how the queries are made if the BBOX changes the ...


3

FeatureLayers and RasterLayers are layers created in memory, not in the scratch workspace (in background processing they create a file referencing the memory position but that is all). In order to remove those layers residing in memory, you need to explicitly delete them one by one using arcpy (they do not fall out of scope until Python exits). Note that ...


2

Check out this article reviewing Cloud Web Mapping APIs It has some of the answers you are looking for and handy links to the licensing docs. I think you will need to read the key sections yourself to make a call on this as offline usage depends very much on how you are planning to implement the solution.


2

in tiling world there are some ways for caching tiles. in my application i am using gdal which is an excellent tool for both conversion and tiling. with sid files you can translate it to tif and then with gdal2tiles.py will help you to tile your data.... some example codes: gdal_translate -of GTiff -co "TILED=YES" some.sid some.tif gdal2tiles -title "Sid ...


2

What type of strategy are you using? If you are using the boundingBox strategy, at each pan/zoom OL will do a new request to get the features that are inside the map. Depending on how many features you have, to lower the number of ajax request you can try to use the OpenLayers.Strategy.Fixed instead. About caching, OpenLayers has a caching controls, but I ...


2

HTTP POST requests are not normally cached - see this StackOverflow question: http://stackoverflow.com/questions/626057/is-it-possible-to-cache-post-methods-in-http However if you switch your WFS layer to use GET requests rather than POST requests then these requests can be cached. I had to apply a patch to my OpenLayers installation to get this to work ...


2

The HTML5 specs have a feature that does exactly what you need, for the details see the documentation on the Mozilla Developers Network: https://developer.mozilla.org/en/DOM/Manipulating_the_browser_history Unfortunately this means you will have to code the integration between OpenLayers and the different browser history implementations yourself. There are ...


2

Assuming your dataset doesn't change on a regular basis I think @dariapra's approach is the best for rendering images, but unfortunately it won't change the performance of your GetFeatureInfo requests - the database still needs to be queried each time. You might consider using GDAL's ogr2ogr (or pg2shp but I've never used this) to export your dataset into a ...


2

If I read this right, it sounds like you are a bit familiar with arcpy refresh issues. I believe you will be able to get by this if you use arcpy.RefreshCatalog() arcpy.RefreshCatalog documentation


2

I was indeed correct with my hypothesis. The correct way to set up Apache so that our requests are never duplicated unless required is to set a Expires mod in the HTTPD.conf file. First, enable the module: LoadModule expires_module modules/mod_expires.so Then, turn on caching for PNG images: ExpiresActive on ExpiresByType image/png "access plus 1 year" ...


2

There are a few options using TileMill/Mapbox/MBTiles... Not html5 though. You may want to explore other options for android than html5!! MBTilesDroidSplitter : https://github.com/djcoin/MBTilesDroidSpitter Locus : http://www.locusmap.eu/ Nutiteq : http://www.nutiteq.com/android-mapping-api-sdk


1

Well, it's been a few days. I've since given up on GeoWebCache and flopped over to MapProxy. It's MUCH more customizable. It's yaml configuration is open enough to allow me to specify the vendor keys in its own config, along with as many different providers/layers/caching routines I need. I highly recommend it!


1

There's an easy "fix" if you're brave enough to change the code source of QGIS: Open 'qgsmaptoolpan.cpp', and into the corresponding 'canvasMoveEvent' member, add the sentence "mCanvas->refresh();" as follows: void QgsMapToolPan::canvasMoveEvent( QMouseEvent * e ) { if (( e->buttons() & Qt::LeftButton ) ) { mDragging = true; // move map ...


1

Well there is lots of options you can do to improve speed. It depends on your skills. If you have long queries you may be in need to tune Postgresql memory resources. If you have javascript skills you can override the WMSGetFeatureInfo control from Openlayers and cache results into control to avoid repeated queries. If you know a little about server ...


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's hard to understand exactly what your question is, but if you are trying to create WMS requests for areas of interest (AOI) around your data points then using a WMS request with the boundingbox generated by the python sounds like the way to go. If you want to make use of your tile cache (GWC) then you need a more sophisticated client which can take ...


1

A couple of tips that might help: Don't use the ArcGIS numpy module - it's rubbish to say the least. Instead use the open source netCDF4 library to read the data into numpy arrays and process those instead, and then use the NumPyArrayToRaster tool in ArcPy to turn the results back into an ArcGIS compatible Raster. Rather than using the ArcPy scratch ...


1

One way would be to generate your own tiles on the disk: http://braincrunch.tumblr.com/post/9921938947/maperitive-tutorial-a-hiking-web-map-in-ten-easy-steps (you only need steps 1, 3, 5 and 7).


1

I think you want the IMapCooker2 Interface. It has two methods for clearing caches, Clear and ClearAll. Clear clears the cache for a given layer within a given extent. public void Clear ( ILayer pLayer, IEnvelope pExtent ); ClearAll on the other hand, clears cache for all layers. public void ClearAll ( );



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