Skip to content

aragong/coastline-loader

Repository files navigation

Coastline-loader

  • GetCoastline (class) - Load coastlines from GSHHS database to GeoDataFrame.
  • .to_dataframe() (method) - Convert GeoDataFrame to standard DataFrame.

🏠 Installation

  1. Clone this repository to your local machine and install the conda environment defined in environment.yml. You can use pip or directly conda usinge the next command:

    conda create --file environment.yml
  2. Download GSHHS database (shapefile) from GSHHC web-site or directly using this link.

  3. Extract content of the compressed file downloaded.

  4. Set path to folder "gshhg-gmt-2.3.7" folder in .env file.

# Add variable GSHHG_SHP_DATABASE_PATH to ".env" file using terminal or directly modify file ".env"
dotenv set GSHHG_SHP_DATABASE_PATH  /your/path/

✔️ Tests:


🚀 Examples:


❔ More info

For more information about this database, resolutions and layers... please check GSHHC web-site.


©️ Credits

Developed by 👨‍💻 German Aragon @ 🏢 IHCantabria.