[Xastir-dev] Shapefile spatial indexing (fwd)

Curt Mills archer at eskimo.com
Tue Jan 4 01:59:56 EST 2005


Forwarded from the gdal-dev list.  This might help us.

-- 
Curt, WE7U.				archer at eskimo dot com
http://www.eskimo.com/~archer
  Lotto:  A tax on people who are bad at math. - unknown
Windows:  Microsoft's tax on computer illiterates. - WE7U.
The world DOES revolve around me:  I picked the coordinate system!"

---------- Forwarded message ----------
Date: Mon, 03 Jan 2005 23:17:52 -0500
From: Frank Warmerdam <warmerdam at pobox.com>
To: gdal-dev <gdal-dev at remotesensing.org>
Subject: [Gdal-dev] Shapefile spatial indexing

Folks,

I think I mentioned in the past that I was looking at implementing spatial
indexing support for the OGR Shapefile driver.  Martin Chapman (and SANZ)
have encouraged me to complete that work and it is now all in CVS.

It is implemented using the same quadtree style format (.qix) used by
UMN MapServer.  Indexes can be created and dropped with pseudo-SQL commands
as noted in the updated shapefile driver document at:

  http://gdal.maptools.org/ogr/drv_shapefile.html

With the spatial index build for a 400MB 900000 feature line file (roads
in Virginia) I was able to read back a 77000 feature subset in 5s as opposed
to 64s without the spatial index.  I was able to read back a 1300 feature
subset in 0.4s compared to 60s.  So the spatial index does give massive
improvements for reading small spatial regions out of large datasets.

If anyone tries out the new capability and runs into problems, please let me
know.

Thanks to SANZ for funding this work, and Steve Lime for his implementation
in MapServer!

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent

_______________________________________________
Gdal-dev mailing list
Gdal-dev at xserve.flids.com
http://xserve.flids.com/mailman/listinfo/gdal-dev



More information about the Xastir-dev mailing list