Questions tagged [mapfile]

A data file that represents a complete map

14 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2
votes
0answers
26 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
707 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 (...
1
vote
0answers
94 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
26 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
39 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
103 views

Blank map in result page using MapServer

I am using MapServer to retrieve the data into my map but I get only a blank page instead of data on the map. I am using the below query to fetch the data from a PostgreSQL: DATA "the_geom from aoi ...
1
vote
0answers
822 views

How to add a legend for mapfile (Raster Data)

What I would like to do is shown in the figure below. How can I add this color ramp legend in a mapfile which will also be linked to a raster. I don't know how to get it working while drawing a figure ...
1
vote
0answers
137 views

Unable to zoom map tile

I try to host an OSM map locally on my server. I follow this tutorial Rendering OSM on ubuntu and managed to installed MapServer and MapCache. The problem is, when I try to zoom the map it can only ...
0
votes
0answers
32 views

Passing SLD Body in Mapfish style parameter

I have a vector layer in Geoserver 2.15.1 and displaying it on map div using Openlayers v5 API. When displaying the vector data on map, I am using custom style body and passing it to the layer's style ...
0
votes
0answers
102 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 ...
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 ...
0
votes
0answers
71 views

Ways of editing Postgis tables from remote desktops (WFS?)

I've got like 500 postgis tables and i would like to serve then as WMS and especially as WFS to be able to edit that info. To do so i read that the easiest way is Mapserver + TinyOWS. Mapserver works ...
0
votes
0answers
2k views

Mapfile generation from QGIS project

I am looking for a way to transform a QGIS project (.qgs) to a MapServer Mapfile (.map). I am using Quantum GIS 2.6 and MapServer 6. The layers are postgis tables. I would need something like this ...
0
votes
0answers
526 views

MapServer Mapfile: Scalebar not displaying correct distances?

Scalebar: SCALEBAR LABEL COLOR 0 0 0 SIZE SMALL END STYLE 0 SIZE 180 8 POSITION lc COLOR 0 0 0 UNITS MILES INTERVALS 2 TRANSPARENT TRUE STATUS EMBED END I didn't even ...