package map;
public class pro {
double lat,lon;
double latx,lonx;
int h=1463;
int w=2191;
int[][] memor=new int[h][w];
int[][] memog=new int[h][w];
int[][] memob=new int[h][w];
public static void main(String[] args) {
pro test=new pro();
}
pro(){
String urlx;
lat=136.900947;
lon=35.143257;
String g=geo(lat,lon);
System.out.println(g);
String str=g.substring(0,6);
String str1=g.substring(6,7);
String str2=g.substring(7,8);
int y1=Integer.parseInt(str1);
int x1=Integer.parseInt(str2);
System.out.println(y1+","+x1);
urlx="http://fgd.gsi.go.jp/view/25000/indexmap200k/fgd25000/"+str+".png";
System.out.println(urlx);
catchimg sub=new catchimg();
sub.makedata(urlx);
memor=sub.memor;
memog=sub.memog;
memob=sub.memob;
graph sub82=new graph();
sub82.memor=memor;
sub82.memog=memog;
sub82.memob=memob;
sub82.y1=y1;
sub82.x1=x1;
sub82.makedata();
}
String geo(double xs,double ys){
double x,y;
int x1,x2,x3;
int y1,y2,y3;
x=xs-100;
y=1.5*ys;
y1=(int)y;
x1=(int)x;
y=y-y1;
y=8*y;
x=x-x1;
x=8*x;
y2=(int)y;
x2=(int)x;
y=y-y2;
y=10*y;
x=x-x2;
x=10*x;
y3=(int)y;
x3=(int)x;
String str;
str=""+y1+""+x1+""+y2+""+x2+""+y3+""+x3;
return str;
}
}
最終更新:2014年04月30日 09:23