Commit f5edd810 authored by Mohammed Zia's avatar Mohammed Zia
Browse files

Update README.md

parent 1b908821
......@@ -8,19 +8,19 @@
`docker exec -it postgis-container python /scripts/update_db.py`
# Populate db with scanned regions
# Populate db with scanned regions (make sure that the API is running and is accessible from here)
`chmod +x scripts/post_scanned.sh`
`./scripts/post_scanned.sh`
# Populate one row in Luxumberg table - Test
# Populate one row in Luxumberg table - Test (NOT NEEDED)
insert into world.lu (id, scanned_bbox_id, deepvgi_count, deepvgi_probability, geom)
values (1, 1, 10, 0.9, ST_Polygon(ST_GeomFromText('LINESTRING(19.4677734375 45.874712248904764, 18.577880859375 45.0502402697946, 20.698242187499996 45.120052841530544, 20.698242187499996 45.89000815866184, 19.4677734375 45.874712248904764)'), 4326));
UPDATE world.lu SET geom_json = CAST(ST_AsGeoJSON(geom) AS JSON)::JSON->'coordinates';
# Populate one row in Scanned table - Test
# Populate one row in Scanned table - Test (NOT NEEDED)
insert into reference.scanned_locations (weightage, geom)
values (0.4, ST_Polygon(ST_GeomFromText('LINESTRING(26.2353515625 41.04621681452063,26.2353515625 36.77409249464195, 31.1572265625 37.26530995561875, 30.805664062500004 41.0130657870063, 26.2353515625 41.04621681452063)'), 4326))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment