CRREL / GRiD-API

9 stars 3 forks source link

Create AOI with coordinate + buffer #49

Open AlexMountain opened 5 years ago

AlexMountain commented 5 years ago

Right now the only way to create an AOI with with a POLYGON WKT string. We should support AOI creation with a coord + buffer value using POINT and LINESTRING WKTs.

hobu commented 5 years ago

GeoJSON?

AlexMountain commented 5 years ago

GeoJSON looks nice and formatted but adding it now to solve this problem doesn't jive as well with the current way we're taking in AOI geoms. If developers would find GeoJSON support helpful for them we could definitely considering adding it as an alternative. For the time being this is the supported changes going into 1.4.7:

- name: geom
      in: formData
      description: A WKT geometry describing the AOI. Supports POLYGON natively, POINT and LINESTRING with a buffer parameter.
      required: true
      type: string
- name: buffer
      in: formData
      description: A buffer radius in meters for POINT or LINESTRING geom WKTs.
      required: false
      type: float