How to Visualize and Analyze Building Heights with Google Earth Engine

แชร์
ฝัง
  • เผยแพร่เมื่อ 30 ม.ค. 2025

ความคิดเห็น • 7

  • @surbhat
    @surbhat หลายเดือนก่อน

    Nice tutorial. how to export building footprint data with height?

    • @techhive.2023
      @techhive.2023  หลายเดือนก่อน

      // Load a building footprint dataset (example: Microsoft or OSM via GEE)
      var buildingFootprints = ee.FeatureCollection("TIGER/2016/Buildings");
      // Load DSM and DTM (example using Copernicus)
      var dsm = ee.Image("COPERNICUS/DEM/GLO30");
      var dtm = ee.Image("USGS/NED");
      // Calculate building height (DSM - DTM)
      var buildingHeight = dsm.subtract(dtm).rename('height');
      // Add height to building footprints
      var buildingsWithHeight = buildingFootprints.map(function(feature) {
      var height = buildingHeight.reduceRegion({
      reducer: ee.Reducer.mean(),
      geometry: feature.geometry(),
      scale: 30,
      }).get('height');
      return feature.set('height', height);
      });
      // Export to a CSV
      Export.table.toDrive({
      collection: buildingsWithHeight,
      description: "Building_Height_Export",
      fileFormat: "CSV"
      });

    • @surbhat
      @surbhat หลายเดือนก่อน

      Thank you for the GEE Code

    • @surbhat
      @surbhat หลายเดือนก่อน

      I got this error message Collection.loadTable: Collection asset 'TIGER/2016/Buildings' not found. Please help me in downloading building height google building data . Thanks

    • @techhive.2023
      @techhive.2023  หลายเดือนก่อน

      @@surbhat The error you’re encountering indicates that the asset ID TIGER/2016/Buildings doesn't exist or is inaccessible in Google Earth Engine. This may be due to an incorrect asset ID or the dataset no longer being available.

  • @kamyarlotfi-k7k
    @kamyarlotfi-k7k หลายเดือนก่อน

    unfortunately this product doesn't support Iran