当前位置: 首页>>代码示例>>Java>>正文


Java IFeature类代码示例

本文整理汇总了Java中com.esri.arcgis.geodatabase.IFeature的典型用法代码示例。如果您正苦于以下问题:Java IFeature类的具体用法?Java IFeature怎么用?Java IFeature使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


IFeature类属于com.esri.arcgis.geodatabase包,在下文中一共展示了IFeature类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: queryFeatureIDsForSpatialFilter

import com.esri.arcgis.geodatabase.IFeature; //导入依赖的package包/类
/**
   * 
   * @param spatialFilter
   * @return
   * @throws Exception
   */
  protected Collection<String> queryFeatureIDsForSpatialFilter(String spatialFilter) throws IOException
  {
      IGeometry geometry;
try {
	geometry = ServerUtilities.getGeometryFromJSON(new JSONObject(spatialFilter));
} catch (Exception e) {
	throw new IOException(e);
}
      IFeatureClass features = workspaceWrapper.getWorkspace().openFeatureClass(Table.FEATUREOFINTEREST);
      ISpatialFilter spatialQuery = new SpatialFilter();
      spatialQuery.setGeometryByRef(geometry);
      spatialQuery.setGeometryField(features.getShapeFieldName());
      spatialQuery.setSpatialRel(esriSpatialRelEnum.esriSpatialRelIntersects);
      spatialQuery.setSubFields(SubField.FEATUREOFINTEREST_ID);
      IFeatureCursor featureCursor = features.search(spatialQuery, true);

      IFeature feature = featureCursor.nextFeature();
      List<String> featureList = new ArrayList<String>();
      while (feature != null) {
          featureList.add((String)feature.getValue(0));
          feature = featureCursor.nextFeature();
      }

      return featureList;
  }
 
开发者ID:52North,项目名称:ArcGIS-Server-SOS-Extension,代码行数:32,代码来源:AccessGDBImpl.java

示例2: generateRowKey

import com.esri.arcgis.geodatabase.IFeature; //导入依赖的package包/类
@Override
public byte[] generateRowKey(final IFeature feature) throws IOException
{
    final double x, y;
    final IEnvelope extent = feature.getExtent();
    try
    {
        x = extent.getXMin();
        y = extent.getYMin();
    }
    finally
    {
        Cleaner.release(extent);
    }
    m_byteArrayOutputStream.reset();
    m_dataOutput.writeLong(Quad.encode(x, y));
    m_dataOutput.writeDouble(x);
    m_dataOutput.writeDouble(y);
    m_dataOutput.writeInt(feature.getOID()); // to "really" make it unique !!
    return m_byteArrayOutputStream.toByteArray();
}
 
开发者ID:mraad,项目名称:HBaseToolbox,代码行数:22,代码来源:RowKeyGeneratorQuadPoint.java

示例3: draw

import com.esri.arcgis.geodatabase.IFeature; //导入依赖的package包/类
/**
 * @see IFeatureRenderer#draw
 */
public void draw(IFeatureCursor iFeatureCursor, int drawPhase,
		IDisplay iDisplay, ITrackCancel iTrackCancel) throws IOException,
		AutomationException {
	// do not draw features if no display or wrong drawphase
	if (iDisplay == null || drawPhase != esriDrawPhase.esriDPGeography)
		return;
	// the draw symbol comes from pLegendGroup
	ISymbol pSym = pLegendGroup.esri_getClass(0).getSymbol();
	// do not draw features if symbol hasn't been set
	if (pSym == null)
		return;

	// loop through the features and draw them using the symbol
	IFeature pf = iFeatureCursor.nextFeature();
	while (pf != null) {
		IFeatureDraw pFD = new IFeatureDrawProxy(pf);
		pFD.draw(drawPhase, iDisplay, pSym, false, null,
				esriDrawStyle.esriDSNormal);
		pf = iFeatureCursor.nextFeature();
	}
}
 
开发者ID:vonpower,项目名称:VonRep,代码行数:25,代码来源:RendererDialog.java

示例4: getFeatureClasses

import com.esri.arcgis.geodatabase.IFeature; //导入依赖的package包/类
public IFeatureClass[] getFeatureClasses() {
	try {
		String folder = GV.getDefaultTempFileDirectoryPath();
		String fName = "feat2fc";
		int fCount = featureClass.featureCount(null);
		IFeatureCursor cursor = null;
		IFeatureBuffer buffer = null;
		IFeature feat = null;
		IFeatureClass[] fclses = new IFeatureClass[fCount];
		for (int i = 0; i < fCount; i++) {
			feat = featureClass.getFeature(i);
			fclses[i] = this.getFC(folder, fName, this.featureClass);
			cursor = fclses[i].IFeatureClass_insert(true);
			buffer = fclses[i].createFeatureBuffer();
			insertFeature(feat, cursor, buffer);
			cursor.flush();
		}
		return fclses;
	} catch (Exception e) {
		e.printStackTrace();
		return null;
	}

}
 
开发者ID:vonpower,项目名称:VonRep,代码行数:25,代码来源:Feat2FC.java

示例5: execute

import com.esri.arcgis.geodatabase.IFeature; //导入依赖的package包/类
public void execute() throws AutomationException, IOException {
		int vIdx = getVIdx();
		IFeatureCursor cursor = simplePoint.IFeatureClass_update(null, false);
		IFeature feature = cursor.nextFeature();
		//初始化公式变量
		double 出地方纯收入=0,出地方面积=0,土地还原率=0;
		double value = 0;
		while (feature != null) {
			//带入公式计算
			//([出地方纯收入]/[出地方面积])*(1/{土地还原率})
			出地方纯收入=Double.parseDouble((feature.getValue(getFieldsIdx("出地方纯收入"))).toString());
			出地方面积=Double.parseDouble((feature.getValue(getFieldsIdx("出地方面积"))).toString());
			土地还原率=getPPValue("土地还原率");
			
			
			value=(出地方纯收入/出地方面积)*(1/土地还原率);
			feature.setValue(vIdx, new Double(value));
			cursor.updateFeature(feature);
			feature = cursor.nextFeature();
}				
	}
 
开发者ID:vonpower,项目名称:VonRep,代码行数:22,代码来源:TDLYCalculator.java

示例6: execute

import com.esri.arcgis.geodatabase.IFeature; //导入依赖的package包/类
public void execute() throws AutomationException, IOException {
		int vIdx = getVIdx();
		IFeatureCursor cursor = simplePoint.IFeatureClass_update(null, false);
		IFeature feature = cursor.nextFeature();
		//初始化公式变量
		double 总销售价格=0,同类建筑平均造价=0,房屋建筑总面积=0,开发利润=0,销售税费=0,资金利息=0,建筑密度=0,房屋占地面积=0;
		double value = 0;
		while (feature != null) {
			//带入公式计算
			//([总销售价格]-([同类建筑平均造价]*[房屋建筑总面积])-[开发利润]-[销售税费]-[资金利息])*([建筑密度]/[房屋占地面积])
			总销售价格=Double.parseDouble((feature.getValue(getFieldsIdx("总销售价格"))).toString());
			同类建筑平均造价=Double.parseDouble((feature.getValue(getFieldsIdx("同类建筑平均造价"))).toString());
			房屋建筑总面积=Double.parseDouble((feature.getValue(getFieldsIdx("房屋建筑总面积"))).toString());
			开发利润=Double.parseDouble((feature.getValue(getFieldsIdx("开发利润"))).toString());
			销售税费=Double.parseDouble((feature.getValue(getFieldsIdx("销售税费"))).toString());
			资金利息=Double.parseDouble((feature.getValue(getFieldsIdx("资金利息"))).toString());
			建筑密度=Double.parseDouble((feature.getValue(getFieldsIdx("建筑密度"))).toString());
			房屋占地面积=Double.parseDouble((feature.getValue(getFieldsIdx("房屋占地面积"))).toString());
			
			value=(总销售价格-(同类建筑平均造价*房屋建筑总面积)-开发利润-销售税费-资金利息)*(建筑密度/房屋占地面积);
			feature.setValue(vIdx, new Double(value));
			cursor.updateFeature(feature);
			feature = cursor.nextFeature();
}		
		
	}
 
开发者ID:vonpower,项目名称:VonRep,代码行数:27,代码来源:SPFCSCalculator.java

示例7: execute

import com.esri.arcgis.geodatabase.IFeature; //导入依赖的package包/类
public void execute() throws AutomationException, IOException {
		int vIdx = getVIdx();
		IFeatureCursor cursor = simplePoint.IFeatureClass_update(null, false);
		IFeature feature = cursor.nextFeature();
		//初始化公式变量
		double 总租金=0,土地面积=0,土地还原率=0;
		double value = 0;
		while (feature != null) {
			//带入公式计算
			//([总租金]/[土地面积])*(1/{土地还原率})
			总租金=Double.parseDouble((feature.getValue(getFieldsIdx("总租金"))).toString());
			土地面积=Double.parseDouble((feature.getValue(getFieldsIdx("土地面积"))).toString());
			土地还原率=getPPValue("土地还原率");
			
			value=(总租金/土地面积)/(1-土地还原率);
			feature.setValue(vIdx, new Double(value));
			cursor.updateFeature(feature);
			feature = cursor.nextFeature();
}		
	}
 
开发者ID:vonpower,项目名称:VonRep,代码行数:21,代码来源:TDCZCalculator.java

示例8: execute

import com.esri.arcgis.geodatabase.IFeature; //导入依赖的package包/类
public void execute() throws AutomationException, IOException {
	int vIdx = getVIdx();
	IFeatureCursor cursor = simplePoint.IFeatureClass_update(null, false);
	IFeature feature = cursor.nextFeature();
	//初始化公式变量
	double 总价格=0,土地面积=0;
	double value = 0;
	while (feature != null) {
		//带入公式计算
		//[总价格]/[土地面积]
		总价格=Double.parseDouble((feature.getValue(getFieldsIdx("总价格"))).toString());
		土地面积=Double.parseDouble((feature.getValue(getFieldsIdx("土地面积"))).toString());
		
		value=总价格/土地面积;
		feature.setValue(vIdx, new Double(value));
		cursor.updateFeature(feature);
		feature = cursor.nextFeature();		
}
}
 
开发者ID:vonpower,项目名称:VonRep,代码行数:20,代码来源:TDCRCalculator.java

示例9: execute

import com.esri.arcgis.geodatabase.IFeature; //导入依赖的package包/类
public void execute() throws AutomationException, IOException {
		int vIdx = getVIdx();
		IFeatureCursor cursor = simplePoint.IFeatureClass_update(null, false);
		IFeature feature = cursor.nextFeature();
		//初始化公式变量
		double 单位面积造价=0,建设税费=0,出地方分成建筑面积=0,容积率=0,出资方分成建筑面积=0;
		double value = 0;
		while (feature != null) {
			//带入公式计算
			//(([单位面积造价]+[建设税费])*[出地方分成建筑面积]*[容积率])/[出资方分成建筑面积]
			单位面积造价=Double.parseDouble((feature.getValue(getFieldsIdx("单位面积造价"))).toString());
			建设税费=Double.parseDouble((feature.getValue(getFieldsIdx("建设税费"))).toString());
			出地方分成建筑面积=Double.parseDouble((feature.getValue(getFieldsIdx("出地方分成建筑面积"))).toString());
			容积率=Double.parseDouble((feature.getValue(getFieldsIdx("容积率"))).toString());
			出资方分成建筑面积=Double.parseDouble((feature.getValue(getFieldsIdx("出资方分成建筑面积"))).toString());
			
			
			value=((单位面积造价+建设税费)*出地方分成建筑面积*容积率)/出资方分成建筑面积;
			feature.setValue(vIdx, new Double(value));
			cursor.updateFeature(feature);
			feature = cursor.nextFeature();
}		
		
	}
 
开发者ID:vonpower,项目名称:VonRep,代码行数:25,代码来源:LHJFCalculator.java

示例10: execute

import com.esri.arcgis.geodatabase.IFeature; //导入依赖的package包/类
public void execute() throws AutomationException, IOException {
		int vIdx = getVIdx();
		IFeatureCursor cursor = simplePoint.IFeatureClass_update(null, false);
		IFeature feature = cursor.nextFeature();
		//初始化公式变量
		double 取得房屋面积=0,交易总价=0,房屋交易税费=0,房屋面积=0,出让土地面积=0;
		double value = 0;
		while (feature != null) {
			//带入公式计算
			//([取得房屋面积]*([交易总价]-[房屋交易税费])/[房屋面积])/[出让土地面积]
			取得房屋面积=Double.parseDouble((feature.getValue(getFieldsIdx("取得房屋面积"))).toString());
			交易总价=Double.parseDouble((feature.getValue(getFieldsIdx("交易总价"))).toString());
			房屋交易税费=Double.parseDouble((feature.getValue(getFieldsIdx("房屋交易税费"))).toString());
			房屋面积=Double.parseDouble((feature.getValue(getFieldsIdx("房屋面积"))).toString());
			出让土地面积=Double.parseDouble((feature.getValue(getFieldsIdx("出让土地面积"))).toString());
			
			value=(取得房屋面积*(交易总价-房屋交易税费)/房屋面积)/出让土地面积;
			feature.setValue(vIdx, new Double(value));
			cursor.updateFeature(feature);
			feature = cursor.nextFeature();
}		
	}
 
开发者ID:vonpower,项目名称:VonRep,代码行数:23,代码来源:YDHFCalculator.java

示例11: execute

import com.esri.arcgis.geodatabase.IFeature; //导入依赖的package包/类
public void execute() throws AutomationException, IOException {
	 int vIdx = getVIdx();
		IFeatureCursor cursor = simplePoint.IFeatureClass_update(null, false);
		IFeature feature = cursor.nextFeature();
		//初始化公式变量
		double 交易总价=0,结构重置价=0,房屋成新度=0,交易税费率=0,房屋建筑面=0;
		String 房屋结构="";
		double value = 0;
		while (feature != null) {
			//带入公式计算
			//([交易总价]-{[房屋结构]结构重置价}*[房屋成新度]-[交易总价]*{交易税费率})/[房屋建筑面]
			交易总价=Double.parseDouble((feature.getValue(getFieldsIdx("交易总价"))).toString());
			房屋结构=feature.getValue(getFieldsIdx("房屋结构")).toString();
			结构重置价=getPPValue(房屋结构+"结构重置价");
			房屋成新度=Double.parseDouble((feature.getValue(getFieldsIdx("房屋成新度"))).toString());
			交易税费率=getPPValue("交易税费率");
			房屋建筑面=Double.parseDouble((feature.getValue(getFieldsIdx("房屋建筑面"))).toString());
			
			value=(交易总价-结构重置价*房屋成新度-交易总价*交易税费率)/房屋建筑面;
			feature.setValue(vIdx, new Double(value));
			cursor.updateFeature(feature);
			feature = cursor.nextFeature();
}
}
 
开发者ID:vonpower,项目名称:VonRep,代码行数:25,代码来源:FWMMCalculator.java

示例12: execute

import com.esri.arcgis.geodatabase.IFeature; //导入依赖的package包/类
public void execute() throws AutomationException, IOException {
	int vIdx = getVIdx();
	IFeatureCursor cursor = simplePoint.IFeatureClass_update(null, false);
	IFeature feature = cursor.nextFeature();
	double 月总租金,管理费率,维修费率,房屋成新度,保险费率,交易税费率,房屋建筑面;
	String 房屋结构="";
	double value = 0;
	while (feature != null) {
		//带入公式计算
		//([月总租金]*12-([月总租金]*12*{管理费率}+{[房屋结构]结构重置价}*{维修费率}+{[房屋结构]结构重置价}*[房屋成新度]*{保险费率}+{[房屋结构]结构重置价}*(1-{[房屋结构]结构残置率})/{[房屋结构]结构耐用年限}+[月总租金]*12*{交易税费率}+{[房屋结构]结构重置价}*[房屋成新度]*{房屋还原率})/[房屋建筑面]"
		value=1000;
		feature.setValue(vIdx, new Double(value));
		cursor.updateFeature(feature);
		feature = cursor.nextFeature();

	}
	
}
 
开发者ID:vonpower,项目名称:VonRep,代码行数:19,代码来源:TestCalculator.java

示例13: execute

import com.esri.arcgis.geodatabase.IFeature; //导入依赖的package包/类
public void execute() throws AutomationException, IOException {
		int vIdx = getVIdx();
		IFeatureCursor cursor = simplePoint.IFeatureClass_update(null, false);
		IFeature feature = cursor.nextFeature();
		//初始化公式变量
		double 出资方总金额=0,出地方面积=0,出地方利润比例=0;
		double value = 0;
		while (feature != null) {
			//带入公式计算
			//[出资方总金额]*[出地方利润比例]*(1/[出地方面积])
			出资方总金额=Double.parseDouble((feature.getValue(getFieldsIdx("出资方总金额"))).toString());
			出地方利润比例=Double.parseDouble((feature.getValue(getFieldsIdx("出地方利润比例"))).toString());
			出地方面积=Double.parseDouble((feature.getValue(getFieldsIdx("出地方面积"))).toString());
			
			value=出资方总金额*出地方利润比例*(1/出地方面积);
			feature.setValue(vIdx, new Double(value));
			cursor.updateFeature(feature);
			feature = cursor.nextFeature();
}						
	}
 
开发者ID:vonpower,项目名称:VonRep,代码行数:21,代码来源:TDLY2.java

示例14: execute

import com.esri.arcgis.geodatabase.IFeature; //导入依赖的package包/类
public void execute() throws AutomationException, IOException {
		int vIdx = getVIdx();
		IFeatureCursor cursor = simplePoint.IFeatureClass_update(null, false);
		IFeature feature = cursor.nextFeature();
		//初始化公式变量
		double 转让总价格=0,土地面积=0;
		double value = 0;
		while (feature != null) {
			//带入公式计算
			//[转让总价格]/[土地面积]
			转让总价格=Double.parseDouble((feature.getValue(getFieldsIdx("转让总价格"))).toString());
			土地面积=Double.parseDouble((feature.getValue(getFieldsIdx("土地面积"))).toString());
			
			value=转让总价格/土地面积;
			feature.setValue(vIdx, new Double(value));
			cursor.updateFeature(feature);
			feature = cursor.nextFeature();
}
		
	}
 
开发者ID:vonpower,项目名称:VonRep,代码行数:21,代码来源:TDZRCalculator.java

示例15: execute

import com.esri.arcgis.geodatabase.IFeature; //导入依赖的package包/类
public void execute() throws AutomationException, IOException {
		int vIdx = getVIdx();
		IFeatureCursor cursor = simplePoint.IFeatureClass_update(null, false);
		IFeature feature = cursor.nextFeature();
		//初始化公式变量
		double 柜台年租金=0,商店年经营总费用=0,营业面积=0,总营业面积=0,土地面积=0,土地还原率=0;
		double value = 0;
		while (feature != null) {
			//带入公式计算
			//([柜台年租金]-商店年经营总费用*([营业面积]/[总营业面积]))/[土地面积]*([营业面积]/[总营业面积])*1/{土地还原率}
			柜台年租金=Double.parseDouble((feature.getValue(getFieldsIdx(" 柜台年租金"))).toString());
			营业面积=Double.parseDouble((feature.getValue(getFieldsIdx("营业面积"))).toString());
			总营业面积=Double.parseDouble((feature.getValue(getFieldsIdx("总营业面积"))).toString());
			土地面积=Double.parseDouble((feature.getValue(getFieldsIdx("土地面积"))).toString());
			土地还原率=getPPValue("土地还原率");
			value=(柜台年租金-商店年经营总费用*(营业面积/总营业面积))/土地面积*(营业面积/总营业面积)*1/土地还原率;
			feature.setValue(vIdx, new Double(value));
			cursor.updateFeature(feature);
			feature = cursor.nextFeature();
}
		
	}
 
开发者ID:vonpower,项目名称:VonRep,代码行数:23,代码来源:GTCZCalculator.java


注:本文中的com.esri.arcgis.geodatabase.IFeature类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。