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
3 votes
1 answer
50 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 ...
user avatar
  • 131
0 votes
0 answers
15 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, ...
user avatar
  • 1
0 votes
2 answers
22 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> ...
user avatar
0 votes
0 answers
23 views

why loadStyle(): Unknown identifier. Parsing error near (LINECAP) and (PATTERN)?

I'm just learning about MapServer. I am trying to display geom polygon data from the database to a map using a mapfile. But when using the mapfile I have an error loadStyle(): Unknown identifier. ...
user avatar
0 votes
0 answers
9 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 ...
user avatar
1 vote
0 answers
32 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 ...
user avatar
0 votes
0 answers
24 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 ...
user avatar
  • 103
0 votes
1 answer
15 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 (...
user avatar
  • 103
1 vote
1 answer
25 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
53 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
1 answer
50 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,121
1 vote
0 answers
36 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
72 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
40 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
22 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
36 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
32 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
81 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
56 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
65 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
38 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
24 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
88 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
85 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
81 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
78 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
85 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
142 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
  • 151
2 votes
0 answers
37 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
41 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
50 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
33 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
52 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
104 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,572
0 votes
0 answers
72 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
156 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
  • 105
2 votes
1 answer
143 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
  • 105
0 votes
1 answer
118 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
78 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,574
1 vote
2 answers
388 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
42 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
140 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
149 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
23 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
128 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
95 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
123 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
40 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
2 3 4 5
16