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
33 views

Developing Web-based GIS application? [on hold]

I'm trying to develop a web-based mapping application only with opensource. The purpose of this application is to enable surveyors to collect data with their mobile phones without any specific devices ...
0
votes
1answer
942 views

Serving WMS using MapServer (Mapfile)

I want to display a map from MapServer in Openlayers 2.13. I've prepared the Mapfile: MAP NAME "WMS Server" IMAGETYPE PNG EXTENT 106.637 -6.36199 106.78 -6.231 SIZE 600 300 ...
2
votes
0answers
13 views

Encode MapServer tile pixels with data values

Is it possible to encode values from raster bands into pixel output using a MapServer .map file? More and more I'm finding that a commonly adopted method for moving geographical data for rendering ...
1
vote
1answer
19 views

Measure loading time of layers in Mapserver

I use mapserver to generate one single tile per request. The mapfile contains several layers and I would like to know which of them is the bottleneck that needs too much time to render. WIth shp2img I ...
1
vote
1answer
32 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
21 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 ...
0
votes
1answer
89 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"...
1
vote
0answers
52 views

Producing MapServer mapscript map inset?

How do I produce a map similar to the one in http://www.nexusenergy.com.au/6468050/nexus-energy-oil-gas-exploration-and-productio.htm using geodjango to drive mapserver? I would like to dynamically ...
1
vote
1answer
34 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
69 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
63 views

Which is more performant GeoJSON or WMS/WFS using OpenLayers? [closed]

I'm developing a web application using PostGIS, Laravel, Vue.js and Openlayers, for the moment I generate the GeoJSON from my database using the following code : public function plosWithGeom() { ...
0
votes
1answer
53 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 ...
3
votes
1answer
44 views

Postprocessing MapServer outputs [closed]

I need to perform a postprocessing operation on an image produced by MapServer before it is handed off to the final user of that image. I am looking for a way to hand a resulting image from MapServer ...
1
vote
0answers
202 views

MapServer WFS service works in QGIS but not in ArcMap

I published a WFS service using MapServer. The source of the WFS layer is a FGDB. When I add the service in QGIS, it works flawlessly. When I add the service in ArcMap, all I can see is a layer ...
0
votes
1answer
24 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/...
0
votes
1answer
73 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/...
1
vote
2answers
985 views

PHP MapScript get feature / shape by index in layer

I upgraded my MapServer version from 5.6.x to 6.2.0 (yes, big version jump here!) and I am stuck with getting a shapeObj from a layer by simply using its Index (or FID for shapefiles or GID in case of ...
3
votes
1answer
436 views

Group multiple rasters in MapServer?

I had a map file for each state (raster file) of India. Now I want to group all map files to show a single raster or single map file? How I can do in using QGIS or any platform?.
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. ...
1
vote
1answer
128 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 ...
0
votes
2answers
1k views

Feature table: Mapnik, GeoServer, CKAN, GeoNode, GeoNetwork?

I'm trying to get a clear view of the roles of different components here, this is not a "which is better" comparison, these components have different roles, but their functions overlap. (Comparing ...
2
votes
2answers
357 views

MapServer WFS Request via POST

Using MapServer 6.0.1-2 "<GetFeature service="WFS" version="1.1.0" srsName="EPSG:900913" xmlns:topp="http://www....
2
votes
1answer
26 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 ...
5
votes
1answer
2k views

Seeking simple sample mapcache.xml file that works with mapserver?

I have a functioning mapserver installation runing on Ubuntu 14.04 and it's working fine. However, I would like to up the performance by putting mapcache in front of it. I've installed mapcache, but ...
0
votes
0answers
55 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
38 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
22 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....
0
votes
0answers
14 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
2answers
86 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 '...
1
vote
1answer
19 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/...
2
votes
1answer
41 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 -- ...
1
vote
1answer
45 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�...
0
votes
1answer
36 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' ...
1
vote
0answers
43 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
0answers
51 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 ...
3
votes
1answer
381 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 ...
5
votes
1answer
13k views

Setting up MapServer WMS and use it with OpenLayers

I have set up MapServer WMS on the localhost by the following map file: MAP NAME "Prvi_WMS" SIZE 600 300 # 600 by 300 pixel image output PROJECTION "init=epsg:4326" END ...
3
votes
0answers
1k views

dateline issue: wrapDateLine with MapFile [duplicate]

I am using wrapDateLine properties for OpenLayers.Layer.WMS for handling dateline issues. The problem with wrapDateLine is that I am getting the same polygon repetitively around the wrapped map as a ...
0
votes
0answers
49 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 ...
2
votes
1answer
134 views

Using the value of a field in an S57 file with Mapserver 7

I'm relatively new to Mapserver and I'm having an issue with the line style for depth contours in my map. Basically I just want the depth to be written along the line. I can get text to appear along ...
1
vote
0answers
281 views

Mapserver blank image just with “wms_format” “image/png” [closed]

I Have a problem with mapserver 7.0.6 (same with 7.0.4). If I use "wms_format""image/jpeg" everything is fine. But if it's "wms_format" "image/png", there's nothing more than a blank image with QGIS. ...
1
vote
0answers
408 views

How can I config/use MapCache/MapServer to serve my MBtiles as WMS service?

Currently I am using GeoServer for my Map Service as WMS. I use TileMill for creating a customised map with styling and SHP files and then export as mbtiles. I have tried TileServer-PHP & ...
1
vote
1answer
2k views

Install and use MapCache?

I installed mapserver 6.4.1 using OSGeo4W and I created a mbtiles file for a small region of OpenStreetMap (loaded into PostGIS) using TileMill. My questions are: a - Do I have MapCache? MapServer ...
3
votes
3answers
609 views

Is there a MapCache 1.2.1 (currently last) binary for Windows?

I use MapServer 6.4.1 installed with OSGeo4W. I cannot find equivalent MapCache (1.2.1) binary for Windows and I do not know how to compile it. It is supposed to be part of the mapserver suite. Can ...
1
vote
1answer
157 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"...
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 ...
0
votes
1answer
115 views

Mapserver Layer Connection 2 database

i use mapinfo .tab for show the map, and i want to use SQl Server To select the other data, can mapserver have 2 connection in layer? or there are other ways this my .MAP layer configuration. LAYER ...
0
votes
1answer
54 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: ...
1
vote
1answer
71 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
3answers
222 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 ...