mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
@@ -80,7 +80,7 @@ each feature in that layer.
|
||||
>>> from django.contrib.gis.gdal import DataSource
|
||||
>>> ds = DataSource(CITIES_PATH)
|
||||
>>> ds.name # The exact filename may be different on your computer
|
||||
'/usr/local/lib/python2.6/site-packages/django/contrib/gis/tests/data/cities/cities.shp'
|
||||
'/usr/local/lib/python2.7/site-packages/django/contrib/gis/tests/data/cities/cities.shp'
|
||||
>>> ds.layer_count # This file only contains one layer
|
||||
1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user