Skip to content

Commit

Permalink
DOC: Add methods manually to classes that inheret from AGRBase. [skip…
Browse files Browse the repository at this point in the history
… ci]
  • Loading branch information
Taher Chegini committed Sep 22, 2023
1 parent 2185a0a commit 308c90b
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions pynhd/pynhd.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,16 @@ class NHD(AGRBase):
outfields : str or list, optional
Target field name(s), default to "*" i.e., all the fields.
crs : str, int, or pyproj.CRS, optional
Target spatial reference, default to ``EPSG:4326``
Target spatial reference, default to ``EPSG:4326``.
Methods
-------
bygeom(geom, geo_crs=4326, sql_clause="", distance=None, return_m=False, return_geom=True)
Get features within a geometry that can be combined with a SQL where clause.
byids(field, fids, return_m=False, return_geom=True)
Get features by object IDs.
bysql(sql_clause, return_m=False, return_geom=True)
Get features using a valid SQL 92 WHERE clause.
"""

def __init__(
Expand Down Expand Up @@ -597,7 +606,16 @@ class NHDPlusHR(AGRBase):
outfields : str or list, optional
Target field name(s), default to "*" i.e., all the fields.
crs : str, int, or pyproj.CRS, optional
Target spatial reference, default to ``EPSG:4326``
Target spatial reference, default to ``EPSG:4326``.
Methods
-------
bygeom(geom, geo_crs=4326, sql_clause="", distance=None, return_m=False, return_geom=True)
Get features within a geometry that can be combined with a SQL where clause.
byids(field, fids, return_m=False, return_geom=True)
Get features by object IDs.
bysql(sql_clause, return_m=False, return_geom=True)
Get features using a valid SQL 92 WHERE clause.
"""

def __init__(
Expand Down

0 comments on commit 308c90b

Please sign in to comment.