Actually after I read Björn's post I went and tried that. But the
polygon lines were still very ordinary, and as I'm generating the
tiles on the fly it required a lot more CPU power/memory as a
1024x1024 image is quite large (1MB vs 65K).

The SVG->PNG conversion option using Imagemagick's convert, seems the
best at the moment but I'm getting some image corruption in the top
left corner of each tile, plus some other image corruption which is
baffling. I thought it might be a memory issue when generating lots of
tiles at once, but it happens when I generate just 1 tile. I'll leave
that for later investigation.

Over the next few days I'll clean up my code, optimise it and put it
up in a working form on my webspace for you guys to check out. I'm
actually impressed at how easy it all is. I thought generating tiles
would be difficult, but given all the code out there that does a lot
of the simple tasks already, it was relatively easy. The hardest part
was getting my MBR intersect query to work properly :)

For those looking for SVG->PNG (or any other format) conversion, you
can start here:

http://nick.panharmonicon.com/rasterize/

I made some modifications, but it just had to do with setting a
working dir (the path to convert). Once I had done that, no drama.

On May 14, 2:50 pm, Vasily Ivanov <[email protected]> wrote:
> Hi Rob,
>
> I'm doing similar things now with Python and PIL. I generate smooth PNGs by
> creating bigger ones (4*256x4*256) and then resizing with antialised option
> switched on. It is bit longer process but I'm pre-generating all tiles
> anyway, so it is not a problem. Also as you've mentioned I do points
> clustering on smaller zoom levels which buys me some time on tiles
> generation.
>
> Hope that helps and good luck! ;-)
>
> Cheers,
> Vasily
>
> 2009/5/11 Rob Scriva <[email protected]>
>
>
>
> > G'day John,
>
> > Basically the zipmap tiles are similar to what I'm generating now.
> > Ultimately I'm looking to generate polygons that are similar to the
> > ones generated by the API itself. They're a lot prettier and smoother.
> > I can't seem to be able to generate anything like them using GD. It
> > may have to do with the version of GD that's compiled into PHP. I
> > tried to avoid Imagemagick initially because it's not compiled into my
> > version of PHP, and I'd rather see what else is available before going
> > that route.
>
> > I might try to generate some SVG's that i convert (or something) just
> > for fun.
>
> > Out of interest, are you generating polygons based on every point? Or
> > do you have subsets of points because at higher zoom levels (as you
> > approach 0) the amount of detail required isn't as much (which is what
> > I'm doing).
>
> > Cheers
> > Rob
>
> > PS your examples worked a treat for me after converting your perl
> > modules to PHP :) Just have to clean them up into a class or something
> > once i get it all working how I want it to :)
>
> > On May 11, 2:00 pm, "Maps.Huge.Info (Google Maps API Guru)"
> > <[email protected]> wrote:
> > > There's ImageMagick which works with PHP or Perl. It's a lot more
> > > complicated than GD but does a whole lot more.
>
> > > I'm a bit puzzled at why you find GD lacking. I've never run into a
> > > case building tiles where it fell short. Have you seen this page:
>
> > >http://www.zipmap.net
>
> > > It uses a tile layer that runs from zoom 5 to 17 and has very crisp
> > > and clear tiles.
>
> > > -John Coryat
>
> > >http://maps.huge.info
>
> > >http://www.usnaviguide.com
>
> > >http://www.zipmaps.net
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to