• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java CityFurniture类的典型用法和代码示例

java 2次浏览

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

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

示例1: visit

点赞 2

import org.citygml4j.model.citygml.cityfurniture.CityFurniture; //导入依赖的package包/类
public void visit(CityFurniture cityFurniture) {
	visit((AbstractCityObject)cityFurniture);

	if (cityFurniture.isSetGenericApplicationPropertyOfCityFurniture())
		for (ADEComponent ade : cityFurniture.getGenericApplicationPropertyOfCityFurniture())
			visit(ade);
}
 

开发者ID:3dcitydb,
项目名称:importer-exporter,
代码行数:8,
代码来源:ADEPropertyCollector.java

示例2: visit

点赞 2

import org.citygml4j.model.citygml.cityfurniture.CityFurniture; //导入依赖的package包/类
public void visit(CityFurniture cityFurniture) {
	visit((AbstractCityObject)cityFurniture);

	if (cityFurniture.isSetGenericApplicationPropertyOfCityFurniture())
		for (ADEComponent ade : new ArrayList<ADEComponent>(cityFurniture.getGenericApplicationPropertyOfCityFurniture()))
			visit(ade);
}
 

开发者ID:citygml4j,
项目名称:citygml4j,
代码行数:8,
代码来源:FeatureWalker.java

示例3: apply

点赞 2

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

	if (cityFurniture.isSetGenericApplicationPropertyOfCityFurniture()) {
		for (ADEComponent ade : new ArrayList<ADEComponent>(cityFurniture.getGenericApplicationPropertyOfCityFurniture())) {
			object = apply(ade);
			if (object != null)
				return object;
		}
	}

	return null;
}
 

开发者ID:citygml4j,
项目名称:citygml4j,
代码行数:16,
代码来源:FeatureFunctionWalker.java

示例4: assignGenericProperty

点赞 2

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

	if (dest instanceof CityFurniture && name.equals("_GenericApplicationPropertyOfCityFurniture"))
		((CityFurniture)dest).addGenericApplicationPropertyOfCityFurniture(genericProperty);		
	else
		success = false;

	return success;
}
 

开发者ID:citygml4j,
项目名称:citygml4j,
代码行数:12,
代码来源:CityFurniture100Unmarshaller.java

示例5: unmarshalCityFurniture

点赞 2

import org.citygml4j.model.citygml.cityfurniture.CityFurniture; //导入依赖的package包/类
public void unmarshalCityFurniture(CityFurnitureType src, CityFurniture dest) {
	citygml.getCoreUnmarshaller().unmarshalAbstractCityObject(src, dest);
	
	if (src.isSetAttributes()) {
		Attributes attributes = src.getAttributes();
		if (attributes.isSetClazz())
			dest.setClazz(new Code(attributes.getClazz()));

		if (attributes.isSetFunction())
			dest.addFunction(new Code(attributes.getFunction()));

		if (attributes.isSetUsage())
			dest.addUsage(new Code(attributes.getUsage()));
	}
	
	for (AbstractGeometryType geometryType : src.getGeometry()) {
		AbstractGeometry geometry = json.getGMLUnmarshaller().unmarshal(geometryType, dest);

		if (geometry != null) {
			int lod = geometryType.getLod().intValue();
			switch (lod) {
			case 1:
				dest.setLod1Geometry(new GeometryProperty<>(geometry));
				break;
			case 2:
				dest.setLod2Geometry(new GeometryProperty<>(geometry));
				break;
			case 3:
				dest.setLod3Geometry(new GeometryProperty<>(geometry));
				break;
			}
		}	
	}
}
 

开发者ID:citygml4j,
项目名称:citygml4j,
代码行数:35,
代码来源:CityFurnitureUnmarshaller.java

示例6: insert

点赞 2

import org.citygml4j.model.citygml.cityfurniture.CityFurniture; //导入依赖的package包/类
public long insert(CityFurniture cityFurniture) throws SQLException {
	long cityFurnitureId = dbImporterManager.getDBId(DBSequencerEnum.CITYOBJECT_SEQ);
	boolean success = false;

	if (cityFurnitureId != 0)
		success = insert(cityFurniture, cityFurnitureId);

	if (success)
		return cityFurnitureId;
	else
		return 0;
}
 

开发者ID:3dcitydb,
项目名称:importer-exporter-oracle,
代码行数:13,
代码来源:DBCityFurniture.java

示例7: insert

点赞 2

import org.citygml4j.model.citygml.cityfurniture.CityFurniture; //导入依赖的package包/类
public long insert(CityFurniture cityFurniture) throws SQLException {
	long cityFurnitureId = dbImporterManager.getDBId(DBSequencerEnum.CITYOBJECT_ID_SEQ);
	boolean success = false;

	if (cityFurnitureId != 0)
		success = insert(cityFurniture, cityFurnitureId);

	if (success)
		return cityFurnitureId;
	else
		return 0;
}
 

开发者ID:3dcitydb,
项目名称:importer-exporter-postgis,
代码行数:13,
代码来源:DBCityFurniture.java

示例8: CG_CityFurniture

点赞 2

import org.citygml4j.model.citygml.cityfurniture.CityFurniture; //导入依赖的package包/类
public CG_CityFurniture(CityFurniture cF) {
  super(cF);
  this.clazz = cF.getClazz();

  this.getFunction().addAll(cF.getFunction());

  if (cF.isSetLod1Geometry()) {
    this.lod1Geometry = ConvertCityGMLtoGeometry.convertGMLGeometry(cF
        .getLod1Geometry());
  }

  if (cF.isSetLod2Geometry()) {
    this.lod2Geometry = ConvertCityGMLtoGeometry.convertGMLGeometry(cF
        .getLod2Geometry());
  }

  if (cF.isSetLod3Geometry()) {
    this.lod3Geometry = ConvertCityGMLtoGeometry.convertGMLGeometry(cF
        .getLod3Geometry());
  }

  if (cF.isSetLod4Geometry()) {
    this.lod4Geometry = ConvertCityGMLtoGeometry.convertGMLGeometry(cF
        .getLod4Geometry());
  }

  if (cF.isSetLod1TerrainIntersection()) {

    this.lod1TerrainIntersection = ConvertCityGMLtoGeometry
        .convertGMLMultiCurve(cF.getLod1TerrainIntersection());
  }

  if (cF.isSetLod2TerrainIntersection()) {

    this.lod2TerrainIntersection = ConvertCityGMLtoGeometry
        .convertGMLMultiCurve(cF.getLod2TerrainIntersection());
  }

  if (cF.isSetLod3TerrainIntersection()) {

    this.lod3TerrainIntersection = ConvertCityGMLtoGeometry
        .convertGMLMultiCurve(cF.getLod3TerrainIntersection());
  }
  if (cF.isSetLod4TerrainIntersection()) {

    this.lod4TerrainIntersection = ConvertCityGMLtoGeometry
        .convertGMLMultiCurve(cF.getLod4TerrainIntersection());
  }

  if (cF.isSetLod1ImplicitRepresentation()) {
    System.out
        .println("CG_CityFurniture : Je ne m'occupe pas des implicites ici");
  }

  if (cF.isSetLod2ImplicitRepresentation()) {
    System.out
        .println("CG_CityFurniture : Je ne m'occupe pas des implicites ici");
  }

  if (cF.isSetLod3ImplicitRepresentation()) {
    System.out
        .println("CG_CityFurniture : Je ne m'occupe pas des implicites ici");
  }

  if (cF.isSetLod4ImplicitRepresentation()) {
    System.out
        .println("CG_CityFurniture : Je ne m'occupe pas des implicites ici");
  }

}
 

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

示例9: DBCityFurniture

点赞 2

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

	CombinedProjectionFilter projectionFilter = exporter.getCombinedProjectionFilter(TableEnum.CITY_FURNITURE.getName());
	cityFurnitureModule = exporter.getTargetCityGMLVersion().getCityGMLModule(CityGMLModuleType.CITY_FURNITURE).getNamespaceURI();
	lodFilter = exporter.getLodFilter();
	String schema = exporter.getDatabaseAdapter().getConnectionDetails().getSchema();
	hasObjectClassIdColumn = exporter.getDatabaseAdapter().getConnectionMetaData().getCityDBVersion().compareTo(4, 0, 0) >= 0;

	table = new Table(TableEnum.CITY_FURNITURE.getName(), schema);
	select = new Select().addProjection(table.getColumn("id"));
	if (hasObjectClassIdColumn) select.addProjection(table.getColumn("objectclass_id"));
	if (projectionFilter.containsProperty("class", cityFurnitureModule)) select.addProjection(table.getColumn("class"), table.getColumn("class_codespace"));
	if (projectionFilter.containsProperty("function", cityFurnitureModule)) select.addProjection(table.getColumn("function"), table.getColumn("function_codespace"));
	if (projectionFilter.containsProperty("usage", cityFurnitureModule)) select.addProjection(table.getColumn("usage"), table.getColumn("usage_codespace"));
	if (projectionFilter.containsProperty("lod1TerrainIntersection", cityFurnitureModule)) select.addProjection(exporter.getGeometryColumn(table.getColumn("lod1_terrain_intersection")));
	if (projectionFilter.containsProperty("lod2TerrainIntersection", cityFurnitureModule)) select.addProjection(exporter.getGeometryColumn(table.getColumn("lod2_terrain_intersection")));
	if (projectionFilter.containsProperty("lod3TerrainIntersection", cityFurnitureModule)) select.addProjection(exporter.getGeometryColumn(table.getColumn("lod3_terrain_intersection")));
	if (projectionFilter.containsProperty("lod4TerrainIntersection", cityFurnitureModule)) select.addProjection(exporter.getGeometryColumn(table.getColumn("lod4_terrain_intersection")));
	if (projectionFilter.containsProperty("lod1Geometry", cityFurnitureModule)) select.addProjection(table.getColumn("lod1_brep_id"), exporter.getGeometryColumn(table.getColumn("lod1_other_geom")));
	if (projectionFilter.containsProperty("lod2Geometry", cityFurnitureModule)) select.addProjection(table.getColumn("lod2_brep_id"), exporter.getGeometryColumn(table.getColumn("lod2_other_geom")));
	if (projectionFilter.containsProperty("lod3Geometry", cityFurnitureModule)) select.addProjection(table.getColumn("lod3_brep_id"), exporter.getGeometryColumn(table.getColumn("lod3_other_geom")));
	if (projectionFilter.containsProperty("lod4Geometry", cityFurnitureModule)) select.addProjection(table.getColumn("lod4_brep_id"), exporter.getGeometryColumn(table.getColumn("lod4_other_geom")));
	if (projectionFilter.containsProperty("lod1ImplicitRepresentation", cityFurnitureModule))
		select.addProjection(table.getColumn("lod1_implicit_rep_id"), exporter.getGeometryColumn(table.getColumn("lod1_implicit_ref_point")), table.getColumn("lod1_implicit_transformation"));
	if (projectionFilter.containsProperty("lod2ImplicitRepresentation", cityFurnitureModule))
		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", cityFurnitureModule))
		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", cityFurnitureModule))
		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.CITY_FURNITURE);			
		if (adeHookTables != null) addJoinsToADEHookTables(adeHookTables, table);
	}
	
	cityObjectExporter = exporter.getExporter(DBCityObject.class);
	geometryExporter = exporter.getExporter(DBSurfaceGeometry.class);
	implicitGeometryExporter = exporter.getExporter(DBImplicitGeometry.class);
	gmlConverter = exporter.getGMLConverter();
	valueSplitter = exporter.getAttributeValueSplitter();
}
 

开发者ID:3dcitydb,
项目名称:importer-exporter,
代码行数:45,
代码来源:DBCityFurniture.java

示例10: visit

点赞 2

import org.citygml4j.model.citygml.cityfurniture.CityFurniture; //导入依赖的package包/类
public void visit(CityFurniture cityFurniture) {
	visit((AbstractCityObject)cityFurniture);

	if (cityFurniture.isSetLod1Geometry())
		visit(cityFurniture.getLod1Geometry());

	if (cityFurniture.isSetLod2Geometry())
		visit(cityFurniture.getLod2Geometry());

	if (cityFurniture.isSetLod3Geometry())
		visit(cityFurniture.getLod3Geometry());

	if (cityFurniture.isSetLod4Geometry())
		visit(cityFurniture.getLod4Geometry());

	if (cityFurniture.isSetLod1TerrainIntersection())
		visit(cityFurniture.getLod1TerrainIntersection());

	if (cityFurniture.isSetLod2TerrainIntersection())
		visit(cityFurniture.getLod2TerrainIntersection());

	if (cityFurniture.isSetLod3TerrainIntersection())
		visit(cityFurniture.getLod3TerrainIntersection());

	if (cityFurniture.isSetLod4TerrainIntersection())
		visit(cityFurniture.getLod4TerrainIntersection());

	if (cityFurniture.isSetLod1ImplicitRepresentation())
		visit(cityFurniture.getLod1ImplicitRepresentation());

	if (cityFurniture.isSetLod2ImplicitRepresentation())
		visit(cityFurniture.getLod2ImplicitRepresentation());

	if (cityFurniture.isSetLod3ImplicitRepresentation())
		visit(cityFurniture.getLod3ImplicitRepresentation());

	if (cityFurniture.isSetLod4ImplicitRepresentation())
		visit(cityFurniture.getLod4ImplicitRepresentation());

	if (cityFurniture.isSetGenericApplicationPropertyOfCityFurniture())
		for (ADEComponent ade : new ArrayList<ADEComponent>(cityFurniture.getGenericApplicationPropertyOfCityFurniture()))
			visit(ade);
}
 

开发者ID:citygml4j,
项目名称:citygml4j,
代码行数:44,
代码来源:GMLWalker.java

示例11: marshalJAXBElement

点赞 2

import org.citygml4j.model.citygml.cityfurniture.CityFurniture; //导入依赖的package包/类
public JAXBElement<?> marshalJAXBElement(ModelObject src) {
	if (src instanceof CityFurniture)
		return frn.createCityFurniture(marshalCityFurniture((CityFurniture)src));
	
	return null;
}
 

开发者ID:citygml4j,
项目名称:citygml4j,
代码行数:7,
代码来源:CityFurniture200Marshaller.java

示例12: marshal

点赞 2

import org.citygml4j.model.citygml.cityfurniture.CityFurniture; //导入依赖的package包/类
public Object marshal(ModelObject src) {
	if (src instanceof CityFurniture)
		return marshalCityFurniture((CityFurniture)src);
	
	return null;
}
 

开发者ID:citygml4j,
项目名称:citygml4j,
代码行数:7,
代码来源:CityFurniture200Marshaller.java

示例13: marshalCityFurniture

点赞 2

import org.citygml4j.model.citygml.cityfurniture.CityFurniture; //导入依赖的package包/类
public void marshalCityFurniture(CityFurniture src, CityFurnitureType dest) {		
	citygml.getCore200Marshaller().marshalAbstractCityObject(src, dest);
	
	if (src.isSetClazz())
		dest.setClazz(jaxb.getGMLMarshaller().marshalCode(src.getClazz()));

	if (src.isSetFunction()) {
		for (Code function : src.getFunction())
			dest.getFunction().add(jaxb.getGMLMarshaller().marshalCode(function));
	}

	if (src.isSetUsage()) {
		for (Code usage : src.getUsage())
			dest.getUsage().add(jaxb.getGMLMarshaller().marshalCode(usage));
	}

	if (src.isSetLod1Geometry())
		dest.setLod1Geometry(jaxb.getGMLMarshaller().marshalGeometryProperty(src.getLod1Geometry()));

	if (src.isSetLod2Geometry())
		dest.setLod2Geometry(jaxb.getGMLMarshaller().marshalGeometryProperty(src.getLod2Geometry()));

	if (src.isSetLod3Geometry())
		dest.setLod3Geometry(jaxb.getGMLMarshaller().marshalGeometryProperty(src.getLod3Geometry()));

	if (src.isSetLod4Geometry())
		dest.setLod4Geometry(jaxb.getGMLMarshaller().marshalGeometryProperty(src.getLod4Geometry()));

	if (src.isSetLod1ImplicitRepresentation())
		dest.setLod1ImplicitRepresentation(citygml.getCore200Marshaller().marshalImplicitRepresentationProperty(src.getLod1ImplicitRepresentation()));

	if (src.isSetLod2ImplicitRepresentation())
		dest.setLod2ImplicitRepresentation(citygml.getCore200Marshaller().marshalImplicitRepresentationProperty(src.getLod2ImplicitRepresentation()));

	if (src.isSetLod3ImplicitRepresentation())
		dest.setLod3ImplicitRepresentation(citygml.getCore200Marshaller().marshalImplicitRepresentationProperty(src.getLod3ImplicitRepresentation()));

	if (src.isSetLod4ImplicitRepresentation())
		dest.setLod4ImplicitRepresentation(citygml.getCore200Marshaller().marshalImplicitRepresentationProperty(src.getLod4ImplicitRepresentation()));

	if (src.isSetLod1TerrainIntersection())
		dest.setLod1TerrainIntersection(jaxb.getGMLMarshaller().marshalMultiCurveProperty(src.getLod1TerrainIntersection()));

	if (src.isSetLod2TerrainIntersection())
		dest.setLod2TerrainIntersection(jaxb.getGMLMarshaller().marshalMultiCurveProperty(src.getLod2TerrainIntersection()));

	if (src.isSetLod3TerrainIntersection())
		dest.setLod3TerrainIntersection(jaxb.getGMLMarshaller().marshalMultiCurveProperty(src.getLod3TerrainIntersection()));

	if (src.isSetLod4TerrainIntersection())
		dest.setLod4TerrainIntersection(jaxb.getGMLMarshaller().marshalMultiCurveProperty(src.getLod4TerrainIntersection()));

	if (src.isSetGenericApplicationPropertyOfCityFurniture()) {
		for (ADEComponent adeComponent : src.getGenericApplicationPropertyOfCityFurniture()) {
			JAXBElement<Object> jaxbElement = jaxb.getADEMarshaller().marshalJAXBElement(adeComponent);
			if (jaxbElement != null)
				dest.get_GenericApplicationPropertyOfCityFurniture().add(jaxbElement);
		}
	}
}
 

开发者ID:citygml4j,
项目名称:citygml4j,
代码行数:61,
代码来源:CityFurniture200Marshaller.java

示例14: marshalCityFurniture

点赞 2

import org.citygml4j.model.citygml.cityfurniture.CityFurniture; //导入依赖的package包/类
public void marshalCityFurniture(CityFurniture src, CityFurnitureType dest) {		
	citygml.getCore100Marshaller().marshalAbstractCityObject(src, dest);
	
	if (src.isSetClazz())
		dest.setClazz(src.getClazz().getValue());

	if (src.isSetFunction()) {
		for (Code function : src.getFunction())
			dest.getFunction().add(function.getValue());
	}

	if (src.isSetLod1Geometry())
		dest.setLod1Geometry(jaxb.getGMLMarshaller().marshalGeometryProperty(src.getLod1Geometry()));

	if (src.isSetLod2Geometry())
		dest.setLod2Geometry(jaxb.getGMLMarshaller().marshalGeometryProperty(src.getLod2Geometry()));

	if (src.isSetLod3Geometry())
		dest.setLod3Geometry(jaxb.getGMLMarshaller().marshalGeometryProperty(src.getLod3Geometry()));

	if (src.isSetLod4Geometry())
		dest.setLod4Geometry(jaxb.getGMLMarshaller().marshalGeometryProperty(src.getLod4Geometry()));

	if (src.isSetLod1ImplicitRepresentation())
		dest.setLod1ImplicitRepresentation(citygml.getCore100Marshaller().marshalImplicitRepresentationProperty(src.getLod1ImplicitRepresentation()));

	if (src.isSetLod2ImplicitRepresentation())
		dest.setLod2ImplicitRepresentation(citygml.getCore100Marshaller().marshalImplicitRepresentationProperty(src.getLod2ImplicitRepresentation()));

	if (src.isSetLod3ImplicitRepresentation())
		dest.setLod3ImplicitRepresentation(citygml.getCore100Marshaller().marshalImplicitRepresentationProperty(src.getLod3ImplicitRepresentation()));

	if (src.isSetLod4ImplicitRepresentation())
		dest.setLod4ImplicitRepresentation(citygml.getCore100Marshaller().marshalImplicitRepresentationProperty(src.getLod4ImplicitRepresentation()));

	if (src.isSetLod1TerrainIntersection())
		dest.setLod1TerrainIntersection(jaxb.getGMLMarshaller().marshalMultiCurveProperty(src.getLod1TerrainIntersection()));

	if (src.isSetLod2TerrainIntersection())
		dest.setLod2TerrainIntersection(jaxb.getGMLMarshaller().marshalMultiCurveProperty(src.getLod2TerrainIntersection()));

	if (src.isSetLod3TerrainIntersection())
		dest.setLod3TerrainIntersection(jaxb.getGMLMarshaller().marshalMultiCurveProperty(src.getLod3TerrainIntersection()));

	if (src.isSetLod4TerrainIntersection())
		dest.setLod4TerrainIntersection(jaxb.getGMLMarshaller().marshalMultiCurveProperty(src.getLod4TerrainIntersection()));

	if (src.isSetGenericApplicationPropertyOfCityFurniture()) {
		for (ADEComponent adeComponent : src.getGenericApplicationPropertyOfCityFurniture()) {
			JAXBElement<Object> jaxbElement = jaxb.getADEMarshaller().marshalJAXBElement(adeComponent);
			if (jaxbElement != null)
				dest.get_GenericApplicationPropertyOfCityFurniture().add(jaxbElement);
		}
	}
}
 

开发者ID:citygml4j,
项目名称:citygml4j,
代码行数:56,
代码来源:CityFurniture100Marshaller.java

示例15: unmarshalCityFurniture

点赞 2

import org.citygml4j.model.citygml.cityfurniture.CityFurniture; //导入依赖的package包/类
public void unmarshalCityFurniture(CityFurnitureType src, CityFurniture dest) throws MissingADESchemaException {
	citygml.getCore100Unmarshaller().unmarshalAbstractCityObject(src, dest);

	if (src.isSetClazz())
		dest.setClazz(new Code(src.getClazz()));

	if (src.isSetFunction()) {
		for (String function : src.getFunction())
			dest.addFunction(new Code(function));
	}

	if (src.isSetLod1Geometry())
		dest.setLod1Geometry(jaxb.getGMLUnmarshaller().unmarshalGeometryProperty(src.getLod1Geometry()));

	if (src.isSetLod2Geometry())
		dest.setLod2Geometry(jaxb.getGMLUnmarshaller().unmarshalGeometryProperty(src.getLod2Geometry()));

	if (src.isSetLod3Geometry())
		dest.setLod3Geometry(jaxb.getGMLUnmarshaller().unmarshalGeometryProperty(src.getLod3Geometry()));

	if (src.isSetLod4Geometry())
		dest.setLod4Geometry(jaxb.getGMLUnmarshaller().unmarshalGeometryProperty(src.getLod4Geometry()));

	if (src.isSetLod1ImplicitRepresentation())
		dest.setLod1ImplicitRepresentation(citygml.getCore100Unmarshaller().unmarshalImplicitRepresentationProperty(src.getLod1ImplicitRepresentation()));

	if (src.isSetLod2ImplicitRepresentation())
		dest.setLod2ImplicitRepresentation(citygml.getCore100Unmarshaller().unmarshalImplicitRepresentationProperty(src.getLod2ImplicitRepresentation()));

	if (src.isSetLod3ImplicitRepresentation())
		dest.setLod3ImplicitRepresentation(citygml.getCore100Unmarshaller().unmarshalImplicitRepresentationProperty(src.getLod3ImplicitRepresentation()));

	if (src.isSetLod4ImplicitRepresentation())
		dest.setLod4ImplicitRepresentation(citygml.getCore100Unmarshaller().unmarshalImplicitRepresentationProperty(src.getLod4ImplicitRepresentation()));

	if (src.isSetLod1TerrainIntersection())
		dest.setLod1TerrainIntersection(jaxb.getGMLUnmarshaller().unmarshalMultiCurveProperty(src.getLod1TerrainIntersection()));

	if (src.isSetLod2TerrainIntersection())
		dest.setLod2TerrainIntersection(jaxb.getGMLUnmarshaller().unmarshalMultiCurveProperty(src.getLod2TerrainIntersection()));

	if (src.isSetLod3TerrainIntersection())
		dest.setLod3TerrainIntersection(jaxb.getGMLUnmarshaller().unmarshalMultiCurveProperty(src.getLod3TerrainIntersection()));

	if (src.isSetLod4TerrainIntersection())
		dest.setLod4TerrainIntersection(jaxb.getGMLUnmarshaller().unmarshalMultiCurveProperty(src.getLod4TerrainIntersection()));

	if (src.isSet_GenericApplicationPropertyOfCityFurniture()) {
		for (JAXBElement<Object> elem : src.get_GenericApplicationPropertyOfCityFurniture()) {
			ADEModelObject ade = jaxb.getADEUnmarshaller().unmarshal(elem);
			if (ade != null)
				dest.addGenericApplicationPropertyOfCityFurniture(ade);
		}
	}
}
 

开发者ID:citygml4j,
项目名称:citygml4j,
代码行数:56,
代码来源:CityFurniture100Unmarshaller.java

示例16: unmarshalCityFurniture

点赞 2

import org.citygml4j.model.citygml.cityfurniture.CityFurniture; //导入依赖的package包/类
public void unmarshalCityFurniture(CityFurnitureType src, CityFurniture dest) throws MissingADESchemaException {
	citygml.getCore200Unmarshaller().unmarshalAbstractCityObject(src, dest);

	if (src.isSetClazz())
		dest.setClazz(jaxb.getGMLUnmarshaller().unmarshalCode(src.getClazz()));

	if (src.isSetFunction()) {
		for (CodeType function : src.getFunction())
			dest.addFunction(jaxb.getGMLUnmarshaller().unmarshalCode(function));
	}

	if (src.isSetUsage()) {
		for (CodeType usage : src.getUsage())
			dest.addUsage(jaxb.getGMLUnmarshaller().unmarshalCode(usage));
	}

	if (src.isSetLod1Geometry())
		dest.setLod1Geometry(jaxb.getGMLUnmarshaller().unmarshalGeometryProperty(src.getLod1Geometry()));

	if (src.isSetLod2Geometry())
		dest.setLod2Geometry(jaxb.getGMLUnmarshaller().unmarshalGeometryProperty(src.getLod2Geometry()));

	if (src.isSetLod3Geometry())
		dest.setLod3Geometry(jaxb.getGMLUnmarshaller().unmarshalGeometryProperty(src.getLod3Geometry()));

	if (src.isSetLod4Geometry())
		dest.setLod4Geometry(jaxb.getGMLUnmarshaller().unmarshalGeometryProperty(src.getLod4Geometry()));

	if (src.isSetLod1ImplicitRepresentation())
		dest.setLod1ImplicitRepresentation(citygml.getCore200Unmarshaller().unmarshalImplicitRepresentationProperty(src.getLod1ImplicitRepresentation()));

	if (src.isSetLod2ImplicitRepresentation())
		dest.setLod2ImplicitRepresentation(citygml.getCore200Unmarshaller().unmarshalImplicitRepresentationProperty(src.getLod2ImplicitRepresentation()));

	if (src.isSetLod3ImplicitRepresentation())
		dest.setLod3ImplicitRepresentation(citygml.getCore200Unmarshaller().unmarshalImplicitRepresentationProperty(src.getLod3ImplicitRepresentation()));

	if (src.isSetLod4ImplicitRepresentation())
		dest.setLod4ImplicitRepresentation(citygml.getCore200Unmarshaller().unmarshalImplicitRepresentationProperty(src.getLod4ImplicitRepresentation()));

	if (src.isSetLod1TerrainIntersection())
		dest.setLod1TerrainIntersection(jaxb.getGMLUnmarshaller().unmarshalMultiCurveProperty(src.getLod1TerrainIntersection()));

	if (src.isSetLod2TerrainIntersection())
		dest.setLod2TerrainIntersection(jaxb.getGMLUnmarshaller().unmarshalMultiCurveProperty(src.getLod2TerrainIntersection()));

	if (src.isSetLod3TerrainIntersection())
		dest.setLod3TerrainIntersection(jaxb.getGMLUnmarshaller().unmarshalMultiCurveProperty(src.getLod3TerrainIntersection()));

	if (src.isSetLod4TerrainIntersection())
		dest.setLod4TerrainIntersection(jaxb.getGMLUnmarshaller().unmarshalMultiCurveProperty(src.getLod4TerrainIntersection()));

	if (src.isSet_GenericApplicationPropertyOfCityFurniture()) {
		for (JAXBElement<Object> elem : src.get_GenericApplicationPropertyOfCityFurniture()) {
			ADEModelObject ade = jaxb.getADEUnmarshaller().unmarshal(elem);
			if (ade != null)
				dest.addGenericApplicationPropertyOfCityFurniture(ade);
		}
	}
}
 

开发者ID:citygml4j,
项目名称:citygml4j,
代码行数:61,
代码来源:CityFurniture200Unmarshaller.java

示例17: marshal

点赞 2

import org.citygml4j.model.citygml.cityfurniture.CityFurniture; //导入依赖的package包/类
public List<AbstractCityObjectType> marshal(ModelObject src) {
	if (src instanceof CityFurniture)
		return Collections.singletonList(marshalCityFurniture((CityFurniture)src));
	
	return Collections.emptyList();			
}
 

开发者ID:citygml4j,
项目名称:citygml4j,
代码行数:7,
代码来源:CityFurnitureMarshaller.java

示例18: marshalCityFurniture

点赞 2

import org.citygml4j.model.citygml.cityfurniture.CityFurniture; //导入依赖的package包/类
public CityFurnitureType marshalCityFurniture(CityFurniture src) {
	CityFurnitureType dest = new CityFurnitureType(src.getId());
	marshalCityFurniture(src, dest);
	
	return dest;
}
 

开发者ID:citygml4j,
项目名称:citygml4j,
代码行数:7,
代码来源:CityFurnitureMarshaller.java

示例19: main

点赞 2

import org.citygml4j.model.citygml.cityfurniture.CityFurniture; //导入依赖的package包/类
public static void main(String[] args) throws Exception {
	SimpleDateFormat df = new SimpleDateFormat("[HH:mm:ss] "); 

	System.out.println(df.format(new Date()) + "setting up citygml4j context and CityGML builder");
	CityGMLContext ctx = CityGMLContext.getInstance();
	CityGMLBuilder builder = ctx.createCityGMLBuilder();

	System.out.println(df.format(new Date()) + "creating citygml4j JAXBUnmarshaller and JAXBMarshaller instances");
	JAXBUnmarshaller unmarshaller = builder.createJAXBUnmarshaller();
	JAXBMarshaller marshaller = builder.createJAXBMarshaller();
	marshaller.setModuleContext(new ModuleContext(CityGMLVersion.v2_0_0));
	
	// create DOM model from CityGML document
	System.out.println(df.format(new Date()) + "reading CityGML file LOD2_Building_with_Placeholder_v200.gml as DOM tree");
	DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();
	docFactory.setNamespaceAware(true);		
	DocumentBuilder docBuilder = docFactory.newDocumentBuilder();
	Document document = docBuilder.parse("datasets/LOD2_Building_with_Placeholder_v200.gml");

	// create XPath factory
	System.out.println(df.format(new Date()) + "creating XPath factory");
	XPathFactory xpathFactory = XPathFactory.newInstance();
	XPath xpath = xpathFactory.newXPath();

	// get CityGML namespace context
	CityGMLNamespaceContext nsContext = new CityGMLNamespaceContext();
	nsContext.setPrefixes(CityGMLVersion.v2_0_0);
	xpath.setNamespaceContext(nsContext);

	// first: retrieve building node using XPath
	System.out.println(df.format(new Date()) + "searching for bldg:Building node in DOM tree using an XPath expression");
	Node buildingNode = (Node)xpath.evaluate("//bldg:Building", document, XPathConstants.NODE);

	// unmarshal DOM node to citygml4j
	System.out.println(df.format(new Date()) + "unmarshalling DOM node to citygml4j");
	Building building = (Building)unmarshaller.unmarshal(buildingNode);

	// add gml:id and gml:description to building
	System.out.println(df.format(new Date()) + "processing content using citygml4j");
	building.setId(DefaultGMLIdManager.getInstance().generateUUID());
	StringOrRef description = new StringOrRef();
	description.setValue("processed by citygml4j using DOM and XPath");
	building.setDescription(description);

	// marshal to DOM and put into document
	System.out.println(df.format(new Date()) + "marshalling back to DOM");
	Element newBuildingNode = marshaller.marshalDOMElement(building, document);
	buildingNode.getParentNode().replaceChild(newBuildingNode, buildingNode);
	
	// second: get placeholder using XPath
	System.out.println(df.format(new Date()) + "searching for 'Placeholder' in DOM tree using an XPath expression");
	Node memberNode = (Node)xpath.evaluate("//core:cityObjectMember[comment()='Placeholder']", document, XPathConstants.NODE);

	// create simple citygml4j object to insert into placeholder
	System.out.println(df.format(new Date()) + "inserting CityFurniture instance at placeholder using citygml4j");
	CityFurniture cityFurniture = new CityFurniture();
	cityFurniture.setDescription(description);		
	CityObjectMember member = new CityObjectMember(cityFurniture);

	// marshal to DOM and put into document
	System.out.println(df.format(new Date()) + "marshalling back to DOM");
	Element newMemberNode = marshaller.marshalDOMElement(member, document);
	memberNode.getParentNode().replaceChild(newMemberNode, memberNode);
	
	// write DOM to file
	System.out.println(df.format(new Date()) + "writing DOM tree");
	TransformerFactory transFactory = TransformerFactory.newInstance();
	Transformer trans = transFactory.newTransformer();		
	trans.setOutputProperty(OutputKeys.INDENT, "yes");
	trans.setOutputProperty("{http://xml.apache.org/xslt}indent-amount", "2");

	Files.createDirectory(Paths.get("output"));
	DOMSource source = new DOMSource(document);
	StreamResult result = new StreamResult(new FileOutputStream("output/LOD2_DOM_result_v200.gml"));
	trans.transform(source, result); 
	
	System.out.println(df.format(new Date()) + "CityGML file LOD2_DOM_result_v200.gml written");
	System.out.println(df.format(new Date()) + "sample citygml4j application successfully finished");
}
 

开发者ID:citygml4j,
项目名称:citygml4j,
代码行数:80,
代码来源:DOMAndXPath.java

示例20: generateCityObject

点赞 1

import org.citygml4j.model.citygml.cityfurniture.CityFurniture; //导入依赖的package包/类
public static CG_CityObject generateCityObject(AbstractCityObject cO) {

		CG_CityObject cgCO = null;

		if (cO instanceof Room) {
			cgCO = new CG_Room((Room) cO);
		} else if (cO instanceof IntBuildingInstallation) {

			cgCO = new CG_IntBuildingInstallation((IntBuildingInstallation) cO);

		} else if (cO instanceof Window) {
			cgCO = new CG_Window((Window) cO);

		} else if (cO instanceof Door) {
			cgCO = new CG_Door((Door) cO);

		} else if (cO instanceof BuildingFurniture) {
			cgCO = new CG_BuildingFurniture((BuildingFurniture) cO);

		} else if (cO instanceof CityFurniture) {
			cgCO = new CG_CityFurniture((CityFurniture) cO);

		} else if (cO instanceof BuildingInstallation) {
			cgCO = new CG_BuildingInstallation((BuildingInstallation) cO);

		} else if (cO instanceof AbstractBoundarySurface) {
			cgCO = CG_AbstractBoundarySurface.generateBoundarySurface((AbstractBoundarySurface) cO);

		} else if (cO instanceof CityObjectGroup) {
			cgCO = new CG_CityObjectGroup((CityObjectGroup) cO);

		} else if (cO instanceof Building) {
			cgCO = new CG_Building((Building) cO);

		} else if (cO instanceof BuildingPart) {
			cgCO = new CG_BuildingPart((BuildingPart) cO);

		} else if (cO instanceof IntBuildingInstallation) {
			cgCO = new CG_IntBuildingInstallation((IntBuildingInstallation) cO);

		} else if (cO instanceof GenericCityObject) {
			cgCO = new CG_GenericCityObject((GenericCityObject) cO);

		} else if (cO instanceof LandUse) {
			cgCO = new CG_LandUse((LandUse) cO);

		} else if (cO instanceof ReliefFeature) {

			cgCO = new CG_ReliefFeature((ReliefFeature) cO);

		} else if (cO instanceof AbstractReliefComponent) {

			cgCO = CG_AbstractReliefComponent.generateReliefComponentType((AbstractReliefComponent) cO);

		} else if (cO instanceof AbstractTransportationObject) {

			cgCO = CG_AbstractTransportation.generateAbstractTransportationObject((AbstractTransportationObject) cO);

		} else if (cO instanceof AbstractVegetationObject) {

			cgCO = CG_AbstractVegetationObject.generateAbstractVegetationObject((AbstractVegetationObject) cO);

		} else if (cO instanceof AbstractWaterObject) {

			cgCO = CG_AbstractWaterObject.generateAbstractWaterObject((AbstractWaterObject) cO);

		} else if (cO instanceof AbstractWaterBoundarySurface) {

			cgCO = CG_WaterBoundarySurface.generateAbstractWaterBoundarySurface((AbstractWaterBoundarySurface) cO);

		} else {

			System.out.println("Non géré" + cO.getClass().toString());
		}

		return cgCO;

	}
 

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

示例21: visit

点赞 1

import org.citygml4j.model.citygml.cityfurniture.CityFurniture; //导入依赖的package包/类
public void visit(CityFurniture cityFurniture); 

开发者ID:citygml4j,
项目名称:citygml4j,
代码行数:2,
代码来源:FeatureVisitor.java

示例22: apply

点赞 1

import org.citygml4j.model.citygml.cityfurniture.CityFurniture; //导入依赖的package包/类
public T apply(CityFurniture cityFurniture); 

开发者ID:citygml4j,
项目名称:citygml4j,
代码行数:2,
代码来源:FeatureFunctor.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)