You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 4, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ pre-release
17
17
### To-do
18
18
19
19
- More data import options.
20
-
- Optimizing database structure to avoid the problem that Nodes, Way and Relation must be queried separately.
20
+
- Optimizing database structure to avoid the problem that Nodes, Ways and Relations must be queried separately.
21
21
- Try to use NOSQL database, because OSM data uses a lot of key-value pairs, so NOSQL database may be a better choice.
22
22
- Statement support in more languages.
23
23
@@ -156,11 +156,11 @@ You can also choose whether to import relation data and way data according to th
156
156
157
157
## commitFrequency (commit frequency)
158
158
159
-
Since the read operation occurs in the Osmosis library instead of this library, the OsmosisReader class in this library is only called once after each time the Osmosis library reads an element. The process () function cannot be included in the same Transaction in.
159
+
Since the read operation occurs in the Osmosis instead of *Osmunda*, the OsmosisReader class in *Osmunda*is only called after the Osmosis reads an element. The `process()` function cannot be included in the same transaction.
160
160
161
-
In order to avoid the high time consumption caused by frequent switching of transactions when inserting data one by one, I set the commitFrequency variable in the OsmosisReader class. When the number of records to be inserted reaches the number specified by commitFrequency, a Transaction will be opened for batch insertion operations.
161
+
In order to avoid the high time consumption caused by frequent begining and ending of transactions when inserting data one by one, the commitFrequency variable was set in the OsmosisReader class. When the records to be inserted reaches the number specified by commitFrequency, a Transaction will be opened for batch insert operations.
162
162
163
-
Before batch insertion, all currently read pending records are stored in memory. If the commitFrequency is too high, it will cause too high memory usage; if the commitFrequency is too low, the Transaction will be frequently switched, resulting in too high Time-consuming.
163
+
Before batch inserting, all currently read pending records are stored in memory. If the commitFrequency is too high, it will cause too high memory usage; if the commitFrequency is too low, the Transaction will be frequently switched, it will cause too high time-consuming.
164
164
165
165
The default value of commitFrequency is 5,000, you can modify it in your code according to the environment of your application.
166
166
@@ -188,7 +188,7 @@ The memory consumption of data read and database write operations is about 200M-
188
188
189
189
[Planet OSM](https://planet.openstreetmap.org/) is the original source of all data, operated by the Open Street Map, but its download speed is limited.
190
190
191
-
It can be downloaded from other mirror data websites: [Site List](https://wiki.openstreetmap.org/wiki/Planet.osm)
191
+
It can be downloaded from other mirror data websites: [Site List](https://wiki.openstreetmap.org/wiki/Planet.osm)
192
192
193
193
You can also export the xml file of specific area by yourself: https://overpass-api.de/api/map?bbox=min_longitude,min_latitude,max_longitude,max_latitude .
Thanks to [spyhunter99 / osmreader](https://github.com/spyhunter99/osmreader), I referred to the project, rewrote its core algorithms in kotlin, fixed the Osmosis not work problem, and added reverse geocoding feature.
205
+
Thanks to [spyhunter99 / osmreader](https://github.com/spyhunter99/osmreader), I referred to the project, rewrote its core algorithms in kotlin, fixed the Osmosis not work problem, and added reverse geocoding feature.
206
206
207
207
# My OSM Account
208
208
209
-
[sun-jiao](https://www.openstreetmap.org/user/sun-jiao), mainly active in Wuhan.
209
+
[sun-jiao](https://www.openstreetmap.org/user/sun-jiao), mainly active in Wuhan.
0 commit comments