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
21 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
vote
2answers
55 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 ...
-1
votes
1answer
24 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
16 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
44 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
50 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
0answers
1k views

Code to load TIFF image on openlayer.layer.wms using MapServer MS4W [closed]

Where did I get mess up? Here is my code inside the mapfile.map LAYER NAME "layername" STATUS OFF TYPE RASTER DATA "data/sample.tif" END The code inside explorer.js from where I ...
0
votes
0answers
26 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
58 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', ...
1
vote
1answer
44 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
2k views

Installing python-mapscript in virtualenv

I am on a django project where I want to use the python implementation of the mapserver mapscript library. I was able to install mapserver and python-mapscript from source. However, due to the ...
1
vote
1answer
24 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 ...
0
votes
1answer
182 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
72 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 ...
1
vote
1answer
53 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
3answers
1k views

Where is mapserver's document root?

I am trying to work through the mapserver tutorialhttp://mapserver.org/tutorial/index.html . I am working on a Mac (with 10.9) and I have installed mapserver from http://www.kyngchaos.com/software/...
2
votes
1answer
29 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
111 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
1answer
156 views

OpenLayers with MapServer

I have setup MapServer (MS4W) on 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/...
2
votes
2answers
2k views

Debugging MapCache / MapServer error

I'm trying to resolve an error when accessing a MapServer layer via MapCache. I'll add excerpt of the relevant files below, but the basic situation is: When accessing a particular WMS layer via ...
0
votes
0answers
41 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
67 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
33 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 ...
3
votes
1answer
528 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?.
0
votes
1answer
114 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: <...
1
vote
1answer
41 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: ...
0
votes
1answer
176 views

Installing mapserver in cygwin with regex.c

This is my first time installing mapserver in cygwin, but I am an experienced user of both cygwin and mapserver. The thing is that I'm getting a regex issue after doing cmake in the build directory ...
0
votes
1answer
745 views

Setting DATA string on LayerObj in MapFile by Using Mapserver's PHP Mapscript

I'm manipulating mapfiles through mapscript. Setting layer attribute values like the opacity works like this: $layer = $map->getLayer('layername'); //set an attribute value $layer->set('...
2
votes
2answers
556 views

Projecting geometry features upside down using MapServer

I have shapefiles containing polygons and lines that are used in a mapfile for projecting them through Mapserver. Is there a way in changing the projection of the layers by 180 degrees (i.e. upside ...
0
votes
1answer
310 views

What does “msLoadMap not incl.” mean?

I receive "mapserv request processing time (msLoadMap not incl.)" in my ms_error.log, but no idea what that means, is that an error or the normal behavior of MapServer? It appears regardless the ...
1
vote
1answer
1k views

Mapserver - Error setting up simple WMS/Mapcache service

I've got a Ubuntu 12.04 computer with Mapserver and all other software on it. I have tried to set up a simple WMS / Mapcache service but have not succeeded. I can browse to the automatically generated ...
2
votes
2answers
518 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....
3
votes
2answers
306 views

Layers visibility- code error in Arcpy

I try to turn of all the layers, using this code using ArcGIS 10.3.1: import arcpy from arcpy import env env.workspace = r"G:\desktop\gis" for mxd in arcpy.ListFiles("*.mxd"): mapdoc = arcpy....
3
votes
1answer
24 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 ...
1
vote
0answers
37 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
0answers
38 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
53 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 ...
2
votes
1answer
1k views

Tile mode in MapServer

I am trying to overlay the layers that are rendered using MapServer over Google maps. I am pretty much new to this whole thing. So I tried to go through this example here http://mapserver.org/output/...
1
vote
1answer
63 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 ...
1
vote
2answers
950 views

Rotating PIXMAP based symbols correctly in MapServer

I'm on mapserver 5.0.4 I want to draw a polyline with a symbol on every 100th pixel. The symbol is a PNG image with size 10 x 7 pixels. I want the symbol to be drawn perpendicular against the ...
0
votes
1answer
30 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 ...
0
votes
1answer
371 views

MapServer with Oracle 12

I'm running MapServer on Windows (with the msplugin_oracle.dll plugin) to create some WMS layers from SDO geometry stored in Oracle 11 database. I take the binaries from this very nice site. The ...
0
votes
1answer
28 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
35 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
40 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
2answers
179 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
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
52 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
82 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
15