0c4e300c by chiangbt

first commit

1 parent 04dba9af
1 <?xml version="1.0" encoding="UTF-8"?> 1 <?xml version="1.0" encoding="UTF-8"?>
2 <project version="4"> 2 <project version="4">
3 <component name="VcsDirectoryMappings"> 3 <component name="VcsDirectoryMappings">
4 <mapping directory="" vcs="" /> 4 <mapping directory="$PROJECT_DIR$" vcs="Git" />
5 </component> 5 </component>
6 </project> 6 </project>
...\ No newline at end of file ...\ No newline at end of file
7
......
1 <?xml version="1.0" encoding="UTF-8"?> 1 <?xml version="1.0" encoding="UTF-8"?>
2 <project version="4"> 2 <project version="4">
3 <component name="ChangeListManager"> 3 <component name="ChangeListManager">
4 <list default="true" id="5b5a29d8-78e9-4a9f-a415-1e11442b5ca7" name="Default" comment="" /> 4 <list default="true" id="5b5a29d8-78e9-4a9f-a415-1e11442b5ca7" name="Default" comment="">
5 <change type="DELETED" beforePath="$PROJECT_DIR$/out/production/TiandituDownloader/CalEnv.class" afterPath="" />
6 <change type="DELETED" beforePath="$PROJECT_DIR$/out/production/TiandituDownloader/Point.class" afterPath="" />
7 <change type="DELETED" beforePath="$PROJECT_DIR$/out/production/TiandituDownloader/TDTUrl$1.class" afterPath="" />
8 <change type="DELETED" beforePath="$PROJECT_DIR$/out/production/TiandituDownloader/TDTUrl.class" afterPath="" />
9 <change type="DELETED" beforePath="$PROJECT_DIR$/out/production/TiandituDownloader/TianDiTuTiledMapServiceType.class" afterPath="" />
10 <change type="MODIFICATION" beforePath="$PROJECT_DIR$/out/production/TiandituDownloader/Main.class" afterPath="$PROJECT_DIR$/out/production/TiandituDownloader/Main.class" />
11 <change type="MODIFICATION" beforePath="$PROJECT_DIR$/out/production/TiandituDownloader/TiandituDownload.class" afterPath="$PROJECT_DIR$/out/production/TiandituDownloader/TiandituDownload.class" />
12 <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/vcs.xml" afterPath="$PROJECT_DIR$/.idea/vcs.xml" />
13 <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
14 <change type="MODIFICATION" beforePath="$PROJECT_DIR$/readme.md" afterPath="$PROJECT_DIR$/readme.md" />
15 <change type="MODIFICATION" beforePath="$PROJECT_DIR$/src/Main.java" afterPath="$PROJECT_DIR$/src/Main.java" />
16 <change type="MODIFICATION" beforePath="$PROJECT_DIR$/src/TiandituDownload.java" afterPath="$PROJECT_DIR$/src/TiandituDownload.java" />
17 <change type="MODIFICATION" beforePath="$PROJECT_DIR$/src/utils/CalEnv.java" afterPath="$PROJECT_DIR$/src/utils/CalEnv.java" />
18 <change type="MODIFICATION" beforePath="$PROJECT_DIR$/src/utils/Point.java" afterPath="$PROJECT_DIR$/src/utils/Point.java" />
19 <change type="MODIFICATION" beforePath="$PROJECT_DIR$/src/utils/TDTUrl.java" afterPath="$PROJECT_DIR$/src/utils/TDTUrl.java" />
20 <change type="MODIFICATION" beforePath="$PROJECT_DIR$/src/utils/TianDiTuTiledMapServiceType.java" afterPath="$PROJECT_DIR$/src/utils/TianDiTuTiledMapServiceType.java" />
21 </list>
5 <ignored path="$PROJECT_DIR$/out/" /> 22 <ignored path="$PROJECT_DIR$/out/" />
6 <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" /> 23 <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
7 <option name="TRACKING_ENABLED" value="true" /> 24 <option name="TRACKING_ENABLED" value="true" />
...@@ -12,12 +29,27 @@ ...@@ -12,12 +29,27 @@
12 </component> 29 </component>
13 <component name="FileEditorManager"> 30 <component name="FileEditorManager">
14 <leaf SIDE_TABS_SIZE_LIMIT_KEY="300"> 31 <leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
15 <file leaf-file-name="Main.java" pinned="false" current-in-tab="true"> 32 <file leaf-file-name="Main.java" pinned="false" current-in-tab="false">
16 <entry file="file://$PROJECT_DIR$/src/Main.java"> 33 <entry file="file://$PROJECT_DIR$/src/Main.java">
17 <provider selected="true" editor-type-id="text-editor"> 34 <provider selected="true" editor-type-id="text-editor">
18 <state relative-caret-position="180"> 35 <state relative-caret-position="225">
19 <caret line="12" column="33" lean-forward="false" selection-start-line="12" selection-start-column="33" selection-end-line="12" selection-end-column="33" /> 36 <caret line="15" column="83" lean-forward="true" selection-start-line="11" selection-start-column="8" selection-end-line="15" selection-end-column="83" />
37 <folding>
38 <element signature="imports" expanded="true" />
39 </folding>
40 </state>
41 </provider>
42 </entry>
43 </file>
44 <file leaf-file-name="readme.md" pinned="false" current-in-tab="true">
45 <entry file="file://$PROJECT_DIR$/readme.md">
46 <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
47 <state split_layout="SPLIT">
48 <first_editor relative-caret-position="195">
49 <caret line="13" column="24" lean-forward="true" selection-start-line="13" selection-start-column="24" selection-end-line="13" selection-end-column="24" />
20 <folding /> 50 <folding />
51 </first_editor>
52 <second_editor />
21 </state> 53 </state>
22 </provider> 54 </provider>
23 </entry> 55 </entry>
...@@ -25,27 +57,49 @@ ...@@ -25,27 +57,49 @@
25 <file leaf-file-name="TiandituDownload.java" pinned="false" current-in-tab="false"> 57 <file leaf-file-name="TiandituDownload.java" pinned="false" current-in-tab="false">
26 <entry file="file://$PROJECT_DIR$/src/TiandituDownload.java"> 58 <entry file="file://$PROJECT_DIR$/src/TiandituDownload.java">
27 <provider selected="true" editor-type-id="text-editor"> 59 <provider selected="true" editor-type-id="text-editor">
28 <state relative-caret-position="1860"> 60 <state relative-caret-position="90">
29 <caret line="131" column="20" lean-forward="false" selection-start-line="131" selection-start-column="20" selection-end-line="131" selection-end-column="20" /> 61 <caret line="11" column="29" lean-forward="false" selection-start-line="11" selection-start-column="13" selection-end-line="11" selection-end-column="29" />
30 <folding> 62 <folding>
31 <element signature="imports" expanded="true" /> 63 <element signature="imports" expanded="true" />
32 <element signature="e#1671#1672#0" expanded="true" /> 64 <element signature="e#1776#1777#0" expanded="true" />
33 <element signature="e#1706#1707#0" expanded="true" /> 65 <element signature="e#1811#1812#0" expanded="true" />
34 <element signature="method#calculateEnv#0;class#TiandituDownload#0" expanded="false" /> 66 <element signature="method#calculateEnv#0;class#TiandituDownload#0" expanded="false" />
35 <element signature="method#getTile#0;class#TiandituDownload#0" expanded="false" /> 67 <element signature="method#getTile#0;class#TiandituDownload#0" expanded="false" />
36 <marker date="1522037120703" expanded="true" signature="2852:2949" ph="select * fro... missingValue" /> 68 <marker date="1522037759498" expanded="true" signature="2957:3054" ph="select * fro... missingValue" />
37 <marker date="1522037120703" expanded="true" signature="3527:3603" ph="INSERT INTO missingValue... " /> 69 <marker date="1522037759498" expanded="true" signature="3632:3708" ph="INSERT INTO missingValue... " />
38 <marker date="1522037120703" expanded="true" signature="4709:4896" ph="CREATE TABLE... IF" /> 70 <marker date="1522037759498" expanded="true" signature="4814:5001" ph="CREATE TABLE... IF" />
39 </folding> 71 </folding>
40 </state> 72 </state>
41 </provider> 73 </provider>
42 </entry> 74 </entry>
43 </file> 75 </file>
44 <file leaf-file-name="TDTUrl.java" pinned="false" current-in-tab="false"> 76 <file leaf-file-name="TDTUrl.java" pinned="false" current-in-tab="false">
45 <entry file="file://$PROJECT_DIR$/src/TDTUrl.java"> 77 <entry file="file://$PROJECT_DIR$/src/utils/TDTUrl.java">
78 <provider selected="true" editor-type-id="text-editor">
79 <state relative-caret-position="15">
80 <caret line="1" column="0" lean-forward="false" selection-start-line="1" selection-start-column="0" selection-end-line="1" selection-end-column="0" />
81 <folding>
82 <element signature="imports" expanded="true" />
83 </folding>
84 </state>
85 </provider>
86 </entry>
87 </file>
88 <file leaf-file-name="TianDiTuTiledMapServiceType.java" pinned="false" current-in-tab="false">
89 <entry file="file://$PROJECT_DIR$/src/utils/TianDiTuTiledMapServiceType.java">
90 <provider selected="true" editor-type-id="text-editor">
91 <state relative-caret-position="30">
92 <caret line="2" column="3" lean-forward="true" selection-start-line="2" selection-start-column="3" selection-end-line="2" selection-end-column="3" />
93 <folding />
94 </state>
95 </provider>
96 </entry>
97 </file>
98 <file leaf-file-name="Point.java" pinned="false" current-in-tab="false">
99 <entry file="file://$PROJECT_DIR$/src/utils/Point.java">
46 <provider selected="true" editor-type-id="text-editor"> 100 <provider selected="true" editor-type-id="text-editor">
47 <state relative-caret-position="210"> 101 <state relative-caret-position="0">
48 <caret line="14" column="28" lean-forward="false" selection-start-line="14" selection-start-column="28" selection-end-line="14" selection-end-column="28" /> 102 <caret line="0" column="10" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="1" selection-end-column="0" />
49 <folding /> 103 <folding />
50 </state> 104 </state>
51 </provider> 105 </provider>
...@@ -60,6 +114,9 @@ ...@@ -60,6 +114,9 @@
60 </list> 114 </list>
61 </option> 115 </option>
62 </component> 116 </component>
117 <component name="Git.Settings">
118 <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
119 </component>
63 <component name="GradleLocalSettings"> 120 <component name="GradleLocalSettings">
64 <option name="externalProjectsViewState"> 121 <option name="externalProjectsViewState">
65 <projects_view /> 122 <projects_view />
...@@ -70,10 +127,15 @@ ...@@ -70,10 +127,15 @@
70 <list> 127 <list>
71 <option value="$PROJECT_DIR$/src/Point.java" /> 128 <option value="$PROJECT_DIR$/src/Point.java" />
72 <option value="$PROJECT_DIR$/src/CalEnv.java" /> 129 <option value="$PROJECT_DIR$/src/CalEnv.java" />
73 <option value="$PROJECT_DIR$/src/TDTUrl.java" />
74 <option value="$PROJECT_DIR$/src/TianDiTuTiledMapServiceType.java" />
75 <option value="$PROJECT_DIR$/src/Main.java" /> 130 <option value="$PROJECT_DIR$/src/Main.java" />
76 <option value="$PROJECT_DIR$/src/TiandituDownload.java" /> 131 <option value="$PROJECT_DIR$/src/TiandituDownload.java" />
132 <option value="$PROJECT_DIR$/src/utils/CalEnv.java" />
133 <option value="$PROJECT_DIR$/src/utils/Point.java" />
134 <option value="$PROJECT_DIR$/src/TianDiTuTiledMapServiceType.java" />
135 <option value="$PROJECT_DIR$/src/TDTUrl.java" />
136 <option value="$PROJECT_DIR$/src/utils/TianDiTuTiledMapServiceType.java" />
137 <option value="$PROJECT_DIR$/src/utils/TDTUrl.java" />
138 <option value="$PROJECT_DIR$/readme.md" />
77 </list> 139 </list>
78 </option> 140 </option>
79 </component> 141 </component>
...@@ -84,11 +146,12 @@ ...@@ -84,11 +146,12 @@
84 <sorting>DEFINITION_ORDER</sorting> 146 <sorting>DEFINITION_ORDER</sorting>
85 </component> 147 </component>
86 <component name="ProjectFrameBounds"> 148 <component name="ProjectFrameBounds">
87 <option name="x" value="387" /> 149 <option name="x" value="40" />
88 <option name="y" value="23" /> 150 <option name="y" value="23" />
89 <option name="width" value="1400" /> 151 <option name="width" value="1400" />
90 <option name="height" value="771" /> 152 <option name="height" value="771" />
91 </component> 153 </component>
154 <component name="ProjectLevelVcsManager" settingsEditedManually="true" />
92 <component name="ProjectView"> 155 <component name="ProjectView">
93 <navigator currentView="ProjectPane" proportions="" version="1"> 156 <navigator currentView="ProjectPane" proportions="" version="1">
94 <flattenPackages /> 157 <flattenPackages />
...@@ -111,11 +174,6 @@ ...@@ -111,11 +174,6 @@
111 <item name="TiandituDownloader" type="b2602c69:ProjectViewProjectNode" /> 174 <item name="TiandituDownloader" type="b2602c69:ProjectViewProjectNode" />
112 <item name="TiandituDownloader" type="462c0819:PsiDirectoryNode" /> 175 <item name="TiandituDownloader" type="462c0819:PsiDirectoryNode" />
113 </path> 176 </path>
114 <path>
115 <item name="TiandituDownloader" type="b2602c69:ProjectViewProjectNode" />
116 <item name="TiandituDownloader" type="462c0819:PsiDirectoryNode" />
117 <item name="src" type="462c0819:PsiDirectoryNode" />
118 </path>
119 </expand> 177 </expand>
120 <select /> 178 <select />
121 </subPane> 179 </subPane>
...@@ -202,15 +260,16 @@ ...@@ -202,15 +260,16 @@
202 <option name="number" value="Default" /> 260 <option name="number" value="Default" />
203 <option name="presentableId" value="Default" /> 261 <option name="presentableId" value="Default" />
204 <updated>1522029080525</updated> 262 <updated>1522029080525</updated>
205 <workItem from="1522029083503" duration="8020000" /> 263 <workItem from="1522029083503" duration="8746000" />
206 </task> 264 </task>
207 <servers /> 265 <servers />
208 </component> 266 </component>
209 <component name="TimeTrackingManager"> 267 <component name="TimeTrackingManager">
210 <option name="totallyTimeSpent" value="8020000" /> 268 <option name="totallyTimeSpent" value="8746000" />
211 </component> 269 </component>
212 <component name="ToolWindowManager"> 270 <component name="ToolWindowManager">
213 <frame x="387" y="23" width="1400" height="771" extended-state="0" /> 271 <frame x="40" y="23" width="1400" height="771" extended-state="0" />
272 <editor active="true" />
214 <layout> 273 <layout>
215 <window_info id="Palette" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" /> 274 <window_info id="Palette" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
216 <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" /> 275 <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
...@@ -221,8 +280,8 @@ ...@@ -221,8 +280,8 @@
221 <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" /> 280 <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
222 <window_info id="Maven Projects" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" /> 281 <window_info id="Maven Projects" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
223 <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.12130178" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" /> 282 <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.12130178" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
224 <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" /> 283 <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
225 <window_info id="Terminal" active="true" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.32988167" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" /> 284 <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.32988167" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
226 <window_info id="Capture Tool" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" /> 285 <window_info id="Capture Tool" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
227 <window_info id="Designer" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" /> 286 <window_info id="Designer" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
228 <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.2496318" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" /> 287 <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.2496318" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
...@@ -240,6 +299,35 @@ ...@@ -240,6 +299,35 @@
240 <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" /> 299 <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
241 <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" /> 300 <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
242 </layout> 301 </layout>
302 <layout-to-restore>
303 <window_info id="Palette" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
304 <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="8" side_tool="false" content_ui="tabs" />
305 <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
306 <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
307 <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="true" content_ui="tabs" />
308 <window_info id="Maven Projects" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
309 <window_info id="Capture Tool" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
310 <window_info id="Designer" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
311 <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="8" side_tool="false" content_ui="combo" />
312 <window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
313 <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
314 <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
315 <window_info id="UI Designer" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
316 <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
317 <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="10" side_tool="false" content_ui="tabs" />
318 <window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32988167" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
319 <window_info id="Palette&#9;" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
320 <window_info id="Image Layers" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
321 <window_info id="Capture Analysis" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
322 <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="9" side_tool="false" content_ui="tabs" />
323 <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.12130178" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
324 <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
325 <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32988167" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
326 <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.2496318" sideWeight="0.5" order="5" side_tool="false" content_ui="combo" />
327 <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32988167" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
328 <window_info id="Theme Preview" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
329 <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="4" side_tool="true" content_ui="tabs" />
330 </layout-to-restore>
243 </component> 331 </component>
244 <component name="TypeScriptGeneratedFilesManager"> 332 <component name="TypeScriptGeneratedFilesManager">
245 <option name="version" value="1" /> 333 <option name="version" value="1" />
...@@ -252,86 +340,83 @@ ...@@ -252,86 +340,83 @@
252 <watches-manager /> 340 <watches-manager />
253 </component> 341 </component>
254 <component name="editorHistoryManager"> 342 <component name="editorHistoryManager">
255 <entry file="file://$PROJECT_DIR$/src/Point.java"> 343 <entry file="file://$PROJECT_DIR$/TiandituDownloader.iml">
256 <provider selected="true" editor-type-id="text-editor"> 344 <provider selected="true" editor-type-id="text-editor">
257 <state relative-caret-position="165"> 345 <state relative-caret-position="0">
258 <caret line="11" column="23" lean-forward="true" selection-start-line="11" selection-start-column="23" selection-end-line="11" selection-end-column="23" /> 346 <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
259 <folding> 347 <folding />
260 <element signature="e#224#225#0" expanded="true" />
261 <element signature="e#250#251#0" expanded="true" />
262 <element signature="e#288#289#0" expanded="true" />
263 <element signature="e#318#319#0" expanded="true" />
264 <element signature="e#348#349#0" expanded="true" />
265 <element signature="e#374#375#0" expanded="true" />
266 <element signature="e#412#413#0" expanded="true" />
267 <element signature="e#442#443#0" expanded="true" />
268 </folding>
269 </state> 348 </state>
270 </provider> 349 </provider>
271 </entry> 350 </entry>
272 <entry file="file://$PROJECT_DIR$/src/CalEnv.java"> 351 <entry file="file://$PROJECT_DIR$/src/utils/CalEnv.java">
273 <provider selected="true" editor-type-id="text-editor"> 352 <provider selected="true" editor-type-id="text-editor">
274 <state relative-caret-position="180"> 353 <state relative-caret-position="30">
275 <caret line="12" column="22" lean-forward="true" selection-start-line="12" selection-start-column="22" selection-end-line="12" selection-end-column="22" /> 354 <caret line="2" column="13" lean-forward="false" selection-start-line="2" selection-start-column="13" selection-end-line="2" selection-end-column="13" />
276 <folding> 355 <folding />
277 <element signature="e#211#212#0" expanded="true" />
278 <element signature="e#240#241#0" expanded="true" />
279 <element signature="e#281#282#0" expanded="true" />
280 <element signature="e#317#318#0" expanded="true" />
281 <element signature="e#347#348#0" expanded="true" />
282 <element signature="e#376#377#0" expanded="true" />
283 <element signature="e#417#418#0" expanded="true" />
284 <element signature="e#453#454#0" expanded="true" />
285 </folding>
286 </state> 356 </state>
287 </provider> 357 </provider>
288 </entry> 358 </entry>
289 <entry file="file://$PROJECT_DIR$/src/TianDiTuTiledMapServiceType.java"> 359 <entry file="file://$PROJECT_DIR$/src/utils/Point.java">
290 <provider selected="true" editor-type-id="text-editor"> 360 <provider selected="true" editor-type-id="text-editor">
291 <state relative-caret-position="0"> 361 <state relative-caret-position="0">
292 <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" /> 362 <caret line="0" column="10" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="1" selection-end-column="0" />
293 <folding /> 363 <folding />
294 </state> 364 </state>
295 </provider> 365 </provider>
296 </entry> 366 </entry>
297 <entry file="file://$PROJECT_DIR$/src/TDTUrl.java"> 367 <entry file="file://$PROJECT_DIR$/src/utils/TianDiTuTiledMapServiceType.java">
298 <provider selected="true" editor-type-id="text-editor"> 368 <provider selected="true" editor-type-id="text-editor">
299 <state relative-caret-position="210"> 369 <state relative-caret-position="30">
300 <caret line="14" column="28" lean-forward="false" selection-start-line="14" selection-start-column="28" selection-end-line="14" selection-end-column="28" /> 370 <caret line="2" column="3" lean-forward="true" selection-start-line="2" selection-start-column="3" selection-end-line="2" selection-end-column="3" />
301 <folding /> 371 <folding />
302 </state> 372 </state>
303 </provider> 373 </provider>
304 </entry> 374 </entry>
305 <entry file="file://$PROJECT_DIR$/TiandituDownloader.iml"> 375 <entry file="file://$PROJECT_DIR$/src/utils/TDTUrl.java">
306 <provider selected="true" editor-type-id="text-editor"> 376 <provider selected="true" editor-type-id="text-editor">
307 <state relative-caret-position="0"> 377 <state relative-caret-position="15">
308 <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" /> 378 <caret line="1" column="0" lean-forward="false" selection-start-line="1" selection-start-column="0" selection-end-line="1" selection-end-column="0" />
309 <folding /> 379 <folding>
380 <element signature="imports" expanded="true" />
381 </folding>
310 </state> 382 </state>
311 </provider> 383 </provider>
312 </entry> 384 </entry>
313 <entry file="file://$PROJECT_DIR$/src/TiandituDownload.java"> 385 <entry file="file://$PROJECT_DIR$/src/TiandituDownload.java">
314 <provider selected="true" editor-type-id="text-editor"> 386 <provider selected="true" editor-type-id="text-editor">
315 <state relative-caret-position="1860"> 387 <state relative-caret-position="90">
316 <caret line="131" column="20" lean-forward="false" selection-start-line="131" selection-start-column="20" selection-end-line="131" selection-end-column="20" /> 388 <caret line="11" column="29" lean-forward="false" selection-start-line="11" selection-start-column="13" selection-end-line="11" selection-end-column="29" />
317 <folding> 389 <folding>
318 <element signature="imports" expanded="true" /> 390 <element signature="imports" expanded="true" />
319 <element signature="e#1671#1672#0" expanded="true" /> 391 <element signature="e#1776#1777#0" expanded="true" />
320 <element signature="e#1706#1707#0" expanded="true" /> 392 <element signature="e#1811#1812#0" expanded="true" />
321 <element signature="method#calculateEnv#0;class#TiandituDownload#0" expanded="false" /> 393 <element signature="method#calculateEnv#0;class#TiandituDownload#0" expanded="false" />
322 <element signature="method#getTile#0;class#TiandituDownload#0" expanded="false" /> 394 <element signature="method#getTile#0;class#TiandituDownload#0" expanded="false" />
323 <marker date="1522037120703" expanded="true" signature="2852:2949" ph="select * fro... missingValue" /> 395 <marker date="1522037759498" expanded="true" signature="2957:3054" ph="select * fro... missingValue" />
324 <marker date="1522037120703" expanded="true" signature="3527:3603" ph="INSERT INTO missingValue... " /> 396 <marker date="1522037759498" expanded="true" signature="3632:3708" ph="INSERT INTO missingValue... " />
325 <marker date="1522037120703" expanded="true" signature="4709:4896" ph="CREATE TABLE... IF" /> 397 <marker date="1522037759498" expanded="true" signature="4814:5001" ph="CREATE TABLE... IF" />
326 </folding> 398 </folding>
327 </state> 399 </state>
328 </provider> 400 </provider>
329 </entry> 401 </entry>
330 <entry file="file://$PROJECT_DIR$/src/Main.java"> 402 <entry file="file://$PROJECT_DIR$/src/Main.java">
331 <provider selected="true" editor-type-id="text-editor"> 403 <provider selected="true" editor-type-id="text-editor">
332 <state relative-caret-position="180"> 404 <state relative-caret-position="225">
333 <caret line="12" column="33" lean-forward="false" selection-start-line="12" selection-start-column="33" selection-end-line="12" selection-end-column="33" /> 405 <caret line="15" column="83" lean-forward="true" selection-start-line="11" selection-start-column="8" selection-end-line="15" selection-end-column="83" />
406 <folding>
407 <element signature="imports" expanded="true" />
408 </folding>
409 </state>
410 </provider>
411 </entry>
412 <entry file="file://$PROJECT_DIR$/readme.md">
413 <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
414 <state split_layout="SPLIT">
415 <first_editor relative-caret-position="195">
416 <caret line="13" column="24" lean-forward="true" selection-start-line="13" selection-start-column="24" selection-end-line="13" selection-end-column="24" />
334 <folding /> 417 <folding />
418 </first_editor>
419 <second_editor />
335 </state> 420 </state>
336 </provider> 421 </provider>
337 </entry> 422 </entry>
......
1 ## 项目说明
2
3 TiandituDownload主要用于下载天地图数据,其坐标系为CGCS2000.
4
5 ```java
6
7 // 设置要下载的图片存储sqlite路径
8 TiandituDownload tiandituDownload = new TiandituDownload("my.db");
9 // 范围起始点(左下角、右上角)
10 Point pt = new Point(29.76,106.64);
11 Point pt2 = new Point(35.33, 108.12);
12 // 下载器
13 // 2 为最小level,9为最大level,
14 tiandituDownload.Download(pt, pt2, 2,9, TianDiTuTiledMapServiceType.IMG_C);
15
16 ```
...\ No newline at end of file ...\ No newline at end of file
......
1 import utils.Point;
2 import utils.TianDiTuTiledMapServiceType;
3
1 import java.sql.SQLException; 4 import java.sql.SQLException;
2 5
3 public class Main { 6 public class Main {
...@@ -9,7 +12,7 @@ public class Main { ...@@ -9,7 +12,7 @@ public class Main {
9 TiandituDownload tiandituDownload = new TiandituDownload("my.db"); 12 TiandituDownload tiandituDownload = new TiandituDownload("my.db");
10 Point pt = new Point(29.76,106.64); 13 Point pt = new Point(29.76,106.64);
11 Point pt2 = new Point(35.33, 108.12); 14 Point pt2 = new Point(35.33, 108.12);
12 // tiandituDownload.Download(pt, pt2, 9, TianDiTuTiledMapServiceType.IMG_C); 15 // tiandituDownload.Download(pt, pt2, 9, utils.TianDiTuTiledMapServiceType.IMG_C);
13 tiandituDownload.Download(pt, pt2, 2,9, TianDiTuTiledMapServiceType.IMG_C); 16 tiandituDownload.Download(pt, pt2, 2,9, TianDiTuTiledMapServiceType.IMG_C);
14 } 17 }
15 } 18 }
......
1 import utils.CalEnv;
2 import utils.Point;
3 import utils.TDTUrl;
4 import utils.TianDiTuTiledMapServiceType;
5
1 import java.io.BufferedInputStream; 6 import java.io.BufferedInputStream;
2 import java.io.ByteArrayOutputStream; 7 import java.io.ByteArrayOutputStream;
3 import java.net.HttpURLConnection; 8 import java.net.HttpURLConnection;
......
1 package utils;
2
1 public class CalEnv { 3 public class CalEnv {
2 4
3 private int startX; 5 private int startX;
......
1 package utils;
2
1 public class Point { 3 public class Point {
2 4
3 private double lat; 5 private double lat;
......
...@@ -2,6 +2,8 @@ package utils; ...@@ -2,6 +2,8 @@ package utils;
2 2
3 import java.util.Random; 3 import java.util.Random;
4 4
5 import static utils.TianDiTuTiledMapServiceType.*;
6
5 /** 7 /**
6 * Created by jiangbotao on 2018/3/23. 8 * Created by jiangbotao on 2018/3/23.
7 */ 9 */
...@@ -27,28 +29,28 @@ public class TDTUrl { ...@@ -27,28 +29,28 @@ public class TDTUrl {
27 int subdomain = (random.nextInt(6) + 1); 29 int subdomain = (random.nextInt(6) + 1);
28 url.append(subdomain); 30 url.append(subdomain);
29 switch (this._tiandituMapServiceType) { 31 switch (this._tiandituMapServiceType) {
30 case TianDiTuTiledMapServiceType.VEC_C: 32 case VEC_C:
31 url.append(".tianditu.com/DataServer?T=vec_c&X=").append(this._col).append("&Y=").append(this._row).append("&L=").append(this._level); 33 url.append(".tianditu.com/DataServer?T=vec_c&X=").append(this._col).append("&Y=").append(this._row).append("&L=").append(this._level);
32 break; 34 break;
33 case TianDiTuTiledMapServiceType.CVA_C: 35 case CVA_C:
34 url.append(".tianditu.com/DataServer?T=cva_c&X=").append(this._col).append("&Y=").append(this._row).append("&L=").append(this._level); 36 url.append(".tianditu.com/DataServer?T=cva_c&X=").append(this._col).append("&Y=").append(this._row).append("&L=").append(this._level);
35 break; 37 break;
36 case TianDiTuTiledMapServiceType.CIA_C: 38 case CIA_C:
37 url.append(".tianditu.com/DataServer?T=cia_c&X=").append(this._col).append("&Y=").append(this._row).append("&L=").append(this._level); 39 url.append(".tianditu.com/DataServer?T=cia_c&X=").append(this._col).append("&Y=").append(this._row).append("&L=").append(this._level);
38 break; 40 break;
39 case TianDiTuTiledMapServiceType.IMG_C: 41 case IMG_C:
40 url.append(".tianditu.com/DataServer?T=img_c&X=").append(this._col).append("&Y=").append(this._row).append("&L=").append(this._level); 42 url.append(".tianditu.com/DataServer?T=img_c&X=").append(this._col).append("&Y=").append(this._row).append("&L=").append(this._level);
41 break; 43 break;
42 case TianDiTuTiledMapServiceType.VEC_W: 44 case VEC_W:
43 url.append(".tianditu.com/DataServer?T=vec_w&X=").append(this._col).append("&Y=").append(this._row).append("&L=").append(this._level); 45 url.append(".tianditu.com/DataServer?T=vec_w&X=").append(this._col).append("&Y=").append(this._row).append("&L=").append(this._level);
44 break; 46 break;
45 case TianDiTuTiledMapServiceType.CVA_W: 47 case CVA_W:
46 url.append(".tianditu.com/DataServer?T=cva_w&X=").append(this._col).append("&Y=").append(this._row).append("&L=").append(this._level); 48 url.append(".tianditu.com/DataServer?T=cva_w&X=").append(this._col).append("&Y=").append(this._row).append("&L=").append(this._level);
47 break; 49 break;
48 case TianDiTuTiledMapServiceType.CIA_W: 50 case CIA_W:
49 url.append(".tianditu.com/DataServer?T=cia_w&X=").append(this._col).append("&Y=").append(this._row).append("&L=").append(this._level); 51 url.append(".tianditu.com/DataServer?T=cia_w&X=").append(this._col).append("&Y=").append(this._row).append("&L=").append(this._level);
50 break; 52 break;
51 case TianDiTuTiledMapServiceType.IMG_W: 53 case IMG_W:
52 url.append(".tianditu.com/DataServer?T=img_w&X=").append(this._col).append("&Y=").append(this._row).append("&L=").append(this._level); 54 url.append(".tianditu.com/DataServer?T=img_w&X=").append(this._col).append("&Y=").append(this._row).append("&L=").append(this._level);
53 break; 55 break;
54 default: 56 default:
......
1 package utils;
1 2
2 /** 3 /**
3 * Created by jiangbotao on 2018/3/23. 4 * Created by jiangbotao on 2018/3/23.
......