Revision 45398

View differences:

tags/org.gvsig.desktop-2.0.302/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.main/src/main/resources/Locations.csv
1
"id","name","size","confirmed","type"
2
1,"King's Landing",5,1,"City"
3
2,"Hayford Castle",3,0,"Castle"
4
3,"Rosby",3,1,"Castle"
5
4,"Old Stone Bridge Inn",1,0,"Other"
6
5,"Brindlewood",1,0,"Other"
7
6,"Sow's Horn",3,1,"Castle"
8
7,"Tumbleton",4,1,"Town"
9
8,"High Heart",2,1,"Ruin"
10
9,"Duskendale",4,1,"Town"
11
10,"Antlers",3,1,"Castle"
12
11,"Stokeworth",3,0,"Castle"
13
12,"Ivy Inn",1,0,"Other"
14
13,"Village",1,0,"Other"
15
14,"Holdfast",1,0,"Other"
16
15,"Harrenhal",3,1,"Castle"
17
16,"Rushing Falls",1,0,"Other"
18
17,"Tumblers Falls",1,0,"Other"
19
18,"Stoney Sept",4,1,"Town"
20
19,"Hollow Hill",1,0,"Other"
21
20,"Sept",1,0,"Other"
22
21,"Acorn Hall",3,1,"Castle"
23
22,"Pinkmaiden",3,1,"Castle"
24
23,"Mummer's Ford",1,0,"Other"
25
24,"Sherrer",1,0,"Other"
26
25,"Wendish Town",1,0,"Other"
27
26,"Lord Goodbrook's Village",1,0,"Other"
28
27,"Sallydance",1,0,"Other"
29
28,"Lady of the Leaves",1,0,"Other"
30
29,"Lord Lychester's Keep",1,0,"Other"
31
30,"Unnamed Village",1,0,"Other"
32
31,"Inn (They Ley with Lions)",1,0,"Other"
33
32,"Riverrun",3,1,"Castle"
34
33,"Raventree Hall",3,0,"Castle"
35
34,"Darry",3,0,"Castle"
36
35,"Inn of the Kneeling Man",1,1,"Other"
37
36,"BWB hideout",1,0,"Other"
38
37,"Lort Harroway's Town",1,0,"Other"
39
38,"Crossroads Inn",1,0,"Other"
40
39,"Saltpans",1,1,"Other"
41
40,"Quiet Isle",1,1,"Other"
42
41,"Wickenden",3,1,"Castle"
43
42,"Maidenpool",4,1,"Town"
44
43,"Rook's Rest",3,1,"Castle"
45
44,"Dyre Den",3,1,"Castle"
46
45,"The Whispers",2,1,"Ruin"
47
46,"Dragonstone",3,1,"Castle"
48
47,"Sharp Point",3,1,"Castle"
49
48,"Stonedance",3,1,"Castle"
50
49,"Haystack Hall",3,1,"Castle"
51
50,"Bronzegate",3,1,"Castle"
52
51,"Felwood",3,1,"Castle"
53
52,"Storm's End",3,1,"Castle"
54
53,"Griffin's Roost",3,1,"Castle"
55
54,"Rain House",3,1,"Castle"
56
55,"Greenstone",3,1,"Castle"
57
56,"Weeping Tower",3,1,"Castle"
58
57,"Mistwood",3,1,"Castle"
59
58,"Stonehelm",3,1,"Castle"
60
59,"Crow's Nest",3,1,"Castle"
61
60,"Grandview",4,0,"Town"
62
61,"Summerhall",2,1,"Ruin"
63
62,"Blackhaven",3,1,"Castle"
64
63,"Fawnton",4,0,"Town"
65
64,"Grassy Vale",3,1,"Castle"
66
65,"Wyl",3,1,"Castle"
67
66,"Ghaston Grey",3,1,"Castle"
68
67,"Yronwood",3,1,"Castle"
69
68,"Vulture's Roost",3,1,"Castle"
70
69,"Nightsong",3,1,"Castle"
71
70,"Ashford",3,1,"Castle"
72
71,"Cider Hall",3,1,"Castle"
73
72,"Highgarden",3,1,"Castle"
74
73,"Horn Hill",3,1,"Castle"
75
74,"Brightwater Keep",3,1,"Castle"
76
75,"Bandallon",3,1,"Castle"
77
76,"Honeyholt",3,1,"Castle"
78
77,"Oldtown",5,1,"City"
79
78,"Blackcrown",3,1,"Castle"
80
79,"Three Towers",3,1,"Castle"
81
80,"Uplands",3,1,"Castle"
82
81,"Sunflower Hall",3,1,"Castle"
83
82,"Blackmont",3,1,"Castle"
84
83,"High Hermitage",3,1,"Castle"
85
84,"Starfall",3,1,"Castle"
86
85,"Sandstone",3,1,"Castle"
87
86,"Skyreach",3,1,"Castle"
88
87,"Kingsgrave",3,1,"Castle"
89
88,"Tower of Joy",1,1,"Other"
90
89,"Hellholt",3,1,"Castle"
91
90,"Vaith",3,1,"Castle"
92
91,"Salt Shore",3,1,"Castle"
93
92,"Godsgrace",3,1,"Castle"
94
93,"The Tor",3,1,"Castle"
95
94,"Ghost Hill",3,1,"Castle"
96
95,"Lemonwood",3,1,"Castle"
97
96,"Sunspear",3,1,"Castle"
98
97,"Planky Town",4,1,"Town"
99
98,"Water Gardens",1,0,"Other"
100
99,"Shandystone",1,0,"Other"
101
100,"Tall Trees Town",4,0,"Town"
102
101,"Longtable",3,1,"Castle"
103
102,"Bitterbridge",3,1,"Castle"
104
103,"Goldengrove",3,1,"Castle"
105
104,"Red Lake",3,1,"Castle"
106
105,"Old Oak",3,1,"Castle"
107
106,"Crakehall",3,1,"Castle"
108
107,"Cornfield",3,1,"Castle"
109
108,"Silverhill",3,1,"Castle"
110
109,"Clegane Hall",3,0,"Castle"
111
110,"Tarbeck Hall",2,0,"Ruin"
112
111,"Lannisport",5,1,"City"
113
112,"Feastfires",3,1,"Castle"
114
113,"Kayce",4,1,"Town"
115
114,"Oxcross",1,0,"Other"
116
115,"Sarsfield",3,1,"Castle"
117
116,"Deep Den",3,1,"Castle"
118
117,"Hornvale",3,1,"Castle"
119
118,"Golden Tooth",1,1,"Other"
120
119,"Wayfarer's Rest",3,0,"Castle"
121
120,"Castamere",2,0,"Ruin"
122
121,"Pendric Hills",1,0,"Other"
123
122,"The Crag",3,1,"Castle"
124
123,"Banefort",3,1,"Castle"
125
124,"Ashemark",3,1,"Castle"
126
125,"Nunn's Deep",1,0,"Other"
127
126,"Stone Mill",1,0,"Other"
128
127,"Stone Hedge",3,1,"Castle"
129
128,"Fairmarket",4,1,"Town"
130
129,"Oldstones",2,1,"Ruin"
131
130,"Palisade Village",1,0,"Other"
132
131,"The Bloody Gate",3,1,"Castle"
133
132,"The Eyrie",3,1,"Castle"
134
133,"Strongsong",3,1,"Castle"
135
134,"Heart's Home",3,1,"Castle"
136
135,"Redfort",3,1,"Castle"
137
136,"Ironoaks",3,1,"Castle"
138
137,"Old Anchor",3,1,"Castle"
139
138,"Runestone",3,1,"Castle"
140
139,"Gulltown",5,1,"City"
141
140,"Longbow Hall",3,1,"Castle"
142
141,"Snakewood",3,1,"Castle"
143
142,"Baelish Keep",1,0,"Other"
144
143,"Coldwater",3,1,"Castle"
145
144,"Seagard",3,1,"Castle"
146
145,"The Twins",3,1,"Castle"
147
146,,3,1,"Castle"
148
147,"Greywater Watch",3,1,"Castle"
149
148,"Moat Cailin",2,1,"Ruin"
150
149,"Sisterton",4,1,"Town"
151
150,"Oldcastle",3,1,"Castle"
152
151,"White Harbor",5,1,"City"
153
152,"Ramsgate",3,1,"Castle"
154
153,"Widow's Watch",3,1,"Castle"
155
154,"Hornwood",3,0,"Castle"
156
155,"Tower",1,0,"Other"
157
156,"The Dreadfort",3,1,"Castle"
158
157,"Cerwyn",3,0,"Castle"
159
158,"Holdfast",1,0,"Other"
160
159,"Winterfell",3,1,"Castle"
161
160,"Crofters' Village",1,0,"Other"
162
161,"Tumbledown Tower",1,0,"Other"
163
162,"Deepwood Motte",3,1,"Castle"
164
163,"Last Hearth",3,1,"Castle"
165
164,"Karhold",3,1,"Castle"
166
165,"Queenscrown",1,1,"Other"
167
166,"Castle Black",3,1,"Castle"
168
167,"Mole's Town",1,0,"Other"
169
168,"Shadow Tower",3,1,"Castle"
170
169,"Westwatch-by-the-Bridge",1,1,"Other"
171
170,"Sentinel Stand",1,1,"Other"
172
171,"Greyguard",1,1,"Other"
173
172,"Stonedoor",1,1,"Other"
174
173,"Hoarfrost Hill",1,1,"Other"
175
174,"Icemark",1,1,"Other"
176
175,"Nightfort",1,1,"Other"
177
176,"Deep Lake",1,1,"Other"
178
177,"Queensgate",1,1,"Other"
179
178,"Oakensheild",1,1,"Other"
180
179,"Woodswatch-by-the-Pool",1,1,"Other"
181
180,"Sable Hall",1,1,"Other"
182
181,"Rimegate",1,1,"Other"
183
182,"Long Barrow",1,1,"Other"
184
183,"Torches",1,1,"Other"
185
184,"Greenguard",1,1,"Other"
186
185,"Eastwatch-by-the-Sea",3,1,"Castle"
187
186,"Whitetree",1,1,"Other"
188
187,"Craster's Keep",1,1,"Other"
189
188,"Fist of the First Men",1,1,"Other"
190
189,"Fishing Village",1,0,"Other"
191
190,"Pennytree",1,0,"Other"
192
191,"Lys",5,1,"City"
193
192,"Tyrosh",5,1,"City"
194
193,"Myr",5,1,"City"
195
194,"Pentos",5,1,"City"
196
195,"Ghoyan Drohe",2,1,"Ruin"
197
196,"Norvos",5,1,"City"
198
197,"Evenfall Hall",3,1,"Castle"
199
198,"Parchments",1,0,"Other"
200
199,"Braavos",3,1,"Castle"
201
200,"Lorath",3,1,"Castle"
202
201,"Qohor",5,1,"City"
203
202,"Ar Noy",2,1,"Ruin"
204
203,"Ny Sar",2,1,"Ruin"
205
204,"The Sorrows (Chroyane)",2,1,"Ruin"
206
205,"Selhorys",4,1,"Town"
207
206,"Valysar",4,1,"Town"
208
207,"Volon Therys",4,1,"Town"
209
208,"Sar Mell",2,1,"Ruin"
210
209,"Volantis",5,1,"City"
211
210,,1,1,"Other"
212
211,,2,1,"Ruin"
213
212,"Mantarys",5,1,"City"
214
213,,2,1,"Ruin"
215
214,"Oros",2,1,"Ruin"
216
215,"Elyria",5,1,"City"
217
216,"Tolos",5,1,"City"
218
217,"Ghozai",2,1,"Ruin"
219
218,"Velos",2,1,"Ruin"
220
219,,2,1,"Ruin"
221
220,"Astapor",5,1,"City"
222
221,"Yunkai",5,1,"City"
223
222,"Meereen",5,1,"City"
224
223,"Lhazarene Village",1,0,"Other"
225
224,"Vaes Dothrak",5,0,"City"
226
225,"Old Ghis",2,1,"Ruin"
227
226,"New Ghis",5,1,"City"
228
227,"Zamettar",2,1,"Ruin"
229
228,"Yeen",2,1,"Ruin"
230
229,"Gogossos",2,1,"Ruin"
231
230,"Flint's Finger",3,1,"Castle"
232
231,"Barrowton",4,1,"Town"
233
232,"Torrhen's Square",3,1,"Castle"
234
233,"Bhorash",2,1,"Ruin"
235
234,"Pyke",3,1,"Castle"
236
235,"Pebbleton",1,0,"Other"
237
236,"Hammerhorn",1,0,"Other"
238
237,"Nagga's Ribs",1,0,"Other"
239
238,"Castle Goodbrother",1,0,"Other"
240
239,"Ten Towers",3,1,"Castle"
241
240,"Faircastle",3,1,"Castle"
242
241,"Tyria",2,1,"Ruin"
243
242,"Valyria",2,1,"Ruin"
244
243,,2,1,"Ruin"
245
244,,2,1,"Ruin"
246
245,,2,1,"Ruin"
247
246,"Qarth",5,0,"City"
248
247,"Lord Hewett's Town",1,0,"Other"
tags/org.gvsig.desktop-2.0.302/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.main/src/main/resources/log4j.xml
1
<?xml version="1.0" encoding="ISO-8859-1" ?>
2
<!--
3

  
4
    gvSIG. Desktop Geographic Information System.
5

  
6
    Copyright (C) 2007-2012 gvSIG Association.
7

  
8
    This program is free software; you can redistribute it and/or
9
    modify it under the terms of the GNU General Public License
10
    as published by the Free Software Foundation; either version 2
11
    of the License, or (at your option) any later version.
12

  
13
    This program is distributed in the hope that it will be useful,
14
    but WITHOUT ANY WARRANTY; without even the implied warranty of
15
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
    GNU General Public License for more details.
17

  
18
    You should have received a copy of the GNU General Public License
19
    along with this program; if not, write to the Free Software
20
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
21
    MA  02110-1301, USA.
22

  
23
    For any additional information, do not hesitate to contact us
24
    at info AT gvsig.com, or visit our website www.gvsig.com.
25

  
26
-->
27
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
28

  
29
<!-- 
30
Log4J configuration file for unit tests execution.
31
 -->
32
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
33

  
34
	<!-- Appender configuration to show logging messages through the console -->
35
	<appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
36
		<layout class="org.apache.log4j.PatternLayout">
37
			<param name="ConversionPattern" value="%d{HH:mm:ss,SSS} %-5p [%c{2}.%M()]\n  %m%n" />
38
		</layout>
39
	</appender>
40

  
41
	<!-- 
42
	Activate logging messages of DEBUG level of higher only for the
43
	org.gvsig.tools packages.
44
	You can put full classes names or packages instead, to configure
45
	logging for all the classes and subpackages of the package.
46
	-->
47
	<category name="org.gvsig.tools">
48
		<priority value="DEBUG" />
49
	</category>
50
	<category name="org.gvsig.construc">
51
		<priority value="DEBUG" />
52
	</category>
53

  
54
	<!-- 
55
	By default, show only logging messages of INFO level or higher, 
56
	through the previously configured CONSOLE appender. 
57
	-->
58
	<root>
59
		<priority value="INFO" />
60
		<appender-ref ref="CONSOLE" />
61
	</root>
62
</log4j:configuration>
tags/org.gvsig.desktop-2.0.302/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.main/src/main/assembly/gvsig-main-package.xml
1
<!--
2

  
3
    gvSIG. Desktop Geographic Information System.
4

  
5
    Copyright (C) 2007-2013 gvSIG Association.
6

  
7
    This program is free software; you can redistribute it and/or
8
    modify it under the terms of the GNU General Public License
9
    as published by the Free Software Foundation; either version 3
10
    of the License, or (at your option) any later version.
11

  
12
    This program is distributed in the hope that it will be useful,
13
    but WITHOUT ANY WARRANTY; without even the implied warranty of
14
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
    GNU General Public License for more details.
16

  
17
    You should have received a copy of the GNU General Public License
18
    along with this program; if not, write to the Free Software
19
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
20
    MA  02110-1301, USA.
21

  
22
    For any additional information, do not hesitate to contact us
23
    at info AT gvsig.com, or visit our website www.gvsig.com.
24

  
25
-->
26
<assembly>
27
  <id>gvsig-main-package</id>
28
  <formats>
29
    <format>dir</format>
30
  </formats>
31
  <baseDirectory>.</baseDirectory>
32
  <!-- 
33
  <includeBaseDirectory>true</includeBaseDirectory>
34
   -->
35
  <files>
36
    <file>
37
      <source>target/${project.artifactId}-${project.version}.jar</source>
38
      <outputDirectory>lib</outputDirectory>
39
    </file>
40
  </files>
41
  <fileSets>
42
    <fileSet>
43
      <directory>src/main/resources-main</directory>
44
      <outputDirectory>.</outputDirectory>
45
    </fileSet>
46
  </fileSets>
47
  
48
  <dependencySets>
49
    <dependencySet>
50
      <useProjectArtifact>false</useProjectArtifact>
51
      <useTransitiveDependencies>true</useTransitiveDependencies>
52
      <outputDirectory>lib</outputDirectory>
53
    </dependencySet>
54
  </dependencySets>
55

  
56
</assembly>
57

  
0 58

  
tags/org.gvsig.desktop-2.0.302/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.main/src/main/java/org/gvsig/expressionevaluator/main/MainPicker.java
1
/*
2
 * To change this license header, choose License Headers in Project Properties.
3
 * To change this template file, choose Tools | Templates
4
 * and open the template in the editor.
5
 */
6
package org.gvsig.expressionevaluator.main;
7

  
8
import java.awt.Dimension;
9
import java.io.File;
10
import java.net.URL;
11
import javax.swing.JFrame;
12
import javax.swing.WindowConstants;
13
import org.gvsig.expressionevaluator.ExpressionEvaluatorLocator;
14
import org.gvsig.expressionevaluator.ExpressionEvaluatorManager;
15
import org.gvsig.expressionevaluator.SymbolTable;
16
import org.gvsig.expressionevaluator.swing.Element;
17
import org.gvsig.expressionevaluator.swing.ExpressionEvaluatorSwingLocator;
18
import org.gvsig.expressionevaluator.swing.ExpressionEvaluatorSwingManager;
19
import org.gvsig.expressionevaluator.swing.JExpressionPicker;
20
import org.gvsig.fmap.dal.DALLocator;
21
import org.gvsig.fmap.dal.DataManager;
22
import org.gvsig.fmap.dal.DataStore;
23
import org.gvsig.fmap.dal.feature.FeatureStore;
24
import org.gvsig.tools.library.impl.DefaultLibrariesInitializer;
25

  
26
/**
27
 *
28
 * @author jjdelcerro
29
 */
30
public class MainPicker {
31
    public static void main(String[] args) {
32
        new MainPicker().run(args);
33
    }
34
    
35
    public void run(String[] args) {
36
        new DefaultLibrariesInitializer().fullInitialize();
37
        
38
        ExpressionEvaluatorManager manager = ExpressionEvaluatorLocator.getManager();
39
        ExpressionEvaluatorSwingManager swingManager = ExpressionEvaluatorSwingLocator.getManager();
40
        
41
        JExpressionPicker panel = swingManager.createJExpressionPicker();
42
//        SymbolTable symbolTable = manager.getSymbolTable("DAL.FeatureSymbolTable");
43
//        if( symbolTable!=null ) {
44
//            panel.addSymbolTable(symbolTable);
45
//        }
46
        Element element = swingManager.createElement("DAL.FeatureStoreElement", panel, openStore());
47
        if( element != null ) {
48
            panel.getElements().add(element);
49
        }
50

  
51
        JFrame frame = new JFrame("My JFrame Example");
52
        frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
53
        frame.setPreferredSize(new Dimension(400, 60));
54
        frame.add(panel.asJComponent());
55
        frame.pack();
56
        frame.setVisible(true);        
57
    }
58
   
59
    private FeatureStore openStore() {
60
        try {
61
            DataManager dataManager = DALLocator.getDataManager();
62
            URL url = this.getClass().getResource("/Locations.csv");
63
            DataStore store = dataManager.openStore(
64
                    "CSV", 
65
                    "file",new File(url.toURI()),
66
                    "firstLineHeader", true,
67
                    "delimiter",","
68
            );
69
            return (FeatureStore) store;
70
        } catch (Exception ex) {
71
            throw new RuntimeException(ex);
72
        }
73
    }
74
}
tags/org.gvsig.desktop-2.0.302/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.main/src/main/java/org/gvsig/expressionevaluator/main/MainDialog.java
1
/*
2
 * To change this license header, choose License Headers in Project Properties.
3
 * To change this template file, choose Tools | Templates
4
 * and open the template in the editor.
5
 */
6
package org.gvsig.expressionevaluator.main;
7

  
8
import java.io.File;
9
import java.net.URL;
10
import org.gvsig.expressionevaluator.ExpressionEvaluatorLocator;
11
import org.gvsig.expressionevaluator.ExpressionEvaluatorManager;
12
import org.gvsig.expressionevaluator.SymbolTable;
13
import org.gvsig.expressionevaluator.swing.Element;
14
import org.gvsig.expressionevaluator.swing.ExpressionEvaluatorSwingLocator;
15
import org.gvsig.expressionevaluator.swing.ExpressionEvaluatorSwingManager;
16
import org.gvsig.expressionevaluator.swing.JExpressionBuilder;
17
import org.gvsig.fmap.dal.DALLocator;
18
import org.gvsig.fmap.dal.DataManager;
19
import org.gvsig.fmap.dal.DataStore;
20
import org.gvsig.fmap.dal.feature.FeatureStore;
21
import org.gvsig.fmap.dal.swing.DataSwingManager;
22
import org.gvsig.tools.library.impl.DefaultLibrariesInitializer;
23
import org.gvsig.tools.swing.api.ToolsSwingLocator;
24
import org.gvsig.tools.swing.api.windowmanager.Dialog;
25
import org.gvsig.tools.swing.api.windowmanager.WindowManager;
26
import org.gvsig.tools.swing.api.windowmanager.WindowManager_v2;
27

  
28
/**
29
 *
30
 * @author jjdelcerro
31
 */
32
public class MainDialog {
33
    public static void main(String[] args) {
34
        new MainDialog().run(args);
35
    }
36
    
37
    public void run(String[] args) {
38
        new DefaultLibrariesInitializer().fullInitialize();
39
        
40
        WindowManager_v2 windowManager = (WindowManager_v2) ToolsSwingLocator.getWindowManager();
41
        ExpressionEvaluatorManager manager = ExpressionEvaluatorLocator.getManager();
42
        ExpressionEvaluatorSwingManager swingManager = ExpressionEvaluatorSwingLocator.getManager();
43
        
44
        JExpressionBuilder panel = swingManager.createJExpressionBuilder();
45
//        panel.addSymbolTable(DataManager.DAL_SYMBOL_TABLE_FEATURE);
46
        Element element = swingManager.createElement(
47
                DataSwingManager.FEATURE_STORE_EXPRESSION_ELEMENT, 
48
                panel, 
49
                openStore()
50
        );
51
        if( element != null ) {
52
            panel.addElement(element);
53
        }
54
        Dialog dialog = windowManager.createDialog(
55
                panel.asJComponent(),
56
                "Test eexpression builder",
57
                null, 
58
                WindowManager_v2.BUTTONS_OK_CANCEL
59
        );
60
        dialog.show(WindowManager.MODE.WINDOW);
61
    }
62
   
63
    private FeatureStore openStore() {
64
        try {
65
            DataManager dataManager = DALLocator.getDataManager();
66
            URL url = this.getClass().getResource("/Locations.csv");
67
            DataStore store = dataManager.openStore(
68
                    "CSV", 
69
                    "file",new File(url.toURI()),
70
                    "firstLineHeader", true,
71
                    "delimiter",","
72
            );
73
            return (FeatureStore) store;
74
        } catch (Exception ex) {
75
            throw new RuntimeException(ex);
76
        }
77
    }
78
}
tags/org.gvsig.desktop-2.0.302/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.main/pom.xml
1
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2
    <modelVersion>4.0.0</modelVersion>
3
    <groupId>org.gvsig</groupId>
4
    <artifactId>org.gvsig.expressionevaluator.main</artifactId>
5
    <name>${project.artifactId}</name>
6
    <parent>
7
        <groupId>org.gvsig</groupId>
8
        <artifactId>org.gvsig.expressionevaluator</artifactId>
9
        <version>2.0.286-SNAPSHOT</version>
10
    </parent>
11

  
12

  
13
    <dependencies>
14
        <dependency>
15
            <groupId>org.gvsig</groupId>
16
            <artifactId>org.gvsig.expressionevaluator.lib.api</artifactId>
17
            <scope>compile</scope>
18
        </dependency>
19
        <dependency>
20
            <groupId>org.gvsig</groupId>
21
            <artifactId>org.gvsig.expressionevaluator.lib.impl</artifactId>
22
            <scope>runtime</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.tools.swing.api</artifactId>
32
            <scope>compile</scope>
33
        </dependency>
34
        <dependency>
35
            <groupId>org.gvsig</groupId>
36
            <artifactId>org.gvsig.tools.swing.impl</artifactId>
37
            <scope>runtime</scope>
38
        </dependency>
39
        <dependency>
40
            <groupId>org.gvsig</groupId>
41
            <artifactId>org.gvsig.expressionevaluator.swing.api</artifactId>
42
            <scope>compile</scope>
43
        </dependency>
44
        <dependency>
45
            <groupId>org.gvsig</groupId>
46
            <artifactId>org.gvsig.expressionevaluator.swing.impl</artifactId>
47
            <scope>compile</scope>
48
        </dependency>
49
        <dependency>
50
            <groupId>org.gvsig</groupId>
51
            <artifactId>org.gvsig.fmap.dal.api</artifactId>
52
            <scope>compile</scope>
53
        </dependency>
54
        <dependency>
55
            <groupId>org.gvsig</groupId>
56
            <artifactId>org.gvsig.fmap.dal.swing.api</artifactId>
57
            <scope>compile</scope>
58
        </dependency>
59
        
60
        
61
        <dependency>
62
            <groupId>org.gvsig</groupId>
63
            <artifactId>org.gvsig.fmap.dal.impl</artifactId>
64
            <scope>runtime</scope>
65
        </dependency>
66
        <dependency>
67
            <groupId>org.gvsig</groupId>
68
            <artifactId>org.gvsig.fmap.dal.swing.impl</artifactId>
69
            <scope>runtime</scope>
70
        </dependency>
71
        <dependency>
72
            <groupId>org.gvsig</groupId>
73
            <artifactId>org.gvsig.fmap.dal.file.csv</artifactId>
74
            <scope>runtime</scope>
75
        </dependency>
76
        <dependency>
77
            <groupId>org.gvsig</groupId>
78
            <artifactId>${org.gvsig.metadata.lib.basic.impl}</artifactId>
79
            <scope>runtime</scope>
80
        </dependency>
81
        <dependency>
82
            <groupId>org.gvsig</groupId>
83
            <artifactId>${org.gvsig.fmap.geometry.impl}</artifactId>
84
            <scope>runtime</scope>
85
        </dependency>
86
        <dependency>
87
            <groupId>org.gvsig</groupId>
88
            <artifactId>${org.gvsig.timesupport.lib.impl}</artifactId>
89
            <scope>runtime</scope>
90
        </dependency>
91
        <dependency>
92
            <groupId>org.gvsig</groupId>
93
            <artifactId>${org.gvsig.compat.impl}</artifactId>
94
            <scope>runtime</scope>
95
        </dependency>
96
        <dependency>
97
            <groupId>org.gvsig</groupId>
98
            <artifactId>${org.gvsig.proj.lib.impl}</artifactId>
99
            <scope>runtime</scope>
100
        </dependency>
101
        <dependency>
102
            <groupId>org.gvsig</groupId>
103
            <artifactId>org.gvsig.utils</artifactId>
104
            <scope>runtime</scope>
105
        </dependency>
106
        <!--
107
        <dependency>
108
            <groupId>org.gvsig</groupId>
109
            <artifactId>org.gvsig.scripting.swing.impl</artifactId>
110
            <version>2.3.67-SNAPSHOT</version>
111
            <scope>runtime</scope>
112
        </dependency>
113
        -->
114
    </dependencies>
115

  
116

  
117
    <build>
118
        <plugins>
119
            <plugin> 
120
                <!-- Build an executable JAR --> 
121
                <groupId>org.apache.maven.plugins</groupId> 
122
                <artifactId>maven-jar-plugin</artifactId> 
123
                <version>3.0.2</version> 
124
                <configuration> 
125
                    <archive> 
126
                        <manifest> 
127
                            <addClasspath>true</addClasspath> 
128
                            <classpathPrefix>./</classpathPrefix> 
129
                            <mainClass>org.gvsig.expressionevaluator.main.Main</mainClass> 
130
                        </manifest> 
131
                    </archive> 
132
                </configuration> 
133
            </plugin> 
134
            
135
            <plugin>
136
                <artifactId>maven-assembly-plugin</artifactId>
137
                <configuration>
138
                    <ignoreDirFormatExtensions>true</ignoreDirFormatExtensions>
139
                    <appendAssemblyId>false</appendAssemblyId>
140
                </configuration>
141
                <executions>
142
                    <execution>
143
                        <id>gvsig-plugin-package</id>
144
                        <phase>package</phase>
145
                        <goals>
146
                            <goal>single</goal>
147
                        </goals>
148
                        <configuration>
149
                            <finalName>${project.artifactId}-${project.version}</finalName>
150
                            <descriptors>
151
                                <descriptor>src/main/assembly/gvsig-main-package.xml</descriptor>
152
                            </descriptors>
153
                        </configuration>
154
                    </execution>
155
                </executions>
156
            </plugin>
157

  
158
        </plugins>
159
    </build>
160

  
161

  
162

  
163
</project>
0 164

  
tags/org.gvsig.desktop-2.0.302/org.gvsig.desktop.library/org.gvsig.expressionevaluator/pom.xml
1
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2
  <modelVersion>4.0.0</modelVersion>
3
  <artifactId>org.gvsig.expressionevaluator</artifactId>
4
  <packaging>pom</packaging>
5
  <description>Evaluador de expresiones. Usa una sintaxis similar a las condiciones de SQL.</description>
6
  <parent>
7
    <groupId>org.gvsig</groupId>
8
    <artifactId>org.gvsig.desktop.library</artifactId>
9
    <version>2.0.302</version>
10
  </parent>
11
  
12
  <modules>
13
    <module>org.gvsig.expressionevaluator.lib</module>
14
    <module>org.gvsig.expressionevaluator.swing</module>
15
    <module>org.gvsig.expressionevaluator.geometry</module>
16
    <module>org.gvsig.expressionevaluator.time</module>
17
    <!--
18
    <module>org.gvsig.expressionevaluator.main</module>
19
        -->
20
  </modules>
21
</project>
tags/org.gvsig.desktop-2.0.302/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.lib/pom.xml
1
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2
  <modelVersion>4.0.0</modelVersion>
3
  <parent>
4
    <groupId>org.gvsig</groupId>
5
    <artifactId>org.gvsig.expressionevaluator</artifactId>
6
    <version>2.0.302</version>
7
  </parent>
8
  <groupId>org.gvsig</groupId>
9
  <artifactId>org.gvsig.expressionevaluator.lib</artifactId>
10
  <packaging>pom</packaging>
11
  <modules>
12
    <module>org.gvsig.expressionevaluator.lib.api</module>
13
    <module>org.gvsig.expressionevaluator.lib.impl</module>
14
  </modules>
15
</project>
tags/org.gvsig.desktop-2.0.302/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.lib/org.gvsig.expressionevaluator.lib.impl/src/main/resources/META-INF/services/javax.script.ScriptEngineFactory
1
org.gvsig.expressionevaluator.impl.javascripting.CosaScriptEngineFactory
tags/org.gvsig.desktop-2.0.302/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.lib/org.gvsig.expressionevaluator.lib.impl/src/main/resources/META-INF/services/org.gvsig.tools.library.Library
1
org.gvsig.expressionevaluator.impl.ExpressionEvaluatorImplLibrary
tags/org.gvsig.desktop-2.0.302/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.lib/org.gvsig.expressionevaluator.lib.impl/src/main/resources/org/gvsig/expressionevaluator/functions/en/ST_X.json
1
{
2
    "name": "ST_X",
3
    "group": "OGC",
4
    "template": "ST_X({{geometry}})",
5
    "args": [
6
        "geometry - Geometry point from which you have to calculate "
7
    ],
8
    "description": "Return the X coordinate of the point.",
9
    "returnType": "Double",
10
    "sqlCompatible": true
11
}
tags/org.gvsig.desktop-2.0.302/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.lib/org.gvsig.expressionevaluator.lib.impl/src/main/resources/org/gvsig/expressionevaluator/functions/en/CHAR.json
1
{
2
    "name": "CHAR",
3
    "group": "String",
4
    "template": "CHAR({{int}})",
5
    "args": [
6
        "value whose character is to be returned"
7
    ],
8
    "description": [
9
      "Returns the character that represents the ASCII value.",
10
      "This method returns a string.\n",
11
      "Example:\n",
12
      "CHAR(65)"
13
    ],
14
    "alias": [
15
      "CHR"
16
    ],
17
    "returnType": "String",
18
    "sqlCompatible": true
19
}
tags/org.gvsig.desktop-2.0.302/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.lib/org.gvsig.expressionevaluator.lib.impl/src/main/resources/org/gvsig/expressionevaluator/functions/en/RIGHT.json
1
{
2
    "name": "RIGHT",
3
    "group": "String",
4
    "template": "RIGHT({{string}}, number_of_chars)",
5
    "args": [
6
        "string - The string to extract from",
7
        "number_of_chars - The number of characters to extract"
8
    ],
9
    "description": "Returns the rightmost number of characters. Example: RIGHT(NAME, 3)",
10
    "returnType": "String",
11
    "sqlCompatible": true
12
}
tags/org.gvsig.desktop-2.0.302/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.lib/org.gvsig.expressionevaluator.lib.impl/src/main/resources/org/gvsig/expressionevaluator/functions/en/ST_AsText.json
1
{
2
    "name": "ST_AsText",
3
    "group": "OGC",
4
    "template": "ST_AsText({{geometry}})",
5
    "args": [
6
        "geometry - Geometry from which you have to calculate your WKT"
7
    ],
8
    "description": "Returns the Well-Known Text representation of the geometry.\nWKT format does not maintain precision so to prevent floating truncation, use ST_AsBinary or ST_AsEWKB format for transport.",
9
    "returnType": "String",
10
    "sqlCompatible": true
11
}
12

  
tags/org.gvsig.desktop-2.0.302/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.lib/org.gvsig.expressionevaluator.lib.impl/src/main/resources/org/gvsig/expressionevaluator/functions/en/ST_Touches.json
1
{
2
    "name": "ST_Touches",
3
    "group": "OGC",
4
    "template": "ST_Touches({{geometryA}}, geometryB)",
5
    "args": [
6
        "geometryA - Geometry from which you have to calculate",
7
        "geometryB - Geometry againt you have to calculate"
8
    ],
9
    "description": ["RReturns TRUE if the only points in common between g1 and g2 lie in the union of the boundaries of g1 and g2."],
10
    "returnType": "Boolean",
11
    "sqlCompatible": true
12
}
tags/org.gvsig.desktop-2.0.302/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.lib/org.gvsig.expressionevaluator.lib.impl/src/main/resources/org/gvsig/expressionevaluator/functions/en/SUBSTRING.json
1
{
2
    "name": "SUBSTR",
3
    "group": "String",
4
    "template": "SUBSTR({{string}}, start, length)",
5
    "args": [
6
        "string - The string to extract from",
7
        "start - The start position.",
8
        "lenght - The number of characters to extract."
9
    ],
10
    "description": "Returns a substring of a string starting at a position. If the start index is negative, then the start index is relative to the end of the string. The length is optional. Also supported is: SUBSTRING(string [FROM start] [FOR length]). Example: SUBSTR('[Hello]', 2, 5); SUBSTR('Hello World', -5);",
11
    "returnType": "String",
12
    "sqlCompatible": true
13
}
tags/org.gvsig.desktop-2.0.302/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.lib/org.gvsig.expressionevaluator.lib.impl/src/main/resources/org/gvsig/expressionevaluator/functions/en/FLOOR.json
1
{
2
    "name": "FLOOR",
3
    "group": "Numeric",
4
    "template": "FLOOR({{number}})",
5
    "args": [
6
        "number - A numeric value"
7
    ],
8
    "description": "Returns the largest integer value that is smaller than or equal to a number.",
9
    "returnType": "Double",
10
    "sqlCompatible": true
11
}
tags/org.gvsig.desktop-2.0.302/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.lib/org.gvsig.expressionevaluator.lib.impl/src/main/resources/org/gvsig/expressionevaluator/functions/en/TAN.json
1
{
2
    "name": "TAN",
3
    "group": "Numeric",
4
    "template": "TAN({{a}})",
5
    "args": [
6
        "a - an angle, in radians."
7
    ],
8
    "description": "Returns the tan value.",
9
    "returnType": "Double",
10
    "sqlCompatible": true
11
}
tags/org.gvsig.desktop-2.0.302/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.lib/org.gvsig.expressionevaluator.lib.impl/src/main/resources/org/gvsig/expressionevaluator/functions/en/ST_Envelope.json
1
{
2
    "name": "ST_Envelope",
3
    "group": "OGC",
4
    "template": "ST_Envelope({{geometry}})",
5
    "args": [
6
        "geometry - Geometry from which you have to calculate "
7
    ],
8
    "description": "Returns the float8 minimum bounding box for the supplied geometry, as a geometry. The polygon is defined by the corner points of the bounding box ((MINX, MINY), (MINX, MAXY), (MAXX, MAXY), (MAXX, MINY), (MINX, MINY)). (PostGIS will add a ZMIN/ZMAX coordinate as well).",
9
    "returnType": "Geometry",
10
    "sqlCompatible": true
11
}
tags/org.gvsig.desktop-2.0.302/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.lib/org.gvsig.expressionevaluator.lib.impl/src/main/resources/org/gvsig/expressionevaluator/functions/en/ATAN.json
1
{
2
    "name": "ATAN",
3
    "group": "Numeric",
4
    "template": "ATAN({{a}})",
5
    "args": [
6
        "a - an angle, in radians."
7
    ],
8
    "description": ["Returns the arc tangent of a value; the returned angle is in the range -pi/2 through pi/2. Special cases:",
9
            "- If the argument is NaN, then the result is NaN.",
10
            "- If the argument is zero, then the result is a zero with the same sign as the argument.",
11
            "The computed result must be within 1 ulp of the exact result. Results must be semi-monotonic.",
12
            "ATAN({{a}})"],
13
    "returnType": "Double",
14
    "sqlCompatible": true
15
}
tags/org.gvsig.desktop-2.0.302/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.lib/org.gvsig.expressionevaluator.lib.impl/src/main/resources/org/gvsig/expressionevaluator/functions/en/ST_Intersects.json
1
{
2
    "name": "ST_Intersects",
3
    "group": "OGC",
4
    "template": "ST_Intersects({{geometryA}}, geometryB)",
5
    "args": [
6
        "geometryA - Geometry from which you have to calculate the intersection",
7
        "geometryB - Geometry againt you have to calculate the intersection"
8
    ],
9
    "description": ["If a geometry or geography shares any portion of space then they intersect.",
10
      " For geography -- tolerance is 0.00001 meters (so any points that are close are considered to intersect)",
11
      "Overlaps, Touches, Within all imply spatial intersection.",
12
      "If any of the aforementioned returns true, then the geometries also spatially intersect.",
13
      "Disjoint implies false for spatial intersection."],
14
    "returnType": "Boolean",
15
    "sqlCompatible": true
16
}
tags/org.gvsig.desktop-2.0.302/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.lib/org.gvsig.expressionevaluator.lib.impl/src/main/resources/org/gvsig/expressionevaluator/functions/en/SQRT.json
1
{
2
    "name": "SQRT",
3
    "group": "Numeric",
4
    "template": "SQRT({{number}})",
5
    "args": [
6
        "number - A number to calculate the square root of. Must be greater than 0"
7
    ],
8
    "description": "Return the square root of a number.",
9
    "returnType": "Double",
10
    "sqlCompatible": true
11
}
tags/org.gvsig.desktop-2.0.302/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.lib/org.gvsig.expressionevaluator.lib.impl/src/main/resources/org/gvsig/expressionevaluator/functions/en/ST_NumGeometries.json
1
{
2
    "name": "ST_NumGeometries",
3
    "group": "OGC",
4
    "template": "ST_NumGeometries({{geometry}})",
5
    "args": [
6
        "geometry - Geometry from which you have to calculate "
7
    ],
8
    "description": "Returns the number of Geometries. If geometry is a GEOMETRYCOLLECTION (or MULTI*) return the number of geometries, for single geometries will return 1, otherwise return NULL.",
9
    "returnType": "Integer",
10
    "sqlCompatible": true
11
}
tags/org.gvsig.desktop-2.0.302/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.lib/org.gvsig.expressionevaluator.lib.impl/src/main/resources/org/gvsig/expressionevaluator/functions/en/ST_Dimension.json
1
{
2
    "name": "ST_Dimension",
3
    "group": "OGC",
4
    "template": "ST_Dimension({{geometry}})",
5
    "args": [
6
        "geometry - Geometry from which you have to calculate "
7
    ],
8
    "description": "Returns 0 for POINT, 1 for LINESTRING, 2 for POLYGON, and the largest dimension of the components of a GEOMETRYCOLLECTION. If the dimension is unknown (empty GEOMETRYCOLLECTION) 0 is returned.",
9
    "returnType": "Integer",
10
    "sqlCompatible": true
11
}
tags/org.gvsig.desktop-2.0.302/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.lib/org.gvsig.expressionevaluator.lib.impl/src/main/resources/org/gvsig/expressionevaluator/functions/en/RTRIM.json
1
{
2
    "name": "RTRIM",
3
    "group": "String",
4
    "template": "RTRIM({{string}})",
5
    "args": [
6
        "string - The string to remove trailing spaces from"
7
    ],
8
    "description": "Removes all trailing spaces from a string. Example: RTRIM(NAME)",
9
    "returnType": "String",
10
    "sqlCompatible": true
11
}
tags/org.gvsig.desktop-2.0.302/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.lib/org.gvsig.expressionevaluator.lib.impl/src/main/resources/org/gvsig/expressionevaluator/functions/en/ST_Distance.json
1
{
2
    "name": "ST_Distance",
3
    "group": "OGC",
4
    "template": "ST_Distance({{geometryA}}, geometryB)",
5
    "args": [
6
        "geometryA - Geometry from which you have to calculate the distance",
7
        "geometryB - Geometry againt you have to calculate the distance"
8
    ],
9
    "description": "For geometry type returns the minimum 2D Cartesian distance between two geometries in projected units (spatial ref units). For geography type defaults to return the minimum geodesic distance between two geographies in meters. If use_spheroid is false, a faster sphere calculation is used instead of a spheroid.",
10
    "returnType": "Double",
11
    "sqlCompatible": true
12
}
tags/org.gvsig.desktop-2.0.302/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.lib/org.gvsig.expressionevaluator.lib.impl/src/main/resources/org/gvsig/expressionevaluator/functions/en/ST_Difference.json
1
{
2
    "name": "ST_Difference",
3
    "group": "OGC",
4
    "template": "ST_Difference({{geometryA}}, geometryB)",
5
    "args": [
6
        "geometryA - A geometry",
7
        "geometryB - A geometry"
8
    ],
9
    "description": "Returns a geometry that represents that part of geometry A that does not intersect with geometry B. One can think of this as GeometryA - ST_Intersection(A,B). If A is completely contained in B then an empty geometry collection is returned.",
10
    "returnType": "Geometry",
11
    "sqlCompatible": true
12
}
13

  
tags/org.gvsig.desktop-2.0.302/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.lib/org.gvsig.expressionevaluator.lib.impl/src/main/resources/org/gvsig/expressionevaluator/functions/en/BITAND.json
1
{
2
    "name": "BITAND",
3
    "group": "Numeric",
4
    "template": "BITAND({{expr1}}, expr2)",
5
    "args": [
6
      "expr1 - the fisrt argument",
7
      "expr2 - the second argument"
8
    ],
9
    "description": ["The BITAND function treats its inputs and its output as vectors of bits; the output is the bitwise AND of the inputs.",
10
        "The types of expr1 and expr2 are INTEGER or LONG, and the result is of type INTEGER or LONG.",
11
        "If the types of expr1 or expr2 are not INTEGER or LONG a error is raised."
12
      ],
13
    "returnType": "Long",
14
    "sqlCompatible": true
15
}
tags/org.gvsig.desktop-2.0.302/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.lib/org.gvsig.expressionevaluator.lib.impl/src/main/resources/org/gvsig/expressionevaluator/functions/en/CONCAT.json
1
{
2
    "name": "CONCAT",
3
    "group": "String",
4
    "template": "CONCAT({{string1}}, string2)",
5
    "description": [
6
      "Combines strings.",
7
      "NULL parameters are ignored, and do not cause the result to become NULL",
8
      "This method returns a string.\n",
9
      "Example:\n",
10
      "CONCAT(NAME, '!')"
11
    ],
12
    "returnType": "String",
13
    "sqlCompatible": true
14
}
tags/org.gvsig.desktop-2.0.302/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.lib/org.gvsig.expressionevaluator.lib.impl/src/main/resources/org/gvsig/expressionevaluator/functions/en/PI.json
1
{
2
    "name": "PI",
3
    "group": "Numeric",
4
    "template": "PI()",
5
    "args": [
6
        ""
7
    ],
8
    "description": "Returns pi value.",
9
    "returnType": "Double",
10
    "sqlCompatible": true
11
}
tags/org.gvsig.desktop-2.0.302/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.lib/org.gvsig.expressionevaluator.lib.impl/src/main/resources/org/gvsig/expressionevaluator/functions/en/ST_Intersection.json
1
{
2
    "name": "ST_Intersection",
3
    "group": "OGC",
4
    "template": "ST_Intersection({{geometryA}}, geometryB)",
5
    "args": [
6
        "geometryA - Geometry from which you have to calculate the intersection",
7
        "geometryB - Geometry againt you have to calculate the intersection"
8
    ],
9
    "description": ["Returns a geometry that represents the point set intersection of the Geometries.",
10
      "In other words - that portion of geometry A and geometry B that is shared between the two geometries.",
11
      "If the geometries do not share any space (are disjoint), then an empty geometry collection is returned.",
12
      "ST_Intersection in conjunction with ST_Intersects is very useful for clipping geometries such as in",
13
      "bounding box, buffer, region queries where you only want to return that portion of a geometry",
14
      " that sits in a country or region of interest."],
15
    "returnType": "Geometry",
16
    "sqlCompatible": true
17
}
tags/org.gvsig.desktop-2.0.302/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.lib/org.gvsig.expressionevaluator.lib.impl/src/main/resources/org/gvsig/expressionevaluator/functions/en/CEIL.json
1
{
2
    "name": "CEIL",
3
    "group": "Numeric",
4
    "template": "CEIL({{number}})",
5
    "args": [
6
        "number - numerica value"
7
    ],
8
    "description": [
9
            "Returns the smallest (closest to negative infinity) double value that is greater than or equal to the argument and is equal to a mathematical integer. Special cases:\n",
10
            "- If the argument value is already equal to a mathematical integer, then the result is the same as the argument.",
11
            "- If the argument is NaN or an infinity or positive zero or negative zero, then the result is the same as the argument.",
12
            "- If the argument value is less than zero but greater than -1.0, then the result is negative zero.",
13
            "Note that the value of Math.ceil(x) is exactly the value of -Math.floor(-x)."
14
          ],
15
    "returnType": "Double",
16
    "sqlCompatible": true
17
}
tags/org.gvsig.desktop-2.0.302/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.lib/org.gvsig.expressionevaluator.lib.impl/src/main/resources/org/gvsig/expressionevaluator/functions/en/ST_Centroid.json
1
{
2
    "name": "ST_Centroid",
3
    "group": "OGC",
4
    "template": "ST_Centroid({{geometry}})",
5
    "args": [
6
        "geometry - Geometry from which you have to calculate your centroid"
7
    ],
8
    "description": "Computes the geometric center of a geometry, or equivalently, the center of mass of the geometry as a POINT",
9
    "returnType": "Geometry",
10
    "sqlCompatible": true
11
}
12

  
tags/org.gvsig.desktop-2.0.302/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.lib/org.gvsig.expressionevaluator.lib.impl/src/main/resources/org/gvsig/expressionevaluator/functions/en/ST_StartPoint.json
1
{
2
    "name": "ST_StartPoint",
3
    "group": "OGC",
4
    "template": "ST_StartPoint({{geometry}})",
5
    "args": [
6
        "geometry - Geometry from which you have to calculate "
7
    ],
8
    "description": "Returns the first point.",
9
    "returnType": "Geometry",
10
    "sqlCompatible": true
11
}
tags/org.gvsig.desktop-2.0.302/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.lib/org.gvsig.expressionevaluator.lib.impl/src/main/resources/org/gvsig/expressionevaluator/functions/en/ST_Y.json
1
{
2
    "name": "ST_Y",
3
    "group": "OGC",
4
    "template": "ST_Y({{geometry}})",
5
    "args": [
6
        "geometry - Geometry point from which you have to calculate "
7
    ],
8
    "description": "Return the Y coordinate of the point.",
9
    "returnType": "Double",
10
    "sqlCompatible": true
11
}
tags/org.gvsig.desktop-2.0.302/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.lib/org.gvsig.expressionevaluator.lib.impl/src/main/resources/org/gvsig/expressionevaluator/functions/en/BITGET.json
1
{
2
    "name": "BITGET",
3
    "group": "Numeric",
4
    "template": "BITGET({{bits}}, nbit)",
5
    "args": [
6
      "bits - a bit set",
7
      "nbit - bit to check"
8
    ],
9
    "description": ["Returns true if and only if the first parameter has a bit set ",
10
        " in the position specified by the second parameter. ",
11
        "This method returns a boolean. ",
12
        "The second parameter is zero-indexed; the least significant ",
13
        "it has position 0"
14
      ],
15
    "returnType": "Boolean",
16
    "sqlCompatible": true
17
}
tags/org.gvsig.desktop-2.0.302/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.lib/org.gvsig.expressionevaluator.lib.impl/src/main/resources/org/gvsig/expressionevaluator/functions/en/LOG.json
1
{
2
    "name": "LOG",
3
    "group": "Numeric",
4
    "template": "LOG({{number}})",
5
    "args": [
6
        "number - A number. Must be greater than 0"
7
    ],
8
    "description": "Returns the natural logarithm of a specified number, or the logarithm of the number to the specified base.",
9
    "returnType": "Double",
10
    "sqlCompatible": true
11
}
tags/org.gvsig.desktop-2.0.302/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.lib/org.gvsig.expressionevaluator.lib.impl/src/main/resources/org/gvsig/expressionevaluator/functions/en/ST_GeomFromWKB.json
1
{
2
    "name": "ST_GeomFromWKB",
3
    "group": "OGC",
4
    "template": "ST_GeomFromWKB({{WKB}}, srid)",
5
    "args": [
6
        "WKB - Well known binary representation of the geomtry",
7
        "srid - Optional. Spatial Reference System ID. If SRID is not specified, it defaults to 0 (Unknown)."
8
    ],
9
    "description": "Takes a well-known binary representation of a geometry and a Spatial Reference System ID (SRID) and creates an instance of the appropriate geometry type. This function plays the role of the Geometry Factory in SQL",
10
    "returnType": "Geometry",
11
    "sqlCompatible": true
12
}
tags/org.gvsig.desktop-2.0.302/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.lib/org.gvsig.expressionevaluator.lib.impl/src/main/resources/org/gvsig/expressionevaluator/functions/en/ST_GeomFromText.json
1
{
2
    "name": "ST_GeomFromText",
3
    "group": "OGC",
4
    "template": "ST_GeomFromText({{WKTtext}})",
5
    "args": [
6
        "WKTtext - WKT text representation of the geometry"
7
    ],
8
    "description": "Constructs a ST_Geometry object from the OGC Well-Known text representation.",
9
    "returnType": "Geometry",
10
    "sqlCompatible": true
11
}
tags/org.gvsig.desktop-2.0.302/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.lib/org.gvsig.expressionevaluator.lib.impl/src/main/resources/org/gvsig/expressionevaluator/functions/en/ASCII.json
1
{
2
    "name": "ASCII",
3
    "group": "String",
4
    "template": "ASCII({{string}})",
5
    "args": [
6
        "value whose first ascii character is to be returned"
7
    ],
8
    "description": [
9
      "Returns the ASCII value of the first character in the string.",
10
      "This method returns an int.\n",
11
      "Example:\n",
12
      "ASCII('Hi')"
13
    ],
14
    "returnType": "Integer",
15
    "sqlCompatible": true
16
}
tags/org.gvsig.desktop-2.0.302/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.lib/org.gvsig.expressionevaluator.lib.impl/src/main/resources/org/gvsig/expressionevaluator/functions/en/ST_Disjoint.json
1
{
2
    "name": "ST_Disjoint",
3
    "group": "OGC",
4
    "template": "ST_Disjoint({{geometryA}}, geometryB)",
5
    "args": [
6
        "geometryA - Geometry from which you have to calculate the disjoint",
7
        "geometryB - Geometry againt you have to calculate the disjoint"
8
    ],
9
    "description": "Overlaps, Touches, Within all imply geometries are not spatially disjoint. If any of the aforementioned returns true, then the geometries are not spatially disjoint. Disjoint implies false for spatial intersection.",
10
    "returnType": "Boolean",
11
    "sqlCompatible": true
12
}
tags/org.gvsig.desktop-2.0.302/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.lib/org.gvsig.expressionevaluator.lib.impl/src/main/resources/org/gvsig/expressionevaluator/functions/en/SIN.json
1
{
2
    "name": "SIN",
3
    "group": "Numeric",
4
    "template": "SIN({{a}})",
5
    "args": [
6
        "a - an angle, in radians."
7
    ],
8
    "description": "Returns the sin value.",
9
    "returnType": "Double",
10
    "sqlCompatible": true
11
}
tags/org.gvsig.desktop-2.0.302/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.lib/org.gvsig.expressionevaluator.lib.impl/src/main/resources/org/gvsig/expressionevaluator/functions/en/ASIN.json
1
{
2
    "name": "ASIN",
3
    "group": "Numeric",
4
    "template": "ASIN({{a}})",
5
    "args": [
6
        "a - an angle, in radians."
7
    ],
8
    "description": ["The ASIN() function returns the arc sine of a number.",
9
      "The specified number must be between -1 to 1, otherwise this function returns NULL. "
10
      ],
11
    "returnType": "Double",
12
    "sqlCompatible": true
13
}
tags/org.gvsig.desktop-2.0.302/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.lib/org.gvsig.expressionevaluator.lib.impl/src/main/resources/org/gvsig/expressionevaluator/functions/en/SPACE.json
1
{
2
    "name": "SPACE",
3
    "group": "String",
4
    "template": "SPACE({{number}})",
5
    "args": [
6
        "number - The number of spaces to be returned"
7
    ],
8
    "description": "Returns a string consisting of a number of spaces. Example: SPACE(80)",
9
    "returnType": "String",
10
    "sqlCompatible": true
11
}
tags/org.gvsig.desktop-2.0.302/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.lib/org.gvsig.expressionevaluator.lib.impl/src/main/resources/org/gvsig/expressionevaluator/functions/en/ST_ConvexHull.json
1
{
2
    "name": "ST_ConvexHull",
3
    "group": "OGC",
4
    "template": "ST_ConvexHull({{geometry}})",
5
    "args": [
6
        "geometry - A geometry"
7
    ],
8
    "description": "The convex hull of a geometry represents the minimum convex geometry that encloses all geometries within the set.\nOne can think of the convex hull as the geometry you get by wrapping an elastic band around a set of geometries. This is different from a concave hull which is analogous to shrink-wrapping your geometries.",
9
    "returnType": "Geometry",
10
    "sqlCompatible": true
11
}
12

  
tags/org.gvsig.desktop-2.0.302/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.lib/org.gvsig.expressionevaluator.lib.impl/src/main/resources/org/gvsig/expressionevaluator/functions/en/ST_Union.json
1
{
2
    "name": "ST_Union",
3
    "group": "OGC",
4
    "template": "ST_Union({{geometryA}}, geometryB)",
5
    "args": [
6
        "geometryA - Geometry from which you have to calculate",
7
        "geometryB - Geometry againt you have to calculate"
8
    ],
9
    "description": ["Return an union of both geometries."],
10
    "returnType": "Boolean",
11
    "sqlCompatible": true
12
}
tags/org.gvsig.desktop-2.0.302/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.lib/org.gvsig.expressionevaluator.lib.impl/src/main/resources/org/gvsig/expressionevaluator/functions/en/INSTR.json
1
{
2
    "name": "INSTR",
3
    "group": "String",
4
    "template": "INSTR({{string}}, searchString, startInt)",
5
    "args": [
6
          "string - string where to search",
7
          "searchString - string to search for",
8
          "startInt - Optional. Start position to be used for search"
9
    ],
10
    "description": [
11
      "Returns the location of a search string in a string.",
12
      "If a start position is used, the characters before it are ignored.",
13
      "If position is negative, the rightmost location is returned.",
14
      "0 is returned if the search string is not found.",
15
      "Please note this function is case sensitive, even if the parameters are not.",
16
      "Example:",
17
      "INSTR(EMAIL,'@')"
18
    ],
19
    "returnType": "Integer",
20
    "sqlCompatible": true
21
}
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff