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

learn more… | top users | synonyms (1)

1
vote
0answers
64 views

Python MapServer MapScript & Mongo - Use GeoJSON String Vs File

I have been using Python MapScript bindings for MapServer - and they work great. A new datasource for the application I am working on is MongoDB. I have seen mentions of a MongoDB Driver for ...
1
vote
1answer
46 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
2answers
52 views

Dynamic raster layers served via mapserver

I have some processing that runs on my machine producing between 5 -10 raster layer a day. I want to serve these layers using map-server. I Initially start with a folder that has 300 raster layers ...
1
vote
1answer
33 views

Mapserver - hide error messages

Using mapserver 7.0, is there a way to suppress the error messages sent to the user, such as :- <?xml version='1.0' encoding="UTF-8" standalone="no" ?> <!DOCTYPE ServiceExceptionReport ...
1
vote
0answers
61 views

Projection Issues - OpenLayers / MapServer / NAD83 State Plane FT

I am having projection issues with OpenLayers version 2.13 with MapServer and the Proj4 library. Pulling layers in NAD83 State Plane Feet projections on top of an OSM or MapQuest Base Map in Google ...
1
vote
0answers
108 views

How can I config/use MapCache/MapServer to serve my MBtiles as WMS service?

Currently I am using GeoServer for my Map Service as WMS. I use TileMill for creating a customised map with styling and SHP files and then export as mbtiles. I have tried TileServer-PHP & ...
1
vote
1answer
71 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
0answers
70 views

Create WMS service using MapServer

I am trying to create wms service using Postgres data in mapserver my map file(wms.map) is MAP EXTENT 8240841.450745 2400319.900386 9218007.463612 3107183.406947 TRANSPARENT on IMAGETYPE png ...
1
vote
0answers
18 views

Mapserver - How to display on X characters of annotation LABEL (text\string) based on [field]

In mapserver how\where do you use an expression to force a label to 5 characters to appear as annotation\labels thanks
1
vote
0answers
59 views

Problem with Mapserver label encoding in Greek

I'm having a problem when trying to render a shapefile's labels that has Greek characters with the use of truetype and I'm getting weird characters. The code for my label section is as follows: LABEL ...
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 ...
1
vote
1answer
90 views

MapServer & Raster picking / Elevation data

I have some GeoTIFFs with elevation data, displayed in OpenLayers or Leaflet via WMS from MapServer. I need to be able to request (from the client) the elevation at some point clicked by the user. ...
1
vote
0answers
53 views

How To Order Labels from Several Layers in Mapserver?

I have an Mapserver project with several layers. Some of the layers have labels. My problem is that labels from one layer overlap the labels from another layer. I want the labels to change vertical ...
1
vote
1answer
46 views

Zoom To Layer Using EventListener

I have been struggling with zoom to layer functionality with event listeners. The code is working and zoom to layer whenever it is loaded but the problem is that once it is loaded, i can not zoom or ...
1
vote
0answers
94 views

Error Opening WMS Maplayer: URLError: <urlopen error [Errno 10060]

I receive the error: URLError: <urlopen error [Errno 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection ...
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 ...
1
vote
0answers
109 views

Understanding Openlayers MapServer configuration?

I need to implement functionality like this http://www.mpbhuabhilekh.nic.in/bhunakshaweb/. I searched on net and found it can be done using Openlayers. I need simple and clear steps on how to to ...
1
vote
0answers
88 views

Highlight a feature on WMS layer using OL3 + mapserver + KML

This is regarding question :- Highlight a feature on WMS layer using OL3 + mapserver We are using KML file not the POSTGIS DB. So what parameters for metadata "gml_geometries" would be there in ...
1
vote
0answers
45 views

How to display table with more than one image from postgis in mapserver?

I have 3 tif files in one postgis(2.1.5 ver.) raster table. ( load with raster2pgsql) And i have mapserver MapServer 6.1-dev. I need to display table from postgis in qgis via mapserver. P.S I trying ...
1
vote
0answers
93 views

Mapserver display empty map when i add more then 1 raster file in 1 table postgis

Here is a part of mapfile with layer and WMS: WEB METADATA wms_title "Diplom" wms_abstract "no matter" wms_onlinesource "http://localhost/cgi-bin/mapserv....
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, ...
1
vote
0answers
147 views

Problem setting up mapcache.xml

I'm having a problem getting started with mapcache. I'm fairly new at this, but I have mapserver running: the following query works as expected and shows the appropriate tiles: http://10.0.0.5/cgi-...
1
vote
0answers
123 views

get the ogr_SDE.dll from the MapServer

can please some one give help to get the ogr_SDE.dll from http://www.maptools.org/ms4w/index.phtml?page=home.html I will connect the ArcSDE to my QGis, like that intruction https://hub.qgis.org/wiki/...
1
vote
0answers
1k views

OpenLayer and MapServer: getFeatureInfo and Json

I'm using OpenLayer 2.0 and MapServer. I would query MapServer and I would that it return to me a Json file: On my page, I generated dynamic URL as: MAP/MAP.map&REQUEST=GetFeatureInfo&...
1
vote
0answers
679 views

how to write the code to load tiff image on openlayer.layer.wms using mapserver ms4w

where did i get miss up?! here is my code inside the mapfile.map LAYER NAME "layername" STATUS OFF TYPE RASTER DATA "...
1
vote
0answers
118 views

different data range of raster file in mapserver and qgis

a NetCDF file with only one band with a data range from [0,1.1]. IDV & QGIS identifies it correctly, however gdalinfo finds the data range [1,26505]. Or could it be possible that gdalinfo is right ...
1
vote
0answers
289 views

Install php mapscript on ubuntu 12.04 PHP 5.4

I follow this website : http://blog.geoghana.com/2013/06/28/setting-up-lampp-linux-apache-mapserver-php-postgresqlpostgis/ to install mapserver and the php extension on my ubuntu 12.04 64bit and PHP 5....
1
vote
0answers
66 views

My WMS Server returna a template without image instead of map's image

I have a server on localhost (using apache and mapserver in windows). I want to create a wrapper and do it using this document : http://mapserver.org/cgi/wrapper.html - Apache ReWrite rules (using ...
1
vote
1answer
202 views

How to create a Wrapper for mapserver

I want to create a wrapper for my server. (I use mapserver and apache on windows server) In this document ( http://mapserver.org/cgi/wrapper.html ) refer to suggestions: 1st : #!/bin/sh MAPSERV="/...
1
vote
0answers
72 views

Map server annotation rendering error for larger scales

I am using Map Server 6 and one of my layers don't show the annotation for certain scale level. As you can see the code bellow, the MAXSCALEDENOM is working correctly. However the annotation ...
1
vote
0answers
30 views

Error in querying data

I have a mapserver file as below , I get blank page with no map executing this query: NAME var DATA xyz STATUS ON TYPE POINT DUMP TRUE ...
1
vote
0answers
47 views

Blank map in result page using Mapserver file

I am using Mapserver .map file to retrieve the data into my map but I get only a blank page instead of data on the map. I am using the below query to fetch the data from a postgresql: DATA "the_geom ...
1
vote
0answers
306 views

All map services display pink tiles

I have implemented mapserver in Ubuntu 14.04 with postgresql 9.3, postgis and imposm using GitHub tutorial. After completing the tutorial all map services display pink tiles not map info. i was not ...
1
vote
0answers
34 views

How to serve data that changes with time

This question is practically the same as an older one that concerns GeoServer; I'm interested in MapServer instead (and I don't see a satisfactory answer to the GeoServer question either). I have ...
1
vote
0answers
160 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
0answers
122 views

Query with dimension parameter as a metadata in Mapserver's client

I've read the documentation to use mapserver as a client but I can't see how to query a layer which get a dimension parameter using a metadata value. The only way I found is to add the dimension ...
1
vote
0answers
135 views

Gdal_translate and transparent rasters in PDF

I am trying to make an application that creates geospatial pdf's from my website, but I am encountering problems with Gdal_translate and transparency of rasters. The setup that I am working up ...
1
vote
0answers
90 views

MapServer: UV_ANGLE not calculated correctly?

I'm following this example given on the MapServer website. But the angle of the raster is incorrect: The data is my grib files is correct, and should not yield these perfect opposite directions. ...
1
vote
0answers
75 views

PostGIS raster connection is not closed by MapServer

I'm using PostGIS raster in MapServer like this: TYPE RASTER DATA "PG:port=6432 dbname='mydb' user='postgres' password='1234' schema='public' table='truemarble' mode='2'" PROCESSING "CLOSE_CONNECTION=...
1
vote
0answers
113 views

Rendering OSM with QGIS for MapServer to use in OpenLayers

I want to show tiles in OpenLayers offline. I've installed QGIS 2.0, TileCache, and MapServer on Windows. Enabled plugin OpenLayers in QGIS. What kind of data I suppose to extract from QGIS with my ...
1
vote
1answer
131 views

(ms4w) oracle spatilal problem of drawing compound polygon for Oracle 10g

When i draw a compound polygon SDO_GEOMETRY( 2003, -- two-dimensional polygon NULL, NULL, SDO_ELEM_INFO_ARRAY(1,1005,2, 1,2,1, 5,2,2), -- compound polygon SDO_ORDINATE_ARRAY(6,...
1
vote
2answers
547 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 ...
1
vote
1answer
441 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, the ...
1
vote
0answers
65 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). I'...
1
vote
0answers
37 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
0answers
491 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 ...
1
vote
0answers
91 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 ...
1
vote
0answers
443 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
0answers
252 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 ...
1
vote
0answers
425 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 ...