Questions tagged [mapserver]

(UMN) MapServer is an Open Source platform for publishing spatial data and interactive mapping applications to the web.

Filter by
Sorted by
Tagged with
1
vote
0answers
10 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
0answers
12 views

PostGIS 3 table join & classification on 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
52 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
31 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
13 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 ...
2
votes
2answers
86 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
44 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
87 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
24 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
25 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
9 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 ...
1
vote
1answer
33 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
30 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
28 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
49 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
58 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
87 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
32 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
30 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
76 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
29 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
135 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 ...
0
votes
0answers
59 views

Installing MapServer on Mac OS X

I want to install MapServer on my MacBook. I installed it using HomeBrew: http://macappstore.org/mapserver/ brew install mapserver It seems that it is installed correctly because in "/usr" folder ...
1
vote
1answer
45 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
38 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
26 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
54 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
61 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 ...
0
votes
1answer
34 views

Copy mapserv.exe problem

I had already formulated an entry recently in which I asked for the error message "msCGILoadMap (): Web application error. CGI variable" map "is not set." asked. Now I think I have found a more ...
1
vote
1answer
73 views

Mapserver OpenLayers WMTS TileRow and TileCol too high and negative

I have a little problem, that I do not understand. My Tiles come from a own mapserver (Mapserver) and everything is fine there. Is a orthophoto of Berlin. But if I invite the WMTS in OpenLayers I get ...
0
votes
1answer
32 views

Mapserver TabFile Error

We would like to render a polygon on our MapServer. Everything works wonderfully on our localhost. Now we would like to send the application via external server. Everything works fine on the ...
2
votes
0answers
39 views

Point Displacement in MapServer

In QGIS symbology controls there is a "Point Displacment" option for offsetting points that are close visual clarity. Is there a similar control for MapServer?
1
vote
0answers
65 views

Mapfile errors, unable to access my shapefiles

I am getting the following errors in my mapfile [Thu Oct 3 11:40:23 2019].299949 msWMSLoadGetMapParams(): enabling non-square pixels. [Thu Oct 3 11:40:23 2019].303483 msDrawMap(): kicking into non-...
0
votes
1answer
27 views

Heat lines with MapServer

Is it possible to do heat lines on MapServer similar to the following image. The datasource will be PostGIS.
1
vote
0answers
71 views

QGIS WMS mapserver not showing all layers

I'm publishing a map via qgis_mapserv.fcgi and the WMS behaves strangely, without giving me any errors or other clues as to what might be wrong. I am wondering: is the problem with using GeoJSON as ...
1
vote
0answers
93 views

Mapserver NODATA affects valid raster data pixels (zero)

I have NOAA nightlight rasters cropped to country boundaries that I am trying to display using Mapserver. As such, I am trying to have NODATA pixels i.e. those outside the country boundaries be ...
0
votes
0answers
25 views

Attribute query OpenLayers server

As part of the MapServer polygons (district boundaries) are shown on the OpenLayers map. The script is in JavaScript. The polygons contain attributes. Currently, a second window opens with the ...
1
vote
0answers
26 views

Hiding NoData values of a raster in MapServer

In a MapServer NoData value pixels can be hide by using the following code inlcusion in a mapfile: `PROCESSING 'BANDS=3,2,1'` Now I have raster with multiple combinations of NoData Values other than ...
1
vote
1answer
64 views

Mapserver - dynamic contrast stretching for custom COLORRANGE's

In MapServer, is there a way to use the PROCESSING "SCALE=AUTO" directive to get dynamic (current extent) contrast stretching with custom colorranges? When I test my mapfile (relevant layer part below)...
0
votes
0answers
22 views

MapServer offset spacing with point pattern

I'm trying to add some point pattern like this : On MapServer. The best I achieved yet is this: Using STYLE SYMBOL 'circle' SIZE 7 COLOR 9 13 248 END I did not find any indication on how ...
2
votes
0answers
88 views

MapServer Query Raster for Pixel Value at Point

I am working with a MapServer and a map file that is displaying a color-relief image. LAYER NAME "sum" DATA "sum.vrt" TYPE RASTER STATUS ...
2
votes
1answer
39 views

MapServer pass parameters for a filter through CGI

Using MapServer and generating a static map. I am trying to pass a key of a record through CGI and have MapServer draw it. From what I understand if I have a name=example in my CGI call to my ...
1
vote
1answer
22 views

mapserv calculate BBOX instead of requiring user to provide it

We have a requirement to email out a map showing a particular feature in our database. When the query is made to generate the map all it has is a feature id. All the queries I've seen to MapServer/...
1
vote
0answers
24 views

Cache layers automatically in TileCache?

I'm using TileCache with MapServer as background application server. In GeoWebCache (GeoServer) caching can be done manually or software itself generates if any tiles are not found. In TileCache ...
1
vote
0answers
45 views

Re-rendering tiles after updating database using mapcache_seed

I have developed the map using MapServer and pre-generated tile using mapcache. Now I have an idea to update the database every day. As changes apply in the database only those parts should be re-...
0
votes
1answer
137 views

MapServer, Mapcache and WMS

I try to use MapServer 7.4 with MapCache 1.6.1 on a Suse SLES 15-system. MapServer is delivering a WMS very well. I installed MapCache successfully (I think). In my mapcache.xml I have set: <...
5
votes
2answers
171 views

Configuring TileCache on Windows and Linux

I want to do tile caching for MapServer map files by using TileCache application. For this I have installed Python 2.7 and TileCache 2.11 and applied the following sequence of steps: Extracted ...
1
vote
1answer
103 views

MapServer with Oracle-Spatial on Linux

On a SUSE System (SLES 15) I try to configure MapServer 7.4. with Oracle-Spatial support. Important: The Oracle Database is installed on another server. I wonder if I need also the Oracle ...
0
votes
0answers
76 views

Mapserver doesn't load geography columns of PostGIS

I have installed Mapserver 7.4.0 with PostGIS 2.4. However, I can't load any layer with geography column. This is my MAP file (with contents prior to LAYER omitted): MAP <omitted> LAYER ...
1
vote
0answers
54 views

How to export MapServer and featureserver links from QGIS

QGIS has an option to export wmf, wcs, wfs ad xyz links all in one go. I have a lot of MapServer and featureserver layers, how do I export those all in one go?

1
2 3 4 5
15