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

Support filter tree by geo polygon #387

Open
dadiorchen opened this issue Dec 19, 2024 · 1 comment · May be fixed by #388
Open

Support filter tree by geo polygon #387

dadiorchen opened this issue Dec 19, 2024 · 1 comment · May be fixed by #388

Comments

@dadiorchen
Copy link
Contributor

As defined here:

- schema:
type: string
in: query
name: area
description: Filter by geojson area

we need a parameter in the GET /trees api that we can filter data by geojson, something like this:

{
  "type": "FeatureCollection",
  "features": [
    {
      "type": "Feature",
      "geometry": {
        "type": "Polygon", // or "MultiPolygon"
        "coordinates": [
          [
            [longitude1, latitude1],
            [longitude2, latitude2],
            [longitude3, latitude3],
            [longitude1, latitude1] // Closing the polygon
          ]
        ]
      },
      "properties": {
        "name": "Area Name",
        "description": "Description of the area"
      }
    }
  ]
}

Some hints:

  • Please read our readme for more information/guide/tutorial.
  • Here is an engineering book in Greenstand.
  • To know more about our organization, visit our website.
  • If you want to join the slack community (some resources need the community member's permission), please leave your email address.
@dadiorchen
Copy link
Contributor Author

@dagmawig dagmawig linked a pull request Dec 27, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant