Skip to main content

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.

190 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5 votes
0 answers
428 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
1 answer
214 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
4 votes
0 answers
342 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
3 votes
0 answers
105 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
471 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
  • 86
3 votes
0 answers
346 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
  • 131
3 votes
0 answers
52 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,576
3 votes
0 answers
122 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
355 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
53 views

Why is find_srid no longer immutable?

I recently upgraded our PostgreSQL engine from 11 to 13 for one of our dbs and along with that, I upgraded PostGIS from 2.4 to 3.4. We're using MapServer for one of our apps and it's generating ...
Rob Dennett's user avatar
2 votes
0 answers
77 views

How to use ogr2ogr to download WFS data congaining special characters (such as \x01)?

Problem I am interested in the ms:C_GAZ layer of this WFS endpoint. QGIS can connect to this the endpoint and visualise its data without any error (I recommend zooming in heavily to a big city to ...
zabop's user avatar
  • 2,214
2 votes
0 answers
245 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
2 votes
0 answers
65 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
268 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
273 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
237 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
150 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
240 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
161 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
548 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
75 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
  • 276
2 votes
0 answers
100 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
211 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
  • 841
2 votes
0 answers
545 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
223 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
228 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
354 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
306 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's user avatar
  • 183
2 votes
0 answers
85 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
  • 223
2 votes
0 answers
405 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
  • 542
2 votes
1 answer
2k 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
661 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,724
2 votes
0 answers
242 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
  • 364
2 votes
0 answers
541 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
177 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
101 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
122 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
479 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
525 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
226 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
1 answer
36 views

Combining two rasters at different resolutions with MapServer as a single WMS layer

I am trying "Join" two rasters with MapServer 7.6.4 so that they appear as a single layer on a WMS service, I have tried the wms_layer_group and GROUP but without luck. | 2 images one high ...
Jorge Mendes's user avatar
1 vote
0 answers
53 views

mapserver raster legend ticks

I am serving rasters through mapserver and the maps look fine. I have managed to include a raser legend by setting: LEGEND KEYSIZE 200 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR ...
Martinyt's user avatar
  • 146
1 vote
0 answers
31 views

GDAL upgrade for MapServer

Is it possible to upgrade the version of GDAL in MapServer ? I like to use multiple S3 buckets but according to the documentation this option is available from GDAL 3.5 (here is the info). My ...
Markoyee's user avatar
1 vote
0 answers
21 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
  • 561
1 vote
0 answers
42 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
166 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
125 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
  • 10.4k
1 vote
0 answers
70 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
260 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,234
1 vote
0 answers
161 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