Skip to content

python implementation of the PoLiS metric for comparing building footprints

Notifications You must be signed in to change notification settings

spgriffin/polis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

POLIS Footprint Metrics

A CLI tool for computing this metric, see "A Metric for Polygon Comparison and Building Extraction Evaluation" by J. Avbelj, et al. for more information on the metric.

Installation

You need to have gdal, geos, and libspatialindex installed to use this package. These are all available in the linux package managers and in brew for OSX, so figure that out first.

Clone this repo, and then navigate to its root. To install the CLI tool, run

pip install .

You should now have polis available on the command line.

To check out the tool, from the repo's root directory, run

polis data/FullSubset.shp data/user_data.shp scores.shp

You should see this after a few seconds (in addition to scores.shp being created; it contains the geometies and their score):

$ polis data/FullSubset.shp data/user_data.shp data/out.shp
Number of matches: 9
Number of misses: 98608
Duplicate matches: 0

About

python implementation of the PoLiS metric for comparing building footprints

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages