Questions tagged [mapfile]

A data file that represents a complete map

Filter by
Sorted by
Tagged with
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.
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: ...
5
votes
2answers
105 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 ...
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 ...
5
votes
1answer
1k views

Cause of ImportError: No module named mapscript in QGIS mapserver export?

I'm trying to expor project to mapfile in new QGIS Chugiak but a get this error below, someone have the same error? How can I fix this?thnks. An error has occured while executing Python code: ...
4
votes
2answers
669 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?
4
votes
1answer
623 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 ...
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
1answer
1k views

How to use PHP MapScript to generate a MapServer Mapfile

I just read from this question that the OP was using Mapscript and C# to generate and display a Mapfile I was wondering if it is really possible to use MapScript to generate a Mapfile? And if so, ...
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 ...
3
votes
1answer
450 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
2answers
416 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
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
1answer
475 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 ...
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?
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
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 ...
2
votes
1answer
695 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
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 ...
2
votes
4answers
2k views

Which projection should I use to get my WMS service to work?

All of my shapefiles have exactly the same WKT. Using http://prj2epsg.org I have verified that EPSG:3059 has the same parameters as WKT definition of my shapefiles, so I'm using 3059 in my mapfile. I ...
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
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"....
2
votes
2answers
201 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
337 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 ...
2
votes
0answers
15 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
551 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
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?
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
2answers
1k views

Many mapfiles with few layers, or all layers in one mapfile?

I am using MapServer 6 and defining maps with mapfiles. I have a page where 20 map compositions (~20*5=~100 layers) are possible by varing LAYER/DATA field and some classes of layers... So I can ...
1
vote
2answers
796 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
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
2answers
267 views

In mapserver, how would I style polygons differently based on a separated points layer?

I have 2 tables in postgis - one of type polygons and one of type points. I want the color of the polygons to be related to the number of points within each polygon, say white when no points are ...
1
vote
1answer
1k views

Why is POINT type layer not displayed correctly in my mapserver map?

I have 14 shapefiles from same source with the same WKT: PROJCS["GRS_1980_Transverse_Mercator", GEOGCS["GCS_GRS_1980", DATUM["D_GRS_1980", SPHEROID["GRS_1980",6378137,298.257222101]], PRIMEM["...
1
vote
1answer
1k views

How to get mouseposition (openlayers) in decimal degrees?

I want to display the mouseposition in Degree Decimal rather than in meters. See my code: <script type="text/javascript"> var map, ia_wms; function init(){ map = new ...
1
vote
1answer
2k views

One of my WMS layer is not loading the image tiles

One of my WMS layer is not loading the image tiles. See the code: <script type="text/javascript"> var map, ia_wms; function init(){ map = new OpenLayers.Map('map', {...
1
vote
1answer
41 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/...
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
1answer
386 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\-]+...
1
vote
1answer
90 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 ...
1
vote
1answer
534 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 ...
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]'&...
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
94 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
112 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 ...
1
vote
1answer
350 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 ...
1
vote
1answer
715 views

How to use Mapserver+Openstreetmap for tracking service effectively?

I have got Asset tracking installations for many clients. The availability of GIS map data for every client location seems to be the tough part. I have got a MapServer WMS installation. Can I use OSM ...
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
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]" ...