Formatting GeoJSON for TradeAware Application Uploads
The following guide is designed to assist you in structuring your .geoJSON files correctly for successful uploads to the TradeAware platform.
What kind of geometries are accepted?
The system currently accepts Points, Polygons, and MultiPolygons in GeoJSON format. Other geometry types (e.g., LineStrings, MultiPoints, GeometryCollections) are not currently supported in the web application. If your file contains unsupported types, you will need to convert or simplify the geometry.
What properties are required?
For each plot, only two properties are required:
"name": a unique name for each plot"commodities": a list of one or more relevant commodities
These must be placed inside the properties block of each feature in your GeoJSON file.
Example 1: Uploading Points
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [30.713200, 2.194000]
},
"properties": {
"name": "Plot A",
"commodities": ["cocoa"]
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [30.760500, 2.163800]
},
"properties": {
"name": "Plot B",
"commodities": ["rubber"]
}
}
]
}Example 2: Uploading Polygons
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"geometry": {
"type": "Polygon",
"coordinates": [
[
[30.715000, 2.195000],
[30.717000, 2.195000],
[30.717000, 2.197000],
[30.715000, 2.197000],
[30.715000, 2.195000]
]
]
},
"properties": {
"name": "Plot C",
"commodities": ["cattle"]
}
}
]
}Example 3: Uploading MultiPolygons
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"geometry": {
"type": "MultiPolygon",
"coordinates": [
[
[
[30.720000, 2.200000],
[30.740000, 2.200000],
[30.740000, 2.220000],
[30.720000, 2.220000],
[30.720000, 2.200000]
]
],
[
[
[30.750000, 2.230000],
[30.770000, 2.230000],
[30.770000, 2.250000],
[30.750000, 2.250000],
[30.750000, 2.230000]
]
]
]
},
"properties": {
"name": "Plot D",
"commodities": ["timber"]
}
}
]
}
Example 4: Uploading both Points and Polygons (Mixed)
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [30.713200, 2.194000]
},
"properties": {
"name": "Plot E",
"commodities": ["rubber"]
}
},
{
"type": "Feature",
"geometry": {
"type": "Polygon",
"coordinates": [
[
[30.716000, 2.196000],
[30.718000, 2.196000],
[30.718000, 2.198000],
[30.716000, 2.198000],
[30.716000, 2.196000]
]
]
},
"properties": {
"name": "Plot F",
"commodities": ["rubber"]
}
}
]
}Important Notes
Only
Point,Polygon, andMultiPolygongeometries are supported.The coordinates must be in WGS 84 (EPSG:4326) format (longitude, latitude).
areaHais not required when uploading via the web app.Additional fields like
description,filename, orcustomDataare allowed but not required.Plot names must be unique within the file. TradeAware will automatically append a number to ensure uniqueness during upload (e.g.,
Plot A_1,Plot A_2).
Last updated