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 voidexportEnvelopeToJson(Envelope env, SpatialReference spatialReference, JsonWriter jsonWriter, Map<String, Object> exportProperties) private static voidexportMultiPointToJson(MultiPoint mpt, SpatialReference spatialReference, JsonWriter jsonWriter, Map<String, Object> exportProperties) private static voidexportPointToJson(Point pt, SpatialReference spatialReference, JsonWriter jsonWriter, Map<String, Object> exportProperties) private static voidexportPolygonToJson(Polygon pp, SpatialReference spatialReference, JsonWriter jsonWriter, Map<String, Object> exportProperties) private static voidexportPolylineToJson(Polyline pp, SpatialReference spatialReference, JsonWriter jsonWriter, Map<String, Object> exportProperties) private static voidexportPolypathToJson(MultiPath pp, String name, SpatialReference spatialReference, JsonWriter jsonWriter, Map<String, Object> exportProperties) private static voidexportToJson_(Geometry geometry, SpatialReference spatialReference, JsonWriter jsonWriter, Map<String, Object> exportProperties) (package private) static StringexportToString(Geometry geometry, SpatialReference spatialReference, Map<String, Object> exportProperties) intgetID()Returns the ID of the current geometry.next()Moves the cursor to the next string.private static voidwriteSR(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:JsonCursorReturns 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:
getIDin classJsonCursor
-
next
Description copied from class:JsonCursorMoves the cursor to the next string. Returns null when reached the end.- Specified by:
nextin 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
-