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
18 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
18 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
17 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
8 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
29 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
28 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
25 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
31 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
42 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
31 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
51 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
55 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
52 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
22 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
39 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
102 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
50 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
23 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
244 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
72 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
155 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
25 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
42 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
29 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
80 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
34 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
33 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
51 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
73 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
135 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
36 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
43 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
129 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
42 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
140 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
88 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
2answers
93 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
43 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
28 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
72 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
96 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
55 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
136 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
67 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
43 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
112 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
29 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
111 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
139 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
2 3 4 5
16