Questions tagged [mapserver]

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

4
votes
0answers
216 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
245 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
422 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 ...
4
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 ...
3
votes
0answers
64 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
230 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
40 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
143 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
0answers
95 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
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 ...
2
votes
0answers
68 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
163 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
88 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
214 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
183 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
68 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
543 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
533 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
198 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
496 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
67 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
100 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
455 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
565 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
481 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 ...
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....
1
vote
0answers
47 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
0answers
27 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
117 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
67 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
55 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
99 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
50 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
132 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
142 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
84 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 ...
1
vote
0answers
31 views

a broken PNG output in mapserver

i want to show my shapefile on the web my template file is: <html> <head><title>Simple Mapserver Template HTML Document</title></head> <body> <img src="[img]" ...
1
vote
0answers
384 views

OpenLayers calculating wrong bbox for tiles

I have a map file from MapServer (having to use MapServer instead of GeoServer since the datasource is an ESRI fgdb) defined with the following: MAP NAME dalguy72__gushelpsme1 STATUS ON ...
1
vote
0answers
129 views

Weird result in pgRouting with Dijkstra's algorithm

I'm using Dijkstra's algorithm to perform pgRouting with MapServer. I've stored the following function in PostGIS: CREATE OR REPLACE FUNCTION public.routing_function( IN x1 numeric, IN y1 numeric, IN ...
1
vote
0answers
89 views

Mapscript_csharp issue with version 7.0.4

Processing a map file with use of mapscript_csharp.dll (version 7.0.1) and map contains a few WMS HTTP layers and some are local shapefiles. After upgrading from Mapserver 7.0.1 to latest version 7.0....
1
vote
0answers
156 views

How do you set the MS_MAPFILE environment variable in IIS?

I'm trying to set up MapServer as a WMS on a windows server running IIS. All works well until I try to cascade the service through GeoServer and the getcapabilities URL is flagged as invalid as it ...
1
vote
0answers
205 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 ...
1
vote
0answers
178 views

Mapserver - Dynamically Change OGC WFS Filter from WMS BBOX?

Is it possible to dynamically change the content of an OGC WFS filter based on the BBOX of an incoming WMS request? I am attempting to serve the response of a WFS which require that I use an OGC ...
1
vote
0answers
56 views

How to draw SVG images stored in PostGIS with Mapserver?

I have a table in PostGIS with two columns. In first are stored SVG images as text. In second is geometry (Point in epsg 4326). Is it possible to draw SVGs from PostGIS on position given in the ...
1
vote
0answers
132 views

How to tilt/change angle of view/camera from ortho in MapServer or OpenLayers?

I am wondering if there is a way of changing the angle of the camera in MapServer from Ortho to a 60 degree (+-10) angle. Perhaps this is an extensive modulation of Google Maps? I could imagine ...
1
vote
0answers
93 views

shortest path layer display

i'm working to find the shortest path in mapserver apllication after i created my layers which are 3 ( base layer , edge layer and node layer) i created my mapfile and the tree.js file ( javascript) ...
1
vote
0answers
289 views

MapServer runtime execution: Cannot evaluate expression, no item index defined error

I'm trying MapServer's run-time substitution to dynamically set my Mapfile's CLASS EXPRESSION values. The expressions take the form of: CLASS EXPRESSION (([my_attr_col] >= num_1) && ([...
1
vote
0answers
37 views

Testing symbol file existence in Mapserver

I have a set of PNG images I want to use as symbols in a point type layer in Mapserver. The file names come from the database in the DATA keyword, and if a file exists, it's all right. But if it does ...