Package com.esri.core.geometry
Class OperatorExportToGeoJsonCursor
java.lang.Object
com.esri.core.geometry.JsonCursor
com.esri.core.geometry.OperatorExportToGeoJsonCursor
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) int
(package private) int
(package private) GeometryCursor
(package private) SpatialReference
-
Constructor Summary
ConstructorsConstructorDescriptionOperatorExportToGeoJsonCursor
(int export_flags, SpatialReference spatialReference, GeometryCursor geometryCursor) -
Method Summary
Modifier and TypeMethodDescriptionprivate static void
exportEnvelopeToGeoJson_
(int export_flags, Envelope envelope, JsonWriter json_writer) private static void
exportGeometryToGeoJson_
(int export_flags, Geometry geometry, JsonWriter json_writer) private static void
exportMultiPointToGeoJson_
(int export_flags, MultiPoint multipoint, JsonWriter json_writer) private static void
exportPointToGeoJson_
(int export_flags, Point point, JsonWriter json_writer) private static void
exportPolygonToGeoJson_
(int export_flags, Polygon polygon, JsonWriter json_writer) private static void
exportPolylineToGeoJson_
(int export_flags, Polyline polyline, JsonWriter json_writer) (package private) static String
exportSpatialReference
(int export_flags, SpatialReference spatial_reference) private static void
exportSpatialReference
(int export_flags, SpatialReference spatial_reference, JsonWriter json_writer) (package private) static String
exportToGeoJson
(int export_flags, Geometry geometry, SpatialReference spatial_reference) int
getID()
Returns the ID of the current geometry.private static void
lineStringTaggedText_
(int precision, boolean bFixedPoint, boolean b_export_zs, boolean b_export_ms, AttributeStreamOfDbl zs, AttributeStreamOfDbl ms, AttributeStreamOfDbl position, AttributeStreamOfInt8 path_flags, AttributeStreamOfInt32 paths, JsonWriter json_writer) private static void
lineStringText_
(boolean bRing, boolean b_closed, int precision, boolean bFixedPoint, boolean b_export_zs, boolean b_export_ms, AttributeStreamOfDbl zs, AttributeStreamOfDbl ms, AttributeStreamOfDbl position, int istart, int iend, JsonWriter json_writer) private static void
multiLineStringTaggedText_
(int precision, boolean bFixedPoint, boolean b_export_zs, boolean b_export_ms, AttributeStreamOfDbl zs, AttributeStreamOfDbl ms, AttributeStreamOfDbl position, AttributeStreamOfInt8 path_flags, AttributeStreamOfInt32 paths, int path_count, JsonWriter json_writer) private static void
multiLineStringText_
(int precision, boolean bFixedPoint, boolean b_export_zs, boolean b_export_ms, AttributeStreamOfDbl zs, AttributeStreamOfDbl ms, AttributeStreamOfDbl position, AttributeStreamOfInt8 path_flags, AttributeStreamOfInt32 paths, int path_count, JsonWriter json_writer) private static void
multiPointTaggedText_
(int precision, boolean bFixedPoint, boolean b_export_zs, boolean b_export_ms, AttributeStreamOfDbl zs, AttributeStreamOfDbl ms, AttributeStreamOfDbl position, int point_count, JsonWriter json_writer) private static void
multiPointTaggedTextFromPoint_
(int precision, boolean bFixedPoint, boolean b_export_zs, boolean b_export_ms, double x, double y, double z, double m, JsonWriter json_writer) private static void
multiPolygonTaggedText_
(int precision, boolean bFixedPoint, boolean b_export_zs, boolean b_export_ms, AttributeStreamOfDbl zs, AttributeStreamOfDbl ms, AttributeStreamOfDbl position, AttributeStreamOfInt8 path_flags, AttributeStreamOfInt32 paths, int polygon_count, int path_count, JsonWriter json_writer) private static void
multiPolygonTaggedTextFromEnvelope_
(int precision, boolean bFixedPoint, boolean b_export_zs, boolean b_export_ms, double xmin, double ymin, double xmax, double ymax, double zmin, double zmax, double mmin, double mmax, JsonWriter json_writer) private static void
multiPolygonText_
(int precision, boolean bFixedPoint, boolean b_export_zs, boolean b_export_ms, AttributeStreamOfDbl zs, AttributeStreamOfDbl ms, AttributeStreamOfDbl position, AttributeStreamOfInt8 path_flags, AttributeStreamOfInt32 paths, int polygon_count, int path_count, JsonWriter json_writer) next()
Moves the cursor to the next string.private static void
pointTaggedText_
(int precision, boolean bFixedPoint, boolean b_export_zs, boolean b_export_ms, double x, double y, double z, double m, JsonWriter json_writer) private static int
pointText_
(int precision, boolean bFixedPoint, boolean b_export_zs, boolean b_export_ms, double x, double y, double z, double m, JsonWriter json_writer) private static void
pointText_
(int precision, boolean bFixedPoint, boolean b_export_zs, boolean b_export_ms, AttributeStreamOfDbl zs, AttributeStreamOfDbl ms, AttributeStreamOfDbl position, int point, JsonWriter json_writer) private static void
polygonTaggedText_
(int precision, boolean bFixedPoint, boolean b_export_zs, boolean b_export_ms, AttributeStreamOfDbl zs, AttributeStreamOfDbl ms, AttributeStreamOfDbl position, AttributeStreamOfInt32 paths, int path_count, JsonWriter json_writer) private static void
polygonTaggedTextFromEnvelope_
(int precision, boolean bFixedPoint, boolean b_export_zs, boolean b_export_ms, double xmin, double ymin, double xmax, double ymax, double zmin, double zmax, double mmin, double mmax, JsonWriter json_writer) private static void
polygonText_
(int precision, boolean bFixedPoint, boolean b_export_zs, boolean b_export_ms, AttributeStreamOfDbl zs, AttributeStreamOfDbl ms, AttributeStreamOfDbl position, AttributeStreamOfInt32 paths, int polygon_start, int polygon_end, JsonWriter json_writer) private static void
writeEnvelopeAsGeoJsonPolygon_
(int precision, boolean bFixedPoint, boolean b_export_zs, boolean b_export_ms, double xmin, double ymin, double xmax, double ymax, double zmin, double zmax, double mmin, double mmax, JsonWriter json_writer)
-
Field Details
-
m_inputGeometryCursor
GeometryCursor m_inputGeometryCursor -
m_spatialReference
SpatialReference m_spatialReference -
m_index
int m_index -
m_export_flags
int m_export_flags
-
-
Constructor Details
-
OperatorExportToGeoJsonCursor
public OperatorExportToGeoJsonCursor(int export_flags, SpatialReference spatialReference, GeometryCursor geometryCursor)
-
-
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
-
exportToGeoJson
static String exportToGeoJson(int export_flags, Geometry geometry, SpatialReference spatial_reference) -
exportSpatialReference
-
exportGeometryToGeoJson_
private static void exportGeometryToGeoJson_(int export_flags, Geometry geometry, JsonWriter json_writer) -
exportSpatialReference
private static void exportSpatialReference(int export_flags, SpatialReference spatial_reference, JsonWriter json_writer) -
exportPolygonToGeoJson_
private static void exportPolygonToGeoJson_(int export_flags, Polygon polygon, JsonWriter json_writer) -
exportPolylineToGeoJson_
private static void exportPolylineToGeoJson_(int export_flags, Polyline polyline, JsonWriter json_writer) -
exportMultiPointToGeoJson_
private static void exportMultiPointToGeoJson_(int export_flags, MultiPoint multipoint, JsonWriter json_writer) -
exportPointToGeoJson_
-
exportEnvelopeToGeoJson_
private static void exportEnvelopeToGeoJson_(int export_flags, Envelope envelope, JsonWriter json_writer) -
multiPolygonTaggedText_
private static void multiPolygonTaggedText_(int precision, boolean bFixedPoint, boolean b_export_zs, boolean b_export_ms, AttributeStreamOfDbl zs, AttributeStreamOfDbl ms, AttributeStreamOfDbl position, AttributeStreamOfInt8 path_flags, AttributeStreamOfInt32 paths, int polygon_count, int path_count, JsonWriter json_writer) -
multiPolygonTaggedTextFromEnvelope_
private static void multiPolygonTaggedTextFromEnvelope_(int precision, boolean bFixedPoint, boolean b_export_zs, boolean b_export_ms, double xmin, double ymin, double xmax, double ymax, double zmin, double zmax, double mmin, double mmax, JsonWriter json_writer) -
multiLineStringTaggedText_
private static void multiLineStringTaggedText_(int precision, boolean bFixedPoint, boolean b_export_zs, boolean b_export_ms, AttributeStreamOfDbl zs, AttributeStreamOfDbl ms, AttributeStreamOfDbl position, AttributeStreamOfInt8 path_flags, AttributeStreamOfInt32 paths, int path_count, JsonWriter json_writer) -
multiPointTaggedText_
private static void multiPointTaggedText_(int precision, boolean bFixedPoint, boolean b_export_zs, boolean b_export_ms, AttributeStreamOfDbl zs, AttributeStreamOfDbl ms, AttributeStreamOfDbl position, int point_count, JsonWriter json_writer) -
multiPointTaggedTextFromPoint_
private static void multiPointTaggedTextFromPoint_(int precision, boolean bFixedPoint, boolean b_export_zs, boolean b_export_ms, double x, double y, double z, double m, JsonWriter json_writer) -
polygonTaggedText_
private static void polygonTaggedText_(int precision, boolean bFixedPoint, boolean b_export_zs, boolean b_export_ms, AttributeStreamOfDbl zs, AttributeStreamOfDbl ms, AttributeStreamOfDbl position, AttributeStreamOfInt32 paths, int path_count, JsonWriter json_writer) -
polygonTaggedTextFromEnvelope_
private static void polygonTaggedTextFromEnvelope_(int precision, boolean bFixedPoint, boolean b_export_zs, boolean b_export_ms, double xmin, double ymin, double xmax, double ymax, double zmin, double zmax, double mmin, double mmax, JsonWriter json_writer) -
lineStringTaggedText_
private static void lineStringTaggedText_(int precision, boolean bFixedPoint, boolean b_export_zs, boolean b_export_ms, AttributeStreamOfDbl zs, AttributeStreamOfDbl ms, AttributeStreamOfDbl position, AttributeStreamOfInt8 path_flags, AttributeStreamOfInt32 paths, JsonWriter json_writer) -
pointTaggedText_
private static void pointTaggedText_(int precision, boolean bFixedPoint, boolean b_export_zs, boolean b_export_ms, double x, double y, double z, double m, JsonWriter json_writer) -
multiPolygonText_
private static void multiPolygonText_(int precision, boolean bFixedPoint, boolean b_export_zs, boolean b_export_ms, AttributeStreamOfDbl zs, AttributeStreamOfDbl ms, AttributeStreamOfDbl position, AttributeStreamOfInt8 path_flags, AttributeStreamOfInt32 paths, int polygon_count, int path_count, JsonWriter json_writer) -
multiLineStringText_
private static void multiLineStringText_(int precision, boolean bFixedPoint, boolean b_export_zs, boolean b_export_ms, AttributeStreamOfDbl zs, AttributeStreamOfDbl ms, AttributeStreamOfDbl position, AttributeStreamOfInt8 path_flags, AttributeStreamOfInt32 paths, int path_count, JsonWriter json_writer) -
polygonText_
private static void polygonText_(int precision, boolean bFixedPoint, boolean b_export_zs, boolean b_export_ms, AttributeStreamOfDbl zs, AttributeStreamOfDbl ms, AttributeStreamOfDbl position, AttributeStreamOfInt32 paths, int polygon_start, int polygon_end, JsonWriter json_writer) -
lineStringText_
private static void lineStringText_(boolean bRing, boolean b_closed, int precision, boolean bFixedPoint, boolean b_export_zs, boolean b_export_ms, AttributeStreamOfDbl zs, AttributeStreamOfDbl ms, AttributeStreamOfDbl position, int istart, int iend, JsonWriter json_writer) -
pointText_
private static int pointText_(int precision, boolean bFixedPoint, boolean b_export_zs, boolean b_export_ms, double x, double y, double z, double m, JsonWriter json_writer) -
pointText_
private static void pointText_(int precision, boolean bFixedPoint, boolean b_export_zs, boolean b_export_ms, AttributeStreamOfDbl zs, AttributeStreamOfDbl ms, AttributeStreamOfDbl position, int point, JsonWriter json_writer) -
writeEnvelopeAsGeoJsonPolygon_
private static void writeEnvelopeAsGeoJsonPolygon_(int precision, boolean bFixedPoint, boolean b_export_zs, boolean b_export_ms, double xmin, double ymin, double xmax, double ymax, double zmin, double zmax, double mmin, double mmax, JsonWriter json_writer)
-