Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to return only identifiers or different realizations of a catchment. #20

Open
dblodgett-usgs opened this issue Aug 11, 2016 · 2 comments

Comments

@dblodgett-usgs
Copy link
Member

Would like to get back the json data without the geo part. Not sure what the API should look like for this, but seems like a simple thing to offer.

@dblodgett-usgs
Copy link
Member Author

dblodgett-usgs commented Aug 11, 2016

Currently, a featureSource just returns its key information and a link to its navigation end point.

We should also list endpoints for:

  • .../{featureID}/ids return a list of all associated feature API URLs from all feature source tables.
  • .../{featureID}/local exists as the local catchment characteristics
  • .../{featureID}/tot exists as the total catchment characteristics
  • .../{featureID}/div exists as the divergence routed catchment characteristics
  • .../{featureID}/basin exists as the basin endpoint
  • .../{featureID}/flowline would return the flowline for just the current feature
  • .../{featureID}/catchment would return the catchment polygon for the current feature
  • .../{featureID}/navigation/comid would return a list of comids without any additional data

e.g.

{
	"type": "FeatureCollection",
	"features": [
		{
			"type": "Feature",
			"geometry": {
				"type": "Point",
				"coordinates": [
					-89.2203937,
					42.9197239
				]
			},
			"properties": {
				"type": "hydrolocation",
				"source": "nwissite",
				"sourceName": "NWIS Surface Water Sites",
				"identifier": "USGS-05429700",
				"name": "YAHARA RIVER @ FORTON STREET BRIDGE @ STOUGHTON,WI",
				"uri": "https://waterdata.usgs.gov/monitoring-location/05429700",
				"comid": "13297194",
				"reachcode": "07090002007368",
				"measure": "76.9593300000",
				"navigation": "https://labs.waterdata.usgs.gov/api/nldi/linked-data/nwissite/USGS-05429700/navigation",
				"linked_ids": "https://labs.waterdata.usgs.gov/api/nldi/linked-data/nwissite/USGS-05429700/ids",
				"local_attributes": "https://labs.waterdata.usgs.gov/api/nldi/linked-data/nwissite/USGS-05429700/local",
				"total_attributes": "https://labs.waterdata.usgs.gov/api/nldi/linked-data/nwissite/USGS-05429700/tot",
				"divergence_attributes": "https://labs.waterdata.usgs.gov/api/nldi/linked-data/nwissite/USGS-05429700/div",
				"basin": "https://labs.waterdata.usgs.gov/api/nldi/linked-data/nwissite/USGS-05429700/basin",
				"flowline": "https://labs.waterdata.usgs.gov/api/nldi/linked-data/nwissite/USGS-05429700/flowline",
				"catchment": "https://labs.waterdata.usgs.gov/api/nldi/linked-data/nwissite/USGS-05429700/catchment"
			}
		}
	]
}

@dblodgett-usgs dblodgett-usgs changed the title Option to return only identifiers. Option to return only identifiers or different realizations of a catchment. Oct 30, 2020
@dblodgett-usgs dblodgett-usgs added this to the Summer 2021 milestone Jun 22, 2021
@dblodgett-usgs dblodgett-usgs modified the milestones: Priority, Spring 2022 May 4, 2022
@EthanGrahn
Copy link

If we want to match the OGC API specification, it looks like these links would go into a links JSON array at the top level of the feature. http://opengeospatial.github.io/e-learning/ogcapi-features/text/operations.html#feature

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

No branches or pull requests

2 participants