Re: [OpenMap Users] mapTile and projected tiles

From: Don Dietrick <dfdietrick_at_gmail.com>
Date: Fri, 8 Apr 2011 18:11:50 -0400

Hi Tore,

You should be able to do it with a lot of unchanged code. Use the
com.bbn.openmap.layer.imageTile.MapTileLayer, and assign it the
com.bbn.openmap.dataAccess.mapTile.ServerMapTileFactory.

The two classes you might have to override/implement are a
MapTileCoordinateTransform that knows how to translate lat/lon to tile
x, y coordinates, and a ZoomLevelInfo object that knows how to format
the tile name/request for the server.

You might have to override the
ServerMapTileFactory.createOMGraphicFromBufferedImage method, since
the default assumes that the tile is in the Mercator projection and
uses OMScalingRasters when the map is in Mercator, and OMWarpingImages
when the projection is different.

Hope this helps,

Don


On Fri, Apr 8, 2011 at 5:12 PM, Tore Halset <halset_at_pvv.ntnu.no> wrote:
> Hello.
>
> I have access to a tile server that uses a fixed UTM zone - not the normal mercator tiles. I want to display those tiles in an OpenMap layer and it should be able to reproject to the Projection choosen by the OpenMap user. It such an operation supported by the mapTile package? Where should I start?
>
> Regards,
>  - Tore.
>
> --
> [To unsubscribe to this list send an email to "majdart_at_bbn.com"
> with the following text in the BODY of the message "unsubscribe openmap-users"]
>

--
[To unsubscribe to this list send an email to "majdart_at_bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Fri Apr 08 2011 - 18:13:09 EDT

This archive was generated by hypermail 2.3.0 : Tue Mar 28 2017 - 23:25:10 EDT