Package chunmap.raster

Examples of chunmap.raster.Tile


import chunmap.raster.Tile;
import chunmap.util.image.ImageUtil;

public class StaticGMConn extends GMConnection {
  public Image getImage(GMTile tile_) {
    Tile tile = (tile_.proxy == null) ? tile_ : tile_.proxy;

    String name = tile.toString();
    Image image = cache.find(name);
    if (image != null)
      return image;

    CPoint p=tile.getEnvelop().getCenter();
//    Mercator proj=new Mercator();
//    p=proj.getReverseTransform().convert(p);
   
    String url = getString(p.getX(),p.getY(), tile.z);
    try {
View Full Code Here


  protected ImageCache cache=new ImageCache();
  public String rootUrl="http://mt2.google.cn/vt/v=w2.116&hl=zh-CN&gl=cn";

    public Image getImage(GMTile tile_)
    {
        Tile tile = (tile_.proxy == null) ? tile_ : tile_.proxy;

        String name = tile.toString();
        Image image = cache.find(name);
        if (image != null) return image;

        String url=getString(tile.x, tile.y, tile.z);
        try
View Full Code Here

  public GetTileHelper(List<Layer> layers){
    this.layers=layers;
  }
 
  public Image getImage(int x,int y,int z){
    Tile tile=new Tile();
    tile.x=x;
    tile.y=y;
    tile.z=z;
    Image image=null;
    String name=tile.toString();
    //try get cache
    image=cache.find(name);
    if(image!=null){
      return image;
    }
View Full Code Here

TOP

Related Classes of chunmap.raster.Tile

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.