Skip to content

noah landslide vector maps cannot be read #16

Description

@ricsatjr
  1. downloaded geojson.zip files from open-hazards-ph
  2. tried to open individual files using geopandas read_file (which can read zip files).
  3. some files successfully return a geodataframe, other files return an empty geodataframes.
  4. Tried opening the geojson files in QGIS 3.20, all files are loading in the layer panel, but some do not have features and attributes.
  5. Cases checked for both QGIS and geopandas: Catanduanes landslide vector file cannot be opened and read, whereas Camiguin can be successfully opened and read.

python code:
for fname in glob.glob('*.zip'):
try:
gdf=gpd.read_file(fname)

    if len(gdf)==0:
        print("EMPTY FILE ",fname)
    else:
        print(len(gdf)," ",fname)
except:
    print("ERROR READ FILE ",fname)

sample output:
EMPTY FILE AgusanDelNorte_LandslideHazards.shp.geojson.zip
3 Sulu_LandslideHazards.shp.geojson.zip
EMPTY FILE Ifugao_LandslideHazards.shp.geojson.zip
EMPTY FILE Capiz_LandslideHazards.shp.geojson.zip
EMPTY FILE Zambales_LandslideHazards.shp.geojson.zip
EMPTY FILE Samar_LandslideHazards.shp.geojson.zip
EMPTY FILE Bukidnon_LandslideHazards.shp.geojson.zip
EMPTY FILE Rizal_LandslideHazards.shp.geojson.zip
3 TawiTawi_LandslideHazards.shp.geojson.zip
3 MetroManila_LandslideHazards.shp.geojson.zip
EMPTY FILE Sorsogon_LandslideHazards.shp.geojson.zip

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions