Skip to content

Commit 595f411

Browse files
author
sreeder
committed
combine queries to the same object into a single function
1 parent 72d93c4 commit 595f411

File tree

5 files changed

+99
-2521
lines changed

5 files changed

+99
-2521
lines changed

Examples/Sample.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@
2323
#createconnection (dbtype, servername, dbname, username, password)
2424
#session_factory = dbconnection.createConnection('mysql', 'localhost', 'odm2', 'ODM', 'odm')
2525
#session_factory = dbconnection.createConnection('connection type: sqlite|mysql|mssql|postgresql', '/your/path/to/db/goes/here', 2.0)
26-
session_factory = dbconnection.createConnection('sqlite', '/Users/denversmith/Downloads/ODM2.sqlite', 2.0)
27-
# session_factory= dbconnection.createConnection('mssql')
26+
session_factory= dbconnection.createConnection('mssql', "(local)", "LBRODM2", "ODM", "odm")
2827

2928

3029

odm2api/ODM2/apiCustomType.py

Lines changed: 0 additions & 132 deletions
This file was deleted.

odm2api/ODM2/models.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,8 @@ class SamplingFeatures(Base):
562562
index=True)
563563
Elevation_m = Column('elevation_m', Float(53))
564564
ElevationDatumCV = Column('elevationdatumcv', ForeignKey(CVElevationDatum.Name), index=True)
565-
FeatureGeometry = Column('featuregeometry', Geometry)
565+
FeatureGeometry = Column('featuregeometry',Geometry)# String(50))#
566+
# FeatureGeometryWKT = Column('featuregeometrywkt', String(50))
566567
# FeatureGeometry = Column('featuregeometry', BLOB) # custom geometry queries
567568

568569
def shape(self):

0 commit comments

Comments
 (0)