Hi all,
I think i've found a bug but want to confirm before i submit a ticket.
I'm trying to load some spatial data using the layermapping utility and
keep getting this error
Traceback (most recent call last):
File "<input>", line 1, in <module>
File
"D:\Projects\Bluegeo\bluegeo_api\bluegeo_api\water\watersheds\load.py",
line 34, in run
Watersheds, watersheds_shp, watersheds_mapping
File
"C:\Users\James-Laptop\Anaconda2\envs\bluegeo_api\lib\site-packages\django\contrib\gis\utils\layermapping.py",
line 107, in __init__
self.check_layer()
File
"C:\Users\James-Laptop\Anaconda2\envs\bluegeo_api\lib\site-packages\django\contrib\gis\utils\layermapping.py",
line 179, in check_layer
ogr_fields = self.layer.fields
AttributeError: 'str' object has no attribute 'fields'
I'm using the following:
Windows 10
Python 3.4.5 (Anaconda 4.2.13)
Django 1.10.4
Postgres 9.6 and postgis 2.3
GDAL 1.11
GEOS 3.4.2
Ive attached a model, a load data script, and some data as well
So is this a bug or am I doing this wrong?
Thanks,
James