fix wrapping

we only need to wrap around in x direction with geographical projections. this adds a switch to decide how to wrap.

Signed-off-by: tgfrerer <tim@poniesandlight.co.uk>