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
1answer
20 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
36 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
24 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
35 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
32 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,...
2
votes
1answer
20 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
25 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
27 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
22 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
40 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
23 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
33 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
31 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
26 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
31 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
64 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
23 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
21 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
51 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
18 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
58 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
31 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
20 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
19 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
32 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
97 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
132 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
83 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
61 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
31 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?
2
votes
1answer
71 views

Can I Use GeoWebCache for seeding UMN MapServer Mapfiles?

I have installed GeoServer and MapServer in a single system and also enabled GeoWebCache for GeoServer (Integrated Version of GeoServer). Can I use same GeoWebcache for caching UMN MapServer ...
2
votes
1answer
76 views

MapServer 7 PostGIS/PostgreSQL support

I'm trying to compile MapServer 7 with: Proj 6 Geos 3.7 Gdal 2.4 PostGIS 2.5 PostgreSQL 10 But for some reason it complaining about pg_config not found, I usually insert the path /usr/pgsql-10/bin/...
0
votes
0answers
38 views

The layers of KML and KMZ do not paint

I have a problem with MapServer and I do not know much about it. I'm painting a map but my problem is that I do not paint the layers in both KML and KMZ the code I have is..... MAP CONFIG "...
2
votes
0answers
22 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
27 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 ...
0
votes
1answer
112 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() { ...
1
vote
1answer
42 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=...
1
vote
1answer
59 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
50 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
148 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
72 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
31 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
306 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
18 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
33 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
59 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
126 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
86 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
143 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
95 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 ...