Found it: the boundary envelope used for rendering must be set to googles
crs.

Cheers,
Kai

2012/9/6 Kai Hackemesser <[email protected]>

> Hello,
>
> I am trying to create google map tiles with geotools 8.1 and I took a lot
> of examples from the web as base of my code. The tiles look nice in all
> zoom levels, but at the levels 5 to 1 they seem to be delocated and
> stretched. To explain it graphical look at these five screenshots:
>
> http://s14.postimage.org/ew7tgdejh/zoom5.jpg
>
> http://s14.postimage.org/ir6m578bh/zoom4.jpg
>
> http://s14.postimage.org/s96d58tzx/zoom3.jpg
>
> http://s14.postimage.org/ooahm0pgd/zoom2.jpg
>
> http://s14.postimage.org/dnfcgzx7h/zoom1.jpg
>
> (As a context, this is radar imagery overlay on top of google satellite
> maptype)
>
> The piece of code that calculates the tile boundaries seems to be right
> for all tiles, after all it is almost a 100% copy from the web. The map
> content is defined in lat/lng shapes in a DefaultGeographicCRS.WGS84
> context, and I'm using GTRenderer to populate a 256x256px image giving the
> calculated lat/lng boundaries as envelope, WGS84 again. What aspect did I
> miss here?
>
> Cheers,
> Kai
>
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
GeoTools-GT2-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to