Questions tagged [mapfile]

A data file that represents a complete map

Filter by
Sorted by
Tagged with
1
vote
0answers
20 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
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 ...
1
vote
0answers
15 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 ...
3
votes
1answer
461 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?.
5
votes
2answers
109 views

Configuring TileCache on Windows and Linux

I want to do tile caching for MapServer map files by using TileCache application. For this I have installed Python 2.7 and TileCache 2.11 and applied the following sequence of steps: Extracted ...
2
votes
1answer
49 views

Can I Use GeoWebCache for seeding UMN MapServer Mapfiles?

I have installed GeoServer and MapServer in a single system and also enabled GeoWebCache for GeoServer (Integrated Version of GeoServer). Can I use same GeoWebcache for caching UMN MapServer ...
1
vote
1answer
43 views

PostGIS mapfile [closed]

I am new to GIS and have been assigned a task to publish a map to the web. So I want to ask if anyone can give me a map file example that basically can: Load the OpenStreetMap and zoom to a area/...
0
votes
1answer
961 views

Serving WMS using MapServer (Mapfile)

I want to display a map from MapServer in Openlayers 2.13. I've prepared the Mapfile: MAP NAME "WMS Server" IMAGETYPE PNG EXTENT 106.637 -6.36199 106.78 -6.231 SIZE 600 300 ...
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 ...
0
votes
2answers
541 views

How to convert tif to map

I need to convert a .tif file into a .map format. How can I do it? Is it possible using GDAL?
0
votes
0answers
59 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 ...
2
votes
0answers
562 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
285 views

Notepad++ syntax highlighting for *.map [closed]

I can't find how to customize syntax highlighting for mapfile (*.map files) in Notepad++. I actually have add this syntax file recommended in this post. BUT the syntax highlighting is not good, ...
1
vote
1answer
113 views

MapServer dynamic label

I managed to get this working with GeoServer but I'd like to see if it's also possible with MapServer. I need to generate a dynamic copyright. I have a polygon layer in Oracle Spatial which contains ...
1
vote
1answer
99 views

Specifying rectangle symbol with height/length based on attributes values in mapfile?

I need to specify a rectangle symbol in a mapfile. The symbols should be of varying dimensions based on height/width values stored in a table's attributes. Is it possible to do something as with the ...
2
votes
1answer
213 views

Expression to convert string to float (MapServer)

Is it possible to convert a value string into a float in a mapfile? The code is in CLASS / TEXT, so I can use expression. For example my value is always displaying ".7". I would like to display "0.7"....
1
vote
1answer
357 views

How can I add labels to charts in Mapserver?

I have created a mapfile with a piechart and I want to add labels to the various pieces of the pie. The layer in the mapfile is defined as follows: LAYER DATA "Test" NAME "Test" METADATA ...
0
votes
1answer
259 views

How to auto rotate labels for Polygons in MapServer?

I want to auto rotate labels of polygons in Mapfile, all options that exist in MapServer refers to linear features only and not polygons. Is there any algorithm I can implement in the Mapfile to auto ...
0
votes
1answer
137 views

MapServer not displaying data from other network locations?

I have installed MapServer and try to access raster file(.img) from other Network locations (NAS), which is displaying map background color for the mapcanvas. I have also tried to load the same ...
2
votes
2answers
457 views

Style MapServer layers easily (or as easy as possible)

I am working with MapServer WMS in the form of mapfiles and consuming them into a OpenLayers map. I am trying to find out a way to ease the symbolization process of the various layers in a mapfile. ...
1
vote
1answer
357 views

use date(now) equivalent in mapserver

I want to use present year in a CLASS in a map file. I managed to write permanent expressions like: LAYER CLASSITEM "YEAR" ... CLASS NAME "Previous years" EXPRESSION ('[YEAR]'&...
1
vote
1answer
400 views

MapServer WMS client - blank image

I set up WMS server using MapServer, and the following requests work: http://localhost:8081/cgi-bin/mapserv.exe?map=/ms4w/apps/tutorial/htdocs/example2_wms.map&SERVICE=WMS&VERSION=1.1.1&...
2
votes
1answer
37 views

Which value fits the best for Parameter SIZEUNITS for Googles Web Mercator Projection EPSG 3857 to show a radius in meters

In my mapfile there is a WMS definition, which shows a circle buffer and it's radius in meters. I offer UTM-Systems and Googles Pseudo Mercator. In UTM and SIZEUNIT meters it works fine. Please, could ...
2
votes
2answers
215 views

mapfile validation

I'm looking for something that will do validation of a mapfile. Some googling for the terms mapfile validation isn't coming up with hints of such a utility. Is there anything that will verify ...
2
votes
1answer
1k views

Creating mapfile for MapServer in QGIS? [closed]

How can I create mapfile (.map) for MapServer 7.0 in QGIS 2.18 or 3.0? Or are there any tools which are part of the core MapServer distribution? And what is the best visual tool for create mapfile ...
1
vote
1answer
326 views

Set symbol on lines according to line features length

I need to display arrows alongside to line features. Lines represent water pipes. The issue I'm facing is that lines are a concatenation of numerous line features of various lengths. Therefore, ...
1
vote
1answer
2k views

How can I dynamically supply the value of mapextents to the Mapfile?

Is it possible to query a PostGIS database from a browser where I set the extents of the map? I have previously queried a PostGIS database from the browser and, separately, used MapServer to display ...
1
vote
2answers
370 views

Dynamic raster layers served via MapServer

I have some processing that runs on my machine producing between five to ten rasters layer a day. I want to serve these layers using MapServer. I initially start with a folder that has 300 raster ...
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 ...
1
vote
0answers
98 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 ...
4
votes
1answer
626 views

How to write EXPRESSION for main contours in Mapfile?

I'm working with mapfile. I defined new layer "contours" and I want to render with maxscale = 100000 and minscale = 50000 contours with value distance of 50. That means that I want in that scale ...
0
votes
1answer
138 views

How can I show a text column on MapServer?

I'm working on a project with MapServer with PostGIS and I need to retrieve from my table and display a layer that shows some information like a street name. What I have? I have my map rendered ...
2
votes
1answer
698 views

Single WMS from single mapfile with several rasters in MapServer

I have several rasters in a single mapfile, I put them as layers like here: LAYER NAME "Layer 1" GROUP "All Layers" TYPE RASTER STATUS ON ...
2
votes
1answer
200 views

Automatic indentation for MAP files in VIM

Following Notepad++ syntax highlighting support for .mapfiles?, does anyone know a way to automatic indent MAP files? I use VIM but so far I haven't found a way to do this on MAP files. I have found ...
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
2answers
813 views

mapserver: accessing mapfile with localhost instead of system path

Don't know if GIS SE is the right place to ask this question. Otherwise, please feel free to suggest me where should I migrate it. I need to access my mapfile with localhost to test my service via my ...
1
vote
1answer
256 views

How to adjust overlays and base layers in OpenLayers?

I have a mapfile MAP NAME "MapChiTieuDau" EXTENT 779275 2222000 788430 2233835 SIZE 800 800 UNITS dd STATUS ON IMAGETYPE png SHAPEPATH "/...
1
vote
1answer
287 views

A simple label for an entire MapServer mapfile?

I want to incorporate a simple text label into a mapfile-based map, such that the file's resulting images always display a specific text string (ideally in white over a black background) along the top ...
0
votes
2answers
716 views

IN operator in FILTER in my Mapfile

I'd like to select multiple values on my column (undefined number) and as long as I know, IN operator doesn't work on Mapserver's filter. Example : FILTER (([ct] IN ('%ct%')) or ('%ct%' = '1')) ...
3
votes
2answers
313 views

escape quote in mapfile layer

I'm using mapserver 6 with mysql 5.5. It work like a charme, almost... The layer part of my mapfile is LAYER NAME "monsatR_mySQL" TYPE POINT STATUS ON CONNECTIONTYPE OGR ...
6
votes
4answers
6k views

MapServer: msWMSGetCapabilities(): WMS server error. WMS request not enabled

I took a look at Getting MapServer to show raster?, and although helpful, it did not solve my issue. After spending the last couple days on this, I am confused as to why I'm getting: ...
0
votes
1answer
424 views

How to show a map with queries from a map file connected to postgres in browser using javascript?

So, the problem is how to show a map in browser using JavaScript. I have a map file with 2 layers in it: "peta" is a shp data from PostGIS and "korban" is a numeric data from PostgreSQL, and then I ...
2
votes
1answer
486 views

Is there a way to enable CSV or JSON output formats for MapServer WFS GetPropertyValue requests?

In a MapServer map file, it is possible to set up a variety of output formats for WFS GetFeature requests. However, it doesn't seem possible to do the same for a WFS GetPropertyValue request, which ...
7
votes
1answer
3k views

MapServer - what are some options for a GUI for map file creation?

What are some possible options for a GUI to manage style and map file for MapServer. I am interested in all solutions, QGIS plugin, ArcGIS mxd or MapInfo workspace converter or else.
2
votes
1answer
347 views

How to create a map layer from a map file?

I am new to MapServer, I want to create map layer; is it required to use a shapefile for this, and if so how can I use it. Map file (eg2.map) is given below MAP NAME ENG1 STATUS ON ...
4
votes
2answers
673 views

When to choose MapScript over a Map file or vice versa?

Are there things that can be done with MapScript and not Map file or vice versa? What are the scenarios to use each one?
2
votes
0answers
540 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
1answer
341 views

How to send multiple value for one param to mapserver through openlayers (encode_uri)

Here's my filter on Mapserver's Side : PROCESSING "NATIVE_FILTER=(ct in ('%ct%'))" It allows me to select several values for my column. My validation looks like : VALIDATION 'ct' '^[a-zA-Z\-]+...
0
votes
2answers
463 views

MapServer Mapfile: One layer, disable the label but not the point for first two zoom levels

This map is not using OpenLayers, just MapServer with a mapfile. There is a layer that displays both the point and the label. Looking through the documentation, I'm not entirely sure what the best ...
1
vote
1answer
93 views

Can I use existing .tfw (of georeferenced .tif images) as the extent in a MapServer Mapfile?

I have a set of aerial georeferenced tiff and tfw files, I want to be able to access them using MapServer. Now the mapfile requires an EXTENT parameter with coordinates which i think they are already ...