How to create many (8.000+) polygons as fast as possible?

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
neuholger

How to create many (8.000+) polygons as fast as possible?

Post by neuholger »

Hi,

I have a problem in creating about 8.000 polygons for a google map.
Does anybody have some experience with such a problem?

I work normally with Ruby and RMagick, but I could take ImageMagick as well. So I hope that this forum could help me with my question. The coordinates for the polygons came from a database server.

I have tested my application with 20 Polygons and it works well. But more than 500 take about 20 seconds... And finally I have to handle more than 8.000 Polygons...

I have already increased my server with up to 3GB Ram, but the drawing process still tooks too long.
Any ideas?

Big thanks in advance for any help,
neuholger
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: How to create many (8.000+) polygons as fast as possible?

Post by magick »

Fast polygons, no problem. Generate an SVG file and use rsvg to render it. The ImageMagick renderer is not known for speed but for the quality of the result. The anti-aliasing is generally superior to most other applications.
neuholger

Re: How to create many (8.000+) polygons as fast as possible?

Post by neuholger »

Thanks a lot!
I will post my feedback for all others, when I have finished the work...

Cheers,
neuholger
neuholger

Re: How to create many (8.000+) polygons as fast as possible?

Post by neuholger »

Wow!
RSVG is really my personal solution!!!

We have figured out how to convert the latitude longitude coordinates from our database into a valid SVG format. And with RSVG it's simple and very fast to convert into any other format like PNG or JPEG.

Again... Thanks a lot!
neuholger
Post Reply