Tag Info

Hot answers tagged

1

This is the solution: <!-- mapserver template --> [metadata_variable_name] = [item name="value_0" precision="1"] [metadata_unit]<br>


1

The easiest way to achieve the same in OpenLayers 3 is to use WMS GetFeatureInfo. Your code could look something like this (assuming mymap is your layer with a WMS source, and map is your ol.Map instance): var parser = new ol.format.WMSGetFeatureInfo(); var highlightOverlay = new ol.FeatureOverlay({ // style: (customize your highlight style here), map: ...


1

the previous code does not yet work with ol3. So use the following syntax: is tested with POSTGIS and Mapserver ! var map = new ol.Map({ target: 'map', renderer: 'canvas', maxResolution: 156543.0399, controls: ol.control.defaults().extend([ new ol.control.ScaleLine({ units:'metric' }) ]), layers: layers, view: new ol.View({ ...


1

There are two options 1) if input data is 16 bit convert into 8 bit data. 2)By placing PROCESSING "SCALE=AUTO" as follow MAP NAME "terra" # Map image size SIZE 600 600 UNITS dd EXTENT 77.0962025047 23.8718740333 84.6389301196 30.4075924299 PROJECTION 'proj=longlat' 'ellps=WGS84' 'datum=WGS84' 'no_defs' END # Background color for the map ...



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