I have a shapefile that just contains a couple of attributes. Its attribute values need to be mapped to a GML that needs to be of a structure provided by a XSD file. The XSD asks for more attributes than the shapefile provided, but I want the GML still to contain all the attributes, despite that a lot of values are not provided by the shapefile. Which steps do I need to take to convert the shapefile in to this XSD-conform GML?
Page 1 / 1
You can create a GML writer and then specify that you want to import the feature types from an existing dataset, select GML as its format, leave the dataset field empty and then in the parameters panel select your XSD for the application schema.
This will create writer feature type(s) that match what's specified in the XSD and you can connect your Shapefile feature types to it. Most likely you'll need to do some attribute mapping too.
The thing about GML/XML formats is that if a feature does not have a value for a certain attribute, that attribute does not exist for that feature.