[Featureserver] newbie question - ogr datasource

alim karim alim.karim at gmail.com
Tue Jan 15 14:13:06 EST 2008

hello list.

i am fairly new to featureserver.

i have featureserver successfully running and i am able to read vector
data (from a shapefile) served up as an ogr service.

i am trying to post edits made to a certain feature using the atom
publishing protocol examples as a guide.

when i try to access the vector data by individual feature, just to
look at it,  using a url such as
i get the following error:

An error occurred: 'NoneType' object has no attribute 'GetFID'
 File "/var/www/localhost/htdocs/featureserver/FeatureServer/Server.py",
line 273, in cgiHandler
   format, content = service.dispatchRequest( params, path_info,
host, post_data, request_method, accepts )
 File "/var/www/localhost/htdocs/featureserver/FeatureServer/Server.py",
line 137, in dispatchRequest
   result = method(action)
 File "/var/www/localhost/htdocs/featureserver/FeatureServer/DataSource/OGR.py",
line 113, in select
   return self.freeze_features(result)
 File "/var/www/localhost/htdocs/featureserver/FeatureServer/DataSource/OGR.py",
line 190, in freeze_features
   feat = Feature(ogrfeat.GetFID())

getting all the features is not a problem i.e.
does give me all features.

i am using gdal/ogr version 1.5 (which i believe is the latest release).

does anyone know what is causing this error?

any help is kindly appreciated.



More information about the Featureserver mailing list