Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No features detected using PostGIS-backed vector provider #56

Open
alalonde opened this issue May 14, 2012 · 0 comments
Open

No features detected using PostGIS-backed vector provider #56

alalonde opened this issue May 14, 2012 · 0 comments

Comments

@alalonde
Copy link

Pulling from a table with a few MultiPolygon geometries, no features seem to be detected no matter the zoom level or x y positions.

print "pre-filter features: %i projection: %s" % (layer.GetFeatureCount(), projection,) 
# 
# Spatially filter the layer 
# 
bbox = _tile_perimeter_geom(coord, projection, clipped == 'padded') 
bbox.TransformTo(layer_sref) 
layer.SetSpatialFilter(bbox) 
print "post-filter features: %i" % (layer.GetFeatureCount(),) 

which shows 2245 features before filtering, and 0 after.

Configuration: https://gist.github.com/2650080
PostGIS table is using the 900913 SRID with the definition provided here: http://tilestache.org/doc/TileStache.Vector.html

Turns out that
layer.SetSpatialFilter(bbox)
is filtering out everything, because the problem disappears when I comment it out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant