Issue 15391

What WKT types does the geometry parameter accept

15391
Reporter: feedback bot
Assignee: kbraak
Type: Task
Summary: What WKT types does the geometry parameter accept
Priority: Major
Resolution: Fixed
Status: Closed
Created: 2014-03-17 22:03:58.657
Updated: 2014-07-04 17:58:02.281
Resolved: 2014-07-04 17:58:02.246
        
        
Description: Hello!

What WKT types does the geometry parameter accept? This search

http://api.gbif.org/v0.9/occurrence/search?geometry=MULTIPOLYGON((30%2010,%2010%2020,%2020%2060,%2060%2060,%2030%2010),(30%2010,%2010%2020,%2020%2060,%2060%2060,%2030%2010))

Doesn't work, and gives back

Invalid simple WKT: MULTIPOLYGON((30 10, 10 20, 20 60, 60 60, 30 10),(30 10, 10 20, 20 60, 60 60, 30 10))

I assume this means that MULTIPOLYGON is not an accepted WKT type? Is POLYGON the only accepted WKT type?

Thanks! Scott Chamberlain

*Reporter*: Scott Chamberlain
*E-mail*: [mailto:scott@ropensci.org]]]>
    


Author: fmendez@gbif.org
Comment: Only  POINT,LINESTRING,LINEARRING and POLYGON are accepted.
Created: 2014-03-20 16:50:19.465
Updated: 2014-03-20 16:50:19.465


Author: kbraak@gbif.org
Comment: Question answered. Thanks [~fmendez@gbif.org]
Created: 2014-03-20 16:56:17.974
Updated: 2014-03-20 16:56:17.974


Author: mdoering@gbif.org
Comment: We need to document that in our API pages
Created: 2014-03-20 21:14:32.92
Updated: 2014-03-20 21:14:32.92


Author: kbraak@gbif.org
Created: 2014-06-30 16:38:40.817
Updated: 2014-06-30 16:38:40.817
        
Change committed: https://github.com/gbif/portal-web/commit/38e8d92aeeca16b9c7e37f038b854d6b78d0afd1

Please review text and close issue.
    


Author: kbraak@gbif.org
Comment: Done.
Created: 2014-07-04 17:58:02.269
Updated: 2014-07-04 17:58:02.269