Changeset 6748e43 in osmose-backend


Ignore:
Timestamp:
Oct 11, 2012 11:12:13 PM (6 years ago)
Author:
Jocelyn Jaubert <jocelyn.jaubert@…>
Branches:
master
Children:
c69f93c6
Parents:
dee82cb
Message:

Fix syntax of delete() in analyser_osmosis_building_shapes.py

File:
1 edited

Legend:

Unmodified
Added
Removed
  • analyser_osmosis_building_shapes.py

    r74cf95b r6748e43  
    3838    ST_Area(ST_MakePolygon(ST_Transform(linestring,2154)))/ST_Area(ST_MinimumBoundingCircle(ST_Transform(linestring,2154))) > 0.95 AND 
    3939    ST_MaxDistance(ST_Transform(linestring,2154), ST_Transform(linestring,2154)) > 5 AND 
    40     array_length(akeys(delete(delete(delete(delete(delete(tags, 'created_by'), 'source'), 'name'), 'building', 'note:qadastre'))), 1) IS NULL 
     40    array_length(akeys(delete(delete(delete(delete(delete(tags, 'created_by'), 'source'), 'name'), 'building'), 'note:qadastre')), 1) IS NULL 
    4141""" 
    4242 
     
    5353    is_polygon AND 
    5454    ST_MaxDistance(ST_Transform(linestring,2154), ST_Transform(linestring,2154)) > 300 AND 
    55     array_length(akeys(delete(delete(delete(delete(delete(tags, 'created_by'), 'source'), 'name'), 'building', 'note:qadastre'))), 1) IS NULL 
     55    array_length(akeys(delete(delete(delete(delete(delete(tags, 'created_by'), 'source'), 'name'), 'building'), 'note:qadastre')), 1) IS NULL 
    5656""" 
    5757 
Note: See TracChangeset for help on using the changeset viewer.