I'm using ogr2ogr to create geojson from a shapefile using the -lco WRITE_BBOX=YES argument. Everything is working great except the bound box (bbox) doesn't seem to be the traditional "left, bottom, right, top" EPSG coordinates. Here is an example:
This should be a district in Alabama - [-9847815.3009172, 3522127.8720985, 0,-9650071.0310152, 3741251.3025806]
I'm thinking that it's possibly WKT coords.(?)
I've searched all over for more information about this and was unable to find any information on it. How would I go about converting this to EPSG coordinates? Are there any libraries out there that can do this? Preferably in JavaScript or PHP.
Thanks
0in the middle, it looks like coordinates to me. What I'm confused about is what you mean by EPSG coordinates. EPSG, in a GIS environment, usually refers to a coordinate system, such as WGS84 (EPSG:4326) or UTM 30N (EPSG:32630) – MerseyViking May 17 '12 at 15:520is the minimum Z extent of the geometry, if it has 3 dimensions; otherwise just X and Y should be exported. So you should either get 4 values for 2D geometry, or 6 for 3D geometry - 5 is definitely wrong! I can see no bug in the code (ogrgeojsonwriter.cpp, 77-100), so maybe it's maximum Z is some value that the JSON driver baulks at, and so just ignores it. – MerseyViking May 17 '12 at 16:27