As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [mapserver]

MapServer (formerly referred to as "UMN MapServer") is an Open Source platform for publishing spatial data and interactive mapping applications to the web. Built on C, MapServer is known for being one of the fastest mapping engines. Hundreds of vector and raster formats can be accessed in MapServer directly through GDAL.

178 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6 votes
0 answers
3k views

ArcGIS Server performance comparison

Are there any recent comparisons/studies of ArcGIS Server vs. open source GIS servers in common tasks like providing a WMS/WFS, filtering data/search performance, and so on? We received a lot of ...
Riccardo's user avatar
  • 2,586
5 votes
0 answers
387 views

Mapcache zooming problem

I am using mapcache for caching map raster data. Everything works fine except the map zooming, because at the some zoom level i am getting pink tiling images. This is my mapcache xml file: <?xml ...
Nia Kovac's user avatar
4 votes
0 answers
328 views

Tools to help migration from Mapserver to QGIS Server

I'm going to migrate a Mapserver WMS server to QGIS Server. I'd like to know if there are some tools or plugins that convert Mapserver mapfile (.map) to QGIS project file (.qgs). WMS responses (...
Nicolas Boisteault's user avatar
4 votes
0 answers
799 views

How to store and serve the time a GeoTIFF refers to

I'm writing software that creates temperature maps as GeoTIFF files. I need to store the time to which the GeoTIFF file refers; not the raster creation time, but the time during which the temperature ...
Antonis Christofides's user avatar
3 votes
0 answers
94 views

Point Displacement in MapServer

In QGIS symbology controls there is a "Point Displacment" option for offsetting points that are close visual clarity. Is there a similar control for MapServer?
Philip Whitten's user avatar
3 votes
0 answers
151 views

NODATA on MapServer

I am trying to generate a DEM mosaic to publish via a WCS using MapServer. Unfortunately I can not remove the NODATA. In MapServer's own tutorials and discussion groups suggest PROCESSING "NODATA = 0",...
Carlos Alves Jr.'s user avatar
3 votes
0 answers
394 views

How to fill missing high zoom level tiles from MapServer WMS?

I'm creating image tile pyramids (format = MRF) which do not contain all possible tiles at high zoom levels. This is because in some areas the high zoom level tile does not exhibit higher resolution ...
batsc's user avatar
  • 76
3 votes
0 answers
50 views

Which FOSS label engine that supports shrink to fit label in polygon?

I've not found a way to label features using shrink to fit label in polygon, i've tried Qgis, and searched on Geoserver, Mapserver and Mapnik, none of them supports this feature, i'm looking for any ...
geogeek's user avatar
  • 4,538
3 votes
0 answers
114 views

How to render a raster multiple times across the date line?

Using EPSG:4326 and WGS84, I have a GeoTIFF with longitude extents (167, 208) - so it crosses the date line. I'd like MapServer to display the image regardless of whether the user's requesting bbox ...
ani5's user avatar
  • 31
3 votes
0 answers
345 views

How to access tiles in Tilecache using QGIS?

I've Mapserver set up with a mapfile that points to a tileindex. In QGIS I can call the mapfile and view the rasters dynamically. I've got access to tilecache and I've seeded the same mapfile/rasters ...
geosmiles's user avatar
  • 1,367
2 votes
0 answers
54 views

MapServer / PostgreSQL don't display an ITEMQUERY

I try to search a string in MapServer with the method ITEMQUERY from a PostgreSQL table,. It look very simple but I receive the folow error: msPostGISLayerWhichShapes(): Query error. Error executing ...
roman villarreal's user avatar
2 votes
0 answers
194 views

Can't reference an MVT layer from Mapfile

I'm trying to add an MVT layer to my Mapfile, but it doesn't work and I ran out of ideas. Some info about the layer I'm trying to add: https://support.regrid.com/articles/using-the-tileserver/ This is ...
Benedek Petrovicz's user avatar
2 votes
0 answers
175 views

Setting up environment for python MapScript development

I'm trying to setup a virtual environment for developing against the Python bindings of MapScript on Windows. So far, I've tried several things in various combinations: Install MapScript via pip ...
mael's user avatar
  • 21
2 votes
0 answers
168 views

MapCache not storing files

I'm using MapCache with MapServer. When I use the link to MapCache the map is served but I look in the /tmp/mapcache directory and no files are list. I've made the /tmp/mapcache directory world ...
Tommie Jones's user avatar
2 votes
0 answers
83 views

MapServer: How to define connection string outside of mapfile?

Is there a possibility in MapServer to store the connection string in an external file and reference it in the mapfile? I have basic Postgres connection strings like this: CONNECTION "user=...
kartendach's user avatar
2 votes
0 answers
219 views

How to stop transparent MapServer map images becoming opaque when a tif image is added?

How do you add a tif image to a MapServer .map file and keep the MapServer image transparent beyond the extent of the tif image? I have a MapServer .map file with the following OUTPUTFORMAT ...
Philip Whitten's user avatar
2 votes
0 answers
139 views

MapServer merging features from layers in Template-Driven Output

I want to get WMS GetFeatureInfo result in GeoJSON format from MapServer. Result should be valid GeoJSON FeatureCollection containing array of features from one or more layers. I use Template-Driven ...
apdevelop's user avatar
  • 131
2 votes
0 answers
446 views

MapServer Query Raster for Pixel Value at Point

I am working with a MapServer and a map file that is displaying a color-relief image. LAYER NAME "sum" DATA "sum.vrt" TYPE RASTER STATUS ...
Christian4423's user avatar
2 votes
0 answers
56 views

Encode MapServer tile pixels with data values

Is it possible to encode values from raster bands into pixel output using a MapServer .map file? More and more I'm finding that a commonly adopted method for moving geographical data for rendering ...
maeneak's user avatar
  • 266
2 votes
0 answers
83 views

Understanding the GROUP attribute in MapServer's CLUSTER object?

I am trying to use the GROUP function in MapServer's CLUSTER object. We have a cluster defined where when we have a lot of objects on top of each other we group them in a cluster. Show a circle and a ...
Tommie Jones's user avatar
2 votes
0 answers
179 views

Setting COLORRANGE for rasters with variable minimum and maximum value in MapServer?

I have a series of rasters picturing the same phenomenon/product eg. the accumulated precipitation and I use the same mapfile for all. Naturally the minimum is always zero but maximum is variable from ...
Alešinar's user avatar
  • 786
2 votes
0 answers
509 views

Points won't display on map using OpenLayers 3 and MapServer

Im constructing a Vector-tile map using data from the following site GeoNorge -N5000. Im constructing it using OpenLayers 3 and MapServer with the data being passed from a PostGis database. I've ...
Hansi's user avatar
  • 21
2 votes
0 answers
205 views

Use EXTENT of a LAYER in Mapserver to crop a layer?

I have two vector layers in my map file that are at very different resolutions, and overlap somewhat. This is causing me some issues, and I would be happy if the higher resolution layer simply ended ...
Almaniac's user avatar
2 votes
0 answers
214 views

Tile problem when browser is zoomed in

I'm using mapcache/mapserver/openlayers 3 with ms4w. When my application is loaded with the browser at the normal 100% zoom level, everything returns fine (testing on chrome, firefox, and edge). The ...
Ken's user avatar
  • 21
2 votes
0 answers
311 views

Weird behavior of Mapcache?

I have installed Mapcache 1.6 and Mapserver 7.0.6. I created configuration file (You can see below this text) and I generated tiles throught mapcache_seed. I have tiles in folder but I have problem ...
Jezza1211's user avatar
2 votes
0 answers
313 views

Setup Mapcache (ms4w package) with FastCGI on IIS

When I try starting MapCache using the IIS FastCGI module, I get an Internal Server Error .. mapcache.fcgi.exe - The FastCGI process exited unexpectedly I've already got MapServer running like ...
gerric's user avatar
  • 121
2 votes
0 answers
265 views

Dynamic MAP parameter for MapCache + MapServer

The MapServer and MapCache are installed on the Ubuntu machine, all works fine. However, the specific of developed system is that the displayed through WMS data often have different map files created. ...
Aleksandr Shumilov's user avatar
2 votes
0 answers
82 views

MapServer reading SQL from 8-bits data type TIFF

I'm converting to SQL (PostGIS) some raster files (TIFF). Then I'm using those SQL files for queries with MapServer, and displaying it in my app with OpenLayers with no problems. Everything goes well. ...
pmiranda's user avatar
  • 213
2 votes
0 answers
347 views

How to tilt/change angle of view/camera from ortho in MapServer or OpenLayers?

I am wondering if there is a way of changing the angle of the camera in MapServer from Ortho to a 60 degree (+-10) angle. Perhaps this is an extensive modulation of Google Maps? I could imagine ...
MichaelR's user avatar
  • 532
2 votes
1 answer
1k views

Make "Nodata" transparent in raster - Mapfile/Mapserver

I have a raster and I'm trying to make it display in Openlayers2, using Mapserver 7.0 in backend. My problem is, I think, that because the online map is not the same projection as my data, Mapserver (...
JSROY's user avatar
  • 31
2 votes
0 answers
618 views

MapServer runtime execution: Cannot evaluate expression, no item index defined error

I'm trying MapServer's run-time substitution to dynamically set my Mapfile's CLASS EXPRESSION values. The expressions take the form of: CLASS EXPRESSION (([my_attr_col] >= num_1) && ([...
songololo's user avatar
  • 1,684
2 votes
0 answers
223 views

different data range of raster file in mapserver and qgis

a NetCDF file with only one band with a data range from [0,1.1]. IDV & QGIS identifies it correctly, however gdalinfo finds the data range [1,26505]. Or could it be possible that gdalinfo is right ...
dnltsk's user avatar
  • 344
2 votes
0 answers
536 views

Install php mapscript on ubuntu 12.04 PHP 5.4

I follow this website : http://blog.geoghana.com/2013/06/28/setting-up-lampp-linux-apache-mapserver-php-postgresqlpostgis/ to install mapserver and the php extension on my ubuntu 12.04 64bit and PHP 5....
Advcha's user avatar
  • 43
2 votes
0 answers
175 views

MapServer - Os Open Data - Tutorial

I have recently received my OS OpenData discs from Ordnance Survey, and for the last two evening tried to get this data into MapServer for ultimate use as a WMS for OpenLayers. Safe to say I have ...
user39954's user avatar
2 votes
0 answers
93 views

Using MapServer with OpenLayers

I have implemented MapServer in a Windows environment and I get a map from the following URL http://localhost/cgi-bin/mapserv.exe? mode=browse& template=openlayers& layers=all& ...
smk's user avatar
  • 141
2 votes
0 answers
113 views

PostGIS raster connection is not closed by MapServer

I'm using PostGIS raster in MapServer like this: TYPE RASTER DATA "PG:port=6432 dbname='mydb' user='postgres' password='1234' schema='public' table='truemarble' mode='2'" PROCESSING "CLOSE_CONNECTION=...
mhoegh's user avatar
  • 164
2 votes
0 answers
472 views

Input a KML file dynamically into MapServer without losing attributes?

Is there any possibility for MapServer (I'm running v6.2.1) to process the features / styles from a KML file dynamically? I tried STYLEITEM "AUTO" but it turned out to work only for *.dgn and *.tab ...
typ's user avatar
  • 21
2 votes
0 answers
510 views

Mapserver+openlayers: displaying a shapefile with Cylindrical Equal Area (Lambert) projection

I have some shapefiles in "World Cylindrical Equal Area (Lambert) projection". The .prj reads: PROJCS["World_Cylindrical_Equal_Area",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_ 1984",...
Bruno von Paris's user avatar
2 votes
0 answers
225 views

Mapserver set no image available

I'm composing a map with aerial footage with mapserver and tilecache. I have tiffs with geo information, then I run gdaltindex to create the shapefiles and then I configure the map file with layers ...
user avatar
1 vote
0 answers
13 views

MapServer: Label outline in PDF print has dark thin line

I have a MapServer layer with a LABEL definition as follows: CLASS LABEL MAXSCALEDENOM 1001 MINSCALEDENOM 1 ALIGN center BUFFER 0 COLOR [color] OUTLINECOLOR ...
Mario's user avatar
  • 531
1 vote
0 answers
27 views

MapServer UVraster layer with two data sources

I have wind data that I want to use in a UVraster layer. The problem I have is that my data for the U and V components are in separate files. While I know I could combine the U and V files into one ...
Almaniac's user avatar
1 vote
0 answers
99 views

How to display locally stored raster tiles with zoom levels in MapServer

I am completely new to GIS. I am having trouble showing raster tiles from QGIS on MapServer. My goal is to have zoom level tiles shown as basemap on MapServer, on which then I can display features ...
SomeOne's user avatar
  • 41
1 vote
1 answer
66 views

Providing MS_ENCRYPTION_KEY as an enviornment variable instead of a file in a mapserver mapfile

In order to use a secured WMS service in a mapfile, one can directly provide credentials as follow: LAYER NAME "topic-infra-service" TYPE RASTER STATUS ON CONNECTION "...
swiss_knight's user avatar
  • 9,363
1 vote
0 answers
49 views

MapServer WFS Filter incorrectly maps PropertyName as Literal instead of MySQL Field

I've never used MapServer before, but have been tasked with migrating a legacy website which uses it to an updated server, including an upgrade to MapServer 7.6.2. Most stuff just works, but I'm ...
odysseus's user avatar
  • 141
1 vote
0 answers
131 views

Get rid of duplicate polygons using OpenLayers

OpenLayers 6, Mapserver 7 I have defined a vector source like this : const presc = new ol.source.Vector({ format: new ol.format.GeoJSON(), loader: function(extent, resolution, projection, success,...
Leehan's user avatar
  • 1,164
1 vote
0 answers
158 views

MapServer create multitemporal WMS with TIME enabled from raster in PostGIS

The goal in my current project is to create a WMS from a GeoTIFF raster layer that was previously uploaded to a PostgreSQL database with PostGIS enabled via "raster2pgsql". That worked out ...
Lore_Kni's user avatar
1 vote
0 answers
104 views

Problem seeding MapServer's MapCache from an ArcGIS WMS source

I have an ArcGIS Server acting as a WMS service for some data that I cannot serve any other way. The rest of our system uses either MapServer or MapCache (from the MS4W distribution) to serve our ...
Almaniac's user avatar
1 vote
0 answers
33 views

Control Point Layer Symbol placement with MapServer

I have a point layer that are representing the location and type of traffic signs. The type of sign is a number code specified for each feature within the attribute table. I also have SVG graphics of ...
Johnny_Basar's user avatar
1 vote
0 answers
78 views

Configure layer in MapServer 7.2 with 2 dimension (time and depth)

I am trying to configure MapServer in order to serve a vector layer with 2 dimensions (time and depth) using a tileindex shapefile. In the mapfile I define the main layer and the tileindex layer as ...
Giuseppe's user avatar
1 vote
0 answers
133 views

MapServer Template

I have a wms mapfile to publish routing data line. Some of the lines have the same position and lie on top of each other, but have different values. I filter the objects with the attribute "...
joe_gerner's user avatar