Revision 28172
tags/tmp_build/prototypes/VectorialAvanzado/extensions/extGraph/.project | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<projectDescription> |
|
3 |
<name>extGraph_predes</name> |
|
4 |
<comment></comment> |
|
5 |
<projects> |
|
6 |
</projects> |
|
7 |
<buildSpec> |
|
8 |
<buildCommand> |
|
9 |
<name>org.eclipse.jdt.core.javabuilder</name> |
|
10 |
<arguments> |
|
11 |
</arguments> |
|
12 |
</buildCommand> |
|
13 |
<buildCommand> |
|
14 |
<name>de.loskutov.FileSync.FSBuilder</name> |
|
15 |
<arguments> |
|
16 |
</arguments> |
|
17 |
</buildCommand> |
|
18 |
</buildSpec> |
|
19 |
<natures> |
|
20 |
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature> |
|
21 |
<nature>org.eclipse.jdt.core.javanature</nature> |
|
22 |
<nature>org.eclipse.jem.beaninfo.BeanInfoNature</nature> |
|
23 |
</natures> |
|
24 |
</projectDescription> |
|
0 | 25 |
tags/tmp_build/prototypes/VectorialAvanzado/extensions/extGraph/src-test/com/iver/cit/gvsig/graphtests/TestNetworJdbcWriter.java | ||
---|---|---|
1 |
package com.iver.cit.gvsig.graphtests; |
|
2 |
|
|
3 |
|
|
4 |
import java.io.File; |
|
5 |
import java.sql.Connection; |
|
6 |
import java.sql.DriverManager; |
|
7 |
|
|
8 |
import junit.framework.TestCase; |
|
9 |
|
|
10 |
import org.cresques.cts.IProjection; |
|
11 |
|
|
12 |
import com.iver.cit.gvsig.fmap.DriverException; |
|
13 |
import com.iver.cit.gvsig.fmap.crs.CRSFactory; |
|
14 |
import com.iver.cit.gvsig.fmap.edition.EditionException; |
|
15 |
import com.iver.cit.gvsig.fmap.edition.writers.dbf.DbfWriter; |
|
16 |
import com.iver.cit.gvsig.fmap.layers.FLyrVect; |
|
17 |
import com.iver.cit.gvsig.fmap.layers.LayerFactory; |
|
18 |
import com.iver.cit.gvsig.graph.core.writers.NetworkJdbcWriter; |
|
19 |
|
|
20 |
public class TestNetworJdbcWriter extends TestCase { |
|
21 |
NetworkJdbcWriter netBuilder = new NetworkJdbcWriter(); |
|
22 |
FLyrVect lyr; |
|
23 |
/* |
|
24 |
* Test method for |
|
25 |
* 'com.iver.cit.gvsig.graph.core.NetworkWriter.writeNetwork()' |
|
26 |
*/ |
|
27 |
public void testWriteNetwork() { |
|
28 |
try { |
|
29 |
long t1 = System.currentTimeMillis(); |
|
30 |
netBuilder.writeNetwork(); |
|
31 |
long t2 = System.currentTimeMillis(); |
|
32 |
System.out.println("Building MYSQL time:" + (t2-t1) + " msecs."); |
|
33 |
} catch (EditionException e) { |
|
34 |
// TODO Auto-generated catch block |
|
35 |
e.printStackTrace(); |
|
36 |
} catch (DriverException e) { |
|
37 |
// TODO Auto-generated catch block |
|
38 |
e.printStackTrace(); |
|
39 |
} |
|
40 |
} |
|
41 |
|
|
42 |
|
|
43 |
protected void setUp() throws Exception { |
|
44 |
LayerFactory |
|
45 |
.setDriversPath("../_fwAndami/gvSIG/extensiones/com.iver.cit.gvsig/drivers"); |
|
46 |
IProjection prj = CRSFactory.getCRS("EPSG:23030"); |
|
47 |
File shpFile = new File("c:/ejes.shp"); |
|
48 |
lyr = (FLyrVect) LayerFactory.createLayer("Ejes", |
|
49 |
"gvSIG shp driver", shpFile, prj); |
|
50 |
|
|
51 |
String fieldType = "tipored"; |
|
52 |
String fieldDist = "length"; |
|
53 |
String fieldCost = "cost"; |
|
54 |
String fieldSense = ""; |
|
55 |
|
|
56 |
netBuilder.setLayer(lyr); |
|
57 |
netBuilder.setFieldCost(fieldCost); |
|
58 |
netBuilder.setFieldType(fieldType); |
|
59 |
netBuilder.setFieldDist(fieldDist); |
|
60 |
netBuilder.setFieldSense(fieldSense); |
|
61 |
|
|
62 |
String dbURL = "jdbc:mysql://localhost:3306/test"; |
|
63 |
String user = "root"; |
|
64 |
String pwd = "aquilina"; |
|
65 |
Connection conn; |
|
66 |
conn = DriverManager.getConnection(dbURL, user, pwd); |
|
67 |
|
|
68 |
netBuilder.setConnection(conn); |
|
69 |
|
|
70 |
|
|
71 |
|
|
72 |
} |
|
73 |
|
|
74 |
} |
|
0 | 75 |
tags/tmp_build/prototypes/VectorialAvanzado/extensions/extGraph/src-test/com/iver/cit/gvsig/graphtests/TestNetworkRedWriter.java | ||
---|---|---|
1 |
package com.iver.cit.gvsig.graphtests; |
|
2 |
|
|
3 |
|
|
4 |
import java.io.File; |
|
5 |
|
|
6 |
import junit.framework.TestCase; |
|
7 |
|
|
8 |
import org.cresques.cts.IProjection; |
|
9 |
|
|
10 |
import com.iver.cit.gvsig.fmap.crs.CRSFactory; |
|
11 |
import com.iver.cit.gvsig.fmap.edition.EditionException; |
|
12 |
import com.iver.cit.gvsig.fmap.layers.FLyrVect; |
|
13 |
import com.iver.cit.gvsig.fmap.layers.LayerFactory; |
|
14 |
import com.iver.cit.gvsig.graph.core.writers.NetworkFileRedWriter; |
|
15 |
|
|
16 |
public class TestNetworkRedWriter extends TestCase { |
|
17 |
NetworkFileRedWriter netBuilder = new NetworkFileRedWriter(); |
|
18 |
FLyrVect lyr; |
|
19 |
File redFile; |
|
20 |
/* |
|
21 |
* Test method for |
|
22 |
* 'com.iver.cit.gvsig.graph.core.NetworkWriter.writeNetwork()' |
|
23 |
*/ |
|
24 |
public void testWriteNetwork() { |
|
25 |
try { |
|
26 |
long t1 = System.currentTimeMillis(); |
|
27 |
netBuilder.writeNetwork(); |
|
28 |
long t2 = System.currentTimeMillis(); |
|
29 |
System.out.println("Building RED time:" + (t2-t1) + " msecs."); |
|
30 |
} catch (EditionException e) { |
|
31 |
// TODO Auto-generated catch block |
|
32 |
e.printStackTrace(); |
|
33 |
} |
|
34 |
} |
|
35 |
|
|
36 |
|
|
37 |
protected void setUp() throws Exception { |
|
38 |
LayerFactory |
|
39 |
.setDriversPath("../_fwAndami/gvSIG/extensiones/com.iver.cit.gvsig/drivers"); |
|
40 |
IProjection prj = CRSFactory.getCRS("EPSG:23030"); |
|
41 |
File shpFile = new File("c:/ejes.shp"); |
|
42 |
lyr = (FLyrVect) LayerFactory.createLayer("Ejes", |
|
43 |
"gvSIG shp driver", shpFile, prj); |
|
44 |
|
|
45 |
String redFilePath = lyr.getName().replaceFirst("\\Q.shp\\E", ""); |
|
46 |
redFile = new File("c:/" + redFilePath + ".red"); |
|
47 |
|
|
48 |
redFile.delete(); |
|
49 |
|
|
50 |
String fieldType = "tipored"; |
|
51 |
String fieldDist = "length"; |
|
52 |
String fieldCost = "cost"; |
|
53 |
String fieldSense = ""; |
|
54 |
|
|
55 |
netBuilder.setLayer(lyr); |
|
56 |
netBuilder.setFieldCost(fieldCost); |
|
57 |
netBuilder.setFieldType(fieldType); |
|
58 |
netBuilder.setFieldDist(fieldDist); |
|
59 |
netBuilder.setFieldSense(fieldSense); |
|
60 |
|
|
61 |
netBuilder.setRedFile(redFile); |
|
62 |
|
|
63 |
|
|
64 |
|
|
65 |
} |
|
66 |
|
|
67 |
} |
|
0 | 68 |
tags/tmp_build/prototypes/VectorialAvanzado/extensions/extGraph/src-test/com/iver/cit/gvsig/graphtests/TestAngle.java | ||
---|---|---|
1 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana |
|
2 |
* |
|
3 |
* Copyright (C) 2004 IVER T.I. and Generalitat Valenciana. |
|
4 |
* |
|
5 |
* This program is free software; you can redistribute it and/or |
|
6 |
* modify it under the terms of the GNU General Public License |
|
7 |
* as published by the Free Software Foundation; either version 2 |
|
8 |
* of the License, or (at your option) any later version. |
|
9 |
* |
|
10 |
* This program is distributed in the hope that it will be useful, |
|
11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
13 |
* GNU General Public License for more details. |
|
14 |
* |
|
15 |
* You should have received a copy of the GNU General Public License |
|
16 |
* along with this program; if not, write to the Free Software |
|
17 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA. |
|
18 |
* |
|
19 |
* For more information, contact: |
|
20 |
* |
|
21 |
* Generalitat Valenciana |
|
22 |
* Conselleria d'Infraestructures i Transport |
|
23 |
* Av. Blasco Ib??ez, 50 |
|
24 |
* 46010 VALENCIA |
|
25 |
* SPAIN |
|
26 |
* |
|
27 |
* +34 963862235 |
|
28 |
* gvsig@gva.es |
|
29 |
* www.gvsig.gva.es |
|
30 |
* |
|
31 |
* or |
|
32 |
* |
|
33 |
* IVER T.I. S.A |
|
34 |
* Salamanca 50 |
|
35 |
* 46005 Valencia |
|
36 |
* Spain |
|
37 |
* |
|
38 |
* +34 963163400 |
|
39 |
* dac@iver.es |
|
40 |
*/ |
|
41 |
package com.iver.cit.gvsig.graphtests; |
|
42 |
|
|
43 |
import com.iver.cit.gvsig.graph.core.TurnUtil; |
|
44 |
import com.vividsolutions.jts.algorithm.CGAlgorithms; |
|
45 |
import com.vividsolutions.jts.geom.Coordinate; |
|
46 |
import com.vividsolutions.jts.geom.LineSegment; |
|
47 |
|
|
48 |
import junit.framework.TestCase; |
|
49 |
|
|
50 |
public class TestAngle extends TestCase { |
|
51 |
|
|
52 |
public void testAngle() { |
|
53 |
Coordinate c1, c2, c3; |
|
54 |
double grados; |
|
55 |
|
|
56 |
// 0 grados (no hay giro |
|
57 |
c1 = new Coordinate(-1, 0); |
|
58 |
c2 = new Coordinate(0, 0); |
|
59 |
c3 = new Coordinate(1, 0); |
|
60 |
grados = TurnUtil.angle(c1, c2, c3); |
|
61 |
assertEquals(0.0, grados, 0.0); |
|
62 |
|
|
63 |
|
|
64 |
// 90 grados (giro a la izquierda) |
|
65 |
c1 = new Coordinate(0, -1); |
|
66 |
c2 = new Coordinate(0, 0); |
|
67 |
c3 = new Coordinate(-1, 0); |
|
68 |
grados = TurnUtil.angle(c1, c2, c3); |
|
69 |
assertEquals(90.0, grados, 0.0); |
|
70 |
|
|
71 |
|
|
72 |
// 180 grados (360 grados) giro completo |
|
73 |
c1 = new Coordinate(-1, 0); |
|
74 |
c2 = new Coordinate(0, 0); |
|
75 |
c3 = new Coordinate(-1, 0); |
|
76 |
grados = TurnUtil.angle(c1, c2, c3); |
|
77 |
assertEquals(180.0, grados, 0.0); |
|
78 |
|
|
79 |
// 270 grados (giro a la derecha) |
|
80 |
c1 = new Coordinate(-1, 0); |
|
81 |
c2 = new Coordinate(0, 0); |
|
82 |
c3 = new Coordinate(0, 1); |
|
83 |
grados = TurnUtil.angle(c1, c2, c3); |
|
84 |
assertEquals(270.0, grados, 0.0); |
|
85 |
|
|
86 |
} |
|
87 |
|
|
88 |
private double angle(Coordinate c1, Coordinate c2, Coordinate c3) { |
|
89 |
double resul = 0.0; |
|
90 |
// Normalizamos: |
|
91 |
Coordinate origin = new Coordinate(0.0, 0.0); |
|
92 |
Coordinate cAux1 = new Coordinate(c2.x-c1.x, c2.y-c1.y); |
|
93 |
Coordinate cAux2 = new Coordinate(c3.x-c2.x, c3.y-c2.y); |
|
94 |
LineSegment v1 = new LineSegment(origin, cAux1); |
|
95 |
LineSegment v2 = new LineSegment(origin, cAux2); |
|
96 |
double jtsResul = CGAlgorithms.orientationIndex(c1, c2, c3); |
|
97 |
double prodEscalar = cAux1.x*cAux2.x + cAux1.y*cAux2.y; |
|
98 |
double cosAlpha = prodEscalar / (v1.getLength() * v2.getLength()) ; |
|
99 |
resul = Math.toDegrees(Math.acos(cosAlpha)); |
|
100 |
|
|
101 |
if (cAux1.x * cAux2.y > cAux1.y * cAux2.x) { |
|
102 |
resul = 360 - resul; |
|
103 |
} |
|
104 |
|
|
105 |
System.out.println(resul); |
|
106 |
return resul; |
|
107 |
} |
|
108 |
|
|
109 |
} |
|
110 |
|
|
111 |
|
|
0 | 112 |
tags/tmp_build/prototypes/VectorialAvanzado/extensions/extGraph/src-test/com/iver/cit/gvsig/graphtests/TestLoader.java | ||
---|---|---|
1 |
package com.iver.cit.gvsig.graphtests; |
|
2 |
|
|
3 |
|
|
4 |
import java.io.File; |
|
5 |
import java.sql.Driver; |
|
6 |
import java.sql.DriverManager; |
|
7 |
import java.util.List; |
|
8 |
|
|
9 |
import junit.framework.TestCase; |
|
10 |
|
|
11 |
import org.cresques.cts.IProjection; |
|
12 |
|
|
13 |
import com.hardcode.driverManager.DriverLoadException; |
|
14 |
import com.hardcode.driverManager.DriverValidation; |
|
15 |
import com.hardcode.gdbms.engine.data.DataSource; |
|
16 |
import com.hardcode.gdbms.engine.data.DataSourceFactory; |
|
17 |
import com.hardcode.gdbms.engine.data.NoSuchTableException; |
|
18 |
import com.hardcode.gdbms.engine.data.driver.DBDriver; |
|
19 |
import com.hardcode.gdbms.engine.data.driver.DriverException; |
|
20 |
import com.hardcode.gdbms.engine.data.driver.FileDriver; |
|
21 |
import com.hardcode.gdbms.engine.data.driver.ObjectDriver; |
|
22 |
import com.iver.cit.gvsig.fmap.crs.CRSFactory; |
|
23 |
import com.iver.cit.gvsig.fmap.layers.FLyrVect; |
|
24 |
import com.iver.cit.gvsig.fmap.layers.LayerFactory; |
|
25 |
import com.iver.cit.gvsig.fmap.layers.SelectableDataSource; |
|
26 |
import com.iver.cit.gvsig.graph.GraphException; |
|
27 |
import com.iver.cit.gvsig.graph.core.EdgeWeightLabeller; |
|
28 |
import com.iver.cit.gvsig.graph.core.FNode; |
|
29 |
import com.iver.cit.gvsig.graph.core.IGraph; |
|
30 |
import com.iver.cit.gvsig.graph.core.JungGraph; |
|
31 |
import com.iver.cit.gvsig.graph.core.Network; |
|
32 |
import com.iver.cit.gvsig.graph.core.loaders.NetworkLoader; |
|
33 |
import com.iver.cit.gvsig.graph.core.loaders.NetworkRedLoader; |
|
34 |
import com.iver.cit.gvsig.graph.solvers.Route; |
|
35 |
import com.iver.cit.gvsig.graph.solvers.ShortestPathSolverAStar; |
|
36 |
import com.iver.cit.gvsig.graph.solvers.ShortestPathSolverDijkstra; |
|
37 |
|
|
38 |
import edu.uci.ics.jung.algorithms.shortestpath.DijkstraDistance; |
|
39 |
import edu.uci.ics.jung.algorithms.shortestpath.DijkstraShortestPath; |
|
40 |
import edu.uci.ics.jung.graph.ArchetypeVertex; |
|
41 |
import edu.uci.ics.jung.graph.Graph; |
|
42 |
|
|
43 |
public class TestLoader extends TestCase { |
|
44 |
DataSourceFactory dsf; |
|
45 |
|
|
46 |
FLyrVect lyr; |
|
47 |
|
|
48 |
public void testLoadRedNetwork() { |
|
49 |
NetworkRedLoader netLoader = new NetworkRedLoader(); |
|
50 |
IGraph g = netLoader.loadNetwork(); |
|
51 |
|
|
52 |
// Probamos la algoritmia: distancia entre nodo 1 y nodo 1000 |
|
53 |
Network net = new Network(); |
|
54 |
ShortestPathSolverDijkstra solver = new ShortestPathSolverDijkstra(); |
|
55 |
net.setLayer(lyr); |
|
56 |
net.setGraph(g); |
|
57 |
solver.setNetwork(net); |
|
58 |
|
|
59 |
ShortestPathSolverAStar solverAstar = new ShortestPathSolverAStar(); |
|
60 |
solverAstar.setNetwork(net); |
|
61 |
|
|
62 |
try { |
|
63 |
|
|
64 |
// Primer punto |
|
65 |
net.addFlag(433647.09370, 4488029, 10); |
|
66 |
|
|
67 |
// Segundo punto |
|
68 |
net.addFlag(437290.96875, 4481547, 10); |
|
69 |
long t1 = System.currentTimeMillis(); |
|
70 |
Route resul; |
|
71 |
solver.setFielStreetName("Nombre"); |
|
72 |
resul = solver.calculateRoute(); |
|
73 |
long t2 = System.currentTimeMillis(); |
|
74 |
|
|
75 |
// assertEquals(dist.doubleValue(), 8887, 0); |
|
76 |
|
|
77 |
System.out.println("fjp dist =" + resul.getLength() |
|
78 |
+ " meters. msecs: " + (t2 - t1)); |
|
79 |
|
|
80 |
t1 = System.currentTimeMillis(); |
|
81 |
Route resul2; |
|
82 |
solverAstar.setFielStreetName("Nombre"); |
|
83 |
resul2 = solverAstar.calculateRoute(); |
|
84 |
t2 = System.currentTimeMillis(); |
|
85 |
|
|
86 |
System.out.println("ASTAR dist =" + resul2.getLength() |
|
87 |
+ " meters. msecs: " + (t2 - t1)); |
|
88 |
|
|
89 |
assertEquals(resul.getLength(), resul2.getLength(), 0.0); |
|
90 |
|
|
91 |
JungGraph jG = new JungGraph(g); |
|
92 |
// Probamos la algoritmia: distancia entre nodo 1 y nodo 1000 |
|
93 |
DijkstraShortestPath distCalculator = new DijkstraShortestPath(jG, |
|
94 |
new EdgeWeightLabeller()); |
|
95 |
FNode vOrig = jG.getVertexByID(1); |
|
96 |
FNode vEnd = jG.getVertexByID(1000); |
|
97 |
t1 = System.currentTimeMillis(); |
|
98 |
Number dist = distCalculator.getDistance(vOrig, vEnd); |
|
99 |
t2 = System.currentTimeMillis(); |
|
100 |
|
|
101 |
// assertEquals(dist.doubleValue(), 8887, 0); |
|
102 |
|
|
103 |
System.out |
|
104 |
.println("dist =" + dist + " meters. msecs: " + (t2 - t1)); |
|
105 |
|
|
106 |
System.out.println(vOrig + " - " + vEnd); |
|
107 |
System.out.println(vOrig.getX() + ", " + vOrig.getY() + " - " |
|
108 |
+ vEnd.getX() + ", " + vEnd.getY()); |
|
109 |
|
|
110 |
assertEquals(resul.getLength(), dist.doubleValue(), 0.4); |
|
111 |
|
|
112 |
} catch (GraphException e) { |
|
113 |
// TODO Auto-generated catch block |
|
114 |
e.printStackTrace(); |
|
115 |
} |
|
116 |
|
|
117 |
} |
|
118 |
|
|
119 |
/* |
|
120 |
* Test method for |
|
121 |
* 'com.iver.cit.gvsig.graph.core.NetworkLoader.loadNetwork()' |
|
122 |
*/ |
|
123 |
public void testLoadNetwork() { |
|
124 |
// if (true) return; |
|
125 |
NetworkLoader netLoader = new NetworkLoader(true); |
|
126 |
|
|
127 |
DataSource dsNodes; |
|
128 |
try { |
|
129 |
dsNodes = dsf.createRandomDataSource("nodes", |
|
130 |
DataSourceFactory.MANUAL_OPENING); |
|
131 |
|
|
132 |
DataSource dsEdges = dsf.createRandomDataSource("edges", |
|
133 |
DataSourceFactory.MANUAL_OPENING); |
|
134 |
|
|
135 |
SelectableDataSource sdsNodes = new SelectableDataSource(dsNodes); |
|
136 |
SelectableDataSource sdsEdges = new SelectableDataSource(dsEdges); |
|
137 |
|
|
138 |
netLoader.setNodeReader(sdsNodes); |
|
139 |
netLoader.setEdgeReader(sdsEdges); |
|
140 |
|
|
141 |
Graph g = netLoader.loadJungNetwork(); |
|
142 |
|
|
143 |
System.out.println("Num nodos=" + g.numVertices() + " numEdges = " |
|
144 |
+ g.numEdges()); |
|
145 |
|
|
146 |
// Probamos la algoritmia: distancia entre nodo 1 y nodo 1000 |
|
147 |
DijkstraDistance distCalculator = new DijkstraDistance(g, |
|
148 |
new EdgeWeightLabeller()); |
|
149 |
ArchetypeVertex vOrig = netLoader.getIndexer().getVertex(1); |
|
150 |
ArchetypeVertex vEnd = netLoader.getIndexer().getVertex(1000); |
|
151 |
long t1 = System.currentTimeMillis(); |
|
152 |
Number dist = distCalculator.getDistance(vOrig, vEnd); |
|
153 |
long t2 = System.currentTimeMillis(); |
|
154 |
|
|
155 |
// assertEquals(dist.doubleValue(), 8887, 0); |
|
156 |
|
|
157 |
System.out |
|
158 |
.println("dist =" + dist + " meters. msecs: " + (t2 - t1)); |
|
159 |
System.out.println(vOrig + " - " + vEnd); |
|
160 |
System.out.println(vOrig.getUserDatum("X") + ", " |
|
161 |
+ vOrig.getUserDatum("Y") + " - " + vEnd.getUserDatum("X") |
|
162 |
+ ", " + vEnd.getUserDatum("Y")); |
|
163 |
|
|
164 |
} catch (DriverLoadException e) { |
|
165 |
// TODO Auto-generated catch block |
|
166 |
e.printStackTrace(); |
|
167 |
} catch (NoSuchTableException e) { |
|
168 |
// TODO Auto-generated catch block |
|
169 |
e.printStackTrace(); |
|
170 |
} catch (DriverException e) { |
|
171 |
// TODO Auto-generated catch block |
|
172 |
e.printStackTrace(); |
|
173 |
} |
|
174 |
|
|
175 |
} |
|
176 |
|
|
177 |
protected void setUp() throws Exception { |
|
178 |
// Setup de los drivers |
|
179 |
LayerFactory |
|
180 |
.setDriversPath("../_fwAndami/gvSIG/extensiones/com.iver.cit.gvsig/drivers"); |
|
181 |
|
|
182 |
// Setup del factory de DataSources |
|
183 |
dsf = LayerFactory.getDataSourceFactory(); |
|
184 |
|
|
185 |
// Setup de las tablas |
|
186 |
dsf.addFileDataSource("gdbms dbf driver", "nodes", "c:/nodes.dbf"); |
|
187 |
dsf.addFileDataSource("gdbms dbf driver", "edges", "c:/edges.dbf"); |
|
188 |
|
|
189 |
IProjection prj = CRSFactory.getCRS("EPSG:23030"); |
|
190 |
File shpFile = new File("c:/ejes.shp"); |
|
191 |
lyr = (FLyrVect) LayerFactory.createLayer("Ejes", "gvSIG shp driver", |
|
192 |
shpFile, prj); |
|
193 |
|
|
194 |
} |
|
195 |
|
|
196 |
protected void tearDown() throws Exception { |
|
197 |
// TODO Auto-generated method stub |
|
198 |
super.tearDown(); |
|
199 |
} |
|
200 |
|
|
201 |
} |
|
0 | 202 |
tags/tmp_build/prototypes/VectorialAvanzado/extensions/extGraph/src-test/com/iver/cit/gvsig/graphtests/TestOneToMany.java | ||
---|---|---|
1 |
package com.iver.cit.gvsig.graphtests; |
|
2 |
|
|
3 |
import java.io.File; |
|
4 |
|
|
5 |
import junit.framework.TestCase; |
|
6 |
|
|
7 |
import org.cresques.cts.IProjection; |
|
8 |
|
|
9 |
import com.iver.cit.gvsig.fmap.crs.CRSFactory; |
|
10 |
import com.iver.cit.gvsig.fmap.layers.FLyrVect; |
|
11 |
import com.iver.cit.gvsig.fmap.layers.LayerFactory; |
|
12 |
import com.iver.cit.gvsig.graph.GraphException; |
|
13 |
import com.iver.cit.gvsig.graph.core.GvFlag; |
|
14 |
import com.iver.cit.gvsig.graph.core.IGraph; |
|
15 |
import com.iver.cit.gvsig.graph.core.Network; |
|
16 |
import com.iver.cit.gvsig.graph.core.loaders.NetworkRedLoader; |
|
17 |
import com.iver.cit.gvsig.graph.solvers.OneToManySolver; |
|
18 |
import com.iver.cit.gvsig.graph.solvers.Route; |
|
19 |
|
|
20 |
public class TestOneToMany extends TestCase { |
|
21 |
|
|
22 |
FLyrVect lyr; |
|
23 |
Network net; |
|
24 |
IGraph g; |
|
25 |
|
|
26 |
|
|
27 |
protected void setUp() throws Exception { |
|
28 |
super.setUp(); |
|
29 |
// Setup de los drivers |
|
30 |
LayerFactory |
|
31 |
.setDriversPath("../_fwAndami/gvSIG/extensiones/com.iver.cit.gvsig/drivers"); |
|
32 |
|
|
33 |
// Setup del factory de DataSources |
|
34 |
|
|
35 |
IProjection prj = CRSFactory.getCRS("EPSG:23030"); |
|
36 |
File shpFile = new File("test_files/ejes.shp"); |
|
37 |
lyr = (FLyrVect) LayerFactory.createLayer("Ejes", "gvSIG shp driver", |
|
38 |
shpFile, prj); |
|
39 |
|
|
40 |
NetworkRedLoader netLoader = new NetworkRedLoader(); |
|
41 |
netLoader.setNetFile(new File("test_files/ejes.net")); |
|
42 |
g = netLoader.loadNetwork(); |
|
43 |
|
|
44 |
net = new Network(); |
|
45 |
|
|
46 |
|
|
47 |
|
|
48 |
|
|
49 |
|
|
50 |
|
|
51 |
|
|
52 |
} |
|
53 |
|
|
54 |
public void testCalculate() throws GraphException { |
|
55 |
OneToManySolver solver = new OneToManySolver(); |
|
56 |
net.setLayer(lyr); |
|
57 |
net.setGraph(g); |
|
58 |
solver.setNetwork(net); |
|
59 |
|
|
60 |
// Source flag |
|
61 |
GvFlag sourceFlag = net.createFlag(441901, 4475977, 10); |
|
62 |
solver.setSourceFlag(sourceFlag); |
|
63 |
|
|
64 |
// Destination flags |
|
65 |
net.addFlag(441901, 4475977, 10); |
|
66 |
net.addFlag(442830, 4476201, 200); |
|
67 |
net.addFlag(442673, 4475125, 200); |
|
68 |
long t1 = System.currentTimeMillis(); |
|
69 |
solver.putDestinationsOnNetwork(); |
|
70 |
solver.calculate(); |
|
71 |
solver.removeDestinationsFromNetwork(); |
|
72 |
long t2 = System.currentTimeMillis(); |
|
73 |
System.out.println("tiempo:" + (t2-t1)); |
|
74 |
|
|
75 |
GvFlag flags[] = net.getFlags(); |
|
76 |
|
|
77 |
for (int i=0; i < flags.length; i++) |
|
78 |
{ |
|
79 |
System.out.println("Flag " + i + " " + flags[i].getCost()); |
|
80 |
} |
|
81 |
// assertEquals(dist.doubleValue(), 8887, 0); |
|
82 |
|
|
83 |
|
|
84 |
|
|
85 |
|
|
86 |
|
|
87 |
} |
|
88 |
|
|
89 |
} |
|
0 | 90 |
tags/tmp_build/prototypes/VectorialAvanzado/extensions/extGraph/src-test/com/iver/cit/gvsig/graphtests/AllTests.java | ||
---|---|---|
1 |
package com.iver.cit.gvsig.graphtests; |
|
2 |
|
|
3 |
|
|
4 |
import junit.framework.Test; |
|
5 |
import junit.framework.TestSuite; |
|
6 |
|
|
7 |
public class AllTests { |
|
8 |
|
|
9 |
public static Test suite() { |
|
10 |
TestSuite suite = new TestSuite( |
|
11 |
"Test for com.iver.cit.gvsig.graph.test"); |
|
12 |
//$JUnit-BEGIN$ |
|
13 |
suite.addTestSuite(TestLoader.class); |
|
14 |
//$JUnit-END$ |
|
15 |
return suite; |
|
16 |
} |
|
17 |
|
|
18 |
} |
|
19 |
|
|
20 |
|
|
0 | 21 |
tags/tmp_build/prototypes/VectorialAvanzado/extensions/extGraph/src-test/com/iver/cit/gvsig/graphtests/TestNetworkGvTableWriter.java | ||
---|---|---|
1 |
package com.iver.cit.gvsig.graphtests; |
|
2 |
|
|
3 |
|
|
4 |
import java.io.File; |
|
5 |
import java.sql.Connection; |
|
6 |
import java.sql.ResultSet; |
|
7 |
import java.sql.SQLException; |
|
8 |
import java.sql.Statement; |
|
9 |
|
|
10 |
import junit.framework.TestCase; |
|
11 |
|
|
12 |
import org.cresques.cts.IProjection; |
|
13 |
|
|
14 |
import com.hardcode.gdbms.driver.mysql.MySQLDriver; |
|
15 |
import com.iver.cit.gvsig.fmap.DriverException; |
|
16 |
import com.iver.cit.gvsig.fmap.crs.CRSFactory; |
|
17 |
import com.iver.cit.gvsig.fmap.edition.EditionException; |
|
18 |
import com.iver.cit.gvsig.fmap.edition.writers.JdbcWriter; |
|
19 |
import com.iver.cit.gvsig.fmap.edition.writers.dbf.DbfWriter; |
|
20 |
import com.iver.cit.gvsig.fmap.layers.FLyrVect; |
|
21 |
import com.iver.cit.gvsig.fmap.layers.LayerFactory; |
|
22 |
import com.iver.cit.gvsig.graph.GraphException; |
|
23 |
import com.iver.cit.gvsig.graph.core.writers.NetworkFileRedWriter; |
|
24 |
import com.iver.cit.gvsig.graph.core.writers.NetworkGvTableWriter; |
|
25 |
|
|
26 |
public class TestNetworkGvTableWriter extends TestCase { |
|
27 |
NetworkGvTableWriter netBuilder = new NetworkGvTableWriter(); |
|
28 |
FLyrVect lyr; |
|
29 |
/* |
|
30 |
* Test method for |
|
31 |
* 'com.iver.cit.gvsig.graph.core.NetworkWriter.writeNetwork()' |
|
32 |
*/ |
|
33 |
public void testWriteNetwork() { |
|
34 |
try { |
|
35 |
long t1 = System.currentTimeMillis(); |
|
36 |
netBuilder.writeNetwork(); |
|
37 |
long t2 = System.currentTimeMillis(); |
|
38 |
System.out.println("Building DBF time:" + (t2-t1) + " msecs."); |
|
39 |
} catch (EditionException e) { |
|
40 |
// TODO Auto-generated catch block |
|
41 |
e.printStackTrace(); |
|
42 |
} catch (DriverException e) { |
|
43 |
// TODO Auto-generated catch block |
|
44 |
e.printStackTrace(); |
|
45 |
} |
|
46 |
} |
|
47 |
|
|
48 |
|
|
49 |
protected void setUp() throws Exception { |
|
50 |
LayerFactory |
|
51 |
.setDriversPath("../_fwAndami/gvSIG/extensiones/com.iver.cit.gvsig/drivers"); |
|
52 |
IProjection prj = CRSFactory.getCRS("EPSG:23030"); |
|
53 |
File shpFile = new File("c:/ejes.shp"); |
|
54 |
lyr = (FLyrVect) LayerFactory.createLayer("Ejes", |
|
55 |
"gvSIG shp driver", shpFile, prj); |
|
56 |
|
|
57 |
String fieldType = "tipored"; |
|
58 |
String fieldDist = "length"; |
|
59 |
String fieldCost = "cost"; |
|
60 |
String fieldSense = ""; |
|
61 |
|
|
62 |
netBuilder.setLayer(lyr); |
|
63 |
netBuilder.setFieldCost(fieldCost); |
|
64 |
netBuilder.setFieldType(fieldType); |
|
65 |
netBuilder.setFieldDist(fieldDist); |
|
66 |
netBuilder.setFieldSense(fieldSense); |
|
67 |
DbfWriter nodeWriter = new DbfWriter(); |
|
68 |
File nodeFile = new File("c:/nodes.dbf"); |
|
69 |
nodeFile.delete(); |
|
70 |
nodeWriter.setFile(nodeFile); |
|
71 |
|
|
72 |
File edgeFile = new File("c:/edges.dbf"); |
|
73 |
DbfWriter edgeWriter = new DbfWriter(); |
|
74 |
edgeWriter.setFile(edgeFile); |
|
75 |
|
|
76 |
|
|
77 |
netBuilder.setEdgeWriter(edgeWriter); |
|
78 |
netBuilder.setNodeWriter(nodeWriter); |
|
79 |
|
|
80 |
|
|
81 |
|
|
82 |
} |
|
83 |
|
|
84 |
} |
|
0 | 85 |
tags/tmp_build/prototypes/VectorialAvanzado/extensions/extGraph/config/text.properties | ||
---|---|---|
1 |
Aplicar_tolerancia_de_snap=Usar tolerancia para crear la topolog\u00EDa de red |
|
2 |
Aplicar_un_CLEAN_sobre_la_capa_original=Corregir topol\u00F3gicamente la capa original |
|
3 |
Calcular_la_red_sobre_la_capa_original=Calcular la red sobre la capa original |
|
4 |
center_on_flag=Centrar sobre parada |
|
5 |
Clean_de_lineas=Correcci\u00F3n autom\u00E1tica de errores topol\u00F3gicos |
|
6 |
Clean_Test=Clean |
|
7 |
Clear=Borrar |
|
8 |
Clear_Barriers=Quitar todas las barreras |
|
9 |
Clear_Flags=Quitar todas las paradas |
|
10 |
Clear_Routes=Borrar todas las rutas |
|
11 |
Conversion_de_datos=Conversi\u00F3n de datos |
|
12 |
Create_Network=Generar topolog\u00EDa de red |
|
13 |
de=de |
|
14 |
Defines_a_dot_density_symbol_based_on_a_field_value=Define simbolog\u00EDa de densidad de puntos basada en el valor de un campo determinado |
|
15 |
Error_ejecucion=Error de ejecuci\u00f3n |
|
16 |
Error_entrada_datos=Error de entrada de datos |
|
17 |
Error_entrada_datos= |
|
18 |
Error_escritura_resultados=Error de escritura de resultados |
|
19 |
Error_fallo_geoproceso=Se ha producido un fallo durante la ejecuci\u00f3n del geoproceso |
|
20 |
Error_preparar_escritura_resultados=Se ha producido un error al preparar la capa de resultados |
|
21 |
Error_seleccionar_resultado=Es necesario especificar un fichero de resultados |
|
22 |
Especifique_fichero_shp_resultante=Especifique el fichera Shape resultante |
|
23 |
Fichero_para_capa_corregida=Fichero para la capa corregida |
|
24 |
Generando_red_a_partir_de_capa_lineal=Generando red a partir de capa lineal |
|
25 |
Generar_Red==Generar topolog\u00EDa de red |
|
26 |
Limpiando_lineas=Limpiando l\u00EDneas |
|
27 |
LineClean=Correcci\u00F3n de errores topol\u00F3gicos en capa lineal |
|
28 |
LineClean._Progress_Message=Corrigiendo topolog\u00EDa de la capa... |
|
29 |
Load_Network=Cargar topolog\u00EDa de red previamente generada |
|
30 |
Load_Red=Cargar fichero de topolog\u00EDa de red previamente calculado |
|
31 |
Manage_Flags=Gesti\u00F3n de paradas |
|
32 |
Network=Red |
|
33 |
no_se_puede_pasar_por_todas_las_paradas=No se puede pasar por todas las paradas |
|
34 |
Procesando_linea=Construyendo red |
|
35 |
Ruta_borrada_o_inexistente=Ruta borrada o inexistente |
|
36 |
Ruta_no_encontrada=Ruta no encontrada |
|
37 |
Seleccionar_capa_con_puntos_de_parada=Convertir capa en puntos de parada |
|
38 |
Seleccione_una_capa_de_puntos_para_crear_paradas=Escoja una capa de puntos para importar paradas |
|
39 |
Seleccione_un_formato_para_guardar_la_ruta=Seleccione un formato vectorial para guardar la ruta mas reciente. |
|
40 |
Seleccione_un_formato_para_guardar_los_flags=Seleccione un formato vectorial para guardar las paradas. |
|
41 |
Shortest_Path=Camino m\u00EDnimo |
|
42 |
Trabajar_con_las_coordenadas_originales=Trabajar con las coordenadas originales |
|
43 |
angle=\u00E1ngulo |
|
44 |
based_upon_the_road_type= |
|
45 |
cannot_apply_to_a_non_polygon_layer=S\u00F3lo se puede aplicar la leyenda a una capa de pol\u00EDgonos |
|
46 |
change=cambiar |
|
47 |
character_marker=Marcador de car\u00E1cter |
|
48 |
character_marker_symbol=S\u00EDmbolo Marcador de car\u00E1cter |
|
49 |
choose_marker=Elija marcador |
|
50 |
color=color |
|
51 |
cost=coste |
|
52 |
cost_field=campo de coste |
|
53 |
cost_field_text=Cost |
|
54 |
cost_from_a_table_field= |
|
55 |
cost_units=unidades de coste |
|
56 |
cost_units_text=unidades de coste |
|
57 |
could_not_find_symbol_directory= |
|
58 |
could_not_setup_legend=No se pudo crear la leyenda. Por favor, revise los valores |
|
59 |
create_network=Generar topolog\u00EDa de red |
|
60 |
criterium=Criterio |
|
61 |
densities=Densidades |
|
62 |
done=hecho |
|
63 |
dot_density=Densidad de puntos |
|
64 |
dot_size=Tama\u00F1o de punto |
|
65 |
dot_value=Valor del punto |
|
66 |
enable=habilitado |
|
67 |
explanation_sense_field=<html>1-> Seg\u00FAn est\u00E1 digitalizado<br>2-> inverso<br>3-> Se puede circular en los 2 sentidos)</html> |
|
68 |
feet=pies |
|
69 |
field_configuration=Configuraci\u00F3n de campos |
|
70 |
fill_color=Color de relleno |
|
71 |
fill_properties=Propiedades de relleno |
|
72 |
flag_amount=N\u00BA de paradas |
|
73 |
generate_report=Ver informe de ruta |
|
74 |
grid=Malla |
|
75 |
high=Alta |
|
76 |
hours=horas |
|
77 |
inches=pulgadas |
|
78 |
invalid_layer=capa inv\u00E1lida |
|
79 |
la_capa_no_tiene_red_asociada=La capa no tiene ninguna red asociada |
|
80 |
labelling_field=Campo de densidad |
|
81 |
layer=capa |
|
82 |
layers=Capas |
|
83 |
length_field_text=Length |
|
84 |
line_symbols=s\u00EDmbolos de l\u00EDnea |
|
85 |
load_stages=Cargar paradas |
|
86 |
low=Baja |
|
87 |
marker_fill=Relleno de marcadores |
|
88 |
medium=Media |
|
89 |
meters=metros |
|
90 |
miles=millas |
|
91 |
millimeters= |
|
92 |
minutes= |
|
93 |
monetary= |
|
94 |
nautic_miles= |
|
95 |
net_analyst= |
|
96 |
new_flag=Nueva parada |
|
97 |
offset=Desplazamiento |
|
98 |
options=opciones |
|
99 |
outline=Borde |
|
100 |
outline_color=Color del borde |
|
101 |
outline_color=Color del borde |
|
102 |
outline_width=Tama\u00F1o del borde |
|
103 |
point_symbols=S\u00EDmbolos para puntos |
|
104 |
polygon_symbols=S\u00EDmbolos para pol\u00EDgonos |
|
105 |
preview=Previsualizaci\u00F3n |
|
106 |
properties=Propiedades |
|
107 |
put_barrier=Establecer tramo prohibido |
|
108 |
put_flag_on_arc=Situar parada encima de tramo |
|
109 |
put_flag_on_node=Situar parada encima de nodo |
|
110 |
random=Aleatorio |
|
111 |
reset=Limpiar |
|
112 |
route_control_panel=Gestor de paradas |
|
113 |
save=Guardar |
|
114 |
save_error=Error guardando |
|
115 |
save_route=Salvar ruta |
|
116 |
save_stages=Salvar paradas |
|
117 |
seconds=segundos |
|
118 |
select_length_field=Seleccione el campo de longitud (metros) |
|
119 |
select_sense_field=Seleccione el campo de sentido |
|
120 |
select_street_route_field_name=Seleccione el campo para crear el informe de ruta (nombre de v\u00EDa por donde se pasa) |
|
121 |
select_type_field=Seleccione el campo de tipo de v\u00EDa. |
|
122 |
sense_field_text=Direction |
|
123 |
separation=Separaci\u00F3n |
|
124 |
shape_type_not_yet_supported= |
|
125 |
shortest_path_not_found=No se ha encontrado ninguna ruta. |
|
126 |
shortestpath=Camino m\u00EDnimo |
|
127 |
simple_fill=Relleno sencillo |
|
128 |
size=tama\u00F1o |
|
129 |
solucion_no_valida=Soluci?n no valida |
|
130 |
stage=parada |
|
131 |
symbol_library= |
|
132 |
symbol_property_editor=Editor de propiedades del s\u00EDmbolo |
|
133 |
symbol_selector= |
|
134 |
Topology_Test=Topolog?a |
|
135 |
Triangulation_Test=Triangulacion |
|
136 |
total_route_cost= |
|
137 |
trying_to_add_a_non_TypeSymbolEditor_panel=Se est\u00E1 intentando a\u00F1adir un panel que no es del tipo TypeSymbolEditor |
|
138 |
two_panels_with_the_same_name=Dos paneles con el mismo nombre |
|
139 |
type=Tipo |
|
140 |
type_field_text= |
|
141 |
units=Unidades |
|
142 |
unknown_longitude_units= |
|
143 |
unknown_time_units= |
|
144 |
unknown_units= |
|
145 |
use_line_length=Usar longitud de l\u00EDnea |
|
146 |
use_symbol= |
|
147 |
width=ancho |
|
148 |
yards= |
|
149 |
piloto_de_redes=Piloto de redes |
|
150 |
msg_set_velocities=Por favor, establezca la velocidad para cada tipo de tramo (en Km / hora) |
|
151 |
col_arc_type=Tipo de via |
|
152 |
col_km_per_hour=Km/hora |
|
153 |
set_velocities=Fijar velocidades |
|
0 | 154 |
tags/tmp_build/prototypes/VectorialAvanzado/extensions/extGraph/config/about.htm | ||
---|---|---|
1 |
<html> |
|
2 |
<head> |
|
3 |
<title>Extesión del piloto de redes.</title> |
|
4 |
<meta content=""> |
|
5 |
<style></style> |
|
6 |
</head> |
|
7 |
<body> |
|
8 |
<table width="60%" border="0"> |
|
9 |
<tr> |
|
10 |
<td width="64%"><img src="images/logo_horiz_bicolor_gva.png" width="329" height="50"></td> |
|
11 |
<td width="36%"><div align="right"><img src="images/logoIver.png" width="87" height="50"></div></td> |
|
12 |
</tr> |
|
13 |
<tr> |
|
14 |
<td colspan="2"><font face="Arial, Helvetica, sans-serif">© Copyright |
|
15 |
Generalitat Valenciana, IVER T.I. 2007.</font></td> |
|
16 |
</tr> |
|
17 |
</table> |
|
18 |
<h3>Piloto gandador del concurso de Redes.</h3> |
|
19 |
<p><br><br><b> Build Number: #build.number#</b></p> |
|
20 |
</body> |
|
21 |
</html> |
|
0 | 22 |
tags/tmp_build/prototypes/VectorialAvanzado/extensions/extGraph/config/text_en.properties | ||
---|---|---|
1 |
Aplicar_tolerancia_de_snap=Apply snap tolerance |
|
2 |
Aplicar_un_CLEAN_sobre_la_capa_original=CLEAN the original layer |
|
3 |
Calcular_la_red_sobre_la_capa_original=Compute the net over the original layer |
|
4 |
Clean_de_lineas=Line clean |
|
5 |
Conversion_de_datos=Data conversion |
|
6 |
de=of |
|
7 |
Defines_a_dot_density_symbol_based_on_a_field_value=Defines a dot density symbol based on a value of a given field |
|
8 |
Error_ejecucion=Execution error |
|
9 |
Error_entrada_datos=Data entry error |
|
10 |
Error_entrada_datos=Data entry error |
|
11 |
Error_escritura_resultados=Error writing results |
|
12 |
Error_fallo_geoproceso=Error in geoprocess execution |
|
13 |
Error_preparar_escritura_resultados=Error preparing writing of results |
|
14 |
Error_seleccionar_resultado=You must select a result file layer |
|
15 |
Especifique_fichero_shp_resultante=Specify a resulting Shape file |
|
16 |
Fichero_para_capa_corregida=File for corrected layer |
|
17 |
Limpiando_lineas=Cleaning lines |
|
18 |
LineClean=Topology errors correction in lineal vectorial layer. |
|
19 |
LineClean._Progress_Message=Cleaning topology of layer... |
|
20 |
Generando_red_a_partir_de_capa_lineal=Create network from layer of lines |
|
21 |
Procesando_linea=Building network |
|
22 |
Ruta_borrada_o_inexistente=Route deleted or inexisting |
|
23 |
Ruta_no_encontrada=Route not found |
|
24 |
Seleccionar_capa_con_puntos_de_parada=Creating flags from a point layer |
|
25 |
Seleccione_una_capa_de_puntos_para_crear_paradas=Choose a point layer whose features will be converted in flags |
|
26 |
Seleccione_un_formato_para_guardar_la_ruta=Choose a format to save the lastest route. |
|
27 |
Seleccione_un_formato_para_guardar_los_flags=Choose a format to save flags. |
|
28 |
Trabajar_con_las_coordenadas_originales=Work with original coordinates |
|
29 |
angle=Angle |
|
30 |
based_upon_the_road_type=Based upon the road type |
|
31 |
cannot_apply_to_a_non_polygon_layer=Cannot apply to a non polygon layer |
|
32 |
change=Change |
|
33 |
character_marker=Character marker |
|
34 |
character_marker_symbol=Character marker |
|
35 |
choose_marker=Choose marker |
|
36 |
color=Color |
|
37 |
cost=Cost |
|
38 |
cost_field=Cost field |
|
39 |
cost_field_text=<html>Explicaci\u00F3n cost</html> |
|
40 |
cost_from_a_table_field=Compute cost from a table\u0092s field |
|
41 |
cost_units=Cost units |
|
42 |
cost_units_text=<html>Explicaci\u00F3n cost units</html> |
|
43 |
could_not_find_symbol_directory=Unable to locate the symbol\u0092s library\u0092s source folder |
|
44 |
could_not_setup_legend=Could not setup legend. Please check values. |
|
45 |
create_network=Create Network |
|
46 |
criterium=Criterium |
|
47 |
densities=Densities |
|
48 |
done=Done |
|
49 |
dot_density=Dot density |
|
50 |
dot_size=Dot size |
|
51 |
dot_value=Dot value |
|
52 |
enable=Enable |
|
53 |
feet=Feet |
|
54 |
field_configuration=Field configuration |
|
55 |
fill_color=Fill color |
|
56 |
fill_color=Fill color |
|
57 |
fill_properties=Fill properties |
|
58 |
flag_amount=Flag amount |
|
59 |
grid=Grid |
|
60 |
high=High |
|
61 |
hours=Hours |
|
62 |
inches=Inches |
|
63 |
invalid_layer=Invalid layer |
|
64 |
la_capa_no_tiene_red_asociada= |
|
65 |
labelling_field=Labelling field |
|
66 |
layers=Layers |
|
67 |
length_field_text=<html>Explicaci\u00F3n campo longitud</html> |
|
68 |
line_symbols=Line Symbols |
|
69 |
load_stages=Load stages |
|
70 |
low=Low |
|
71 |
marker_fill=Marker fill |
|
72 |
medium=Medium |
|
73 |
meters=Meters |
|
74 |
miles=Miles |
|
75 |
millimeters=Millimeters |
|
76 |
minutes=Minutes |
|
77 |
monetary=Monetary |
|
78 |
nautic_miles=Nautic miles |
|
79 |
net_analyst=Net Analyst |
|
80 |
new_flag=New flag |
|
81 |
offset=Offset |
|
82 |
options=Options |
|
83 |
outline=Outline |
|
84 |
outline_color=Outline color |
|
85 |
outline_width=Outline width |
|
86 |
point_symbols=Point symbols |
|
87 |
polygon_symbols=Polygon symbols |
|
88 |
preview=Preview |
|
89 |
properties=Properties |
|
90 |
random=Random |
|
91 |
reset=Reset |
|
92 |
route_control_panel=Route control panel |
|
93 |
save=Save |
|
94 |
save_error=Error saving |
|
95 |
save_route=Save route |
|
96 |
save_stages=Save stages |
|
97 |
seconds=Seconds |
|
98 |
select_length_field=Select length field |
|
99 |
select_sense_field=Select sense field |
|
100 |
select_street_route_field_name= |
|
101 |
select_type_field=Select type field |
|
102 |
sense_field_text=<html>Explicaci\u00F3n sense text field</html> |
|
103 |
separation=Separation |
|
104 |
shape_type_not_yet_supported=Shape type not yet supported |
|
105 |
shortest_path_not_found= |
|
106 |
simple_fill=Simple fill |
|
107 |
size=Size |
|
108 |
stage=Stage |
|
109 |
symbol_library=Symbol library |
|
110 |
symbol_property_editor=Symbol property editor |
|
111 |
symbol_selector=Symbol selector |
|
112 |
total_route_cost=Total route cost |
|
113 |
trying_to_add_a_non_TypeSymbolEditor_panel=Attempting to add a non TypeSymbolEditor panel |
|
114 |
two_panels_with_the_same_name=Two panels with the same name |
|
115 |
type=Type |
|
116 |
type_field_text=<html>Explicaci\u00F3n type text field</html> |
|
117 |
units=Units |
|
118 |
unknown_longitude_units=Unknown longitude units |
|
119 |
unknown_time_units=Unknown time units |
|
120 |
unknown_units=Unkown units |
|
121 |
use_line_length=Use line length |
|
122 |
use_symbol=Use symbol |
|
123 |
width=Width |
|
124 |
yards=Yards |
|
125 |
piloto_de_redes= |
|
126 |
msg_set_velocities=Please, set speeds for each type of arc (Km / hour) |
|
127 |
col_arc_type=Arc Type |
|
128 |
col_km_per_hour=Km/hour |
|
129 |
set_velocities=Set speeds |
|
0 | 130 |
tags/tmp_build/prototypes/VectorialAvanzado/extensions/extGraph/config/text_ca.properties | ||
---|---|---|
1 |
Clean_de_lineas= |
|
2 |
Conversion_de_datos= |
|
3 |
Error_ejecucion= |
|
4 |
Error_entrada_datos= |
|
5 |
Error_entrada_datos= |
|
6 |
Error_escritura_resultados= |
|
7 |
Error_fallo_geoproceso= |
|
8 |
Error_preparar_escritura_resultados= |
|
9 |
Error_seleccionar_resultado= |
|
10 |
LineClean= |
|
11 |
angle= |
|
12 |
based_upon_the_road_type= |
|
13 |
change= |
|
14 |
color= |
|
15 |
cost= |
|
16 |
cost_field= |
|
17 |
cost_field_text= |
|
18 |
cost_from_a_table_field= |
|
19 |
cost_units= |
|
20 |
cost_units_text= |
|
21 |
could_not_find_symbol_directory= |
|
22 |
create_network= |
|
23 |
done= |
|
24 |
enable= |
|
25 |
feet= |
|
26 |
flag_amount= |
|
27 |
hours= |
|
28 |
inches= |
|
29 |
invalid_layer= |
|
30 |
length_field_text= |
|
31 |
line_symbols= |
|
32 |
load_stages= |
|
33 |
meters= |
|
34 |
miles= |
|
35 |
millimeters= |
|
36 |
minutes= |
|
37 |
monetary= |
|
38 |
nautic_miles= |
|
39 |
net_analyst= |
|
40 |
new_flag= |
|
41 |
options= |
|
42 |
point_symbols= |
|
43 |
polygon_symbols= |
|
44 |
preview= |
|
45 |
properties= |
|
46 |
save_stages= |
|
47 |
seconds= |
|
48 |
select_length_field= |
|
49 |
select_sense_field= |
|
50 |
select_type_field= |
|
51 |
sense_field_text= |
|
52 |
shape_type_not_yet_supported= |
|
53 |
size= |
|
54 |
stage= |
|
55 |
symbol_library= |
|
56 |
symbol_selector= |
|
57 |
total_route_cost= |
|
58 |
type_field_text= |
|
59 |
unknown_longitude_units= |
|
60 |
unknown_time_units= |
|
61 |
unknown_units= |
|
62 |
use_line_length= |
|
63 |
use_symbol= |
|
64 |
yards= |
|
65 |
piloto_de_redes= |
|
0 | 66 |
tags/tmp_build/prototypes/VectorialAvanzado/extensions/extGraph/config/config.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="ISO-8859-1"?> |
|
2 |
<plugin-config> |
|
3 |
<libraries library-dir="./lib"> |
|
4 |
</libraries> |
|
5 |
<depends plugin-name="com.iver.cit.gvsig"/> |
|
6 |
<depends plugin-name="com.iver.cit.gvsig.geoprocess"/> |
|
7 |
<depends plugin-name="com.iver.cit.gvsig.cad"/> |
|
8 |
<resourceBundle name="text"/> |
|
9 |
<extensions> |
|
10 |
<!-- <extension class-name="com.iver.cit.gvsig.SymbolTest" |
|
11 |
description="Symbol test" |
|
12 |
active="true"> |
|
13 |
<menu text="Test/Symbol test" tooltip="Try symbol" |
|
14 |
action-command="DALE!" |
|
15 |
/> |
|
16 |
|
|
17 |
</extension> --> |
|
18 |
<extension class-name="com.iver.cit.gvsig.graph.GenerateNetworkExtension" |
|
19 |
description="Generate Network Extension for gvSIG." |
|
20 |
active="true"> |
|
21 |
<menu text="Network/Create_Network" tooltip="Generar_Red" |
|
22 |
action-command="GENERATE_RED" |
|
23 |
icon="images/build_graph.gif" /> |
|
24 |
|
|
25 |
</extension> |
|
26 |
<extension class-name="com.iver.cit.gvsig.graph.LoadNetworkExtension" |
|
27 |
description="Load Network for gvSIG." |
|
28 |
active="true"> |
|
29 |
|
|
30 |
<menu text="Network/Load_Network" tooltip="Load_Red" |
|
31 |
action-command="LOAD_RED" |
|
32 |
icon="images/network.png" /> |
|
33 |
|
|
34 |
<!-- <menu text="Network/Load_Network_from_tables" tooltip="Load_Red" |
|
35 |
action-command="LOAD_NETWORK_FROM_TABLES" |
|
36 |
icon="images/network.png" /> --> |
|
37 |
|
|
38 |
</extension> |
|
39 |
|
|
40 |
<extension class-name="com.iver.cit.gvsig.graph.ManageFlagsExtension" |
|
41 |
description="Manage flags." |
|
42 |
active="true"> |
|
43 |
<menu text="Network/Manage_Flags" tooltip="Manage_Flags" |
|
44 |
action-command="MANAGE_FLAGS" |
|
45 |
icon="images/manage_flags.png" /> |
|
46 |
|
|
47 |
</extension> |
|
48 |
<extension class-name="com.iver.cit.gvsig.graph.ShortestPathExtension" |
|
49 |
description="Shortest path" |
|
50 |
active="true"> |
|
51 |
<menu text="Network/separator" is_separator="true"/> |
|
52 |
|
|
53 |
<menu text="Network/Shortest_Path" tooltip="Shortest_Path" |
|
54 |
action-command="SHORTEST_PATH" |
|
55 |
icon="images/shortest_path.png" /> |
|
56 |
<tool-bar name="Networks"> |
|
57 |
<action-tool icon="images/shortest_path.png" |
|
58 |
action-command="SHORTEST_PATH" |
|
59 |
tooltip="shortestpath" |
|
60 |
position="1"/> |
|
61 |
</tool-bar> |
|
62 |
|
|
63 |
</extension> |
|
64 |
|
|
65 |
<!-- <extension class-name="com.iver.cit.gvsig.graph.ServiceAreaExtension" |
|
66 |
description="Service Area" |
|
67 |
active="true"> |
|
68 |
|
|
69 |
|
|
70 |
<menu text="Network/Service_Area" tooltip="Service_Area" |
|
71 |
action-command="LABEL_NODE_DISTANCES" |
|
72 |
icon="images/shortest_path.png" /> |
|
73 |
|
|
74 |
</extension> |
|
75 |
<extension class-name="com.iver.cit.gvsig.graph.ODMatrixExtension" |
|
76 |
description="ODMATRIX" |
|
77 |
active="true"> |
|
78 |
<menu text="Network/ODMatrix" icon="images/gtk-about.png" action-command="ODMATRIX"/> |
|
79 |
</extension> --> |
|
80 |
|
|
81 |
<extension class-name="com.iver.cit.gvsig.graph.ClearRouteExtension" |
|
82 |
description="Remove routes" |
|
83 |
active="true"> |
|
84 |
<menu text="Network/separator" is_separator="true"/> |
|
85 |
<menu text="Network/Clear/Clear_Routes" action-command="CLEAR_ROUTES" /> |
|
86 |
</extension> |
|
87 |
<extension class-name="com.iver.cit.gvsig.graph.ClearFlagsExtension" |
|
88 |
description="Remove routes" |
|
89 |
active="true"> |
|
90 |
<menu text="Network/Clear/Clear_Flags" action-command="CLEAR_FLAGS" /> |
|
91 |
</extension> |
|
92 |
<extension class-name="com.iver.cit.gvsig.graph.ClearBarriersExtension" |
|
93 |
description="Remove barriers" |
|
94 |
active="true"> |
|
95 |
<menu text="Network/Clear/Clear_Barriers" action-command="CLEAR_BARRIERS" /> |
|
96 |
</extension> |
|
97 |
|
|
98 |
|
|
99 |
<extension class-name="com.iver.cit.gvsig.graph.NetworkAddFlag" |
|
100 |
description="Flags" |
|
101 |
active="true"> |
|
102 |
<tool-bar name="Networks"> |
|
103 |
<selectable-tool icon="images/add_flag_on_arc.png" |
|
104 |
action-command="ADD_FLAG_TO_NETWORK" |
|
105 |
tooltip="put_flag_on_arc" |
|
106 |
position="2"/> |
|
107 |
<selectable-tool icon="images/add_flag_on_node.png" |
|
108 |
action-command="ADD_FLAG_TO_NODE" |
|
109 |
tooltip="put_flag_on_node" |
|
110 |
position="3"/> |
|
111 |
<selectable-tool icon="images/no_way.png" |
|
112 |
action-command="ADD_BARRIER" |
|
113 |
tooltip="put_barrier" |
|
114 |
position="4"/> |
|
115 |
|
|
116 |
</tool-bar> |
|
117 |
</extension> |
|
118 |
<!-- <extension class-name="com.iver.cit.gvsig.graph.TopologyExtension" |
|
119 |
description="Extensi?n para crear topolog?a." |
|
120 |
active="true"> |
|
121 |
<menu text="Capa/Topology_Test/Clean_Test" action-command="CLEAN"/> |
|
122 |
<menu text="Capa/Topology_Test/Show Errors" action-command="SHOW_ERRORS"/> |
|
123 |
<menu text="Capa/Topology_Test/Triangulation_Test" action-command="TRIANGULATION"/> |
|
124 |
</extension> --> |
|
125 |
|
|
126 |
<extension class-name="com.iver.cit.gvsig.topology.lineclean.RegisterGeoprocessPlugin" |
|
127 |
description="Extensiones de geoprocesamiento" |
|
128 |
active="true" /> |
|
129 |
|
|
130 |
<extension class-name="com.iver.cit.gvsig.AboutGraphExtension" |
|
131 |
description="Extension to add about panel." |
|
132 |
active="true"/> |
|
133 |
</extensions> |
|
134 |
</plugin-config> |
|
0 | 135 |
Also available in: Unified diff