Introduction to PostGIS

Posted by & filed under FOSS Training, Postgres & PostGIS, QGIS.

Horst and I are spending the week up in Johannesburg at the Satellite Applications Center in Hartebeeshoek. We are doing yet another week long training course (I hope I’m not working the poor guy too hard ). This time we are doing: – Two days QGIS (with a little GRASS) – One day PostGIS -… Read more »

Dissolving features by an attribute

Posted by & filed under Postgres & PostGIS.

Hi, I’m Sam. I’ve been learning a lot here at Linfiniti (thanks to the brilliant team!) Just like to add a quick note on one of the tasks I learnt this week. I was working on a shapefile of the suburbs in Cape Town. A client required the suburbs to be grouped by region. After… Read more »

Getting up and running with PostGIS in a jiffy

Posted by & filed under Postgres & PostGIS.

I’ve posted this before on my old blog so this is a repeat for those looking to get going with PostGIS in a hurry. This procedure should work on Ubuntu Jaunty or Ubuntu Karmic and possibly earlier versions. sudo apt-get install postgresql-8.3-postgis sudo su – postgres createuser -s -d -r -l -P -E timlinux createdb… Read more »

Clipping data from Postgis

Posted by & filed under Postgres & PostGIS.

So you have moved your spatial data into PostGIS and everything is great….until you start wanting to clip it out again. Luckily clipping data within the postgres environment is trivial with the little help of SQL. However I wanted something a little more fancy – a way to iterate through all my spatial tables and… Read more »

EAV Database Modelling

Posted by & filed under Postgres & PostGIS.

Sometimes just because a thing is possible doesn’t make it a good idea. In the last week I have been helping a client whose web developer has dissapeared. The developer implemented the database using a variation on the Entity Attribute Value (EAV) modelling paradigm. The database consists of only four tables: Entities, Attributes, Values, EntityTypes…. Read more »