A data file that represents a complete map

learn more… | top users | synonyms

0
votes
2answers
340 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
24 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
63 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 "/...
1
vote
1answer
24 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
39 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 ...
0
votes
1answer
63 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, ...
0
votes
1answer
84 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 ...
0
votes
1answer
138 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
59 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 ...
2
votes
0answers
204 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
0answers
22 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
167 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
153 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
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 ...
0
votes
0answers
43 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 ...
0
votes
0answers
33 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]'&...
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/...
0
votes
0answers
103 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
0answers
66 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" : ...
0
votes
0answers
27 views

Size mapfile chart element by absolute value of column value

I have a mapfile with pie charts of the relative proportions of a variety of parameters pulled from a table. In some cases the values are negative and I would like to make pie charts of these elements....
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
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
806 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
295 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
0answers
392 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 ...
0
votes
0answers
288 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 ...
0
votes
0answers
282 views

MapServer with OpenLayers: Map is Pink, Trouble Displaying Layer Correctly

Having trouble using a mapfile with an html/js file(openlayers) together. Have a working example but can't seem to replicate it. Can also view the gist of the 2 files here The piece of code in ...