• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java AbstractCityObject类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: doExport

import org.citygml4j.model.citygml.core.AbstractCityObject; //导入依赖的package包/类
protected Collection<AbstractCityObject> doExport(AbstractBridge parent, long parentId, ProjectionFilter parentProjectionFilter) throws CityGMLExportException, SQLException {
	boolean exterior = parentProjectionFilter.containsProperty("outerBridgeInstallation", bridgeModule);
	boolean interior = parentProjectionFilter.containsProperty("interiorBridgeInstallation", bridgeModule);
	if (!exterior && !interior)
		return Collections.emptyList();
	
	PreparedStatement ps = null;
	if (!exterior)
		ps = getOrCreateStatement("bridge_id", IntBridgeInstallation.class);
	else if (!interior)
		ps = getOrCreateStatement("bridge_id", BridgeInstallation.class);
	else
		ps = getOrCreateStatement("bridge_id");
	
	return doExport(parentId, null, null, ps);
}
 
开发者ID:3dcitydb,项目名称:importer-exporter,代码行数:17,代码来源:DBBridgeInstallation.java


示例2: marshalSemantics

import org.citygml4j.model.citygml.core.AbstractCityObject; //导入依赖的package包/类
public SemanticsType marshalSemantics(AbstractCityObject cityObject) {
	SemanticsType semantics = null;

	if (cityObject instanceof RoofSurface)
		semantics = new SemanticsType(SemanticsTypeName.ROOF_SURFACE);
	else if (cityObject instanceof GroundSurface)
		semantics = new SemanticsType(SemanticsTypeName.GROUND_SURFACE);
	else if (cityObject instanceof WallSurface)
		semantics = new SemanticsType(SemanticsTypeName.WALL_SURFACE);
	else if (cityObject instanceof ClosureSurface)
		semantics = new SemanticsType(SemanticsTypeName.CLOSURE_SURFACE);
	else if (cityObject instanceof OuterCeilingSurface)
		semantics = new SemanticsType(SemanticsTypeName.OUTER_CEILING_SURFACE);
	else if (cityObject instanceof OuterFloorSurface)
		semantics = new SemanticsType(SemanticsTypeName.OUTER_FLOOR_SURFACE);
	else if (cityObject instanceof Window)
		semantics = new SemanticsType(SemanticsTypeName.WINDOW);
	else if (cityObject instanceof Door)
		semantics = new SemanticsType(SemanticsTypeName.DOOR);

	if (semantics != null && cityObject.isSetGenericAttribute())
		citygml.getGenericsMarshaller().marshalSemanticsAttributes(cityObject.getGenericAttribute(), semantics);

	return semantics;
}
 
开发者ID:citygml4j,项目名称:citygml4j,代码行数:26,代码来源:TunnelMarshaller.java


示例3: doExport

import org.citygml4j.model.citygml.core.AbstractCityObject; //导入依赖的package包/类
protected Collection<AbstractCityObject> doExport(AbstractTunnel parent, long parentId, ProjectionFilter parentProjectionFilter) throws CityGMLExportException, SQLException {
	boolean exterior = parentProjectionFilter.containsProperty("outerTunnelInstallation", tunnelModule);
	boolean interior = parentProjectionFilter.containsProperty("interiorTunnelInstallation", tunnelModule);
	if (!exterior && !interior)
		return Collections.emptyList();

	PreparedStatement ps = null;
	if (!exterior)
		ps = getOrCreateStatement("tunnel_id", IntTunnelInstallation.class);
	else if (!interior)
		ps = getOrCreateStatement("tunnel_id", TunnelInstallation.class);
	else
		ps = getOrCreateStatement("tunnel_id");

	return doExport(parentId, null, null, ps);
}
 
开发者ID:3dcitydb,项目名称:importer-exporter,代码行数:17,代码来源:DBTunnelInstallation.java


示例4: unmarshalMaterial

import org.citygml4j.model.citygml.core.AbstractCityObject; //导入依赖的package包/类
private void unmarshalMaterial(Collection<? extends AbstractMaterialObject> materialObjects, List<AbstractSurface> surfaces, AbstractCityObject cityObject) {
	for (AbstractMaterialObject materialObject : materialObjects) {
		Map<Integer, List<AbstractSurface>> materials = null;

		if (materialObject.isSetValues()) 
			materials = collectSurfaces(materialObject.flatValues(), surfaces);
		else if (materialObject.isSetValue()) {
			materials = new HashMap<>();
			materials.put(materialObject.getValue(), surfaces);
		} else
			continue;

		// create X3D material
		json.getCityGMLUnmarshaller().getAppearanceUnmarshaller().unmarshalMaterial(materialObject, materials, cityObject);
	}
}
 
开发者ID:citygml4j,项目名称:citygml4j,代码行数:17,代码来源:GMLUnmarshaller.java


示例5: registerAppearances

import org.citygml4j.model.citygml.core.AbstractCityObject; //导入依赖的package包/类
public void registerAppearances(AbstractCityObject cityObject, long cityObjectId) throws CityGMLImportException {
	if (cityObject.isSetAppearance()) {
		List<Appearance> appearances = new ArrayList<>();
		
		for (AppearanceProperty property : cityObject.getAppearance()) {
			Appearance appearance = property.getAppearance();
			
			if (appearance != null) {
				// unlink parent to be able to free memory
				appearance.unsetParent();
				appearances.add(appearance);
			} else {					
				String href = property.getHref();
				if (href != null && href.length() != 0)
					importer.logOrThrowUnsupportedXLinkMessage(cityObject, Appearance.class, href);
			}
		}
		
		if (!appearances.isEmpty())
			this.appearances.put(cityObjectId, appearances);
	}
}
 
开发者ID:3dcitydb,项目名称:importer-exporter,代码行数:23,代码来源:LocalTextureCoordinatesResolver.java


示例6: visit

import org.citygml4j.model.citygml.core.AbstractCityObject; //导入依赖的package包/类
public void visit(CityObjectGroup cityObjectGroup) {
	visit((AbstractCityObject)cityObjectGroup);

	if (cityObjectGroup.isSetGroupMember())
		for (CityObjectGroupMember cityObjectGroupMember : new ArrayList<CityObjectGroupMember>(cityObjectGroup.getGroupMember()))
			visit(cityObjectGroupMember);

	if (cityObjectGroup.isSetGroupParent())
		visit(cityObjectGroup.getGroupParent());

	if (cityObjectGroup.isSetGeometry())
		visit(cityObjectGroup.getGeometry());

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


示例7: unmarshal

import org.citygml4j.model.citygml.core.AbstractCityObject; //导入依赖的package包/类
public AbstractCityObject unmarshal(AbstractCityObjectType src, CityJSON cityJSON) {
	AbstractCityObject dest = null;
	
	if (src instanceof BridgeType)
		dest = brid.unmarshal(src, cityJSON);
	else if (src instanceof BuildingType)
		dest = bldg.unmarshal(src, cityJSON);
	else if (src instanceof CityFurnitureType)
		dest = frn.unmarshalCityFurniture((CityFurnitureType)src);		
	else if (src instanceof GenericCityObjectType)
		dest = gen.unmarshalGenericCityObject((GenericCityObjectType)src);
	else if (src instanceof LandUseType)
		dest = luse.unmarshalLandUse((LandUseType)src);
	else if (src instanceof TINReliefType)
		dest = dem.unmarshalTINRelief((TINReliefType)src);
	else if (src instanceof AbstractTransportationComplexType)
		dest = tran.unmarshal(src, cityJSON);
	else if (src instanceof TunnelType)
		dest = tun.unmarshal(src, cityJSON);
	else if (src instanceof AbstractVegetationObjectType)
		dest = veg.unmarshal(src, cityJSON);
	else if (src instanceof WaterBodyType)
		dest = wtr.unmarshalWaterBody((WaterBodyType)src);
	
	return dest;
}
 
开发者ID:citygml4j,项目名称:citygml4j,代码行数:27,代码来源:CityGMLUnmarshaller.java


示例8: apply

import org.citygml4j.model.citygml.core.AbstractCityObject; //导入依赖的package包/类
public T apply(org.citygml4j.model.citygml.bridge.AbstractBoundarySurface abstractBoundarySurface) {
	T object = apply((AbstractCityObject)abstractBoundarySurface);
	if (object != null)
		return object;

	if (abstractBoundarySurface.isSetOpening()) {
		for (org.citygml4j.model.citygml.bridge.OpeningProperty openingProperty : new ArrayList<org.citygml4j.model.citygml.bridge.OpeningProperty>(abstractBoundarySurface.getOpening())) {
			object = apply(openingProperty);
			if (object != null)
				return object;					
		}
	}

	if (abstractBoundarySurface.isSetGenericApplicationPropertyOfBoundarySurface()) {
		for (ADEComponent ade : new ArrayList<ADEComponent>(abstractBoundarySurface.getGenericApplicationPropertyOfBoundarySurface())) {
			object = apply(ade);
			if (object != null)
				return object;
		}
	}		

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


示例9: visit

import org.citygml4j.model.citygml.core.AbstractCityObject; //导入依赖的package包/类
public void visit(BridgeRoom bridgeRoom) {
	visit((AbstractCityObject)bridgeRoom);

	if (bridgeRoom.isSetBoundedBySurface())
		for (org.citygml4j.model.citygml.bridge.BoundarySurfaceProperty boundarySurfaceProperty : new ArrayList<org.citygml4j.model.citygml.bridge.BoundarySurfaceProperty>(bridgeRoom.getBoundedBySurface()))
			visit(boundarySurfaceProperty);

	if (bridgeRoom.isSetInteriorFurniture())
		for (org.citygml4j.model.citygml.bridge.InteriorFurnitureProperty interiorFurnitureProperty : new ArrayList<org.citygml4j.model.citygml.bridge.InteriorFurnitureProperty>(bridgeRoom.getInteriorFurniture()))
			visit(interiorFurnitureProperty);

	if (bridgeRoom.isSetBridgeRoomInstallation())
		for (IntBridgeInstallationProperty intBridgeInstallationProperty : new ArrayList<IntBridgeInstallationProperty>(bridgeRoom.getBridgeRoomInstallation()))
			visit(intBridgeInstallationProperty);

	if (bridgeRoom.isSetGenericApplicationPropertyOfBridgeRoom())
		for (ADEComponent ade : new ArrayList<ADEComponent>(bridgeRoom.getGenericApplicationPropertyOfBridgeRoom()))
			visit(ade);
}
 
开发者ID:citygml4j,项目名称:citygml4j,代码行数:20,代码来源:FeatureWalker.java


示例10: assignGenericProperty

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

	if (dest instanceof AbstractCityObject && name.equals("_GenericApplicationPropertyOfCityObject"))
		((AbstractCityObject)dest).addGenericApplicationPropertyOfCityObject(genericProperty);
	else if (dest instanceof AbstractSite && name.equals("_GenericApplicationPropertyOfSite"))
		((AbstractSite)dest).addGenericApplicationPropertyOfSite(genericProperty);
	else if (dest instanceof Address && name.equals("_GenericApplicationPropertyOfAddress"))
		((Address)dest).addGenericApplicationPropertyOfAddress(genericProperty);
	else if (dest instanceof CityModel && name.equals("_GenericApplicationPropertyOfCityModel"))
		((CityModel)dest).addGenericApplicationPropertyOfCityModel(genericProperty);
	else 
		success = false;

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


示例11: apply

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

	if (abstractReliefComponent.isSetExtent()) {
		object = apply(abstractReliefComponent.getExtent());
		if (object != null)
			return object;
	}

	if (abstractReliefComponent.isSetGenericApplicationPropertyOfReliefComponent()) {
		for (ADEComponent ade : new ArrayList<ADEComponent>(abstractReliefComponent.getGenericApplicationPropertyOfReliefComponent())) {
			object = apply(ade);
			if (object != null)
				return object;
		}
	}		

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


示例12: apply

import org.citygml4j.model.citygml.core.AbstractCityObject; //导入依赖的package包/类
public T apply(NoiseCityFurnitureSegment noiseCityFurnitureSegment) {
	T object = walker.apply((AbstractCityObject)noiseCityFurnitureSegment);
	if (object != null)
		return object;
	
	if (noiseCityFurnitureSegment.isSetLod0BaseLine()) {
		object = walker.apply(noiseCityFurnitureSegment.getLod0BaseLine());
		if (object != null)
			return object;
	}
	
	return null;
}
 
开发者ID:citygml4j,项目名称:module-noise-ade,代码行数:14,代码来源:NoiseADEGMLFunctionWalker.java


示例13: export

import org.citygml4j.model.citygml.core.AbstractCityObject; //导入依赖的package包/类
@Override
public AbstractCityObject export() {
  BuildingPart build = new BuildingPart();
  this.complete(build);

  return build;
}
 
开发者ID:IGNF,项目名称:geoxygene,代码行数:8,代码来源:CG_BuildingPart.java


示例14: export

import org.citygml4j.model.citygml.core.AbstractCityObject; //导入依赖的package包/类
@Override
public AbstractCityObject export() {
  
  BuildingFurniture bF = new BuildingFurniture();
  bF.setClazz(this.getClazz());
  bF.setFunction(this.getFunction());
  bF.setUsage(this.getUsage());
  if(bF.isSetLod4Geometry()){
    bF.setLod4Geometry(ConvertToCityGMLGeometry.convertGeometryProperty(this.getLod4Geometry()));
          
  }
  
  
  return bF;
}
 
开发者ID:IGNF,项目名称:geoxygene,代码行数:16,代码来源:CG_BuildingFurniture.java


示例15: export

import org.citygml4j.model.citygml.core.AbstractCityObject; //导入依赖的package包/类
@Override
public AbstractCityObject export() {
  IntBuildingInstallation iBout = new IntBuildingInstallation();
  iBout.setClazz(this.getClazz());
  iBout.setFunction(this.getFunction());
  iBout.setUsage(this.getUsage());

  iBout.setLod4Geometry(ConvertToCityGMLGeometry.convertGeometryProperty(this
      .getLod4Geometry()));

  return iBout;
}
 
开发者ID:IGNF,项目名称:geoxygene,代码行数:13,代码来源:CG_IntBuildingInstallation.java


示例16: readCityGMLFile

import org.citygml4j.model.citygml.core.AbstractCityObject; //导入依赖的package包/类
/**
 * Returns a list for BuildingCallable read by CityGML file
 * 
 * @param pathtocitygmlfile
 * @param options
 * @return List<BuildingCallable>
 * @throws Exception
 */
public List<BuildingCallable> readCityGMLFile(String pathtocitygmlfile, Options options) throws Exception {

	this.options = options;
	
	List<BuildingCallable> buildings = new ArrayList<BuildingCallable>();
	
	CityGMLContext ctx = new CityGMLContext();
	CityGMLBuilder builder = ctx.createCityGMLBuilder();
	CityGMLInputFactory in = builder.createCityGMLInputFactory();
	CityGMLReader reader = in.createCityGMLReader(new File(pathtocitygmlfile));
	
	while (reader.hasNext()) {
		CityGML citygml = reader.nextFeature();
		
		if (citygml.getCityGMLClass() == CityGMLClass.CITY_MODEL) {
			CityModel cityModel = (CityModel)citygml;
			
			for (CityObjectMember cityObjectMember : cityModel.getCityObjectMember()) {
				AbstractCityObject cityObject = cityObjectMember.getCityObject();
				if (cityObject.getCityGMLClass() == CityGMLClass.BUILDING){
					
					Building building = (Building)cityObject;
					String buildingID = building.getId();
					BuildingCallable buildingcallable = new BuildingCallable();
					buildingcallable.setBsp(building.getBoundedBySurface());
					buildingcallable.setBuildingId(buildingID);
					buildingcallable.setOptions(options);
					buildings.add(buildingcallable);
				}	
			}
		}	
	}			
	
	reader.close();
	return buildings;
}
 
开发者ID:SteuerHorst,项目名称:Voluminator,代码行数:45,代码来源:BuildingReader.java


示例17: DBBridgeInstallation

import org.citygml4j.model.citygml.core.AbstractCityObject; //导入依赖的package包/类
public DBBridgeInstallation(Connection connection, CityGMLExportManager exporter) throws CityGMLExportException, SQLException {
	super(AbstractCityObject.class, connection, exporter);

	CombinedProjectionFilter projectionFilter = exporter.getCombinedProjectionFilter(TableEnum.BRIDGE_INSTALLATION.getName());
	bridgeModule = exporter.getTargetCityGMLVersion().getCityGMLModule(CityGMLModuleType.BRIDGE).getNamespaceURI();
	lodFilter = exporter.getLodFilter();
	String schema = exporter.getDatabaseAdapter().getConnectionDetails().getSchema();

	table = new Table(TableEnum.BRIDGE_INSTALLATION.getName(), schema);
	select = new Select().addProjection(table.getColumn("id"), table.getColumn("objectclass_id"));
	if (projectionFilter.containsProperty("class", bridgeModule)) select.addProjection(table.getColumn("class"), table.getColumn("class_codespace"));
	if (projectionFilter.containsProperty("function", bridgeModule)) select.addProjection(table.getColumn("function"), table.getColumn("function_codespace"));
	if (projectionFilter.containsProperty("usage", bridgeModule)) select.addProjection(table.getColumn("usage"), table.getColumn("usage_codespace"));	
	if (projectionFilter.containsProperty("lod2Geometry", bridgeModule)) select.addProjection(table.getColumn("lod2_brep_id"), exporter.getGeometryColumn(table.getColumn("lod2_other_geom")));
	if (projectionFilter.containsProperty("lod3Geometry", bridgeModule)) select.addProjection(table.getColumn("lod3_brep_id"), exporter.getGeometryColumn(table.getColumn("lod3_other_geom")));
	if (projectionFilter.containsProperty("lod4Geometry", bridgeModule)) select.addProjection(table.getColumn("lod4_brep_id"), exporter.getGeometryColumn(table.getColumn("lod4_other_geom")));
	if (projectionFilter.containsProperty("lod2ImplicitRepresentation", bridgeModule))
		select.addProjection(table.getColumn("lod2_implicit_rep_id"), exporter.getGeometryColumn(table.getColumn("lod2_implicit_ref_point")), table.getColumn("lod2_implicit_transformation"));
	if (projectionFilter.containsProperty("lod3ImplicitRepresentation", bridgeModule))
		select.addProjection(table.getColumn("lod3_implicit_rep_id"), exporter.getGeometryColumn(table.getColumn("lod3_implicit_ref_point")), table.getColumn("lod3_implicit_transformation"));
	if (projectionFilter.containsProperty("lod4ImplicitRepresentation", bridgeModule))
		select.addProjection(table.getColumn("lod4_implicit_rep_id"), exporter.getGeometryColumn(table.getColumn("lod4_implicit_ref_point")), table.getColumn("lod4_implicit_transformation"));

	// add joins to ADE hook tables
	if (exporter.hasADESupport()) {
		adeHookTables = exporter.getADEHookTables(TableEnum.BRIDGE_INSTALLATION);			
		if (adeHookTables != null) addJoinsToADEHookTables(adeHookTables, table);
	}
	
	cityObjectReader = exporter.getExporter(DBCityObject.class);
	thematicSurfaceExporter = exporter.getExporter(DBBridgeThematicSurface.class);
	geometryExporter = exporter.getExporter(DBSurfaceGeometry.class);
	gmlConverter = exporter.getGMLConverter();			
	valueSplitter = exporter.getAttributeValueSplitter();		
}
 
开发者ID:3dcitydb,项目名称:importer-exporter,代码行数:36,代码来源:DBBridgeInstallation.java


示例18: DBBuildingInstallation

import org.citygml4j.model.citygml.core.AbstractCityObject; //导入依赖的package包/类
public DBBuildingInstallation(Connection connection, CityGMLExportManager exporter) throws CityGMLExportException, SQLException {
	super(AbstractCityObject.class, connection, exporter);

	CombinedProjectionFilter projectionFilter = exporter.getCombinedProjectionFilter(TableEnum.BUILDING_INSTALLATION.getName());
	buildingModule = exporter.getTargetCityGMLVersion().getCityGMLModule(CityGMLModuleType.BUILDING).getNamespaceURI();
	lodFilter = exporter.getLodFilter();
	String schema = exporter.getDatabaseAdapter().getConnectionDetails().getSchema();
	
	table = new Table(TableEnum.BUILDING_INSTALLATION.getName(), schema);
	select = new Select().addProjection(table.getColumn("id"), table.getColumn("objectclass_id"));
	if (projectionFilter.containsProperty("class", buildingModule)) select.addProjection(table.getColumn("class"), table.getColumn("class_codespace"));
	if (projectionFilter.containsProperty("function", buildingModule)) select.addProjection(table.getColumn("function"), table.getColumn("function_codespace"));
	if (projectionFilter.containsProperty("usage", buildingModule)) select.addProjection(table.getColumn("usage"), table.getColumn("usage_codespace"));		
	if (projectionFilter.containsProperty("lod2Geometry", buildingModule)) select.addProjection(table.getColumn("lod2_brep_id"), exporter.getGeometryColumn(table.getColumn("lod2_other_geom")));
	if (projectionFilter.containsProperty("lod3Geometry", buildingModule)) select.addProjection(table.getColumn("lod3_brep_id"), exporter.getGeometryColumn(table.getColumn("lod3_other_geom")));
	if (projectionFilter.containsProperty("lod4Geometry", buildingModule)) select.addProjection(table.getColumn("lod4_brep_id"), exporter.getGeometryColumn(table.getColumn("lod4_other_geom")));
	if (projectionFilter.containsProperty("lod2ImplicitRepresentation", buildingModule))
		select.addProjection(table.getColumn("lod2_implicit_rep_id"), exporter.getGeometryColumn(table.getColumn("lod2_implicit_ref_point")), table.getColumn("lod2_implicit_transformation"));
	if (projectionFilter.containsProperty("lod3ImplicitRepresentation", buildingModule))
		select.addProjection(table.getColumn("lod3_implicit_rep_id"), exporter.getGeometryColumn(table.getColumn("lod3_implicit_ref_point")), table.getColumn("lod3_implicit_transformation"));
	if (projectionFilter.containsProperty("lod4ImplicitRepresentation", buildingModule))
		select.addProjection(table.getColumn("lod4_implicit_rep_id"), exporter.getGeometryColumn(table.getColumn("lod4_implicit_ref_point")), table.getColumn("lod4_implicit_transformation"));
	
	// add joins to ADE hook tables
	if (exporter.hasADESupport()) {
		adeHookTables = exporter.getADEHookTables(TableEnum.BUILDING_INSTALLATION);			
		if (adeHookTables != null) addJoinsToADEHookTables(adeHookTables, table);
	}
	
	cityObjectExporter = exporter.getExporter(DBCityObject.class);
	thematicSurfaceExporter = exporter.getExporter(DBThematicSurface.class);
	geometryExporter = exporter.getExporter(DBSurfaceGeometry.class);
	implicitGeometryExporter = exporter.getExporter(DBImplicitGeometry.class);
	gmlConverter = exporter.getGMLConverter();			
	valueSplitter = exporter.getAttributeValueSplitter();
}
 
开发者ID:3dcitydb,项目名称:importer-exporter,代码行数:37,代码来源:DBBuildingInstallation.java


示例19: DBTunnelInstallation

import org.citygml4j.model.citygml.core.AbstractCityObject; //导入依赖的package包/类
public DBTunnelInstallation(Connection connection, CityGMLExportManager exporter) throws CityGMLExportException, SQLException {
	super(AbstractCityObject.class, connection, exporter);

	CombinedProjectionFilter projectionFilter = exporter.getCombinedProjectionFilter(TableEnum.TUNNEL_INSTALLATION.getName());
	tunnelModule = exporter.getTargetCityGMLVersion().getCityGMLModule(CityGMLModuleType.TUNNEL).getNamespaceURI();
	lodFilter = exporter.getLodFilter();
	String schema = exporter.getDatabaseAdapter().getConnectionDetails().getSchema();

	table = new Table(TableEnum.TUNNEL_INSTALLATION.getName(), schema);
	select = new Select().addProjection(table.getColumn("id"), table.getColumn("objectclass_id"));
	if (projectionFilter.containsProperty("class", tunnelModule)) select.addProjection(table.getColumn("class"), table.getColumn("class_codespace"));
	if (projectionFilter.containsProperty("function", tunnelModule)) select.addProjection(table.getColumn("function"), table.getColumn("function_codespace"));
	if (projectionFilter.containsProperty("usage", tunnelModule)) select.addProjection(table.getColumn("usage"), table.getColumn("usage_codespace"));	
	if (projectionFilter.containsProperty("lod2Geometry", tunnelModule)) select.addProjection(table.getColumn("lod2_brep_id"), exporter.getGeometryColumn(table.getColumn("lod2_other_geom")));
	if (projectionFilter.containsProperty("lod3Geometry", tunnelModule)) select.addProjection(table.getColumn("lod3_brep_id"), exporter.getGeometryColumn(table.getColumn("lod3_other_geom")));
	if (projectionFilter.containsProperty("lod4Geometry", tunnelModule)) select.addProjection(table.getColumn("lod4_brep_id"), exporter.getGeometryColumn(table.getColumn("lod4_other_geom")));
	if (projectionFilter.containsProperty("lod2ImplicitRepresentation", tunnelModule))
		select.addProjection(table.getColumn("lod2_implicit_rep_id"), exporter.getGeometryColumn(table.getColumn("lod2_implicit_ref_point")), table.getColumn("lod2_implicit_transformation"));
	if (projectionFilter.containsProperty("lod3ImplicitRepresentation", tunnelModule))
		select.addProjection(table.getColumn("lod3_implicit_rep_id"), exporter.getGeometryColumn(table.getColumn("lod3_implicit_ref_point")), table.getColumn("lod3_implicit_transformation"));
	if (projectionFilter.containsProperty("lod4ImplicitRepresentation", tunnelModule))
		select.addProjection(table.getColumn("lod4_implicit_rep_id"), exporter.getGeometryColumn(table.getColumn("lod4_implicit_ref_point")), table.getColumn("lod4_implicit_transformation"));

	// add joins to ADE hook tables
	if (exporter.hasADESupport()) {
		adeHookTables = exporter.getADEHookTables(TableEnum.TUNNEL_INSTALLATION);			
		if (adeHookTables != null) addJoinsToADEHookTables(adeHookTables, table);
	}

	cityObjectReader = exporter.getExporter(DBCityObject.class);
	thematicSurfaceExporter = exporter.getExporter(DBTunnelThematicSurface.class);
	geometryExporter = exporter.getExporter(DBSurfaceGeometry.class);
	implicitGeometryExporter = exporter.getExporter(DBImplicitGeometry.class);
	gmlConverter = exporter.getGMLConverter();			
	valueSplitter = exporter.getAttributeValueSplitter();			
}
 
开发者ID:3dcitydb,项目名称:importer-exporter,代码行数:37,代码来源:DBTunnelInstallation.java


示例20: marshalAbstractCityObject

import org.citygml4j.model.citygml.core.AbstractCityObject; //导入依赖的package包/类
public void marshalAbstractCityObject(AbstractCityObject src, AbstractCityObjectType dest, Attributes attributes) {
	if (src.isSetCreationDate())
		attributes.setCreationDate(src.getCreationDate().getTime());

	if (src.isSetTerminationDate())
		attributes.setTerminationDate(src.getTerminationDate().getTime());

	if (src.isSetGenericAttribute())
		citygml.getGenericsMarshaller().marshalGenericAttributes(src.getGenericAttribute(), attributes);
}
 
开发者ID:citygml4j,项目名称:citygml4j,代码行数:11,代码来源:CoreMarshaller.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java FilterIterator类代码示例发布时间:2022-05-23
下一篇:
Java Operation类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap