[postgis-users] speeding up simple pt-in-poly lookups

Simon Greener simon at spatialdbadvisor.com
Wed Dec 21 13:35:14 PST 2011


> Chopping polygons is pretty simple, with a grid & st_intersection()

Just for interest, I posted a method for gridding/chopping polygons the other day in a set of comparative posting with SQL Server and Oracle.

http://www.spatialdbadvisor.com/postgis_tips_tricks/258/gridding-a-geometric-object

There may be faster ways of doing this, but my attempt was about functionality not speed. Also, the approach here is not optimized for a single
polygon: it is designed to use the same grid no matter how many polygons etc are put into the chopper.

regards
Simon
-- 
Holder of "2011 Oracle Spatial Excellence Award for Education and Research."
SpatialDB Advice and Design, Solutions Architecture and Programming,
Oracle Database 10g Administrator Certified Associate; Oracle Database 10g SQL Certified Professional
Oracle Spatial, SQL Server, PostGIS, MySQL, ArcSDE, Manifold GIS, FME, Radius Topology and Studio Specialist.
39 Cliff View Drive, Allens Rivulet, 7150, Tasmania, Australia.
Website: www.spatialdbadvisor.com
Email: simon at spatialdbadvisor.com
Voice: +61 362 396397
Mobile: +61 418 396391
Skype: sggreener
Longitude: 147.20515 (147° 12' 18" E)
Latitude: -43.01530 (43° 00' 55" S)
GeoHash: r22em9r98wg
NAC:W80CK 7SWP3
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20111222/11a0f114/attachment.html>


More information about the postgis-users mailing list