本文整理汇总了Java中com.esri.arcgis.geodatabase.IFeature.setValue方法的典型用法代码示例。如果您正苦于以下问题:Java IFeature.setValue方法的具体用法?Java IFeature.setValue怎么用?Java IFeature.setValue使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.esri.arcgis.geodatabase.IFeature
的用法示例。
在下文中一共展示了IFeature.setValue方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: 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();
}
}
示例2: 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();
}
}
示例3: 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();
}
}
示例4: 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();
}
}
示例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,容积率=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();
}
}
示例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;
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();
}
}
示例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,交易税费率=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();
}
}
示例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 月总租金,管理费率,维修费率,房屋成新度,保险费率,交易税费率,房屋建筑面;
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();
}
}
示例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;
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();
}
}
示例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;
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();
}
}
示例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,土地还原率=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();
}
}
示例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 土地取得费 = 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());
土地增值收益率 = getPPValue("土地增值收益率");
value = 土地取得费 + 土地开发费 + 税费 + 利息 + 利润
+ (土地取得费 + 土地开发费 + 税费 + 利息 + 利润) * 土地增值收益率;
feature.setValue(vIdx, new Double(value));
cursor.updateFeature(feature);
feature = cursor.nextFeature();
}
}
示例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,税后留利=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());
银行利息率=getPPValue("银行利息率");
土地还原率=getPPValue("土地还原率");
value=(((年产值-工资总额-利润额-税后留利-(流动资金+固定资金)*银行利息率)-非土地资产纯收益)/土地还原率)/用地面积;
feature.setValue(vIdx, new Double(value));
cursor.updateFeature(feature);
feature = cursor.nextFeature();
}
}
示例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,利润额=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());
银行利息率=getPPValue("银行利息率");
土地还原率=getPPValue("土地还原率");
value=(((年营业额-工资总额-利润额-税后留利-(流动资金+固定资金)*银行利息率)-非土地资产纯收益)/土地还原率)/用地面积;
feature.setValue(vIdx, new Double(value));
cursor.updateFeature(feature);
feature = cursor.nextFeature();
}
}
示例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,结构残置率=0,结构耐用年限=0,交易税费率=0,房屋还原率=0,房屋土地面=0,土地还原率=0,房屋建筑面=0;
String 房屋结构="";
double value = 0;
while (feature != null) {
//带入公式计算
//([月租金]*12/[建筑面积]-(([月租金]*12)/[建筑面积]*{管理费率}+{[房屋结构]结构重置价}*{维修费率}+{[房屋结构]结构重置价}*[房屋成新度]*{保险费率}+{[房屋结构]结构重置价}*(1-{[房屋结构]结构残置率})/{[房屋结构]结构耐用年限}+([月租金]*12)/[建筑面积]*{交易税费率}+{[房屋结构]结构重置价}*[房屋成新度]*{房屋还原率})/{土地还原率}
月总租金=Double.parseDouble((feature.getValue(getFieldsIdx("月总租金"))).toString());
管理费率=getPPValue("管理费率");
房屋结构=feature.getValue(getFieldsIdx("房屋结构")).toString();
结构重置价=getPPValue(房屋结构+"结构重置价");
维修费率=getPPValue("维修费率");
房屋成新度=Double.parseDouble((feature.getValue(getFieldsIdx("房屋成新度"))).toString());
保险费率=getPPValue("保险费率");
结构残置率=getPPValue(房屋结构+"结构残置率");
结构耐用年限=getPPValue(房屋结构+"结构耐用年限");
交易税费率=getPPValue("交易税费率");
房屋还原率=getPPValue("房屋还原率");
房屋土地面=Double.parseDouble((feature.getValue(getFieldsIdx("房屋土地面"))).toString());
//房屋建筑面=Double.parseDouble((feature.getValue(getFieldsIdx("房屋建筑面"))).toString());
//土地还原率=getPPValue("土地还原率");
value=月总租金*12/房屋土地面-(月总租金*12/房屋土地面*管理费率+结构重置价*维修费率+结构重置价*房屋成新度*保险费率+(结构重置价*(1-结构残置率))/结构耐用年限+月总租金*12/房屋土地面*交易税费率+结构重置价*房屋成新度*房屋还原率);
//value=(月总租金*12/房屋建筑面-((月总租金*12)/房屋建筑面*管理费率+结构重置价*维修费率+结构重置价*房屋成新度*保险费率+(结构重置价*(1-结构残置率))/结构耐用年限+(月总租金*12)/房屋建筑面*交易税费率+结构重置价*房屋成新度*房屋还原率))/土地还原率;
feature.setValue(vIdx, new Double(value));
cursor.updateFeature(feature);
feature = cursor.nextFeature();
}
}