return OGCGeometry.createFromEsriGeometry(mapGeom.getGeometry(),
mapGeom.getSpatialReference());
}
public static OGCGeometry fromGeoJson(String string) throws JSONException {
OperatorImportFromGeoJson op = (OperatorImportFromGeoJson) OperatorFactoryLocal
.getInstance().getOperator(Operator.Type.ImportFromGeoJson);
MapOGCStructure mapOGCStructure = op.executeOGC(0, string, null);
return OGCGeometry.createFromOGCStructure(
mapOGCStructure.m_ogcStructure,
mapOGCStructure.m_spatialReference);
}