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
0 votes
0 answers
23 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 ...
0 votes
1 answer
92 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 ...
  • 39
0 votes
0 answers
35 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 ...
  • 1
0 votes
1 answer
60 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 ...
  • 1
1 vote
0 answers
19 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 ...
0 votes
0 answers
45 views

Set MapServer label format to DD-MM-YYYY format

I have created a WMS service with MapServer using a GIS shapefile data. The source shapefile has an attribute (EFF_Date) of type DateTime. I want to display the EFF_Date in the label text. By default ...
1 vote
0 answers
86 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 ...
  • 39
1 vote
1 answer
55 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 "...
  • 9,081
2 votes
1 answer
109 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 ...
  • 123
0 votes
1 answer
102 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 ...
  • 43
1 vote
2 answers
54 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 ...
0 votes
2 answers
130 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 ...
0 votes
0 answers
30 views

MapServer: Labels with auto position and leader lines

I want to label points with MapServer like this: LABEL MAXSCALEDENOM 5001 MINSCALEDENOM 1 ALIGN right BUFFER 1 COLOR 0 0 0 OUTLINECOLOR 255 255 255 ...
  • 511
1 vote
0 answers
40 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 ...
  • 141
1 vote
0 answers
99 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,...
  • 1,154
1 vote
1 answer
42 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 ...
0 votes
0 answers
33 views

Browser-based layer editing

Does anyone know of a software that is similar in function to this Esri example: https://developers.arcgis.com/javascript/latest/sample-code/draw-line/ But relies on other technologies apart from Esri?...
0 votes
0 answers
87 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,...
1 vote
1 answer
30 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 ...
  • 157
0 votes
0 answers
65 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 ...
3 votes
1 answer
94 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 ...
  • 131
0 votes
0 answers
46 views

MapServer map vizualization problem

I am new to MapServer. To make it easier to learn, I installed the OSGeoLive 14 virtual machine in VirtualBox with UBUNTU. For teaching I use both the Quick Start manual, which is part of OSGeoLive, ...
  • 11
0 votes
2 answers
128 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> ...
0 votes
0 answers
12 views

MapServer picture on specific entity

I'm using MapServer and i need to call MapServer with an URL and locate a specific feature within the GetMap mode (need a picture). I am getting error while using QString and request=GetMap in the ...
1 vote
0 answers
120 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 ...
0 votes
0 answers
62 views

Rendering OSM data in Windows in MapServer causing error during generating Mapfile

I am following the documentation steps at https://github.com/mapserver/mapserver/wiki/RenderingOsmDataWindows. This is great documentation and everything is clear. However, I am getting the following ...
  • 103
0 votes
1 answer
73 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 (...
  • 103
1 vote
1 answer
136 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&...
1 vote
2 answers
145 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/...
  • 453
0 votes
1 answer
108 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 ...
0 votes
1 answer
55 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 ...
  • 1,171
1 vote
0 answers
98 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 ...
0 votes
1 answer
184 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 ...
1 vote
1 answer
94 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&...
1 vote
0 answers
32 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 ...
1 vote
0 answers
73 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 ...
2 votes
0 answers
47 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 ...
2 votes
0 answers
170 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 ...
1 vote
2 answers
130 views

MapServer: Render labels anchored outside tile

I'm using MapServer 7.6 to render a tiled map using a custom tile grid. Therefore I cannot use MapServer's "tile mode". I'm rendering a WMS layer that has a text label centerd on each point ...
  • 11
1 vote
2 answers
430 views

Why is PROJ not figuring out a CRS?

I am trying to use gdal_translate to convert a WCS source to a tif target. I am trying to achieve this using a WCS XML service description file. The gdal_translate call looks like this "C:\...
  • 706
2 votes
0 answers
153 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 ...
  • 21
0 votes
0 answers
68 views

MapServer raster from PostGIS fails to load

I have a PostGIS with a raster stored in a table (solardensity.density). I want to create a map service with MapServer like this: LAYER NAME "raster" TYPE raster PROJECTION "...
  • 511
0 votes
2 answers
41 views

MapScript : Output creation date

Is it possible to make an output of the creations date in a map script file (WMS). I have a WMS service for example like this: MAP NAME "Basel-01" STATUS ON #EXTENT -137 29 -53 88 ...
2 votes
1 answer
184 views

MapServer can't draw PostGIS table

I'm using MS4W 3.0.6 (MapServer CGI 6.0.3), PostgreSQL 13 with geospatial extension (PostGIS) and pmapper 4.3.2. I can display maps perfectly in MapServer and pmapper with shapefiles, but when I try ...
1 vote
0 answers
124 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 "...
2 votes
0 answers
157 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 ...
1 vote
2 answers
205 views

Combine different geometry types in single layer in MapServer- is it possible?

I'm trying to display features with different geometry types in single LAYER. MapServer version 7.0.1 (MS4W 3.1.4). The data source is MS SQL spatial database table with geometry column, containing ...
  • 131
0 votes
0 answers
227 views

Mapserver - msLoadMap(): Regular expression error. MS_DEFAULT_MAPFILE_PATTERN validation failed

I am trying to use MapServer to load tiles overtop of my Google map. When hitting the endpoint, I am getting the error: msLoadMap(): Regular expression error. MS_DEFAULT_MAPFILE_PATTERN validation ...
1 vote
1 answer
228 views

How do I set the root-layer of a MapServer WMS to queryable="0"?

Problem Problem Summary I want the response of all the MapServer WMS GetCapabilities requests to not show queryable="1" in the root layers XML node. Status Quo The GetCapabilities response ...
  • 151
2 votes
0 answers
69 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=...

1
2 3 4 5
17