Skip to content

Commit 36584f4

Browse files
committed
Improve the documentation
1 parent c97131d commit 36584f4

File tree

2 files changed

+26
-24
lines changed

2 files changed

+26
-24
lines changed

README.md

Lines changed: 6 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -33,35 +33,19 @@ limitations under the License.
3333

3434
## 📖 How do I use Apache Baremaps?
3535

36-
You can find the documentation on the project's [website](https://baremaps.apache.org/). The following pages showcase the main uses of Apache Baremaps.
37-
38-
- The [OpenStreetMap](https://baremaps.apache.org/documentation/examples/import-osm-into-postgis) example is a good introduction to Baremaps, it shows how to produce high resolution vector tiles.
39-
- The [NaturalEarth](https://baremaps.apache.org/documentation/examples/import-naturalearth-into-postgis) example shows how to produce low resolution vector tiles.
40-
- The [Contour](https://baremaps.apache.org/documentation/examples/import-contour-into-postgis) example shows how to produce contour lines from a digital elevation model.
41-
- The [IP to location](https://baremaps.apache.org/documentation/examples/ip-to-location) example shows how to create and serve an IP to location service in a simple web application.
42-
- The [Geocoding](https://baremaps.apache.org/documentation/examples/geocoding) example shows how to create and serve a geocoding service in a simple web application.
36+
You can find a [getting started](https://baremaps.apache.org/documentation/getting-started/) and [additional examples] on the project's [website](https://baremaps.apache.org/).
4337

4438
## 👩‍💻 How do I contribute?
4539

46-
There are many places where you can contribute to Apache Baremaps such as the code, the documentation, the website or the examples.
47-
48-
The official documentation is located in a separate [repository](https://github.com/apache/incubator-baremaps-site).
49-
50-
If you want to contribute to the code you can refer to the following developer guides available in the documentation.
51-
52-
- [Project structure](https://baremaps.apache.org/documentation/developer-manual/project-structure)
53-
- [How to build with Maven](https://baremaps.apache.org/documentation/developer-manual/how-to-build-with-maven)
54-
- [Set up in IntelliJ IDEA](https://baremaps.apache.org/documentation/developer-manual/setup-in-intellij)
55-
- [Geocoder](https://baremaps.apache.org/documentation/developer-manual/geocoder)
56-
- [IP to location](https://baremaps.apache.org/documentation/developer-manual/ip-to-location)
57-
- [Basemap](https://baremaps.apache.org/documentation/developer-manual/basemap)
40+
There are many places where you can contribute to Apache Baremaps and your contributions are more than welcome.
5841

59-
You can also contribute in the following ways.
42+
The [developer manual](https://baremaps.apache.org/documentation/additional-examples/) provides a good starting point on how to build and run the project from source.
6043

44+
You can contribute in the following ways:
6145
- Improve the code: Report [a bug or submit a feature request](https://github.com/apache/incubator-baremaps/issues), or [submit a pull request](https://github.com/apache/incubator-baremaps/pulls) in the [incubator-baremaps](https://github.com/apache/incubator-baremaps/) repository.
6246
- Improve the documentation: Report [documentation issue](https://github.com/apache/incubator-baremaps-site/issues) or [submit a pull request](https://github.com/apache/incubator-baremaps-site/pulls) in the [incubator-baremaps-site](https://github.com/apache/incubator-baremaps-site/) repository.
63-
- [Join the mailing list](https://lists.apache.org/list.html?dev@baremaps.apache.org): Initiate or participate in project discussions on the mailing list
64-
- Write a post: Write a post to share your use cases and experiences with Apache Baremaps
47+
- [Join the mailing list](https://lists.apache.org/list.html?dev@baremaps.apache.org): Initiate or participate in project discussions on the mailing list.
48+
- Write a post: Write a post to share your use cases and experiences with Apache Baremaps.
6549

6650
Finally, check out [CONTRIBUTING](CONTRIBUTING.md) and [CODE_OF_CONDUCT](CODE_OF_CONDUCT.md).
6751

basemap/README.md

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,35 @@ A PostgreSQL database with the PostGIS extension should be accessible with the f
3434
jdbc:postgresql://localhost:5432/baremaps?user=baremaps&password=baremaps
3535
```
3636

37+
If you plan on importing the whole planet, you will need a powerful machine with a lot of storage. You may also want to modify the `postgresql.conf` file to increase some of the default settings.
38+
39+
```
40+
work_mem = 4GB
41+
shared_buffers = 4GB
42+
maintenance_work_mem = 16GB
43+
autovacuum_work_mem = 4GB
44+
max_worker_processes = 16
45+
max_parallel_workers_per_gather = 8
46+
max_parallel_workers = 16
47+
wal_level = minimal
48+
checkpoint_timeout = 10min
49+
max_wal_size = 20GB
50+
min_wal_size = 80MB
51+
checkpoint_completion_target = 0.9
52+
max_wal_senders = 0
53+
```
54+
3755
## Importing the data
3856

39-
Assuming that the necessary requirements have been installed, the database can be populated with the following command.
57+
Assuming that the necessary requirements have been installed, the database can be populated with the following command. The import workflow will download openstreetmap (osm.pbf) and other data sources into the database.
4058

4159
```
4260
baremaps workflow execute --file import.js
4361
```
4462

4563
## Updating the data
4664

47-
The data can be updated with the following command. The update workflow will download the latest changes from the OpenStreetMap API and apply them to the database.
65+
The data can periodically be updated with the following command. The update workflow will download the latest changes from OpenStreetMap (osc.xml) and apply them to the database.
4866

4967
```
5068
baremaps workflow execute --file update.js

0 commit comments

Comments
 (0)