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
0answers
23 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
66 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
34 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 ...
-1
votes
0answers
22 views

Is it possible to access environment variables in mapfiles?

I was wondering if it is at all possible to access environment variables in Mapserver mapfiles? I only found a REALLY old trac issue https://trac.osgeo.org/mapserver/ticket/408.
2
votes
1answer
16 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
19 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
50 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
66 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
26 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
21 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
46 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
72 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
39 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
15 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
57 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
34 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
84 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
36 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
50 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
41 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
60 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
61 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
53 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
26 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
44 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
149 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
106 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
29 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
489 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
124 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
273 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
0answers
26 views

What are some good, up-to-date, resources for learning MapServer? [closed]

I am attempting to learn MapServer, and am looking for some solid resources for doing this. I am new to working with both MapServer and Geospatial Information Systems (GIS). I have read through much ...
1
vote
1answer
94 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
47 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
163 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
39 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
35 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
52 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
103 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
170 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
42 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
vote
1answer
71 views

Round number for label in MapServer

With MapServer, is it possible to use an expression to round a number for a label? For example, my dataset has the float value 174.000000000 which I want to show in a label as 174. I have tried a ...
1
vote
2answers
208 views

Cache OpenStreetMap tiles with MapCache

I'm trying to cache OpenStreetMap related tile. The corresponding server has separate data related to opeenstreetmap (http://xx.xx.xx.xx/osm). It's an XZY Tiles service. Within the mapcache.xml file I ...
2
votes
1answer
58 views

Connecting MapServer to a raster table in PostGIS

I am new in MapServer and I want to visualize some raster tables in MapServer. My mapfile is: MAP CONFIG "MS_ERRORFILE" "error.log" DEBUG 5 NAME "milad" STATUS on SIZE 600 600 EXTENT -8321547 ...
1
vote
0answers
142 views

WMS layer is displayed with ruined geometry in OpenLayers [duplicate]

I want to display a shapefile in OpenLayers using MapServer 7.6. It is shown properly in the browser using the mapfile's link. But when I try to display it in OpenLayers, the geometry is completely ...
1
vote
2answers
148 views

GetFeatureInfo template of MapServer not replacing values

I am using MapServer 7.4.2 and I am trying to setup a WMS GetFeatureInfo using OUTPUTFORMAT instead of direct TEMPLATE but variables are not replaced On MapServer file layer definition using: ...
1
vote
0answers
46 views

Point style with Python MapScript does not work

Software details: CentOS 7, Python 3.6, MapServer v 7.2.1 is compiled from source. I use Python MapScript to build WMS, it works well for styling Lines and Polygons, but not for Points. For example,...
3
votes
1answer
31 views

If there are many overlapping polygons at the location of GetFeatureInfo, how can I populate a template with information about all of them?

I have a layer with water basins, actually subbasins. Some of these subbasins (polygons) contain smaller subbasins. If I click on a smaller subbasin, a GetFeatureInfo request is sent to mapserver, and ...
2
votes
0answers
87 views

MapServer merging features from layers in Template-Driven Output

I want to get WMS GetFeatureInfo result in GeoJSON format from MapServer. Result should be valid GeoJSON FeatureCollection containing array of features from one or more layers. I use Template-Driven ...
0
votes
2answers
145 views

Mapserver INCLUDE using multiple .map files

I am currently testing out a new way to display my Mapserver WMS's. Here is the context. I have a script that generates an individual .map file for each of my rasters. These mapfiles are fully ...

1
2 3 4 5
16