[Featureserver] GeoRSS Errors

Matt Priour mpriour at kestrelcomputer.com
Wed Jul 29 11:39:01 EDT 2009


I'm using the trunk version of FeatureServer with a point shapefile data 
source.
I get correct output in JSON, GeoJSON, & KML but an error when specifiying 
GeoRSS.

GeoJSON output:
{"crs": null, "type": "FeatureCollection",
"features": [{"geometry": {"type": "Point", "coordinates": [[1373350.0, 
6228020.0]]},
"type": "Feature", "id": 1,
"properties":
{"Deviation": -3, "TagId": 2, "OffDuty": 0, "Tidpunkt": "2007-05-10 
00:00:00.000", "Y": 1373350, "X": 6228020, "Trafikplat": "HM"}}]}

GeoRSS Error:
An error occurred: list index out of range
  File "c:\ms4w\apps\featureserver\web_request\handlers.py", line 144, in 
wsgi
    accepts = accepts )
  File "c:\ms4w\apps\featureserver\FeatureServer\Server.py", line 180, in 
dispatchRequest
    mime, data = request.encode(response)
  File "c:\ms4w\apps\featureserver\FeatureServer\Service\GeoRSS.py", line 
28, in encode
    results = atom.encode(result)
  File "c:\ms4w\apps\featureserver\vectorformats\Formats\GeoRSS.py", line 
37, in encode
    results.append( self.encode_feature(action))
  File "c:\ms4w\apps\featureserver\vectorformats\Formats\GeoRSS.py", line 
104, in encode_feature
    coords = "%s %s" % (feature.geometry['coordinates'][1], 
feature.geometry['coordinates'][0])


Thanks for any help

Matt Priour
Kestrel Computer Consulting 





More information about the Featureserver mailing list