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
0answers
20 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
1answer
55 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 ...
2
votes
1answer
91 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, ...
0
votes
1answer
29 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 ...
0
votes
1answer
31 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 ...
0
votes
2answers
67 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 ...
1
vote
1answer
24 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....
0
votes
1answer
54 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 ...
1
vote
1answer
32 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 ...
0
votes
0answers
26 views

MapServer Cluster, problem with GetFeatureInfo

I'm new with MapServer and I tried to use as cluster. When I click on the map to see info about my points, nothing pop up. I can see info about different layers but not for the one with the cluster. ...
0
votes
0answers
18 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 ...
1
vote
1answer
59 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 ...
3
votes
1answer
74 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 ...
1
vote
0answers
60 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 ...
2
votes
1answer
25 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? <...
1
vote
0answers
24 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 ...
0
votes
1answer
71 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 ...
0
votes
0answers
90 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 ...
2
votes
1answer
38 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 ...
0
votes
1answer
26 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 ...
0
votes
0answers
68 views

How to render a .tiff file on Gmaps by using Cloud Optimized GeoTIFF server?

I am doing a Web project where I have used GMaps to render a (.tiff) file which I converted to Google Map Tiles. Now I want to do this dynamically where the user just uploads the (.tiff) file and it ...
1
vote
0answers
165 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 ...
0
votes
0answers
64 views

MapServer: how to publish a TMS using WMS?

Is it possible with MapServer to publish a WMS from a local TMS generated by gdal2tile?
0
votes
0answers
23 views

MapServer's UNION layer - mapfile settings to use attributes from two GeoJSON point files at the same locations?

First note that we're using MapServer 7.2.2 to display our data from AWS S3 buckets. We're successfully using MapServer to display point data from GeoJSON files stored in AWS S3. What we would like ...
2
votes
0answers
96 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 ...
1
vote
2answers
42 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&...
0
votes
0answers
135 views

How to create tiles (compatible with OSM) from a MapServer mapfile

For an internship, I have to make an S57 online map server which will be used later for something else. I have some constraints: My cards must be OSM compatible (the existing version of the final ...
1
vote
1answer
46 views

MapServer symbol with triangle

I am looking for solution to style the symbol in MapServer; with polygon outlined with simple line along with filled triangle inward like below ; I tried creating symbol with following way SYMBOL ...
0
votes
1answer
64 views

MapManager (Gisinternals) - INCLUDES

Does anybody have any experience with using Mapmanager to manage their MapServer mapfiles? My question is specifically about using INCLUDES in mapfiles. Since having an INCLUDE in a mapfile results in ...
3
votes
1answer
72 views

MapServer dumps error: msPostGISLayerWhichShapes(): Error (ERROR: Operation on mixed SRID geometries)

Using the following WFS: http://dev-maps.isric.org/mapserv?map=/map/wosis_latest.map on QGIS 2.18 and then opening the QGIS query builder on layer ms:wosis_latest_profiles, and running the following ...
1
vote
1answer
68 views

Preventing scaling during raster rendering in MapServer

I have encoded some metrics in a 4-band geotiff that will be served by MapServer (v7.4), and I want to "decode" them client-side for display using raster operations in OpenLayers (v6.1). (...
1
vote
2answers
69 views

Filtering a list of areas with MapServer

I have defined layer with filtering. I've used operator IN because I have list of values: LAYER NAME "loc_mistnosti3" TYPE POLYGON ... FILTERITEM 'ID' FILTER ( [ID] IN %id% ) VALIDATION ...
1
vote
0answers
56 views

Bending arrowlines between symbols (points) using MapServer

Good day everyone. I need help of the community, and asking for it: There is such a task: to draw a curved line with an arrow at the end between two symbols (points). Questions: What is the best ...
1
vote
0answers
29 views

WCS band metadata description on mapserver 7,4.4 is not being outputed

I am trying to set proper metadata on a mapserver 7.4.4 instance, based on this example: https://mapserver.org/nl_NL/ogc/wcs_format.html#grib2-output-format And WCS paramters like: (wcs|ows)...
0
votes
1answer
46 views

PostGIS 3 table join & classification with MapServer

I have been trying to create a mapServer map by joining 3 table then create classes on those joins (2000 - red, 2010 - green, 2020 - blue) I am not getting an error but noting is display $query = "...
1
vote
2answers
216 views

Vector layer from MapServer WFS not displaying in OpenLayers 6

I want to display a WFS layer in GeoJSON format on my map via OpenLayers. All my layers in WMS appear, only the one in WFS does not appear. I did create a "WEB" block in the mapfile. And my layers are ...
1
vote
1answer
162 views

MapServer HTML Template doesn't display map/image

I'm using ms4w and working on my local machine and want to build a map like in the MapServer Example 1.9 (https://mapserver.org/tutorial/section1.html). Unfortunately the HTML template doens't ...
1
vote
0answers
37 views

MapServer Runtime Substitution | Omitting WHERE (in DATA) if no variable present

I am using MapServer's RunTime Substitution. They are a great feature. In my case, I have layer setup pointing at a PostGIS table. This layer is exposed via WMS. I allow an optional query string ...
3
votes
2answers
789 views

How to view URL of GetFeatureInfo request in QGIS?

I have a WMS layer in QGIS. I am using the Identify Features tool to perform a GetFeatureInfo request. It retrieves the expected attribute data in the Identify Results panel. However I would like to ...
0
votes
1answer
187 views

GetFeature WFS request with Spatial Filter throws an error

I'm using the following request in order to get the closest feature from a layer given some specific coordinates: http://www.juntadeandalucia.es/medioambiente/mapwms/REDIAM_PPHH_2012/wfs?&VERSION=...
1
vote
1answer
387 views

WMS GetFeatureInfo request with buffer doesn't return any result (OpenLayers/MapServer)

I'm using OpenLayers 4 to build a GetFeatureInfo URL with a buffer parameter to a WMS layer in MapServer in order to find the closest feature of the layer given some specific coordinates. The problem ...
1
vote
1answer
187 views

MapServer | Cant Get WMS GetFeatureInfo To Return GeoJSON

I have MapServer serving up a whole bunch of data, and everything is working good. One area I am stuck is getting the WMS GetFeatureInfo request to return GeoJSON. Regardless of what I try, I just ...
2
votes
1answer
60 views

MapServer TILEINDEX Layer clipping

When using a MapServer layer with a TILEINDEX and TILEITEM defined... will MapServer clip the source raster to the dimensions of the identified tileindex item(s), or simply use it as a reference to ...
2
votes
1answer
260 views

Relationship between WMS styles and layers parameters for GetMap request in WMS 1.3.0?

Here is the description which I coped from geoserver layers Yes Layers to display on map. Value is a comma-separated list of layer names. styles Yes Styles in which layers are to be rendered. Value ...
-1
votes
1answer
47 views

Openlayers blank map after construction for production

I follow this OL tutorial to build an Openlayers app. I am very new with that sort of dev environment (nodejs/parcel).All is working fine when in dev. OSM Tiles and MapServer Layers appear in web ...
0
votes
1answer
44 views

MapServer *.map / WMS show only a part of the whole shape

I have a problem with a MapServer configuration: test.map // It's installed under: C:\MS4W\ms4w\apps\mapserver_wms. The content of the test.map is follwing: Map NAME "MAPSERVER_QUICKSTART" STATUS ...
1
vote
1answer
58 views

Remove MapServer comments in GetCapabilities request

MapServer adds a XML-comment right before the <Service> tag in a GetCapabilities repsonse like this: <!-- MapServer version 7.4.2 OUTPUT=PNG OUTPUT=JPEG [...] --> Is it possible to ...
0
votes
1answer
118 views

Reading composite types of PostgreSQL in GeoServer or MapServer?

I'm creating a data model with user defined types (Composite Types) https://www.postgresql.org/docs/10/rowtypes.html to implement INSPIRE EU Data Model. And I want to publish my data with Web Feature ...
1
vote
1answer
187 views

Display all mapfile layers with Openlayers

I'm using the following code to display my mapfile layers: var wmsSource = new ol.source.ImageWMS({ url: 'http://localhost/cgi-bin/mapserv.exe?MAP=/ms4w/apps/GEO/test.map', ...
0
votes
0answers
56 views

MapServer HTML legend

I am trying to build an HTML legend for my web application but I am having an issue with the tag [leg_icon] not being recognized. Seems like MapServer is not substituting any URL for this tag. Other ...

1
2 3 4 5
16