Vectorization: Exploding a linestring or polygon into individual vectors in PostGIS

I find having a vectorising function in my database kit-bag almost indispensable in my work. I have written and revised my Oracle PL/SQL functions that do this many times over the years and so, when I first started using PostGIS, I decided to learn how to program in PL/pgSQL by implementing something familiar: a GetVector()Read More

Converting Oracle Optimized Rectangles to PostGIS

Someone on the PostGIS discussion list asked about a problem converting an Oracle database to PostGIS and he had run into some difficulties with Oracle’s Optimized Rectangles. Is there a way to store rectangles in postGIS in a similar fashion? With the “similar fashion” being all about converting to equivalent 5 vertex POLYGONS: I understandRead More

Building polygons from overlapping linestrings requiring intersection

I received an email a few weeks ago asking: I was wondering if you could post an article explaining how to create a polygon from overlapping lines, if this is possible. I am new as in 1 week into exploring this product and am finding the documentation for ST_BuildArea and the like a little hardRead More

DMS2DD for PostGIS

Yesterday, I posted a short article on Converting Google Earth Formatted Longitude/Latitude points to decimal degrees. The Google Earth longitude/latitude values are expressed as a string containing degree, minute and seconds values with text separators as follows: Latitude Longitude 43� 0�50.60�S 147�12�18.20�E The function described was written in PL/SQL for Oracle. Regina Obe emailed meRead More