Assign Plate IDs for GeoJSON
Assign Plate IDs for GeoJSON
Description:
HTTP Get request to assign plate IDs for GeoJSON feature collection.
Endpoint:
https://gws.gplates.org/reconstruct/assign_geojson_plate_ids
Parameters:
- model : name for the reconstruction model (if not specified, will use the default model)
- feature_collection: feature collection in GeoJSON format
Examples:
🟢 E1: Python code to assign plate IDs for GeoJSON feature collection
import json, requestsfc = {"type": "FeatureCollection","features": [{"type": "Feature","geometry": {"type": "Polygon","coordinates": [[[128, -17],[133, -18],[138, -19],[140, -23],[139, -27],[130, -27],[128, -24],[127, -21],[127, -17],[128, -17],]],},"properties": {},}],}data = {"feature_collection": json.dumps(fc)}r = requests.get(SERVER_URL + "/reconstruct/assign_geojson_plate_ids",params=data,verify=False,proxies=proxies,)