Checking for non-preferred file/folder path names (may take a long time depending on the number of files/folders) ...
This resource contains some files/folders that have non-preferred characters in their name. Show non-conforming files/folders.
This resource contains content types with files that need to be updated to match with metadata changes. Show content type files that need updating.
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: | 154 |
Downloads: | 85 |
+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
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.
Data Services
Related Geospatial Features
This HydroShare resource is linked to the following geospatial features
Learn more about Related Geospatial Features
We highly recommend that you add Spatial Coverage to this resource before searching for related geospatial features. Otherwise query times can be excessive.
${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 |
Title | Owners | Sharing Status | My Permission |
---|---|---|---|
Use Case Examples for CUAHSI Subsetter Tool | Irene Garousi-Nejad | Public & Shareable | Open Access |
How to Cite
This resource is shared under the Creative Commons Attribution CC BY.
http://creativecommons.org/licenses/by/4.0/
Comments
There are currently no comments
New Comment