Skip to content

Commit 5838631

Browse files
committed
update distancevalue to float
1 parent 89186d7 commit 5838631

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

pycsw/core/repository.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,8 @@ def __init__(self, database, context, app_root=None, table='records', repo_filte
167167
'cloudcover': self.dataset.cloudcover,
168168
'instrument': self.dataset.instrument,
169169
'sensortype': self.dataset.sensortype,
170-
'off_nadir': self.dataset.illuminationelevationangle
170+
'off_nadir': self.dataset.illuminationelevationangle,
171+
'gsd': self.dataset.distancevalue
171172
}
172173

173174
if self.dbtype == 'postgresql':
@@ -864,7 +865,7 @@ def setup(database, table, create_sfsql_tables=True, postgis_geometry_column='wk
864865
Column('crs', Text, index=True),
865866
Column('geodescode', Text, index=True),
866867
Column('denominator', Text, index=True),
867-
Column('distancevalue', Text, index=True),
868+
Column('distancevalue', Float, index=True),
868869
Column('distanceuom', Text, index=True),
869870
Column('wkt_geometry', Text),
870871
Column('vert_extent_min', Float, index=True),
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)