Skip to content
This repository was archived by the owner on Jun 4, 2024. It is now read-only.

Commit 20cb5a8

Browse files
authored
Update README.md
1 parent 6971167 commit 20cb5a8

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ pre-release
1717
### To-do
1818

1919
- 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.
2121
- Try to use NOSQL database, because OSM data uses a lot of key-value pairs, so NOSQL database may be a better choice.
2222
- Statement support in more languages.
2323

@@ -156,11 +156,11 @@ You can also choose whether to import relation data and way data according to th
156156

157157
## commitFrequency (commit frequency)
158158

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.
160160

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.
162162

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.
164164

165165
The default value of commitFrequency is 5,000, you can modify it in your code according to the environment of your application.
166166

@@ -188,7 +188,7 @@ The memory consumption of data read and database write operations is about 200M-
188188

189189
[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.
190190

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)
192192

193193
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 .
194194

@@ -202,8 +202,8 @@ http://www.apache.org/licenses/
202202

203203
# References & Credits
204204

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.
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.
206206

207207
# My OSM Account
208208

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

Comments
 (0)