一、ArcGIS 地图切片原理
详见上一篇文章内容。
二、java实现思路
第一步:根据输入的地图要素,获取该要素的外包矩形,计算该要素所在的行列号:
public java.awt.Rectangle getOverlappingCellsESRI(Rectangle rect) {
int col1, col2, row1, row2;
plottingMAXScale = 0.019035688046642241;
col1 = (int)Math.floor((rect.x1 - this.x1) / 256 / plottingMAXScale );
col2 = (int)Math.floor((rect.x2 - this.x1) / 256 / plottingMAXScale);
row1 = (int)Math.floor((Math.abs(rect.y1 - this.y1)) / 256 / plottingMAXScale);
row2 = (int)Math.floor((Math.abs(rect.y2 - this.y1)) / 256 / plottingMAXScale);
return new java.awt.Rectangle(col1,row2,col2-col1,row1-