Class GeoJsonOptions

GeoJsonOptions class

Driver-specific options for GeoJSON format.

public class GeoJsonOptions : DriverOptions

Constructors

NameDescription
GeoJsonOptions()Create new instance.

Properties

NameDescription
ArrayAsString { get; set; }Whether to expose JSon arrays of strings, integers or reals as string.
AttributesSkip { get; set; }controls translation of attributes: yes - skip all attributes
AutoId { get; set; }Auto-generate ids
CloseLinearRing { get; set; }Determines if close a unclosed LinearRing in each geometry. Defaults to false.
CreateMidpoints { get; set; }Determines if add a new point in the middle to each segment of geometry. Defaults to false.
DateAsString { get; set; }Whether to expose JSon date/time/date-time as string.
DeleteNearPoints { get; set; }Determines if delete near points in each geometry. Defaults to false.
DeleteNearPointsDistance { get; set; }Determines distance for DeleteNearPoints. Defaults to 0.
Description { get; set; }Description at feature collection level (for layer creation)
GeometryAsCollection { get; set; }control translation of geometries: yes - wrap geometries with GeometryCollection type
LinearizationTolerance { get; set; }A tolerance to use to linearize curve geometries.
MPrecisionModel { get; set; }A PrecisionModel that will be applied to M coordinate when geometries are added to the VectorLayer or when they are read from the VectorLayer. The default value is Exact.
Name { get; set; }Name at feature collection level (for layer creation)
NestedPropertiesSeparator { get; set; }Gets or sets a string that is used to separate components of nested attributes. Default is “_”.
ReadBoundingBoxes { get; set; }Determines if Bounding Boxes (‘bbox’) should be read as attributes with a name ‘bbox_0’, ‘bbox_1’, etc. Default value is false. The NestedPropertiesSeparator string is used in bbox_0, bbox_1,.. names.
SimplifySegments { get; set; }Determines if delete points lying on the same segment in each geometry. Defaults to false.
SimplifySegmentsDistance { get; set; }Determines distance for SimplifySegments. Defaults to 0.
ValidateGeometriesOnWrite { get; set; }Determines if geometries should be validated when they are added to the layer. If set to true, IsValid is called for each geometry when it’s added to the layer, and if validation fails (IsValid is false), GisException is thrown.
WriteBoundingBoxes { get; set; }Determines if GeoJSON objects should be included information on the coordinate range for its Geometries. If set to true, a member “bbox” is generated for each geometry (not null) when it’s added to the layer. Default value is false.
WritePolygonsAsLines { get; set; }Determines if transformation of polygon or multipolygon to linestring is allowed. Defaults to false.
WriteUnsetAttribute { get; set; }Whether to write unset attributes by adding ’null’ value
XYPrecisionModel { get; set; }A PrecisionModel that will be applied to X and Y coordinates when geometries are added to the VectorLayer or when they are read from the VectorLayer. The default value is Exact.
ZPrecisionModel { get; set; }A PrecisionModel that will be applied to Z coordinate when geometries are added to the VectorLayer or when they are read from the VectorLayer. The default value is Exact.

See Also