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

Check input CRSs #35

Open
josephholler opened this issue Jul 8, 2020 · 0 comments
Open

Check input CRSs #35

josephholler opened this issue Jul 8, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@josephholler
Copy link

We're working on code to check if all input CRSs are projected, and if all input CRSs are using the same projected coordinate system.

For example, we can add this code to Iso areas as contour from layer:

if analysisCrs.isGeographic(): raise QgsProcessingException('QNEAT3 algorithms are designed to work with projected coordinate systems. Please use a projected coordinate system (eg. UTM zones) instead of geographic coordinate systems (eg. WGS84)!') if analysisCrs != startPoints.sourceCrs(): raise QgsProcessingException('QNEAT3 algorithms require that all inputs to be the same projected coordinate reference system.')

This way, the QNEAT3 algorithms will stop and output an error rather than giving incorrect outputs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants