Skip to content

do-me/flatgeobuf-viewer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FlatGeobuf Viewer

Live Demo

A fast, simple, client-side web application to visualize FlatGeobuf (.fgb) files directly in your browser.

Screenshot of the FlatGeobuf Viewer application

Features

  • Drag & Drop: Easily load .fgb files from your local machine.
  • Feature Inspection: Click on any feature to view its properties in a popup.
  • Metadata Viewer: See the file's header metadata, including CRS, geometry type, and schema.
  • Data Statistics: Get a quick overview of the feature count and geometry type.
  • Dark Mode: Toggle between light and dark themes for comfortable viewing.
  • Client-Side Processing: Your data stays on your machine. No uploads, no waiting.
  • Responsive Design: Works on both desktop and mobile devices.

How to Use

  1. Open the Live Demo: https://do-me.github.io/flatgeobuf-viewer/
  2. Load Data:
    • Drag and drop a .fgb file anywhere on the page.
    • OR, click the "Load Data" box to browse for a file on your computer.
  3. Explore: The map will automatically zoom to your data's extent and display the features.

A default dataset is loaded on startup for demonstration.

Data

import geopandas as gpd
gdf = gpd.read_file("NUTS_RG_01M_2024_3857.geojson")
gdf[
    (gdf["CNTR_CODE"].isin(["IT","DE","AT","CH","HR","SI","MC","SM","FR", "LI"])) & # random list of countries
    (gdf["LEVL_CODE"] == 3)
    ].to_crs("4326").to_file("EU_NUTS3_01M.fgb")

Technology Stack

Credits and Acknowledgements

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

A simple web-based app for viewing and inspecting flatgeobuf files (.fgb).

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published