I'm new to geotools and have a problem when writing GML. The GML output =
not valid. I use a FeatureCollection, which is transformed into a GML =
Problem1: If the FeatureCollection derives from a WFS DataStore, the
namespace prefix of the feature type is duplicated:
At all other possibilities, where this namespace prefix is used, it is =
The command "collection.getSchema()" results in:
DefaultFeatureType [name=3Dcite:RoadSegments ,
namespace=3Dhttp://www.opengeospatial.net/cite , ...]
So perhaps the duplicate prefix depends on the name. Is there a =
to change the name or remove the prefix from the name?
Problem2: If the FeatureCollection derives from a GML DataStore, the
namespace prefix of all features is set to "gml" instead of using the
appropriate prefix, for example "topp". The command =
DefaultFeatureType [name=3DLANDKREISE_WGS ,
Perhaps the namespace "gml" is used, because it is set here? How can I
change this namespace?
Your help would be much appreciated!