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

Exit during forward projection of shapefile extent #175

Open
mapsam opened this issue Nov 16, 2017 · 2 comments
Open

Exit during forward projection of shapefile extent #175

mapsam opened this issue Nov 16, 2017 · 2 comments

Comments

@mapsam
Copy link
Contributor

mapsam commented Nov 16, 2017

If a shapefile has some sort of invalid projection, it isn't able to forward project the extent value.

extent = transform.forward(extent);
and the process bails out. Let's try/catch this to ensure the file is reprojectable.

cc @GretaCB @millzpaugh

@mapsam mapsam changed the title Exit during forward projection of shapefile Exit during forward projection of shapefile extent Nov 16, 2017
@GretaCB
Copy link
Contributor

GretaCB commented Nov 16, 2017

@mapsam Good catch. Also, what do you mean by "forward project"?

@mapsam
Copy link
Contributor Author

mapsam commented Nov 16, 2017

From @flippmoke - here's what forward/backward mean in mapnik terms

Projection A;
Projection B;

Transformer T(A, B);

T.forward(data); // A to B of data

T.backward(data); // B to A of data

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

No branches or pull requests

2 participants