A data file that represents a complete map

learn more… | top users | synonyms

0
votes
1answer
24 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
11 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 ...
1
vote
0answers
29 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
30 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
27 views

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

In a mapserver mapfile, it is possible to setup 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 ...
0
votes
0answers
49 views

Mapserver mapfile reading problem at maximum zoom level

I have created a mapfile for cartosat Raster data(B/W) which is working in browser fine but after zooming to maximum it is throwing an error as follow drawGDAL():unable to acess file ...
1
vote
1answer
29 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
43 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
28 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?
0
votes
0answers
18 views

Change OpenLayers.Control.ScaleLine()

I have mapfile MAP NAME "MapChiTieuDau" EXTENT 779275 2222000 788430 2233835 SIZE 800 800 UNITS meters STATUS ON IMAGETYPE png SHAPEPATH "/ms4w/...
2
votes
1answer
44 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?
0
votes
1answer
70 views

Mapserver: 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
70 views

how to adjust Overlays and Base Layers in Openlayer?

I have a mapfile MAP NAME "MapChiTieuDau" EXTENT 779275 2222000 788430 2233835 SIZE 800 800 UNITS dd STATUS ON IMAGETYPE png SHAPEPATH "/...
0
votes
0answers
110 views

How show map in Openlayer from mapfile

I have mapfile: MAP NAME MapChiTieuDau STATUS on UNITS meters EXTENT 779275 2222000 788430 2233835 SIZE 800 800 SHAPEPATH "/ms4w/apps/openlayers-3.8.2/DuLieuBachLongVy/Maps" ...
0
votes
1answer
85 views

How I can show details a marker in openlayer through MapServer?

I have a problem but no solutions. Can you help me? I have a mapfile read from shapefile: MAP IMAGETYPE PNG EXTENT 779275 2222000 788430 2233835 SIZE 800 800 SHAPEPATH ...
1
vote
1answer
25 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 ...
0
votes
0answers
69 views

JSON Rest API - Mapfile - OpenLayers

I'm new to the GIS world. Using postgis 2+, I have a rest API running on a Tomcat server returning JSON. For instance : Query : GET /city?state=foo&otherParameter=bar [{ "id" : , "cityname" : ...
1
vote
1answer
41 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
0answers
173 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
95 views

Automatic indentation for MAP files in VIM

Following this question, 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 for other file formats, such as JS and ...
1
vote
1answer
288 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
0answers
23 views

map doesnt shown up in css page

I use postgreSQL 9.2, postgis 2.0 and 2.1, pgrouting 2.0, and I connect it with css page (localhost) but the map from pstgreSQL database doesnt shown up, can anybody help me? MAP NAME PADANG # ...
0
votes
1answer
75 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
86 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, ...
3
votes
2answers
2k 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...
2
votes
2answers
128 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 ...
4
votes
1answer
488 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
45 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
857 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
140 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
64 views

Map server 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 raster ...
0
votes
0answers
305 views

How to send parameter to mapfile from javascript with query to show map in browser?

I try to send parameter to mapfile but it's seem it didn't work very well. Can anyone help me find solution please? Here's my mapfile webgis.map MAP NAME "Banda_Aceh" SIZE 2000 900 UNITS dd ...
0
votes
1answer
390 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
465 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
0answers
159 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 ...
3
votes
1answer
826 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: ...
2
votes
1answer
653 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,...
2
votes
0answers
210 views

How to group a multiple rasters in MapServer?

I had a map files for each state (raster file) of India. Now I want group all mapfiles to show a single raster or single map file? How I can do in using qgis or any platform?.
1
vote
1answer
265 views

when to choose mapscript over mapfile or vice versa?

Are there things that can be done with mapscript and not mapfile or vice versa? what are the scenarios to use each one? thanks allot!
1
vote
2answers
131 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 ...
0
votes
1answer
842 views

Why are map tiles being repeated? Using MapServer and Openlayers

Problem I have: map tiles from my layer are being repeated. Shapefile is projection 3059. I have specified 3059 is in the mapfile and also when creating map object. I know OpenLayers.Layer.WMS is ...
1
vote
1answer
630 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
4answers
1k 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 ...
0
votes
1answer
1k views

How to add a simple interface to mapserver CGI application?

I have a simple mapserver test page which shows information from shapefiles (cities, rivers, lakes, points of interest) etc. The result is a static PNG image. I want to add a simple interface so users ...
1
vote
1answer
100 views

How to fix the height in !text using MapFishPrint?

How fix height in text block using MapFishPrint config.yaml. For example in A4 size paper, my text change by content of ${content}. My config.yaml layouts: #=======================================...
1
vote
1answer
831 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
772 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', {...
0
votes
1answer
467 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 IMAGECOLOR ...
1
vote
1answer
364 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 ...
0
votes
2answers
310 views

MS4W (MapServer 4 Windows) - version 3.0.3 Crashes JVM and Tomcat frequently. How to fix this?

I am using MS4W (MapServer 4 Windows with Java Mapscript) - v 3.0.3 for a GIS web application hosted over Tomcat 6.0.33 with Java jdk1.6.0_13 and PostgreSQL 9.1 with PostGIS 1.5.2 @ the database end. ...