Will Mapnik support .sbn indexes for shapefiles? #1271

Closed
migurski opened this Issue Jun 27, 2012 · 8 comments

Projects

None yet

5 participants

@migurski
Member

I encountered this today:
http://geospatialpython.com/2012/05/sbn-mystery-solved.html

Looks like a more widely-used format for spatial indexes on .shp files than Mapnik's own .index. Any plans to support this?

@springmeyer
Member

We could look into it (learning and contributing to the gdal implementation: http://erouault.blogspot.com/2012/06/gdalogr-using-shapefile-native-sbn.html).

@springmeyer
Member

I'd be curious if natural earth might start distributing sbn files... (/cc @nvkelso)

@migurski
Member

Yeah that'd be awesome. I'm maintaining a set of Mapnik-ready NE files (e.g. http://cascadenik.teczno.com/data/ne-1.4/900913/ocean_110m.zip) that could definitely grow a set of .sbn’s if I figure out how to generate them reliably.

@nvkelso
Contributor
nvkelso commented Jun 27, 2012

How do I make SBN files?

I see this newer post:
http://erouault.blogspot.com/2012/06/gdalogr-using-shapefile-native-sbn.html

But that says even the new 2.0dev branch of OGR/GDAL doesn't write them yet.

They aren't automagically made in ArcMap, either. Though they creep
in occasionally. Maybe when geoprocessing toolkits are run?

_Nathaniel

@nvkelso
Contributor
nvkelso commented Jun 27, 2012
@artemp
Member
artemp commented Jun 28, 2012

Is index in SBN files any better than .index *.qix ?

@drwelby
drwelby commented Jun 28, 2012

ArcMap creates an SBN for you if you start an editing session on the shapefile's workspace. There's probably a tool for it in ArcToolbox too.

Hasbeen does the indexing but doesn't write SBN files - that job is part of spatialindex.py. I don't know if Joel has pulled the hasbeen code into it yet.

@artemp artemp closed this Jul 4, 2012
@artemp
Member
artemp commented Jul 4, 2012

closing - the index format is not documented by Esri

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment