GeoJsonOptions Class

Summary: Driver-specific options for GeoJSON format.

Module: aspose.gis.formats.geojson

Full Name: aspose.gis.formats.geojson.GeoJsonOptions

Inheritance: DriverOptions

Aspose.PSD Version: 25.9.0

Constructors

NameDescription
GeoJsonOptions()Create new instance.

Properties

NameTypeAccessDescription
array_as_stringboolr/wWhether to expose JSon arrays of strings, integers or reals as string.
attributes_skipboolr/wcontrols translation of attributes: yes - skip all attributes
auto_idAutoIdsr/wAuto-generate ids
close_linear_ringboolr/wDetermines if close a unclosed GeometryType.LINEAR_RING in each geometry. Defaults to .
create_midpointsboolr/wDetermines if add a new point in the middle to each segment of geometry. Defaults to .
date_as_stringboolr/wWhether to expose JSon date/time/date-time as string.
delete_near_pointsboolr/wDetermines if delete near points in each geometry. Defaults to .
delete_near_points_distancedoubler/wDetermines distance for DriverOptions.delete_near_points. Defaults to .
descriptionstringr/wDescription at feature collection level (for layer creation)
geometry_as_collectionboolr/wcontrol translation of geometries: yes - wrap geometries with GeometryCollection type
linearization_tolerancedoubler/wA tolerance to use to linearize curve geometries.
m_precision_modelPrecisionModelr/wA 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 PrecisionModel.exact.
namestringr/wName at feature collection level (for layer creation)
nested_properties_separatorstringr/wGets or sets a string that is used to separate components of nested attributes.
Default is “_”.
read_bounding_boxesboolr/wDetermines if Bounding Boxes (‘bbox’) should be read as attributes with a name ‘bbox_0’, ‘bbox_1’, etc.
Default value is .
The GeoJsonOptions.nested_properties_separator string is used in bbox_0, bbox_1,.. names.
simplify_segmentsboolr/wDetermines if delete points lying on the same segment in each geometry. Defaults to .
simplify_segments_distancedoubler/wDetermines distance for DriverOptions.simplify_segments. Defaults to .
validate_geometries_on_writeboolr/wDetermines if geometries should be validated when they are added to the layer.
If set to , Geometry.is_valid is called for each
geometry when it’s added to the layer, and if validation fails (Geometry.is_valid is ), GisException is thrown.
write_bounding_boxesboolr/wDetermines if GeoJSON objects should be included information on the coordinate range for its Geometries.
If set to , a member “bbox” is generated for each geometry (not null) when it’s added to the layer.
Default value is .
write_polygons_as_linesboolr/wDetermines if transformation of polygon or multipolygon to linestring is allowed. Defaults to .
write_unset_attributeboolr/wWhether to write unset attributes by adding ’null’ value
xy_precision_modelPrecisionModelr/wA 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 PrecisionModel.exact.
z_precision_modelPrecisionModelr/wA 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 PrecisionModel.exact.

Constructor: GeoJsonOptions()

 GeoJsonOptions() 

Create new instance.