Monthly Archives: January 2010

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

svn copy problem

Being a bit to eager when cleaning up a repository, I managed to remove a file too many from revision control. I still had the file sitting around, so I just readded it – but then the revision history had … Continue reading

Posted in Data | Comments Off on svn copy problem