Skip to content

Commit

Permalink
fix(backend): support big int osm id fgb creation (#2160)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sujanadh authored Feb 7, 2025
1 parent 25faf85 commit 5ebb6a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/backend/app/db/postgis_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ async def featcol_to_flatgeobuf(
-- Wrap geometries in GeometryCollection
CREATE TEMP TABLE IF NOT EXISTS temp_features(
geom geometry(GeometryCollection, 4326),
osm_id integer,
osm_id bigint,
tags text,
version integer,
changeset integer,
Expand All @@ -101,7 +101,7 @@ async def featcol_to_flatgeobuf(
ST_ForceCollection(ST_GeomFromGeoJSON(feat->>'geometry')) AS geom,
regexp_replace(
(feat->'properties'->>'osm_id')::text, '[^0-9]', '', 'g'
)::integer as osm_id,
)::BIGINT as osm_id,
(feat->'properties'->>'tags')::text as tags,
(feat->'properties'->>'version')::integer as version,
(feat->'properties'->>'changeset')::integer as changeset,
Expand Down

0 comments on commit 5ebb6a3

Please sign in to comment.