Tagged Questions

(UMN) MapServer is an Open Source platform for publishing spatial data and interactive mapping applications to the web.

learn more… | top users | synonyms (1)

0
votes
2answers
228 views

MapServer: How to display and style a Text layer?

I'm trying to display a text layer using MapServer, but I'm kind of confused how to get it to display properly. When opening the .TAB file in a GIS application (in this case, MapInfo Profressional) ...
1
vote
1answer
215 views

Error using SLD with MapServer based WMS (GeoBC)

I'm trying to customize rendering of map tiles from a government WMS server. When I use the GetStyles WMS query to retrieve the SLD for a layer, then feed that SLD directly back in a GetMap query, ...
1
vote
0answers
60 views

QGIS mapserver - fails to display some raster images

QGIS 2.0.1 running on Linux, with mapserve support. Randomly, it seems, some raster images simply fail to display. No errors, just no image (well actually the mapserve returns a blank white image). ...
1
vote
1answer
244 views

Mapserver - Error setting up simple WMS/Mapcache service

I've got a Ubuntu 12.04 computer with Mapserver and all other software on it. I have tried to set up a simple WMS / Mapcache service but have not succeeded. I can browse to the automatically generated ...
0
votes
1answer
88 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 ...
3
votes
1answer
112 views

Difficult style for the map

There is a task before me of generating images as shown below. The main problem is the signs which must be placed outside the polygon (if they do not fit in it), and the lines should connect the sign ...
1
vote
2answers
139 views

Mapserver - label at beginning of line string (WMS)

I am creating a WMS service made up of linestrings pulled from a POSTGIS database I want to label the start of each line with a sequence number. At present I can label the centre of each with:- ...
0
votes
0answers
24 views

Is it possible to get all features from mapserver within BBox by clicking external button not on map using WMS GetFetureInfo. [duplicate]

Is it possible to get all features from mapserver within BBox by clicking external button not on map using WMS GetFetureInfo.
0
votes
2answers
491 views

Use GetFeatureInfo with OpenLayers and a Bounding Polygon

I want to be able to draw a bounding polygon and have my MapServer WMS layer return every feature within that bounding box. I have it working for a single point, but I would like for the query to ...
0
votes
1answer
116 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 ...
1
vote
1answer
128 views

Error in displaying wfs layer from mapserver/postgis

I have read and tested all the relative posts but I still don't have a solution for my problem. I have a layer suscribers (points) stored in postgis database with srid=32232. I would like to display ...
0
votes
1answer
192 views

How to set DATA string on LayerObj in MapFile by Using Mapserver's PHP Mapscript?

I'm manipulating mapfiles through mapscript. Setting layer attribute values like the opacity works like this: $layer = $map->getLayer('layername'); //set an attribute value ...
2
votes
0answers
55 views

How to render a raster multiple times across the date line?

Using EPSG:4326 and WGS84, I have a GeoTIFF with longitude extents (167, 208) - so it crosses the date line. I'd like mapserver to display the image regardless of whether the user's requesting bbox ...
0
votes
2answers
170 views

How to call a mapserver mapscript?

The docuentation leaves me in the dark about this. We used to call static mapfiles directy by: http://www.domain.com/cgi-bin/mapserv?map=/var/www/mapfiles/mf.map?[parameters] But now I want to ...
0
votes
1answer
286 views

Mapserver PHP mapscript: how to set attribute value of layer?

EDIT: solved, see working code below How can I set attribute values of a layer object with MapScript? I'm using MapServer version 5.0.3, the php_mapscript.so lib is loaded in my app context I have ...
1
vote
0answers
156 views

Input a KML file dynamically into MapServer without losing attributes?

Is there any possibility for MapServer (I'm running v6.2.1) to process the features / styles from a KML file dynamically? I tried STYLEITEM "AUTO" but it turned out to work only for *.dgn and *.tab ...
0
votes
0answers
162 views

OpenLayers Mapserver spatial filter INTERSECTS format problems

Trying to get hand-drawn polygon delimiter for spatial query via OpenLayers to mapserver (then postgis). I can get the WKT of the drawn polygon and can substitute the dynamic values, but am having ...
0
votes
1answer
186 views

mapserver layer classes display order

My layer Point (OGR geojson) has several classes: CLASS NAME "Station1" EXPRESSION ([extrude]=0) STYLE COLOR 0 0 250 OUTLINECOLOR 255 255 255 SYMBOL ...
0
votes
1answer
179 views

No PopUp with WMSGetFeatureInfo and Mapserver

I've searched for answer for the last couple of days with no success. When I click on an object on the screen I get this reply from the server ...
4
votes
1answer
689 views

Does anyone display OpenStreetMap through MapServer, ArcGIS for Server or Geoserver?

I use Windows OS. The data (OpenStreetMap) are stored in a postgres/postgis database. How do I display this data correctly? Update: Now I use: geoserver-2.3.5.exe, ...
0
votes
0answers
96 views

Transforming WFS Projection

I am trying to overlay features from a WFS using OpenLayers, my geometries in database are in EPSG:27700 and my map's projection is EPSG:3857. My mapfile returns data in EPSG:27700. Is there any way ...
0
votes
1answer
557 views

Why WMS Image Repeat leaflet?

I setup wms service using mapserver, the map file is attached . I have created index page, the code is <!DOCTYPE html> <html lang="es"> <head> <meta charset="utf-8" /> ...
3
votes
2answers
637 views

Using Mapserver WFS with Openlayers: shows empty map

UMN Mapserver 6.1.2 and Openlayers 2.13 are running on the same local host. At the moment, I merely try to display restaurants and cafes of a local region as points/symbols on a map. Later, I would ...
3
votes
1answer
260 views

Best way to visualize the PostGIS Raster in OpenLayers

I have been stuck by this problem for a long time. Several ways have already been tried, but none of them works as I was expecting. Here are the description of each of these method as well as the ...
1
vote
0answers
27 views

Mapserver mapscript map inset

What is the recommended way to produce a map similar to the one in http://www.nexusenergy.com.au/6468050/nexus-energy-oil-gas-exploration-and-productio.htm I would like to dynamically create the ...
1
vote
1answer
240 views

How to define HTML templates with QGIS Server?

I usually use HTML templates in map files to show nicely formatted popups on my WMS layers with Openlayers. Here is the doc on templating with mapserver I'd like to know if it is possible to do the ...
1
vote
0answers
200 views

MapServer Clustering GetFeatureInfo

I'm having a bit of a problem with clustering in map server the clustering itself works fine and the GetFeatureInfo works fine most of the time. However some times when I click on a cluster point it ...
0
votes
1answer
103 views

GeoTiff TMS Overlay

I'm using OpenLayers to display a set of TMS tiles I have on my webserver. Plain and simple, I was wondering how I would go about overlaying a set of GeoTiff files I have over the tiles so that when I ...
1
vote
0answers
69 views

Map Server 4 Windows problem

How do I display shape files with a google-like interface in a web application? I found a tutorial at http://spatialhorizons.com/2007/05/19/mapserver-1-10-minute-tutorial/ which uses an earlier ...
0
votes
1answer
131 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 ...
1
vote
1answer
163 views

OpenLayers serving a MapServer layer: data won't display correctly without using WMS

I am trying to serve my Mapfile data as a MapServer layer in OL, rather than a WMS layer. When I display it using WMS, everything works fine. The part of the mapfile I have struggled with was ...
3
votes
2answers
1k views

How to make a raster layer transparent via MapServer

I loaded a PostGIS raster Data through OpenLayer and Mapserver. The code inside the OpenLayer is as following : localWMS = new OpenLayers.Layer.WMS( "Local WMS layers", ...
0
votes
0answers
129 views

Map doesn't show anything in img file (WMS-Mapserver)

Actually in a practical Project we wanted to use OpenLayer and MapServer to display our data using WMS, but We can't find a proper srs or EPSG code. One of the ITC students said, we have to change our ...
0
votes
2answers
259 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
1answer
253 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
1answer
889 views

How to add Mapserver layer to Leaflet?

I have a layer in PostGIS in epsg:4326. Put in in MapServer: MAP IMAGETYPE PNG EXTENT 60.0 56.0 61.2 57.4701 SIZE 800 600 OUTPUTFORMAT NAME "png" DRIVER GD/PNG IMAGEMODE PC256 ...
0
votes
1answer
68 views

Mapserver 6.2 concatenate attributes in FILTER

Back in version 5.0 I had: FILTER ("<tcode:expression/>" eq '[STATE][COUNTY]') final version = FILTER ("11000" eq '[STATE][COUNTY]') so I would filter out the features with state = 11 and ...
1
vote
0answers
228 views

Effective way for creating Open Source Web mapping applications

Sorry for asking such a basic question, but these days there is lot of advancement on open source technologies. My requirements for my application are below Basic Map application with zoom, pan, ...
1
vote
3answers
1k 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 ...
0
votes
2answers
446 views

Problem with extent of mapserver wms/layer

I use mapserver with MS SERVER 2008. The problem with the correctly computing layer extend of Map server. If map file like this MAP NAME "test map" IMAGETYPE GIF EXTENT ...
1
vote
0answers
107 views

Color Ramp of Raster Rendering in MapServer

Does this proposed new syntax work yet? http://mapserver.org/development/rfc/ms-rfc-6.html#proposed-new-syntax Currently, I am still using this method for rendering the raster in Mapfile. STYLE ...
3
votes
2answers
1k views

How to install Mapserver in nginx?

I was istalled Mapserver: sudo apt-get install libgd2-xpm-dev sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable sudo apt-get update sudo apt-get install cgi-mapserver mapserver-bin and ...
0
votes
0answers
196 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 ...
1
vote
1answer
3k views

How to install Mapserver on Ubuntu?

I try to install MapServer on Ubuntu by follow this tutorial. I was installed libraries and apach. But have a problem with last command: libtool: install: /usr/bin/install -c /home/user/mapserver ...
1
vote
0answers
344 views

Mapserver and Tilecache configuration issue

Currently I am using mapnik2 with tilecache for map generation. As there is shift in some of the tiles generated,I am trying to configure mapserver with tilecache for caching tiles. I have installed ...
0
votes
1answer
234 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
161 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
57 views

MapServer Templates: Javascript function won't recognize [LONG] or [LAT]

Tested this in js console with a 'normal' variable and working fine: js function in map_header.html var toFixed = function(val, n) { var result = val.toFixed(n); if (result == val) ...
1
vote
1answer
138 views

Is that possible to use map object ( PHP_MapScript ) instead of map file when using the MapServer?

In my previoous code, I am using openlayer WMS to load a raster data through MapServer. As you can see, the mapserv.exe call a local map file to load the raster data. I just heard PHP_MapScript, since ...
0
votes
2answers
160 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 ...