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

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&...
user avatar
1 vote
2 answers
49 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/...
user avatar
  • 443
0 votes
0 answers
35 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 ...
user avatar
0 votes
1 answer
22 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 ...
user avatar
  • 1,037
1 vote
0 answers
26 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 ...
user avatar
0 votes
1 answer
59 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 ...
user avatar
1 vote
1 answer
35 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&...
user avatar
1 vote
0 answers
21 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 ...
user avatar
1 vote
0 answers
28 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 ...
user avatar
2 votes
0 answers
31 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 ...
user avatar
2 votes
0 answers
69 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 ...
user avatar
1 vote
2 answers
51 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 ...
user avatar
  • 11
0 votes
0 answers
23 views

Referencing environment variables in MapCache XML

How do you reference environment variables in a MapCache .XML file? It appears you can set/override environment variables as follows: <environment> <!-- environment ...
user avatar
  • 1
1 vote
0 answers
57 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 ...
user avatar
  • 11
0 votes
0 answers
29 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 "...
user avatar
  • 481
0 votes
2 answers
23 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 ...
user avatar
2 votes
1 answer
76 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 ...
user avatar
1 vote
0 answers
81 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 "...
user avatar
2 votes
0 answers
65 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 ...
user avatar
1 vote
2 answers
72 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 ...
user avatar
  • 131
0 votes
0 answers
74 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 ...
user avatar
1 vote
1 answer
127 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 ...
user avatar
  • 149
2 votes
0 answers
31 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=...
user avatar
0 votes
0 answers
37 views

MapServ - how to request "default" custom projection?

I have a GeoTIFF (USGS Land Use / Land Cover) which works great with AERSURFACE. If I use gdalinfo to get the coordinate system, it comes back as: PROJCRS["unknown", BASEGEOGCRS["...
user avatar
0 votes
0 answers
44 views

MapServer 7.4.3 - Poor projection from British National Grid (EPSG 27700) to WebMercator (EPSG 3857)

We have PostGIS data in BNG and are displaying it over Google satellite imagery. This worked fine previously - using a Ubuntu server running 18.04, with MapServer 7.0.7, GDAL 2.2.3, proj 4.9.3. This ...
user avatar
0 votes
0 answers
31 views

UMN MapServer cutting off bitmap symbols during generating print output from LIDS client

I have similar issue as here: Preventing clipped labels from QGIS Server WMS in Leaflet JS But I have issue with cutting of symbols on border of tiles not with labels. Here is a picture with my ...
user avatar
  • 1
0 votes
1 answer
42 views

Esri JavaScript API WMS GetFeautureInfo response example

I am serving WMS from MapServer to the Esri JavaScript API client. Can someone show me what an example of what a response GetFeatureInfo request should look like (how it needs to be formatted)? The ...
user avatar
3 votes
2 answers
94 views

Prevent WMS GetFeatureInfo returning geometry in MapServer 6.4

When I send a GetFeatureInfo request to my Mapserver 6.4 WMS, the response contains the geometry. I want to disable this, as it is far too large in size. However, I am serving the same data as a WFS ...
user avatar
  • 5,562
0 votes
0 answers
61 views

Repeat label along line in MapServer

I'm new in MapServer and want to create a labeling for line geometry. The label should be repeated multiple times alone the line geometry. I tried the command REPEATDISTANCE, but it doesn't work as I ...
user avatar
1 vote
1 answer
143 views

Struggling to return GetFeatureInfo over QGIS Server and MapServer WMS layers [duplicate]

I have a HTML/Leaflet page utilising BetterWMS script (https://gist.github.com/rclark/6908938). The script returns GetFeatureInfo over WMS layers. Unfortunately it is not working with WMSs published ...
user avatar
  • 41
2 votes
1 answer
132 views

BetterWMS script doesn't work with QGIS Server and MapServer WMSs

I have a HTML/Leaflet page utilising BetterWMS script below. The script returns GetFeatureInfo over WMS layer. Unfortunately it is not working with WMSs published by Qgis Server and MapServer, ...
user avatar
  • 41
0 votes
1 answer
110 views

How to export a QGIS project to MapServer

I'm new in QGIS and I'm trying to export my QGIS project to MapServer, using RT MapServer extension, because there is not any other extension in my version of QGIS (QGIS 2.18 on Windows). After ...
user avatar
  • 23
0 votes
1 answer
70 views

MapServer FastCGI connection pool configuration

I posted this question in the MapServer User mailing list but hoping I can get more eyeballs on it here. I'll update both threads if I make any progress. The MapServer LAYER documentation says the ...
user avatar
  • 3,576
1 vote
2 answers
325 views

How to serve a GeoJSON file through WMS with MapServer?

Could you please provide a working example of WMS mapfile with GeoJSON layer for the MapServer? Mine is not working: MAP EXTENT -120 34 -119 35 # Geographic SIZE 800 400 LAYER TYPE polygon ...
user avatar
1 vote
1 answer
34 views

MapServer displays raster on top other layers

I have a problem. MapServer displays raster on top other layers. Is there any way to put raster beneath the map? MAP IMAGETYPE PNG EXTENT 466914.4981 5983965.6134 469588.2900 5986580....
user avatar
  • 11
0 votes
1 answer
137 views

MapServer on Windows Server 2019 from MS4W

I have installed MapServer from MS4W on a Windows Server 2019 machine on port 8081 but it won't find the home page http://127.0.0.1:8081/ for some reason. 8081 is not in conflict and has been opened ...
user avatar
1 vote
1 answer
121 views

How to show label conditionally on the value of an attribute?

In the MapServer Mapfile, I have this: LABEL TEXT "Q=[Q] m³/h" END The problem is that for those features having an empty (null) Q, the result is Q= m³/h. Instead, I'd like it to not ...
user avatar
0 votes
0 answers
22 views

MapServer: How to find all high and low spots in a raster?

I'm currently tinkering with MapServer to see if it could work as a backend for the remodel of my hobby stormchaser website. Is it possible (in MapServer) to find all high and low spots in a raster ...
user avatar
1 vote
1 answer
113 views

MapServer PostGIS: WMS Layers Without Features

I've prepared an instance of PostGIS and MapServer on the same machine. I have loaded data into PostGIS and can view these features successfully in thick clients (ArcGIS Pro, QGIS). My MapServer ...
user avatar
3 votes
1 answer
88 views

How does [attributename] work in MapServer templates?

I have a template file that contains this line: [item name="geographicalName"], [geographicalName] The output is π. Σπερχειός, [geographicalName] That is, the tag [geographicalName] is ...
user avatar
1 vote
0 answers
115 views

Linking a MapServer layer to GeoWebCache with a different projection than the default ones

I'm somehow having a hard time connecting a standalone GeoWebCache (1.15.0) to MapServer (camptocamp docker-mapserver, version unknown). MapServer itself runs fine. Due to the 'map=' parameter, the ...
user avatar
  • 11
2 votes
1 answer
39 views

How to change placement for label of a polygon in mapserver with SLD

I want to change the placement of the label of special polygon by sending SLD to WMS of Mapserver. But it seems as it has no effect. Is label placement in polygons support by mapserver? <...
user avatar
  • 83
1 vote
0 answers
48 views

Setting up MapServer with existing XAMPP

I am trying to set up MapServer with my existing XAMPP on Windows. I downloaded ms4w_4.0.5.zip and extracted it into my C://-folder next to my xampp-folder. Now I would like to use XAMPP to run my ...
user avatar
  • 67
0 votes
1 answer
105 views

Rotate, Scale, Translate in OpenLayers 4 and MapServer

Sometimes, I get spatial data (usually DGNs but I am not sure the format matters) that in the coordinate control sheet a 'Project Datum Factor' is noted. Say: 1.000073496. If I add them as is in ...
user avatar
  • 2,324
0 votes
0 answers
170 views

Highlights (Mouseover, mouseout, click) in WFS layer

I need to highlight on click of objects in a layer and popups with attributions provided by a WFS. I got the whole layer highlight on mouseover/mouseout, but I need this on click and only one object ...
user avatar
  • 1
2 votes
1 answer
70 views

MapServer symbology: how to draw a line inside polygons following the outline?

Is it possible to create a symbology in MapServer/Mapfiles that would draw a line following the outline of the polygon, inside the polygon? Example with a simple rectangle: I can't find any info in ...
user avatar
  • 55
0 votes
1 answer
47 views

OpenLayers keep resetting after moving map

I've an OpenLayers map in html that use WMS layers from a MapServer (in a docker) and the layer come from PostGIS. When I'm on the map and drag the map, after two or three seconds the map goes back to ...
user avatar
  • 437
1 vote
0 answers
337 views

Consuming TIFF tiles from MapProxy with geotiff.js

I have a MapServer WMS set up from which I request GeoTIFF tiles to process in the browser using the geotiff-js library. I want to add MapProxy as an intermediate layer to improve performance by ...
user avatar
  • 23
2 votes
0 answers
161 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 ...
user avatar
1 vote
2 answers
66 views

How to dynamically change MapServer's GRID MININTERVAL?

I started looking into using something similar to this example of the GRID layer definition in a MapServer mapfile that will draw lat/lon line grid at least every 5 degrees: LAYER NAME "grid&...
user avatar

1
2 3 4 5
16