Page 1 of 1

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

Posted: 2008-10-06T04:37:22-07:00
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

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

Posted: 2008-10-06T06:19:31-07:00
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.

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

Posted: 2008-10-06T06:27:20-07:00
by neuholger
Thanks a lot!
I will post my feedback for all others, when I have finished the work...

Cheers,
neuholger

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

Posted: 2008-10-07T00:08:23-07:00
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