Been a while since I posted, so posting some humour seems like a good start to getting back on track...
Design Token-Based UI Architecture
1 week ago
Because the shortest distance between two thoughts is a straight line
lyr.mergeNewParams({'CQL_FILTER': "filter expression" });
infoControl.vendorParams = { 'CQL_FILTER': 'filter expression'};
infoControl.vendorParams = { 'CQL_FILTER': 'filt-1; filt-2; filt-3'};
var infoControl; function initInfoControl() { infoControl = new OpenLayers.Control.WMSGetFeatureInfo({ url: wms_url, title: 'Identify features by clicking', layers: [ layers.... ], queryVisible: true, maxFeatures: 3, infoFormat: 'application/vnd.ogc.gml' }); infoControl.events.register( "beforegetfeatureinfo", null, onBeforeGetFeatureInfo); infoControl.events.register ("getfeatureinfo", null, onGetFeatureInfo); map.addControl(infoControl); infoControl.activate(); } function onBeforeGetFeatureInfo(event) { // build CQL_FILTER param list from active info layer CQL_FILTER params var layers = infoControl.findLayers(); var filter = ""; for (var i = 0, len = layers.length; i < len; i++) { if (i > 0) filter += ";"; var lyrCQL = layers[i].params.CQL_FILTER if (lyrCQL != null) { filter += lyrCQL; } } infoControl.vendorParams = { 'CQL_FILTER': filter }; }
I find Open JUMP to be the most vector-friendly open source GIS software. The preparation of the datasets (rivers, lakes, sea, roads, borders) was really [a] piece of cake...
ShapefileReader t file: "agder/agder_buffer.shp";
t = select geomUnionMem(GEOMETRY) g from t;
ShapefileWriter t file: "result.shp";
We now have studies at the international level, the national level, the state level, the city level, and even the individual leveland my favourite:
a good rule of thumb for categorizing epidemics: If it spreads along lines of communication, he says, the cause is information. Think Bieber Fever. If it travels along major transportation routes, the cause is microbial. Think influenza. If it spreads out like a fan, the cause is an insect. Think malaria. But if it's everywhere, all at once—as both the rise of crime in the '60s and '70s and the fall of crime in the '90s seemed to be—the cause is a molecule.