I have been playing around with geojson driver and wfs and using ogr
to convert the json to a esri shp. I am having a problem with the
coordinates generated by geoserver (I think). When I viewed the
resulting shp file the x and y coords have been switched. When I take
a look at the json with a text editor it confirms that this is
happening, below is a sample of the topp:states texas feature in json.
According to geojson.org position "elements must follow x, y, z order"
http://geojson.org/geojson-spec.html#geometry-objects
### Request
{"type":"FeatureCollection","features":[{"type":"Feature","id":"states.15","geometry":{"type":"MultiPolygon","coordinates":[[[[31.393817999999996,-105.99836],[31.478127999999998,-106.212753],[31.733762999999996,-106.383041],[31.786198,-106.538971],[31.817728000000002,-106.614441],[31.844634999999997,-106.615578],[31.895101999999994,-106.643532],[31.913998000000007,-106.633202],[31.972117999999995,-106.632057],[31.980227999999997,-106.649513],[32.00098800000001,-106.623077],[32.000645000000006,-106.377846],[32.001553,-106.002708],[32.004268999999994,-104.921799],[32.003151,-104.850563],[32.007278,-104.018814],[32.005889999999994,-103.980896],[32.00610399999999,-103.728973],[32.004154,-103.332092],[32.001900000000006,-103.057968],[32.084995000000006,-103.055191],[32.515429999999995,-103.059547],[32.95353299999999,-103.048836],[33.377728000000005,-103.042603],[33.565742,-103.038239],[33.826088,-103.032761],[34.307743,-103.029144],[34.745266,-103.022156],[34.964718000000005,-103.02475].................................................
..............................................................................................................................................................................
[26.077720999999997,-97.171799],[26.071920000000006,-97.179337],[26.250541999999996,-97.208916],[26.348551,-97.226311],[26.419303999999997,-97.251251],[26.478904999999997,-97.26725],[26.539963,-97.278549],[26.601022999999998,-97.301132]]]]},"geometry_name":"the_geom","properties":{"STATE_NAME":"Texas","STATE_FIPS":"48","SUB_REGION":"W
S Cen","STATE_ABBR":"TX","LAND_KM":688219.07,"WATER_KM":17337.549,"PERSONS":1.712202E7,"FAMILIES":4377106,"HOUSHOLD":6115966,"MALE":8433346.00000001,"FEMALE":8688674,"WORKERS":6192585,"DRVALONE":5860490,"CARPOOL":1142908,"PUBTRANS":168814,"EMPLOYED":7687338,"UNEMPLOY":590269,"SERVICE":2139266,"MANUAL":1042397,"P_MALE":0.493,"P_FEMALE":0.507,"SAMP_POP":2487642}}],"crs":{"type":"EPSG","properties":{"code":"4326"}},"bbox":[25.845197999999996,-106.649513,36.493877,-93.507217]}
--
Travis K.
Toronto, Canada
------------------------------------------------------------
"She knows there's no success like failure
and that failure's no success at all."
-Bob Dylan-
------------------------------------------------------------