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

Handle Swiss coordinate system #224

Closed
ScottMcMichael opened this issue Jan 30, 2019 · 5 comments
Closed

Handle Swiss coordinate system #224

ScottMcMichael opened this issue Jan 30, 2019 · 5 comments
Labels

Comments

@ScottMcMichael
Copy link
Contributor

ASP has some problems when processing data with this projection:
"+proj=somerc +lat_0=46.95240555555556 +lon_0=7.439583333333333 +k_0=1 +x_0=600000 +y_0=200000 +ellps=bessel +towgs84=674.4,15.1,405.3,0,0,0,0 +units=m +no_defs "

Sample data is here: lunokhod2:/home/smcmich1/data/swiss_projection

@oleg-alexandrov
Copy link
Member

I narrowed this down to the get_wkt and set_wkt functions in the Cartography module in VW. The second function does not write exactly the thing that the first function reads. We read it in, parse it, form some objects, and then extract again the wkt string from that object. Things get lost on the way. I am sure the problem is not in GDAL or other external tools, as if I pass to GDAL the precise wkt string we read in, and not the thing we process, it can write it correctly.

@dpmayerUSGS
Copy link

Not a direct solution, but just note that support for this projection across EPSG, WKT, and GeoTIFF has always been a little shaky. Some notes here: http://geotiff.maptools.org/proj_list/swiss_oblique_cylindrical.html

@oleg-alexandrov
Copy link
Member

I made some progress here, at least now the PROJCS and GEOGCS fields are good, and +k_0 is parsed (sorry, internal details), but this is not enough. I think we don't capture the AUTHORITY right.

I'd suggest one reproject this DEM to WGS84 and some other projection, say stereographic, using gdalwarp. It may take us time to untangle this as my current work is non-ASP.

@adehecq
Copy link
Contributor

adehecq commented Feb 4, 2019 via email

@ScottMcMichael
Copy link
Contributor Author

I made a small change to VW so that the +towgs84 field is now recorded in our output files. Some of the authority fields are still missing but maybe it is good enough now?

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

4 participants