Polygons represent your field boundaries and are the foundation of every analysis. This page covers all polygon operations: creation, retrieval, activation, and deletion.
Use generatePolygon() to register a new field boundary. Coordinates must be in GeoJSON format: [longitude, latitude] pairs, with the first and last coordinate being identical to close the ring.
Get information about a specific polygon by its ID:
Retrieve all polygons belonging to a specific benefactor:
Polygons can be activated or deactivated to control whether they are available for analysis:
Remove a polygon permanently. The polygon must be inactive before it can be deleted.
Warning: Deleted polygons are fully removed after 3 months. During this period, associated data may still be accessible. Only inactive polygons can be deleted.
Use calculatePlotMeasurements() to validate coordinates before creating a polygon. This returns the area and perimeter without registering anything.
Tip: Always validate coordinates with calculatePlotMeasurements() before registering. This helps catch coordinate order mistakes and ensures the polygon area is within API limits.
Integrer satellittanalyse i din egen plattform. Plantehelse, vannstress, protein og mer — levert via et enkelt GraphQL-endepunkt.
Utforsk API-dokumentasjonVi bygger din MVP fra idé til lansering. Fastpris, hosting inkludert, og du eier alt. Teknologien bak Agdir — til din tjeneste.
Les mer om MVP-tjenesten