Skip to main content

Transformations

GeoFlip’s Transformations endpoints let you modify your spatial data with powerful tools to fit your needs. Whether it’s buffering, clipping, erasing, or performing unions, GeoFlip gives you the flexibility to transform your data just the way you want.

What Can Transformations Do?

  1. Buffer: Expand your features by a specified distance, perfect for creating zones around points, lines, or polygons.
  2. Clip: Trim your data to fit within a specified boundary—great for focusing on specific areas.
  3. Erase: Remove parts of your data based on a defined area, letting you clean up or refine your datasets.
  4. Union: Combine multiple features into one, merging overlapping geometries into a single feature.

But here’s where GeoFlip really shines: you can chain transformations together in a spatial data transformation pipeline. This means you can apply multiple transformations in a single request, customizing the order and behavior to suit your workflow. Just pass in a list of transformations, and GeoFlip will handle them consecutively.

transformation pipeline example
{
"input_geojson": {...},
"output_format": "shp",
"output_crs": "EPSG:4326",
"transformations": [
{
"type": "buffer",
"distance": 100,
"units": "meters"
},
{
"type": "clip",
"clipping_geojson": {...}
},
{
"type": "erase",
"erasing_geojson": {...}
},
{
"type": "buffer",
"distance": 300,
"units": "meters"
},
{
"type": "union"
}
]
}

You can mix and match these transformations to achieve complex results in a single API call—no need for multiple requests or manual processing!

The rest of this section will dive deeper into each transformation, covering the required parameters and how to use them effectively.