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


Java RasterRelief类代码示例

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


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

示例1: apply

import org.citygml4j.model.citygml.relief.RasterRelief; //导入依赖的package包/类
public T apply(RasterRelief rasterRelief) {
	T object = apply((AbstractReliefComponent)rasterRelief);
	if (object != null)
		return object;

	if (rasterRelief.isSetGrid()) {
		object = apply(rasterRelief.getGrid());
		if (object != null)
			return object;
	}

	if (rasterRelief.isSetGenericApplicationPropertyOfRasterRelief()) {
		for (ADEComponent ade : new ArrayList<ADEComponent>(rasterRelief.getGenericApplicationPropertyOfRasterRelief())) {
			object = apply(ade);
			if (object != null)
				return object;
		}
	}

	return null;
}
 
开发者ID:citygml4j,项目名称:citygml4j,代码行数:22,代码来源:GMLFunctionWalker.java

示例2: getElementMapper

import org.citygml4j.model.citygml.relief.RasterRelief; //导入依赖的package包/类
private TypeMapper<JAXBElement<?>> getElementMapper() {
	if (elementMapper == null) {
		lock.lock();
		try {
			if (elementMapper == null) {
				elementMapper = TypeMapper.<JAXBElement<?>>create()
						.with(BreaklineRelief.class, this::createBreaklineRelief)
						.with(MassPointRelief.class, this::createMassPointRelief)
						.with(RasterRelief.class, this::createRasterRelief)
						.with(ReliefFeature.class, this::createReliefFeature)
						.with(TINRelief.class, this::createTINRelief);
			}
		} finally {
			lock.unlock();
		}
	}

	return elementMapper;
}
 
开发者ID:citygml4j,项目名称:citygml4j,代码行数:20,代码来源:Relief100Marshaller.java

示例3: getTypeMapper

import org.citygml4j.model.citygml.relief.RasterRelief; //导入依赖的package包/类
private TypeMapper<Object> getTypeMapper() {
	if (typeMapper == null) {
		lock.lock();
		try {
			if (typeMapper == null) {
				typeMapper = TypeMapper.create()
						.with(BreaklineRelief.class, this::marshalBreaklineRelief)
						.with(GridProperty.class, this::marshalGridProperty)
						.with(MassPointRelief.class, this::marshalMassPointRelief)
						.with(RasterRelief.class, this::marshalRasterRelief)
						.with(ReliefComponentProperty.class, this::marshalReliefComponentProperty)
						.with(ReliefFeature.class, this::marshalReliefFeature)
						.with(TinProperty.class, this::marshalTinProperty)
						.with(TINRelief.class, this::marshalTINRelief);
			}
		} finally {
			lock.unlock();
		}
	}

	return typeMapper;
}
 
开发者ID:citygml4j,项目名称:citygml4j,代码行数:23,代码来源:Relief100Marshaller.java

示例4: assignGenericProperty

import org.citygml4j.model.citygml.relief.RasterRelief; //导入依赖的package包/类
public boolean assignGenericProperty(ADEGenericElement genericProperty, QName substitutionGroup, CityGML dest) {
	String name = substitutionGroup.getLocalPart();
	boolean success = true;

	if (dest instanceof AbstractReliefComponent && name.equals("_GenericApplicationPropertyOfReliefComponent"))
		((AbstractReliefComponent)dest).addGenericApplicationPropertyOfReliefComponent(genericProperty);
	else if (dest instanceof BreaklineRelief && name.equals("_GenericApplicationPropertyOfBreaklineRelief"))
		((BreaklineRelief)dest).addGenericApplicationPropertyOfBreaklineRelief(genericProperty);
	else if (dest instanceof MassPointRelief && name.equals("_GenericApplicationPropertyOfMassPointRelief"))
		((MassPointRelief)dest).addGenericApplicationPropertyOfMassPointRelief(genericProperty);
	else if (dest instanceof RasterRelief && name.equals("_GenericApplicationPropertyOfRasterRelief"))
		((RasterRelief)dest).addGenericApplicationPropertyOfRasterRelief(genericProperty);
	else if (dest instanceof ReliefFeature && name.equals("_GenericApplicationPropertyOfReliefFeature"))
		((ReliefFeature)dest).addGenericApplicationPropertyOfReliefFeature(genericProperty);
	else if (dest instanceof TINRelief && name.equals("_GenericApplicationPropertyOfTinRelief"))
		((TINRelief)dest).addGenericApplicationPropertyOfTinRelief(genericProperty);
	else 
		success = false;

	return success;
}
 
开发者ID:citygml4j,项目名称:citygml4j,代码行数:22,代码来源:Relief100Unmarshaller.java

示例5: CG_RasterRelief

import org.citygml4j.model.citygml.relief.RasterRelief; //导入依赖的package包/类
public CG_RasterRelief(RasterRelief rR) {
  super(rR);
  /*
   * this.setGrid(new GridPropertyType())
   */
  System.out.println("Classe non gérée : RasterReliefType ");

}
 
开发者ID:IGNF,项目名称:geoxygene,代码行数:9,代码来源:CG_RasterRelief.java

示例6: visit

import org.citygml4j.model.citygml.relief.RasterRelief; //导入依赖的package包/类
public void visit(RasterRelief rasterRelief) {
	visit((AbstractReliefComponent)rasterRelief);

	if (rasterRelief.isSetGenericApplicationPropertyOfRasterRelief())
		for (ADEComponent ade : rasterRelief.getGenericApplicationPropertyOfRasterRelief())
			visit(ade);
}
 
开发者ID:3dcitydb,项目名称:importer-exporter,代码行数:8,代码来源:ADEPropertyCollector.java

示例7: visit

import org.citygml4j.model.citygml.relief.RasterRelief; //导入依赖的package包/类
public void visit(RasterRelief rasterRelief) {
	visit((AbstractReliefComponent)rasterRelief);

	if (rasterRelief.isSetGrid())
		visit(rasterRelief.getGrid());

	if (rasterRelief.isSetGenericApplicationPropertyOfRasterRelief())
		for (ADEComponent ade : new ArrayList<ADEComponent>(rasterRelief.getGenericApplicationPropertyOfRasterRelief()))
			visit(ade);
}
 
开发者ID:citygml4j,项目名称:citygml4j,代码行数:11,代码来源:GMLWalker.java

示例8: marshalRasterRelief

import org.citygml4j.model.citygml.relief.RasterRelief; //导入依赖的package包/类
public void marshalRasterRelief(RasterRelief src, RasterReliefType dest) {
	marshalAbstractReliefComponent(src, dest);

	if (src.isSetGrid())
		dest.setGrid(marshalGridProperty(src.getGrid()));

	if (src.isSetGenericApplicationPropertyOfRasterRelief()) {
		for (ADEComponent adeComponent : src.getGenericApplicationPropertyOfRasterRelief()) {
			JAXBElement<Object> jaxbElement = jaxb.getADEMarshaller().marshalJAXBElement(adeComponent);
			if (jaxbElement != null)
				dest.get_GenericApplicationPropertyOfRasterRelief().add(jaxbElement);
		}
	}
}
 
开发者ID:citygml4j,项目名称:citygml4j,代码行数:15,代码来源:Relief100Marshaller.java

示例9: unmarshalRasterRelief

import org.citygml4j.model.citygml.relief.RasterRelief; //导入依赖的package包/类
public void unmarshalRasterRelief(RasterReliefType src, RasterRelief dest) throws MissingADESchemaException {
	unmarshalAbstractReliefComponent(src, dest);

	if (src.isSetGrid())
		dest.setGrid(unmarshalGridProperty(src.getGrid()));

	if (src.isSet_GenericApplicationPropertyOfRasterRelief()) {
		for (JAXBElement<Object> elem : src.get_GenericApplicationPropertyOfRasterRelief()) {
			ADEModelObject ade = jaxb.getADEUnmarshaller().unmarshal(elem);
			if (ade != null)
				dest.addGenericApplicationPropertyOfRasterRelief(ade);
		}
	}
}
 
开发者ID:citygml4j,项目名称:citygml4j,代码行数:15,代码来源:Relief100Unmarshaller.java

示例10: generateReliefComponentType

import org.citygml4j.model.citygml.relief.RasterRelief; //导入依赖的package包/类
public static CG_AbstractReliefComponent generateReliefComponentType(AbstractReliefComponent rC) {

		if (rC instanceof TINRelief) {

			return new CG_TINRelief((TINRelief) rC);

		} else if (rC instanceof MassPointRelief) {

			return new CG_MassPointRelief((MassPointRelief) rC);

		} else if (rC instanceof BreaklineRelief) {

			return new CG_BreaklineRelief((BreaklineRelief) rC);

		} else if (rC instanceof RasterRelief) {

			return new CG_RasterRelief((RasterRelief) rC);

		} else {
			System.out.println("Classe non gérée :" + rC.getClass().getCanonicalName());
		}

		return null;

	}
 
开发者ID:IGNF,项目名称:geoxygene,代码行数:26,代码来源:CG_AbstractReliefComponent.java

示例11: doImport

import org.citygml4j.model.citygml.relief.RasterRelief; //导入依赖的package包/类
protected long doImport(ReliefFeature reliefFeature) throws CityGMLImportException, SQLException {
	FeatureType featureType = importer.getFeatureType(reliefFeature);
	if (featureType == null)
		throw new SQLException("Failed to retrieve feature type.");

	// import city object information
	long reliefFeatureId = cityObjectImporter.doImport(reliefFeature, featureType);

	// import relief feature information
	// primary id
	psReliefFeature.setLong(1, reliefFeatureId);

	// dem:lod
	psReliefFeature.setInt(2, reliefFeature.getLod());

	// objectclass id
	if (hasObjectClassIdColumn)
		psReliefFeature.setLong(3, featureType.getObjectClassId());

	psReliefFeature.addBatch();
	if (++batchCounter == importer.getDatabaseAdapter().getMaxBatchSize())
		importer.executeBatch(TableEnum.RELIEF_FEATURE);

	// dem:eliefComponent
	if (reliefFeature.isSetReliefComponent()) {
		for (ReliefComponentProperty property : reliefFeature.getReliefComponent()) {
			AbstractReliefComponent component = property.getReliefComponent();

			if (component != null) {
				if (component instanceof RasterRelief)
					importer.logOrThrowErrorMessage(new StringBuilder(importer.getObjectSignature(reliefFeature))
							.append(": Raster relief components are not supported.").toString());
				else
					reliefComponentImporter.doImport(component, reliefFeature, reliefFeatureId);

				property.unsetReliefComponent();
			} else {
				String href = property.getHref();
				if (href != null && href.length() != 0) {
					importer.propagateXlink(new DBXlinkBasic(
							TableEnum.RELIEF_FEAT_TO_REL_COMP.getName(),
							reliefFeatureId,
							"RELIEF_FEATURE_ID",
							href,
							"RELIEF_COMPONENT_ID"));
				}
			}
		}
	}
	
	// ADE-specific extensions
	if (importer.hasADESupport())
		importer.delegateToADEImporter(reliefFeature, reliefFeatureId, featureType);

	return reliefFeatureId;
}
 
开发者ID:3dcitydb,项目名称:importer-exporter,代码行数:57,代码来源:DBReliefFeature.java

示例12: createRasterRelief

import org.citygml4j.model.citygml.relief.RasterRelief; //导入依赖的package包/类
private JAXBElement<?> createRasterRelief(RasterRelief src) {
	return dem.createRasterRelief(marshalRasterRelief(src));
}
 
开发者ID:citygml4j,项目名称:citygml4j,代码行数:4,代码来源:Relief100Marshaller.java

示例13: visit

import org.citygml4j.model.citygml.relief.RasterRelief; //导入依赖的package包/类
public void visit(RasterRelief rasterRelief); 
开发者ID:citygml4j,项目名称:citygml4j,代码行数:2,代码来源:FeatureVisitor.java

示例14: apply

import org.citygml4j.model.citygml.relief.RasterRelief; //导入依赖的package包/类
public T apply(RasterRelief rasterRelief); 
开发者ID:citygml4j,项目名称:citygml4j,代码行数:2,代码来源:FeatureFunctor.java


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