Skip to content

Commit

Permalink
bump: version 0.3.2 → 0.3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
robsavoye committed Jul 25, 2023
1 parent 97c67d5 commit 501fba5
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 54 deletions.
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,18 @@
#

PACKAGE := org.osm_fieldwork.py
NAME := Osm-Fieldwork
VERSION := 0.3.2
NAME := osm-fieldwork
VERSION := 0.3.3

# Make a python package for pip
pip:
zip -r $(NAME).zip .

pip-install: pip
pip3 install $(NAME).zip

pip-uninstall:
uninstall:
pip3 uninstall $(NAME)

install:
pip3 install -e .

check:
pytest
1 change: 0 additions & 1 deletion osm_fieldwork/.#odk2osm.py

This file was deleted.

2 changes: 1 addition & 1 deletion osm_fieldwork/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.3.2"
__version__ = "0.3.3"
4 changes: 4 additions & 0 deletions osm_fieldwork/odk_merge.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ def conflateWay(self,
version = int(result[0][2]) + 1
attrs = {'id': int(result[0][0]), 'version': version}
tags = result[0][1]
tags[f'old_{key}'] = value
tags['fixme'] = "Probably a duplicate!"
geom = mapping(shapely.from_wkt(result[0][3]))
refs = list()
Expand Down Expand Up @@ -267,6 +268,7 @@ def conflateNode(self, feature, dbindex):
lon = coords.x
attrs = {'id': int(result[0][0]), 'version': version, 'lat': lat, 'lon': lon}
tags = result[0][1]
tags[f'old_{key}'] = value
tags['fixme'] = "Probably a duplicate!"
return {'attrs': attrs, 'tags': tags}
return dict()
Expand All @@ -285,6 +287,7 @@ def conflateById(self, feature, dbindex):
version = int(result[0][2]) + 1
attrs = {'id': int(result[0][0]), 'version': version}
tags = result[0][1]
# tags[f'old_{key}'] = value
tags['fixme'] = "Probably a duplicate!"
geom = mapping(shapely.from_wkt(result[0][3]))
return {'attrs': attrs, 'tags': tags}
Expand All @@ -297,6 +300,7 @@ def conflateById(self, feature, dbindex):
version = int(result[0][2]) + 1
attrs = {'id': int(result[0][0]), 'version': version}
tags = result[0][1]
# tags[f'old_{key}'] = value
tags['fixme'] = "Probably a duplicate!"
geom = mapping(shapely.from_wkt(result[0][3]))
return {'attrs': attrs, 'tags': tags, 'refs': refs}
Expand Down
46 changes: 1 addition & 45 deletions osm_fieldwork/xforms.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,3 @@
# This section corrently isn't being used yet, but will be used to
# test for tag completeness for some features.
validate:
- highway:
- smoothness
- surface
- tracktype
- smoothness
- leisure:
- firepit
- picnic_table

# This section is for simple tag translation. Sometimes the value from
# the choices sheet of the XLSXForm is very close, but not an exact
# match to an approved OSM tags. Many XLSXForms that used OMK tried
Expand Down Expand Up @@ -90,6 +78,7 @@ convert:
- toilets: amenity=toilets
- amenity:
- coffee: amenity=cafe,cuisine=coffee_shop
- goverment: amenity

# All of the data that goes in a different non-OSM file
private:
Expand Down Expand Up @@ -174,36 +163,3 @@ multiple:
- amenity_type
- specialty

# This section matches values to the correct keyword. Often a multiple
# selection in the XLSXForm survey sheet may have values that don't
# all share the same keyword. This corrects that.
tags:
- leisure:
- firepit
- picnic_table
- fishing
- park
- resort
- tourism:
- picnic_table
- caravans
- camp_site
- camp_pitch
- viewpoint
- bear box: yes
- barbeque_grill: yes
- power_supply: yes
- path:
- sac_scale
- mtb:scale
- mtb:scale:imba
- internet_access:
- wlan
- cellular
- internet

- toilets:disposal:
- flush
- urinal
- squat
- seated
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ pythonpath = "osm_fieldwork"

[tool.commitizen]
name = "cz_conventional_commits"
version = "0.3.2"
version = "0.3.3"
version_files = [
"pyproject.toml:version",
"osm_fieldwork/__version__.py",
Expand Down

0 comments on commit 501fba5

Please sign in to comment.