[Geojson] success and failure
Sean Gillies
sgillies at frii.com
Wed Nov 7 07:13:38 PST 2007
Bart van den Eijnden (OSGIS) wrote:
> Hi list,
>
> I am working with ExtJS against Geoserver's GeoJSON output, and I've run
> into a slight compatability issue.
>
> ExtJS expects a boolean attribute named success in the top of the response,
> so it can easily determine (without an ErrorReader) if the request failed or
> succeeded.
>
> Would it be an idea to add this to the GeoJSON spec?
>
> {success: true, "type":"FeatureCollection" .....
>
> I did see some other metion of this on internet, e.g.:
>
> http://www.openjs.com/articles/ajax/success_error_design_pattern.php
>
> Best regards,
> Bart
>
IMO, that's inappropriate for the spec, but you can add that member to
your own objects without breaking GeoJSON.
Sean
More information about the GeoJSON
mailing list