Skip to content

Commit

Permalink
Add new concept of "linearity" to the view
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaraphael committed Aug 2, 2023
1 parent 702b529 commit 2e2b27c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions alembic/versions/39277f6278f4_add_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ def upgrade() -> None:
definition="""
SELECT
slick.*,
slick.length^2 / slick.area / slick.polsby_popper as linearity,
sentinel1_grd.scene_id AS s1_scene_id,
sentinel1_grd.geometry AS s1_geometry,
cls.short_name AS cls_short_name,
Expand Down
2 changes: 2 additions & 0 deletions alembic/versions/7cd715196b8d_add_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ def upgrade() -> None:

op.create_index("idx_slick_hitl", "slick", ["hitl_cls"])
op.create_index("idx_slick_confidence", "slick", ["machine_confidence"])
op.create_index("idx_slick_length", "slick", ["length"])
op.create_index("idx_slick_polsby_popper", "slick", ["polsby_popper"])
op.create_index("idx_slick_fill_factor", "slick", ["fill_factor"])
op.create_index("idx_slick_orchestrator_run", "slick", ["orchestrator_run"])
Expand Down Expand Up @@ -78,6 +79,7 @@ def downgrade() -> None:

op.drop_index("idx_slick_hitl", "slick")
op.drop_index("idx_slick_confidence", "slick")
op.drop_index("idx_slick_length", "slick")
op.drop_index("idx_slick_polsby_popper", "slick")
op.drop_index("idx_slick_fill_factor", "slick")
op.drop_index("idx_slick_orchestrator_run", "slick")
Expand Down

0 comments on commit 2e2b27c

Please sign in to comment.