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
1 answer
78 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
13 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 ...
  • 501
1 vote
0 answers
24 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
33 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,085
1 vote
1 answer
31 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
26 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
33 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
16 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
46 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
63 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
30 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, ...
  • 1
0 votes
2 answers
51 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
11 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
75 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
38 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
28 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
51 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
89 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/...
  • 443
0 votes
1 answer
64 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
28 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,131
1 vote
0 answers
53 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
105 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
52 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
23 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
54 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
36 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
111 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
88 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
0 votes
0 answers
28 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 ...
  • 1
1 vote
2 answers
109 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:\...
  • 666
2 votes
0 answers
113 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
43 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 "...
  • 501
0 votes
2 answers
28 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
119 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
107 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
106 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
111 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
132 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
175 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
44 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=...
0 votes
0 answers
52 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["...
0 votes
0 answers
66 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 ...
0 votes
0 answers
41 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 ...
  • 1
0 votes
1 answer
104 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 ...
3 votes
2 answers
120 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 ...
  • 5,622
0 votes
0 answers
98 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 ...
1 vote
1 answer
186 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 ...
  • 127
2 votes
1 answer
169 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, ...
  • 127
0 votes
1 answer
143 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 ...
  • 23
0 votes
1 answer
104 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 ...
  • 3,594

1
2 3 4 5
17