Skip to content
Snippets Groups Projects

Resolve "Create a rule that gets the construction date from cadaster data for Tabula dataset."

6 files
+ 39
10
Compare changes
  • Side-by-side
  • Inline
Files
6
@@ -16,6 +16,7 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see http://www.gnu.org/licenses/.
class ObmBuildingsInformation:
def __call__(self, database, key, *args, **kwargs):
"""
@@ -63,7 +64,9 @@ class ObmBuildingsInformation:
"""
database.cursor.execute(sql_statement)
for osm_id, tags in database.cursor:
building_information["relations"].append({"osm_id": osm_id, "tags": dict(tags)})
building_information["relations"].append(
{"osm_id": osm_id, "tags": dict(tags)}
)
# Get the attributes of the POIs inside the building
sql_statement = f"""
Loading