Package com.esri.core.geometry
Class OperatorExportToJsonCursor
java.lang.Object
com.esri.core.geometry.JsonCursor
com.esri.core.geometry.OperatorExportToJsonCursor
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) int
(package private) GeometryCursor
(package private) SpatialReference
-
Constructor Summary
ConstructorsConstructorDescriptionOperatorExportToJsonCursor
(SpatialReference spatialReference, GeometryCursor geometryCursor) -
Method Summary
Modifier and TypeMethodDescriptionprivate static void
exportEnvelopeToJson
(Envelope env, SpatialReference spatialReference, JsonWriter jsonWriter, Map<String, Object> exportProperties) private static void
exportMultiPointToJson
(MultiPoint mpt, SpatialReference spatialReference, JsonWriter jsonWriter, Map<String, Object> exportProperties) private static void
exportPointToJson
(Point pt, SpatialReference spatialReference, JsonWriter jsonWriter, Map<String, Object> exportProperties) private static void
exportPolygonToJson
(Polygon pp, SpatialReference spatialReference, JsonWriter jsonWriter, Map<String, Object> exportProperties) private static void
exportPolylineToJson
(Polyline pp, SpatialReference spatialReference, JsonWriter jsonWriter, Map<String, Object> exportProperties) private static void
exportPolypathToJson
(MultiPath pp, String name, SpatialReference spatialReference, JsonWriter jsonWriter, Map<String, Object> exportProperties) private static void
exportToJson_
(Geometry geometry, SpatialReference spatialReference, JsonWriter jsonWriter, Map<String, Object> exportProperties) (package private) static String
exportToString
(Geometry geometry, SpatialReference spatialReference, Map<String, Object> exportProperties) int
getID()
Returns the ID of the current geometry.next()
Moves the cursor to the next string.private static void
writeSR
(SpatialReference spatialReference, JsonWriter jsonWriter)
-
Field Details
-
m_inputGeometryCursor
GeometryCursor m_inputGeometryCursor -
m_spatialReference
SpatialReference m_spatialReference -
m_index
int m_index
-
-
Constructor Details
-
OperatorExportToJsonCursor
-
-
Method Details
-
getID
public int getID()Description copied from class:JsonCursor
Returns the ID of the current geometry. The ID is propagated across the operations (when possible). Returns an ID associated with the current Geometry. The ID is passed along and is returned by some operators to preserve relationship between the input and output geometry classes. It is not always possible to preserve an ID during an operation.- Specified by:
getID
in classJsonCursor
-
next
Description copied from class:JsonCursor
Moves the cursor to the next string. Returns null when reached the end.- Specified by:
next
in classJsonCursor
-
exportToString
-
exportToJson_
private static void exportToJson_(Geometry geometry, SpatialReference spatialReference, JsonWriter jsonWriter, Map<String, Object> exportProperties) -
exportPolygonToJson
private static void exportPolygonToJson(Polygon pp, SpatialReference spatialReference, JsonWriter jsonWriter, Map<String, Object> exportProperties) -
exportPolylineToJson
private static void exportPolylineToJson(Polyline pp, SpatialReference spatialReference, JsonWriter jsonWriter, Map<String, Object> exportProperties) -
exportPolypathToJson
private static void exportPolypathToJson(MultiPath pp, String name, SpatialReference spatialReference, JsonWriter jsonWriter, Map<String, Object> exportProperties) -
exportMultiPointToJson
private static void exportMultiPointToJson(MultiPoint mpt, SpatialReference spatialReference, JsonWriter jsonWriter, Map<String, Object> exportProperties) -
exportPointToJson
private static void exportPointToJson(Point pt, SpatialReference spatialReference, JsonWriter jsonWriter, Map<String, Object> exportProperties) -
exportEnvelopeToJson
private static void exportEnvelopeToJson(Envelope env, SpatialReference spatialReference, JsonWriter jsonWriter, Map<String, Object> exportProperties) -
writeSR
-