[Featureserver] GeoRSS Errors

Christopher Schmidt crschmidt at metacarta.com
Wed Jul 29 11:59:53 EDT 2009


On Wed, Jul 29, 2009 at 10:39:01AM -0500, Matt Priour wrote:
> 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.

This GeoJSON is actually wrong as well. This problem was fixed in SVN about
two hours ago, in r611. Please SVN up and try again.
 
> 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 
> 
> 
> _______________________________________________
> Featureserver mailing list
> Featureserver at openlayers.org
> http://featureserver.org/mailman/listinfo/featureserver

-- 
Christopher Schmidt
MetaCarta



More information about the Featureserver mailing list