SFCGAL  2.3.0
Public Attributes | List of all members
SFCGAL::io::GeoJSONOptions Struct Reference

Options for GeoJSON serialization. More...

#include <geojson.h>

Public Attributes

bool strict = true
 If true, output strictly RFC 7946 compliant GeoJSON. More...
 
int precision = -1
 Number of decimal places for coordinates. More...
 
bool includeBbox = false
 Include bounding box in output. More...
 

Detailed Description

Options for GeoJSON serialization.

Member Data Documentation

bool SFCGAL::io::GeoJSONOptions::includeBbox = false

Include bounding box in output.

Default: false

int SFCGAL::io::GeoJSONOptions::precision = -1

Number of decimal places for coordinates.

-1 means full precision (no rounding). 0 means round to integers. N means round to N decimal places. Default: -1

bool SFCGAL::io::GeoJSONOptions::strict = true

If true, output strictly RFC 7946 compliant GeoJSON.

Non-standard types (TIN, Solid, etc.) are converted to standard types. If false, use SFCGAL type names as extensions (allows round-trip). Default: true