Category Archives: mapserver

post related to mapserver (mapserver.org)

mapserver removed on debian

Edit: By now (october 2011) the dependencies are fixed and mapserver can again be installed through a normal apt-get install cgi-mapserver and it will survive upgrades. During a dist-upgrade on my wheezy/sid debian system, cgi-mapserver turned out to be removed. … Continue reading

Posted in mapserver | Comments Off on mapserver removed on debian

Convert vmap0 layers into shapefiles

The vmap0 dataset is a slightly dated, but anyhow often usable dataset of maps of all of the world in scale 1:1 000 000. It can be downloaded at e.g. mapability.com. The problem shows up as soon as one tries to use … Continue reading

Posted in Diverse, mapserver | Comments Off on Convert vmap0 layers into shapefiles

Hiding the map= parameter from a map server application

In the mapserver documentation, one is told to use a cgi-wrapper script to hide the map= parameter. Then there is shown a script to use on ‘any system having a /bin/sh’ I tried to rewrite that as a php-script to … Continue reading

Posted in Diverse, mapserver | Comments Off on Hiding the map= parameter from a map server application

Setting up a mysql database for spatial data

I would prefer to use postgis, but have to resign to mysql. I want to create a table with spatial information and be able to access it from mapserver. As I am going to store a lot of datapoints, they … Continue reading

Posted in mapserver | Comments Off on Setting up a mysql database for spatial data

Query a layer in mapscript php

When learning to use mapserver and mapscript, the first steps have been to display, zoom and pan. Zooming and panning is quite easy, it is just a line like $map->zoompoint($zoomfactor,$clickpoint,$map->width,$map->height,$mapextent); where $map is a mapboject, $zoomfactor is a number telling … Continue reading

Posted in mapserver | Comments Off on Query a layer in mapscript php

Selection from a mysql/ogr layer in php mapscript

A little phpsnippet for filtering out items from a layer. I have a layer “mobil” which may be on or off. This layer consists of a number of dataset collected at various times. There is one field ‘visible’ that is … Continue reading

Posted in mapserver | Comments Off on Selection from a mysql/ogr layer in php mapscript