Revision 4917
trunk/extensions/extWMS/.project | ||
---|---|---|
10 | 10 |
<arguments> |
11 | 11 |
</arguments> |
12 | 12 |
</buildCommand> |
13 |
<buildCommand> |
|
14 |
<name>org.eclipse.ve.java.core.vebuilder</name> |
|
15 |
<arguments> |
|
16 |
</arguments> |
|
17 |
</buildCommand> |
|
18 | 13 |
</buildSpec> |
19 | 14 |
<natures> |
20 | 15 |
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature> |
trunk/extensions/extWMS/config/text.properties | ||
---|---|---|
9 | 9 |
add=A\u00F1adir |
10 | 10 |
address=Direcci\u00F3n |
11 | 11 |
address_type=Tipo de direcci\u00F3n |
12 |
advanced=Avanzada |
|
13 |
advanced_settings=Opciones avanzadas |
|
12 | 14 |
ancho_alto=Ancho X Alto |
13 | 15 |
anterior=Anterior |
14 | 16 |
apply=Aplicar |
15 | 17 |
bands=Bandas |
18 |
browse=Examinar |
|
16 | 19 |
cancel=Cancelar |
17 | 20 |
cannotReproject=No se puede reproyectar este sistema de coordenadas |
18 | 21 |
cant_connect=No ha sido posible realizar la conexi\u00F3n con el WMS |
... | ... | |
30 | 33 |
country=Pais |
31 | 34 |
covered_extension=Extensi\u00F3n |
32 | 35 |
description=Descripci\u00F3n |
36 |
description_URL=URL descripci\u00F3n |
|
33 | 37 |
desde=Desde |
34 | 38 |
dimension=Dimensi\u00F3n |
35 | 39 |
dimensiones=Dimensiones |
36 | 40 |
disagregate_layers=Conservar estructura de capas |
37 | 41 |
e-mail=E-mail |
38 | 42 |
eliminar_extremos=Eliminar Extremos |
43 |
error=Error |
|
39 | 44 |
error_writting_file=Error escribiendo el archivo |
40 | 45 |
estilos=Estilos |
41 | 46 |
extents_no_coincidentes=El extent de la imagen seleccionada no coincide con la imagen de origen. |
42 | 47 |
fax=Fax |
43 | 48 |
fichero_existe=El fichero seleccionado ya existe como banda de la capa |
49 |
file_name=Archivo |
|
50 |
file_version=Versi\u00F3n del fichero |
|
44 | 51 |
fit_WMS_layer=Ajustar capa WMS |
45 | 52 |
format=Formato |
46 | 53 |
formatos=Formatos |
... | ... | |
49 | 56 |
html_in_a_new_view=<HTML>Crea una vista nueva en el proyecto. La nueva vista contendr\u00E1 todas las capas definidas por el fichero.</HTML> |
50 | 57 |
html_in_other_view=<HTML>A\u00F1ade las capas en la vista que especifique de la lista siguiente:</HTML> |
51 | 58 |
html_in_the_current_view=<HTML>A\u00F1ade las capas definidas en el fichero a la vista activa.</HTML> |
59 |
id=ID |
|
52 | 60 |
in=in |
53 | 61 |
info=Informaci\u00F3n |
54 | 62 |
interval=Intervalo |
55 | 63 |
intervalo=Intervalo |
56 | 64 |
introduzca_intervalo_deseado=Introduzca el intervalo deseado |
65 |
is_required=es obligatorio |
|
66 |
keywords=Palabras clave |
|
57 | 67 |
layer_abstract=Resumen |
58 | 68 |
layer_name=Nombre de la capa |
59 | 69 |
layer_title=T\u00EDtulo de la capa |
60 | 70 |
layers_in_other_view=Capas en la vista que yo elija |
61 | 71 |
layers_in_the_current_view=Capas en la vista actual |
62 | 72 |
lineal_directo=Lineal Directo |
73 |
logo_URL=URL Logotipo |
|
63 | 74 |
map_context_file_error=Error en el archivo Web Map Context |
64 | 75 |
map_size_in_pixels=Tama\u00F1o del mapa (en p\u00EDxeles) |
65 | 76 |
move_layer_down=Mover abajo |
... | ... | |
67 | 78 |
muestra=Muestra |
68 | 79 |
multiple_value=Valor m\u00FAltiple |
69 | 80 |
multiples_intervalos=M\u00FAltiples Intervalos |
81 |
must_specify_a_file=Debe especificar un fichero de destino. |
|
70 | 82 |
name=Nombre |
71 | 83 |
none_selected=Ninguno seleccionado |
72 | 84 |
not_available=No disponible |
... | ... | |
75 | 87 |
ok=Aceptar |
76 | 88 |
opacidad=Opacidad |
77 | 89 |
open_layers_as=Abrir las capas como |
90 |
options=Opciones |
|
78 | 91 |
period=Periodo |
79 | 92 |
postcode=C\u00F3digo postal |
80 | 93 |
properties=Propiedades |
... | ... | |
108 | 121 |
state_or_province=Estado/Provincia |
109 | 122 |
style=Estilo |
110 | 123 |
telephone=Tel\u00E9fono |
124 |
time=TIEMPO |
|
111 | 125 |
tipo_dato=Tipo de Dato |
126 |
title=T\u00EDtulo |
|
112 | 127 |
to=Hasta |
113 | 128 |
transparencia=Transparencia |
114 | 129 |
unknown_response_format=Formato de respuesta desconocido |
130 |
unsupported_map_context_version=versi\u00F3n de Web Map Context no soportada |
|
131 |
unsupported_version=Versi\u00F3n no soportada |
|
115 | 132 |
usar_rango=Usa un rango |
116 | 133 |
use_custom_size=Tama\u00F1o personalizado |
117 | 134 |
use_view_size=Tama\u00F1o de la vista |
118 | 135 |
valor_pixel=Valor de pixel |
119 | 136 |
value=Valor |
137 |
version=Versi\u00F3n |
|
120 | 138 |
version_conflict=Conflicto de versiones |
139 |
view=Vista |
|
140 |
web_map_context_settings=Propiedades Web Map Context |
|
121 | 141 |
width=Anchura |
122 | 142 |
wms_not_queryable=Este servidor no acepta peticiones de este tipo |
123 | 143 |
wms_properties=Propiedades WMS |
... | ... | |
127 | 147 |
xmin=X m\u00EDnima |
128 | 148 |
ymax=Y m\u00E1xima |
129 | 149 |
ymin=Y m\u00EDnima |
130 |
title=T?tulo |
|
131 |
id=ID |
|
132 |
version=Versi?n |
|
133 |
file_name=Archivo |
|
134 |
browse=Examinar |
|
135 |
advanced=Avanzada |
|
136 |
keywords=Palabras clave |
|
137 |
description_URL=URL descripci?n |
|
138 |
logo_URL=URL Logotipo |
|
139 |
advanced_settings=Opciones avanzadas |
|
140 |
web_map_context_settings=Propiedades Web Map Context |
|
141 |
options=Opciones |
trunk/extensions/extWMS/config/text_en.properties | ||
---|---|---|
9 | 9 |
add=Add |
10 | 10 |
address=Address |
11 | 11 |
address_type=Address type |
12 |
advanced=Advanced |
|
13 |
advanced_settings=Advanced options |
|
12 | 14 |
ancho_alto=Wide X Height |
13 | 15 |
anterior=Previous |
14 | 16 |
apply=Apply |
15 | 17 |
bands=Bands |
18 |
browse=Browse |
|
16 | 19 |
cancel=Cancel |
17 | 20 |
cannotReproject=Cannot reproject this coordinate system |
18 | 21 |
cant_connect=Cannot connect to WMS |
... | ... | |
30 | 33 |
country=Country |
31 | 34 |
covered_extension=Covered Extension |
32 | 35 |
description=Description |
36 |
description_URL=Description URL |
|
33 | 37 |
desde=From |
34 | 38 |
dimension=Dimension |
35 | 39 |
dimensiones=Dimensions |
36 | 40 |
disagregate_layers=Maintain layer structure |
37 | 41 |
e-mail=E-mail |
38 | 42 |
eliminar_extremos=Remove edges |
43 |
error=Error |
|
39 | 44 |
error_writting_file=Error writting file |
40 | 45 |
estilos=Styles |
41 | 46 |
extents_no_coincidentes=Extent of the selected image does not match with the origin image. |
42 | 47 |
fax=Fax |
43 | 48 |
fichero_existe=Selected file already exists as layer band |
49 |
file_name=File |
|
50 |
file_version=File version |
|
44 | 51 |
fit_WMS_layer=Config WMS Layer |
45 | 52 |
format=Format |
46 | 53 |
formatos=Formats |
... | ... | |
49 | 56 |
html_in_a_new_view=<HTML>Creates a new view into the project. The new view will contain all the layers defined in the file.</HTML> |
50 | 57 |
html_in_other_view=<HTML>Adds the layers to the selected view in the list.</HTML> |
51 | 58 |
html_in_the_current_view=<HTML>Adds the layers defined in the file to the current active view.</HTML> |
59 |
id=ID |
|
52 | 60 |
in=in |
53 | 61 |
info=Info |
54 | 62 |
interval=Interval |
55 | 63 |
intervalo=Interval |
56 | 64 |
introduzca_intervalo_deseado=Introduce desired interval |
65 |
is_required=is required |
|
66 |
keywords=Keywords |
|
57 | 67 |
layer_abstract=Abstract |
58 | 68 |
layer_name=Layer name |
59 | 69 |
layer_title=Layer title |
60 | 70 |
layers_in_other_view=Layers in other view |
61 | 71 |
layers_in_the_current_view=Layers in the current view |
62 | 72 |
lineal_directo=Direct Linear |
73 |
logo_URL=Logo URL |
|
63 | 74 |
map_context_file_error=Web Map Context file error |
64 | 75 |
map_size_in_pixels=Map size (in pixels) |
65 | 76 |
move_layer_down=Move down |
... | ... | |
67 | 78 |
muestra=Sample |
68 | 79 |
multiple_value=Multiple value |
69 | 80 |
multiples_intervalos=Multiple Intervals |
81 |
must_specify_a_file=You must specify a target file. |
|
70 | 82 |
name=Name |
71 | 83 |
none_selected=None selected |
72 | 84 |
not_available=Not available |
... | ... | |
75 | 87 |
ok=Ok |
76 | 88 |
opacidad=Opacity |
77 | 89 |
open_layers_as=Open layers as |
90 |
options=Options |
|
78 | 91 |
period=Period |
79 | 92 |
postcode=Postcode |
80 | 93 |
properties=Properties |
... | ... | |
108 | 121 |
state_or_province=State/Province |
109 | 122 |
style=Style |
110 | 123 |
telephone=Telephone |
124 |
time=TIME |
|
111 | 125 |
tipo_dato=Data type |
126 |
title=Title |
|
112 | 127 |
to=To |
113 | 128 |
transparencia=Transparency |
114 | 129 |
unknown_response_format=Unkown response format |
130 |
unsupported_map_context_version=unsupported Web Map Context version. |
|
131 |
unsupported_version=Unsupported version |
|
115 | 132 |
usar_rango=Range in use |
116 | 133 |
use_custom_size=Custom size |
117 | 134 |
use_view_size=View size |
118 | 135 |
valor_pixel=Pixel value |
119 | 136 |
value=Value |
137 |
version=Version |
|
120 | 138 |
version_conflict=Version conflict |
139 |
view=View |
|
140 |
web_map_context_settings=Web Map Context properties |
|
121 | 141 |
width=Width |
122 | 142 |
wms_not_queryable=This server is not queryable |
123 | 143 |
wms_properties=WMS Properties |
... | ... | |
127 | 147 |
xmin=Minimum X |
128 | 148 |
ymax=Maximum Y |
129 | 149 |
ymin=Minimum Y |
130 |
title=Title |
|
131 |
id=ID |
|
132 |
version=Version |
|
133 |
file_name=File |
|
134 |
browse=Browse |
|
135 |
advanced=Advanced |
|
136 |
keywords=Keywords |
|
137 |
description_URL=Description URL |
|
138 |
logo_URL=Logo URL |
|
139 |
advanced_settings=Advanced options |
|
140 |
web_map_context_settings=Web Map Context properties |
|
141 |
options=Options |
trunk/extensions/extWMS/config/text_ca.properties | ||
---|---|---|
9 | 9 |
add=Afegir |
10 | 10 |
address=Adre\u00E7a |
11 | 11 |
address_type=Tipus d\u0092adre\u00E7a |
12 |
advanced=Avan\u00E7at |
|
13 |
advanced_settings=Opcions avan\u00E7adas |
|
12 | 14 |
ancho_alto=Ampl\u00E0ria X Al\u00E7\u00E0ria |
13 | 15 |
anterior=Anterior |
14 | 16 |
apply=Aplicar |
15 | 17 |
bands=Bandes |
18 |
browse=Examinar |
|
16 | 19 |
cancel=Cancel\u00B7lar |
17 | 20 |
cannotReproject=No es pot reprojectar aquest sistema de refer\u00E8ncia |
18 | 21 |
cant_connect=No ha sigut possible realitzar la connexi\u00F3 al WMS |
... | ... | |
30 | 33 |
country=Pa\u00EDs |
31 | 34 |
covered_extension=Extensi\u00F3 |
32 | 35 |
description=Descripci\u00F3 |
36 |
description_URL=URL descripci\u00F3 |
|
33 | 37 |
desde=Des de |
34 | 38 |
dimension=Dimensi\u00F3 |
35 | 39 |
dimensiones=Dimensions |
36 | 40 |
disagregate_layers=Conservar estructura de capes |
37 | 41 |
e-mail=E-mail |
38 | 42 |
eliminar_extremos=Eliminar extrems |
43 |
error=Error |
|
39 | 44 |
error_writting_file=Error escribint el fitxer |
40 | 45 |
estilos=Estils |
41 | 46 |
extents_no_coincidentes=L\u0092extensi\u00F3 de la imatge seleccionada no coincidix amb la imatge d\u0092origen. |
42 | 47 |
fax=Fax |
43 | 48 |
fichero_existe=El fitxer seleccionat ja existix com a banda de la capa |
49 |
file_name=Arxiu |
|
50 |
file_version=Versi\u00F3 del fitxer |
|
44 | 51 |
fit_WMS_layer=Ajustar capa WMS |
45 | 52 |
format=Format |
46 | 53 |
formatos=Formats |
... | ... | |
49 | 56 |
html_in_a_new_view=<HTML>Crea una vista nova al projecte. La nova vista contindr\u00E0 totes les capes definides pel fitxer.</HTML> |
50 | 57 |
html_in_other_view=<HTML>Afegeix les capes a la vista que especifique de les de la llista seg\u00FCent.</HTML> |
51 | 58 |
html_in_the_current_view=<HTML>Afegeix les capes definides pel fitxer a la actual vista activa.</HTML> |
59 |
id=ID |
|
52 | 60 |
in=en |
53 | 61 |
info=Informaci\u00F3 |
54 | 62 |
interval=Interval |
55 | 63 |
intervalo=Interval |
56 | 64 |
introduzca_intervalo_deseado=Introduisca l\u0092interval desitjat |
65 |
is_required=\u00E9s obligatori |
|
66 |
keywords=Paraules clau |
|
57 | 67 |
layer_abstract=Resum |
58 | 68 |
layer_name=Nom de la capa |
59 | 69 |
layer_title=T\u00EDtol de la capa |
60 | 70 |
layers_in_other_view=Capes la vista que jo trie |
61 | 71 |
layers_in_the_current_view=Capes en la vista actual |
62 | 72 |
lineal_directo=Linial Directe |
73 |
logo_URL=URL Logotip |
|
63 | 74 |
map_context_file_error=Error al fitxer Web Map Context |
64 | 75 |
map_size_in_pixels=Tamany del mapa (en p\u00EDxels) |
65 | 76 |
move_layer_down=Moure avall |
... | ... | |
67 | 78 |
muestra=Mostra |
68 | 79 |
multiple_value=Valor m\u00FAltiple |
69 | 80 |
multiples_intervalos=M\u00FAltiples Intervals |
81 |
must_specify_a_file=Ha d\u0092especificar un fitxer de destinaci\u00F3. |
|
70 | 82 |
name=Nom |
71 | 83 |
none_selected=Cap seleccionat |
72 | 84 |
not_available=No disponible |
... | ... | |
75 | 87 |
ok=Acceptar |
76 | 88 |
opacidad=Opacitat |
77 | 89 |
open_layers_as=Obrir les capes com a |
90 |
options=Opcions |
|
78 | 91 |
period=Periode |
79 | 92 |
postcode=Codi postal |
80 | 93 |
properties=Propietats |
... | ... | |
108 | 121 |
state_or_province=Estat/Prov\u00EDncia |
109 | 122 |
style=Estil |
110 | 123 |
telephone=Tel\u00E8fon |
124 |
time=TEMPS |
|
111 | 125 |
tipo_dato=Tipus de dada |
126 |
title=T\u00EDtol |
|
112 | 127 |
to=Fins a |
113 | 128 |
transparencia=Transpar\u00E8ncia |
114 | 129 |
unknown_response_format=Format de resposta desconegut |
130 |
unsupported_map_context_version=versi\u00F3 de Web Map Context no suportada |
|
131 |
unsupported_version=Versi\u00F3 no suportada |
|
115 | 132 |
usar_rango=Useu un rang |
116 | 133 |
use_custom_size=Tamany personalitzat |
117 | 134 |
use_view_size=Tamany de la vista |
118 | 135 |
valor_pixel=Valor de pixel |
119 | 136 |
value=Valor |
137 |
version=Versi\u00F3 |
|
120 | 138 |
version_conflict=Conflicte de versions |
139 |
view=Vista |
|
140 |
web_map_context_settings=Propietats Web Map Context |
|
121 | 141 |
width=Ampl\u00E0ria |
122 | 142 |
wms_not_queryable=Aquest servidor no accepta peticions d\u0092aquest tipus |
123 | 143 |
wms_properties=Propietats WMS |
... | ... | |
128 | 148 |
xmin=X m\u00EDnima |
129 | 149 |
ymax=Y m\u00E0xima |
130 | 150 |
ymin=Y m\u00EDnima |
131 |
title=T?tol |
|
132 |
id=ID |
|
133 |
version=Versi? |
|
134 |
file_name=Arxiu |
|
135 |
browse=Examinar |
|
136 |
advanced=Avan?at |
|
137 |
keywords=Paraules clau |
|
138 |
description_URL=URL descripci? |
|
139 |
logo_URL=URL Logotip |
|
140 |
advanced_settings=Opcions avan?adas |
|
141 |
web_map_context_settings=Propietats Web Map Context |
|
142 |
options=Opcions |
trunk/extensions/extWMS/src/com/iver/cit/gvsig/webmapcontext/WebMapContext.java | ||
---|---|---|
43 | 43 |
* |
44 | 44 |
* $Id$ |
45 | 45 |
* $Log$ |
46 |
* Revision 1.4 2006-04-21 10:27:32 jaume |
|
46 |
* Revision 1.5 2006-04-21 11:02:25 jaume |
|
47 |
* few translations |
|
48 |
* |
|
49 |
* Revision 1.4 2006/04/21 10:27:32 jaume |
|
47 | 50 |
* exporting now supported |
48 | 51 |
* |
49 | 52 |
* Revision 1.3 2006/04/20 17:11:54 jaume |
... | ... | |
465 | 468 |
layer.setQueryable(queryable!=null && queryable.equals("1")); |
466 | 469 |
|
467 | 470 |
String hidden = parser.getAttributeValue("", WebMapContextTags.HIDDEN); |
468 |
layer.setVisible(hidden!=null && hidden.equals("1"));
|
|
471 |
layer.setVisible(hidden!=null && !hidden.equals("1") && hidden.toLowerCase().equals("true"));
|
|
469 | 472 |
int tag = parser.next(); |
470 | 473 |
while (!end) { |
471 | 474 |
switch(tag) { |
trunk/extensions/extWMS/src/com/iver/cit/gvsig/fmap/layers/FLyrWMS.java | ||
---|---|---|
1257 | 1257 |
* @return String containing the xml. |
1258 | 1258 |
* @throws UnsupportedVersionException |
1259 | 1259 |
*/ |
1260 |
public String toMapContext(String version) {
|
|
1260 |
public String toMapContext(String mapContextVersion) {
|
|
1261 | 1261 |
XmlBuilder xml = new XmlBuilder(); |
1262 | 1262 |
FMapWMSDriver drv; |
1263 | 1263 |
try { |
... | ... | |
1268 | 1268 |
String[] layerNames = getLayerQuery().split(","); |
1269 | 1269 |
for (int i = 0; i < layerNames.length; i++) { |
1270 | 1270 |
WMSLayerNode layer = drv.getLayer(layerNames[i]); |
1271 |
HashMap xmlAttrs = new HashMap(); |
|
1272 |
|
|
1271 | 1273 |
// <Layer> |
1274 |
xmlAttrs.put(WebMapContextTags.HIDDEN, !isVisible()+""); |
|
1275 |
xmlAttrs.put(WebMapContextTags.QUERYABLE, queryable+""); |
|
1272 | 1276 |
xml.openTag(WebMapContextTags.LAYER); |
1273 |
HashMap xmlAttrs = new HashMap(); |
|
1274 |
if (version.equals("1.1.0")) { |
|
1277 |
if (mapContextVersion.equals("1.1.0") || mapContextVersion.equals("1.0.0")) { |
|
1275 | 1278 |
// <Server> |
1276 | 1279 |
xmlAttrs.put(WebMapContextTags.SERVICE, WebMapContextTags.WMS); |
1277 | 1280 |
xmlAttrs.put(WebMapContextTags.VERSION, drv.getVersion()); |
... | ... | |
1353 | 1356 |
} |
1354 | 1357 |
} |
1355 | 1358 |
// </StyleList> |
1359 |
if (!mapContextVersion.equals("1.0.0")) { |
|
1356 | 1360 |
// <DimensionList> |
1357 | 1361 |
// <Dimension> |
1358 | 1362 |
// </Dimension> |
1359 | 1363 |
// </DimensionList> |
1360 |
|
|
1361 |
|
|
1362 |
} else if (version.equals("1.0.0")) { |
|
1364 |
} |
|
1363 | 1365 |
} else { |
1364 | 1366 |
xml.writeTag("ERROR", PluginServices.getText(this, "unsupported_map_context_version")); |
1365 | 1367 |
} |
Also available in: Unified diff