aresta / OSM_Extract

Extract OSM features in a configurable way to files to be used in other projects
GNU General Public License v3.0
4 stars 2 forks source link

Issues and how to resolve them #3

Closed vladbondarenko closed 2 months ago

vladbondarenko commented 3 months ago

Hi,

First of all you need to install newest version of shapely, its 2.0.3

pip install shapely==2.0.3

then you need to modify funcs.py (first 2 lines)

from shapely import geometry, intersection from shapely.geometry import LineString, LinearRing, Polygon, MultiPolygon, MultiLineString, Point

then you need to modify extract_features.py

CONF_FEATURES = '../conf/conf_extract.yaml' CONF_STYLES = '../conf/conf_styles.yaml' MAP_FOLDER = '../maps/mymap'

initialy there was /conf/conf_extract.yaml (without ../ at the beginning and that tells absolute path from the root /, not from the cloned dir)

and after that scripts started to work.

aresta commented 2 months ago

Ok, thank you. Some of this topics are because it is configured to work with the docker container, to avoid configuration differences. But actually it's easy to make it working directly without docker.