wavded / ogre

ogr2ogr geojson-focused web client
http://ogre.adc4gis.com
MIT License
266 stars 79 forks source link

OGR guesses wrong #12

Closed Malo87 closed 10 years ago

Malo87 commented 11 years ago

Hi.. I've some shp files where ogr fails to guess the right projection. From the command line i can use the -a_srs flag and -t_srs flag to specify the source and target projection.. There will be a method to submit these flags from the POST params?

Thanks, Daniele

wavded commented 11 years ago

is your shapefile not including a valid .prj file? or do you have a sample that does not work?

I'm hesitant to allow custom ogr2ogr arguments to be passed in since we don't allow that anywhere (yet) and would need to do a bit of security checking. The pull you provided, although innocent looking, would allow anyone to run whatever shell commands they wanted on your server (not good)

https://github.com/Malo87/ogre/commit/c29693968af63dcd02905b02c259b62b1428e408#L0R108

Malo87 commented 11 years ago

Hi, i've added a sanitizing regexp. It would be enought? My shapefile is not including a prj file, and i receive this zip with this structure (without the archive).

Malo87 commented 11 years ago

I've consedered this system http://spatialreference.org/

wavded commented 10 years ago

reprojection is now part of Ogre, sorry this took so long :(