Package com.esri.core.geometry
Class OperatorFactoryLocal
- java.lang.Object
-
- com.esri.core.geometry.OperatorFactory
-
- com.esri.core.geometry.OperatorFactoryLocal
-
public class OperatorFactoryLocal extends OperatorFactory
An abstract class that represent the basic OperatorFactory interface.
-
-
Field Summary
Fields Modifier and Type Field Description private static OperatorFactoryLocalINSTANCEprivate static java.util.HashMap<Operator.Type,Operator>st_supportedOperators
-
Constructor Summary
Constructors Modifier Constructor Description privateOperatorFactoryLocal()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OperatorFactoryLocalgetInstance()Returns a reference to the singleton.OperatorgetOperator(Operator.Type type)Returns an operator of the given type.booleanisOperatorSupported(Operator.Type type)Returns True if the given operator exists.static GeometryloadGeometryFromEsriShapeDbg(java.lang.String file_name)static MapGeometryloadGeometryFromJSONFileDbg(java.lang.String file_name)static MapGeometryloadGeometryFromJSONStringDbg(java.lang.String json)static GeometryloadGeometryFromWKTFileDbg(java.lang.String file_name)static voidsaveGeometryToEsriShapeDbg(java.lang.String file_name, Geometry geometry)static voidsaveJSONToTextFileDbg(java.lang.String file_name, Geometry geometry, SpatialReference spatial_ref)static voidsaveToWKTFileDbg(java.lang.String file_name, Geometry geometry, SpatialReference spatial_ref)
-
-
-
Field Detail
-
INSTANCE
private static final OperatorFactoryLocal INSTANCE
-
st_supportedOperators
private static final java.util.HashMap<Operator.Type,Operator> st_supportedOperators
-
-
Method Detail
-
getInstance
public static OperatorFactoryLocal getInstance()
Returns a reference to the singleton.
-
getOperator
public Operator getOperator(Operator.Type type)
Description copied from class:OperatorFactoryReturns an operator of the given type. Throws an exception if the operator is not supported.- Specified by:
getOperatorin classOperatorFactory
-
isOperatorSupported
public boolean isOperatorSupported(Operator.Type type)
Description copied from class:OperatorFactoryReturns True if the given operator exists. The type is one of the Operator::Type values or a user defined value.- Specified by:
isOperatorSupportedin classOperatorFactory
-
saveJSONToTextFileDbg
public static void saveJSONToTextFileDbg(java.lang.String file_name, Geometry geometry, SpatialReference spatial_ref)
-
loadGeometryFromJSONFileDbg
public static MapGeometry loadGeometryFromJSONFileDbg(java.lang.String file_name)
-
loadGeometryFromJSONStringDbg
public static MapGeometry loadGeometryFromJSONStringDbg(java.lang.String json)
-
loadGeometryFromEsriShapeDbg
public static Geometry loadGeometryFromEsriShapeDbg(java.lang.String file_name)
-
saveGeometryToEsriShapeDbg
public static void saveGeometryToEsriShapeDbg(java.lang.String file_name, Geometry geometry)
-
saveToWKTFileDbg
public static void saveToWKTFileDbg(java.lang.String file_name, Geometry geometry, SpatialReference spatial_ref)
-
loadGeometryFromWKTFileDbg
public static Geometry loadGeometryFromWKTFileDbg(java.lang.String file_name)
-
-