The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
96 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 ...
0
votes
2answers
113 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. ...
1
vote
1answer
132 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
1answer
104 views

Mapfile SYMBOLSCALEDENOM and SIZEUNITS (miles) 200: Keep SIZEUNITS while circles change size based on zoom

I've been trying to understand how to keep the SIZEUNITS at 200 while the circles appropriately adjust based on zoom level. Thought I had this working properly but turns out I did not. You can see ...
0
votes
2answers
142 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
42 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
25 views

in mapserver, how would i style polygons differently based on a seperated 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
220 views

MapServer Mapfile and OpenLayers: using SIZEUNITS. Labels shrinking on 1x zoom and points disappearing upon zooming in

I am trying to set the symbol radius to 100 miles. This seems ok (note, not including the whole mapfile, just what's at hand here): LAYER NAME POIs TOLERANCE 50 TOLERANCEUNITS miles ...
0
votes
0answers
23 views

mapserver tolerance in mapfile or template

I set tolerance in a layer of my mapfile. It works fine : LAYER NAME emprise STATUS on TYPE POLYGON CONNECTIONTYPE POSTGIS CONNECTION "host=10.1.18.18 dbname=InrapTours user=PostGIS ...
1
vote
4answers
186 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. ...
1
vote
2answers
140 views

how to rotate PIXMAP based symbols correctly in Mapserver 5.0.4?

I'm on mapserver 5.0.4 I want to draw a polyline with a symbol on every 100th pixel. The symbol is a PNG image with size 10 x 7 pixels. I want the symbol to be drawn perpendicular against the ...
0
votes
2answers
81 views

MapServer: Symbol color is set in mapfile. Is there a way to change it using javascript (ie not in mapfile)?

I have a mapfile where the symbol color is set to blue. In my html I have a hover event that brings a popup when the user puts their cursor over the symbol. Working as intended. Now on that same ...
1
vote
1answer
77 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]], ...
0
votes
1answer
147 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 ...
0
votes
2answers
326 views

Mapserver mapfile with multiple layers that pull from postgis only gives broken image

I'm trying to use this mapfile that I made: MAP IMAGETYPE PNG EXTENT -90.000124 41.000032 -88.000044 42.000035 SIZE 1600 800 IMAGECOLOR 255 0 1 OUTPUTFORMAT NAME png DRIVER AGG/PNG ...
1
vote
1answer
33 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
3answers
872 views

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

I took a look at this question/answer, 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: msWMSGetCapabilities(): WMS ...
1
vote
1answer
117 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 ...
0
votes
1answer
44 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
112 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 ...
0
votes
0answers
44 views

How to build mapfile symbology with dynamic value inside the symbol?

Is it possible to build mapfile point symbology style such that dynamic text (in my case a number) can be shown inside the symbol as in the attached images. , Regards, Shiva
0
votes
2answers
474 views

Mapserver MapFile label at polygons, how to say “not repeat”?

I am using Mapserver v5.6 and used MapFile with 2 layers. One layer to show polygon and other to show label at ST_PointOnSurface of the same polygon... There are another way to show unique-label at ...
0
votes
0answers
46 views

Converting shapefile to map file

I'm trying to convert a shape file to a map for using it along with mapforge . I tried to do this by converting .shp to osm using JOSM.And I use osmosis with mapwriter plug in from mapforge to convert ...
0
votes
1answer
76 views

WMS GetCapabilities and variable substitution with MapServer

I have created a layer with a variable substitution to request wether or not a bird species has been observed in a town. It works ok. But if I make a WMS GetCapabilities I only see one layer as ...
0
votes
1answer
94 views

How to load color attribute from shapefile in MapServer 5.0.x?

according to the docs of mapserver 6.0.x it is possible to load the color of a polygon shape from the shapefile. This is a great feature cos otherwise we would have to define a class for each ...
0
votes
0answers
64 views

Pyshp + Mapserver: How to add label at specified coordinate?

EDIT: solved, went for the solution as described below I have a set of polygons defined in a xml file. I create a shapefile with Pyshp. This works fine. But now i want to add labels to the ...
3
votes
1answer
452 views

Mapserver - What are some options for a GUI for mapfile creation?

What are some possible options for a GUI to manage style and mapfile for Mapserver. I am interested in all solution, QGIS plugin, ArcGIS mxd or MapInfo workspace converter or else. Thank you for ...
0
votes
0answers
64 views

MapServer 6.2: Using REPEATDISTANCE and BUFFER/PRIORITY accordingly: US Interstate Icons/Symbols

I have a map focused on the United States displaying US Interstates. The goal: to make the US interstate symbols look nice and consistent throughout the map. The three attributes I think are the ...
0
votes
0answers
174 views

Shifting problem in printing OpenLayers' vector layers, by MapFish and GeoServer

We are using OpenLayers 2.9.1 along with GeoServer 2.3 and for the printing, we use MapFish 1.2. Everything seems to be fine when we print rasterized layers (wms), but when we try to print ...
0
votes
0answers
89 views

What do we have to set in mapfile´s data parameter for SOS?

We are trying to run the MapServer SOS example at this link. However, we don´t know how to configure the data parameter in the mapfile. What do we have to set in mapfile´s data parameter? We need to ...
0
votes
2answers
196 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 ...
0
votes
0answers
169 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
1answer
216 views

Mapfile + OpenLayers: accessing the database by column names (hover, onclick functionality) without using MapServer templates?

What I'm trying to accomplish: take the functionality below (see picture) and do the same without using a MapServer template (if this is even possible). I currently have a mapfile, and an openlayers ...
0
votes
0answers
138 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
172 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 ...