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)
|
In my article on the creation and use of a space keys for the spatial sorting of spatial data I show how to implement a Morton key for Oracle Locator/Spatial using PL/SQL. A function in pl/PgSQL for PostgreSQL/PostGIS is as follows:
Now, let’s test it with some simple SQL:
Results
I hope this is of use to someone. ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
![]()
![]() Article Navigation: Previous |
Comment