Skip to content

Commit 5606d01

Browse files
committed
quote URL and fix example
1 parent 0e89ab1 commit 5606d01

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

notebooks/usage_guide.ipynb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2598,7 +2598,7 @@
25982598
"| --------------- | --------- | ------------------------ |\n",
25992599
"| scientificname | String, Array| One or more scientific names from the OBIS backbone. All included and synonym taxa are included in the search. Leave empty to include all taxa. |\n",
26002600
"|taxonid| Fixnum| A obis occurrence identifier|\n",
2601-
"| geometry| String| Well Known Text (WKT). A WKT shape written as either POINT, LINESTRING, LINEARRING or POLYGON. Example of a polygon: ((30.1 10.1, 20, 20 40, 40 40, 30.1 10.1)) would be queried as https://api.gbif.org/v1/occurrence/search?geometry=POLYGON((30.1 10.1, 10 20, 20 40, 40 40, 30.1 10.1))|\n",
2601+
"| geometry| String| Well Known Text (WKT). A WKT shape written as either POINT, LINESTRING, LINEARRING or POLYGON. Example of a polygon: ((30.1 10.1, 10 20, 20 40, 40 40, 30.1 10.1)) would be queried as https://api.gbif.org/v1/occurrence/search?geometry=POLYGON%28%2830.1+10.1%2C+10+20%2C+20+40%2C+40+40%2C+30.1+10.1%29%29|\n",
26022602
"| nodeid| Fixnum| Node UUID.|\n",
26032603
"| startdate| String| Start date YYYY-MM-DD|\n",
26042604
"| enddate| String | End date YYYY-MM-DD|\n",
@@ -2850,7 +2850,7 @@
28502850
"| scientificname | String, Array| One or more scientific names from the OBIS backbone. All included and synonym taxa are included in the search. Leave empty to include all taxa. |\n",
28512851
"|taxonid| Fixnum| A obis occurrence identifier|\n",
28522852
"| nodeid| Fixnum| Node UUID.|\n",
2853-
"| geometry| String| Well Known Text (WKT). A WKT shape written as either POINT, LINESTRING, LINEARRING or POLYGON. Example of a polygon: ((30.1 10.1, 20, 20 40, 40 40, 30.1 10.1)) would be queried as https://api.gbif.org/v1/occurrence/search?geometry=POLYGON((30.1 10.1, 10 20, 20 40, 40 40, 30.1 10.1))|\n",
2853+
"| geometry| String| Well Known Text (WKT). A WKT shape written as either POINT, LINESTRING, LINEARRING or POLYGON. Example of a polygon: ((30.1 10.1, 10 20, 20 40, 40 40, 30.1 10.1)) would be queried as https://api.gbif.org/v1/occurrence/search?geometry=POLYGON%28%2830.1+10.1%2C+10+20%2C+20+40%2C+40+40%2C+30.1+10.1%29%29|\n",
28542854
"| startdate| String| Start date YYYY-MM-DD|\n",
28552855
"| enddate| String | End date YYYY-MM-DD|\n",
28562856
"| startdepth| Fixnum| Start depth, in meters. Depth below sea level are treated as positive numbers.|\n",
@@ -3090,7 +3090,7 @@
30903090
"| scientificname | String, Array| One or more scientific names from the OBIS backbone. All included and synonym taxa are included in the search. Leave empty to include all taxa. |\n",
30913091
"|taxonid| Fixnum| A obis occurrence identifier|\n",
30923092
"| nodeid| Fixnum| Node UUID.|\n",
3093-
"| geometry| String| Well Known Text (WKT). A WKT shape written as either POINT, LINESTRING, LINEARRING or POLYGON. Example of a polygon: ((30.1 10.1, 20, 20 40, 40 40, 30.1 10.1)) would be queried as https://api.gbif.org/v1/occurrence/search?geometry=POLYGON((30.1 10.1, 10 20, 20 40, 40 40, 30.1 10.1))|\n",
3093+
"| geometry| String| Well Known Text (WKT). A WKT shape written as either POINT, LINESTRING, LINEARRING or POLYGON. Example of a polygon: ((30.1 10.1, 10 20, 20 40, 40 40, 30.1 10.1)) would be queried as https://api.gbif.org/v1/occurrence/search?geometry=POLYGON%28%2830.1+10.1%2C+10+20%2C+20+40%2C+40+40%2C+30.1+10.1%29%29|\n",
30943094
"| startdate| String| Start date YYYY-MM-DD|\n",
30953095
"| enddate| String | End date YYYY-MM-DD|\n",
30963096
"| startdepth| Fixnum| Start depth, in meters. Depth below sea level are treated as positive numbers.|\n",
@@ -3344,7 +3344,7 @@
33443344
"|taxonid|Fixnum| A obis Taxon AphiaID.|\n",
33453345
"| scientificname|String, Array| One or more scientific names from the OBIS backbone. All included and synonym taxa are included in the search.|\n",
33463346
"| year|Fixnum| The 4 digit year. A year of 98 will be interpreted as AD 98. Supports range queries, smaller,larger (e.g., '1990,1991', whereas '1991,1990' wouldn't work)|\n",
3347-
"| geometry|String| Well Known Text (WKT). A WKT shape written as either POINT, LINESTRING, LINEARRING or POLYGON. Example of a polygon: ((30.1 10.1, 20, 20 40, 40 40, 30.1 10.1)) would be queried as https://api.gbif.org/v1/occurrence/search?geometry=POLYGON((30.1 10.1, 10 20, 20 40, 40 40, 30.1 10.1)). Geometry, formatted as WKT or GeoHash.|\n",
3347+
"| geometry|String| Well Known Text (WKT). A WKT shape written as either POINT, LINESTRING, LINEARRING or POLYGON. Example of a polygon: ((30.1 10.1, 10 20, 20 40, 40 40, 30.1 10.1)) would be queried as https://api.gbif.org/v1/occurrence/search?geometry=POLYGON%28%2830.1+10.1%2C+10+20%2C+20+40%2C+40+40%2C+30.1+10.1%29%29. Geometry, formatted as WKT or GeoHash.|\n",
33483348
"| nodeid|Fixnum| Node UUID.|\n",
33493349
"| startdate|Fixnum| Start date|\n",
33503350
"| enddate|Boolean| End date|\n",
@@ -4817,7 +4817,7 @@
48174817
"name": "python",
48184818
"nbconvert_exporter": "python",
48194819
"pygments_lexer": "ipython3",
4820-
"version": "3.11.8"
4820+
"version": "3.12.2"
48214821
},
48224822
"vscode": {
48234823
"interpreter": {

pyobis/checklist/checklist.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,8 @@ def list(
132132
:param geometry: [String] Well Known Text (WKT). A WKT shape written as
133133
either POINT, LINESTRING, LINEARRING
134134
or POLYGON.
135-
Example of a polygon: ((30.1 10.1, 20, 20 40, 40 40, 30.1 10.1)) would
136-
be queried as https://api.gbif.org/v1/occurrence/search?geometry=POLYGON((30.1 10.1, 10 20, 20 40, 40 40, 30.1 10.1))
135+
Example of a polygon: (30.1 10.1, 10 20, 20 40, 40 40, 30.1 10.1) would
136+
be queried as https://api.gbif.org/v1/occurrence/search?geometry=POLYGON%28%2830.1+10.1%2C+10+20%2C+20+40%2C+40+40%2C+30.1+10.1%29%29
137137
:param nodeid: [Fixnum] Node UUID.
138138
:param startdate: [String] Start date YYYY-MM-DD
139139
:param enddate: [String] End date YYYY-MM-DD

pyobis/dataset/dataset.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ def search(
3434
:param geometry: [String] Well Known Text (WKT). A WKT shape written as
3535
either POINT, LINESTRING, LINEARRING
3636
or POLYGON.
37-
Example of a polygon: ((30.1 10.1, 20, 20 40, 40 40, 30.1 10.1)) would
38-
be queried as https://api.gbif.org/v1/occurrence/search?geometry=POLYGON((30.1 10.1, 10 20, 20 40, 40 40, 30.1 10.1)). Geometry, formatted as WKT or
37+
Example of a polygon: ((30.1 10.1, 10 20, 20 40, 40 40, 30.1 10.1)) would
38+
be queried as https://api.gbif.org/v1/occurrence/search?geometry=POLYGON%28%2830.1+10.1%2C+10+20%2C+20+40%2C+40+40%2C+30.1+10.1%29%29. Geometry, formatted as WKT or
3939
GeoHash.
4040
:param nodeid: [Fixnum] Node UUID.
4141
:param startdate: [Fixnum] Start date

pyobis/occurrences/occurrences.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,8 +251,8 @@ def search(
251251
:param geometry: [String] Well Known Text (WKT). A WKT shape written
252252
as either POINT, LINESTRING, LINEARRING
253253
or POLYGON.
254-
Example of a polygon: ((30.1 10.1, 20, 20 40, 40 40, 30.1 10.1)) would
255-
be queried as https://api.gbif.org/v1/occurrence/search?geometry=POLYGON((30.1 10.1, 10 20, 20 40, 40 40, 30.1 10.1))
254+
Example of a polygon: ((30.1 10.1, 10 20, 20 40, 40 40, 30.1 10.1)) would
255+
be queried as https://api.gbif.org/v1/occurrence/search?geometry=POLYGON%28%2830.1+10.1%2C+10+20%2C+20+40%2C+40+40%2C+30.1+10.1%29%29
256256
:param nodeid: [String] Node UUID
257257
:param taxonid: Prev. aphiaid [Fixnum] An Aphia id. This is listed as
258258
the `worms_id` in `taxa`/`taxon` results

0 commit comments

Comments
 (0)