Add support for local projections

Forgotten contribution by @gbassiere !