Revision 1181
org.gvsig.proj/tags/org.gvsig.proj-1.0.18/org.gvsig.proj.main/src/main/resources/README.txt | ||
---|---|---|
1 |
==== |
|
2 |
gvSIG. Desktop Geographic Information System. |
|
3 |
|
|
4 |
Copyright (C) 2007-2012 gvSIG Association. |
|
5 |
|
|
6 |
This program is free software; you can redistribute it and/or |
|
7 |
modify it under the terms of the GNU General Public License |
|
8 |
as published by the Free Software Foundation; either version 2 |
|
9 |
of the License, or (at your option) any later version. |
|
10 |
|
|
11 |
This program is distributed in the hope that it will be useful, |
|
12 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
13 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
14 |
GNU General Public License for more details. |
|
15 |
|
|
16 |
You should have received a copy of the GNU General Public License |
|
17 |
along with this program; if not, write to the Free Software |
|
18 |
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
19 |
MA 02110-1301, USA. |
|
20 |
|
|
21 |
For any additional information, do not hesitate to contact us |
|
22 |
at info AT gvsig.com, or visit our website www.gvsig.com. |
|
23 |
==== |
|
24 |
|
|
25 |
Put into this folder the resources needed by your classes. |
|
26 |
|
|
27 |
This folder is added to the classpath, so you can load any resources |
|
28 |
through the ClassLoader. |
|
29 |
|
|
30 |
By default, in this folder you can find an example of log4j configuration, |
|
31 |
prepared to log messages through the console, so logging works when you |
|
32 |
run your classes. |
org.gvsig.proj/tags/org.gvsig.proj-1.0.18/org.gvsig.proj.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.proj"> |
|
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> |
org.gvsig.proj/tags/org.gvsig.proj-1.0.18/org.gvsig.proj.main/src/main/java/org/gvsig/proj/main/Main.java | ||
---|---|---|
1 |
/** |
|
2 |
* gvSIG. Desktop Geographic Information System. |
|
3 |
* |
|
4 |
* Copyright (C) 2007-2012 gvSIG Association. |
|
5 |
* |
|
6 |
* This program is free software; you can redistribute it and/or |
|
7 |
* modify it under the terms of the GNU General Public License |
|
8 |
* as published by the Free Software Foundation; either version 2 |
|
9 |
* of the License, or (at your option) any later version. |
|
10 |
* |
|
11 |
* This program is distributed in the hope that it will be useful, |
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
14 |
* GNU General Public License for more details. |
|
15 |
* |
|
16 |
* You should have received a copy of the GNU General Public License |
|
17 |
* along with this program; if not, write to the Free Software |
|
18 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
19 |
* MA 02110-1301, USA. |
|
20 |
* |
|
21 |
* For any additional information, do not hesitate to contact us |
|
22 |
* at info AT gvsig.com, or visit our website www.gvsig.com. |
|
23 |
*/ |
|
24 |
package org.gvsig.proj.main; |
|
25 |
|
|
26 |
import java.awt.BorderLayout; |
|
27 |
import java.awt.Dimension; |
|
28 |
import java.awt.event.ActionEvent; |
|
29 |
|
|
30 |
import javax.swing.AbstractAction; |
|
31 |
import javax.swing.Action; |
|
32 |
import javax.swing.JButton; |
|
33 |
import javax.swing.JFrame; |
|
34 |
import javax.swing.JMenu; |
|
35 |
import javax.swing.JMenuBar; |
|
36 |
import javax.swing.JMenuItem; |
|
37 |
import javax.swing.JToolBar; |
|
38 |
import javax.swing.WindowConstants; |
|
39 |
|
|
40 |
import org.slf4j.Logger; |
|
41 |
import org.slf4j.LoggerFactory; |
|
42 |
|
|
43 |
import org.gvsig.proj.CoordinateReferenceSystem; |
|
44 |
import org.gvsig.proj.CoordinateReferenceSystemLocator; |
|
45 |
import org.gvsig.proj.CoordinateReferenceSystemManager; |
|
46 |
import org.gvsig.proj.CoordinateReferenceSystemNotFoundException; |
|
47 |
import org.gvsig.proj.swing.CoordinateReferenceSystemSelectorComponent; |
|
48 |
import org.gvsig.proj.swing.CoordinateReferenceSystemSwingLocator; |
|
49 |
import org.gvsig.proj.swing.CoordinateReferenceSystemSwingManager; |
|
50 |
import org.gvsig.tools.library.impl.DefaultLibrariesInitializer; |
|
51 |
import org.gvsig.tools.swing.api.windowmanager.WindowManager; |
|
52 |
|
|
53 |
/** |
|
54 |
* Main executable class for testing the CRS library. |
|
55 |
* |
|
56 |
* @author gvSIG Team |
|
57 |
* @version $Id$ |
|
58 |
*/ |
|
59 |
public class Main { |
|
60 |
|
|
61 |
private static final Logger LOG = LoggerFactory.getLogger(Main.class); |
|
62 |
|
|
63 |
private CoordinateReferenceSystemManager manager; |
|
64 |
private CoordinateReferenceSystemSwingManager swingManager; |
|
65 |
|
|
66 |
public static void main(String args[]) { |
|
67 |
new DefaultLibrariesInitializer().fullInitialize(); |
|
68 |
Main main = new Main(); |
|
69 |
main.show(); |
|
70 |
} |
|
71 |
|
|
72 |
@SuppressWarnings("serial") |
|
73 |
public void show() { |
|
74 |
manager = CoordinateReferenceSystemLocator.getManager(); |
|
75 |
swingManager = CoordinateReferenceSystemSwingLocator.getSwingManager(); |
|
76 |
|
|
77 |
Action showCRSSelector = new AbstractAction("Select a CRS") { |
|
78 |
|
|
79 |
public void actionPerformed(ActionEvent e) { |
|
80 |
showCRSSelector(manager); |
|
81 |
} |
|
82 |
}; |
|
83 |
|
|
84 |
Action exit = new AbstractAction("Exit") { |
|
85 |
|
|
86 |
public void actionPerformed(ActionEvent e) { |
|
87 |
System.exit(0); |
|
88 |
} |
|
89 |
}; |
|
90 |
|
|
91 |
JFrame frame = new JFrame("CRS example app"); |
|
92 |
frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); |
|
93 |
|
|
94 |
// Create the menu bar. |
|
95 |
JMenuBar menuBar = new JMenuBar(); |
|
96 |
|
|
97 |
// Build the menu. |
|
98 |
JMenu menuFile = new JMenu("File"); |
|
99 |
menuFile.add(new JMenuItem(showCRSSelector)); |
|
100 |
menuFile.add(new JMenuItem(exit)); |
|
101 |
|
|
102 |
menuBar.add(menuFile); |
|
103 |
|
|
104 |
JToolBar toolBar = new JToolBar(); |
|
105 |
toolBar.add(new JButton(showCRSSelector)); |
|
106 |
toolBar.add(new JButton(exit)); |
|
107 |
|
|
108 |
frame.setPreferredSize(new Dimension(200, 100)); |
|
109 |
frame.setJMenuBar(menuBar); |
|
110 |
frame.add(toolBar, BorderLayout.PAGE_START); |
|
111 |
|
|
112 |
// Display the window. |
|
113 |
frame.pack(); |
|
114 |
frame.setVisible(true); |
|
115 |
} |
|
116 |
|
|
117 |
public void showCRSSelector(CoordinateReferenceSystemManager manager) { |
|
118 |
|
|
119 |
CoordinateReferenceSystemSelectorComponent crsSelectionComponent = |
|
120 |
swingManager.createCoordinateReferenceSystemSelectionComponent(); |
|
121 |
|
|
122 |
try { |
|
123 |
CoordinateReferenceSystem currentCRS = |
|
124 |
manager.getCoordinateReferenceSystem("EPSG", "23030"); |
|
125 |
crsSelectionComponent.setCoordinateReferenceSystem(currentCRS); |
|
126 |
} catch (CoordinateReferenceSystemNotFoundException e) { |
|
127 |
LOG.error("Error getting crs EPSG:23030", e); |
|
128 |
} |
|
129 |
|
|
130 |
swingManager.getWindowManager().showWindow( |
|
131 |
crsSelectionComponent.asJComponent(), "Proj", |
|
132 |
WindowManager.MODE.WINDOW); |
|
133 |
} |
|
134 |
|
|
135 |
} |
org.gvsig.proj/tags/org.gvsig.proj-1.0.18/org.gvsig.proj.main/src/main/java/org/gvsig/proj/main/package.html | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8" ?> |
|
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 html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
|
28 |
<html xmlns="http://www.w3.org/1999/xhtml"> |
|
29 |
<head> |
|
30 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
|
31 |
<title>org.gvsig.proj package documentation</title> |
|
32 |
</head> |
|
33 |
<body> |
|
34 |
|
|
35 |
<p>Proj library testing and demo application.</p> |
|
36 |
|
|
37 |
</body> |
|
38 |
</html> |
org.gvsig.proj/tags/org.gvsig.proj-1.0.18/org.gvsig.proj.main/pom.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="ISO-8859-1"?> |
|
2 |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
|
3 |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |
|
4 |
<modelVersion>4.0.0</modelVersion> |
|
5 |
<artifactId>org.gvsig.proj.main</artifactId> |
|
6 |
<packaging>jar</packaging> |
|
7 |
<name>${project.artifactId}</name> |
|
8 |
<parent> |
|
9 |
<groupId>org.gvsig</groupId> |
|
10 |
<artifactId>org.gvsig.proj</artifactId> |
|
11 |
<version>1.0.0-SNAPSHOT</version> |
|
12 |
</parent> |
|
13 |
|
|
14 |
<dependencyManagement> |
|
15 |
<dependencies> |
|
16 |
<dependency> |
|
17 |
<groupId>org.gvsig</groupId> |
|
18 |
<artifactId>org.gvsig.fmap.geometry.api</artifactId> |
|
19 |
<version>${gvsig.desktop.version}</version> |
|
20 |
</dependency> |
|
21 |
<dependency> |
|
22 |
<groupId>org.gvsig</groupId> |
|
23 |
<artifactId>org.gvsig.fmap.dal.api</artifactId> |
|
24 |
<version>${gvsig.desktop.version}</version> |
|
25 |
</dependency> |
|
26 |
</dependencies> |
|
27 |
</dependencyManagement> |
|
28 |
|
|
29 |
<dependencies> |
|
30 |
<dependency> |
|
31 |
<groupId>org.gvsig</groupId> |
|
32 |
<artifactId>org.gvsig.tools.lib</artifactId> |
|
33 |
<scope>compile</scope> |
|
34 |
</dependency> |
|
35 |
<dependency> |
|
36 |
<groupId>org.gvsig</groupId> |
|
37 |
<artifactId>org.gvsig.tools.lib</artifactId> |
|
38 |
<type>test-jar</type> |
|
39 |
<scope>test</scope> |
|
40 |
</dependency> |
|
41 |
<dependency> |
|
42 |
<groupId>org.gvsig</groupId> |
|
43 |
<artifactId>org.gvsig.tools.swing.api</artifactId> |
|
44 |
<scope>compile</scope> |
|
45 |
</dependency> |
|
46 |
<!-- |
|
47 |
<dependency> |
|
48 |
<groupId>org.gvsig</groupId> |
|
49 |
<artifactId>org.gvsig.i18n</artifactId> |
|
50 |
<scope>compile</scope> |
|
51 |
</dependency> |
|
52 |
--> |
|
53 |
<dependency> |
|
54 |
<groupId>org.gvsig</groupId> |
|
55 |
<artifactId>org.gvsig.fmap.geometry.api</artifactId> |
|
56 |
<scope>compile</scope> |
|
57 |
</dependency> |
|
58 |
<dependency> |
|
59 |
<groupId>org.gvsig</groupId> |
|
60 |
<artifactId>org.gvsig.fmap.dal.api</artifactId> |
|
61 |
<scope>compile</scope> |
|
62 |
</dependency> |
|
63 |
<dependency> |
|
64 |
<groupId>org.gvsig</groupId> |
|
65 |
<artifactId>org.gvsig.metadata.lib.basic.api</artifactId> |
|
66 |
<scope>compile</scope> |
|
67 |
</dependency> |
|
68 |
<dependency> |
|
69 |
<groupId>org.gvsig</groupId> |
|
70 |
<artifactId>org.gvsig.proj.lib.api</artifactId> |
|
71 |
<scope>compile</scope> |
|
72 |
</dependency> |
|
73 |
<dependency> |
|
74 |
<groupId>org.gvsig</groupId> |
|
75 |
<artifactId>org.gvsig.proj.lib.proj4j</artifactId> |
|
76 |
<scope>runtime</scope> |
|
77 |
</dependency> |
|
78 |
<dependency> |
|
79 |
<groupId>org.gvsig</groupId> |
|
80 |
<artifactId>org.gvsig.proj.swing.api</artifactId> |
|
81 |
<scope>compile</scope> |
|
82 |
</dependency> |
|
83 |
<dependency> |
|
84 |
<groupId>org.gvsig</groupId> |
|
85 |
<artifactId>org.gvsig.proj.swing.impl</artifactId> |
|
86 |
<scope>runtime</scope> |
|
87 |
</dependency> |
|
88 |
</dependencies> |
|
89 |
|
|
90 |
<properties> |
|
91 |
<gvsig.desktop.version>2.0.10-SNAPSHOT</gvsig.desktop.version> |
|
92 |
</properties> |
|
93 |
</project> |
|
0 | 94 |
org.gvsig.proj/tags/org.gvsig.proj-1.0.18/org.gvsig.proj.lib/.project | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<projectDescription> |
|
3 |
<name>org.gvsig.proj.lib</name> |
|
4 |
<comment></comment> |
|
5 |
<projects> |
|
6 |
</projects> |
|
7 |
<buildSpec> |
|
8 |
<buildCommand> |
|
9 |
<name>org.eclipse.m2e.core.maven2Builder</name> |
|
10 |
<arguments> |
|
11 |
</arguments> |
|
12 |
</buildCommand> |
|
13 |
</buildSpec> |
|
14 |
<natures> |
|
15 |
<nature>org.eclipse.m2e.core.maven2Nature</nature> |
|
16 |
</natures> |
|
17 |
</projectDescription> |
org.gvsig.proj/tags/org.gvsig.proj-1.0.18/org.gvsig.proj.lib/org.gvsig.proj.lib.proj4j/src/test/resources/README.txt | ||
---|---|---|
1 |
==== |
|
2 |
gvSIG. Desktop Geographic Information System. |
|
3 |
|
|
4 |
Copyright (C) 2007-2012 gvSIG Association. |
|
5 |
|
|
6 |
This program is free software; you can redistribute it and/or |
|
7 |
modify it under the terms of the GNU General Public License |
|
8 |
as published by the Free Software Foundation; either version 2 |
|
9 |
of the License, or (at your option) any later version. |
|
10 |
|
|
11 |
This program is distributed in the hope that it will be useful, |
|
12 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
13 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
14 |
GNU General Public License for more details. |
|
15 |
|
|
16 |
You should have received a copy of the GNU General Public License |
|
17 |
along with this program; if not, write to the Free Software |
|
18 |
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
19 |
MA 02110-1301, USA. |
|
20 |
|
|
21 |
For any additional information, do not hesitate to contact us |
|
22 |
at info AT gvsig.com, or visit our website www.gvsig.com. |
|
23 |
==== |
|
24 |
|
|
25 |
Put into this folder the resources needed by your test classes. |
|
26 |
|
|
27 |
This folder is added to the Tests classpath, so you can load any resources |
|
28 |
through the ClassLoader. |
|
29 |
|
|
30 |
By default, in this folder you can find an example of log4j configuration, |
|
31 |
prepared to log messages through the console, so logging works when you |
|
32 |
run your tests classes. |
org.gvsig.proj/tags/org.gvsig.proj-1.0.18/org.gvsig.proj.lib/org.gvsig.proj.lib.proj4j/src/test/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.proj"> |
|
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> |
org.gvsig.proj/tags/org.gvsig.proj-1.0.18/org.gvsig.proj.lib/org.gvsig.proj.lib.proj4j/src/test/java/org/gvsig/proj/proj4j/DefaultCoordinateReferenceSystemManagerIT.java | ||
---|---|---|
1 |
/* gvSIG. Desktop Geographic Information System. |
|
2 |
* |
|
3 |
* Copyright ? 2007-2012 gvSIG Association |
|
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., 51 Franklin Street, Fifth Floor, Boston, |
|
18 |
* MA 02110-1301, USA. |
|
19 |
* |
|
20 |
* For any additional information, do not hesitate to contact us |
|
21 |
* at info AT gvsig.com, or visit our website www.gvsig.com. |
|
22 |
*/ |
|
23 |
package org.gvsig.proj.proj4j; |
|
24 |
|
|
25 |
import org.gvsig.proj.CoordinateReferenceSystemManager; |
|
26 |
import org.gvsig.proj.CoordinateReferenceSystemManagerIT; |
|
27 |
import org.gvsig.proj.proj4j.DefaultCoordinateReferenceSystemManager; |
|
28 |
|
|
29 |
/** |
|
30 |
* API acceptance tests for the {@link DefaultCoordinateReferenceSystemManager} implementation. |
|
31 |
* |
|
32 |
* @author gvSIG Team |
|
33 |
*/ |
|
34 |
public class DefaultCoordinateReferenceSystemManagerIT extends CoordinateReferenceSystemManagerIT { |
|
35 |
|
|
36 |
protected CoordinateReferenceSystemManager createProjectionManager() { |
|
37 |
return new DefaultCoordinateReferenceSystemManager(); |
|
38 |
} |
|
39 |
|
|
40 |
protected String getAuthorityName() { |
|
41 |
return "EPSG"; |
|
42 |
} |
|
43 |
|
|
44 |
protected String getCode() { |
|
45 |
return "23030"; |
|
46 |
} |
|
47 |
|
|
48 |
} |
org.gvsig.proj/tags/org.gvsig.proj-1.0.18/org.gvsig.proj.lib/org.gvsig.proj.lib.proj4j/src/test/java/org/gvsig/proj/proj4j/DefaultCoordinateReferenceSystemIT.java | ||
---|---|---|
1 |
/* gvSIG. Desktop Geographic Information System. |
|
2 |
* |
|
3 |
* Copyright ? 2007-2012 gvSIG Association |
|
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., 51 Franklin Street, Fifth Floor, Boston, |
|
18 |
* MA 02110-1301, USA. |
|
19 |
* |
|
20 |
* For any additional information, do not hesitate to contact us |
|
21 |
* at info AT gvsig.com, or visit our website www.gvsig.com. |
|
22 |
*/ |
|
23 |
package org.gvsig.proj.proj4j; |
|
24 |
|
|
25 |
import org.gvsig.proj.CoordinateReferenceSystemIT; |
|
26 |
|
|
27 |
/** |
|
28 |
* API acceptance tests for the {@link DefaultCoordinateReferenceSystem} implementation. |
|
29 |
* |
|
30 |
* @author gvSIG Team |
|
31 |
*/ |
|
32 |
public class DefaultCoordinateReferenceSystemIT extends CoordinateReferenceSystemIT { |
|
33 |
|
|
34 |
protected String getAuthorityName() { |
|
35 |
return "EPSG"; |
|
36 |
} |
|
37 |
|
|
38 |
protected String getCode() { |
|
39 |
return "23030"; |
|
40 |
} |
|
41 |
|
|
42 |
protected String getCode2() { |
|
43 |
return "23031"; |
|
44 |
} |
|
45 |
|
|
46 |
} |
org.gvsig.proj/tags/org.gvsig.proj-1.0.18/org.gvsig.proj.lib/org.gvsig.proj.lib.proj4j/src/test/java/org/gvsig/proj/proj4j/DefaultCoordinateTransformationIT.java | ||
---|---|---|
1 |
/* gvSIG. Desktop Geographic Information System. |
|
2 |
* |
|
3 |
* Copyright ? 2007-2012 gvSIG Association |
|
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., 51 Franklin Street, Fifth Floor, Boston, |
|
18 |
* MA 02110-1301, USA. |
|
19 |
* |
|
20 |
* For any additional information, do not hesitate to contact us |
|
21 |
* at info AT gvsig.com, or visit our website www.gvsig.com. |
|
22 |
*/ |
|
23 |
package org.gvsig.proj.proj4j; |
|
24 |
|
|
25 |
import org.gvsig.proj.CoordinateTransformationIT; |
|
26 |
import org.gvsig.proj.CoordinateReferenceSystem; |
|
27 |
import org.gvsig.proj.CoordinateReferenceSystemLocator; |
|
28 |
import org.gvsig.proj.proj4j.DefaultCoordinateTransformation; |
|
29 |
|
|
30 |
/** |
|
31 |
* API acceptance tests for the {@link DefaultCoordinateTransformation} |
|
32 |
* implementation. |
|
33 |
* |
|
34 |
* @author gvSIG Team |
|
35 |
*/ |
|
36 |
public class DefaultCoordinateTransformationIT extends |
|
37 |
CoordinateTransformationIT { |
|
38 |
|
|
39 |
protected CoordinateReferenceSystem createSourceProjection() throws Exception { |
|
40 |
return CoordinateReferenceSystemLocator.getManager().getCoordinateReferenceSystem("EPSG", "23030"); |
|
41 |
} |
|
42 |
|
|
43 |
protected CoordinateReferenceSystem createTargetProjection() throws Exception { |
|
44 |
return CoordinateReferenceSystemLocator.getManager().getCoordinateReferenceSystem("EPSG", "23031"); |
|
45 |
} |
|
46 |
|
|
47 |
} |
org.gvsig.proj/tags/org.gvsig.proj-1.0.18/org.gvsig.proj.lib/org.gvsig.proj.lib.proj4j/src/test/java/org/gvsig/proj/proj4j/ShowAllWorkingAuthorityCodes.java | ||
---|---|---|
1 |
/* gvSIG. Desktop Geographic Information System. |
|
2 |
* |
|
3 |
* Copyright ? 2007-2012 gvSIG Association |
|
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., 51 Franklin Street, Fifth Floor, Boston, |
|
18 |
* MA 02110-1301, USA. |
|
19 |
* |
|
20 |
* For any additional information, do not hesitate to contact us |
|
21 |
* at info AT gvsig.com, or visit our website www.gvsig.com. |
|
22 |
*/ |
|
23 |
package org.gvsig.proj.proj4j; |
|
24 |
|
|
25 |
import java.io.IOException; |
|
26 |
|
|
27 |
/** |
|
28 |
* Shows all working authority codes in the console in properties format. |
|
29 |
* May be used to update the |
|
30 |
* src/main/resources/org/gvsig/proj/proj4j/supportedcrs.properties file. |
|
31 |
* |
|
32 |
* @author gvSIG Team |
|
33 |
*/ |
|
34 |
public class ShowAllWorkingAuthorityCodes { |
|
35 |
|
|
36 |
/** |
|
37 |
* Run the app. |
|
38 |
* |
|
39 |
* @param args |
|
40 |
* ignored parameters |
|
41 |
*/ |
|
42 |
public static void main(String[] args) throws IOException { |
|
43 |
new DefaultCoordinateReferenceSystemManager().showAllWorkingCodes(); |
|
44 |
} |
|
45 |
|
|
46 |
} |
org.gvsig.proj/tags/org.gvsig.proj-1.0.18/org.gvsig.proj.lib/org.gvsig.proj.lib.proj4j/src/main/resources/META-INF/services/org.gvsig.tools.library.Library | ||
---|---|---|
1 |
org.gvsig.proj.proj4j.Proj4jCoordinateReferenceSystemLibrary |
org.gvsig.proj/tags/org.gvsig.proj-1.0.18/org.gvsig.proj.lib/org.gvsig.proj.lib.proj4j/src/main/resources/org/gvsig/proj/proj4j/supportedcrs.properties | ||
---|---|---|
1 |
#Created by calling DefaultCoordinateReferenceSystemManager.storeAllWorkingCodes() |
|
2 |
#Fri May 11 14:19:02 CEST 2012 |
|
3 |
NAD27=101,102,5010,5300,201,202,203,301,302,401,402,403,404,405,406,407,501,502,503,600,700,901,902,903,1001,1002,5101,5102,5103,5104,5105,1101,1102,1103,1201,1202,1301,1302,1401,1402,1501,1502,1601,1602,1701,1702,1703,1801,1802,1900,2001,2002,2101,2102,2103,2111,2112,2113,2201,2202,2203,2301,2302,2401,2402,2403,2501,2502,2503,2601,2602,2701,2702,2703,2800,2900,3001,3002,3003,3101,3102,3103,3104,3200,3301,3302,3401,3402,3501,3502,3601,3602,3701,3702,3800,3901,3902,4001,4002,4100,4201,4202,4203,4204,4205,4301,4302,4303,4400,4501,4502,4601,4602,4701,4702,4801,4802,4803,4901,4902,4903,4904,5002,5003,5004,5005,5006,5007,5008,5009,5201,5202,5400 |
|
4 |
ESRI=2000,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016,2017,2018,2019,2020,2021,2022,2023,2024,2025,2026,2027,2028,2029,2030,2031,2032,2033,2034,2035,2036,2037,2038,2039,2040,2041,2042,2043,2044,2045,2057,2058,2059,2060,2061,2063,2064,2066,2067,2068,2069,2070,2071,2072,2073,2074,2075,2076,2077,2078,2079,2080,2081,2082,2083,2084,2085,2086,2087,2088,2089,2090,2091,2092,2093,2094,2095,2096,2097,2098,2099,2100,2101,2102,2103,2104,2105,2106,2107,2108,2109,2110,2111,2112,2113,2114,2115,2116,2117,2118,2119,2120,2121,2122,2123,2124,2125,2126,2127,2128,2129,2130,2131,2132,2133,2134,2135,2136,2137,2138,2139,2140,2141,2142,2143,2144,2145,2146,2147,2148,2149,2150,2151,2152,2153,2154,2155,2156,2157,2158,2159,2160,2161,2162,2163,2164,2165,2166,2167,2168,2169,2170,2171,2172,2173,2174,2175,2176,2177,2178,2179,2180,2188,2189,2190,2191,2192,2193,2194,2195,2196,2197,2198,2199,2200,2201,2202,2203,2204,2205,2206,2207,2208,2209,2210,2211,2212,2213,2214,2215,2216,2217,2219,2220,2222,2223,2224,2225,2226,2227,2228,2229,2230,2231,2232,2233,2234,2235,2236,2237,2238,2239,2240,2241,2242,2243,2244,2245,2246,2247,2248,2249,2250,2251,2252,2253,2254,2255,2256,2257,2258,2259,2260,2261,2262,2263,2264,2265,2266,2267,2268,2269,2270,2271,2272,2273,2274,2275,2276,2277,2278,2279,2280,2281,2282,2283,2284,2285,2286,2287,2288,2289,2290,2291,2292,2294,2295,2308,2309,2310,2311,2312,2313,2314,2315,2316,2317,2318,2319,2320,2321,2322,2323,2324,2325,2326,2327,2328,2329,2330,2331,2332,2333,2334,2335,2336,2337,2338,2339,2340,2341,2342,2343,2344,2345,2346,2347,2348,2349,2350,2351,2352,2353,2354,2355,2356,2357,2358,2359,2360,2361,2362,2363,2364,2365,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2384,2385,2386,2387,2388,2389,2390,2391,2392,2393,2394,2395,2396,2397,2398,2399,2400,2401,2402,2403,2404,2405,2406,2407,2408,2409,2410,2411,2412,2413,2414,2415,2416,2417,2418,2419,2420,2421,2422,2423,2424,2425,2426,2427,2428,2429,2430,2431,2432,2433,2434,2435,2436,2437,2438,2439,2440,2441,2442,2443,2444,2445,2446,2447,2448,2449,2450,2451,2452,2453,2454,2455,2456,2457,2458,2459,2460,2461,2462,2463,2464,2465,2466,2467,2468,2469,2470,2471,2472,2473,2474,2475,2476,2477,2478,2479,2480,2481,2482,2483,2484,2485,2486,2487,2488,2489,2490,2491,2492,2493,2494,2495,2496,2497,2498,2499,2500,2501,2502,2503,2504,2505,2506,2507,2508,2509,2510,2511,2512,2513,2514,2515,2516,2517,2518,2519,2520,2521,2522,2523,2524,2525,2526,2527,2528,2529,2530,2531,2532,2533,2534,2535,2536,2537,2538,2539,2540,2541,2542,2543,2544,2545,2546,2547,2548,2549,2550,2551,2552,2553,2554,2555,2556,2557,2558,2559,2560,2561,2562,2563,2564,2565,2566,2567,2568,2569,2570,2571,2572,2573,2574,2575,2576,2577,2578,2579,2580,2581,2582,2583,2584,2585,2586,2587,2588,2589,2590,2591,2592,2593,2594,2595,2596,2597,2598,2599,2600,2601,2602,2603,2604,2605,2606,2607,2608,2609,2610,2611,2612,2613,2614,2615,2616,2617,2618,2619,2620,2621,2622,2623,2624,2625,2626,2627,2628,2629,2630,2631,2632,2633,2634,2635,2636,2637,2638,2639,2640,2641,2642,2643,2644,2645,2646,2647,2648,2649,2650,2651,2652,2653,2654,2655,2656,2657,2658,2659,2660,2661,2662,2663,2664,2665,2666,2667,2668,2669,2670,2671,2672,2673,2674,2675,2676,2677,2678,2679,2680,2681,2682,2683,2684,2685,2686,2687,2688,2689,2690,2691,2692,2693,2694,2695,2696,2697,2698,2699,2700,2701,2702,2703,2704,2705,2706,2707,2708,2709,2710,2711,2712,2713,2714,2715,2716,2717,2718,2719,2720,2721,2722,2723,2724,2725,2726,2727,2728,2729,2730,2731,2732,2733,2734,2735,2736,2737,2738,2739,2740,2741,2742,2743,2744,2745,2746,2747,2748,2749,2750,2751,2752,2753,2754,2755,2756,2757,2758,2759,2760,2761,2762,2763,2764,2765,2766,2767,2768,2769,2770,2771,2772,2773,2774,2775,2776,2777,2778,2779,2780,2781,2782,2783,2784,2785,2786,2787,2788,2789,2790,2791,2792,2793,2794,2795,2796,2797,2798,2799,2800,2801,2802,2803,2804,2805,2806,2807,2808,2809,2810,2811,2812,2813,2814,2815,2816,2817,2818,2819,2820,2821,2822,2823,2824,2825,2826,2827,2828,2829,2830,2831,2832,2833,2834,2835,2836,2837,2838,2839,2840,2841,2842,2843,2844,2845,2846,2847,2848,2849,2850,2851,2852,2853,2854,2855,2856,2857,2858,2859,2860,2861,2862,2863,2864,2865,2866,2867,2868,2869,2870,2871,2872,2873,2874,2875,2876,2877,2878,2879,2880,2881,2882,2883,2884,2885,2886,2887,2888,2889,2890,2891,2892,2893,2894,2895,2896,2897,2898,2899,2900,2901,2902,2903,2904,2905,2906,2907,2908,2909,2910,2911,2912,2913,2914,2915,2916,2917,2918,2919,2920,2921,2922,2923,2924,2925,2926,2927,2928,2929,2930,2931,2932,2933,2935,2936,2937,2938,2939,2940,2941,2942,2943,2944,2945,2946,2947,2948,2949,2950,2951,2952,2953,2954,2955,2956,2957,2958,2959,2960,2961,2962,3036,3037,3148,3149,3176,3200,3300,3301,3439,3440,3561,3562,3563,3564,3565,3920,3991,3992,4001,4002,4003,4004,4005,4006,4007,4008,4009,4010,4011,4012,4013,4014,4015,4016,4018,4019,4020,4021,4022,4024,4025,4027,4028,4029,4030,4031,4032,4033,4034,4035,4036,4041,4042,4043,4044,4045,4047,4120,4121,4122,4123,4124,4125,4126,4127,4128,4129,4130,4131,4132,4133,4134,4135,4136,4137,4138,4139,4140,4141,4142,4143,4144,4145,4146,4147,4148,4149,4150,4151,4152,4153,4154,4155,4156,4157,4158,4159,4160,4161,4162,4163,4164,4165,4166,4167,4168,4169,4170,4171,4172,4173,4174,4175,4176,4178,4179,4180,4181,4182,4183,4184,4185,4188,4189,4190,4191,4192,4193,4194,4195,4196,4197,4198,4199,4200,4201,4202,4203,4204,4205,4206,4207,4208,4209,4210,4211,4212,4213,4214,4215,4216,4218,4219,4220,4221,4222,4223,4224,4225,4226,4227,4228,4229,4230,4231,4232,4233,4234,4235,4236,4237,4238,4239,4240,4241,4242,4243,4244,4245,4246,4247,4248,4249,4250,4251,4252,4253,4254,4255,4256,4257,4258,4259,4260,4261,4262,4263,4264,4265,4266,4267,4268,4269,4270,4271,4272,4273,4274,4275,4276,4277,4278,4279,4280,4281,4282,4283,4284,4285,4286,4287,4288,4289,4291,4292,4293,4294,4295,4296,4297,4298,4299,4300,4301,4302,4303,4304,4306,4307,4308,4309,4310,4311,4312,4313,4314,4315,4316,4317,4318,4319,4322,4324,4326,4600,4601,4602,4603,4604,4605,4606,4607,4608,4609,4610,4611,4612,4613,4614,4615,4616,4617,20004,20005,20006,20007,20008,20009,20010,20011,20012,20013,20014,20015,20016,20017,20018,20019,20020,20021,20022,20023,20024,20025,20026,20027,20028,20029,20030,20031,20032,20064,20065,20066,20067,20068,20069,20070,20071,20072,20073,20074,20075,20076,20077,20078,20079,20080,20081,20082,20083,20084,20085,20086,20087,20088,20089,20090,20091,20092,20137,20138,20248,20249,20250,20251,20252,20253,20254,20255,20256,20257,20258,20348,20349,20350,20351,20352,20353,20354,20355,20356,20357,20358,20437,20438,20439,20499,20538,20539,20822,20823,20824,20934,20935,20936,21035,21036,21037,21095,21096,21097,21148,21149,21150,21291,21292,21413,21414,21415,21416,21417,21418,21419,21420,21421,21422,21423,21453,21454,21455,21456,21457,21458,21459,21460,21461,21462,21463,21473,21474,21475,21476,21477,21478,21479,21480,21481,21482,21483,21817,21818,21891,21892,21893,21894,22032,22033,22091,22092,22191,22192,22193,22194,22195,22196,22197,22234,22235,22236,22332,22391,22392,22523,22524,22700,22770,22780,22832,22991,22992,22993,22994,23028,23029,23030,23031,23032,23033,23034,23035,23036,23037,23038,23090,23095,23239,23240,23433,23846,23847,23848,23849,23850,23851,23852,23853,23886,23887,23888,23889,23890,23891,23892,23893,23894,23946,23947,23948,24047,24048,24100,24200,24305,24306,24311,24312,24313,24342,24343,24344,24345,24346,24347,24370,24371,24372,24373,24374,24375,24376,24377,24378,24379,24380,24381,24382,24383,24500,24547,24548,24571,24600,24718,24719,24720,24818,24819,24820,24821,24877,24878,24879,24880,24882,24891,24892,24893,25000,25231,25391,25392,25393,25394,25395,25828,25829,25830,25831,25832,25833,25834,25835,25836,25837,25838,25884,25932,26191,26192,26193,26237,26331,26332,26391,26392,26393,26432,26632,26692,26703,26704,26705,26706,26707,26708,26709,26710,26711,26712,26713,26714,26715,26716,26717,26718,26719,26720,26721,26722,26729,26730,26731,26732,26733,26734,26735,26736,26737,26738,26739,26740,26741,26742,26743,26744,26745,26746,26747,26748,26749,26750,26751,26752,26753,26754,26755,26756,26757,26758,26759,26760,26766,26767,26768,26769,26770,26771,26772,26773,26774,26775,26776,26777,26778,26779,26780,26781,26782,26783,26784,26785,26786,26787,26791,26792,26793,26794,26795,26796,26797,26798,26801,26802,26803,26811,26812,26813,26903,26904,26905,26906,26907,26908,26909,26910,26911,26912,26913,26914,26915,26916,26917,26918,26919,26920,26921,26922,26923,26929,26930,26931,26932,26933,26934,26935,26936,26937,26938,26939,26940,26941,26942,26943,26944,26945,26946,26948,26949,26950,26951,26952,26953,26954,26955,26956,26957,26958,26959,26960,26961,26962,26963,26964,26965,26966,26967,26968,26969,26970,26971,26972,26973,26974,26975,26976,26977,26978,26979,26980,26981,26982,26983,26984,26985,26986,26987,26988,26989,26990,26991,26992,26993,26994,26995,26996,26997,26998,27038,27039,27040,27120,27205,27206,27207,27208,27209,27210,27211,27212,27213,27214,27215,27216,27217,27218,27219,27220,27221,27222,27223,27224,27225,27226,27227,27228,27229,27230,27231,27232,27258,27259,27260,27291,27292,27429,27492,27700,28191,28192,28193,28232,28348,28349,28350,28351,28352,28353,28354,28355,28356,28357,28358,28402,28403,28404,28405,28406,28407,28408,28409,28410,28411,28412,28413,28414,28415,28416,28417,28418,28419,28420,28421,28422,28423,28424,28425,28426,28427,28428,28429,28430,28431,28432,28462,28463,28464,28465,28466,28467,28468,28469,28470,28471,28472,28473,28474,28475,28476,28477,28478,28479,28480,28481,28482,28483,28484,28485,28486,28487,28488,28489,28490,28491,28492,28600,28991,28992,29100,29118,29119,29120,29121,29122,29177,29178,29179,29180,29181,29182,29183,29184,29185,29220,29221,29333,29635,29636,29738,29739,29849,29850,29871,29872,29873,29900,29901,29902,29903,30161,30162,30163,30164,30165,30166,30167,30168,30169,30170,30171,30172,30173,30174,30175,30176,30177,30178,30179,30200,30339,30340,30491,30492,30729,30730,30731,30732,30791,30792,30800,31028,31121,31154,31170,31171,31265,31266,31267,31268,31275,31276,31277,31278,31279,31284,31285,31286,31287,31294,31295,31296,31297,31300,31370,31461,31462,31463,31464,31465,31466,31467,31468,31469,31528,31529,31600,31700,31838,31839,31900,31986,31987,31988,31989,31990,31991,31992,31993,31994,31995,31996,31997,31998,31999,32000,32001,32002,32003,32005,32006,32007,32008,32009,32010,32011,32012,32013,32014,32015,32016,32017,32018,32019,32020,32021,32022,32023,32024,32025,32026,32027,32028,32029,32030,32031,32033,32034,32035,32036,32037,32038,32039,32040,32041,32042,32043,32044,32045,32046,32047,32048,32049,32050,32051,32052,32053,32054,32055,32056,32057,32058,32061,32062,32064,32065,32066,32067,32074,32075,32076,32077,32081,32082,32083,32084,32085,32086,32098,32100,32104,32107,32108,32109,32110,32111,32112,32113,32114,32115,32116,32117,32118,32119,32120,32121,32122,32123,32124,32125,32126,32127,32128,32129,32130,32133,32134,32135,32136,32137,32138,32139,32140,32141,32142,32143,32144,32145,32146,32147,32148,32149,32150,32151,32152,32153,32154,32155,32156,32157,32158,32161,32180,32181,32182,32183,32184,32185,32186,32187,32188,32189,32190,32191,32192,32193,32194,32195,32196,32197,32198,32201,32202,32203,32204,32205,32206,32207,32208,32209,32210,32211,32212,32213,32214,32215,32216,32217,32218,32219,32220,32221,32222,32223,32224,32225,32226,32227,32228,32229,32230,32231,32232,32233,32234,32235,32236,32237,32238,32239,32240,32241,32242,32243,32244,32245,32246,32247,32248,32249,32250,32251,32252,32253,32254,32255,32256,32257,32258,32259,32260,32301,32302,32303,32304,32305,32306,32307,32308,32309,32310,32311,32312,32313,32314,32315,32316,32317,32318,32319,32320,32321,32322,32323,32324,32325,32326,32327,32328,32329,32330,32331,32332,32333,32334,32335,32336,32337,32338,32339,32340,32341,32342,32343,32344,32345,32346,32347,32348,32349,32350,32351,32352,32353,32354,32355,32356,32357,32358,32359,32360,32401,32402,32403,32404,32405,32406,32407,32408,32409,32410,32411,32412,32413,32414,32415,32416,32417,32418,32419,32420,32421,32422,32423,32424,32425,32426,32427,32428,32429,32430,32431,32432,32433,32434,32435,32436,32437,32438,32439,32440,32441,32442,32443,32444,32445,32446,32447,32448,32449,32450,32451,32452,32453,32454,32455,32456,32457,32458,32459,32460,32501,32502,32503,32504,32505,32506,32507,32508,32509,32510,32511,32512,32513,32514,32515,32516,32517,32518,32519,32520,32521,32522,32523,32524,32525,32526,32527,32528,32529,32530,32531,32532,32533,32534,32535,32536,32537,32538,32539,32540,32541,32542,32543,32544,32545,32546,32547,32548,32549,32550,32551,32552,32553,32554,32555,32556,32557,32558,32559,32560,32601,32602,32603,32604,32605,32606,32607,32608,32609,32610,32611,32612,32613,32614,32615,32616,32617,32618,32619,32620,32621,32622,32623,32624,32625,32626,32627,32628,32629,32630,32631,32632,32633,32634,32635,32636,32637,32638,32639,32640,32641,32642,32643,32644,32645,32646,32647,32648,32649,32650,32651,32652,32653,32654,32655,32656,32657,32658,32659,32660,32661,32701,32702,32703,32704,32705,32706,32707,32708,32709,32710,32711,32712,32713,32714,32715,32716,32717,32718,32719,32720,32721,32722,32723,32724,32725,32726,32727,32728,32729,32730,32731,32732,32733,32734,32735,32736,32737,32738,32739,32740,32741,32742,32743,32744,32745,32746,32747,32748,32749,32750,32751,32752,32753,32754,32755,32756,32757,32758,32759,32760,32761,32766,20002,20003,20062,20063,24721,26761,26762,26763,26764,26765,26788,26789,26790,30591,30592,31491,31492,31493,31494,31495,32059,32060,53003,53004,53008,53009,53010,53012,53016,53021,53026,53027,53028,53029,53030,53032,54003,54004,54008,54009,54010,54012,54016,54021,54026,54027,54028,54029,54030,54032,65061,65161,102001,102002,102003,102004,102005,102006,102007,102008,102009,102010,102011,102012,102013,102014,102015,102016,102017,102018,102019,102020,102021,102022,102023,102024,102025,102026,102027,102028,102029,102030,102031,102032,102033,102091,102092,102101,102102,102103,102104,102105,102106,102107,102108,102110,102114,102115,102120,102121,102122,102123,102132,102133,102134,102135,102140,102141,102142,102151,102152,102153,102154,102155,102156,102160,102161,102162,102164,102165,102166,102167,102168,102169,102191,102192,102193,102229,102230,102241,102242,102243,102244,102245,102246,102248,102249,102250,102251,102252,102253,102254,102255,102256,102257,102258,102259,102260,102261,102262,102263,102264,102265,102266,102267,102268,102269,102270,102271,102272,102273,102274,102277,102278,102279,102280,102281,102282,102283,102284,102285,102286,102287,102288,102289,102290,102291,102292,102293,102294,102295,102296,102297,102298,102300,102304,102307,102308,102309,102310,102311,102312,102313,102314,102315,102316,102317,102318,102320,102321,102322,102323,102324,102325,102326,102327,102330,102334,102335,102336,102337,102338,102339,102340,102341,102342,102343,102344,102345,102346,102347,102348,102349,102350,102351,102352,102353,102354,102355,102356,102357,102358,102361,102491,102492,102581,102582,102583,102584,102591,102592,102629,102630,102631,102632,102633,102634,102635,102636,102637,102638,102639,102640,102641,102642,102643,102644,102645,102646,102648,102649,102650,102651,102652,102653,102654,102655,102656,102657,102658,102659,102660,102661,102662,102663,102664,102665,102666,102667,102668,102669,102670,102671,102672,102673,102674,102675,102676,102677,102678,102679,102680,102681,102682,102683,102684,102685,102686,102687,102688,102689,102690,102691,102692,102693,102694,102695,102696,102697,102698,102700,102704,102707,102708,102709,102710,102711,102712,102713,102714,102715,102716,102717,102718,102719,102720,102721,102722,102723,102724,102725,102726,102727,102728,102729,102730,102733,102734,102735,102736,102737,102738,102739,102740,102741,102742,102743,102744,102745,102746,102747,102748,102749,102750,102751,102752,102753,102754,102755,102756,102757,102758,102761,102766,103300,4023,4217,4305,4404,37001,37002,37003,37004,37005,37006,37007,37008,37201,37202,37203,37204,37205,37206,37207,37208,37211,37212,37213,37214,37215,37216,37217,37218,37219,37220,37221,37222,37223,37224,37226,37227,37228,37229,37230,37231,37232,37233,37234,37235,37237,37238,37239,37240,37241,37242,37243,37245,37246,37247,37249,37250,37251,37252,37253,37254,37255,37257,37259,37260,104000,104101,104102,104103,104104,104105,104106,104107,104108,104261,104304,104305 |
|
5 |
NAD83=101,102,5010,201,202,203,301,302,401,402,403,404,405,406,501,502,503,600,700,901,902,903,1001,1002,5101,5102,5103,5104,5105,1101,1102,1103,1201,1202,1301,1302,1401,1402,1501,1502,1601,1602,1701,1702,1703,1801,1802,1900,2001,2002,2111,2112,2113,2201,2202,2203,2301,2302,2401,2402,2403,2500,2600,2701,2702,2703,2800,2900,3001,3002,3003,3101,3102,3103,3104,3200,3301,3302,3401,3402,3501,3502,3601,3602,3701,3702,3800,3900,4001,4002,4100,4201,4202,4203,4204,4205,4301,4302,4303,4400,4501,4502,4601,4602,4701,4702,4801,4802,4803,4901,4902,4903,4904,5002,5003,5004,5005,5006,5007,5008,5009,5200 |
|
6 |
WORLD=CH1903,bwi,costa-n,cuba-s,domin_rep,egypt-1,egypt-2,egypt-3,egypt-4,egypt-5,guat-n,guat-s,haiti,hond-n,hond-s,levant,nica-n,nica-s,palestine,irish,neiez,n-alger,n-maroc,n-tunis,s-alger,s-maroc,s-tunis,gk2-d,gk3-d,gk4-d |
|
7 |
EPSG=3819,3821,3824,3889,3906,4001,4002,4003,4004,4005,4006,4007,4008,4009,4010,4011,4012,4013,4014,4015,4016,4018,4019,4020,4021,4022,4023,4024,4025,4027,4028,4029,4030,4031,4032,4033,4034,4035,4036,4041,4042,4043,4044,4045,4046,4047,4052,4053,4054,4055,4075,4081,4120,4121,4122,4123,4124,4125,4126,4127,4128,4129,4130,4131,4132,4133,4134,4135,4136,4137,4138,4139,4140,4141,4142,4143,4144,4145,4146,4147,4148,4149,4150,4151,4152,4153,4154,4155,4156,4157,4158,4159,4160,4161,4162,4163,4164,4165,4166,4167,4168,4169,4170,4171,4172,4173,4174,4175,4176,4178,4179,4180,4181,4182,4183,4184,4185,4188,4189,4190,4191,4192,4193,4194,4195,4196,4197,4198,4199,4200,4201,4202,4203,4204,4205,4206,4207,4208,4209,4210,4211,4212,4213,4214,4215,4216,4218,4219,4220,4221,4222,4223,4224,4225,4226,4227,4228,4229,4230,4231,4232,4233,4234,4235,4236,4237,4238,4239,4240,4241,4242,4243,4244,4245,4246,4247,4248,4249,4250,4251,4252,4253,4254,4255,4256,4257,4258,4259,4260,4261,4262,4263,4264,4265,4266,4267,4268,4269,4270,4271,4272,4273,4274,4275,4276,4277,4278,4279,4280,4281,4282,4283,4284,4285,4286,4287,4288,4289,4291,4292,4293,4294,4295,4296,4297,4298,4299,4300,4301,4302,4303,4304,4306,4307,4308,4309,4310,4311,4312,4313,4314,4315,4316,4317,4318,4319,4322,4324,4326,4463,4470,4475,4483,4490,4555,4558,4600,4601,4602,4603,4604,4605,4606,4607,4608,4609,4610,4611,4612,4613,4614,4615,4616,4617,4618,4619,4620,4621,4622,4623,4624,4625,4626,4627,4628,4629,4630,4631,4632,4633,4634,4635,4636,4637,4638,4639,4640,4641,4642,4643,4644,4645,4646,4657,4658,4659,4660,4661,4662,4663,4664,4665,4666,4667,4668,4669,4670,4671,4672,4673,4674,4675,4676,4677,4678,4679,4680,4681,4682,4683,4684,4685,4686,4687,4688,4689,4690,4691,4692,4693,4694,4695,4696,4697,4698,4699,4700,4701,4702,4703,4704,4705,4706,4707,4708,4709,4710,4711,4712,4713,4714,4715,4716,4717,4718,4719,4720,4721,4722,4723,4724,4725,4726,4727,4728,4729,4730,4731,4732,4733,4734,4735,4736,4737,4738,4739,4740,4741,4742,4743,4744,4745,4746,4747,4748,4749,4750,4751,4752,4753,4754,4755,4756,4757,4758,4759,4760,4761,4762,4763,4764,4765,4823,4824,2000,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016,2017,2018,2019,2020,2021,2022,2023,2024,2025,2026,2027,2028,2029,2030,2031,2032,2033,2034,2035,2036,2037,2038,2039,2040,2041,2042,2043,2044,2045,2056,2058,2059,2060,2061,2063,2064,2066,2067,2068,2069,2070,2071,2072,2073,2074,2075,2076,2077,2078,2079,2080,2081,2082,2083,2084,2085,2086,2087,2088,2089,2090,2091,2092,2093,2094,2095,2096,2097,2098,2099,2100,2101,2102,2103,2104,2105,2106,2107,2108,2109,2110,2111,2112,2113,2114,2115,2116,2117,2118,2119,2120,2121,2122,2123,2124,2125,2126,2127,2128,2129,2130,2131,2132,2133,2134,2135,2136,2137,2138,2139,2140,2141,2142,2143,2144,2145,2146,2147,2148,2149,2150,2151,2152,2153,2154,2155,2156,2157,2158,2159,2160,2161,2162,2163,2164,2165,2166,2167,2168,2169,2170,2171,2172,2173,2174,2175,2176,2177,2178,2179,2180,2188,2189,2190,2191,2192,2193,2194,2195,2196,2197,2198,2199,2200,2201,2202,2203,2204,2205,2206,2207,2208,2209,2210,2211,2212,2213,2214,2215,2216,2217,2219,2220,2222,2223,2224,2225,2226,2227,2228,2229,2230,2231,2232,2233,2234,2235,2236,2237,2238,2239,2240,2241,2242,2243,2244,2245,2246,2247,2248,2249,2250,2251,2252,2253,2254,2255,2256,2257,2258,2259,2260,2261,2262,2263,2264,2265,2266,2267,2268,2269,2270,2271,2272,2273,2274,2275,2276,2277,2278,2279,2280,2281,2282,2283,2284,2285,2286,2287,2288,2289,2290,2291,2292,2294,2295,2308,2309,2310,2311,2312,2313,2314,2315,2316,2317,2318,2319,2320,2321,2322,2323,2324,2325,2326,2327,2328,2329,2330,2331,2332,2333,2334,2335,2336,2337,2338,2339,2340,2341,2342,2343,2344,2345,2346,2347,2348,2349,2350,2351,2352,2353,2354,2355,2356,2357,2358,2359,2360,2361,2362,2363,2364,2365,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2384,2385,2386,2387,2388,2389,2390,2391,2392,2393,2394,2395,2396,2397,2398,2399,2400,2401,2402,2403,2404,2405,2406,2407,2408,2409,2410,2411,2412,2413,2414,2415,2416,2417,2418,2419,2420,2421,2422,2423,2424,2425,2426,2427,2428,2429,2430,2431,2432,2433,2434,2435,2436,2437,2438,2439,2440,2441,2442,2443,2444,2445,2446,2447,2448,2449,2450,2451,2452,2453,2454,2455,2456,2457,2458,2459,2460,2461,2462,2463,2464,2465,2466,2467,2468,2469,2470,2471,2472,2473,2474,2475,2476,2477,2478,2479,2480,2481,2482,2483,2484,2485,2486,2487,2488,2489,2490,2491,2492,2493,2494,2495,2496,2497,2498,2499,2500,2501,2502,2503,2504,2505,2506,2507,2508,2509,2510,2511,2512,2513,2514,2515,2516,2517,2518,2519,2520,2521,2522,2523,2524,2525,2526,2527,2528,2529,2530,2531,2532,2533,2534,2535,2536,2537,2538,2539,2540,2541,2542,2543,2544,2545,2546,2547,2548,2549,2550,2551,2552,2553,2554,2555,2556,2557,2558,2559,2560,2561,2562,2563,2564,2565,2566,2567,2568,2569,2570,2571,2572,2573,2574,2575,2576,2577,2578,2579,2580,2581,2582,2583,2584,2585,2586,2587,2588,2589,2590,2591,2592,2593,2594,2595,2596,2597,2598,2599,2600,2601,2602,2603,2604,2605,2606,2607,2608,2609,2610,2611,2612,2613,2614,2615,2616,2617,2618,2619,2620,2621,2622,2623,2624,2625,2626,2627,2628,2629,2630,2631,2632,2633,2634,2635,2636,2637,2638,2639,2640,2641,2642,2643,2644,2645,2646,2647,2648,2649,2650,2651,2652,2653,2654,2655,2656,2657,2658,2659,2660,2661,2662,2663,2664,2665,2666,2667,2668,2669,2670,2671,2672,2673,2674,2675,2676,2677,2678,2679,2680,2681,2682,2683,2684,2685,2686,2687,2688,2689,2690,2691,2692,2693,2694,2695,2696,2697,2698,2699,2700,2701,2702,2703,2704,2705,2706,2707,2708,2709,2710,2711,2712,2713,2714,2715,2716,2717,2718,2719,2720,2721,2722,2723,2724,2725,2726,2727,2728,2729,2730,2731,2732,2733,2734,2735,2736,2737,2738,2739,2740,2741,2742,2743,2744,2745,2746,2747,2748,2749,2750,2751,2752,2753,2754,2755,2756,2757,2758,2759,2760,2761,2762,2763,2764,2765,2766,2767,2768,2769,2770,2771,2772,2773,2774,2775,2776,2777,2778,2779,2780,2781,2782,2783,2784,2785,2786,2787,2788,2789,2790,2791,2792,2793,2794,2795,2796,2797,2798,2799,2800,2801,2802,2803,2804,2805,2806,2807,2808,2809,2810,2811,2812,2813,2814,2815,2816,2817,2818,2819,2820,2821,2822,2823,2824,2825,2826,2827,2828,2829,2830,2831,2832,2833,2834,2835,2836,2837,2838,2839,2840,2841,2842,2843,2844,2845,2846,2847,2848,2849,2850,2851,2852,2853,2854,2855,2856,2857,2858,2859,2860,2861,2862,2863,2864,2865,2866,2867,2868,2869,2870,2871,2872,2873,2874,2875,2876,2877,2878,2879,2880,2881,2882,2883,2884,2885,2886,2887,2888,2889,2890,2891,2892,2893,2894,2895,2896,2897,2898,2899,2900,2901,2902,2903,2904,2905,2906,2907,2908,2909,2910,2911,2912,2913,2914,2915,2916,2917,2918,2919,2920,2921,2922,2923,2924,2925,2926,2927,2928,2929,2930,2931,2932,2933,2935,2936,2937,2938,2939,2940,2941,2942,2943,2944,2945,2946,2947,2948,2949,2950,2951,2952,2953,2954,2955,2956,2957,2958,2959,2960,2961,2962,2964,2965,2966,2967,2968,2969,2970,2971,2972,2973,2975,2976,2977,2978,2979,2980,2981,2982,2983,2984,2987,2988,2989,2990,2991,2992,2993,2994,2995,2996,2997,2998,2999,3000,3001,3002,3003,3004,3005,3006,3007,3008,3009,3010,3011,3012,3013,3014,3015,3016,3017,3018,3019,3020,3021,3022,3023,3024,3025,3026,3027,3028,3029,3030,3031,3032,3033,3034,3035,3036,3037,3038,3039,3040,3041,3042,3043,3044,3045,3046,3047,3048,3049,3050,3051,3054,3055,3056,3057,3058,3059,3060,3061,3062,3063,3064,3065,3066,3067,3068,3069,3070,3071,3072,3073,3074,3075,3076,3077,3080,3081,3082,3083,3084,3085,3086,3087,3088,3089,3090,3091,3092,3093,3094,3095,3096,3097,3098,3099,3100,3101,3102,3103,3104,3105,3106,3107,3108,3109,3110,3111,3112,3113,3114,3115,3116,3117,3118,3119,3120,3121,3122,3123,3124,3125,3126,3127,3128,3129,3130,3131,3132,3133,3134,3135,3136,3137,3138,3140,3141,3142,3143,3146,3147,3148,3149,3150,3151,3152,3153,3154,3155,3156,3157,3158,3159,3160,3161,3162,3163,3164,3165,3166,3169,3170,3171,3172,3174,3175,3176,3177,3178,3179,3180,3181,3182,3183,3184,3185,3186,3187,3188,3189,3190,3191,3192,3193,3194,3195,3196,3197,3198,3199,3200,3201,3202,3203,3204,3205,3206,3207,3208,3209,3210,3211,3212,3213,3214,3215,3216,3217,3218,3219,3220,3221,3222,3223,3224,3225,3226,3227,3228,3229,3230,3231,3232,3233,3234,3235,3236,3237,3238,3239,3240,3241,3242,3243,3244,3245,3246,3247,3248,3249,3250,3251,3252,3253,3254,3255,3256,3257,3258,3259,3260,3261,3262,3263,3264,3265,3266,3267,3268,3269,3270,3271,3272,3273,3274,3275,3276,3277,3278,3279,3280,3281,3282,3283,3284,3285,3286,3287,3288,3289,3290,3291,3292,3293,3294,3296,3297,3298,3299,3300,3301,3302,3303,3304,3305,3306,3307,3308,3309,3310,3311,3312,3313,3314,3315,3316,3317,3318,3319,3320,3321,3322,3323,3324,3325,3326,3327,3328,3329,3330,3331,3332,3333,3334,3335,3336,3337,3338,3339,3340,3341,3342,3343,3344,3345,3346,3347,3348,3349,3350,3351,3352,3353,3354,3355,3356,3357,3358,3359,3360,3361,3362,3363,3364,3365,3366,3367,3368,3369,3370,3371,3372,3373,3374,3377,3378,3379,3380,3381,3382,3383,3384,3385,3386,3387,3388,3389,3390,3391,3392,3393,3394,3395,3396,3397,3398,3399,3400,3401,3402,3403,3404,3405,3406,3407,3408,3409,3411,3412,3413,3414,3415,3416,3417,3418,3419,3420,3421,3422,3423,3424,3425,3426,3427,3428,3429,3430,3431,3432,3433,3434,3435,3436,3437,3438,3439,3440,3441,3442,3443,3444,3445,3446,3447,3448,3449,3450,3451,3452,3453,3454,3455,3456,3457,3458,3459,3460,3461,3462,3463,3464,3465,3466,3467,3469,3470,3471,3472,3473,3474,3475,3476,3477,3478,3479,3480,3481,3482,3483,3484,3485,3486,3487,3488,3489,3490,3491,3492,3493,3494,3495,3496,3497,3498,3499,3500,3501,3502,3503,3504,3505,3506,3507,3508,3509,3510,3511,3512,3513,3514,3515,3516,3517,3518,3519,3520,3521,3522,3523,3524,3525,3526,3527,3528,3529,3530,3531,3532,3533,3534,3535,3536,3537,3538,3539,3540,3541,3542,3543,3544,3545,3546,3547,3548,3549,3550,3551,3552,3553,3554,3555,3556,3557,3558,3559,3560,3561,3562,3563,3564,3565,3566,3567,3568,3569,3570,3571,3572,3573,3574,3575,3576,3577,3578,3579,3580,3581,3582,3583,3584,3585,3586,3587,3588,3589,3590,3592,3593,3594,3595,3596,3597,3598,3599,3600,3601,3602,3603,3604,3605,3606,3607,3608,3609,3610,3611,3612,3613,3614,3615,3616,3617,3618,3619,3620,3621,3622,3623,3624,3625,3626,3627,3628,3629,3630,3631,3632,3633,3634,3635,3636,3637,3638,3639,3640,3641,3642,3643,3644,3645,3646,3647,3648,3649,3650,3651,3652,3653,3654,3655,3656,3657,3658,3659,3660,3661,3662,3663,3664,3665,3666,3667,3668,3669,3670,3671,3672,3673,3674,3675,3676,3677,3678,3679,3680,3681,3682,3683,3684,3685,3686,3687,3688,3689,3690,3691,3692,3693,3694,3695,3696,3697,3698,3699,3700,3701,3702,3703,3704,3705,3706,3707,3708,3709,3710,3711,3712,3713,3714,3715,3716,3717,3718,3719,3720,3721,3722,3723,3724,3725,3726,3727,3728,3729,3730,3731,3732,3733,3734,3735,3736,3737,3738,3739,3740,3741,3742,3743,3744,3745,3746,3747,3748,3749,3750,3751,3752,3753,3754,3755,3756,3757,3758,3759,3760,3761,3762,3763,3764,3765,3766,3767,3768,3769,3770,3771,3772,3773,3774,3775,3776,3777,3778,3779,3780,3781,3782,3783,3784,3785,3786,3787,3788,3789,3790,3791,3793,3794,3795,3796,3797,3798,3799,3800,3801,3802,3812,3814,3815,3816,3825,3826,3827,3828,3829,3832,3833,3834,3835,3836,3837,3838,3839,3840,3841,3842,3843,3844,3845,3846,3847,3848,3849,3850,3851,3852,3854,3857,3890,3891,3892,3893,3907,3908,3909,3910,3911,3912,3920,3942,3943,3944,3945,3946,3947,3948,3949,3950,3968,3969,3970,3976,3978,3979,3985,3986,3987,3988,3989,3991,3992,3994,3995,3996,3997,4026,4037,4038,4048,4049,4050,4051,4056,4057,4058,4059,4060,4061,4062,4063,4071,4082,4083,4093,4094,4095,4096,4414,4415,4417,4434,4437,4455,4456,4457,4462,4467,4471,4474,4484,4485,4486,4487,4488,4489,4491,4492,4493,4494,4495,4496,4497,4498,4499,4500,4501,4502,4503,4504,4505,4506,4507,4508,4509,4510,4511,4512,4513,4514,4515,4516,4517,4518,4519,4520,4521,4522,4523,4524,4525,4526,4527,4528,4529,4530,4531,4532,4533,4534,4535,4536,4537,4538,4539,4540,4541,4542,4543,4544,4545,4546,4547,4548,4549,4550,4551,4552,4553,4554,4559,4568,4569,4570,4571,4572,4573,4574,4575,4576,4577,4578,4579,4580,4581,4582,4583,4584,4585,4586,4587,4588,4589,4647,4652,4653,4654,4655,4656,4766,4767,4768,4769,4770,4771,4772,4773,4774,4775,4776,4777,4778,4779,4780,4781,4782,4783,4784,4785,4786,4787,4788,4789,4790,4791,4792,4793,4794,4795,4796,4797,4798,4799,4800,4812,4822,4826,20004,20005,20006,20007,20008,20009,20010,20011,20012,20013,20014,20015,20016,20017,20018,20019,20020,20021,20022,20023,20024,20025,20026,20027,20028,20029,20030,20031,20032,20064,20065,20066,20067,20068,20069,20070,20071,20072,20073,20074,20075,20076,20077,20078,20079,20080,20081,20082,20083,20084,20085,20086,20087,20088,20089,20090,20091,20092,20135,20136,20137,20138,20248,20249,20250,20251,20252,20253,20254,20255,20256,20257,20258,20348,20349,20350,20351,20352,20353,20354,20355,20356,20357,20358,20436,20437,20438,20439,20440,20499,20538,20539,20822,20823,20824,20934,20935,20936,21035,21036,21037,21095,21096,21097,21148,21149,21150,21291,21292,21413,21414,21415,21416,21417,21418,21419,21420,21421,21422,21423,21453,21454,21455,21456,21457,21458,21459,21460,21461,21462,21463,21473,21474,21475,21476,21477,21478,21479,21480,21481,21482,21483,21781,21782,21817,21818,21891,21892,21893,21894,21896,21897,21898,21899,22032,22033,22091,22092,22171,22172,22173,22174,22175,22176,22177,22181,22182,22183,22184,22185,22186,22187,22191,22192,22193,22194,22195,22196,22197,22234,22235,22236,22332,22391,22392,22521,22522,22523,22524,22525,22700,22770,22780,22832,22991,22992,22993,22994,23028,23029,23030,23031,23032,23033,23034,23035,23036,23037,23038,23090,23095,23239,23240,23433,23700,23830,23831,23832,23833,23834,23835,23836,23837,23838,23839,23840,23841,23842,23843,23844,23845,23846,23847,23848,23849,23850,23851,23852,23853,23866,23867,23868,23869,23870,23871,23872,23877,23878,23879,23880,23881,23882,23883,23884,23886,23887,23888,23889,23890,23891,23892,23893,23894,23946,23947,23948,24047,24048,24100,24200,24305,24306,24311,24312,24313,24342,24343,24344,24345,24346,24347,24370,24371,24372,24373,24374,24375,24376,24377,24378,24379,24380,24381,24382,24383,24500,24547,24548,24600,24718,24719,24720,24817,24818,24819,24820,24821,24877,24878,24879,24880,24881,24882,24891,24892,24893,25000,25231,25391,25392,25393,25394,25395,25828,25829,25830,25831,25832,25833,25834,25835,25836,25837,25838,25884,25932,26191,26192,26193,26194,26195,26237,26331,26332,26391,26392,26393,26432,26632,26692,26701,26702,26703,26704,26705,26706,26707,26708,26709,26710,26711,26712,26713,26714,26715,26716,26717,26718,26719,26720,26721,26722,26729,26730,26732,26733,26734,26735,26736,26737,26738,26739,26740,26741,26742,26743,26744,26745,26746,26747,26748,26749,26750,26751,26752,26753,26754,26755,26756,26757,26758,26759,26760,26766,26767,26768,26769,26770,26771,26772,26773,26774,26775,26776,26777,26778,26779,26780,26781,26782,26783,26784,26785,26786,26787,26791,26792,26793,26794,26795,26796,26797,26798,26799,26801,26802,26803,26811,26812,26813,26814,26815,26819,26820,26821,26822,26823,26824,26825,26826,26830,26831,26832,26833,26834,26835,26836,26837,26841,26842,26843,26844,26845,26846,26847,26848,26849,26850,26851,26852,26853,26854,26855,26856,26857,26858,26859,26860,26861,26862,26863,26864,26865,26866,26867,26868,26869,26870,26891,26892,26893,26894,26895,26896,26897,26898,26899,26901,26902,26903,26904,26905,26906,26907,26908,26909,26910,26911,26912,26913,26914,26915,26916,26917,26918,26919,26920,26921,26922,26923,26929,26930,26932,26933,26934,26935,26936,26937,26938,26939,26940,26941,26942,26943,26944,26945,26946,26948,26949,26950,26951,26952,26953,26954,26955,26956,26957,26958,26959,26960,26961,26962,26963,26964,26965,26966,26967,26968,26969,26970,26971,26972,26973,26974,26975,26976,26977,26978,26979,26980,26981,26982,26983,26984,26985,26986,26987,26988,26989,26990,26991,26992,26993,26994,26995,26996,26997,26998,27037,27038,27039,27040,27120,27205,27206,27207,27208,27209,27210,27211,27212,27213,27214,27215,27216,27217,27218,27219,27220,27221,27222,27223,27224,27225,27226,27227,27228,27229,27230,27231,27232,27258,27259,27260,27291,27292,27429,27492,27493,27700,28191,28192,28193,28232,28348,28349,28350,28351,28352,28353,28354,28355,28356,28357,28358,28402,28403,28404,28405,28406,28407,28408,28409,28410,28411,28412,28413,28414,28415,28416,28417,28418,28419,28420,28421,28422,28423,28424,28425,28426,28427,28428,28429,28430,28431,28432,28462,28463,28464,28465,28466,28467,28468,28469,28470,28471,28472,28473,28474,28475,28476,28477,28478,28479,28480,28481,28482,28483,28484,28485,28486,28487,28488,28489,28490,28491,28492,28600,28991,28992,29100,29101,29118,29119,29120,29121,29122,29168,29169,29170,29171,29172,29177,29178,29179,29180,29181,29182,29183,29184,29185,29187,29188,29189,29190,29191,29192,29193,29194,29195,29220,29221,29333,29635,29636,29738,29739,29849,29850,29900,29901,29902,29903,30161,30162,30163,30164,30165,30166,30167,30168,30169,30170,30171,30172,30173,30174,30175,30176,30177,30178,30179,30200,30339,30340,30491,30492,30493,30494,30729,30730,30731,30732,30791,30792,30800,31028,31121,31154,31170,31171,31254,31255,31256,31257,31258,31259,31265,31266,31267,31268,31275,31276,31277,31278,31279,31284,31285,31286,31287,31294,31295,31296,31297,31300,31370,31461,31462,31463,31464,31465,31466,31467,31468,31469,31528,31529,31600,31700,31838,31839,31900,31901,31965,31966,31967,31968,31969,31970,31971,31972,31973,31974,31975,31976,31977,31978,31979,31980,31981,31982,31983,31984,31985,31986,31987,31988,31989,31990,31991,31992,31993,31994,31995,31996,31997,31998,31999,32000,32001,32002,32003,32005,32006,32007,32008,32009,32010,32011,32012,32013,32014,32015,32016,32017,32018,32019,32020,32021,32022,32023,32024,32025,32026,32027,32028,32029,32030,32031,32033,32034,32035,32036,32037,32038,32039,32040,32041,32042,32043,32044,32045,32046,32047,32048,32049,32050,32051,32052,32053,32054,32055,32056,32057,32058,32061,32062,32064,32065,32066,32067,32074,32075,32076,32077,32081,32082,32083,32084,32085,32086,32098,32099,32100,32104,32107,32108,32109,32110,32111,32112,32113,32114,32115,32116,32117,32118,32119,32120,32121,32122,32123,32124,32125,32126,32127,32128,32129,32130,32133,32134,32135,32136,32137,32138,32139,32140,32141,32142,32143,32144,32145,32146,32147,32148,32149,32150,32151,32152,32153,32154,32155,32156,32157,32158,32161,32164,32165,32166,32167,32180,32181,32182,32183,32184,32185,32186,32187,32188,32189,32190,32191,32192,32193,32194,32195,32196,32197,32198,32199,32201,32202,32203,32204,32205,32206,32207,32208,32209,32210,32211,32212,32213,32214,32215,32216,32217,32218,32219,32220,32221,32222,32223,32224,32225,32226,32227,32228,32229,32230,32231,32232,32233,32234,32235,32236,32237,32238,32239,32240,32241,32242,32243,32244,32245,32246,32247,32248,32249,32250,32251,32252,32253,32254,32255,32256,32257,32258,32259,32260,32301,32302,32303,32304,32305,32306,32307,32308,32309,32310,32311,32312,32313,32314,32315,32316,32317,32318,32319,32320,32321,32322,32323,32324,32325,32326,32327,32328,32329,32330,32331,32332,32333,32334,32335,32336,32337,32338,32339,32340,32341,32342,32343,32344,32345,32346,32347,32348,32349,32350,32351,32352,32353,32354,32355,32356,32357,32358,32359,32360,32401,32402,32403,32404,32405,32406,32407,32408,32409,32410,32411,32412,32413,32414,32415,32416,32417,32418,32419,32420,32421,32422,32423,32424,32425,32426,32427,32428,32429,32430,32431,32432,32433,32434,32435,32436,32437,32438,32439,32440,32441,32442,32443,32444,32445,32446,32447,32448,32449,32450,32451,32452,32453,32454,32455,32456,32457,32458,32459,32460,32501,32502,32503,32504,32505,32506,32507,32508,32509,32510,32511,32512,32513,32514,32515,32516,32517,32518,32519,32520,32521,32522,32523,32524,32525,32526,32527,32528,32529,32530,32531,32532,32533,32534,32535,32536,32537,32538,32539,32540,32541,32542,32543,32544,32545,32546,32547,32548,32549,32550,32551,32552,32553,32554,32555,32556,32557,32558,32559,32560,32601,32602,32603,32604,32605,32606,32607,32608,32609,32610,32611,32612,32613,32614,32615,32616,32617,32618,32619,32620,32621,32622,32623,32624,32625,32626,32627,32628,32629,32630,32631,32632,32633,32634,32635,32636,32637,32638,32639,32640,32641,32642,32643,32644,32645,32646,32647,32648,32649,32650,32651,32652,32653,32654,32655,32656,32657,32658,32659,32660,32661,32662,32664,32665,32666,32667,32701,32702,32703,32704,32705,32706,32707,32708,32709,32710,32711,32712,32713,32714,32715,32716,32717,32718,32719,32720,32721,32722,32723,32724,32725,32726,32727,32728,32729,32730,32731,32732,32733,32734,32735,32736,32737,32738,32739,32740,32741,32742,32743,32744,32745,32746,32747,32748,32749,32750,32751,32752,32753,32754,32755,32756,32757,32758,32759,32760,32761,32766 |
|
8 |
|
org.gvsig.proj/tags/org.gvsig.proj-1.0.18/org.gvsig.proj.lib/org.gvsig.proj.lib.proj4j/src/main/java/org/gvsig/proj/proj4j/DefaultCoordinateReferenceSystemManager.java | ||
---|---|---|
1 |
/* gvSIG. Desktop Geographic Information System. |
|
2 |
* |
|
3 |
* Copyright ? 2007-2012 gvSIG Association |
|
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., 51 Franklin Street, Fifth Floor, Boston, |
|
18 |
* MA 02110-1301, USA. |
|
19 |
* |
|
20 |
* For any additional information, do not hesitate to contact us |
|
21 |
* at info AT gvsig.com, or visit our website www.gvsig.com. |
|
22 |
*/ |
|
23 |
package org.gvsig.proj.proj4j; |
|
24 |
|
|
25 |
import java.io.BufferedReader; |
|
26 |
import java.io.IOException; |
|
27 |
import java.io.InputStream; |
|
28 |
import java.io.InputStreamReader; |
|
29 |
import java.io.OutputStream; |
|
30 |
import java.io.PrintStream; |
|
31 |
import java.io.StreamTokenizer; |
|
32 |
import java.util.ArrayList; |
|
33 |
import java.util.Arrays; |
|
34 |
import java.util.Collections; |
|
35 |
import java.util.HashMap; |
|
36 |
import java.util.Iterator; |
|
37 |
import java.util.List; |
|
38 |
import java.util.Map; |
|
39 |
import java.util.Map.Entry; |
|
40 |
import java.util.Properties; |
|
41 |
import java.util.Set; |
|
42 |
|
|
43 |
import org.osgeo.proj4j.CRSFactory; |
|
44 |
import org.osgeo.proj4j.io.Proj4FileReader; |
|
45 |
import org.slf4j.Logger; |
|
46 |
import org.slf4j.LoggerFactory; |
|
47 |
|
|
48 |
import org.gvsig.proj.CoordinateReferenceSystem; |
|
49 |
import org.gvsig.proj.CoordinateReferenceSystemManager; |
|
50 |
import org.gvsig.proj.CoordinateReferenceSystemNotFoundException; |
|
51 |
import org.gvsig.tools.dynobject.DynObject; |
|
52 |
|
|
53 |
/** |
|
54 |
* Proj4J based {@link CoordinateReferenceSystemManager} implementation. |
|
55 |
* |
|
56 |
* @author gvSIG Team |
|
57 |
*/ |
|
58 |
public class DefaultCoordinateReferenceSystemManager implements |
|
59 |
CoordinateReferenceSystemManager { |
|
60 |
|
|
61 |
private static final Logger LOG = LoggerFactory |
|
62 |
.getLogger(DefaultCoordinateReferenceSystemManager.class); |
|
63 |
|
|
64 |
private final Map authorityCodes; |
|
65 |
|
|
66 |
private CRSFactory factory = new CRSFactory(); |
|
67 |
|
|
68 |
/** |
|
69 |
* Default constructor. |
|
70 |
*/ |
|
71 |
public DefaultCoordinateReferenceSystemManager() { |
|
72 |
authorityCodes = loadSupportedCRS(); |
|
73 |
} |
|
74 |
|
|
75 |
public List getAuthorityNames() { |
|
76 |
Set authCodeSet = authorityCodes.keySet(); |
|
77 |
Object[] codes = authCodeSet.toArray(); |
|
78 |
Arrays.sort(codes); |
|
79 |
return Collections.unmodifiableList(Arrays.asList(codes)); |
|
80 |
} |
|
81 |
|
|
82 |
public List getCodes(String authorityName) { |
|
83 |
return (List) authorityCodes.get(authorityName); |
|
84 |
} |
|
85 |
|
|
86 |
public void updateAllWorkingCodes() { |
|
87 |
|
|
88 |
} |
|
89 |
|
|
90 |
/** |
|
91 |
* Shows the list of working codes for each authority in the console. |
|
92 |
* |
|
93 |
* @throws IOException |
|
94 |
* if there is an error writing in the console output stream |
|
95 |
*/ |
|
96 |
public void showAllWorkingCodes() throws IOException { |
|
97 |
storeAllWorkingCodes(System.out); |
|
98 |
} |
|
99 |
|
|
100 |
/** |
|
101 |
* Stores the list of working codes for each authority in the |
|
102 |
* {@link OutputStream} in properties format. |
|
103 |
* |
|
104 |
* @param os |
|
105 |
* to show the list of working codes into. |
|
106 |
* @throws IOException |
|
107 |
* if there is an error writing in the stream |
|
108 |
*/ |
|
109 |
public void storeAllWorkingCodes(OutputStream os) throws IOException { |
|
110 |
String[] auths = |
|
111 |
new String[] { "EPSG", "ESRI", "WORLD", "NAD83", "NAD27" }; |
|
112 |
Properties properties = new Properties(); |
|
113 |
for (int i = 0; i < auths.length; i++) { |
|
114 |
List workingCodes = findWorkingCodes(auths[i]); |
|
115 |
StringBuffer buffer = new StringBuffer(); |
|
116 |
for (int j = 0; workingCodes != null && j < workingCodes.size(); j++) { |
|
117 |
buffer.append(workingCodes.get(j)); |
|
118 |
if (j < workingCodes.size() - 1) { |
|
119 |
buffer.append(","); |
|
120 |
} |
|
121 |
} |
|
122 |
properties.setProperty(auths[i], buffer.toString()); |
|
123 |
} |
|
124 |
properties.store(new PrintStream(os), "Created by calling " |
|
125 |
+ "DefaultCoordinateReferenceSystemManager.storeAllWorkingCodes()"); |
|
126 |
} |
|
127 |
|
|
128 |
/** |
|
129 |
* Looks for the list of codes currently working for an authority, |
|
130 |
* as the pro4j library CRS definition files usually provides more |
|
131 |
* than really supports. |
|
132 |
* |
|
133 |
* @param authority |
|
134 |
* to find the working codes from |
|
135 |
* @return the list of codes of the authority which might be used to get a |
|
136 |
* CRS |
|
137 |
*/ |
|
138 |
public List findWorkingCodes(String authority) { |
|
139 |
List codes; |
|
140 |
|
|
141 |
String filename = "/nad/" + authority.toLowerCase(); |
|
142 |
InputStream inStr = Proj4FileReader.class.getResourceAsStream(filename); |
|
143 |
if (inStr == null) { |
|
144 |
throw new IllegalStateException("Unable to access CRS file: " |
|
145 |
+ filename); |
|
146 |
} |
|
147 |
BufferedReader reader = |
|
148 |
new BufferedReader(new InputStreamReader(inStr)); |
|
149 |
try { |
|
150 |
codes = readAuthorityCodes(reader); |
|
151 |
} catch (IOException e) { |
|
152 |
throw new RuntimeException("Error reading the codes of authority: " |
|
153 |
+ authority, e); |
|
154 |
} finally { |
|
155 |
try { |
|
156 |
reader.close(); |
|
157 |
} catch (IOException e) { |
|
158 |
LOG.warn("Error closing BufferedReader on file " + filename, e); |
|
159 |
} |
|
160 |
} |
|
161 |
|
|
162 |
// Check if a projection might be really created with a given code |
|
163 |
// and remove from the list otherwise |
|
164 |
for (Iterator iterator = codes.iterator(); iterator.hasNext();) { |
|
165 |
String code = (String) iterator.next(); |
|
166 |
try { |
|
167 |
factory.createFromName(getCRSName(authority, code)); |
|
168 |
} catch (Throwable e) { |
|
169 |
iterator.remove(); |
|
170 |
LOG.debug("CRS with authority '" + authority + "' and code '" |
|
171 |
+ code + "' could not be loaded, removing from the list " |
|
172 |
+ "of codes of the authority", e); |
|
173 |
} |
|
174 |
} |
|
175 |
|
|
176 |
return codes; |
|
177 |
} |
|
178 |
|
|
179 |
private StreamTokenizer createTokenizer(BufferedReader reader) { |
|
180 |
StreamTokenizer t = new StreamTokenizer(reader); |
|
181 |
t.commentChar('#'); |
|
182 |
t.ordinaryChars('0', '9'); |
|
183 |
t.ordinaryChars('.', '.'); |
|
184 |
t.ordinaryChars('-', '-'); |
|
185 |
t.ordinaryChars('+', '+'); |
|
186 |
t.wordChars('0', '9'); |
|
187 |
t.wordChars('\'', '\''); |
|
188 |
t.wordChars('"', '"'); |
|
189 |
t.wordChars('_', '_'); |
|
190 |
t.wordChars('.', '.'); |
|
191 |
t.wordChars('-', '-'); |
|
192 |
t.wordChars('+', '+'); |
|
193 |
t.wordChars(',', ','); |
|
194 |
t.wordChars('@', '@'); |
|
195 |
return t; |
|
196 |
} |
|
197 |
|
|
198 |
private List readAuthorityCodes(BufferedReader reader) throws IOException { |
|
199 |
List codes = new ArrayList(); |
|
200 |
StreamTokenizer t = createTokenizer(reader); |
|
201 |
|
|
202 |
t.nextToken(); |
|
203 |
while (t.ttype == '<') { |
|
204 |
t.nextToken(); |
|
205 |
if (t.ttype != StreamTokenizer.TT_WORD) { |
|
206 |
throw new IOException(t.lineno() + ": Word expected after '<'"); |
|
207 |
} |
|
208 |
codes.add(t.sval); |
|
209 |
t.nextToken(); |
|
210 |
if (t.ttype != '>') |
|
211 |
throw new IOException(t.lineno() + ": '>' expected"); |
|
212 |
t.nextToken(); |
|
213 |
|
|
214 |
while (t.ttype != '<') { |
|
215 |
t.nextToken(); |
|
216 |
} |
|
217 |
t.nextToken(); |
|
218 |
if (t.ttype != '>') |
|
219 |
throw new IOException(t.lineno() + ": '<>' expected"); |
|
220 |
t.nextToken(); |
|
221 |
} |
|
222 |
return codes; |
|
223 |
} |
|
224 |
|
|
225 |
public CoordinateReferenceSystem getCoordinateReferenceSystem( |
|
226 |
String authority, String code) |
|
227 |
throws CoordinateReferenceSystemNotFoundException { |
|
228 |
int n = code.indexOf("("); |
|
229 |
if( n>0 ) { |
|
230 |
code = code.substring(0, n); |
|
231 |
} |
|
232 |
org.osgeo.proj4j.CoordinateReferenceSystem proj4jcrs = |
|
233 |
factory.createFromName(getCRSName(authority, code)); |
|
234 |
return new DefaultCoordinateReferenceSystem(authority, code, proj4jcrs); |
|
235 |
} |
|
236 |
|
|
237 |
private String getCRSName(String authority, String code) { |
|
238 |
String name = authority.concat(":").concat(code); |
|
239 |
return name; |
|
240 |
} |
|
241 |
|
|
242 |
public DynObject createParameters() { |
|
243 |
// Nothing to do, no parameters needed. |
|
244 |
return null; |
|
245 |
} |
|
246 |
|
|
247 |
public void initialize(DynObject parameters) { |
|
248 |
// Nothing to do |
|
249 |
} |
|
250 |
|
|
251 |
private Map loadSupportedCRS() { |
|
252 |
Properties supported = new Properties(); |
|
253 |
InputStream is = |
|
254 |
getClass().getResourceAsStream("supportedcrs.properties"); |
|
255 |
try { |
|
256 |
if (is == null) { |
|
257 |
throw new RuntimeException( |
|
258 |
"Supported crs property file not found in " |
|
259 |
+ getClass().getResource("supportedcrs.properties")); |
|
260 |
} else { |
|
261 |
supported.load(is); |
|
262 |
} |
|
263 |
} catch (IOException e) { |
|
264 |
throw new RuntimeException( |
|
265 |
"Error loading the supported crs property file from " |
|
266 |
+ getClass().getResource("supportedcrs.properties"), e); |
|
267 |
} |
|
268 |
|
|
269 |
Map authorityCodes = new HashMap(supported.size()); |
|
270 |
for (Iterator iterator = supported.entrySet().iterator(); iterator |
|
271 |
.hasNext();) { |
|
272 |
Entry entry = (Entry) iterator.next(); |
|
273 |
String authority = (String) entry.getKey(); |
|
274 |
String codesAsString = (String) entry.getValue(); |
|
275 |
List codes = |
|
276 |
Collections.unmodifiableList(Arrays.asList(codesAsString |
|
277 |
.split(","))); |
|
278 |
authorityCodes.put(authority, Collections.unmodifiableList(codes)); |
|
279 |
} |
|
280 |
return authorityCodes; |
|
281 |
} |
|
282 |
} |
org.gvsig.proj/tags/org.gvsig.proj-1.0.18/org.gvsig.proj.lib/org.gvsig.proj.lib.proj4j/src/main/java/org/gvsig/proj/proj4j/package.html | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8" ?> |
|
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 html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
|
28 |
<html xmlns="http://www.w3.org/1999/xhtml"> |
|
29 |
<head> |
|
30 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
|
31 |
<title>org.gvsig.proj package documentation</title> |
|
32 |
</head> |
|
33 |
<body> |
|
34 |
|
|
35 |
<p>Projection library API implementation based on the |
|
36 |
<a href="http://sourceforge.net/projects/jmapprojlib/">Java Map Projection Library</a>.</p> |
|
37 |
|
|
38 |
</body> |
|
39 |
</html> |
org.gvsig.proj/tags/org.gvsig.proj-1.0.18/org.gvsig.proj.lib/org.gvsig.proj.lib.proj4j/src/main/java/org/gvsig/proj/proj4j/DefaultDatum.java | ||
---|---|---|
1 |
/* gvSIG. Desktop Geographic Information System. |
|
2 |
* |
|
3 |
* Copyright ? 2007-2012 gvSIG Association |
|
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., 51 Franklin Street, Fifth Floor, Boston, |
|
18 |
* MA 02110-1301, USA. |
|
19 |
* |
|
20 |
* For any additional information, do not hesitate to contact us |
|
21 |
* at info AT gvsig.com, or visit our website www.gvsig.com. |
|
22 |
*/ |
|
23 |
package org.gvsig.proj.proj4j; |
|
24 |
|
|
25 |
import org.gvsig.proj.Datum; |
|
26 |
import org.gvsig.proj.Ellipsoid; |
|
27 |
|
|
28 |
|
|
29 |
/** |
|
30 |
* {@link Datum} implementation based on the Proj4J library. |
|
31 |
* |
|
32 |
* @author <a href="http://www.disid.com">DiSiD Technologies S.L.</a> |
|
33 |
* @version $Rev$ |
|
34 |
* @since 0.1.0 |
|
35 |
*/ |
|
36 |
public class DefaultDatum implements Datum { |
|
37 |
|
|
38 |
private org.osgeo.proj4j.datum.Datum datum; |
|
39 |
private Ellipsoid ellipsoid; |
|
40 |
|
|
41 |
/** |
|
42 |
* Creates a new datum based on a Proj4J datum. |
|
43 |
* |
|
44 |
* @param datum |
|
45 |
* the Proj4J Datum. |
|
46 |
*/ |
|
47 |
public DefaultDatum(org.osgeo.proj4j.datum.Datum datum) { |
|
48 |
this.datum = datum; |
|
49 |
this.ellipsoid = new DefaultEllipsoid(datum.getEllipsoid()); |
|
50 |
} |
|
51 |
|
|
52 |
public String getShortName() { |
|
53 |
return datum.getCode(); |
|
54 |
} |
|
55 |
|
|
56 |
public String getName() { |
|
57 |
return datum.getName(); |
|
58 |
} |
|
59 |
|
|
60 |
public Ellipsoid getEllipsoid() { |
|
61 |
return ellipsoid; |
|
62 |
} |
|
63 |
|
|
64 |
} |
org.gvsig.proj/tags/org.gvsig.proj-1.0.18/org.gvsig.proj.lib/org.gvsig.proj.lib.proj4j/src/main/java/org/gvsig/proj/proj4j/DefaultCoordinateReferenceSystem.java | ||
---|---|---|
1 |
/* gvSIG. Desktop Geographic Information System. |
|
2 |
* |
|
3 |
* Copyright ? 2007-2012 gvSIG Association |
|
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., 51 Franklin Street, Fifth Floor, Boston, |
|
18 |
* MA 02110-1301, USA. |
|
19 |
* |
|
20 |
* For any additional information, do not hesitate to contact us |
|
21 |
* at info AT gvsig.com, or visit our website www.gvsig.com. |
|
22 |
*/ |
|
23 |
package org.gvsig.proj.proj4j; |
|
24 |
|
|
25 |
import org.osgeo.proj4j.proj.LongLatProjection; |
|
26 |
|
|
27 |
import org.gvsig.proj.CoordinateReferenceSystem; |
|
28 |
import org.gvsig.proj.CoordinateTransformation; |
|
29 |
import org.gvsig.proj.Datum; |
|
30 |
|
|
31 |
/** |
|
32 |
* Proj4J based {@link CoordinateReferenceSystem} implementation. |
|
33 |
* |
|
34 |
* @author gvSIG Team |
|
35 |
*/ |
|
36 |
public class DefaultCoordinateReferenceSystem implements |
|
37 |
CoordinateReferenceSystem { |
|
38 |
|
|
39 |
private final org.osgeo.proj4j.CoordinateReferenceSystem crs; |
|
40 |
private final String authorityName; |
|
41 |
private final String code; |
|
42 |
private final Datum datum; |
|
43 |
|
|
44 |
/** |
|
45 |
* Constructor |
|
46 |
*/ |
|
47 |
public DefaultCoordinateReferenceSystem(String authorityName, String code, |
|
48 |
org.osgeo.proj4j.CoordinateReferenceSystem crs) { |
|
49 |
this.authorityName = authorityName; |
|
50 |
this.code = code; |
|
51 |
this.crs = crs; |
|
52 |
this.datum = new DefaultDatum(crs.getDatum()); |
|
53 |
} |
|
54 |
|
|
55 |
public String getAuthorityName() { |
|
56 |
return authorityName; |
|
57 |
} |
|
58 |
|
|
59 |
public String getCode() { |
|
60 |
return code; |
|
61 |
} |
|
62 |
|
|
63 |
public String getReference() { |
|
64 |
return authorityName.concat(":").concat(code); |
|
65 |
} |
|
66 |
|
|
67 |
public String getDefinition() { |
|
68 |
return crs.getParameterString(); |
|
69 |
} |
|
70 |
|
|
71 |
public String getDescription() { |
|
72 |
return crs.getProjection().getPROJ4Description(); |
|
73 |
} |
|
74 |
|
|
75 |
public boolean isProjected() { |
|
76 |
return !(crs.getProjection() instanceof LongLatProjection); |
|
77 |
} |
|
78 |
|
|
79 |
public Object clone() throws CloneNotSupportedException { |
|
80 |
DefaultCoordinateReferenceSystem cloned = |
|
81 |
(DefaultCoordinateReferenceSystem) super.clone(); |
|
82 |
return cloned; |
|
83 |
} |
|
84 |
|
|
85 |
/** |
|
86 |
* @return the crs |
|
87 |
*/ |
|
88 |
public org.osgeo.proj4j.CoordinateReferenceSystem getCRS() { |
|
89 |
return crs; |
|
90 |
} |
|
91 |
|
|
92 |
public org.osgeo.proj4j.CoordinateReferenceSystem getGeographicCRS() { |
|
93 |
return crs.createGeographic(); |
|
94 |
} |
|
95 |
|
|
96 |
public CoordinateTransformation getTransformation( |
|
97 |
CoordinateReferenceSystem target) { |
|
98 |
return new DefaultCoordinateTransformation(this, |
|
99 |
(DefaultCoordinateReferenceSystem) target); |
|
100 |
} |
|
101 |
|
|
102 |
public String toString() { |
|
103 |
return getReference() + "(" + getDefinition() + ")"; |
|
104 |
} |
|
105 |
|
|
106 |
public CoordinateReferenceSystem createGeographic() { |
|
107 |
org.osgeo.proj4j.CoordinateReferenceSystem geographic = |
|
108 |
crs.createGeographic(); |
|
109 |
return new DefaultCoordinateReferenceSystem(getAuthorityName(), "GEO-" |
|
110 |
+ geographic.getDatum().getCode(), geographic); |
|
111 |
} |
|
112 |
|
|
113 |
public Datum getDatum() { |
|
114 |
return datum; |
|
115 |
} |
|
116 |
|
|
117 |
} |
org.gvsig.proj/tags/org.gvsig.proj-1.0.18/org.gvsig.proj.lib/org.gvsig.proj.lib.proj4j/src/main/java/org/gvsig/proj/proj4j/DefaultCoordinateTransformation.java | ||
---|---|---|
1 |
/* gvSIG. Desktop Geographic Information System. |
|
2 |
* |
|
3 |
* Copyright ? 2007-2012 gvSIG Association |
|
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., 51 Franklin Street, Fifth Floor, Boston, |
|
18 |
* MA 02110-1301, USA. |
|
19 |
* |
|
20 |
* For any additional information, do not hesitate to contact us |
|
21 |
* at info AT gvsig.com, or visit our website www.gvsig.com. |
|
22 |
*/ |
|
23 |
package org.gvsig.proj.proj4j; |
|
24 |
|
|
25 |
import org.osgeo.proj4j.CoordinateTransform; |
|
26 |
import org.osgeo.proj4j.CoordinateTransformFactory; |
|
27 |
import org.osgeo.proj4j.ProjCoordinate; |
|
28 |
|
|
29 |
import org.gvsig.proj.CoordinateReferenceSystem; |
|
30 |
import org.gvsig.proj.CoordinateTransformation; |
|
31 |
|
|
32 |
/** |
|
33 |
* Proj4J based {@link CoordinateTransformation} implementation. |
|
34 |
* |
|
35 |
* @author gvSIG Team |
|
36 |
*/ |
|
37 |
public class DefaultCoordinateTransformation implements |
|
38 |
CoordinateTransformation { |
|
39 |
|
|
40 |
private final DefaultCoordinateReferenceSystem source; |
|
41 |
private final DefaultCoordinateReferenceSystem target; |
|
42 |
private final CoordinateTransform transform; |
|
43 |
|
|
44 |
/** |
|
45 |
* Creates a new {@link CoordinateTransformation} with the the source and |
|
46 |
* target projections. |
|
47 |
* |
|
48 |
* @param source |
|
49 |
* the projection to transform coordinates from |
|
50 |
* @param target |
|
51 |
* the projection to transform coordinates to |
|
52 |
*/ |
|
53 |
public DefaultCoordinateTransformation(DefaultCoordinateReferenceSystem source, |
|
54 |
DefaultCoordinateReferenceSystem target) { |
|
55 |
this.source = source; |
|
56 |
this.target = target; |
|
57 |
CoordinateTransformFactory factory = new CoordinateTransformFactory(); |
|
58 |
this.transform = |
|
59 |
factory.createTransform(source.getCRS(), target.getCRS()); |
|
60 |
} |
|
61 |
|
|
62 |
public CoordinateReferenceSystem getSourceProjection() { |
|
63 |
return source; |
|
64 |
} |
|
65 |
|
|
66 |
public CoordinateReferenceSystem getTargetProjection() { |
|
67 |
return target; |
|
68 |
} |
|
69 |
|
|
70 |
public void convert(double[] pointxy) { |
|
71 |
ProjCoordinate source = new ProjCoordinate(pointxy[0], pointxy[1]); |
|
72 |
ProjCoordinate result = new ProjCoordinate(); |
|
73 |
|
|
74 |
transform.transform(source, result); |
|
75 |
|
|
76 |
pointxy[0] = result.x; |
|
77 |
pointxy[1] = result.y; |
|
78 |
} |
|
79 |
|
|
80 |
public CoordinateTransformation getReverse() { |
|
81 |
return new DefaultCoordinateTransformation(target, source); |
|
82 |
} |
|
83 |
|
|
84 |
public Object clone() throws CloneNotSupportedException { |
|
85 |
return super.clone(); |
|
86 |
} |
|
87 |
|
|
88 |
} |
org.gvsig.proj/tags/org.gvsig.proj-1.0.18/org.gvsig.proj.lib/org.gvsig.proj.lib.proj4j/src/main/java/org/gvsig/proj/proj4j/DefaultEllipsoid.java | ||
---|---|---|
1 |
/* gvSIG. Desktop Geographic Information System. |
|
2 |
* |
|
3 |
* Copyright ? 2007-2012 gvSIG Association |
|
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., 51 Franklin Street, Fifth Floor, Boston, |
|
18 |
* MA 02110-1301, USA. |
|
19 |
* |
|
20 |
* For any additional information, do not hesitate to contact us |
|
21 |
* at info AT gvsig.com, or visit our website www.gvsig.com. |
|
22 |
*/ |
|
23 |
package org.gvsig.proj.proj4j; |
|
24 |
|
|
25 |
import java.util.HashMap; |
|
26 |
import java.util.Map; |
|
27 |
|
|
28 |
import org.gvsig.proj.Ellipsoid; |
|
29 |
|
|
30 |
/** |
|
31 |
* {@link Ellipsoid} implementation based on the Proj4J library. |
|
32 |
* |
|
33 |
* @author <a href="http://www.disid.com">DiSiD Technologies S.L.</a> |
|
34 |
* @version $Rev$ |
|
35 |
* @since 0.1.0 |
|
36 |
*/ |
|
37 |
public class DefaultEllipsoid implements Ellipsoid { |
|
38 |
|
|
39 |
private org.osgeo.proj4j.datum.Ellipsoid ellipsoid; |
|
40 |
|
|
41 |
private static final String[] SHORT_NAMES = new String[] { "intl", |
|
42 |
"bessel", "clrk66", "clrk80", "airy", "WGS60", "WGS66", "WGS72", |
|
43 |
"WGS84", "krass", "evrst30", "new_intl", "GRS80", "australian", |
|
44 |
"MERIT", "SGS85", "IAU76", "APL4.9", "NWL9D", "mod_airy", "andrae", |
|
45 |
"aust_SA", "GRS67", "bess_nam", "CPM", "delmbr", "engelis", "evrst48", |
|
46 |
"evrst56", "evrst69", "evrstSS", "fschr60", "fschr60m", "fschr68", |
|
47 |
"helmert", "hough", "intl", "kaula", "lerch", "mprts", "plessis", |
|
48 |
"SEasia", "walbeck", "NAD27", "NAD83", "sphere" }; |
|
49 |
|
|
50 |
private static final double[] FLATTENINGS = new double[] { 297.0, |
|
51 |
299.1528128, 0.0, 293.4663, 0.0, 298.3, 298.25, 298.26, 298.257223563, |
|
52 |
298.3, 300.8017, 0.0, 298.257222101, 298.25, 298.257, 298.257, 298.257, |
|
53 |
298.25, 298.25, 0.0, 300.0, 298.25, 298.2471674270, 299.1528128, |
|
54 |
334.29, 311.5, 298.2566, 300.8017, 300.8017, 300.8017, 300.8017, 298.3, |
|
55 |
298.3, 298.3, 298.3, 297.0, 297.0, 298.24, 298.257, 191.0, 0.0, 0.0, |
|
56 |
0.0, 293.4663, 298.257222101, 0.0 }; |
|
57 |
|
|
58 |
private static final Map ellipsoidFlattenings = new HashMap(); |
|
59 |
|
|
60 |
static { |
|
61 |
for (int i = 0; i < SHORT_NAMES.length; i++) { |
|
62 |
ellipsoidFlattenings |
|
63 |
.put(SHORT_NAMES[i], new Double(FLATTENINGS[i])); |
|
64 |
} |
|
65 |
} |
|
66 |
|
|
67 |
/** |
|
68 |
* Creates a new ellipsoid based on a Proj4J one. |
|
69 |
* |
|
70 |
* @param ellipsoid |
|
71 |
* the Proj4J ellipsoid |
|
72 |
*/ |
|
73 |
public DefaultEllipsoid(org.osgeo.proj4j.datum.Ellipsoid ellipsoid) { |
|
74 |
this.ellipsoid = ellipsoid; |
|
75 |
} |
|
76 |
|
|
77 |
public String getShortName() { |
|
78 |
return ellipsoid.getShortName(); |
|
79 |
} |
|
80 |
|
|
81 |
public String getName() { |
|
82 |
return ellipsoid.getName(); |
|
83 |
} |
|
84 |
|
|
85 |
public double getSemiMajorAxis() { |
|
86 |
return ellipsoid.getEquatorRadius(); |
|
87 |
} |
|
88 |
|
|
89 |
public double getSemiMinorAxis() { |
|
90 |
return ellipsoid.poleRadius; |
|
91 |
} |
|
92 |
|
|
93 |
public double getReciprocalFlattening() { |
|
94 |
Double flattening = (Double) ellipsoidFlattenings.get(getShortName()); |
|
95 |
return flattening == null ? 0.0d : flattening.doubleValue(); |
|
96 |
} |
|
97 |
|
|
98 |
} |
org.gvsig.proj/tags/org.gvsig.proj-1.0.18/org.gvsig.proj.lib/org.gvsig.proj.lib.proj4j/src/main/java/org/gvsig/proj/proj4j/Proj4jCoordinateReferenceSystemLibrary.java | ||
---|---|---|
1 |
/** |
|
2 |
* gvSIG. Desktop Geographic Information System. |
|
3 |
* |
|
4 |
* Copyright (C) 2007-2012 gvSIG Association. |
|
5 |
* |
|
6 |
* This program is free software; you can redistribute it and/or |
|
7 |
* modify it under the terms of the GNU General Public License |
|
8 |
* as published by the Free Software Foundation; either version 2 |
|
9 |
* of the License, or (at your option) any later version. |
|
10 |
* |
|
11 |
* This program is distributed in the hope that it will be useful, |
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
14 |
* GNU General Public License for more details. |
|
15 |
* |
|
16 |
* You should have received a copy of the GNU General Public License |
|
17 |
* along with this program; if not, write to the Free Software |
|
18 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
19 |
* MA 02110-1301, USA. |
|
20 |
* |
|
21 |
* For any additional information, do not hesitate to contact us |
|
22 |
* at info AT gvsig.com, or visit our website www.gvsig.com. |
|
23 |
*/ |
|
24 |
package org.gvsig.proj.proj4j; |
Also available in: Unified diff