Skip to content
Snippets Groups Projects

Resolve "Change the processing of the `stories` rule to a `height` GEM Taxonomy tag"

Compare and
11 files
+ 280
82
Compare changes
  • Side-by-side
  • Inline
Files
11
@@ -17,7 +17,7 @@
# along with this program. If not, see http://www.gnu.org/licenses/.
class ObmBuildingsInformation:
class ObmBuildingsInformationRule:
def __call__(self, database, key, *args, **kwargs):
"""
Get the information of one building, including the attributes of the building, the
@@ -43,7 +43,7 @@ class ObmBuildingsInformation:
hstore_to_matrix(obp.tags) AS tags,
ST_X(ST_Centroid(geometry)) AS longitude,
ST_Y(ST_Centroid(geometry)) AS latitude,
ST_AsText(geometry) AS geometry,
ST_AsText(geometry) AS geometry_wkt,
ST_Area(geometry, True) AS area
FROM osm_building_polygons AS obp
WHERE obp.osm_id = {key}
Loading