span8
span4
span8
span4
Hello,
I want to attach all address-attributes (city,postalcode,街citygml-lod2-buidlings等等)。And I want to add them in the right way (not as generic attribute).I know,I'll need a citygml-writer called "Address" beside my "Building","RoofSurface" etc.and I'll need to point the gml_parent_id to the gml_id of the building.
So how do I have to create/fill the attributes,so that the address is properly written to the citygml-dataset?
Do you have the address locations (coordinates) as well?Because Address features have (multi)point geometries,so you would have to create point features from x/y(/z) coordinates using theVertexCreator(and then optionally aggregate).
Do you know the relationship to each building (e.g.: do you know the exact address(es) that exist within each building)?Else you would have to join them spatially using a NeighborFinder or SpatialFilter for instance.
If there is a common ID attribute that allows you to join addresses to buildings and vice versa,you need to use aFeatureMerger that uses this common ID attribute (does not need to have the same name,but the value has to match) as theJoin Onattributes.Beware of duplicate suppliers: if you have m:n relationships,you need to set "Process Duplicate Suppliers" to Yes and use a ListExploder afterwards.Also note that the FeatureMerger will not overwrite existing attributes!Finally,you'd have to do some renaming of your (format) attributes so that they are equal to what the writer expects,e.g.gml_parent_id(= building ID on the address features and root ID on the building features) andgml_id(= unique address ID on the address features and unique building ID on the building features).
Now the actual writing part will be a lot easier if you have an example CityGML file that also includes Address features.In that case,you can add a CityGML Writer without adding a feature type and choose "Import Feature Types" from the menu to add the Address feature type from some other dataset,so you see all the attributes that you can write.Pay special attention to the relationship betweencityobjectsandaddressfeatures,so you can apply that knowledge to your own 亚搏在线workflow.
For more information about the relation of Address features to other CityGML features,see thespecs.
The possible attributes for the Address features are mentionedhere.
So yes...unfortunately there is no quick and easy answer to this question,but that's CityGML...Conceptually a very nice data format,but not so easy to create/write due to its hierarchical structure,requiring you to establish all the relationships yourself.
I would stress using an example file as Sander suggested.Try find one online,or write it yourself if you have to,then validate it.It would cost some time,but I'm sure it would be worth it.You could look at the Generate function within the XmlTemplater,but as verbose as CityGML is I'm not sure you'd get a lot of use out of it.
Note that you don't need to have Address as a seperate Feature Type,I think you're also allowed to have it as an element within your Building.
As a possible starting point,the Frankfurt file onthis pagecontains a Building with an Address,though it is sadly in CityGML 1.0.
I always find that so odd: here we have anopennon-proprietary format (of which you know that at least half of Germany is using it) and yet it's so hard to find decent CityGML example files online that demonstrate the functionality you need.And the ones you can find are heavily outdated...Little bit off topic,but did anyone for instance ever find a good example of a CityGML file that contains all LODs?
FME automatically replaces the xlink.href statement with the original reference in GML.1 Answer
Converting from 3DS to CityGML,how to get layer by layer information in the GML file?1 Answer
CityGML to CAD and back,how to fix problems with attributes2 Answers
CityGML - extract footprint and building id5 Answers
CityGML - replace footprint,re-create walls but keep existing roof?1 Answer
© 2019 亚搏在线Safe Software Inc |Legal