Skip to main content

Questions tagged [mapserver]

MapServer (formerly referred to as "UMN MapServer") is an Open Source platform for publishing spatial data and interactive mapping applications to the web. Built on C, MapServer is known for being one of the fastest mapping engines. Hundreds of vector and raster formats can be accessed in MapServer directly through GDAL.

Filter by
Sorted by
Tagged with
15 votes
3 answers
6k views

Why do we need Mapserver/Geoserver to present data from spatial database to web browser?

I was trying "How I set up GeoServer on an old machine" and By @iant I was setting up Tomcat and all. I suddenly had a question ... why do we need MapServer and GeoServer? Can these servers pull ...
kinkajou's user avatar
  • 4,416
4 votes
1 answer
2k views

MapServer: using a CRS for which there is no EPSG code

I am developing a MapServer map file for a map created with Goode's Homolosine projection. The PROJ string is rather simple: +proj=igh +lat_0=0 +lon_0=0 +datum=WGS84 +units=m +no_defs The IOGP (...
Luís de Sousa's user avatar
23 votes
3 answers
21k views

Mapnik, Mapserver or Geoserver

I'm currently developing an ArcGIS based flex web viewer. ArcGIS is great for most of the things but there are some issues like performance and license costs. That's why I'm looking into possible ...
tmske's user avatar
  • 815
6 votes
1 answer
15k views

Setting up MapServer WMS and use it with OpenLayers

I have set up MapServer WMS on the localhost by the following map file: MAP NAME "Prvi_WMS" SIZE 600 300 # 600 by 300 pixel image output PROJECTION "init=epsg:4326" END ...
Matej's user avatar
  • 1,758
12 votes
2 answers
13k views

QGIS Server limitations?

QGIS Server seems to be fairly simple to setup and create services, however I'm wondering if there are any limitations with using it opposed to MapServer or GeoServer. My current server ...
artwork21's user avatar
  • 35.1k
8 votes
2 answers
5k views

GeoTiff size - what to do?

I have a whole series of GeoTiff tiles, each one about 250mb in size, in total just over 90gb. I want to be able to display these as a wms into QGIS to 20+ GIS users and in the end make them into a ...
geosmiles's user avatar
  • 1,367
5 votes
3 answers
3k views

Notepad++ syntax highlighting support for .mapfiles?

I was looking for a language definition for mapserver ".map" files in Notepad++ but could not find anything. Is there anyone who can recommend / has such a file? an already defined one? If not, is ...
Robert's user avatar
  • 273
5 votes
3 answers
2k views

Why is MapServer adding horizontal artifacts when projecting EPSG:4326 data to EPSG:3857?

We're running MapServer with a map that has just one layer, political boundaries from a SHP file. This layer is using a basic EPSG:4326 projection, and the map itself is using EPSG:3857. The ...
Geoff's user avatar
  • 53
4 votes
1 answer
3k 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, postgresql-9.1.9-1-windows-x64.exe,...
novicegis's user avatar
  • 665
4 votes
1 answer
9k views

Getting MapServer to show raster?

I am trying to use MapServer to display a raster image (png). That's it for now at least. However, I am having no luck. When I visit my map by using a link like: *http://myurl.com/cgi-bin/mapserv?map=...
peter's user avatar
  • 205
3 votes
2 answers
7k views

Use OpenLayers WMSGetFeatureInfo on Mapserver Layer?

I'm able to use OpenLayers' OpenLayers.Layer.Mapserver declaration to generate a raster from GRIB data. I've read in the MapServer docs and on forums that it should be possible to get point ...
teknocreator's user avatar
3 votes
2 answers
4k views

QGis 2.0.1 mapserver extension missing

I tried to export my Qgis projects to mapserver, using RT mapserver extension, because there is not any other extension in my version of QGis.(QGis 2.0.1 Dufour on ubuntu 12.04 LTS). After installing ...
dadson's user avatar
  • 49
3 votes
1 answer
4k views

Mapserver: labels and tiles

I'm developing map with Mapserver to be rendered in tiles and testing output with Ka-map. Most of the time labels split on two tiles are matching, but sometimes they're not. I configured Ka-Map like $...
alxx's user avatar
  • 203
2 votes
2 answers
2k views

MapServer throws "msQueryByPoint(): Search returned no results."

I have been trying to configure a QUERY using MapServer (through MS4W, on Windows). Below is the mapfile: MAP NAME "Fourth" UNITS dd ...
SNT's user avatar
  • 3,389
2 votes
1 answer
388 views

BetterWMS script doesn't work with QGIS Server and MapServer WMSs

I have a HTML/Leaflet page utilising BetterWMS script below. The script returns GetFeatureInfo over WMS layer. Unfortunately it is not working with WMSs published by Qgis Server and MapServer, ...
Melanie's user avatar
  • 159
1 vote
1 answer
3k views

Mapserver/PostGIS Query Error

I'm having some difficulty understanding the error I am getting from my mapserver/postgis program. I have the following map file: MAP # start of map file NAME "sample" EXTENT ...
djq's user avatar
  • 16.3k
1 vote
1 answer
585 views

MapServer HTML Template doesn't display map/image

I'm using ms4w and working on my local machine and want to build a map like in the MapServer Example 1.9 (https://mapserver.org/tutorial/section1.html). Unfortunately the HTML template doens't ...
ki8Q7SFi7y's user avatar
1 vote
1 answer
1k views

Style a point layer in MapServer 7.0.4

I have a very simple problem with MapServer 7.0.4. I am trying to display a point layer (WMS) with a simple circle but I can't get it to work. Here is the CLASS definition in the layer object: ...
TurboGraphxBeige's user avatar
1 vote
2 answers
7k views

Using OpenLayers 3 or 2 to add layers from Google Maps and Mapserver?

I am beginner in OpenLayers and am starting with the www.openlayers.org documents, which use OpenLayers 3 to teach the basics of OpenLayers. Now, I would like to add layers from Google Maps and ...
ahmad's user avatar
  • 159
1 vote
1 answer
1k views

MapServer (MS4W) test page from shapefile shows only blank white square?

I am trying to create a test page with mapserver and shapefile. At the moment I just want to get the map shown on my test page. I have gotten the EXTENT coordinates by opening shapefiles with QGIS - I ...
afaf12's user avatar
  • 84
0 votes
2 answers
961 views

Using MAXSCALEDENOM in mapfile (Google baselayer) with MapServer and OpenLayers

My base layer: Google map My points on the map: from an airports.db file, set up as a WFS layer in the OpenLayers code. As of now: map loads, points in the correct places on the map. My goal: when the ...
Nubtacular's user avatar
0 votes
1 answer
3k 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 ...
afaf12's user avatar
  • 84
15 votes
4 answers
37k views

Simple way to have an offline web based map? [closed]

My goal is to have a world map embedded in a web page, but without access to the internet. Preferrably only a set of tiles in combination with some slippy map js-lib. Storage space is not really an ...
tek's user avatar
  • 161
11 votes
4 answers
6k views

How to colour polygons with a completely transparent fill using MapServer?

Is it possible to fill polygons so that they are completely transparent in MapServer? I want to have a black background that is slightly opaque, and wherever there is a polygon I want that to be ...
djq's user avatar
  • 16.3k
10 votes
2 answers
3k views

Seeking map hosting options? [closed]

I'm trying to figure out how to best get started on a web-mapping project, and am wondering about where I should host my maps from. In terms of my skills, I'm quite good at desktop mapping and ...
Jim M's user avatar
  • 181
9 votes
4 answers
9k views

Heat map / Density map from dynamic points table in MapServer (GeoServer)?

How can I create a heat map (some would call a density map) from a points layer in MapServer (or GeoServer)? (preferably able to choose Interpolation method, NN, IDW, etc and color map with a ...
dowi's user avatar
  • 519
6 votes
1 answer
2k views

SRID error in mapserver

I've created a network topology using QGIS, saved it as a shp, imported it into PostGIS using shp2pgsql and I'm now trying to output some of the geometry using mapserver. Unfortunately mapserver is ...
RichW's user avatar
  • 511
6 votes
1 answer
7k views

How to install MapServer and MapCache on Ubuntu 14.04?

I want to install MapServer and MapCache on Ubuntu 14.04. The MapServer installation succeeded but now I'm stuck with the installation of MapCache. This is what I did so far: Install MapServer and ...
Mark's user avatar
  • 491
5 votes
1 answer
2k views

PostGIS Raster in MapServer

I'm having trouble getting a PostGIS raster to load and display in MapServer. I'm not sure, but suspect it's a version problem. My mapfile layer and the error message are shown below. LAYER ...
cokrzys's user avatar
  • 657
5 votes
1 answer
621 views

Update PostGIS after updating GDAL?

I am using PostGIS 2.0 and I want to use the raster functionality through mapserver. It seems as if the latest official GDAL release 1.9.1 has an unstable PostGIS raster driver, as pointed out in a ...
yellowcap's user avatar
  • 3,023
5 votes
2 answers
6k views

How to install mapserver on Windows/Apache?

We need to get an internal instance of MapServer up and running. We want to use Apache and not IIS because we already have an Apache 2.4 instance up and running on our office intranet. The Windows ...
Steve F's user avatar
  • 151
5 votes
2 answers
5k 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 ...
Engineer2021's user avatar
5 votes
2 answers
13k views

MapServer very weak performance vs. GeoServer - Why?

I search for a good WMS server that support PostGIS at the end I found MapServer as the fastest and best choice. Every performance test say it's faster than GeoServer because of its native compiled ...
MSS's user avatar
  • 262
4 votes
2 answers
4k views

Saving MapServer output to file?

How can I save the results from a MapServer file as an image? I would like to be able to write a png file as a result of a query. My query which I can display in browser is the following: http://...
djq's user avatar
  • 16.3k
4 votes
6 answers
3k views

What map source/API/tools are recommended to create Web GIS/Mapping application utilising Microsoft technologies? [closed]

I'm researching about technologies (around Microsoft tech) to create mapping application and would like to have advice/suggestions. Brief requirement to build mapping application with Microsoft ...
Sun's user avatar
  • 149
4 votes
1 answer
2k views

Access PostGIS Raster layer through mapserver

I am trying to use a cgi script calling mapserver to display a raster layer that is stored in a PostGIS database. However, only a blank white image is returned and I don't know where the problem is. ...
yellowcap's user avatar
  • 3,023
3 votes
3 answers
7k views

QGIS Server not working (problem with fast CGI)

Is there a simple example/tutorial of how to set up QGIS Server with the latest QGIS version on Ubuntu, I can't get a correct result (blank image)? I think there might be some problem with my FASTCGI ...
venkat's user avatar
  • 49
3 votes
1 answer
2k views

Mapserver, TMS, Scales zoom levels and how to deal with all of it

I have a whole bunch of data in my db that I need to draw at different zoom levels using Mapserver. Everything uses a 4326 SRID. My (custom) client, will fetch the data using 20 TMS zoom levels and ...
Ragi Yaser Burhum's user avatar
3 votes
1 answer
740 views

Mapserver - Hide Labels

I'm creating a map with some layers, each one has a label, the problem is that, Mapserver is displaying the labels of bottom layers, so it is mixing all the label. Is it possible to hide label that ...
Michel Andrade's user avatar
3 votes
1 answer
2k views

Why might my MapServer WMS layer be invisible in QGIS if they work fine in a browser?

I've managed to create a WMS feed from Mapserver showing a tile index to some rasters and a shapefile and it appears in my browser OK. If I go to QGIS (1.8.0 Windows StandAlone) and I connect to my ...
geosmiles's user avatar
  • 1,367
3 votes
2 answers
662 views

mapserver displays raster image in mirror

I've installed Mapserver and used a map file to set a raster layer and vector(shp) layers on top of it. However, although displayed in the expected order, the png file is displayed in mirror(compared ...
user39901230's user avatar
3 votes
3 answers
3k views

Using Mapscript to create a mapfile from scratch

Following a few online tutorials I have seen, I am trying to create a mapfile from scratch using mapscript. However, when I try to create the layer object, I get an error in the init of mapscript.py; ...
user890's user avatar
  • 5,733
3 votes
4 answers
4k views

How compile/install php-mapscript on Ubuntu 16.04

I need to upgrade from Ubuntu 14.04 to 16.04 but php5 is not officially supported on Ubuntu 16. I install php5.5 by ondrej repo https://askubuntu.com/a/756186/483814 but when I try to install php5-...
MSS's user avatar
  • 262
3 votes
1 answer
7k views

Highlight a feature on WMS layer using OL3 + mapserver

In OL2 I think that it was done by using something like this: the_control = new OpenLayers.Control.GetFeature({ protocol: OpenLayers.Protocol.WFS.fromWMSLayer(mymap, { geometryName: 'geom', ...
khamyl's user avatar
  • 165
2 votes
1 answer
10k views

How to add Mapserver WMS to Openlayers 3

I have a WMS server on localhost (using MapServer and Apache and Windows). I want to add my WMS to Openlayers. but any example that i found use openlayers 2. How to add MapServer's WMS to OpenLayers ...
ahmad's user avatar
  • 159
2 votes
1 answer
2k views

MapServer: Symbol (v-line) style that automatically follows line direction

I created this image: with: MAP SIZE 1000 1000 IMAGETYPE png24 EXTENT -30 -10 60 30 UNITS DD SYMBOL NAME "v-line-shift" TYPE vector POINTS 0 0 5 10 10 0 END # POINTS ...
Gery's user avatar
  • 2,135
2 votes
0 answers
549 views

MapServer Query Raster for Pixel Value at Point

I am working with a MapServer and a map file that is displaying a color-relief image. LAYER NAME "sum" DATA "sum.vrt" TYPE RASTER STATUS ...
Christian4423's user avatar
2 votes
1 answer
7k views

Basic MapServer query of PostgreSQL/PostGIS database

I've just installed MapServer on a linux server and I am trying to understand how to display a basic map using a PostGIS database. I have displayed a shapefile in the browser, so I know that the ...
djq's user avatar
  • 16.3k
2 votes
1 answer
3k views

Using C# + Mapscript + Openlayers

Nowadays i'm using Mapscript and C# to generate and display a Mapfile, but in this way i need to create manualy the interface, is there any way to use Mapscript + Openlayers?
Michel Andrade's user avatar
2 votes
2 answers
4k views

Querying MapServer using WFS functionality

I'm trying to display a shapefile using OpenLayers and Mapserver. Instead of overlaying it as a png, I want to return a vector, in this case a KML file. My HTML file (located in the same folder as ...
djq's user avatar
  • 16.3k