本文整理汇总了Java中com.esri.ges.manager.geoeventdefinition.GeoEventDefinitionManagerException类的典型用法代码示例。如果您正苦于以下问题:Java GeoEventDefinitionManagerException类的具体用法?Java GeoEventDefinitionManagerException怎么用?Java GeoEventDefinitionManagerException使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
GeoEventDefinitionManagerException类属于com.esri.ges.manager.geoeventdefinition包,在下文中一共展示了GeoEventDefinitionManagerException类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: clearGeoEventDefinitionMapper
import com.esri.ges.manager.geoeventdefinition.GeoEventDefinitionManagerException; //导入依赖的package包/类
synchronized private void clearGeoEventDefinitionMapper()
{
if (!edMapper.isEmpty())
{
for (String guid : edMapper.values())
{
try
{
geoEventDefinitionManager.deleteGeoEventDefinition(guid);
}
catch (GeoEventDefinitionManagerException error)
{
LOGGER.warn("PROCESSOR_FAILED_TO_DELETE_GED", guid, error.getMessage());
}
}
edMapper.clear();
}
}
开发者ID:Esri,项目名称:extent-enricher-for-geoevent,代码行数:19,代码来源:GeometryExtentEnricher.java
示例2: clearGeoEventDefinitionMapper
import com.esri.ges.manager.geoeventdefinition.GeoEventDefinitionManagerException; //导入依赖的package包/类
synchronized private void clearGeoEventDefinitionMapper()
{
if (!edMapper.isEmpty())
{
for (String guid : edMapper.values())
{
try
{
geoEventDefinitionManager.deleteGeoEventDefinition(guid);
}
catch (GeoEventDefinitionManagerException e)
{
LOGGER.warn("PROCESSOR_FAILED_TO_DELETE_GED", guid, e.getMessage());
}
}
edMapper.clear();
}
}
开发者ID:Esri,项目名称:service-area-calculator-for-geoevent,代码行数:19,代码来源:ServiceAreaCalculator.java
示例3: clearGeoEventDefinitionMapper
import com.esri.ges.manager.geoeventdefinition.GeoEventDefinitionManagerException; //导入依赖的package包/类
synchronized private void clearGeoEventDefinitionMapper()
{
if (!edMapper.isEmpty())
{
for (String guid : edMapper.values())
{
try
{
geoEventDefinitionManager.deleteGeoEventDefinition(guid);
}
catch (GeoEventDefinitionManagerException e)
{
;
}
}
edMapper.clear();
}
}
开发者ID:Esri,项目名称:motion-calculator-for-geoevent,代码行数:19,代码来源:MotionCalculator.java
示例4: clearGeoEventDefinitionMapper
import com.esri.ges.manager.geoeventdefinition.GeoEventDefinitionManagerException; //导入依赖的package包/类
synchronized private void clearGeoEventDefinitionMapper()
{
if (!edMapper.isEmpty())
{
for (String guid : edMapper.values())
{
try
{
geoEventDefinitionManager.deleteGeoEventDefinition(guid);
}
catch (GeoEventDefinitionManagerException e)
{
;
}
}
edMapper.clear();
}
}
开发者ID:Esri,项目名称:solutions-geoevent-java,代码行数:19,代码来源:CacheAwareFieldCalculator.java
示例5: processGeoEvent
import com.esri.ges.manager.geoeventdefinition.GeoEventDefinitionManagerException; //导入依赖的package包/类
private GeoEvent processGeoEvent(GeoEvent geoEvent) throws MalformedURLException, JSONException, ConfigurationException, GeoEventDefinitionManagerException, FieldException
{
if (geoEvent.getTrackId() == null || geoEvent.getGeometry() == null)
{
LOGGER.warn("NULL_ERROR: TrackID and/or Geometry is NULL.");
return null;
}
Geometry geom = geoEvent.getGeometry().getGeometry();
if (geom.isEmpty())
return geoEvent;
if (!Geometry.isPoint(geom.getType().value()))
return geoEvent;
if (Geometry.isMultiVertex(geom.getType().value()))
return geoEvent;
Point point = (Point) geom;
double lon = point.getX();
double lat = point.getY();
int wkid = geoEvent.getGeometry().getSpatialReference().getID();
// fetch nearest street address (reverse geocode) via ArcGIS Online World GeoCode service
// The response format. Values: html | json | kmz
// The default response format is html.
agolSearchFormat = "json";
URL agolURL = new URL("http://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/reverseGeocode?location=" + Double.toString(lon) + "," + Double.toString(lat) + "&distance=" + Integer.toString(agolSearchDistance) + "&outSR=" + Integer.toString(wkid) + "&f=" + agolSearchFormat);
String addressJson = getReverseGeocode(agolURL);
GeoEvent agolStreetAddress = augmentGeoEventWithAddress(geoEvent, addressJson);
return agolStreetAddress;
}
开发者ID:Esri,项目名称:reverse-geocoder-for-geoevent,代码行数:34,代码来源:ReverseGeocoderProcessor.java
示例6: processGeoEvent
import com.esri.ges.manager.geoeventdefinition.GeoEventDefinitionManagerException; //导入依赖的package包/类
private GeoEvent processGeoEvent(GeoEvent geoEvent)
throws GeoEventDefinitionManagerException {
GeoEvent geoevent = null;
if (createDef) {
createGeoEventDefinition(geoEvent, keepFields);
createDef=false;
}
if (geoEvent.getTrackId() == null || geoEvent.getGeometry() == null) {
LOGGER.warn("NULL_ERROR");
return null;
}
if (trackIdles == null) {
LOGGER.warn("TRACK_IDLES_NULL");
return null;
}
try {
String cacheKey = buildCacheKey(geoEvent);
TrackIdleProcessorStart idleStart = trackIdles.get(cacheKey);
Date startTime = (Date)geoEvent.getField("TIME_START");
long currentStartTime = startTime.getTime();
if (idleStart != null && idleStart.getGeometry() != null) {
if (!hasGeometryMoved(geoEvent.getGeometry(),
idleStart.getGeometry(), tolerance)) {
double idleDuration = (currentStartTime - idleStart
.getStartTime().getTime()) / 1000.0;
idleDuration = idleDuration >= 0 ? idleDuration
: -idleDuration;
idleDuration = Math.round(idleDuration * 10.0) / 10.0;
if (idleDuration >= idleLimit) {
idleStart.setIdleDuration(idleDuration);
if (notificationMode == TrackIdleProcessorNotificationMode.Continuous)
geoevent = createTrackIdleGeoEvent(idleStart, true,
geoEvent, ged);
else if (!idleStart.isIdling())
geoevent = createTrackIdleGeoEvent(idleStart, true,
geoEvent, ged);
idleStart.setIdling(true);
}
}
else
{
if (idleStart.isIdling())
{
geoevent = createTrackIdleGeoEvent(idleStart, false, geoEvent, ged);
}
idleStart.setGeometry(geoEvent.getGeometry());
idleStart.setStartTime(geoEvent.getStartTime());
idleStart.setIdling(false);
}
} else {
trackIdles.put(
cacheKey,
new TrackIdleProcessorStart(geoEvent.getTrackId(), startTime, geoEvent.getGeometry()));
}
} catch (Exception error) {
LOGGER.error(error.getMessage(), error);
}
return geoevent;
}
开发者ID:Esri,项目名称:defense-solutions-proofs-of-concept,代码行数:65,代码来源:TrackIdleProcessor.java
注:本文中的com.esri.ges.manager.geoeventdefinition.GeoEventDefinitionManagerException类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论