GIS: NameError: global name 'SRS' is not defined

 
1
0
-1

Добрый день!

ОС CENTOS 6.7: При заливке в базу NOC возникает ошибка на шаге:
noc@/opt/noc$ ./noc init-mapnik-map -n "My Map" -p osm ~/tmp/mapnik/osm.xml
->

Traceback (most recent call last):
File "manage.py", line 45, in <module>
execute_from_command_line(sys.argv)
File "/opt/noc/lib/python2.6/site-packages/django/core/management/__init__.py", line 443, in execute_from_command_line
utility.execute()
File "/opt/noc/lib/python2.6/site-packages/django/core/management/__init__.py", line 382, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/opt/noc/lib/python2.6/site-packages/django/core/management/base.py", line 196, in run_from_argv
self.execute(*args, **options.__dict__)
File "/opt/noc/lib/python2.6/site-packages/django/core/management/base.py", line 232, in execute
output = self.handle(*args, **options)
File "/opt/noc/gis/management/commands/init-mapnik-map.py", line 50, in handle
self.init_mapnik_map(options["name"], args[0])
File "/opt/noc/gis/management/commands/init-mapnik-map.py", line 86, in init_mapnik_map
self.sync_layer(attrs, children)
File "/opt/noc/gis/management/commands/init-mapnik-map.py", line 303, in sync_layer
srs=self.get_SRS(attrs["srs"]),
File "/opt/noc/gis/management/commands/init-mapnik-map.py", line 103, in get_SRS
srs = SRS.objects.get(srid=900913) # proj4text=proj)
NameError: global name 'SRS' is not defined

 

    CommentAdd your comment...