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.

Filter by
Sorted by
Tagged with
1 vote
1 answer
19 views

Attributes of MapServer WFS service all stay NULL

I did an update on my MapServer and database and now in QGIS all attributes of the updated WFS stay NULL. The WFS works fine in our web application. Just it is not showing any attribute data in QGIS. ...
Stephan's user avatar
  • 161
0 votes
0 answers
16 views

Publishing Rasterdata from PostgreSQL-DB using Mapserver

I am having a huge table with multiple partitions (one for each day) of processed satellite data stored in a PostgreSQL-DB and want to publish the data using mapserver to serve it as wms. I am running ...
Felix's user avatar
  • 165
0 votes
0 answers
23 views

Error in geo_raw[[i]]: subscript out of bounds

I am unable to download a particular layer from an ArcGIS Mapserver. Every other layer from 0-8, and 10-12 works, I only have this issue with layer 9: WFRC RTP Active Transportation Projects. # Load ...
Pukar Bhandari's user avatar
2 votes
0 answers
52 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
67 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
0 votes
0 answers
45 views

MS4W install issue

Windows 11 MS4W 4.0.5 When I installed from the standard download, I chose port 8091. After the install, two services appear: ApacheMS4WWebServer:port81 ApacheMS4WWebServer:port8091 Why are there ...
Simon Greener's user avatar
0 votes
0 answers
43 views

Cascade WMTS XML file with MapServer

I need to cascade a WMTS service via MapServer. I used gdal_translate to obtain an XML file. The XML file loads correctly in QGIS. Meanwhile, when I test MapServer I get the following error : ...
jonath_gis's user avatar
0 votes
0 answers
50 views

WMS layer issue at higher zoom level

When zooming out to higher level for a WMS layer, getting this error: msDrawMap(): Image handling error. Failed to draw layer named 'PICT-INHEND19-psQwiZ1L4t'. drawGDAL(): Unable to access file. ...
Racser's user avatar
  • 1
2 votes
1 answer
44 views

MapServer POST request from GET string

I have a very long GET request to the MapServer due to a large number of objects in a dynamic variable "object_id". (object_id=1,2,3,4,5,6,7,.........) My query string is: "https://wms-...
Vitaliy's user avatar
  • 23
0 votes
4 answers
492 views

How to get a WMS GetFeatureInfo response with MapServer in JSON format?

I use Mapserver with the Leaflet JS library and I want to display some attributes informations of a raster file by clicking on the map. Therefore I use the GetFeatureInfo WMS request in order to ...
Julien's user avatar
  • 131
0 votes
1 answer
44 views

Translated JPG image served via Mapserver WMS not displaying

I am experiencing a problem while serving an image via WMS (Mapserver). The image is translated (gdal_translate) with gcp and then warped (gdal_warp) to 4326. The issue is that the image is shown ...
Dimitrios Simos's user avatar
1 vote
0 answers
49 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
0 votes
1 answer
100 views

QGIS 3.26 - No option to export to ESRI SHP [closed]

Option does not exist to export MapServer Layer to SHP in the Export>Save As menu. I've seen this option everywhere in YouTube Videos and other instructions but not in my experience with QGIS. I've ...
Greg Baseman's user avatar
0 votes
0 answers
38 views

MapServer to PostGIS raster table DATA query too long

I have all my rasters in one table, I would like to serve them through WMS and WCS. I Generate the mapfile with mapscript and query the rasters with: ms_layer.data = f"PG:host='{HOST}' user='{...
Alešinar's user avatar
  • 841
0 votes
0 answers
77 views

MapServer wms_layer_group, set title

We want to group wms layers in mapfiles and give the group a title that is different from the name. Until now we did this with GROUP and wms_group_title, but GROUP is deprecated and we want to use &...
Vera's user avatar
  • 11
0 votes
1 answer
19 views

Does MapServer allow to set up empty tiles as a return of a webapp request for data outside of the layer mask in MapServer?

Is it possible to set up empty tiles as a return for webapp request of a data outside of the layer mask in MapServer ? I have a MapServer-based webapp with a layer that uses a mask option to limit ...
Markoyee's user avatar
1 vote
0 answers
29 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
0 votes
0 answers
20 views

Downloading data from MapServer (MS4W)

Does anyone knows how to pull out the data from mapserver? I have installed it on my PC, but have no idea how to use it and pull out the data from one link. Link : http://www.catastrochaco.gov.ar/cgi-...
dimmey94ns's user avatar
1 vote
0 answers
20 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
  • 551
0 votes
0 answers
51 views

Change the COLORRANGE parameter in MapServer using URL parameters

To change COLOR am using this [${layerName}.CLASS[index].STYLE[index]]: COLOR 255 145 but it does not work for COLORRANGE.
preppy dev's user avatar
1 vote
1 answer
89 views

Opacity not working in polygon layer with MapServer

Doing a simple polygon layer in MapServer 8.0 and the opacity is filled in. MAP IMAGETYPE png MAXSIZE 4000 SIZE 800 800 EXTENT -9583207 3548826 -8999182 4183713 UNITS meters IMAGECOLOR 153 179 204 WEB ...
Tommie Jones's user avatar
0 votes
0 answers
93 views

MapServer - Adjust brightness and contrast of a layer

I'm completely new to GIS/MapServer stuff. I'm working on an application that displays geotiff images on a 3d earth/map. I'd like to be able to adjust the brightness and contrast for this imagery via ...
Index545's user avatar
0 votes
1 answer
552 views

MapServer slow rendering on Leaflet viewer

I am trying to use display shapefile data on top of raster images using Leaflet. I render the shapefile data using leaflet L.tileLayer.wms function. The size of shapefile is 300mb. The problem is that ...
SomeOne's user avatar
  • 41
0 votes
0 answers
86 views

MapServer stopped showing maps on a website

I have a MapServer version 7* installed on Linux, to serve maps to a website. It worked well until recently, but now it's not serving maps anymore and can't figure out why. When I check ps aux, the ...
mxsx's user avatar
  • 1
0 votes
1 answer
129 views

MapManager - Mapserver

I'm using MapManager to create the file .map but I can't understand how mapserver opens this file, I try to see the folder of pmapper where there is the demo file. I put the my .map file there and ...
Andrea's user avatar
  • 1
1 vote
0 answers
40 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
165 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
116 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.3k
2 votes
1 answer
378 views

Does MapServer's .map file support more than one set of S3 credentials using VSIS3?

Is it possible to use more than one set of S3 credentials on a .map file, when using VSIS3? Say just for visualization that .vrt files are stored on an AWS S3 bucket, while the images where .vrt ...
Turo's user avatar
  • 123
0 votes
1 answer
285 views

MapServer 8 How to compile with MVT support

I have compiled MapServer 8.0.0 and works well, except it will not generate an MVT tile, instead, it returns this message loadOutputFormat(): General error message. OUTPUTFORMAT (mvt) clause ...
Matt's user avatar
  • 43
1 vote
2 answers
165 views

Create tileindex by time for MapServer

I have a directory full of GeoTiff files which cover the same geographical extent but differ in time (satellite photos). I would like to set up a WMS service with MapServer to serve those with the ...
Stefan Gofferje's user avatar
0 votes
2 answers
198 views

MapServer WMS: Not all features show, depending on how I zoom and pan

Here is how QGIS shows an irrigation network, received by MapServer via WMS and superimposed on OpenStreetMap: Here is the same thing, but slightly panned to the right: Several items are obviously ...
Antonis Christofides's user avatar
1 vote
0 answers
68 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
249 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,236
1 vote
1 answer
80 views

Showing images of large area in website with thousands of large aerial images hosted on remote server

To be able to use TMS service using GDAL2TIle, one has to make a mosaic of all of images first which is impractical given the fact that there are thousands of aerial images, each 3500x3500px large. Is ...
Arash Archer's user avatar
0 votes
0 answers
172 views

Configuring mapserv with Oracle on Ubuntu 22.04

I am new for mapserv over Ubuntu 22.04. I had use ms4w and there are lots of things I don't know how to configure and use. And the first thing is compiling with Oracle I had Oracle Client installed ok,...
Silvia Gatti's user avatar
1 vote
1 answer
40 views

Mapserver - RGB Composite - Keep Color with exception

I am currently having the issue that I want to give my nodata-values a specific color and keep the rest of the Map in the given RGB-values. This is my standard-Map: I added the following statement to ...
Felix's user avatar
  • 165
0 votes
0 answers
95 views

Blank tiles near borders of shapefile

I've generated a tileindex (.shp file) of some COG files using gdaltindex. However, when loading the shapefile through MapServer in Leaflet, some of the tiles seem to go blank partially when zooming ...
Vadiem Janssens's user avatar
3 votes
1 answer
138 views

MapServer 7 arithmetic expressions do not work on STYLE attributes

I am trying to port my code from MapServer 5 (Oracle) to MapServer 7 (PostgreSQL), but I am encountering a issue when trying to apply arithmetic expressions in the style class. So previously in ...
Andi Domi's user avatar
  • 131
0 votes
2 answers
367 views

why error msProcessProjection(): Projection library error?

I'm using mapserver in Centos 7. I'm using fgs from this (http://www.maptools.org/fgs/index.phtml?page=downloads.html). I'm using mapfile with epsg:4326, but I get error <ServiceException> ...
aja9812's user avatar
2 votes
0 answers
239 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
0 votes
1 answer
194 views

One of the multiple layers with different extents not visible in MapServer

I have 2 layers in the map file with different extents. In QGIS, I am able to see them one over the other in proper positions. However, when I am adding those 2 layers in the map file for MapServer (...
shanti's user avatar
  • 103
1 vote
1 answer
377 views

MapServer HTML Legend How-to

I am trying to build my first HTML legend with MapServer, but I can't find any full example. As I understand: mylayer.map (just after the classes END): LEGEND TEMPLATE "../path/mylegend.html&...
marieneige's user avatar
1 vote
2 answers
302 views

MapServer : background buffer around labels ( GEOMTRANSFORM 'labelpoly' )

I'm struggling on MapServer trying to create better and smoother background buffer around labels using GEOMTRANSFORM 'labelpoly' function documented here https://mapserver.gis.umn.edu/mapfile/...
Nono's user avatar
  • 473
1 vote
1 answer
239 views

MapServer WMS on-the-fly reprojection renders only partial image

When trying to access a WMS that gets on-the-fly reprojected from EPSG:2056 to EPSG:3857, I only receive partially rendered images (see image bolow). The more I zoom in, the worse it gets. If I access ...
kartendach's user avatar
0 votes
1 answer
167 views

Combining POINT and POLYGON Layer in mapfile

I have two layers defined in a mapfile, for displaying either polygons or points dependent on a query parameter of the accessing WMS Request. Is it possible to combine them in a UNION layer or ...
Lokomotywa's user avatar
  • 1,181
1 vote
0 answers
155 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
0 votes
1 answer
346 views

QGIS 3.24 (and 3.18) can't load WFS layer from MapServer (MS4W)

I have a MapServer (MS4W on Windows) setup with WFS in a mapfile. I cannot load WFS layers from this MapServer, they all return this warning in QGIS: WARNING Analysis of DescribeFeatureType ...
Almaniac's user avatar
1 vote
1 answer
167 views

UMN MapServer PostGIS vector layer Background transparent

How to set background transparent in UMN Mapserver mapfile for the layer coming from postgis. executed map file is MAP PROJECTION "init=epsg:4326" END NAME "layername&...
Satya Chandra's user avatar
1 vote
0 answers
51 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
2 3 4 5
17