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....
user avatar
  • 52.3k
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 ...
user avatar
  • 6,738
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 ...
user avatar
  • 13.2k
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 ...
user avatar
  • 4,428
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 ...
user avatar
  • 1,624
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....
user avatar
  • 2,022
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 ...
user avatar
  • 52.3k
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 ...
user avatar
  • 361
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 ...
user avatar
  • 52.3k
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 ...
user avatar
  • 75k
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 ...
user avatar
  • 1,739
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 ...
user avatar
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, ...
user avatar
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
user avatar
  • 241
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 /...
user avatar
  • 66
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 -> %...
user avatar
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 ...
user avatar
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 ...
user avatar
  • 424
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 ...
user avatar
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 ...
user avatar
  • 28.7k
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 ...
user avatar
  • 2,953
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=...
user avatar
  • 28.7k
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=...
user avatar
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 ...
user avatar
  • 52.3k
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 ...
user avatar
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....
user avatar
  • 366
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, ...
user avatar
  • 13.2k
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....
user avatar
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 ...
user avatar
  • 461
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 ...
user avatar
  • 1,277

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