39 Commits

Author SHA1 Message Date
Jonathan Freer
85562ad1c3 Merge branch 'main' into truncate 2021-09-13 21:01:16 +01:00
Marcelo Prates
758fb5abbb Small fix (get_geometries was missing 'buffer' parameter) 2021-09-13 16:53:09 -03:00
Marcelo de Oliveira Rosa Prates
74b58711e3 Merge branch 'main' into patch-2 2021-09-13 16:45:39 -03:00
Marcelo de Oliveira Rosa Prates
660019b60b Merge pull request #56 from sacovo/patch-1
Add retain_all to get_streets() for perimeter
2021-09-13 16:44:08 -03:00
Marcelo de Oliveira Rosa Prates
eaa41452e6 Merge pull request #55 from JonFreer/main
Fix "Multi-part geometries do not themselves provide the array interface" when using non dict width
2021-09-13 16:43:34 -03:00
Marcelo de Oliveira Rosa Prates
2a25aaadee Merge branch 'main' into main 2021-09-13 16:41:31 -03:00
Marcelo Prates
b406259c43 Added support for Point and Line geometries 2021-09-13 16:21:28 -03:00
JonFreer
fd4ea4bcaa Add truncate_by_edge 2021-09-07 19:25:19 +01:00
Sandro Covo
ca33f516b9 catch empty response instead of failing
If a street is present in the layers with a custom filter that does not
exist in the specified area, osmnx throws an exception and the whole
plotting fails. I suggest catching the exception and just returning an
empty `MultiLineString`. Maybe a warning could also be added, to inform
that the requested street is not present in the result.
2021-09-07 09:03:43 +02:00
Sandro Covo
060affb1e2 Add retain_all to get_streets() for perimeter
Commit #33 added the option, but only when specifying a point and radius, not a perimeter.
2021-09-07 08:59:41 +02:00
JonFreer
5445fe8bd0 Fix Issue with fixed Width 2021-09-06 19:00:01 +01:00
Colm McDonald
f996e8ea12 Merged changes from geometry-intersection
Quite a few merge errors had to be fixed
2021-09-06 14:11:15 +01:00
Marcelo de Oliveira Rosa Prates
25884a2be5 Merge branch 'main' into main 2021-09-06 09:10:17 -03:00
Colm McDonald
5a5140f388 Add buffer to coastline
If only dilation was used, the sea goes over the perimeter, so buffer is used
2021-08-31 22:39:14 +01:00
Colm McDonald
577bd33393 Implement Plotting coastline with just perimeter and change CRS for loaded polygons
Now using WGS84 shape file https://osmdata.openstreetmap.de/download/water-polygons-split-4326.zip
2021-08-31 20:54:38 +01:00
Colm McDonald
ab997b48d5 Use dilate option for coastline 2021-08-31 18:30:29 +01:00
Colm McDonald
b53398055d Fixed typos 2021-08-31 01:07:47 +01:00
Colm McDonald
00d5e575db Initial attempt to plot coastline
A first attempt to plot the coastline using water_polygons.shp from https://osmdata.openstreetmap.de/download/water-polygons-split-3857.zip which can be set in a 'coastline' layer with a 'file_location' key pointing to the .shp file
2021-08-31 01:02:45 +01:00
Christoph Rieke
8312319f51 apply black code formatting 2021-08-30 15:28:51 +02:00
Christoph Rieke
29f57e894b use shapely.geometry.box for polygon from bounds 2021-08-30 14:32:43 +02:00
Marcelo Prates
2d3d734f0f Added GeoDataFrame import to draw.py 2021-08-29 17:03:52 -03:00
Marcelo de Oliveira Rosa Prates
d2fa4993ec Merge pull request #33 from G21-Goose/main
Add retain_all option to get_streets()
2021-08-29 15:38:58 -03:00
Marcelo de Oliveira Rosa Prates
348dd92e20 Merge pull request #34 from mei-se/main
fix issue when querying within a polygon
2021-08-29 15:35:55 -03:00
Marcelo de Oliveira Rosa Prates
86b2c919fb Merge pull request #30 from chrieke/imports_explicit_and_clean
Best practice structure for imports
2021-08-29 14:43:31 -03:00
mei-se
f52d3e63ce fix issue when querying within a polygon
The `parse_query` function checked whether the `query` parameter was of type `Polygon` or `MultiPolygon`, while the underlying library expected a `GeoDataFrame` (which is also what `get_perimeter` returns).
2021-08-29 16:23:50 +02:00
Colm McDonald
5e3a69d1f3 Add retain_all option to get_streets()
Add retain_all option so that separate graphs can be kept instead of only keeping the largest.
2021-08-28 23:41:42 +01:00
Christoph Rieke
3066525032 explicit imports, cleaned up, remove comments, clean up 2021-08-28 20:57:51 +02:00
Christoph Rieke
bebce535c8 fix crs instead of dummy request 2021-08-28 20:39:17 +02:00
Marcelo de Oliveira Rosa Prates
3646a498e0 Merge pull request #13 from CharbelAD/main
Added buffer distance in get_streets()
2021-08-28 13:12:38 -03:00
Marcelo de Oliveira Rosa Prates
3a609ebf31 Merge pull request #17 from balloob/devcontainer
Add devcontainer
2021-08-28 13:10:37 -03:00
Matas Minelga
905f5702ad Bug fix for when 'text' param is supplied 2021-08-27 10:48:31 +03:00
Marcelo Prates
42c2770689 Added mandatory OSM credit message (with a reference to this repo) to the map drawing function 2021-08-27 00:06:32 -03:00
Paulus Schoutsen
9098adbdf9 Add devcontainer 2021-08-26 17:14:27 +00:00
Charbel Abi Daher
e938eaa614 Added buffer distance in get_streets()
Added a buffer distance in get_streets() to fetch streets that are not fully inside the perimeter.
2021-08-26 15:12:56 +03:00
Marcelo Prates
e9093fae60 Added support for waterways and fetching by OSM Id 2021-08-25 12:15:47 -03:00
Marcelo Prates
70e36219f7 Merge 2021-08-23 22:14:52 -03:00
Marcelo Prates
a234510ae8 Updated prettymaps library, README and examples.ipynb notebook 2021-08-23 22:13:16 -03:00
Marcelo de Oliveira Rosa Prates
75b2b30279 Update draw.py 2021-08-21 19:08:01 -03:00
Marcelo Prates
dedab1066b Updated draw.py and fetch.py for flexibility 2021-08-15 13:30:02 -03:00