Hello,

I'm new to geotools and have a problem when writing GML. The GML output is
not valid. I use a FeatureCollection, which is transformed into a GML file.

Problem1: If the FeatureCollection derives from a WFS DataStore, the
namespace prefix of the feature type is duplicated:
    <gml:featureMember>
        <cite:cite:RoadSegments fid="RoadSegments.1">...
        </cite:cite:RoadSegments>
    </gml:featureMember>
At all other possibilities, where this namespace prefix is used, it is shown
only once.
The command "collection.getSchema()" results in:
DefaultFeatureType [name=cite:RoadSegments ,
namespace=http://www.opengeospatial.net/cite , ...]
So perhaps the duplicate prefix depends on the name. Is there a possibility
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 "collection.getSchema()"
results in:
DefaultFeatureType [name=LANDKREISE_WGS ,
namespace=http://www.opengis.net/gml ,..]
Perhaps the namespace "gml" is used, because it is set here? How can I
change this namespace?

Your help would be much appreciated!

Regards,
Kerstin Sälzer



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to