Revision 38459
tags/v2_0_0_Build_2049/applications/appGazetteer/pom.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
|
|
3 |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
|
4 |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 |
|
5 |
http://maven.apache.org/maven-v4_0_0.xsd"> |
|
6 |
|
|
7 |
<modelVersion>4.0.0</modelVersion> |
|
8 |
<artifactId>org.gvsig.gazetteer</artifactId> |
|
9 |
<packaging>jar</packaging> |
|
10 |
<version>2.0-SNAPSHOT</version> |
|
11 |
<name>appGazetteer</name> |
|
12 |
<description>Web Gazetteer Service client (geographic names locating)</description> |
|
13 |
<parent> |
|
14 |
<groupId>org.gvsig</groupId> |
|
15 |
<artifactId>gvsig-base-library-pom</artifactId> |
|
16 |
<version>2.0-SNAPSHOT</version> |
|
17 |
</parent> |
|
18 |
<dependencies> |
|
19 |
<dependency> |
|
20 |
<groupId>org.slf4j</groupId> |
|
21 |
<artifactId>slf4j-api</artifactId> |
|
22 |
<scope>compile</scope> |
|
23 |
</dependency> |
|
24 |
<dependency> |
|
25 |
<groupId>org.gvsig</groupId> |
|
26 |
<artifactId>org.gvsig.tools.lib</artifactId> |
|
27 |
<scope>compile</scope> |
|
28 |
</dependency> |
|
29 |
<dependency> |
|
30 |
<groupId>org.gvsig</groupId> |
|
31 |
<artifactId>org.gvsig.i18n</artifactId> |
|
32 |
<scope>compile</scope> |
|
33 |
</dependency> |
|
34 |
<dependency> |
|
35 |
<groupId>org.gvsig</groupId> |
|
36 |
<artifactId>org.gvsig.utils</artifactId> |
|
37 |
<scope>compile</scope> |
|
38 |
</dependency> |
|
39 |
<dependency> |
|
40 |
<groupId>org.gvsig</groupId> |
|
41 |
<artifactId>org.gvsig.remoteclient</artifactId> |
|
42 |
<scope>compile</scope> |
|
43 |
</dependency> |
|
44 |
<dependency> |
|
45 |
<groupId>org.gvsig</groupId> |
|
46 |
<artifactId>org.gvsig.catalog</artifactId> |
|
47 |
<scope>compile</scope> |
|
48 |
</dependency> |
|
49 |
<dependency> |
|
50 |
<groupId>org.gvsig</groupId> |
|
51 |
<artifactId>org.gvsig.gpe.extension</artifactId> |
|
52 |
<classifier>fmap</classifier> |
|
53 |
<version>2.0-SNAPSHOT</version> |
|
54 |
<scope>compile</scope> |
|
55 |
</dependency> |
|
56 |
<dependency> |
|
57 |
<groupId>org.gvsig</groupId> |
|
58 |
<artifactId>org.gvsig.compat</artifactId> |
|
59 |
<scope>compile</scope> |
|
60 |
</dependency> |
|
61 |
<dependency> |
|
62 |
<groupId>com.vividsolutions</groupId> |
|
63 |
<artifactId>jts</artifactId> |
|
64 |
<scope>compile</scope> |
|
65 |
</dependency> |
|
66 |
<dependency> |
|
67 |
<groupId>org.gvsig</groupId> |
|
68 |
<artifactId>org.gvsig.gpe.lib.api</artifactId> |
|
69 |
<scope>compile</scope> |
|
70 |
</dependency> |
|
71 |
<dependency> |
|
72 |
<groupId>org.gvsig</groupId> |
|
73 |
<artifactId>org.gvsig.gpe.lib.impl</artifactId> |
|
74 |
<scope>compile</scope> |
|
75 |
</dependency> |
|
76 |
<dependency> |
|
77 |
<groupId>org.geonames</groupId> |
|
78 |
<artifactId>geonames</artifactId> |
|
79 |
<classifier>java5</classifier> |
|
80 |
<scope>compile</scope> |
|
81 |
</dependency> |
|
82 |
<dependency> |
|
83 |
<groupId>com.vividsolutions</groupId> |
|
84 |
<artifactId>jtsio</artifactId> |
|
85 |
<scope>compile</scope> |
|
86 |
</dependency> |
|
87 |
<dependency> |
|
88 |
<groupId>org.gvsig</groupId> |
|
89 |
<artifactId>org.gvsig.xmlschema.lib.api</artifactId> |
|
90 |
<scope>compile</scope> |
|
91 |
</dependency> |
|
92 |
<dependency> |
|
93 |
<groupId>commons-httpclient</groupId> |
|
94 |
<artifactId>commons-httpclient</artifactId> |
|
95 |
<scope>compile</scope> |
|
96 |
</dependency> |
|
97 |
</dependencies> |
|
98 |
<properties> |
|
99 |
<build-dir>${basedir}/../build</build-dir> |
|
100 |
<eclipse.project.name>appGazetteer</eclipse.project.name> |
|
101 |
</properties> |
|
102 |
<build> |
|
103 |
<sourceDirectory>src</sourceDirectory> |
|
104 |
<testSourceDirectory>src-test</testSourceDirectory> |
|
105 |
<resources> |
|
106 |
<resource> |
|
107 |
<directory>src</directory> |
|
108 |
<includes> |
|
109 |
<include>**/*.gif</include> |
|
110 |
<include>**/*.png</include> |
|
111 |
<include>**/*.PNG</include> |
|
112 |
<include> **/*.bmp</include> |
|
113 |
<include> **/*.jpg</include> |
|
114 |
<include> **/*.jpeg</include> |
|
115 |
<include> **/*.properties</include> |
|
116 |
</includes> |
|
117 |
</resource> |
|
118 |
<resource> |
|
119 |
<directory>${basedir}/resources</directory> |
|
120 |
</resource> |
|
121 |
</resources> |
|
122 |
|
|
123 |
<!-- TODO: MAKE TESTS WORK AND REMOVE THIS OPTION --> |
|
124 |
<plugins> |
|
125 |
<plugin> |
|
126 |
<groupId>org.apache.maven.plugins</groupId> |
|
127 |
<artifactId>maven-surefire-plugin</artifactId> |
|
128 |
<configuration> |
|
129 |
<skipTests>true</skipTests> |
|
130 |
</configuration> |
|
131 |
</plugin> |
|
132 |
</plugins> |
|
133 |
|
|
134 |
</build> |
|
135 |
</project> |
|
0 | 136 |
tags/v2_0_0_Build_2049/applications/appGazetteer/resources/META-INF/services/org.gvsig.tools.library.Library | ||
---|---|---|
1 |
org.gvsig.gazetteer.GazetteerLibrary |
|
2 |
org.gvsig.gazetteer.impl.DefaultGazetteerLibrary |
tags/v2_0_0_Build_2049/applications/appGazetteer/text.properties | ||
---|---|---|
1 |
catalog_search=B\u00fasqueda de Geodatos |
|
2 |
gazetteer_search=Localizar por Nomencl\u00e1tor |
|
3 |
gazetteer_connect=Localizar por Nomencl\u00e1tor |
|
4 |
metadata_catalog=B\u00fasqueda de Geodatos - Conexi\u00f3n |
|
5 |
metadata_tree=\u00c1rbol del Metadato |
|
6 |
search_results=Resultados de la b\u00fasqueda |
|
7 |
resourceTypeColumn=Tipo |
|
8 |
resourceLinkColumn=Enlace |
|
9 |
resourceShowColumn=Ver |
|
10 |
concordancia=Concordancia |
|
11 |
exactSentence=Frase Exacta |
|
12 |
anyWord=Cualquier Palabra |
|
13 |
allWords=Todas las Palabras |
|
14 |
cathegoryAny=cualquiera |
|
15 |
cathegoryBiota=biota |
|
16 |
cathegoryBoundaries=boundaries |
|
17 |
cathegoryClimatologyMeteorologyAtmosphere=climatologyMeteorologyAtmosphere |
|
18 |
cathegoryEconomy=economy |
|
19 |
cathegoryElevation=elevation |
|
20 |
cathegoryEnvironment=environment |
|
21 |
cathegoryFarming=farming |
|
22 |
cathegoryGeoscientificInformation=geoscientificInformation |
|
23 |
cathegoryHealth=health |
|
24 |
cathegoryImageryBaseMapsEarthCover=imageryBaseMapsEarthCover |
|
25 |
cathegoryInlandWaters=inlandWaters |
|
26 |
cathegoryIntelligenceMilitary=intelligenceMilitary |
|
27 |
cathegoryLocation=location |
|
28 |
cathegoryOceans=oceans |
|
29 |
cathegoryPlanningCadastre=planningCadastre |
|
30 |
cathegorySociety=society |
|
31 |
cathegoryStructure=structure |
|
32 |
cathegoryTransportation=transportation |
|
33 |
cathegoryUtilitiesCommunication=utilitiesCommunication |
|
34 |
scaleAny=qualquiera |
|
35 |
scaleI=>1.000.000 |
|
36 |
scaleII=1.000.000 - 250.000 |
|
37 |
scaleIII=250.000 - 50.000 |
|
38 |
scaleIV=50.000 - 10.000 |
|
39 |
scaleV=10.000 - 5000 |
|
40 |
scaleVI=<5.000 |
|
41 |
scale=Escala |
|
42 |
provider=Proveedor |
|
43 |
from=De: |
|
44 |
to=A: |
|
45 |
upperCoordinates=Superiores |
|
46 |
lowerCoordinates=Inferiores |
|
47 |
ULX=ULX: |
|
48 |
ULY=ULY: |
|
49 |
BRX=BRX: |
|
50 |
BRY=BRY: |
|
51 |
abstract=Resumen |
|
52 |
coordinates=Coordenadas |
|
53 |
coordinatesEqual=igual |
|
54 |
coordinatesContains=contiene |
|
55 |
coordinatesEnclose=incluye |
|
56 |
coordinatesFullyOutsideOf=est\u00e1 totalmente fuera de |
|
57 |
title=Titulo |
|
58 |
restrictArea=Restringir el area de B\u00fasqueda |
|
59 |
protocolsGroup=Protocolos |
|
60 |
serverReply=Respuesta del servidor |
|
61 |
serverURL=Introduzca la direcci\u00f3n donde se encuentra el servidor de cat\u00e1logo |
|
62 |
serverURLCat=Introduzca la direcci\u00f3n donde se encuentra el servidor de nomencl\u00e1tor |
|
63 |
database=Nombre de la base de datos |
|
64 |
connectButton=Conectar |
|
65 |
searchButton=Buscar |
|
66 |
results=Resultados |
|
67 |
of=de |
|
68 |
description=Descripcion |
|
69 |
layer=A\u00f1adir Capa |
|
70 |
next=Siquiente |
|
71 |
last=Anterior |
|
72 |
close=Cerrar |
|
73 |
value=Valor |
|
74 |
attributes=Atributos |
|
75 |
keyWords=Palabras Clave |
|
76 |
cathegory=Categor\u00eda |
|
77 |
lastUpdateDate=Fecha de \u00faltima actualizaci\u00f3n |
|
78 |
purpose=Prop\u00f3sito |
|
79 |
errorServerNotFound=No se encuentra el servidor |
|
80 |
errorNotSupportedProtocol=El servidor no soporta el protocolo especificado |
|
81 |
errorNotSupportedCapabilities=Error al hacer un GetCapabilities.Esto puede ser debido a dos razones: O bien ha habido un error al intentar hacer la operaci\u00f3n, o bien el servidor no soporta el protocolo especificado |
|
82 |
errorNotParsedReply=Error al procesar la respuesta. Se ha encontrado el servidor, pero posiblemente no soporta el protocolo especificado |
|
83 |
name=Nombre |
|
84 |
resutsByPage=Resultados por p\u00e1gina |
|
85 |
type=Tipo |
|
86 |
localize=Localizar |
|
87 |
page=P\u00e1gina |
|
88 |
errorNotThesaurusSelected=El protocolo WFS no permite hacer b\u00fasquedas si no se elige un elemento del tesauro |
|
89 |
chooseAttribute=Elige un atributo para hacer la b\u00fasqueda |
|
90 |
errorGetRecords=Se ha producido un error al hacer el getRecords |
|
91 |
anyResult=La b\u00fasqueda no ha producido ning\u00fan resultado |
|
92 |
rootName=Ra\u00edz |
|
93 |
wcsColumn=Cobertura |
|
94 |
wmsColumn=Mapa |
|
95 |
wfsColumn=Feature |
|
96 |
postgisColumn=Postgis |
|
97 |
linkColumn=P\u00e1gina Web |
|
98 |
downloadColumn=Descarga |
|
99 |
errorNotCSWSupportedProtocol=Se ha encontrado el servidor, pero parece ser que no soporta el protocolo CS-W |
|
100 |
errorIsASRWServer=Es un servidor SRW! |
|
101 |
errorServerException=El servidor ha devuelto una excepci\u00f3n |
|
102 |
errorSOAPProtocol=Error en el protocolo SOAP |
|
103 |
errorFENotSupported=De momento solo se pueden hacer querys usando la codificaci\u00f3n FILTER ENCODING que no est\u00e1 soportada por el servidor |
|
104 |
mantainold=Eliminar las busquedas anteriores |
|
105 |
goto=Hacer un zoom a la b\u00fasqueda |
|
106 |
paint=Dibujar el resultado |
|
107 |
aspect=Configuracion de aspecto |
|
108 |
unknown=Desconocido |
|
109 |
cancelSearchButton=Cancelar |
|
110 |
wmsError=Ha ocurrido un error al cargar el mapa |
|
111 |
loadWMS=Carga de WMS |
|
112 |
wfsError=Ha ocurrido un error al cargar la feature |
|
113 |
wfsLoad=Carga de WFS |
|
114 |
wcsError=Ha ocurrido un error al cargar la cobertura |
|
115 |
wcsLoad=Carga de WCS |
|
116 |
postgisError=Ha ocurrido un error al cargar la base de datos |
|
117 |
postgisLoad=Carga de Postgis |
|
118 |
linkError=Ha ocurrido un error al cargar el enlace |
|
119 |
linkLoad=carga de un recurso web |
|
120 |
link=Enlace |
|
121 |
server=Servidor |
|
122 |
layer=Capa |
|
123 |
parameters=Par\u00e1metros |
|
124 |
pluginNotFound=No tienes ninguna extensi\u00f3n para cargar recursos de este tipo |
|
125 |
pluginNotFoundTitle=Carga de capas |
|
126 |
inteligentSearch=B\u00fasqueda inteligente |
|
127 |
inteligentSearchAscii=Todas las formas de la palabra |
|
128 |
reproyectar_aviso=La proyecci\u00F3n de la capa no es igual que la de la vista.\nAVISO\: Puede ser inexacto con algunas transformaciones.\nPor favor, lea la documentaci\u00F3n. |
|
129 |
reproyectar_pregunta=\u00BFDesea reproyectar? |
|
130 |
elementName=ElementName |
|
131 |
propertiesNameWindow=Ventana de propiedades |
tags/v2_0_0_Build_2049/applications/appGazetteer/src-test/org/gvsig/gazetteer/drivers/ExampleNewPanel.java | ||
---|---|---|
1 |
package org.gvsig.gazetteer.drivers; |
|
2 |
|
|
3 |
import java.util.Properties; |
|
4 |
|
|
5 |
import javax.swing.JLabel; |
|
6 |
import javax.swing.JTextField; |
|
7 |
|
|
8 |
import org.gvsig.catalog.ui.search.SearchAditionalPropertiesPanel; |
|
9 |
|
|
10 |
|
|
11 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana |
|
12 |
* |
|
13 |
* Copyright (C) 2004 IVER T.I. and Generalitat Valenciana. |
|
14 |
* |
|
15 |
* This program is free software; you can redistribute it and/or |
|
16 |
* modify it under the terms of the GNU General Public License |
|
17 |
* as published by the Free Software Foundation; either version 2 |
|
18 |
* of the License, or (at your option) any later version. |
|
19 |
* |
|
20 |
* This program is distributed in the hope that it will be useful, |
|
21 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
22 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
23 |
* GNU General Public License for more details. |
|
24 |
* |
|
25 |
* You should have received a copy of the GNU General Public License |
|
26 |
* along with this program; if not, write to the Free Software |
|
27 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA. |
|
28 |
* |
|
29 |
* For more information, contact: |
|
30 |
* |
|
31 |
* Generalitat Valenciana |
|
32 |
* Conselleria d'Infraestructures i Transport |
|
33 |
* Av. Blasco Ib??ez, 50 |
|
34 |
* 46010 VALENCIA |
|
35 |
* SPAIN |
|
36 |
* |
|
37 |
* +34 963862235 |
|
38 |
* gvsig@gva.es |
|
39 |
* www.gvsig.gva.es |
|
40 |
* |
|
41 |
* or |
|
42 |
* |
|
43 |
* IVER T.I. S.A |
|
44 |
* Salamanca 50 |
|
45 |
* 46005 Valencia |
|
46 |
* Spain |
|
47 |
* |
|
48 |
* +34 963163400 |
|
49 |
* dac@iver.es |
|
50 |
*/ |
|
51 |
/* CVS MESSAGES: |
|
52 |
* |
|
53 |
* $Id: ExampleNewPanel.java 537 2007-07-26 11:21:10 +0000 (Thu, 26 Jul 2007) jpiera $ |
|
54 |
* $Log$ |
|
55 |
* Revision 1.1.2.1 2007/07/13 12:00:35 jorpiell |
|
56 |
* Add the posibility to add a new panel |
|
57 |
* |
|
58 |
* |
|
59 |
*/ |
|
60 |
/** |
|
61 |
* @author Jorge Piera LLodr? (jorge.piera@iver.es) |
|
62 |
*/ |
|
63 |
public class ExampleNewPanel extends SearchAditionalPropertiesPanel{ |
|
64 |
JLabel label = null; |
|
65 |
JTextField text = null; |
|
66 |
|
|
67 |
public ExampleNewPanel(){ |
|
68 |
label = new JLabel(); |
|
69 |
text = new JTextField(); |
|
70 |
setLayout(new java.awt.BorderLayout()); |
|
71 |
label.setText("Label"); |
|
72 |
add(label, java.awt.BorderLayout.WEST); |
|
73 |
add(text, java.awt.BorderLayout.CENTER); |
|
74 |
} |
|
75 |
|
|
76 |
/* |
|
77 |
* (non-Javadoc) |
|
78 |
* @see es.gva.cit.gazetteer.ui.search.SearchAditionalPropertiesPanel#getProperties() |
|
79 |
*/ |
|
80 |
public Properties getProperties() { |
|
81 |
Properties properties = new Properties(); |
|
82 |
properties.put("PROP1", text.getText()); |
|
83 |
return properties; |
|
84 |
} |
|
85 |
|
|
86 |
} |
|
0 | 87 |
tags/v2_0_0_Build_2049/applications/appGazetteer/src-test/org/gvsig/gazetteer/drivers/ExampleNewDriver.java | ||
---|---|---|
1 |
package org.gvsig.gazetteer.drivers; |
|
2 |
|
|
3 |
import java.awt.geom.Point2D; |
|
4 |
import java.net.URI; |
|
5 |
|
|
6 |
import org.gvsig.catalog.drivers.DiscoveryServiceCapabilities; |
|
7 |
import org.gvsig.catalog.ui.search.SearchAditionalPropertiesPanel; |
|
8 |
import org.gvsig.gazetteer.querys.Feature; |
|
9 |
import org.gvsig.gazetteer.querys.GazetteerQuery; |
|
10 |
|
|
11 |
|
|
12 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana |
|
13 |
* |
|
14 |
* Copyright (C) 2004 IVER T.I. and Generalitat Valenciana. |
|
15 |
* |
|
16 |
* This program is free software; you can redistribute it and/or |
|
17 |
* modify it under the terms of the GNU General Public License |
|
18 |
* as published by the Free Software Foundation; either version 2 |
|
19 |
* of the License, or (at your option) any later version. |
|
20 |
* |
|
21 |
* This program is distributed in the hope that it will be useful, |
|
22 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
23 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
24 |
* GNU General Public License for more details. |
|
25 |
* |
|
26 |
* You should have received a copy of the GNU General Public License |
|
27 |
* along with this program; if not, write to the Free Software |
|
28 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA. |
|
29 |
* |
|
30 |
* For more information, contact: |
|
31 |
* |
|
32 |
* Generalitat Valenciana |
|
33 |
* Conselleria d'Infraestructures i Transport |
|
34 |
* Av. Blasco Ib??ez, 50 |
|
35 |
* 46010 VALENCIA |
|
36 |
* SPAIN |
|
37 |
* |
|
38 |
* +34 963862235 |
|
39 |
* gvsig@gva.es |
|
40 |
* www.gvsig.gva.es |
|
41 |
* |
|
42 |
* or |
|
43 |
* |
|
44 |
* IVER T.I. S.A |
|
45 |
* Salamanca 50 |
|
46 |
* 46005 Valencia |
|
47 |
* Spain |
|
48 |
* |
|
49 |
* +34 963163400 |
|
50 |
* dac@iver.es |
|
51 |
*/ |
|
52 |
/* CVS MESSAGES: |
|
53 |
* |
|
54 |
* $Id: ExampleNewDriver.java 537 2007-07-26 11:21:10 +0000 (Thu, 26 Jul 2007) jpiera $ |
|
55 |
* $Log$ |
|
56 |
* Revision 1.1.2.1 2007/07/13 12:00:35 jorpiell |
|
57 |
* Add the posibility to add a new panel |
|
58 |
* |
|
59 |
* |
|
60 |
*/ |
|
61 |
/** |
|
62 |
* @author Jorge Piera LLodr? (jorge.piera@iver.es) |
|
63 |
*/ |
|
64 |
public class ExampleNewDriver extends AbstractGazetteerServiceDriver { |
|
65 |
|
|
66 |
/* |
|
67 |
* (non-Javadoc) |
|
68 |
* @see es.gva.cit.catalogClient.drivers.IDiscoveryServiceDriver#getCapabilities(java.net.URI) |
|
69 |
*/ |
|
70 |
public DiscoveryServiceCapabilities getCapabilities(URI uri) { |
|
71 |
return new GazetteerCapabilities(); |
|
72 |
} |
|
73 |
|
|
74 |
/* |
|
75 |
* (non-Javadoc) |
|
76 |
* @see es.gva.cit.gazetteer.drivers.IGazetteerServiceDriver#getFeature(java.net.URI, es.gva.cit.gazetteer.querys.Query) |
|
77 |
*/ |
|
78 |
public Feature[] getFeature(URI uri, GazetteerQuery query) throws Exception { |
|
79 |
String prop = (String)query.getProperty("PROP1"); |
|
80 |
Feature[] features = new Feature[1]; |
|
81 |
features[0] = new Feature("1","Result 1","description 1",new Point2D.Double(0,0)); |
|
82 |
return features; |
|
83 |
} |
|
84 |
|
|
85 |
/* |
|
86 |
* (non-Javadoc) |
|
87 |
* @see es.gva.cit.gazetteer.drivers.IGazetteerServiceDriver#getServiceName() |
|
88 |
*/ |
|
89 |
public String getServiceName() { |
|
90 |
return "My service"; |
|
91 |
} |
|
92 |
|
|
93 |
/* |
|
94 |
* (non-Javadoc) |
|
95 |
* @see es.gva.cit.gazetteer.drivers.IGazetteerServiceDriver#getAditionalSearchPanel() |
|
96 |
*/ |
|
97 |
public SearchAditionalPropertiesPanel getAditionalSearchPanel(){ |
|
98 |
return new ExampleNewPanel(); |
|
99 |
} |
|
100 |
|
|
101 |
} |
|
0 | 102 |
tags/v2_0_0_Build_2049/applications/appGazetteer/src-test/org/gvsig/gazetteer/drivers/ExampleNewDriverTest.java | ||
---|---|---|
1 |
package org.gvsig.gazetteer.drivers; |
|
2 |
|
|
3 |
import javax.swing.UIManager; |
|
4 |
import javax.swing.UnsupportedLookAndFeelException; |
|
5 |
|
|
6 |
import org.gvsig.gazetteer.GazetteerLocator; |
|
7 |
import org.gvsig.gazetteer.ui.serverconnect.ServerConnectDialog; |
|
8 |
import org.gvsig.tools.library.impl.DefaultLibrariesInitializer; |
|
9 |
|
|
10 |
|
|
11 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana |
|
12 |
* |
|
13 |
* Copyright (C) 2004 IVER T.I. and Generalitat Valenciana. |
|
14 |
* |
|
15 |
* This program is free software; you can redistribute it and/or |
|
16 |
* modify it under the terms of the GNU General Public License |
|
17 |
* as published by the Free Software Foundation; either version 2 |
|
18 |
* of the License, or (at your option) any later version. |
|
19 |
* |
|
20 |
* This program is distributed in the hope that it will be useful, |
|
21 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
22 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
23 |
* GNU General Public License for more details. |
|
24 |
* |
|
25 |
* You should have received a copy of the GNU General Public License |
|
26 |
* along with this program; if not, write to the Free Software |
|
27 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA. |
|
28 |
* |
|
29 |
* For more information, contact: |
|
30 |
* |
|
31 |
* Generalitat Valenciana |
|
32 |
* Conselleria d'Infraestructures i Transport |
|
33 |
* Av. Blasco Ib??ez, 50 |
|
34 |
* 46010 VALENCIA |
|
35 |
* SPAIN |
|
36 |
* |
|
37 |
* +34 963862235 |
|
38 |
* gvsig@gva.es |
|
39 |
* www.gvsig.gva.es |
|
40 |
* |
|
41 |
* or |
|
42 |
* |
|
43 |
* IVER T.I. S.A |
|
44 |
* Salamanca 50 |
|
45 |
* 46005 Valencia |
|
46 |
* Spain |
|
47 |
* |
|
48 |
* +34 963163400 |
|
49 |
* dac@iver.es |
|
50 |
*/ |
|
51 |
/* CVS MESSAGES: |
|
52 |
* |
|
53 |
* $Id: ExampleNewDriverTest.java 512 2007-07-24 11:25:43 +0000 (Tue, 24 Jul 2007) jorpiell $ |
|
54 |
* $Log$ |
|
55 |
* Revision 1.1.2.2 2007/07/24 11:25:42 jorpiell |
|
56 |
* The registers has been refactorized |
|
57 |
* |
|
58 |
* Revision 1.1.2.1 2007/07/13 12:00:35 jorpiell |
|
59 |
* Add the posibility to add a new panel |
|
60 |
* |
|
61 |
* |
|
62 |
*/ |
|
63 |
/** |
|
64 |
* @author Jorge Piera LLodr? (jorge.piera@iver.es) |
|
65 |
*/ |
|
66 |
public class ExampleNewDriverTest { |
|
67 |
|
|
68 |
/** |
|
69 |
* @param args |
|
70 |
*/ |
|
71 |
public static void main(String[] args) { |
|
72 |
new DefaultLibrariesInitializer().fullInitialize(); |
|
73 |
|
|
74 |
GazetteerLocator.getGazetteerManager().register("example", ExampleNewDriver.class); |
|
75 |
//Get the currently installed look and feel |
|
76 |
UIManager.getLookAndFeel(); |
|
77 |
// Install a different look and feel; specifically, the Windows look and feel |
|
78 |
try { |
|
79 |
UIManager.setLookAndFeel( |
|
80 |
"com.sun.java.swing.plaf.windows.WindowsLookAndFeel"); |
|
81 |
} catch (InstantiationException e) { |
|
82 |
} catch (ClassNotFoundException e) { |
|
83 |
} catch (UnsupportedLookAndFeelException e) { |
|
84 |
} catch (IllegalAccessException e) { |
|
85 |
} |
|
86 |
|
|
87 |
new ServerConnectDialog(); |
|
88 |
} |
|
89 |
|
|
90 |
} |
|
0 | 91 |
tags/v2_0_0_Build_2049/applications/appGazetteer/src-test/org/gvsig/gazetteer/URIs.java | ||
---|---|---|
1 |
package org.gvsig.gazetteer; |
|
2 |
|
|
3 |
import java.net.URISyntaxException; |
|
4 |
|
|
5 |
|
|
6 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana |
|
7 |
* |
|
8 |
* Copyright (C) 2004 IVER T.I. and Generalitat Valenciana. |
|
9 |
* |
|
10 |
* This program is free software; you can redistribute it and/or |
|
11 |
* modify it under the terms of the GNU General Public License |
|
12 |
* as published by the Free Software Foundation; either version 2 |
|
13 |
* of the License, or (at your option) any later version. |
|
14 |
* |
|
15 |
* This program is distributed in the hope that it will be useful, |
|
16 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
17 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
18 |
* GNU General Public License for more details. |
|
19 |
* |
|
20 |
* You should have received a copy of the GNU General Public License |
|
21 |
* along with this program; if not, write to the Free Software |
|
22 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA. |
|
23 |
* |
|
24 |
* For more information, contact: |
|
25 |
* |
|
26 |
* Generalitat Valenciana |
|
27 |
* Conselleria d'Infraestructures i Transport |
|
28 |
* Av. Blasco Ib??ez, 50 |
|
29 |
* 46010 VALENCIA |
|
30 |
* SPAIN |
|
31 |
* |
|
32 |
* +34 963862235 |
|
33 |
* gvsig@gva.es |
|
34 |
* www.gvsig.gva.es |
|
35 |
* |
|
36 |
* or |
|
37 |
* |
|
38 |
* IVER T.I. S.A |
|
39 |
* Salamanca 50 |
|
40 |
* 46005 Valencia |
|
41 |
* Spain |
|
42 |
* |
|
43 |
* +34 963163400 |
|
44 |
* dac@iver.es |
|
45 |
*/ |
|
46 |
/* CVS MESSAGES: |
|
47 |
* |
|
48 |
* $Id: URIs.java 499 2007-07-10 11:18:10 +0000 (Tue, 10 Jul 2007) jorpiell $ |
|
49 |
* $Log$ |
|
50 |
* Revision 1.1.2.1 2007/07/10 11:18:03 jorpiell |
|
51 |
* Added the registers |
|
52 |
* |
|
53 |
* |
|
54 |
*/ |
|
55 |
/** |
|
56 |
* @author Jorge Piera LLodr? (jorge.piera@iver.es) |
|
57 |
*/ |
|
58 |
public class URIs { |
|
59 |
|
|
60 |
/** |
|
61 |
* @param args |
|
62 |
* @throws URISyntaxException |
|
63 |
*/ |
|
64 |
public static void main(String[] args) throws URISyntaxException { |
|
65 |
java.net.URI uri = new java.net.URI("www.upv.es"); |
|
66 |
System.out.println(uri.getHost()); |
|
67 |
System.out.println(uri.getPort()); |
|
68 |
System.out.println(uri.getScheme()); |
|
69 |
java.net.URI uri1 = new java.net.URI("z3950://www.upv.es"); |
|
70 |
System.out.println(uri1.getHost()); |
|
71 |
System.out.println(uri1.getPort()); |
|
72 |
System.out.println(uri1.getScheme()); |
|
73 |
} |
|
74 |
|
|
75 |
} |
|
0 | 76 |
tags/v2_0_0_Build_2049/applications/appGazetteer/src/org/gvsig/gazetteer/querys/FeatureType.java | ||
---|---|---|
1 |
|
|
2 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana |
|
3 |
* |
|
4 |
* Copyright (C) 2004 IVER T.I. and Generalitat Valenciana. |
|
5 |
* |
|
6 |
* This program is free software; you can redistribute it and/or |
|
7 |
* modify it under the terms of the GNU General Public License |
|
8 |
* as published by the Free Software Foundation; either version 2 |
|
9 |
* of the License, or (at your option) any later version. |
|
10 |
* |
|
11 |
* This program is distributed in the hope that it will be useful, |
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
14 |
* GNU General Public License for more details. |
|
15 |
* |
|
16 |
* You should have received a copy of the GNU General Public License |
|
17 |
* along with this program; if not, write to the Free Software |
|
18 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA. |
|
19 |
* |
|
20 |
* For more information, contact: |
|
21 |
* |
|
22 |
* Generalitat Valenciana |
|
23 |
* Conselleria d'Infraestructures i Transport |
|
24 |
* Av. Blasco Ib??ez, 50 |
|
25 |
* 46010 VALENCIA |
|
26 |
* SPAIN |
|
27 |
* |
|
28 |
* +34 963862235 |
|
29 |
* gvsig@gva.es |
|
30 |
* www.gvsig.gva.es |
|
31 |
* |
|
32 |
* or |
|
33 |
* |
|
34 |
* IVER T.I. S.A |
|
35 |
* Salamanca 50 |
|
36 |
* 46005 Valencia |
|
37 |
* Spain |
|
38 |
* |
|
39 |
* +34 963163400 |
|
40 |
* dac@iver.es |
|
41 |
*/ |
|
42 |
package org.gvsig.gazetteer.querys; |
|
43 |
import org.gvsig.catalog.querys.Coordinates; |
|
44 |
|
|
45 |
/** |
|
46 |
* This class represents a thesaurus name (city, cementer, ...) |
|
47 |
* |
|
48 |
* |
|
49 |
* @author Jorge Piera Llodra (piera_jor@gva.es) |
|
50 |
*/ |
|
51 |
public class FeatureType { |
|
52 |
private String name; |
|
53 |
private String title; |
|
54 |
private String abstract_; |
|
55 |
private FeatureTypeAttribute[] attributes = null; |
|
56 |
private String keywords; |
|
57 |
private String srs; |
|
58 |
private Coordinates coordinates; |
|
59 |
private FeatureType[] featureTypes; |
|
60 |
|
|
61 |
public FeatureType() { |
|
62 |
|
|
63 |
} |
|
64 |
|
|
65 |
/** |
|
66 |
* @param name |
|
67 |
*/ |
|
68 |
public FeatureType(String name) { |
|
69 |
this.name = name; |
|
70 |
} |
|
71 |
|
|
72 |
/** |
|
73 |
* @return Returns the name. |
|
74 |
*/ |
|
75 |
public String getName() { |
|
76 |
return name; |
|
77 |
} |
|
78 |
|
|
79 |
/** |
|
80 |
* @param name The name to set. |
|
81 |
*/ |
|
82 |
public void setName(String name) { |
|
83 |
this.name = name; |
|
84 |
} |
|
85 |
|
|
86 |
/** |
|
87 |
* @return Returns the abstract_. |
|
88 |
*/ |
|
89 |
public String getAbstract() { |
|
90 |
return abstract_; |
|
91 |
} |
|
92 |
|
|
93 |
/** |
|
94 |
* @param abstract_ The abstract_ to set. |
|
95 |
*/ |
|
96 |
public void setAbstract(String abstract_) { |
|
97 |
this.abstract_ = abstract_; |
|
98 |
} |
|
99 |
|
|
100 |
/** |
|
101 |
* @return Returns the coordinates. |
|
102 |
*/ |
|
103 |
public Coordinates getCoordinates() { |
|
104 |
return coordinates; |
|
105 |
} |
|
106 |
|
|
107 |
/** |
|
108 |
* @param coordinates The coordinates to set. |
|
109 |
*/ |
|
110 |
public void setCoordinates(Coordinates coordinates) { |
|
111 |
this.coordinates = coordinates; |
|
112 |
} |
|
113 |
|
|
114 |
/** |
|
115 |
* @return Returns the keywords. |
|
116 |
*/ |
|
117 |
public String getKeywords() { |
|
118 |
return keywords; |
|
119 |
} |
|
120 |
|
|
121 |
/** |
|
122 |
* @param keywords The keywords to set. |
|
123 |
*/ |
|
124 |
public void setKeywords(String keywords) { |
|
125 |
this.keywords = keywords; |
|
126 |
} |
|
127 |
|
|
128 |
/** |
|
129 |
* @return Returns the srs. |
|
130 |
*/ |
|
131 |
public String getSrs() { |
|
132 |
return srs; |
|
133 |
} |
|
134 |
|
|
135 |
/** |
|
136 |
* @param srs The srs to set. |
|
137 |
*/ |
|
138 |
public void setSrs(String srs) { |
|
139 |
this.srs = srs; |
|
140 |
} |
|
141 |
|
|
142 |
/** |
|
143 |
* @return Returns the title. |
|
144 |
*/ |
|
145 |
public String getTitle() { |
|
146 |
return title; |
|
147 |
} |
|
148 |
|
|
149 |
/** |
|
150 |
* @param title The title to set. |
|
151 |
*/ |
|
152 |
public void setTitle(String title) { |
|
153 |
this.title = title; |
|
154 |
} |
|
155 |
|
|
156 |
/** |
|
157 |
* To load into a List |
|
158 |
* @return |
|
159 |
*/ |
|
160 |
public String toString() { |
|
161 |
return title; |
|
162 |
} |
|
163 |
|
|
164 |
/** |
|
165 |
* @return Returns the features. |
|
166 |
*/ |
|
167 |
public FeatureType[] getFeatures() { |
|
168 |
return featureTypes; |
|
169 |
} |
|
170 |
|
|
171 |
/** |
|
172 |
* @param features The features to set. |
|
173 |
*/ |
|
174 |
public void setFeatures(FeatureType[] featureTypes) { |
|
175 |
this.featureTypes = featureTypes; |
|
176 |
} |
|
177 |
|
|
178 |
/** |
|
179 |
* @return Returns the fields. |
|
180 |
*/ |
|
181 |
public FeatureTypeAttribute[] getFields() { |
|
182 |
return attributes; |
|
183 |
} |
|
184 |
|
|
185 |
/** |
|
186 |
* @param fields The fields to set. |
|
187 |
*/ |
|
188 |
public void setFields(FeatureTypeAttribute[] attributes) { |
|
189 |
this.attributes = attributes; |
|
190 |
} |
|
191 |
} |
|
0 | 192 |
tags/v2_0_0_Build_2049/applications/appGazetteer/src/org/gvsig/gazetteer/querys/GazetteerQuery.java | ||
---|---|---|
1 |
|
|
2 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana |
|
3 |
* |
|
4 |
* Copyright (C) 2004 IVER T.I. and Generalitat Valenciana. |
|
5 |
* |
|
6 |
* This program is free software; you can redistribute it and/or |
|
7 |
* modify it under the terms of the GNU General Public License |
|
8 |
* as published by the Free Software Foundation; either version 2 |
|
9 |
* of the License, or (at your option) any later version. |
|
10 |
* |
|
11 |
* This program is distributed in the hope that it will be useful, |
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
14 |
* GNU General Public License for more details. |
|
15 |
* |
|
16 |
* You should have received a copy of the GNU General Public License |
|
17 |
* along with this program; if not, write to the Free Software |
|
18 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA. |
|
19 |
* |
|
20 |
* For more information, contact: |
|
21 |
* |
|
22 |
* Generalitat Valenciana |
|
23 |
* Conselleria d'Infraestructures i Transport |
|
24 |
* Av. Blasco Ib??ez, 50 |
|
25 |
* 46010 VALENCIA |
|
26 |
* SPAIN |
|
27 |
* |
|
28 |
* +34 963862235 |
|
29 |
* gvsig@gva.es |
|
30 |
* www.gvsig.gva.es |
|
31 |
* |
|
32 |
* or |
|
33 |
* |
|
34 |
* IVER T.I. S.A |
|
35 |
* Salamanca 50 |
|
36 |
* 46005 Valencia |
|
37 |
* Spain |
|
38 |
* |
|
39 |
* +34 963163400 |
|
40 |
* dac@iver.es |
|
41 |
*/ |
|
42 |
package org.gvsig.gazetteer.querys; |
|
43 |
import org.gvsig.catalog.querys.Coordinates; |
|
44 |
import org.gvsig.catalog.querys.DiscoveryServiceQuery; |
|
45 |
import org.gvsig.catalog.utils.CatalogConstants; |
|
46 |
|
|
47 |
/** |
|
48 |
* This class contains all the queryable fields that the user interface |
|
49 |
* supports. |
|
50 |
* @author Jorge Piera Llodra (piera_jor@gva.es) |
|
51 |
*/ |
|
52 |
public class GazetteerQuery extends DiscoveryServiceQuery{ |
|
53 |
private String name; |
|
54 |
private String nameFilter; |
|
55 |
private String fieldAttribute; |
|
56 |
private int recsByPage; |
|
57 |
private Coordinates coordinates; |
|
58 |
private String coordinatesFilter; |
|
59 |
private boolean isCoordinatesClicked; |
|
60 |
private GazetteerOptions options; |
|
61 |
public java.util.Collection thesaurusName = new java.util.ArrayList(); |
|
62 |
|
|
63 |
|
|
64 |
/** |
|
65 |
* @param name |
|
66 |
* @param nameFilter |
|
67 |
* @param feature |
|
68 |
* @param fieldAttribute |
|
69 |
* @param recsByPage |
|
70 |
* @param coordinates |
|
71 |
* @param coordinatesFilter |
|
72 |
*/ |
|
73 |
public GazetteerQuery(String name, String nameFilter, FeatureType[] feature, String fieldAttribute, int recsByPage, Coordinates coordinates, String coordinatesFilter) { |
|
74 |
super(); |
|
75 |
this.name = name; |
|
76 |
this.nameFilter = nameFilter; |
|
77 |
setFeatures(feature); |
|
78 |
this.fieldAttribute = fieldAttribute; |
|
79 |
this.recsByPage = recsByPage; |
|
80 |
this.coordinates = coordinates; |
|
81 |
this.coordinatesFilter = coordinatesFilter; |
|
82 |
options = new GazetteerOptions(); |
|
83 |
} |
|
84 |
|
|
85 |
/** |
|
86 |
* Constructor |
|
87 |
*/ |
|
88 |
public GazetteerQuery() { |
|
89 |
super(); |
|
90 |
options = new GazetteerOptions(); |
|
91 |
} |
|
92 |
|
|
93 |
/** |
|
94 |
* To search a place by name |
|
95 |
* @param name Place name |
|
96 |
* @param description Thesaurus description |
|
97 |
*/ |
|
98 |
public GazetteerQuery(String name, String description) { |
|
99 |
super(); |
|
100 |
FeatureType[] thesaurus = new FeatureType[1]; |
|
101 |
thesaurus[0] = new FeatureType(); |
|
102 |
thesaurus[0].setName(description); |
|
103 |
this.name = name; |
|
104 |
this.nameFilter = CatalogConstants.ANY_WORD; |
|
105 |
setFeatures(thesaurus); |
|
106 |
this.recsByPage = 100; |
|
107 |
this.coordinates = null; |
|
108 |
this.coordinatesFilter = null; |
|
109 |
} |
|
110 |
|
|
111 |
/** |
|
112 |
* @return Returns the coordinates. |
|
113 |
*/ |
|
114 |
public Coordinates getCoordinates() { |
|
115 |
return coordinates; |
|
116 |
} |
|
117 |
|
|
118 |
/** |
|
119 |
* @param coordinates The coordinates to set. |
|
120 |
*/ |
|
121 |
public void setCoordinates(Coordinates coordinates) { |
|
122 |
this.coordinates = coordinates; |
|
123 |
} |
|
124 |
|
|
125 |
/** |
|
126 |
* @return Returns the coordinatesFilter. |
|
127 |
*/ |
|
128 |
public String getCoordinatesFilter() { |
|
129 |
return coordinatesFilter; |
|
130 |
} |
|
131 |
|
|
132 |
/** |
|
133 |
* @param coordinatesFilter The coordinatesFilter to set. |
|
134 |
*/ |
|
135 |
public void setCoordinatesFilter(String coordinatesFilter) { |
|
136 |
this.coordinatesFilter = coordinatesFilter; |
|
137 |
} |
|
138 |
|
|
139 |
/** |
|
140 |
* @return Returns the feature. |
|
141 |
*/ |
|
142 |
public FeatureType[] getFeatures() { |
|
143 |
FeatureType[] aux = new FeatureType[thesaurusName.size()]; |
|
144 |
for (int i=0 ; i<aux.length ; i++){ |
|
145 |
aux[i] = (FeatureType)thesaurusName.toArray()[i]; |
|
146 |
} |
|
147 |
return aux; |
|
148 |
} |
|
149 |
|
|
150 |
/** |
|
151 |
* @param feature The feature to set. |
|
152 |
* @param features The feature to set. |
|
153 |
*/ |
|
154 |
public void setFeatures(FeatureType[] features) { |
|
155 |
this.thesaurusName = new java.util.ArrayList(); |
|
156 |
if (features == null){ |
|
157 |
return; |
|
158 |
} |
|
159 |
for (int i=0 ; i<features.length ; i++){ |
|
160 |
this.thesaurusName.add(features[i]); |
|
161 |
} |
|
162 |
} |
|
163 |
|
|
164 |
/** |
|
165 |
* @return Returns the name. |
|
166 |
*/ |
|
167 |
public String getName() { |
|
168 |
return name; |
|
169 |
} |
|
170 |
|
|
171 |
/** |
|
172 |
* @param name The name to set. |
|
173 |
*/ |
|
174 |
public void setName(String name) { |
|
175 |
this.name = name; |
|
176 |
} |
|
177 |
|
|
178 |
/** |
|
179 |
* @return Returns the nameFilter. |
|
180 |
*/ |
|
181 |
public String getNameFilter() { |
|
182 |
return nameFilter; |
|
183 |
} |
|
184 |
|
|
185 |
/** |
|
186 |
* @param nameFilter The nameFilter to set. |
|
187 |
*/ |
|
188 |
public void setNameFilter(String nameFilter) { |
|
189 |
this.nameFilter = nameFilter; |
|
190 |
} |
|
191 |
|
|
192 |
/** |
|
193 |
* @return Returns the recsByPage. |
|
194 |
*/ |
|
195 |
public int getRecsByPage() { |
|
196 |
return recsByPage; |
|
197 |
} |
|
198 |
|
|
199 |
/** |
|
200 |
* @param recsByPage The recsByPage to set. |
|
201 |
*/ |
|
202 |
public void setRecsByPage(int recsByPage) { |
|
203 |
this.recsByPage = recsByPage; |
|
204 |
} |
|
205 |
|
|
206 |
/** |
|
207 |
* @return Returns the fieldAttribute. |
|
208 |
*/ |
|
209 |
public String getFieldAttribute() { |
|
210 |
return fieldAttribute; |
|
211 |
} |
|
212 |
|
|
213 |
/** |
|
214 |
* @param fieldAttribute The fieldAttribute to set. |
|
215 |
*/ |
|
216 |
public void setFieldAttribute(String fieldAttribute) { |
|
217 |
this.fieldAttribute = fieldAttribute; |
|
218 |
} |
|
219 |
|
|
220 |
/** |
|
221 |
* @return Returns the isCoordinatesClicked. |
|
222 |
*/ |
|
223 |
public boolean isCoordinatesClicked() { |
|
224 |
return isCoordinatesClicked; |
|
225 |
} |
|
226 |
|
|
227 |
/** |
|
228 |
* @param isCoordinatesClicked The isCoordinatesClicked to set. |
|
229 |
*/ |
|
230 |
public void setCoordinatesClicked(boolean isCoordinatesClicked) { |
|
231 |
this.isCoordinatesClicked = isCoordinatesClicked; |
|
232 |
} |
|
233 |
|
|
234 |
/** |
|
235 |
* @return the gaazetter options |
|
236 |
*/ |
|
237 |
public GazetteerOptions getOptions() { |
|
238 |
return options; |
|
239 |
} |
|
240 |
|
|
241 |
/** |
|
242 |
* Set the options |
|
243 |
* @param options |
|
244 |
*/ |
|
245 |
public void setOptions(GazetteerOptions options) { |
|
246 |
this.options = options; |
|
247 |
} |
|
248 |
|
|
249 |
} |
|
0 | 250 |
tags/v2_0_0_Build_2049/applications/appGazetteer/src/org/gvsig/gazetteer/querys/FeatureTypeAttribute.java | ||
---|---|---|
1 |
|
|
2 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana |
|
3 |
* |
|
4 |
* Copyright (C) 2004 IVER T.I. and Generalitat Valenciana. |
|
5 |
* |
|
6 |
* This program is free software; you can redistribute it and/or |
|
7 |
* modify it under the terms of the GNU General Public License |
|
8 |
* as published by the Free Software Foundation; either version 2 |
|
9 |
* of the License, or (at your option) any later version. |
|
10 |
* |
|
11 |
* This program is distributed in the hope that it will be useful, |
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
14 |
* GNU General Public License for more details. |
|
15 |
* |
|
16 |
* You should have received a copy of the GNU General Public License |
|
17 |
* along with this program; if not, write to the Free Software |
|
18 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA. |
|
19 |
* |
|
20 |
* For more information, contact: |
|
21 |
* |
|
22 |
* Generalitat Valenciana |
|
23 |
* Conselleria d'Infraestructures i Transport |
|
24 |
* Av. Blasco Ib??ez, 50 |
|
25 |
* 46010 VALENCIA |
|
26 |
* SPAIN |
|
27 |
* |
|
28 |
* +34 963862235 |
|
29 |
* gvsig@gva.es |
|
30 |
* www.gvsig.gva.es |
|
31 |
* |
|
32 |
* or |
|
33 |
* |
|
34 |
* IVER T.I. S.A |
|
35 |
* Salamanca 50 |
|
36 |
* 46005 Valencia |
|
37 |
* Spain |
|
38 |
* |
|
39 |
* +34 963163400 |
|
40 |
* dac@iver.es |
|
41 |
*/ |
|
42 |
package org.gvsig.gazetteer.querys; |
|
43 |
|
|
44 |
/** |
|
45 |
* This class represents a field from a thesaurus name |
|
46 |
* (name,description,...) |
|
47 |
* @author Jorge Piera Llodra (piera_jor@gva.es) |
|
48 |
*/ |
|
49 |
public class FeatureTypeAttribute { |
|
50 |
private String name; |
|
51 |
private int minOccurs; |
|
52 |
private boolean nillable; |
|
53 |
private String type; |
|
54 |
|
|
55 |
/** |
|
56 |
* @param name |
|
57 |
* @param minOccurs |
|
58 |
* @param nillable |
|
59 |
* @param type |
|
60 |
*/ |
|
61 |
public FeatureTypeAttribute(String name, int minOccurs, boolean nillable, String type) { |
|
62 |
super(); |
|
63 |
this.name = name; |
|
64 |
this.minOccurs = minOccurs; |
|
65 |
this.nillable = nillable; |
|
66 |
this.type = type; |
|
67 |
} |
|
68 |
|
|
69 |
/** |
|
70 |
* @return Returns the minOccurs. |
|
71 |
*/ |
|
72 |
public int getMinOccurs() { |
|
73 |
return minOccurs; |
|
74 |
} |
|
75 |
|
|
76 |
/** |
|
77 |
* @param minOccurs The minOccurs to set. |
|
78 |
*/ |
|
79 |
public void setMinOccurs(int minOccurs) { |
|
80 |
this.minOccurs = minOccurs; |
|
81 |
} |
|
82 |
|
|
83 |
/** |
|
84 |
* @return Returns the name. |
|
85 |
*/ |
|
86 |
public String getName() { |
|
87 |
return name; |
|
88 |
} |
|
89 |
|
|
90 |
/** |
|
91 |
* @param name The name to set. |
|
92 |
*/ |
|
93 |
public void setName(String name) { |
|
94 |
this.name = name; |
|
95 |
} |
|
96 |
|
|
97 |
/** |
|
98 |
* @return Returns the nillable. |
|
99 |
*/ |
|
100 |
public boolean getNillable() { |
|
101 |
return nillable; |
|
102 |
} |
|
103 |
|
|
104 |
/** |
|
105 |
* @param nillable The nillable to set. |
|
106 |
*/ |
|
107 |
public void setNillable(boolean nillable) { |
|
108 |
this.nillable = nillable; |
|
109 |
} |
|
110 |
|
|
111 |
/** |
|
112 |
* @return Returns the type. |
|
113 |
*/ |
|
114 |
public String getType() { |
|
115 |
return type; |
|
116 |
} |
|
117 |
|
|
118 |
/** |
|
119 |
* @param type The type to set. |
|
120 |
*/ |
|
121 |
public void setType(String type) { |
|
122 |
this.type = type; |
|
123 |
} |
|
124 |
|
|
125 |
/* |
|
126 |
* (non-Javadoc) |
|
127 |
* @see java.lang.Object#toString() |
|
128 |
*/ |
|
129 |
public String toString(){ |
|
130 |
return name; |
|
131 |
} |
|
132 |
} |
|
0 | 133 |
tags/v2_0_0_Build_2049/applications/appGazetteer/src/org/gvsig/gazetteer/querys/GazetteerOptions.java | ||
---|---|---|
1 |
|
|
2 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana |
|
3 |
* |
|
4 |
* Copyright (C) 2004 IVER T.I. and Generalitat Valenciana. |
|
5 |
* |
|
6 |
* This program is free software; you can redistribute it and/or |
|
7 |
* modify it under the terms of the GNU General Public License |
|
8 |
* as published by the Free Software Foundation; either version 2 |
|
9 |
* of the License, or (at your option) any later version. |
|
10 |
* |
|
11 |
* This program is distributed in the hope that it will be useful, |
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
14 |
* GNU General Public License for more details. |
|
15 |
* |
|
16 |
* You should have received a copy of the GNU General Public License |
|
17 |
* along with this program; if not, write to the Free Software |
|
18 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA. |
|
19 |
* |
|
20 |
* For more information, contact: |
|
21 |
* |
|
22 |
* Generalitat Valenciana |
|
23 |
* Conselleria d'Infraestructures i Transport |
|
24 |
* Av. Blasco Ib??ez, 50 |
|
25 |
* 46010 VALENCIA |
|
26 |
* SPAIN |
|
27 |
* |
|
28 |
* +34 963862235 |
|
29 |
* gvsig@gva.es |
|
30 |
* www.gvsig.gva.es |
|
31 |
* |
|
32 |
* or |
|
33 |
* |
|
34 |
* IVER T.I. S.A |
|
35 |
* Salamanca 50 |
|
36 |
* 46005 Valencia |
|
37 |
* Spain |
|
38 |
* |
|
39 |
* +34 963163400 |
|
40 |
* dac@iver.es |
|
41 |
*/ |
|
42 |
package org.gvsig.gazetteer.querys; |
|
43 |
|
|
44 |
/** |
|
45 |
* This class is used to manage the aspect and the |
|
46 |
* filter of the gazetteer. |
|
47 |
* @author Jorge Piera Llodr? (piera_jor@gva.es) |
|
48 |
*/ |
|
49 |
public class GazetteerOptions { |
|
50 |
private AspectOptions aspect = null; |
|
51 |
private InteligentSearchOptions search = null; |
|
52 |
|
|
53 |
public GazetteerOptions(){ |
|
54 |
aspect = new AspectOptions(); |
|
55 |
search = new InteligentSearchOptions(); |
|
56 |
} |
|
57 |
|
|
58 |
public AspectOptions getAspect() { |
|
59 |
return aspect; |
|
60 |
} |
Also available in: Unified diff