本文整理汇总了Java中com.esri.ges.core.property.PropertyType.Double方法的典型用法代码示例。如果您正苦于以下问题:Java PropertyType.Double方法的具体用法?Java PropertyType.Double怎么用?Java PropertyType.Double使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.esri.ges.core.property.PropertyType
的用法示例。
在下文中一共展示了PropertyType.Double方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: IncrementalPointProcessorDefinition
import com.esri.ges.core.property.PropertyType; //导入方法依赖的package包/类
public IncrementalPointProcessorDefinition() throws PropertyException {
List<LabeledValue> allowedIn = new ArrayList<LabeledValue>();
allowedIn.add(new LabeledValue("${com.esri.geoevent.solutions.processor.incrementalPoint.incrementalPoint-processor.SEGMENTATION_TYPE_DISTANCE_LBL}","distance"));
allowedIn.add(new LabeledValue("${com.esri.geoevent.solutions.processor.incrementalPoint.incrementalPoint-processor.SEGMENTATION_TYPE_TIME_LBL}","time"));
allowedIn.add(new LabeledValue("${com.esri.geoevent.solutions.processor.incrementalPoint.incrementalPoint-processor.SEGMENTATION_TYPE_VERTEX_LBL}","vertex"));
PropertyDefinition pdInterval= new PropertyDefinition("intervalType", PropertyType.String, "", "${com.esri.geoevent.solutions.processor.incrementalPoint.incrementalPoint-processor.LBL_INTERVAL_TYPE}", "${com.esri.geoevent.solutions.processor.incrementalPoint.incrementalPoint-processor.DESC_INTERVAL_TYPE}",true, false, allowedIn);
propertyDefinitions.put(pdInterval.getPropertyName(), pdInterval);
PropertyDefinition pdTimeInterval = new PropertyDefinition("timeinterval", PropertyType.Long, 600000, "${com.esri.geoevent.solutions.processor.incrementalPoint.incrementalPoint-processor.LBL_TIME_INTERVAL}", "${com.esri.geoevent.solutions.processor.incrementalPoint.incrementalPoint-processor.DESC_TIME_INTERVAL}", false, false);
pdTimeInterval.setDependsOn("intervalType=time");
propertyDefinitions.put(pdTimeInterval.getPropertyName(),pdTimeInterval);
PropertyDefinition pdDistInterval = new PropertyDefinition("distanceinterval", PropertyType.Double, 0.0, "${com.esri.geoevent.solutions.processor.incrementalPoint.incrementalPoint-processor.LBL_DISTANCE_INTERVAL}", "${com.esri.geoevent.solutions.processor.incrementalPoint.incrementalPoint-processor.DESC_DISTANCE_INTERVAL}", false, false);
pdDistInterval.setDependsOn("intervalType=distance");
propertyDefinitions.put(pdDistInterval.getPropertyName(),pdDistInterval);
PropertyDefinition pdwkid = new PropertyDefinition("wkid", PropertyType.Integer, "", "${com.esri.geoevent.solutions.processor.incrementalPoint.incrementalPoint-processor.LBL_PROCESS_WKID}", "${com.esri.geoevent.solutions.processor.incrementalPoint.incrementalPoint-processor.DESC_PROCESS_WKID}",true, false);
propertyDefinitions.put(pdwkid.getPropertyName(), pdwkid);
PropertyDefinition pdOutDef = new PropertyDefinition("outdefname", PropertyType.String, "", "${com.esri.geoevent.solutions.processor.incrementalPoint.incrementalPoint-processor.LBL_OUTDEFNAME}", "${com.esri.geoevent.solutions.processor.incrementalPoint.incrementalPoint-processor.DESC_OUTDEFNAME}", true, false);
propertyDefinitions.put(pdOutDef.getPropertyName(), pdOutDef);
}
开发者ID:Esri,项目名称:defense-solutions-proofs-of-concept,代码行数:22,代码来源:IncrementalPointProcessorDefinition.java
示例2: GeoNamesOSMPOIProcessorDefinition
import com.esri.ges.core.property.PropertyType; //导入方法依赖的package包/类
public GeoNamesOSMPOIProcessorDefinition()
{
try
{
PropertyDefinition geoNamesUsernameProperty = new PropertyDefinition(GEONAMES_USERNAME_PROPERTY, PropertyType.String, "", "GeoNames Username (optional)", "If you purchased GeoNames Premium services, enter your username. If blank, a more limited free account will be used.", false, false);
propertyDefinitions.put(GEONAMES_USERNAME_PROPERTY, geoNamesUsernameProperty);
PropertyDefinition geoNamesOSMPOIsRadiusProperty = new PropertyDefinition(GEONAMES_OSMPOIsRADIUS_PROPERTY, PropertyType.Double, 1, "GeoNames OpenStreetmap POI Search Radius (Km)", "The distance from the geoevent's location within which to search for OpenStreetmap Points of Interest. Max for a free account = 1, max for a premium account = 3.", true, false);
propertyDefinitions.put(GEONAMES_OSMPOIsRADIUS_PROPERTY, geoNamesOSMPOIsRadiusProperty);
PropertyDefinition geoNamesOSMPOIsMaxRowsProperty = new PropertyDefinition(GEONAMES_OSMPOIsMAXROWS_PROPERTY, PropertyType.Integer, 50, "GeoNames OpenStreetmap POI Max Rows", "The maximum number of OpenStreetmap Points of Interest to return. Max for a free account = 50, max for a premium account = 150.", true, false);
propertyDefinitions.put(GEONAMES_OSMPOIsMAXROWS_PROPERTY, geoNamesOSMPOIsMaxRowsProperty);
GeoEventDefinition ged = new DefaultGeoEventDefinition();
ged.setName("GeoNamesOSMPOI");
List<FieldDefinition> fds = new ArrayList<FieldDefinition>();
fds.add(new DefaultFieldDefinition("trackId", FieldType.String, "TRACK_ID"));
fds.add(new DefaultFieldDefinition("timestamp", FieldType.Date, "TIME_START"));
fds.add(new DefaultFieldDefinition("incidentId", FieldType.String));
fds.add(new DefaultFieldDefinition("typeName", FieldType.String));
fds.add(new DefaultFieldDefinition("distance", FieldType.Double));
fds.add(new DefaultFieldDefinition("name", FieldType.String));
fds.add(new DefaultFieldDefinition("lng", FieldType.Double));
fds.add(new DefaultFieldDefinition("typeClass", FieldType.String));
fds.add(new DefaultFieldDefinition("lat", FieldType.Double));
fds.add(new DefaultFieldDefinition("geometry", FieldType.Geometry, "GEOMETRY"));
ged.setFieldDefinitions(fds);
geoEventDefinitions.put(ged.getName(), ged);
}
catch (PropertyException ex)
{
;
}
catch (ConfigurationException e)
{
// TODO Auto-generated catch block
e.printStackTrace();
}
}