[Featureserver] SRID for json export

Christopher Schmidt crschmidt at metacarta.com
Tue Aug 21 09:59:18 EDT 2007


On Tue, Aug 21, 2007 at 03:54:55PM +0200, Fran?ois Van Der Biest wrote:
> Hi list,
> 
> By default, there does not seem to be any defined SRS for JSON output, while
> the emerging JSON spec (http://wiki.geojson.org/GeoJSON_Features) seems to
> mention it.

The CRS in the GeoJSON spec is only a recommendation -- and at the
moment, there's no mechanism for anything related to SRS in
FeatureServer, so it doesn't do anything with it. (Note that the default
JSON from FeatureServer is also not GeoJSON -- you have to ask for
?format=GeoJSON at the moment for that.)

> Does that mean that we have to "feed" FeatureServer with a datasource in
> epsg:4326 and that it will be interpreted as such ?

FeatureServer spits out exactly the same x/y/z as it was given -- so you
can feed coords as lat/lon or x/y or z/p -- the client needs to figure
out what that means when asking for the data.

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Featureserver mailing list