Package com.esri.core.geometry
Class OperatorExportToGeoJson
java.lang.Object
com.esri.core.geometry.Operator
com.esri.core.geometry.OperatorExportToGeoJson
- Direct Known Subclasses:
OperatorExportToGeoJsonLocal
Export to GeoJson format.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.esri.core.geometry.Operator
Operator.Type
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract String
execute
(int exportFlags, SpatialReference spatialReference, Geometry geometry) Performs the ExportToGeoJson operationabstract String
Performs the ExportToGeoJson operation.abstract String
execute
(SpatialReference spatialReference, Geometry geometry) Performs the ExportToGeoJson operationabstract JsonCursor
execute
(SpatialReference spatialReference, GeometryCursor geometryCursor) Performs the ExportToGeoJson operationabstract String
exportSpatialReference
(int export_flags, SpatialReference spatial_reference) Performs the ExportToGeoJson operation on a spatial reference.getType()
static OperatorExportToGeoJson
local()
Methods inherited from class com.esri.core.geometry.Operator
accelerateGeometry, canAccelerateGeometry, deaccelerateGeometry
-
Constructor Details
-
OperatorExportToGeoJson
public OperatorExportToGeoJson()
-
-
Method Details
-
getType
-
execute
public abstract JsonCursor execute(SpatialReference spatialReference, GeometryCursor geometryCursor) Performs the ExportToGeoJson operation- Parameters:
spatialReference
- The SpatialReference of the Geometry. Will be written as "crs":null if the spatialReference is null.geometryCursor
- The cursor of geometries to write as GeoJson.- Returns:
- Returns a JsonCursor.
-
execute
Performs the ExportToGeoJson operation- Parameters:
spatialReference
- The SpatialReference of the Geometry. Will be written as "crs":null if the spatialReference is null.geometry
- The Geometry to write as GeoJson.- Returns:
- Returns a string in GeoJson format.
-
execute
public abstract String execute(int exportFlags, SpatialReference spatialReference, Geometry geometry) Performs the ExportToGeoJson operation- Parameters:
exportFlags
- Use theGeoJsonExportFlags
interface.spatialReference
- The SpatialReference of the Geometry. Will be written as "crs":null if the spatialReference is null.geometry
- The Geometry to write as GeoJson.- Returns:
- Returns a string in GeoJson format.
-
execute
Performs the ExportToGeoJson operation. Will not write out a spatial reference or crs tag. Assumes the geometry is in wgs84.- Parameters:
geometry
- The Geometry to write as GeoJson.- Returns:
- Returns a string in GeoJson format.
-
exportSpatialReference
Performs the ExportToGeoJson operation on a spatial reference.- Parameters:
export_flags
- The flags used for the export.spatial_reference
- The spatial reference being exported. Cannot be null.- Returns:
- Returns the crs value object.
-
local
-