Skip to content

Commit c8f7185

Browse files
committed
Improve DB comments, intro docs
1 parent 910ab74 commit c8f7185

File tree

3 files changed

+18
-13
lines changed

3 files changed

+18
-13
lines changed

db/deploy/001.sql

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -239,8 +239,6 @@ COMMENT ON PROCEDURE geofaker.point_in_place_landuse IS 'Uses osm.landuse_polygo
239239
;
240240

241241

242-
-- From: https://trac.osgeo.org/postgis/wiki/UserWikiRandomPoint
243-
244242
CREATE FUNCTION geofaker.n_points_in_polygon(geom geometry, num_points integer)
245243
RETURNS SETOF geometry
246244
LANGUAGE plpgsql VOLATILE
@@ -288,11 +286,11 @@ END
288286
$$
289287
;
290288

291-
COMMENT ON FUNCTION geofaker.n_points_in_polygon(GEOMETRY, INT) IS 'Creates N points randomly within the given polygon.';
289+
COMMENT ON FUNCTION geofaker.n_points_in_polygon(GEOMETRY, INT) IS 'Creates N points randomly within the given polygon. From: https://trac.osgeo.org/postgis/wiki/UserWikiRandomPoint';
292290

293291

294292

295-
-- Ensure the required temp table exists, avoids deploy failure on next sproc
293+
-- Ensure the required temp table exists, avoids deploy failure creating next sproc
296294
CREATE TEMP TABLE IF NOT EXISTS faker_store_location
297295
(
298296
store_id BIGINT, place_osm_id BIGINT, place_osm_type TEXT, place_name TEXT,

docs/src/geo-faker.md

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,26 @@
11
# What is Geo Faker?
22

3-
The the Geo Faker project creates fake store and customer data with geospatial
4-
components based on OpenStreetMap. The use of OpenStreetMap data
3+
Geo Faker is a project to create fake geospatial data in PostGIS.
4+
The generated data is based on real OpenStreetMap region, using
5+
the region of your choice. The whole process is easy
6+
thanks to the [PgOSM Flex](https://pgosm-flex.com/)
7+
project, which provides the main functionality used by Geo Faker.
8+
9+
10+
The the Geo Faker project currently creates two tables with fake store
11+
and fake customer data. The use of OpenStreetMap data
512
as a starting point provides a sense of realism. The use of `random()`
6-
and to generate fake data avoids privacy concerns.
13+
and other methods to generate fake data avoid privacy concerns.
14+
715

16+
> Warning: This project is in early development! Things will be changing quickly over the first few releases (e.g. before 0.5.0).
817
9-
> Warning: This project is in early development! Things will be changing over the first few releases (e.g. before 0.5.0).
1018

1119

12-
GeoFaker builds on [PgOSM Flex](https://pgosm-flex.com/), using its inherit ability
13-
to be customized as a launching point to generate realistic looking, but absolutely fake
14-
geospatial data.
1520

21+
----
1622

23+
Original Examples -- New examples coming soon!
1724

1825
Version 1
1926

docs/src/quick-start.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ docker run --name geofaker -d --rm \
3535
-v /etc/localtime:/etc/localtime:ro \
3636
-e POSTGRES_USER=$POSTGRES_USER \
3737
-e POSTGRES_PASSWORD=$POSTGRES_PASSWORD \
38-
-p 5433:5432 -d rustprooflabs/geofaker
38+
-p 5439:5432 -d rustprooflabs/geofaker
3939

4040
docker exec -it \
4141
geofaker python3 docker/pgosm_flex.py \
4242
--ram=8 \
4343
--region=north-america/us \
44-
--subregion=nebraska \
44+
--subregion=colorado \
4545
--layerset=faker
4646
```
4747

0 commit comments

Comments
 (0)