Revision 3464

View differences:

trunk/extensions/extCatalogYNomenclator/text_en.properties
4 4
metadata_catalog=Geodata Search - Connection
5 5
metadata_tree=Metadata Tree
6 6
search_results=Search Results
7
resourceTypeColumn=Ttpe
7
resourceTypeColumn=Type
8 8
resourceLinkColumn=Link
9 9
resourceShowColumn=Show
10
concordancia=Concordancia
10
concordancia=Agreement
11 11
exactSentence=Exact Sentence
12 12
anyWord=Any Word
13 13
allWords=All Words
......
51 51
abstract=Abstract
52 52
coordinates=Coordinates
53 53
coordinatesEqual=equal
54
coordinatesContains=contains
55
coordinatesEnclose=encloses
54
coordinatesContains=contain
55
coordinatesEnclose=enclose
56 56
coordinatesFullyOutsideOf=is fully outside of     
57 57
title=Title
58 58
restrictArea=Restricted Search Area 
......
90 90
errorGetRecords=Error with the getRecords operation
91 91
anyResult=The search hasn't retrieve any result
92 92
rootName=Root
93
wcsColumn=Coberage
94
wmsColumn=Map
95
wfsColumn=Feature
96
postgisColumn=Postgis
97
linkColumn=Web Site
98
downloadColumn=Download
99
errorNotCSWSupportedProtocol=The server has been found, but it doesn't support the CSW protocol
100
errorIsASRWServer=It is a SRW server!
101
errorServerException=The server has returned an exception
102
errorSOAPProtocol=SOAP error
103
errorFENotSupported=gvSIG only supports the Filter Encoding Language to do Querys
trunk/extensions/extCatalogYNomenclator/src/es/gva/cit/gvsig/catalogClient/loaders/AbstractLoader.java
45 45
import com.iver.cit.gvsig.fmap.layers.FLayer;
46 46

  
47 47
/**
48
 * This class has to be inherited by all the classes
49
 * that have to load a layer in the current view
48 50
 * @author Jorge Piera Llodra (piera_jor@gva.es)
49 51
 */
50 52
public class AbstractLoader {
51 53

  
54
    /**
55
     * It adds an draw a new layer to the current view
56
     * @param lyr
57
     */
52 58
    protected void addLayerToView(FLayer lyr) {
53 59
		com.iver.cit.gvsig.gui.View theView = 
54 60
			(com.iver.cit.gvsig.gui.View) PluginServices.getMDIManager().getActiveView();
trunk/extensions/extCatalogYNomenclator/src/es/gva/cit/gvsig/gazetteer/loaders/FeatureLoader.java
41 41
package es.gva.cit.gvsig.gazetteer.loaders;
42 42

  
43 43

  
44
import java.awt.Color;
45
import java.awt.Font;
44 46
import java.awt.geom.Rectangle2D;
45 47

  
46 48
import com.iver.andami.PluginServices;
49
import com.iver.cit.gvsig.fmap.core.FMultiPoint2D;
50
import com.iver.cit.gvsig.fmap.core.IGeometry;
51
import com.iver.cit.gvsig.fmap.core.ShapeFactory;
52
import com.iver.cit.gvsig.fmap.core.v02.FConstant;
53
import com.iver.cit.gvsig.fmap.core.v02.FLabel;
54
import com.iver.cit.gvsig.fmap.core.v02.FSymbol;
55
import com.iver.cit.gvsig.fmap.layers.FLyrText;
56
import com.iver.cit.gvsig.fmap.layers.FLyrVect;
57
import com.iver.cit.gvsig.fmap.layers.GraphicLayer;
58
import com.iver.cit.gvsig.fmap.rendering.FGraphic;
59

  
47 60
import es.gva.cit.gazetteer.querys.Feature;
48 61
import es.gva.cit.gvsig.catalogClient.loaders.AbstractLoader;
49 62

  
......
56 69
public class FeatureLoader extends AbstractLoader{
57 70
     
58 71
    /**
59
     * It make a zoom into gvSIG
72
     * It make a zoom in gvSIG
60 73
     * @param
61 74
     * feature
62 75
     * @return
......
77 90
                10000,
78 91
                10000));
79 92
        }
93
        
94
        addFLyr(feature);
80 95
		return true;
81
	}
96
	}    
82 97
    
98
    /**
99
     * It adds a new Layer to the current view
100
     * @param feature
101
     * To obtain the coordinates
102
     */
103
    public void addFLyr(Feature feature){
104
        GraphicLayer glayer = new GraphicLayer();
105
               
106
        FSymbol theSymbol = new FSymbol(FConstant.SYMBOL_TYPE_TEXT);            
107
        theSymbol.setColor(Color.RED);
108
        theSymbol.setDescription(feature.getName());
109
        int idSymbol = glayer.addSymbol(theSymbol);
110
        
111
        IGeometry geom = ShapeFactory.createPoint2D(feature.getCoordinates().getX(),
112
                feature.getCoordinates().getY());
113
        FGraphic theGraphic = new FGraphic(geom, idSymbol);
114
                    
115
        glayer.addGraphic(theGraphic);
116
        glayer.setName(feature.getName());
117
                
118
        addLayerToView(glayer);
119
        
120
        FLyrText tlayer = new FLyrText(); 
121
               
122
    }
83 123
}
trunk/extensions/extCatalogYNomenclator/text.properties
77 77
lastUpdateDate=Fecha de ?ltima actualizaci?n
78 78
purpose=Prop?sito
79 79
errorServerNotFound=No se encuentra el servidor
80
errorNotSupportedProtocol=El servidor No soporta el protocolo especificado
80
errorNotSupportedProtocol=El servidor no soporta el protocolo especificado
81 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?n, o bien el servidor no soporta el protocolo especificado
82 82
errorNotParsedReply=Error al procesar la respuesta. Se ha encontrado el servidor, pero posiblemente no soporta el protocolo especificado
83 83
name=Nombre
......
90 90
errorGetRecords=Se ha producido un error al hacer el getRecords
91 91
anyResult=La b?squeda no ha producido ning?n resultado
92 92
rootName=Ra?z
93
wcsColumn=Cobertura
94
wmsColumn=Mapa
95
wfsColumn=Feature
96
postgisColumn=Postgis
97
linkColumn=P?gina 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?n
102
errorSOAPProtocol=Error en el protocolo SOAP
103
errorFENotSupported=De momento solo se pueden hacer querys usando la codificaci?n FILTER ENCODING que no est? soportada por el servidor

Also available in: Unified diff