Skip to content

Commit 5123278

Browse files
author
sreeder
committed
include message for how to change geoalchemy in requirements.txt
1 parent 736f3b7 commit 5123278

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

requirements.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
six
22
sqlalchemy
33
geoalchemy
4+
Change line #242 in geoalchemy/base.py
5+
from:
6+
class SpatialComparator(ColumnProperty.ColumnComparator):
7+
to :
8+
class SpatialComparator(ColumnProperty.Comparator):
9+
410
shapely
511

612
matplotlib

src/api/ODM2/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ def __repr__(self):
566566
from shapely import wkb
567567
return "<SamplingFeatures('%s', '%s', '%s', '%s', '%s')>" % (
568568
self.SamplingFeatureCode, self.SamplingFeatureName, self.SamplingFeatureDescription,
569-
self.Elevation_m, self.FeatureGeometry)
569+
self.Elevation_m, wkb.loads(str(self.FeatureGeometry.geom_wkb)).wkt if self.FeatureGeometry is not None else None)#self.FeatureGeometry)
570570

571571
GeometryDDL(SamplingFeatures.__table__) #Geoalchemy1
572572

0 commit comments

Comments
 (0)