Questions tagged [mapserver]

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

149 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5
votes
0answers
3k views

ArcGIS Server performance comparison

Are there any recent comparisons/studies of ArcGIS Server vs. open source GIS servers in common tasks like providing a WMS/WFS, filtering data/search performance, and so on? We received a lot of ...
4
votes
0answers
241 views

Mapcache zooming problem

I am using mapcache for caching map raster data. Everything works fine except the map zooming, because at the some zoom level i am getting pink tiling images. This is my mapcache xml file: <?xml ...
4
votes
0answers
254 views

Tools to help migration from Mapserver to QGIS Server

I'm going to migrate a Mapserver WMS server to QGIS Server. I'd like to know if there are some tools or plugins that convert Mapserver mapfile (.map) to QGIS project file (.qgs). WMS responses (...
4
votes
0answers
445 views

How to store and serve the time a GeoTIFF refers to

I'm writing software that creates temperature maps as GeoTIFF files. I need to store the time to which the GeoTIFF file refers; not the raster creation time, but the time during which the temperature ...
3
votes
0answers
70 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",...
3
votes
0answers
248 views

How to fill missing high zoom level tiles from MapServer WMS?

I'm creating image tile pyramids (format = MRF) which do not contain all possible tiles at high zoom levels. This is because in some areas the high zoom level tile does not exhibit higher resolution ...
3
votes
0answers
43 views

Which FOSS label engine that supports shrink to fit label in polygon?

I've not found a way to label features using shrink to fit label in polygon, i've tried Qgis, and searched on Geoserver, Mapserver and Mapnik, none of them supports this feature, i'm looking for any ...
3
votes
0answers
146 views

MapServer - Os Open Data - Tutorial

I have recently received my OS OpenData discs from Ordnance Survey, and for the last two evening tried to get this data into MapServer for ultimate use as a WMS for OpenLayers. Safe to say I have ...
3
votes
1answer
468 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?.
3
votes
0answers
97 views

How to render a raster multiple times across the date line?

Using EPSG:4326 and WGS84, I have a GeoTIFF with longitude extents (167, 208) - so it crosses the date line. I'd like MapServer to display the image regardless of whether the user's requesting bbox ...
3
votes
0answers
333 views

How to access tiles in Tilecache using QGIS?

I've Mapserver set up with a mapfile that points to a tileindex. In QGIS I can call the mapfile and view the rasters dynamically. I've got access to tilecache and I've seeded the same mapfile/rasters ...
2
votes
0answers
35 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
0answers
16 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 ...
2
votes
0answers
80 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 ...
2
votes
0answers
183 views

Weird behavior of Mapcache?

I have installed Mapcache 1.6 and Mapserver 7.0.6. I created configuration file (You can see below this text) and I generated tiles throught mapcache_seed. I have tiles in folder but I have problem ...
2
votes
0answers
98 views

Accessing cell value of a wms raster served as ol.layer.Image from OpenLayers

Hi I would like to access the value of the raster cell on clicked location (sort of an indentify tool) of a raster displayed in a webapp as ol.layer.Image via mapserver. I have set the .map file of ...
2
votes
0answers
224 views

Setup Mapcache (ms4w package) with FastCGI on IIS

When I try starting MapCache using the IIS FastCGI module, I get an Internal Server Error .. mapcache.fcgi.exe - The FastCGI process exited unexpectedly I've already got MapServer running like ...
2
votes
0answers
192 views

Dynamic MAP parameter for MapCache + MapServer

The MapServer and MapCache are installed on the Ubuntu machine, all works fine. However, the specific of developed system is that the displayed through WMS data often have different map files created. ...
2
votes
0answers
70 views

MapServer reading SQL from 8-bits data type TIFF

I'm converting to SQL (PostGIS) some raster files (TIFF). Then I'm using those SQL files for queries with MapServer, and displaying it in my app with OpenLayers with no problems. Everything goes well. ...
2
votes
0answers
574 views

Make “Nodata” transparent in raster - Mapfile/Mapserver

I have a raster and I'm trying to make it display in Openlayers2, using Mapserver 7.0 in backend. My problem is, I think, that because the online map is not the same projection as my data, Mapserver (...
2
votes
0answers
546 views

Why is MapServer returning a blank image?

I am trying to load a layer from a postgis database, MapServer does not return anything. I think I have narrowed the problem down to the fact that the SQL query MapServer is running is returning ...
2
votes
0answers
199 views

different data range of raster file in mapserver and qgis

a NetCDF file with only one band with a data range from [0,1.1]. IDV & QGIS identifies it correctly, however gdalinfo finds the data range [1,26505]. Or could it be possible that gdalinfo is right ...
2
votes
0answers
501 views

Install php mapscript on ubuntu 12.04 PHP 5.4

I follow this website : http://blog.geoghana.com/2013/06/28/setting-up-lampp-linux-apache-mapserver-php-postgresqlpostgis/ to install mapserver and the php extension on my ubuntu 12.04 64bit and PHP 5....
2
votes
0answers
71 views

Using MapServer with OpenLayers

I have implemented MapServer in a Windows environment and I get a map from the following URL http://localhost/cgi-bin/mapserv.exe? mode=browse& template=openlayers& layers=all& ...
2
votes
0answers
102 views

PostGIS raster connection is not closed by MapServer

I'm using PostGIS raster in MapServer like this: TYPE RASTER DATA "PG:port=6432 dbname='mydb' user='postgres' password='1234' schema='public' table='truemarble' mode='2'" PROCESSING "CLOSE_CONNECTION=...
2
votes
0answers
459 views

Input a KML file dynamically into MapServer without losing attributes?

Is there any possibility for MapServer (I'm running v6.2.1) to process the features / styles from a KML file dynamically? I tried STYLEITEM "AUTO" but it turned out to work only for *.dgn and *.tab ...
2
votes
0answers
579 views

“could not get any sources: no image returned from source WMS” error in mapproxy demo

I am trying to connect my mapserver to MapProxy. First part of the map file is shown below MAP FONTSET "fonts.lst" IMAGETYPE png MAXSIZE 4000 SIZE 800 800 EXTENT -20000000 -20000000 20000000 20000000 ...
2
votes
0answers
490 views

Mapserver+openlayers: displaying a shapefile with Cylindrical Equal Area (Lambert) projection

I have some shapefiles in "World Cylindrical Equal Area (Lambert) projection". The .prj reads: PROJCS["World_Cylindrical_Equal_Area",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_ 1984",...
2
votes
0answers
216 views

Mapserver set no image available

I'm composing a map with aerial footage with mapserver and tilecache. I have tiffs with geo information, then I run gdaltindex to create the shapefiles and then I configure the map file with layers ...
2
votes
2answers
437 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....
1
vote
0answers
15 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-...
1
vote
0answers
13 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
24 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 ...
1
vote
0answers
17 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
0answers
17 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
21 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-...
1
vote
0answers
20 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?
1
vote
1answer
41 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
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
0answers
88 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. ...
1
vote
1answer
42 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 ...
1
vote
0answers
37 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 ...
1
vote
0answers
132 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 ...
1
vote
0answers
77 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
56 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 ...
1
vote
0answers
113 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
52 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
0answers
158 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
0answers
180 views

Tilecache and python (TMS)

I'm working on a Django tile solution to serve thousands of images. So far I have been able to set a Mapscript server with tilecache. Everything seems ok but when loading into Leaflet I got some kind ...
1
vote
0answers
106 views

Mapserver GetLegendGraphic via expression

I am trying around this for a while now. But can't find any answer. So I try it here. What do I have: Mapserver 7.0.6 What do I want: Obtaining a single legend graphic for a class without text and ...