SpatialDB Advisor
|
Current PostGIS Blog Articles • Morton key function for PostgreSQL/PostGIS • Generating a Grid (fishnet) of points or polygons for PostGIS • ST_Parallel for PostGIS • R based Delaunay Triangulation Function for PostGIS using the deldir package • COGO: Converting Decimal Degrees to Degrees Minutes and Seconds - and back again (PostGIS) • COGO: Finding centre and radius of a curve defined by three points (PostGIS) • Gridding a geometry object (PostGIS) • FOSSLIC - PostGIS presentations • Vectorization: Exploding a linestring or polygon into individual vectors in PostGIS • How to apply spatial constraints to PostGIS tables • Loading and Processing GPX 1.1 files using PostgreSQL XML • Converting Oracle Optimized Rectangles to PostGIS • Building polygons from overlapping linestrings requiring intersection • Loading Point Data from a CSV File in PostGIS • DMS2DD for PostGIS • Implementing Oracle's GetVertices function in PostGIS - ST_DumpPoints • Filtering Rings in Polygon (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:
Regina Obe emailed me today as she had read the article and had converted it to PostGIS (supplying me a copy). You will notice, in the code that follows, that PL/SQL and PL/PgSQL are very similar, making conversion much easier than you might expect.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
![]()
![]() |
Comment