Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

entire grids with missing buildings in building footprints #357

Open
virgilxw opened this issue Jun 5, 2024 · 1 comment
Open

entire grids with missing buildings in building footprints #357

virgilxw opened this issue Jun 5, 2024 · 1 comment

Comments

@virgilxw
Copy link

virgilxw commented Jun 5, 2024

Hi - it seems there are large numbers of missing buildings from the Netherlands in the buildings-footprint dataset

catalog = pystac_client.Client.open(
    
<img width="470" alt="Screenshot 2024-06-05 at 08 51 15" src="https://github.com/microsoft/PlanetaryComputer/assets/14037656/36807ef2-d8da-4786-a13f-5caf4e4a3737">
  "https://planetarycomputer.microsoft.com/api/stac/v1",
      modifier=planetary_computer.sign_inplace,
  )
  collection = catalog.get_collection("ms-buildings")
  
  asset = collection.assets["delta"]
  
  storage_options = {
      "account_name": asset.extra_fields["table:storage_options"]["account_name"],
      "sas_token": asset.extra_fields["table:storage_options"]["credential"],
  }
  table = deltalake.DeltaTable(asset.href, storage_options=storage_options)
  
  quadkeys = [
      int(mercantile.quadkey(tile))
      for tile in mercantile.tiles(*buffer[0].bounds, zooms=9)
  ]
  quadkeys
  
  file_uris = table.file_uris([("RegionName", "=", "Netherlands")])
  df = pd.concat(
      [
          gpd.read_parquet(file_uri, storage_options=storage_options)
          for file_uri in file_uris
      ]
  )
@777arc
Copy link
Contributor

777arc commented Nov 8, 2024

@virgilxw apologies for the delay, before we dive into this issue is there any additional information you have found over the last few months?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants