Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [mapserver]

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

0
votes
1answer
32 views

How to use a secondary geometry in LABEL object

I have a set of settlement features with two geometries: one is an outline polygon and another is a label point. The features are fetched from a PostGIS db: LAYER NAME "settlements" ...
0
votes
1answer
16 views

Mapcache + SQLite

i tried to configure mapcache to use with sqlite database, but i have some problems. I want make cache for four layers, but i dont know, how to do this. When i make more tilesets, i get error: ...
2
votes
1answer
31 views

MapServer: using a CRS for which there is no EPSG code

I am developing a MapServer map file for a map created with Goode's Homolosine projection. The PROJ string is rather simple: +proj=igh +lat_0=0 +lon_0=0 +datum=WGS84 +units=m +no_defs The IOGP (...
1
vote
1answer
23 views

Specify database schema in MapServer mapfile

I have my mapfile. I am able to connect to my PostGIS database when my table is under the public schema. Here is my database structure. Database Ingham \__Schemas (3) \__2016 \...
0
votes
0answers
5 views

Mapserver PHP Mapscript Dynamic Heatmap

I am using MapServer 7.0.7 and PHP 5.6.36. I have a layer group in a mapfile which is dynamically generated via PHP mapscript. I would like to add a dynamic heatmap (kernel density) layer based on ...
0
votes
0answers
21 views

Mapserver with tileindex to Mapbox

I have many tif files in a single directory which I want to show as a layer in Mapbox. Starting with Mapserver (running a Docker container) to publish the tifs as PNG raster layer. I receive png ...
0
votes
0answers
20 views

How to use both wms_layer_group and GetLegendGraphic in the same layer

The new wms_layer_group layer metadata tag appears to be inconsistent with legends. wms_layer_group cannot be combined with GROUP (re: this) GetLegendGraphic only works on CLASS items that have a ...
1
vote
1answer
17 views

How to configure mapserver 7 for both time and elevation

I am trying to use mapserver to serve up multi-dimensional raster data. All the data is stored in separate tif images - 1 image stores (for example) air temperature at a single time and elevation. ...
0
votes
1answer
22 views

Mapserver displays blank image of POINT layer data extracted from PostGIS database [duplicate]

I am trying to display a couple of lat/long points with Mapserver, which are stored in a PostGIS database. Here is my Database setup: CREATE TABLE test( gid SERIAL NOT NULL PRIMARY KEY,...
0
votes
3answers
41 views

Creating WMS proxy without capabilities document?

I've recently been tasked with making a custom written WMS server be usable with newer clients and apps such as QGis. The original server was written years ago by a consultancy firm in C++ and who ...
0
votes
1answer
41 views

Openlayers with Mapserver

I have setup a map server in my local Windows machine, and can access the map with this link http://localhost/cgi-bin/mapserv.exe?template=openlayers&layers=all&map=C:/ms4w/apps/osm/basemaps1/...
0
votes
0answers
31 views

Mapserver get extent for a lat long

I am using PHP Mapserver API, and trying to get image for a particular lat long at center for some zoom value. Below is my code define( "MAPFILE", "C:/ms4w/apps/osm/basemaps2/osm-google.map" ); ...
0
votes
1answer
34 views

MapServer query through URL

I am new to MapServer and I wanted to host offline map server on Windows, so after following this link https://github.com/mapserver/mapserver/wiki/RenderingOsmDataWindows#osm-import I have setup the ...
0
votes
0answers
80 views

Vector tiles as datasource in MapServer

Does anyone already have experience with the integration of Vector Tiles as data source MapServer? With the current GDAL library and the MBTiles driver this should work. I use an MBTiles from ...
0
votes
0answers
18 views

Leaflet attribute features update from online database

What are some options to show updated attribute data in a Leaflet map? For example, I have a Leaflet map that shows polygons for the different parks in a region and when a user clicks on a map, a ...
1
vote
1answer
46 views

Calculate coordinate for a point along given line

Using Openlayers or plan Javascript, how would i get the coordinate of a point that is 500 meters along this line? Im trying to calculate the coordinate (lat long) x meters along a given line Example ...
0
votes
1answer
40 views

Mapserver Point Layer

I am able to draw and create wms mapfile for POLYGON and LINE but not for a POINT, I am not sure what maybe the issue, can you assist LAYER NAME Country TYPE POINT EXTENT -25 -35 51 37 ...
2
votes
1answer
96 views

Implementing a complete web mapping project with folium

I am quite new in web mapping and I was wondering if I could implement a complete web GIS using just folium and pandas and ... and I mean that is it possible to do it without any geospatial web ...
0
votes
0answers
70 views

Displaying a raster layer (Sentinel-2) MapServer/WMS

I have a lot of raster data Sentinel-2, I need to display them on the map with MapServer/WMS. when I saved the data as images through the QGIS, they were displayed correctly, because as much data I ...
1
vote
0answers
14 views

Setting COLORRANGE for rasters with variable minimum and maximum value in MapServer?

I have a series of rasters picturing the same phenomenon/product eg. the accumulated precipitation and I use the same mapfile for all. Naturally the minimum is always zero but maximum is variable from ...
0
votes
1answer
14 views

Display all values in mapserver-layer

I have a mapserver map-file that gets data from postgis-tables. One of the tables holds several linestrings that i set as points in the map-file. They show up based on the zoom-level in my map. Is ...
1
vote
0answers
64 views

Points won't display on map using OpenLayers 3 and MapServer

Im constructing a Vector-tile map using data from the following site GeoNorge -N5000. Im constructing it using OpenLayers 3 and MapServer with the data being passed from a PostGis database. I've ...
0
votes
0answers
39 views

Getting empty MVT output from MapServer

I am using MapServer 7.2.0 to generate mvt for two layers (one line layer and one point layer). I am able to generate mvt output for the line layer but is having problem with the point layer. The ...
0
votes
0answers
11 views

make queries on different databases in tilestache

I have 3 databases, each containing vectorial data. I want for each zoom level to fetch the appropriate vectorial data. So I have the following: "data": { "allowed origin": "*", ...
0
votes
1answer
109 views

Adding all polygons in GML from MapServer to openlayers using WFS

I want to show the contents from MapServer (returned as GML given below) as WFS layer in OpenLayers map (OpenLayers v5.0.0). The problem is that only one polygon is added to the map. Here is the code ...
0
votes
0answers
56 views

Layer added using TileWMS becomes black mass on zooming out OpenLayers?

I am adding a WMS TileLayer from MapServer (format = image/png) to OpenLayers map. When I am zoomed in sufficiently, I see that the tiles are aligned perfectly. However, if I zoom out a little, the ...
0
votes
0answers
42 views

Inconsistent pixel values shown on openlayers map

I'm getting weird behavior with different zoom levels of my WMS layer. It either omits data completely, or changes pixel data and I don't see where the error/misconfiguration could reside. Openlayers ...
1
vote
1answer
43 views

Circle display on openlayers map (client-side vs server-side)

I'm developing a webGIS website where I draw circles from two sources: a mapserver mapfile that "draws" them from PostGIS (red circles in image). The circles are created with ST_Buffer, eg ST_Buffer(...
0
votes
1answer
38 views

MapServer Integration with ZOO Project on Windows 10

I installed ZOO Project using the package installer (x64-72). To add MapServer, I installed ms4w using the zip file (ran apache-install.bat) and added the zoo project application. I also added the ...
0
votes
1answer
63 views

ArcMap cannot access WCS version 2.0.1 on MapServer?

I have a MapServer 7.0.7 map containing only a layer with a GeoTiff DEM. It works perfectly with QGIS 3.0.3 but I cannot use it with ArcMap 10.5. This is my map file: MAP OUTPUTFORMAT NAME ...
0
votes
0answers
14 views

MapServer: using scaled values to style a raster

I am using runtime substitution variables to update the data path for a raster layer. The problem is how handle the style classes: each layer has different values so I can't create predefined classes....
1
vote
1answer
63 views

Mapserver / QGis and DEM GeoTIFF different nodata values behaviour

I Have a problem with novalue datas in my DEM… This is the workflow I did: my DEM datas are in multiple Arcgis ASCII grids… Each .asc files have a header containing "NODATA_value -99999.00". I ...
1
vote
1answer
118 views

MapServer Kerneldensity empty map

I'm trying generate a heatmap from my PostGIS table, but my map is empty... Here is my config file: LAYER NAME feature_heatmap TYPE raster CONNECTIONTYPE kerneldensity CONNECTION "point_data"...
2
votes
0answers
41 views

Use EXTENT of a LAYER in Mapserver to crop a layer?

I have two vector layers in my map file that are at very different resolutions, and overlap somewhat. This is causing me some issues, and I would be happy if the higher resolution layer simply ended ...
1
vote
0answers
40 views

Tile problem when browser is zoomed in

I'm using mapcache/mapserver/openlayers 3 with ms4w. When my application is loaded with the browser at the normal 100% zoom level, everything returns fine (testing on chrome, firefox, and edge). The ...
1
vote
0answers
31 views

MapServer WMS with inline Element export is not exported correctly in print composer

I have a WMS service from MapServer 7.0.4 with a trademark as POINT inline Feature in the bottom corner defined with image coordinates. Therefore, it is always in the same place. As soon as I export ...
0
votes
0answers
24 views

How to update php in ms4w

My actual version is 5.3.5, I need the version 7 or >= 5.5.0. I am working on ms4w as my map server and with support postgis to the database on postgres
1
vote
1answer
19 views

bar charts on MapServer are not plotted depending on the zoom level

I have a problem with bar charts on mapserver. At first glance the charts are perfectly plotted and all is okay. But depending on the zoom level a few charts are not plotted which are plotted on other ...
3
votes
0answers
48 views

NODATA on MapServer

I am trying to generate a DEM mosaic to publish via a WCS using MapServer. Unfortunately I can not remove the NODATA. In MapServer's own tutorials and discussion groups suggest PROCESSING "NODATA = 0",...
1
vote
2answers
106 views

Style MapServer layers easily (or as easy as possible)

I am working with MapServer WMS in the form of mapfiles and consuming them into a OpenLayers map. I am trying to find out a way to ease the symbolization process of the various layers in a mapfile. ...
0
votes
1answer
34 views

Is it possible to use NamedStyle inside of UserStyle with MAPSERVER SLD?

I want to use a NamedStyle inside a UserStyle for the ElseFilter of my SLD-Definition: <NamedLayer> <Name>MyLayer</Name> <UserStyle> <FeatureTypeStyle> <Rule> <...
1
vote
1answer
88 views

How to set the order of layers in mapservers legend graphic?

Is it possible to set the order of the displayed elements (Layers) in the legend graphic recieved by WMS GetLegendGraphicREQUEST or will MAPSERVER always return in the order of layers defined in the ...
2
votes
1answer
32 views

Which value fits the best for Parameter SIZEUNITS for Googles Web Mercator Projection EPSG 3857 to show a radius in meters

In my mapfile there is a WMS definition, which shows a circle buffer and it's radius in meters. I offer UTM-Systems and Googles Pseudo Mercator. In UTM and SIZEUNIT meters it works fine. Please, could ...
1
vote
0answers
68 views

Serving a GeoTIFF as ImageWMS in OpenLayers resizing issue

I'm sure I missed a step which is leading to this issue of reprojecting/resizing my imageWMS layer. I started with netCDF that wasn't georeferenced so I gdal_translated it to a GeoTIFF and then ...
1
vote
0answers
31 views

Translating ocean data to a raster format and displaying with MapServer

I am having extreme difficulty correctly displaying a raster layer that originates from a netCDF file Source: (https://oceandata.sci.gsfc.nasa.gov/MODIS-Aqua/L3SMI/2017/001/) I can use gdal_translate ...
1
vote
1answer
461 views

Creating mapfile for MapServer in QGIS? [closed]

How can I create mapfile (.map) for MapServer 7.0 in QGIS 2.18 or 3.0? Or are there any tools which are part of the core MapServer distribution? And what is the best visual tool for create mapfile ...
1
vote
0answers
50 views

Reprojection from unknown CRS to WGS84 (EPSG:4326) with MapServer and GDAL

I would like to know how MapServer can do the reprojection from a unknown CRS to EPSG:4326. I think it uses GDAL but how I can do the same thing? GDAL Info output from data input (no EPSG code): ...
1
vote
2answers
88 views

WCS : InvalidParameterValue and OperationNotSupported : Differences

In WCS 2.0 & 1.1, I'm looking for generate exceptionCode "OperationNotSupported" which is defines in OGC Documentations (WCS 1.1 / WCS 2.0 / OWS 1.1 / OWS 2.0). With MapServer 7, I've tested: http:...
0
votes
1answer
48 views

How to make symbols with Mapserver?

I want to convert some Mapinfo styles to Mapserver. Here, I found some examples on how to make symbols. But I don't understand how it works. For example a dashed line: SYMBOL NAME "mapinfo-pen-73"...
1
vote
1answer
33 views

GdalInfo and Mapserver : Difference between data

I'm trying to create a generic XML response from DescribeCoverage response. For my tests, i used Mapserver 7.0.7 With gdalinfo, i got this : Driver: GTiff/GeoTIFF Files: geostationary_ir-...