Checking for non-preferred file/folder path names (may take a long time depending on the number of files/folders) ...

Extract Domain Boundaries from Geographical Features and Transform into Specified Projection Systems Using Python


Authors:
Owners: This resource does not have an owner who is an active HydroShare user. Contact CUAHSI (help@cuahsi.org) for information on this resource.
Type: Resource
Storage: The size of this resource is 4.2 MB
Created: Sep 27, 2024 at 4:25 p.m.
Last updated: Sep 30, 2024 at 8:06 p.m.
Citation: See how to cite this resource
Content types: Geographic Feature Content 
Sharing Status: Public
Views: 91
Downloads: 68
+1 Votes: Be the first one to 
 this.
Comments: No comments (yet)

Abstract

This resource provides a Jupyter notebook demonstrating how to use GeoPandas and Shapely in Python to extract bounding box information from a shapefile or GeoJSON file. It ensures that the returned values are in a specified projection system, regardless of whether the original file uses a geographic or projected coordinate system. Users can adjust the parameters in the notebook to fit their specific use case. In this example, the parameters are based on the Kings River Watershed in California, with the target projection system being Lambert Conformal Conic, as used in National Water Model versions 1-3.

Subject Keywords

Coverage

Spatial

Coordinate System/Geographic Projection:
WGS 84 EPSG:4326
Coordinate Units:
Decimal degrees
North Latitude
37.1766°
East Longitude
-119.0078°
South Latitude
36.9015°
West Longitude
-119.2056°

Content

readme.md

Tree-like Structure of the Content of this Resource

  • Root Folder
    • ├── readme.md
    • ├── compute_domain_bounding_box.ipynb
    • ├── data
      • ├── DinkeyCreekWatershed
      • ├── DinkeyCreekCatchments
      • ├── DinkeyCreekWatershed_geocoords
      • ├── DinkeyCreekCatchments_geocoords
      • ├── DinkeyCreekWatershed.geojson
      • ├── DinkeyCreekCatchments.geojson
      • ├── DinkeyCreekWatershed_geocoords.geojson
      • └── DinkeyCreekCatchments_geocoords.geojson
    • └── KingsRiver.png

Detailed Information and Explanation

  • readme.md: Explains the content of this HydroShare resource.
  • compute_domain_bounding_box.ipynb: A Jupyter notebook containing code for extracting bounding box information from shapefile or GeoJSON inputs. The notebook is divided into two sections: Section A covers inputs with a projected coordinate system, and Section B addresses inputs using a geographic coordinate system without projection.
  • DinkeyCreekWatershed.shp: HUC10 Dinkey Creek Watershed shapefile with a single feature geometry in the WGS84 Mercator projection, storing CRS information. Used in Section A.1 of the notebook.
  • DinkeyCreekCatchments.shp: HUC12 Dinkey Creek Watershed catchments shapefile with multiple feature geometries in the WGS84 Mercator projection, storing CRS information. Used in Section A.3 of the notebook.
  • DinkeyCreekWatershed_geocoords.shp: HUC10 Dinkey Creek Watershed shapefile with a single feature geometry in the WGS84 geographic coordinate system, storing CRS information. Used in Section B.1.
  • DinkeyCreekCatchments_geocoords.shp: HUC12 Dinkey Creek Watershed catchments shapefile with multiple geometries in the WGS84 geographic coordinate system, storing CRS information. Used in Section B.3.
  • DinkeyCreekWatershed.geojson: HUC10 Dinkey Creek Watershed GeoJSON with a single feature geometry in the WGS84 Mercator projection, without CRS information. Used in Section A.2.
  • DinkeyCreekCatchments.geojson: HUC12 Dinkey Creek catchments GeoJSON with multiple feature geometries in the WGS84 Mercator projection, without CRS information. Used in Section A.4.
  • DinkeyCreekWatershed_geocoords.geojson: HUC10 Dinkey Creek Watershed GeoJSON with a single feature geometry in the WGS84 geographic coordinate system, without CRS information. Used in Section B.2.
  • DinkeyCreekCatchments_geocoords.geojson: HUC12 Dinkey Creek catchments GeoJSON with multiple geometries in the WGS84 geographic coordinate system, without CRS information. Used in Section B.4.
  • KingsRiver.png: The map of the Kings River Watershed shown below, highlighting the Dinkey Creek head watershed and its sub-catchments.
Kings River Watershed

Data Services

The following web services are available for data contained in this resource. Geospatial Feature and Raster data are made available via Open Geospatial Consortium Web Services. The provided links can be copied and pasted into GIS software to access these data. Multidimensional NetCDF data are made available via a THREDDS Data Server using remote data access protocols such as OPeNDAP. Other data services may be made available in the future to support additional data types.

Related Geospatial Features

This HydroShare resource is linked to the following geospatial features

${ messageObj.message }
${value.text} ${value.text}

Click a point to search for features that overlap with that location.

Select a feature for more information.

Related Resources

The content of this resource can be executed by Castronova, A. (2024). CIROH JupyterHub, HydroShare, http://www.hydroshare.org/resource/2dd1ac86e8854d4fb9fe5fbafaec2b98
The content of this resource references https://services.arcgis.com/P3ePLMYs2RVChkJx/arcgis/rest/services/Watershed_Boundary_Dataset_HUC_8s/FeatureServer
The content of this resource references https://services.arcgis.com/P3ePLMYs2RVChkJx/arcgis/rest/services/Watershed_Boundary_Dataset_HUC_10s/FeatureServer
The content of this resource references https://services.arcgis.com/P3ePLMYs2RVChkJx/arcgis/rest/services/Watershed_Boundary_Dataset_HUC_12s/FeatureServer
The content of this resource can be executed by Castronova, A. (2024). CUAHSI JupyterHub, HydroShare, http://www.hydroshare.org/resource/33c45575b95f45c4bf7335faab67ed36
This resource belongs to the following collections:
Title Owners Sharing Status My Permission
Use Case Examples for CUAHSI Subsetter Tool Irene Garousi-Nejad  Public &  Shareable Open Access

How to Cite

Garousi-Nejad, I., A. M. Castronova (2024). Extract Domain Boundaries from Geographical Features and Transform into Specified Projection Systems Using Python, HydroShare, http://www.hydroshare.org/resource/5ea06ebdaa2a4f2dbdd14b4ddc989ca6

This resource is shared under the Creative Commons Attribution CC BY.

http://creativecommons.org/licenses/by/4.0/
CC-BY

Comments

There are currently no comments

New Comment

required