Skip to content

Commit

Permalink
fix: Add SRID to geometry
Browse files Browse the repository at this point in the history
  • Loading branch information
rsavoye committed Oct 5, 2023
1 parent 3b305e5 commit 1f5f7f2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions osm_rawdata/db_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class Nodes(Base):
osm_id = Column(BigInteger, primary_key=True, unique=True)
# osm_id = Column(BigInteger, ForeignKey("base.osm_id"))
tags = Column(JSONB)
geom = Column(Geometry('POINT'))
geom = Column(Geometry('POINT', srid=4326))

class Ways(Base):
"""
Expand All @@ -81,7 +81,7 @@ class Ways(Base):
osm_id = Column(BigInteger, primary_key=True, unique=True)
# osm_id = Column(BigInteger, ForeignKey("base.osm_id"))
tags = Column(JSONB)
geom = Column(Geometry('POLYGON'))
geom = Column(Geometry('POLYGON', srid=4326))

class Lines(Base):
"""
Expand All @@ -95,5 +95,5 @@ class Lines(Base):
# osm_id = Column(BigInteger, ForeignKey("base.osm_id"))
osm_id = Column(BigInteger, primary_key=True, unique=True)
tags = Column(JSONB)
geom = Column(Geometry('LINESTRING'))
geom = Column(Geometry('LINESTRING', srid=4326))

0 comments on commit 1f5f7f2

Please sign in to comment.