13
votes
Heat map / Density map from dynamic points table in MapServer (GeoServer)?
Step-by-step for GeoServer. Note: As @michal-mackiewicz writes, the WPS extension for GeoServer must be installed.
Acquire some point data, for example Natural Earth populated places http://www....
9
votes
Accepted
How to view URL of GetFeatureInfo request in QGIS?
Simple
Right click your feature in your "Identify Results" right pane and select "Copy GetFeatureInfo requests URL":
Advanced
You can also go with PyQGIS.
For example, with a single layer loaded ...
7
votes
Using OpenLayers 3 or 2 to add layers from Google Maps and Mapserver?
That is a very hard question to answer. OpenLayers 2 has been very successful and it is easy to find examples for just about everything. OpenLayers 3 is a total rewrite and uses the Google Closure ...
7
votes
Accepted
Using OpenLayers 3 or 2 to add layers from Google Maps and Mapserver?
If you have to work with a Google base map, OpenLayers 2 will satisfy your needs. As stated in an OpenLayers 3 issue by @ahocevar,
There will be no ol.source.GoogleMaps, unless Google change their ...
6
votes
MapServer vs QGIS Server for WebGIS with access control
For example, one of the advantages of combination 2 (PostGIS + QGIS Desktop + QGIS Server + QGIS Client) over 1 (PostGIS + MapServer + OpenLayers) is that you could create it and set up faster and ...
6
votes
Heat map / Density map from dynamic points table in MapServer (GeoServer)?
Thinking that you need heat maps rendered on the fly, I would go for these options instead:
Leaflet:
http://www.patrick-wied.at/static/heatmapjs/example-heatmap-leaflet.html
OpenLayers:
http://www....
6
votes
Accepted
When to choose MapScript over a Map file or vice versa?
Mapfiles are good for making standard WMS, WFS and WCS services. They are mostly stable even some limited set of the mapfile parameters can be changed on-the-fly by using the variable substitution ...
6
votes
MapServer very weak performance vs. GeoServer - Why?
According to a recent comparison of different mapping engines in performing tile seeding (see Section 4.3), MapServer should be much faster than GeoServer.
Is there any re-projection of geometries in ...
6
votes
Accepted
MapServer GeoJSON output template
Instead of templates I suggest to define an OGR outputformat for GeoJSON.
Here are advice taken from https://lists.osgeo.org/pipermail/mapserver-users/2013-November/075559.html
You can use OGR ...
6
votes
Can I Use GeoWebCache for seeding UMN MapServer Mapfiles?
You can set up GeoWebCache to request WMS layers from any WMS server. This may be easiest with a standalone install of GWC but should be possible in the integrated version too. You need to edit the ...
6
votes
Accepted
Relationship between WMS styles and layers parameters for GetMap request in WMS 1.3.0?
The WMS 1.3.0 specification says in section 7.3.3.4:
The mandatory STYLES parameter lists the style in which each layer is to be rendered. The value of the STYLES parameter is a comma-separated ...
6
votes
How to view URL of GetFeatureInfo request in QGIS?
A nice way to see all remote requests such as GetFeatureInfo is to use the "QGIS Network Logger", which is available in all QGIS installations by default since since QGIS Pi / 3.14, by just ...
5
votes
QGIS Server limitations?
QGIS Server has some limitations but you can add Lizmap on top and get more functionalities.
The documentation is good and often updated.
It handles users/groups.
Cache management
Bing, Google, IGN, ...
5
votes
How to debug "msProcessProjection(): Projection library error. no system list, errno: 2" error in mapserver?
I just ran into this issue and found that the problem was because I had not installed the ‘proj-epsg’ package.
yum install proj-epsg
5
votes
Accepted
Installing python-mapscript in virtualenv
I just faced the same problem and solved it by copy the mapscript.py and _mapscript.so into my virtual env.
cd venv/lib/python2.7/site-packages
cp /usr/lib/python2.7/dist-packages/_mapscript.so .
cp /...
5
votes
Notepad++ syntax highlighting support for .mapfiles?
Found one on GitHub : MapserverSyntaxHighlighting
It adds a user defined language in N++ (check this, if you want to create your own).
Just put the two files given here :
userDefineLang.xml -> %...
5
votes
Accepted
MapServer - Show Polygon Layer with non-transparent border and transparent background
You should use two different STYLE blocks, one for the fill and one for the stroke:
CLASS
STYLE
OUTLINECOLOR r g b #stroke
WIDTH 3
END
STYLE
COLOR r g b #fill
OPACITY 50
END
END
...
5
votes
Installing Mapserver on Ubuntu?
In order to install the MapServer in Ubuntu 14.04 after you have installed Apache2, it is good to install php5:
sudo apt-get install php5
After that you can install the available in the repositories ...
5
votes
Accepted
why use openlayers with mapserver?
For example: let's say you have a 10 megabyte raster/vector file that covers a large area. If you include the file directly into OpenLayers, it will download the entire file to the browser and ...
5
votes
Accepted
How to add Mapserver WMS to Openlayers 3
Just see this official demo example http://openlayers.org/en/v3.0.0/examples/wms-image.html
Some others WMS samples are available. You will just need to change ServerType to mapserver (link for ...
5
votes
Accepted
Highlight a feature on WMS layer using OL3 + mapserver
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 ...
5
votes
Adding MapServer layer in Openlayers 3
There are two mode in MapServer in fact and it can be confusing for end users without knowledge about the project history.
The first one, the now mostly outdated mode cgi (the url contains mode=...
5
votes
Mapserver and postgis
If you want Mapserver to use only the rows where contourinterval = 40, you need to use a WHERE.
I think you should use this connection string instead:
CONNECTIONTYPE POSTGIS
CONNECTION "dbname=...
4
votes
Accepted
Install and use MapCache?
a) No, you do not have Mapcache, it is an Apache module that must be installed separately
b) Current MapCache version is effectively not available for us Windows users. However, a bit older version ...
4
votes
Open Source Interpolation Service?
How about using GDAL_Grid? Just pass the arguments over to GDAL and return the raster file or render it in the web browser.
It does IDW, Nearest neighbor, and averaging and has a robust set of input ...
4
votes
Accepted
Create a Shapefile from SQL dump file
You can render your data from PostgreSQL directly. Documentation here.
PostgreSQL layer example:
LAYER
NAME "province"
STATUS ON
TYPE POLYGON
CONNECTIONTYPE POSTGIS
CONNECTION "host=127.0....
4
votes
Accepted
Query to get convex hull
EDIT: Update, having belatedly realized this is a Map Server question.
In general, to get the convex hull, you will want to group by id/gid, as producing the hull(s) is an aggregate operation. So, ...
4
votes
Can't get WFS working in Openlayers 3
Kaarel´s answer should be marked as the correct answer. You need to call the loadFeatures function from the AJAX call.
I created three jsfiddle to demonstrate ol 3.5.0 calls via AJAX for ol.format....
4
votes
Accepted
How to install MapServer and MapCache on Ubuntu 14.04?
OK, I think I found it: As I'm running Apache 2.4.7, the Apache configuration needs to look like this (see here):
<IfModule mapcache_module>
<Directory /mapcache>
Require all ...
4
votes
Is there a way to enable CSV or JSON output formats for MapServer WFS GetPropertyValue requests?
You can setup OUTPUTFORMAT declarations which leverage MapServer's use of OGR for custom output formats (including CSV, GeoJSON). See the documentation for further details.
Update: this does not ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
mapserver × 800wms × 134
postgis × 105
openlayers-2 × 104
mapfile × 95
openlayers × 67
raster × 45
qgis × 43
geoserver × 42
wfs × 40
mapscript × 37
postgresql × 35
coordinate-system × 31
ms4w × 31
mapcache × 28
labeling × 26
symbology × 25
getfeatureinfo × 25
gdal × 23
web-mapping × 21
python × 17
tiles × 17
tilecache × 17
javascript × 16
shapefile × 15