Questions tagged [mapfile]

A data file that represents a complete map

Filter by
Sorted by
Tagged with
5
votes
2answers
106 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 ...
1
vote
1answer
42 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/...
2
votes
1answer
43 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 ...
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
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 ...
2
votes
2answers
422 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. ...
2
votes
1answer
36 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
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 ...
0
votes
1answer
136 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 ...
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
1answer
112 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
2answers
799 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
272 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 ...
1
vote
1answer
387 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&...
1
vote
1answer
330 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
700 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')) ...
2
votes
1answer
202 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
91 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 ...
0
votes
1answer
248 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
2answers
527 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?
2
votes
2answers
202 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
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 (...
1
vote
1answer
538 views

How to style feature in mapserver mapfile based on values from database?

We have a table "Shapes" in PostGIS that consists of (among other things) a geometry column (the_geom) and an ID column (type_id) which is a foreign key to another table called "ShapeTypes". A given ...
2
votes
1answer
477 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 ...
1
vote
1answer
67 views

Mapserver's mapfile

Is there possible to load a mapfile file from a client to a server running a Mapserver? e.g. http://server/cgi-bin/mapserv?**map=**client/example/htdocs/example1-1.map&layer=states&mode=map
1
vote
1answer
345 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]'&...
2
votes
1answer
237 views

Using pictures (JPEG) from web as symbol in MapServer 7 mapfile?

Is it possible to configure the mapfile so, that it shows for every point on the map a different picture from the web recognized by an id?
1
vote
2answers
357 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 ...
2
votes
1answer
60 views

coordinates point in any reference system

I have a coordinates point like this "01010000003413056727B71D41C7F1A68B1ADC4141", but I don't know it is what. Can you aswer What is this?
1
vote
1answer
322 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
254 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
95 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 ...
1
vote
1answer
113 views

Cannot publish mxd file using ArcGIS publisher

I am having trouble publishing a map file using ArcGIS publisher. This mxd is intended for use by ArcReader but I keep getting a "file access error message asking me to check that the file permissions ...
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 ...
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 ...
2
votes
1answer
696 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 ...
0
votes
1answer
264 views

How to set a label's buffer color in a mapfile?

I would like to set a white buffer around labels in a mapfile (Mapserver version 6.2.1). In the official documentation, I can't find a specific parameter for this... I have tried the SHADOWCOLOR and ...
1
vote
0answers
280 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, ...
4
votes
2answers
4k views

Can QGIS 2.6.1 export to mapserver?

I would know if there's a way to export qgis data to mapserver (Mapfile). In previous version of Qgis there was a plugin called "Export to Mapserver", now I can't find anything...
3
votes
2answers
310 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 ...
5
votes
1answer
1k views

MapServer map file shows Raster image as white

I'm using PAN image for raster publishing but the output in browser shows a full white image? Please give me the solution? My map file is ass follows: MAP NAME "terra" # Map image size SIZE 600 600 ...
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
1answer
420 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 ...
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 ...
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 ...
0
votes
1answer
1k views

Disable black background color of a satellite image in mapserver mapfile?

I'm publishing rasters using Mapserver. How to disable background color of a satellite image in map files or How to set “Display Background value ”0“?
2
votes
1answer
2k views

Multiple classitems in a mapfile

I would like to get a symbology using several columns. I have read that it was not possible to set up several fields within the CLASSITEM option in the mapfile. I have tried to do this in a different ...
1
vote
1answer
351 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 ...