Map transform to other projection

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
guillaumech
Posts: 32
Joined: 2011-04-23T05:53:09-07:00
Authentication code: 8675308

Map transform to other projection

Post by guillaumech »

Hello everybody!

I've few questions, I try to transform an image for specific projection. I've a map of France (or any other countries), and I'd like transform this map in an other projection, as Mercator or Lamber. I seen "distorting" option, mainly "distor persective", but Mercator distortion follow a no linear distortion function, but this function : http://upload.wikimedia.org/math/8/5/f/ ... b286de.png
You just need the center coordinate of map for this function, and each points on the map.

I don't know if it's avaible and possible... Thank you very much for your future answers.
Guillaume.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Map transform to other projection

Post by snibgo »

Doubtless you could do it with "-fx" but it would be agonizingly slow. With a compiled program you can get virtually instant results from any projection to any other projection.
snibgo's IM pages: im.snibgo.com
guillaumech
Posts: 32
Joined: 2011-04-23T05:53:09-07:00
Authentication code: 8675308

Re: Map transform to other projection

Post by guillaumech »

Certainly, but I use already IM to build my map, with converting data in pgm format and after interpolate values to obtain a large map. The pgm format is linear so it's easy to resize it. Imagine a grid of data on country, linear data grid. I take all data to generate a color map with interpolate values between baseline data.
If I project data before interpolation, I will not obtain a linear grid...
Post Reply