Questions tagged [mapserver]

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

11
votes
3answers
4k 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 ...
23
votes
3answers
17k 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 ...
5
votes
1answer
13k 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 ...
11
votes
2answers
8k 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 ...
11
votes
4answers
2k views

Completely brand new to GIS - Help picking technology from the pros [duplicate]

I'm new to GIS and need to learn for an internship. I've been reading a lot and now need help picking technologies to use... particularly the map serving technologies. Project requirements - Free ...
4
votes
1answer
2k 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,...
2
votes
2answers
1k views

Why does Mapserver throw “msQueryByPoint(): Search returned no results.”?

I have been trying to configure a QUERY using mapserver. Below is the mapfile: MAP NAME "Fourth" UNITS dd EXTENT 58.206740 5.756104 104....
1
vote
1answer
840 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 ...
5
votes
2answers
2k 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 ...
4
votes
1answer
7k 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=...
3
votes
2answers
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 ...
3
votes
2answers
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 ...
1
vote
1answer
769 views

Leaflet Client Side rendering [closed]

A project I am working on contains 15 different layers with 5 containing over 50,000 polygons in each layer. Some of these layers must be "queryable" for data (ex: click to get more information of ...
1
vote
2answers
6k 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 ...
0
votes
1answer
2k 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
671 views

MapServer and OpenLayers: Properly using MAXSCALEDENOM in mapfile (google baselayer)

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: ...
0
votes
1answer
332 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: ...
15
votes
4answers
27k 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 ...
7
votes
4answers
7k 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 ...
7
votes
2answers
3k 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 ...
4
votes
1answer
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 ...
10
votes
2answers
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 ...
3
votes
4answers
2k 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-...
11
votes
4answers
4k 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 ...
5
votes
1answer
6k 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 ...
4
votes
2answers
8k 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 ...
3
votes
3answers
6k 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 ...
1
vote
1answer
2k views

Install and use MapCache?

I installed mapserver 6.4.1 using OSGeo4W and I created a mbtiles file for a small region of OpenStreetMap (loaded into PostGIS) using TileMill. My questions are: a - Do I have MapCache? MapServer ...
0
votes
1answer
2k 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 ...
3
votes
1answer
3k 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 $...
3
votes
1answer
1k 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. ...
3
votes
1answer
5k 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', ...
2
votes
2answers
3k 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 ...
2
votes
3answers
672 views

Is there a good guide out there for setting MapServer up on an existing windows apache server?

I have been interested in trying out MapServer and have no problem setting up a windows development box. Seems like all the MapServer implementations on Windows include Apache, php, mapserver, and a ...
2
votes
1answer
182 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 (...
2
votes
1answer
748 views

Is it possible to host MapServer in the cloud, specifically in Azure?

Can MapServer be hosted in the cloud? I presume as a virtual machine, or is it possible to have it as an Azure Web App, and avoid the hassle of VM maintenance And by cloud, I mean Microsoft ... but ...
1
vote
0answers
768 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
3k views

Query Feature using OpenLayers + MapServer

I'm trying to query a feature in OpenLayers, but it's returning just an image highlighted that is not possible to make zoom, pan and drag. My intention is to query a feature on the map like street ...
0
votes
1answer
2k views

How to install python-mapscript in a virtualenv?

I am on a django project where I want to use the python implementation of the mapserver mapscript library. I was able to install mapserver and python-mapscript from source. However, due to the ...
6
votes
1answer
1k 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 ...
4
votes
1answer
440 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 ...
4
votes
7answers
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 ...
4
votes
2answers
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://...
4
votes
2answers
3k 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 ...
3
votes
1answer
959 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 ...
3
votes
3answers
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; ...
3
votes
1answer
577 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 ...
3
votes
1answer
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 ...
3
votes
2answers
587 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 ...
2
votes
2answers
360 views

Converting Mapserver default URL to a more user friendly version

I use the default MapServer URL to view the map in browser. http://localhost/cgi-bin/mapserv?map=/home/mwh/osm-demo/basemaps/osm-google.map&mode=browse&template=openlayers&layers=all ...