All the Gazetteermodels have geom fields. In the current configuration of alto2txt2fixture.create_adjacent_tablesjson and csv results, Place includes longitude and latitude fields. These can be combined into a geom field when imported into Gazetteer.Place.
Tasks:
[ ] Check if there is any advantage in implementing this within alto2txt2fixture (reason not is requiring geopandas...)
[ ] Add as a func within lwmdb.utils to convert those fields into a GeometryCollection
[ ] Add basic doctest for that func independent of Gazetteer.Place (for example see the download_filedocstring which auto renders and is included in pytest)
[ ] Add a method on func to add these and a test within gazetteer.tests
All the
Gazetteer
models
havegeom
fields. In the current configuration ofalto2txt2fixture.create_adjacent_tables
json
andcsv
results,Place
includeslongitude
andlatitude
fields. These can be combined into ageom
field when imported intoGazetteer.Place
.Tasks:
alto2txt2fixture
(reason not is requiringgeopandas
...)func
withinlwmdb.utils
to convert those fields into aGeometryCollection
srid
doctest
for thatfunc
independent ofGazetteer.Place
(for example see thedownload_file
docstring
which auto renders and is included inpytest
)method
onfunc
to add these and atest
withingazetteer.tests