[Featureserver] curl usage issue
Yves Moisan
yves.moisan at boreal-is.com
Thu Dec 4 17:05:12 EST 2008
> This isn't valid GeoJSON. You have your coordinates in [[ ]]. I expect
> you probably downloaded this from /something/something.json (instead of
> .GeoJSON/.geojson), which uses an older unsupported vrsion of GeoJSON by
> default. If you fix this, it shuld work with either 1.12 or SVN trunk.
>
I checked the GeoJSON spec and here's what I'm trying to upload :
{"type": "FeatureCollection", "features": [{"type": "Feature",
"geometry": {"type": "Point", "coordinates" :
[411688.88888,8831340.77777]}, "properties": {"comment": "99999"}}]}
AFAICT, that's pretty much as per spec. I guess I'm missing something
obvious. I get the enoforce_srid_the_geom constraint violation.
On another topic, we've played with FS a bit and we have a couple of
questions/observations :
- we found it nice to be able to point to a PostGIS view that has a
geometry
- we did not find how to specify rang of values
like .../?somefield=[a,b]; is it possible ?
- the flickr layer is nice; we found we did not have to use the tag
parameter in the cfg file and instead specify it in the url
like... /flickr?tags=sometag; we did not find ways to pass parameters
through the url to a postgis layer, e.g. ?attribute_cols=colname; is
there a way to do that ?
TIA,
Yves
More information about the Featureserver
mailing list