Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to switch x/y coordinates #28

Closed
sindre opened this issue Jun 12, 2014 · 5 comments
Closed

Option to switch x/y coordinates #28

sindre opened this issue Jun 12, 2014 · 5 comments
Assignees
Labels

Comments

@sindre
Copy link

sindre commented Jun 12, 2014

Have a strange Problem with a GeoRSS File in EPSG:31256 coordinates, which are converted to EPSG:4326 in der wrong order. So the output GeoJSON coordinates are wrong. When I insert only the coordinates from the GeoRSS Tag they are converted correct.
An extra option to siwtch x/y coordinates could be a solution?

@wavded
Copy link
Owner

wavded commented Jun 13, 2014

As far as I can tell there is no underlying way to correct that problem, it seems you'd have to add a process to switch the coordinates to be correct before passing to ogre.

http://www.gdal.org/drv_georss.html

@sindre
Copy link
Author

sindre commented Jun 13, 2014

Would be a great Option to implement. A common Problem - see http://trac.osgeo.org/gdal/wiki/FAQVector#HowdoIflipcoordinateswhentheyarenotintheexpectedorder

@wavded
Copy link
Owner

wavded commented Jun 16, 2014

Good find, that doesn't seem to bad to implement. The majority of the changes will need to be made in the underlying ogr2ogr module, I started a case for it.

@johnjohndoe
Copy link

@sindre 👍

@wavded wavded self-assigned this Jun 18, 2014
@wavded
Copy link
Owner

wavded commented Jun 19, 2014

turns out this is already supported in Ogre, just use the strings provided in that article for the source and destination srs:

Source SRS:
+proj=latlong +datum=WGS84 +axis=neu +wktext

Target SRS:
+proj=latlong +datum=WGS84 +axis=enu +wktext

@wavded wavded closed this as completed Jun 19, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants