Package com.esri.core.geometry
Class OperatorExportToJsonCursor
- java.lang.Object
-
- com.esri.core.geometry.JsonCursor
-
- com.esri.core.geometry.OperatorExportToJsonCursor
-
class OperatorExportToJsonCursor extends JsonCursor
-
-
Field Summary
Fields Modifier and Type Field Description (package private) intm_index(package private) GeometryCursorm_inputGeometryCursor(package private) SpatialReferencem_spatialReference
-
Constructor Summary
Constructors Constructor Description OperatorExportToJsonCursor(SpatialReference spatialReference, GeometryCursor geometryCursor)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static voidexportEnvelopeToJson(Envelope env, SpatialReference spatialReference, JsonWriter jsonWriter, java.util.Map<java.lang.String,java.lang.Object> exportProperties)private static voidexportMultiPointToJson(MultiPoint mpt, SpatialReference spatialReference, JsonWriter jsonWriter, java.util.Map<java.lang.String,java.lang.Object> exportProperties)private static voidexportPointToJson(Point pt, SpatialReference spatialReference, JsonWriter jsonWriter, java.util.Map<java.lang.String,java.lang.Object> exportProperties)private static voidexportPolygonToJson(Polygon pp, SpatialReference spatialReference, JsonWriter jsonWriter, java.util.Map<java.lang.String,java.lang.Object> exportProperties)private static voidexportPolylineToJson(Polyline pp, SpatialReference spatialReference, JsonWriter jsonWriter, java.util.Map<java.lang.String,java.lang.Object> exportProperties)private static voidexportPolypathToJson(MultiPath pp, java.lang.String name, SpatialReference spatialReference, JsonWriter jsonWriter, java.util.Map<java.lang.String,java.lang.Object> exportProperties)private static voidexportToJson_(Geometry geometry, SpatialReference spatialReference, JsonWriter jsonWriter, java.util.Map<java.lang.String,java.lang.Object> exportProperties)(package private) static java.lang.StringexportToString(Geometry geometry, SpatialReference spatialReference, java.util.Map<java.lang.String,java.lang.Object> exportProperties)intgetID()Returns the ID of the current geometry.java.lang.Stringnext()Moves the cursor to the next string.private static voidwriteSR(SpatialReference spatialReference, JsonWriter jsonWriter)
-
-
-
Field Detail
-
m_inputGeometryCursor
GeometryCursor m_inputGeometryCursor
-
m_spatialReference
SpatialReference m_spatialReference
-
m_index
int m_index
-
-
Constructor Detail
-
OperatorExportToJsonCursor
public OperatorExportToJsonCursor(SpatialReference spatialReference, GeometryCursor geometryCursor)
-
-
Method Detail
-
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
public java.lang.String next()
Description copied from class:JsonCursorMoves the cursor to the next string. Returns null when reached the end.- Specified by:
nextin classJsonCursor
-
exportToString
static java.lang.String exportToString(Geometry geometry, SpatialReference spatialReference, java.util.Map<java.lang.String,java.lang.Object> exportProperties)
-
exportToJson_
private static void exportToJson_(Geometry geometry, SpatialReference spatialReference, JsonWriter jsonWriter, java.util.Map<java.lang.String,java.lang.Object> exportProperties)
-
exportPolygonToJson
private static void exportPolygonToJson(Polygon pp, SpatialReference spatialReference, JsonWriter jsonWriter, java.util.Map<java.lang.String,java.lang.Object> exportProperties)
-
exportPolylineToJson
private static void exportPolylineToJson(Polyline pp, SpatialReference spatialReference, JsonWriter jsonWriter, java.util.Map<java.lang.String,java.lang.Object> exportProperties)
-
exportPolypathToJson
private static void exportPolypathToJson(MultiPath pp, java.lang.String name, SpatialReference spatialReference, JsonWriter jsonWriter, java.util.Map<java.lang.String,java.lang.Object> exportProperties)
-
exportMultiPointToJson
private static void exportMultiPointToJson(MultiPoint mpt, SpatialReference spatialReference, JsonWriter jsonWriter, java.util.Map<java.lang.String,java.lang.Object> exportProperties)
-
exportPointToJson
private static void exportPointToJson(Point pt, SpatialReference spatialReference, JsonWriter jsonWriter, java.util.Map<java.lang.String,java.lang.Object> exportProperties)
-
exportEnvelopeToJson
private static void exportEnvelopeToJson(Envelope env, SpatialReference spatialReference, JsonWriter jsonWriter, java.util.Map<java.lang.String,java.lang.Object> exportProperties)
-
writeSR
private static void writeSR(SpatialReference spatialReference, JsonWriter jsonWriter)
-
-