Questions tagged [mapfile]

A data file that represents a complete map

13 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
1answer
455 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?.
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
552 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
536 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 ...
1
vote
0answers
32 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
97 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
781 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
134 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
55 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
31 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
70 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
476 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 ...