{"id":2553,"date":"2016-11-23T18:07:47","date_gmt":"2016-11-24T02:07:47","guid":{"rendered":"http:\/\/blog.light42.com\/wordpress\/?p=2553"},"modified":"2017-01-04T10:38:26","modified_gmt":"2017-01-04T18:38:26","slug":"osm-fresno","status":"publish","type":"post","link":"http:\/\/blog.light42.com\/wordpress\/?p=2553","title":{"rendered":"OSM Fresno"},"content":{"rendered":"<p>In Openstreetmap US, California Fresno area, a controversial [0] series of imports of legal property records (aka PARCEL) are mixed in with other POLYGONS. Many various POLYGON in Fresno now share the tag <code>landuse=residential<\/code>, both the PARCEL legal records and real building footprint POLYGON, as well as various others. After reviewing the wiki talk page, relevant discussions, and discussing online briefly, this post looks at the OSM context; estimates the extent of these imports by examining similar, nearby areas; compares the OSM records to actual current PARCEL records; proposes a <strong>deletion criteria<\/strong> and finally, examines the extent of the proposed deletion.<\/p>\n<p>[0] <a href=\"http:\/\/www.openstreetmap.org\/changeset\/26356220\" target=\"_blank\">changeset\/26356220<\/a> * <a href=\"http:\/\/www.openstreetmap.org\/changeset\/26357831\" target=\"_blank\">changeset\/26357831<\/a><br \/>\nOSM Wiki on Parcels <a href=\"https:\/\/wiki.openstreetmap.org\/wiki\/Parcel\" target=\"_blank\">-LINK-<\/a> <a href=\"https:\/\/wiki.openstreetmap.org\/wiki\/Talk:Parcel\" target=\"_blank\">-TALK-<\/a><\/p>\n<hr \/>\n<p>Context: <strong>Fresno County<\/strong> is big &#8212; but the real-world residential areas are confined almost entirely to the City of Fresno. <\/p>\n<p><a href=\"http:\/\/blog.light42.com\/wordpress\/wp-content\/uploads\/2016\/11\/Fresno_ccd_context.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.light42.com\/wordpress\/wp-content\/uploads\/2016\/11\/Fresno_ccd_context-300x173.png\" alt=\"fresno_ccd_context\" width=\"300\" height=\"173\" class=\"aligncenter size-medium wp-image-2578\" srcset=\"http:\/\/blog.light42.com\/wordpress\/wp-content\/uploads\/2016\/11\/Fresno_ccd_context-300x173.png 300w, http:\/\/blog.light42.com\/wordpress\/wp-content\/uploads\/2016\/11\/Fresno_ccd_context-768x442.png 768w, http:\/\/blog.light42.com\/wordpress\/wp-content\/uploads\/2016\/11\/Fresno_ccd_context-1024x589.png 1024w, http:\/\/blog.light42.com\/wordpress\/wp-content\/uploads\/2016\/11\/Fresno_ccd_context.png 1185w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><a href=\"http:\/\/blog.light42.com\/wordpress\/wp-content\/uploads\/2016\/11\/Fresno_landuse_context.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.light42.com\/wordpress\/wp-content\/uploads\/2016\/11\/Fresno_landuse_context-300x175.png\" alt=\"fresno_landuse_context\" width=\"300\" height=\"175\" class=\"aligncenter size-medium wp-image-2580\" srcset=\"http:\/\/blog.light42.com\/wordpress\/wp-content\/uploads\/2016\/11\/Fresno_landuse_context-300x175.png 300w, http:\/\/blog.light42.com\/wordpress\/wp-content\/uploads\/2016\/11\/Fresno_landuse_context-768x449.png 768w, http:\/\/blog.light42.com\/wordpress\/wp-content\/uploads\/2016\/11\/Fresno_landuse_context-1024x599.png 1024w, http:\/\/blog.light42.com\/wordpress\/wp-content\/uploads\/2016\/11\/Fresno_landuse_context.png 1165w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.light42.com\/wordpress\/wp-content\/uploads\/2016\/11\/nlcd_06_legend-184x300.png\" alt=\"nlcd_06_legend\" width=\"184\" height=\"300\" class=\"aligncenter size-medium wp-image-2781\" srcset=\"http:\/\/blog.light42.com\/wordpress\/wp-content\/uploads\/2016\/11\/nlcd_06_legend-184x300.png 184w, http:\/\/blog.light42.com\/wordpress\/wp-content\/uploads\/2016\/11\/nlcd_06_legend.png 273w\" sizes=\"(max-width: 184px) 100vw, 184px\" \/><br \/>\n<a href=\"http:\/\/www.mrlc.gov\/nlcd06_leg.php\" target=\"_blank\">NLCD 06 mrlc.gov<\/a><\/p>\n<hr \/>\n<pre>\r\nQ. What tag 'landuse' values are present in County Subdivision Fresno?\r\n\r\n 151670 | residential\r\n   6644 | commercial\r\n   6463 | NULL\r\n   3859 | industrial\r\n    706 | farm\r\n    574 | vineyard\r\n    498 | orchard\r\n    453 | meadow\r\n    109 | garages\r\n\r\nless than 100: \r\n  basin,farmyard,recreation_ground,grass,farmland,religious,cemetery,retail,\r\n  quarry,reservoir,railway,landfill,construction,institutional\r\n<\/pre>\n<p>Next, expand the query to the entire five-county region<\/p>\n<pre>\r\nQ. What tag 'landuse' values are present in the five county area \r\n-- Kings, Madera, Tulare, Kern, Fresno\r\n\r\n 207902 | NULL\r\n 203000 | residential\r\n  11697 | commercial\r\n   7054 | farm\r\n   6679 | orchard\r\n   5941 | industrial\r\n   5251 | vineyard\r\n   5029 | meadow\r\n   2475 | farmland\r\n   1980 | farmyard\r\n    885 | grass\r\n    \r\nless than 300: \r\n   garages,cemetery,recreation_ground,basin,quarry,reservoir,religious,retail\r\n  forest,scrub,military,landfill,railway,pond,greenhouse_horticulture,construction\r\n\r\n<\/pre>\n<p>So, 150,000 of the 200,000 <code>landuse=residential<\/code> tagged POLYGONs in a five-county area, are in just the Fresno City CCD. <\/p>\n<p><strong>Attribution<\/strong> On inspection, a large number of likely PARCEL records in Fresno, carry an <code>attribution<\/code> tag with one of several recognizable values:  Caltrans (4), FMMP (3) and <strong>Fresno_County_GIS<\/strong>.<\/p>\n<pre>\r\nexample data:\r\n \"type\"=>\"multipolygon\", \"landuse\"=>\"vineyard\", \"attribution\"=>\"Fresno_County_GIS\"\r\n \"crop\"=>\"field_cropland\", \"type\"=>\"multipolygon\", \"landuse\"=>\"farm\", \"attribution\"=>\"Fresno_County_GIS\"\r\n \"crop\"=>\"field_cropland\", \"type\"=>\"multipolygon\", \"landuse\"=>\"farm\", \"attribution\"=>\"Fresno_County_GIS\"\r\n \"crop\"=>\"native_pasture\", \"type\"=>\"multipolygon\", \"landuse\"=>\"meadow\", \"attribution\"=>\"Fresno_County_GIS\"\r\n \"crop\"=>\"native_pasture\", \"type\"=>\"multipolygon\", \"landuse\"=>\"meadow\", \"attribution\"=>\"Fresno_County_GIS\"\r\n \"type\"=>\"multipolygon\", \"landuse\"=>\"vineyard\", \"attribution\"=>\"Fresno_County_GIS\"\r\n \"crop\"=>\"field_cropland\", \"type\"=>\"multipolygon\", \"landuse\"=>\"farm\", \"attribution\"=>\"Fresno_County_GIS\"\r\n \"type\"=>\"multipolygon\", \"landuse\"=>\"vineyard\", \"attribution\"=>\"Fresno_County_GIS\"\r\n \"crop\"=>\"field_cropland\", \"type\"=>\"multipolygon\", \"landuse\"=>\"farm\", \"attribution\"=>\"Fresno_County_GIS\"\r\n \"type\"=>\"multipolygon\", \"trees\"=>\"orange_trees\", \"landuse\"=>\"orchard\", \"attribution\"=>\"Fresno_County_GIS\"\r\n \"type\"=>\"multipolygon\", \"landuse\"=>\"residential\", \"lot_type\"=>\"single family residential properties\", \"other_use\"=>\"S\", \"attribution\"=>\"Fresno_County_GIS\", \"primary_use\"=>\"000\", \"secondary_use\"=>\"VLM\"\r\n \"type\"=>\"multipolygon\", \"wood\"=>\"mixed\", \"landuse\"=>\"farm\", \"natural\"=>\"wood\", \"attribution\"=>\"Fresno_County_GIS\"\r\n \"type\"=>\"multipolygon\", \"landuse\"=>\"vineyard\", \"attribution\"=>\"Fresno_County_GIS\"\r\n \"type\"=>\"multipolygon\", \"landuse\"=>\"orchard\", \"attribution\"=>\"Fresno_County_GIS\"\r\n<\/pre>\n<hr \/>\n<p>Detailed counts in Fresno County and the Fresno CCD<\/p>\n<pre>-- Fresno County:  geoid  06019 \/ tl_2016_us_county\r\n241860 - all multipolygons\r\n231624 - tag landuse\r\n196017 - tag landuse = 'residential'\r\n230685 - tag 'attribution'\r\n230612 - tag 'attribution' ~* 'GIS'\r\n----------------------------------------------------\r\n-- Fresno CCD:   geoid   0601991080\r\n171200 - all multipolygons\r\n164737 - tag landuse\r\n151670 - tag landuse = 'residential'\r\n166163 - tag 'attribution'\r\n166147 - tag 'attribution' ~* 'GIS'\r\n----------------------------------------------------\r\n-- Fresno County outside of Fresno CCD (derived)\r\n 70660 - all multipolygons   (241860 - 171200)\r\n 66887 - tag landuse         (231624 - 164737)\r\n 44347 - tag landuse = 'residential'  (196017 - 151670)\r\n 64465 - tag 'attribution' ~* 'GIS'   (230612 - 166147)\r\n<\/pre>\n<pre>Qry - count the occurances of attribution 'GIS'   AND\r\n  landuse = 'residential'; area Fresno County, by cousub\r\n           name           | count  \r\n--------------------------+--------\r\n Caruthers-Raisin City    |   1400\r\n Fresno                   | 150681\r\n Kerman                   |   4093\r\n Reedley                  |   5967\r\n Mendota                  |   1779\r\n San Joaquin-Tranquillity |   1030\r\n Coalinga                 |   2528\r\n Firebaugh                |   1152\r\n Orange Cove              |   1579\r\n Kingsburg                |   3557\r\n Huron                    |     87\r\n Fowler                   |   1527\r\n Sierra                   |    963\r\n Parlier-Del Rey          |   2633\r\n Sanger                   |   7796\r\n Riverdale                |   1208\r\n Laton                    |    599\r\n Selma                    |   6221\r\n\r\n<\/pre>\n<hr \/>\n<p>Compare current parcel data (670 records) to OSM multipolygon with tag <code>landuse=residential<\/code> (350 records), in a sample Fresno blockgroup (<code>'060190045051'<\/code>)<br \/>\n<code>BBOX=\"-119.7994,36.8084,-119.7903,36.8229\"<\/code><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.light42.com\/wordpress\/wp-content\/uploads\/2016\/11\/bg_fresno_0.png\" alt=\"bg_fresno_0\" width=\"277\" height=\"298\" class=\"alignleft size-full wp-image-2606\" \/><\/p>\n<p><a href=\"http:\/\/blog.light42.com\/wordpress\/wp-content\/uploads\/2016\/11\/m_p_fresno_bg_0.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.light42.com\/wordpress\/wp-content\/uploads\/2016\/11\/m_p_fresno_bg_0-150x150.png\" alt=\"m_p_fresno_bg_0\" width=\"150\" height=\"150\" class=\"alignleft size-thumbnail wp-image-2599\" \/><\/a><\/p>\n<p><a href=\"http:\/\/blog.light42.com\/wordpress\/wp-content\/uploads\/2016\/11\/p_fresno_bg_0.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.light42.com\/wordpress\/wp-content\/uploads\/2016\/11\/p_fresno_bg_0-150x150.png\" alt=\"p_fresno_bg_0\" width=\"150\" height=\"150\" class=\"aligncenter size-thumbnail wp-image-2600\" \/><\/a><\/p>\n<p><a href=\"http:\/\/blog.light42.com\/wordpress\/wp-content\/uploads\/2016\/11\/m_fresno_bg_0.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.light42.com\/wordpress\/wp-content\/uploads\/2016\/11\/m_fresno_bg_0-150x150.png\" alt=\"m_fresno_bg_0\" width=\"150\" height=\"150\" class=\"aligncenter size-thumbnail wp-image-2601\" \/><\/a><\/p>\n<hr \/>\n<p>This looks promising: take all OSM multipolygons marked <code>landuse=residential<\/code>, then remove WHERE tag <code>attribution<\/code> exists AND tag <code>building<\/code> does not exist &#8230;<\/p>\n<p><a href=\"http:\/\/blog.light42.com\/wordpress\/wp-content\/uploads\/2016\/11\/OSM_FresnoCS_mpoly_landuse_res_attr0.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.light42.com\/wordpress\/wp-content\/uploads\/2016\/11\/OSM_FresnoCS_mpoly_landuse_res_attr0-300x172.png\" alt=\"osm_fresnocs_mpoly_landuse_res_attr0\" width=\"300\" height=\"172\" class=\"aligncenter size-medium wp-image-2566\" srcset=\"http:\/\/blog.light42.com\/wordpress\/wp-content\/uploads\/2016\/11\/OSM_FresnoCS_mpoly_landuse_res_attr0-300x172.png 300w, http:\/\/blog.light42.com\/wordpress\/wp-content\/uploads\/2016\/11\/OSM_FresnoCS_mpoly_landuse_res_attr0-768x439.png 768w, http:\/\/blog.light42.com\/wordpress\/wp-content\/uploads\/2016\/11\/OSM_FresnoCS_mpoly_landuse_res_attr0-1024x586.png 1024w, http:\/\/blog.light42.com\/wordpress\/wp-content\/uploads\/2016\/11\/OSM_FresnoCS_mpoly_landuse_res_attr0.png 1203w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><a href=\"http:\/\/blog.light42.com\/wordpress\/wp-content\/uploads\/2016\/11\/OSM_FresnoCS_mpoly_landuse_res1.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.light42.com\/wordpress\/wp-content\/uploads\/2016\/11\/OSM_FresnoCS_mpoly_landuse_res1-300x171.png\" alt=\"osm_fresnocs_mpoly_landuse_res1\" width=\"300\" height=\"171\" class=\"aligncenter size-medium wp-image-2567\" srcset=\"http:\/\/blog.light42.com\/wordpress\/wp-content\/uploads\/2016\/11\/OSM_FresnoCS_mpoly_landuse_res1-300x171.png 300w, http:\/\/blog.light42.com\/wordpress\/wp-content\/uploads\/2016\/11\/OSM_FresnoCS_mpoly_landuse_res1-768x438.png 768w, http:\/\/blog.light42.com\/wordpress\/wp-content\/uploads\/2016\/11\/OSM_FresnoCS_mpoly_landuse_res1-1024x584.png 1024w, http:\/\/blog.light42.com\/wordpress\/wp-content\/uploads\/2016\/11\/OSM_FresnoCS_mpoly_landuse_res1.png 1203w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><a href=\"http:\/\/blog.light42.com\/wordpress\/wp-content\/uploads\/2016\/11\/OSM_FresnoCS_mpoly_landuse_res0.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.light42.com\/wordpress\/wp-content\/uploads\/2016\/11\/OSM_FresnoCS_mpoly_landuse_res0-300x172.png\" alt=\"osm_fresnocs_mpoly_landuse_res0\" width=\"300\" height=\"172\" class=\"aligncenter size-medium wp-image-2568\" srcset=\"http:\/\/blog.light42.com\/wordpress\/wp-content\/uploads\/2016\/11\/OSM_FresnoCS_mpoly_landuse_res0-300x172.png 300w, http:\/\/blog.light42.com\/wordpress\/wp-content\/uploads\/2016\/11\/OSM_FresnoCS_mpoly_landuse_res0-768x439.png 768w, http:\/\/blog.light42.com\/wordpress\/wp-content\/uploads\/2016\/11\/OSM_FresnoCS_mpoly_landuse_res0-1024x585.png 1024w, http:\/\/blog.light42.com\/wordpress\/wp-content\/uploads\/2016\/11\/OSM_FresnoCS_mpoly_landuse_res0.png 1193w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><em>Some Links:<\/em><br \/>\nhttps:\/\/help.github.com\/articles\/mapping-geojson-files-on-github\/<\/p>\n<p><a href=\"http:\/\/blog.light42.com\/wordpress\/wp-content\/uploads\/2016\/11\/Fresno_parcels_OSM_ex1.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.light42.com\/wordpress\/wp-content\/uploads\/2016\/11\/Fresno_parcels_OSM_ex1-300x176.png\" alt=\"fresno_parcels_osm_ex1\" width=\"300\" height=\"176\" class=\"aligncenter size-medium wp-image-2554\" srcset=\"http:\/\/blog.light42.com\/wordpress\/wp-content\/uploads\/2016\/11\/Fresno_parcels_OSM_ex1-300x176.png 300w, http:\/\/blog.light42.com\/wordpress\/wp-content\/uploads\/2016\/11\/Fresno_parcels_OSM_ex1-768x450.png 768w, http:\/\/blog.light42.com\/wordpress\/wp-content\/uploads\/2016\/11\/Fresno_parcels_OSM_ex1-1024x600.png 1024w, http:\/\/blog.light42.com\/wordpress\/wp-content\/uploads\/2016\/11\/Fresno_parcels_OSM_ex1.png 1177w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<pre>\r\n-- County of Fresno, subdivision Fresno geoid = '0601991080'\r\n--  multipolygons m is a raw dot-pbf import of OSM\r\n\r\n-- Qry - Show all landuse tags and a count of occurances\r\n--   area: Fresno CCD\r\n--\r\nselect count(*), all_tags -> 'landuse'  \r\nFROM multipolygons m,  tl_2016_06_cousub cs\r\nWHERE\r\n    cs.geoid = '0601991080'  AND\r\n    st_intersects( m.wkb_geometry, cs.geom) \r\nGROUP BY all_tags -> 'landuse' \r\nORDER BY  all_tags -> 'landuse';\r\n\r\n\/* count |   landuse tag    \r\n--------+-------------------\r\n     48 | basin\r\n     11 | cemetery\r\n   6644 | commercial\r\n      1 | construction\r\n    706 | farm\r\n     24 | farmland\r\n     43 | farmyard\r\n    109 | garages\r\n     28 | grass\r\n   3859 | industrial\r\n      1 | institutional\r\n      1 | landfill\r\n    453 | meadow\r\n    498 | orchard\r\n      2 | quarry\r\n      1 | railway\r\n     37 | recreation_ground\r\n     19 | religious\r\n      2 | reservoir\r\n 151670 | residential\r\n      6 | retail\r\n    574 | vineyard\r\n   6463 | \r\n*\/\r\n\r\n--=====================================================\r\n--\r\n--  Kern County - FIPS 029\r\n--  Fresno County - FIPS 019\r\n--\r\n\r\n-- Qry - Show CCDs and a count of tag landuse = 'residential'\r\n--   area: Fresno County, Kern County\r\n--\r\nselect count(*), (cs.geoid, cs.name, cs.countyfp)\r\nFROM multipolygons m, tl_2016_06_cousub cs\r\nWHERE\r\n    cs.countyfp IN ( '019', '029' )  AND\r\n    all_tags -> 'landuse' = 'residential'  AND\r\n    st_intersects( m.wkb_geometry, cs.geom) \r\nGROUP BY  (cs.geoid, cs.name, cs.countyfp)\r\nORDER BY   (cs.geoid, cs.name, cs.countyfp) ;\r\n\r\n\/*\r\n   1408 | (0601990390,\"Caruthers-Raisin City\",019)\r\n   2558 | (0601990530,Coalinga,019)\r\n   1170 | (0601991000,Firebaugh,019)\r\n   1541 | (0601991060,Fowler,019)\r\n 151670 | (0601991080,Fresno,019)\r\n           ...............\r\n     60 | (0602990130,Arvin-Lamont,029)\r\n    724 | (0602990180,Bakersfield,029)\r\n          ................\r\n   1096 | (0602993320,Tehachapi,029)\r\n    188 | (0602993570,Wasco,029)\r\n    715 | (0602993635,\"West Kern\",029)\r\n*\/\r\n\r\n--==================================================\r\n--\r\n-- Qry - Show all landuse tags and a count of occurances\r\n--   area: Fresno County, Kern County\r\n----\r\nselect count(*), all_tags -> 'landuse'  \r\nFROM multipolygons m, tl_2016_06_cousub cs\r\nWHERE\r\n    cs.countyfp IN ( '019', '029' )  AND\r\n    st_intersects( m.wkb_geometry, cs.geom) \r\nGROUP BY all_tags -> 'landuse' \r\nORDER BY  all_tags -> 'landuse';\r\n\r\n\/* count |  landuse tag        \r\n--------+-------------------------\r\n      1 | aerodrome\r\n     83 | basin\r\n     54 | cemetery\r\n  11107 | commercial\r\n      1 | conservation\r\n      1 | construction\r\n   5160 | farm\r\n   2426 | farmland\r\n   1034 | farmyard\r\n      5 | forest\r\n    268 | garages\r\n    885 | grass\r\n      1 | greenhouse_horticulture\r\n   5830 | industrial\r\n      1 | institutional\r\n      3 | landfill\r\n   3318 | meadow\r\n      4 | military\r\n   6519 | orchard\r\n     45 | quarry\r\n      3 | railway\r\n     86 | recreation_ground\r\n     19 | religious\r\n     19 | reservoir\r\n 201341 | residential\r\n     13 | retail\r\n     16 | scrub\r\n   5225 | vineyard\r\n 203195 | \r\n*\/\r\n\r\n--===================================================\r\n--\r\n-- Qry - Show all landuse tags and a count of occurances\r\n--   area: Bakersfield city, Kern County (similar to Fresno city )\r\n--\r\n\r\nselect count(*), all_tags -> 'landuse'  \r\nFROM multipolygons m, tl_2016_06_place p\r\nWHERE\r\n    p.namelsad = 'Bakersfield city'  AND\r\n    st_intersects( m.wkb_geometry, p.geom) \r\nGROUP BY all_tags -> 'landuse' \r\nORDER BY  all_tags -> 'landuse';\r\n\r\n\/* count |   landuse tag\r\n--------+-------------------\r\n      4 | cemetery\r\n    687 | commercial\r\n     78 | farm\r\n      3 | farmland\r\n     23 | farmyard\r\n    836 | grass\r\n    261 | industrial\r\n     52 | meadow\r\n     18 | orchard\r\n      1 | railway\r\n      8 | recreation_ground\r\n    710 | residential\r\n     16 | scrub\r\n 119669 | \r\n*\/\r\n\r\n--===================================================\r\n--\r\n-- Qry - Show all landuse tags and a count of occurances\r\n--   area: Fresno City\r\n--\r\n--\r\nselect count(*), all_tags -> 'landuse'  \r\nFROM multipolygons m, tl_2016_06_place p\r\nWHERE\r\n    p.namelsad = 'Fresno city'  AND\r\n    st_intersects( m.wkb_geometry, p.geom) \r\nGROUP BY all_tags -> 'landuse' \r\nORDER BY  all_tags -> 'landuse';\r\n\r\n\/* count |   landuse tag\r\n--------+-------------------\r\n     25 | basin\r\n      5 | cemetery\r\n   5523 | commercial\r\n      1 | construction\r\n     67 | farm\r\n      4 | farmland\r\n      4 | farmyard\r\n     65 | garages\r\n     12 | grass\r\n   2410 | industrial\r\n      1 | landfill\r\n    268 | meadow\r\n     45 | orchard\r\n      1 | railway\r\n     26 | recreation_ground\r\n     19 | religious\r\n      1 | reservoir\r\n 105930 | residential\r\n      5 | retail\r\n     15 | vineyard\r\n   5192 | \r\n*\/\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>In Openstreetmap US, California Fresno area, a controversial [0] series of imports of legal property records (aka PARCEL) are mixed in with other POLYGONS. Many various POLYGON in Fresno now share the tag landuse=residential, both the PARCEL legal records and real building footprint POLYGON, as well as various others. After reviewing the wiki talk page, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14,5,6],"tags":[],"_links":{"self":[{"href":"http:\/\/blog.light42.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/2553"}],"collection":[{"href":"http:\/\/blog.light42.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.light42.com\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.light42.com\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.light42.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2553"}],"version-history":[{"count":49,"href":"http:\/\/blog.light42.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/2553\/revisions"}],"predecessor-version":[{"id":2782,"href":"http:\/\/blog.light42.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/2553\/revisions\/2782"}],"wp:attachment":[{"href":"http:\/\/blog.light42.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2553"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.light42.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2553"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.light42.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2553"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}