[Featureserver] OGR layers
Matthew Perry
perrygeo at gmail.com
Sun May 27 23:39:49 EDT 2007
On to the next featureserver adventure; getting an OGR layer set up as
a data source.
I have a recent gdal/ogr svn installed with the ngpython bindings and
I can confirm that they're working well.
I've set up the cfg file like so:
[sbroads]
type=OGR
dsn=/home/perry/data/sbroads/sbroads_26910.shp
layer=sbroads_26910
But when I try to access the features via http, I get the following
error message:
=======================
An error occurred: Can't extract file(s) to egg cache
The following error occurred while trying to extract file(s) to the Python egg
cache:
[Errno 13] Permission denied: '/var/www/.python-eggs'
The Python egg cache directory is currently set to:
/var/www/.python-eggs
Perhaps your account does not have write access to this directory? You can
change the cache directory by setting the PYTHON_EGG_CACHE environment
variable to point to an accessible directory.
File "./FeatureServer/Server.py", line 180, in cgiHandler
service = Server.load(*cfgfiles)
File "./FeatureServer/Server.py", line 45, in _load
config, section, 'DataSource')
File "./FeatureServer/Server.py", line 22, in _loadFromSection
module = __import__("%s.%s" % (module_type, type), globals(),
locals(), type)
File "./FeatureServer/DataSource/OGR.py", line 2, in <module>
import ogr, osr
File "build/bdist.linux-i686/egg/ogr.py", line 7, in <module>
File "build/bdist.linux-i686/egg/_ogr.py", line 7, in <module>
File "build/bdist.linux-i686/egg/_ogr.py", line 4, in __bootstrap__
File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 800,
in resource_filename
self, resource_name
File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 1229,
in get_resource_filename
return self._extract_resource(manager, zip_path)
File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 1250,
in _extract_resource
self.egg_name, self._parts(zip_path)
File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 880,
in get_cache_path
self.extraction_error()
File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 846,
in extraction_error
raise err
=======================
I'm not sure why it's trying to install any eggs on my system since I
have all the dependencies already. Anyone have any thoughts on how to
get this working?
--
Matthew T. Perry
http://www.perrygeo.net
"You never change things by fighting the existing reality.
To change something, build a new model that makes
the existing model obsolete" - R. Buckminster Fuller
More information about the Featureserver
mailing list