本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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;
}
示例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 ");
}
示例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);
}
示例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);
}
示例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);
}
}
}
示例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);
}
}
}
示例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;
}
示例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;
}
示例12: createRasterRelief
import org.citygml4j.model.citygml.relief.RasterRelief; //导入依赖的package包/类
private JAXBElement<?> createRasterRelief(RasterRelief src) {
return dem.createRasterRelief(marshalRasterRelief(src));
}
示例13: visit
import org.citygml4j.model.citygml.relief.RasterRelief; //导入依赖的package包/类
public void visit(RasterRelief rasterRelief);
示例14: apply
import org.citygml4j.model.citygml.relief.RasterRelief; //导入依赖的package包/类
public T apply(RasterRelief rasterRelief);