svn-gvsig-desktop / branches / v02_desarrollo / libraries / libCq CMS for java.old / src-dvp / org / cresques / io / AliaMapServerClient.java @ 1527
History | View | Annotate | Download (1.35 KB)
1 |
/*
|
---|---|
2 |
* Created on 16-dic-2004
|
3 |
*/
|
4 |
package org.cresques.io; |
5 |
|
6 |
import org.cresques.px.Extent; |
7 |
|
8 |
/**
|
9 |
* Consulta el servidor de mapas de Alia de Sevilla.
|
10 |
* (hecho por tracasa)
|
11 |
* ver http://sevilla.tracasa.es/navegar/?lang=cas
|
12 |
* Implementa una llamada del tipo:
|
13 |
* http://sevilla.tracasa.es/navegar/asp/mime.aspx?
|
14 |
* TIPO=0&Xmin=225916.666666667&Ymin=4133000&
|
15 |
* Xmax=254583.333333333&Ymax=4150000&PixAncho=430&PixAlto=255
|
16 |
* @author Luis W. Sevilla (sevilla_lui@gva.es)
|
17 |
*/
|
18 |
public class AliaMapServerClient extends MapServerClient { |
19 |
public final static int CAPA_ORTOFOTO_2000 = 0; |
20 |
public final static int CAPA_ORTOFOTO_7500 = 1; |
21 |
public final static int CAPA_GUIA_URBANA = 2; |
22 |
|
23 |
public final static String [] nomCapas = { |
24 |
"Ortofoto 1:2.000 (Noviembre 2.001)",
|
25 |
"Ortofoto 1:7.500 (Enero 1.999)",
|
26 |
"Guía Urbana (Marzo 1.999)"};
|
27 |
|
28 |
private int capas = CAPA_ORTOFOTO_2000; |
29 |
|
30 |
public AliaMapServerClient(String serverName) { |
31 |
super(serverName);
|
32 |
urlBase = "http://sevilla.tracasa.es/navegar/asp/mime.aspx";
|
33 |
setExtent(new Extent(225916.67, 4150000.0, 254583.3, 4133000.0)); |
34 |
setMaxViewSize(650,400); |
35 |
} |
36 |
|
37 |
public void setCapas(int c) { capas = c; } |
38 |
|
39 |
public String getUrl() { |
40 |
String url = urlBase+"?"+ |
41 |
"TIPO="+capas+"&"+ |
42 |
"Xmin="+xMin+"&"+ "Ymin="+yMax+"&"+ |
43 |
"Xmax="+xMax+"&"+ "Ymax="+yMin+"&"+ |
44 |
"PixAncho="+ancho+"&"+"PixAlto="+alto;; |
45 |
return url;
|
46 |
} |
47 |
} |