Hi List
I have next code to create new layer via rest
from geoserver.catalog import Catalog
cat = Catalog('http://localhost:8080/geoserver/rest/', username='admin',
password='geoserver')
ws = cat.get_workspace('akmolakad')
dats = cat.get_store('akmola01', ws)
cat.save(dats)
ft_name='akmolakad'
epsg_code = 'EPSG:3857'
ft = cat.publish_featuretype(ft_name, ds, epsg_code)
cat.save(ft)
when this code is running, I have next error. Please help me to fix this! Thank
you!
Traceback (most recent call last):
File "akmola.py", line 13, in <module>
ft = cat.publish_featuretype(ft_name, ds, epsg_code)
File "/usr/local/lib/python3.5/dist-packages/geoserver/catalog.py", line 716,
in publish_featuretype
headers=headers, params=params)
UnboundLocalError: local variable 'params' referenced before assignment
Жандос Керимкулов
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list
Please make sure you read the following two resources before posting to this
list:
- Earning your support instead of buying it, but Ian Turton:
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines:
http://geoserver.org/comm/userlist-guidelines.html
If you want to request a feature or an improvement, also see this:
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users