Stack Exchange Network

Stack Exchange network consists of 175 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
0answers
25 views

Changing name of file download from browser app?

I am developing browser application using MapServer and JavaScript. I've got part where on map click I get FeatureInfo about an object: function getFeatureInfoGML(map){ var openwindowhandle=...
0
votes
1answer
20 views

phpmapscript on Debian Stretch

I installed MapServer 7 and I need phpmapscript. Is there any binary package for phpmapscript for Debian Stretch? I could install PHP 5.6 from binaries (https://stackoverflow.com/questions/46378017/...
2
votes
1answer
25 views

Get values from shapeObj MapScript

I'm using Mapserver 7.4.0-dev and MapScript PHP. In previous versions of MapServer and MapScript (https://mapserver.org/mapscript/php/index-5.6.html#shapeobj), I could query a shapeObj after its ...
0
votes
0answers
11 views

MapServer PROCESSING “SCALE=a,b” does not stretch data

I have a map file that loads GeoTIFF data, which is of type float and in the [0.0-100.0] range. It gets scaled to be between 0-255 with this command: PROCESSING "SCALE=0,100" Next it gets ...
0
votes
1answer
29 views

Configuring MapServer on Ubuntu with Apache

I am using Ubuntu 18.10 /x64 / Apache2. I wish to install MapServer on my system. The packages can be obtained from this place: https://launchpad.net/ubuntu/+source/mapserver/7.2.0-5/+build/15292173 ...
1
vote
0answers
18 views

Understanding group attribute in mapserver's cluster?

I am trying to use the Group function in Mapserver's Cluster. We have a cluster defined where when we have a lot of objects on top of each other we group them in a cluster. Show a circle and a count....
1
vote
2answers
61 views

Mapserver GeoJSON input

Is it possible for MapServer to read GeoJSON file and serve it as a layer in the .map file? Like how it can be done with shapefiles as shown below: LAYER Name 'land' TYPE POLYGON DATA '...
0
votes
0answers
13 views

MapServer Runtime substitution for geotransform

I am trying for a way to get a variable geo transformation of a few line strings from a shapefile: VALIDATION 'TIME' '^[0-9\-]*T[0-9:]*\.0Z$' 'SMOOTH' '^[0-9]*$' 'SMOOTHITER' '^[0-9]*$' END ...
1
vote
1answer
17 views

Mapserver data root

I consolidate all my .map files and data under a root folder. (eg. c:\data) Under the url when accessing .map file via Mapserver, instead of defining an absolute full path: http://localhost/cgi-bin/...
1
vote
1answer
41 views

Mapserver weird output of REQUEST=GetCapabilities&SERVICE=WMS&VERSION=1.1.1

Once I use REQUEST=GetCapabilities&SERVICE=WMS&VERSION=1.1.1 in my browser with the mapserv I get the following: $ cat ~/Downloads/ms ELF>�@@!@8 @@@@��888�� �� � �� �� � TTTDDP�tdLLQ�...
1
vote
0answers
35 views

mapcache + sqlite + http2 nginx

searching for the maximum speed I can get from our mapcache service, I'm going to make some test in a new server (AWS EC2) with Nginx as a reverse proxy and Apache before to update the live system. ...
0
votes
1answer
33 views

How to debug PostGIS connection issue from MapServer?

I have a PostGIS connection string that works fine in GDAL, as I get a raster response when running gdalinfo "PG:host=... port=5432 user='...' password='...' dbname='weather_models' schema='rasters' ...
2
votes
1answer
38 views

MapServer Raster WMTS From PostGIS Column

I'm going to guess this isn't possible, since I haven't seen documentation supporting this in either MapServer, PostGIS, or GDAL. I have a PostGIS table with two columns -- timestamp and rast -- ...
0
votes
0answers
49 views

ODK Aggregate PostGIS and MapServer WFS with attached images

I am using ODK Collect to collect ground data. The data collected are stored into a PostgreSQL/PostGIS database then I publish them as WFS through MapServer and read them with Leaflet (Leaflet-WFST ...
0
votes
0answers
43 views

OpenLayers forEachLayerAtPixel and MapServer .MAP file COLOR

I'm trying to use map.forEachLayerAtPixel in OpenLayers to see what layers are clicked, but I have a layer in the background that is a grid served by Mapserver with a grid.map file that is just a ...
3
votes
1answer
289 views

How to compile/install php-mapscript with PHP7

So, this PR opens up mapscript support for PHP7. Since there is no ducomentation I gave it a try based on How compile/install php-mapscript on Ubuntu 16.04 (although I'm doing it in Debian 9 if that's ...
0
votes
0answers
25 views

MapServer return available mapfiles

With an enormous amount of mapfiles in one directory, is it possible to return a list of available mapfiles? I run MapServer in a docker container: docker run -d -p 8181:80 -v $MAPDATA:/map ...
1
vote
1answer
59 views

Mapserver not displaying a raster properly

I have a 32bit floating point raster containing only five values (-2, -1, 0, 1, 2 + -999000000 for noData don't ask me why, it was delivered to me), no compression, projected (EPSG:3857). I am using ...
1
vote
1answer
30 views

Some interior tiles don't render

I am rendering multipolygons of FEMA flood zones using mapserver / mapcache / openlayers. The flood zones render correctly directly from mapserver, but at a few zoom levels interior tiles (by which I ...
0
votes
1answer
74 views

Moving MS4W from Apache to IIS

I'm trying to switch to IIS on my MS4W MapServer install. It works fine in Apache but on IIS I get: msProcessProjection(): Projection library error. proj error "no arguments in initialization list"...
0
votes
1answer
56 views

MapServer WFS request

I want to request a WFS feature but my mapfile returns WMS, I have tried to change the mapfile but it still returns the WMS. I am using MapServer 7.3 and OpenLayers 4. Below is my mapfile ... ...
0
votes
1answer
37 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
51 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
154 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
66 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
89 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
94 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
30 views

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 TIFF images - 1 image stores (for example) air temperature at a single time and elevation. ...
0
votes
1answer
29 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,...
1
vote
3answers
202 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
71 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
1answer
101 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 ...
1
vote
1answer
217 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
63 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
288 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
148 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
25 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
20 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
111 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
12 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
231 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
115 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
66 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
65 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
50 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
89 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 ...
1
vote
1answer
124 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
155 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
64 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
63 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 ...