Package com.esri.core.geometry
Class OperatorExportToGeoJsonCursor
- java.lang.Object
-
- com.esri.core.geometry.JsonCursor
-
- com.esri.core.geometry.OperatorExportToGeoJsonCursor
-
class OperatorExportToGeoJsonCursor extends JsonCursor
-
-
Field Summary
Fields Modifier and Type Field Description (package private) int
m_export_flags
(package private) int
m_index
(package private) GeometryCursor
m_inputGeometryCursor
(package private) SpatialReference
m_spatialReference
-
Constructor Summary
Constructors Constructor Description OperatorExportToGeoJsonCursor(int export_flags, SpatialReference spatialReference, GeometryCursor geometryCursor)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private 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 java.lang.String
exportSpatialReference(int export_flags, SpatialReference spatial_reference)
private static void
exportSpatialReference(int export_flags, SpatialReference spatial_reference, JsonWriter json_writer)
(package private) static java.lang.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)
java.lang.String
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 Detail
-
m_inputGeometryCursor
GeometryCursor m_inputGeometryCursor
-
m_spatialReference
SpatialReference m_spatialReference
-
m_index
int m_index
-
m_export_flags
int m_export_flags
-
-
Constructor Detail
-
OperatorExportToGeoJsonCursor
public OperatorExportToGeoJsonCursor(int export_flags, SpatialReference spatialReference, GeometryCursor geometryCursor)
-
-
Method Detail
-
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
public java.lang.String 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 java.lang.String exportToGeoJson(int export_flags, Geometry geometry, SpatialReference spatial_reference)
-
exportSpatialReference
static java.lang.String exportSpatialReference(int export_flags, SpatialReference spatial_reference)
-
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_
private static void exportPointToGeoJson_(int export_flags, Point point, JsonWriter json_writer)
-
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)
-
-