Hi Gilles,
There is no problem with the namespace in your gml file.
I've succeed to display your gml file in simple webapp based on wfs-t
demo of mapbuilder.
In your gml you've specifed an lineString but for a polygon you must
specified a linearRing.
here the config file definiton:
<FeatureCollection id="featureCollection">
<defaultModelUrl>test.xml</defaultModelUrl>
<widgets>
<GmlRendererOL id="testGmlRenderer">
<targetModel>mainMap</targetModel>
<sldModel>sld</sldModel>
</GmlRendererOL>
</widgets>
<namespace>xmlns:gml='http://www.opengis.net/gml'
xmlns:wfs='http://www.opengis.net/wfs'
xmlns:local='http://www.openplans.org/localhost'</namespace>
</FeatureCollection>
<StyledLayerDescriptor id="sld">
<defaultModelUrl>../data/features.sld</defaultModelUrl>
</StyledLayerDescriptor>
Your gml file with LinearString :
<?xml version="1.0" encoding="utf-8"?>
<wfs:FeatureCollection xmlns:wfs="http://www.opengis.net/wfs"
xmlns:gml="http://www.opengis.net/gml" xmlns:local="http://localhost"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://localhost
http://localhost:8080/geoserver/wfs/DescribeFeatureType?typeName=local:dgi_bati,local:voipubli
http://www.opengis.net/wfs
http://localhost:8080/geoserver/schemas/wfs/1.0.0/WFS-basic.xsd">
<gml:boundedBy>
<gml:Box srsName="http://www.opengis.net/gml/srs/epsg.xml#27563">
<gml:coordinates xmlns:gml="http://www.opengis.net/gml"
decimal="." cs="," ts="">974364.5625,149807.734375
974382.4375,149822.234375</gml:coordinates>
</gml:Box>
</gml:boundedBy>
<gml:featureMember>
<local:dgi_parc fid="dgi_parc.71365">
<local:gid>71365</local:gid>
<local:contmj2>+135.</local:contmj2>
<local:ident>029000AL0018</local:ident>
<local:indice>01</local:indice>
<local:libelle>18</local:libelle>
<local:libelle_t>1</local:libelle_t>
<local:libelle_s>2</local:libelle_s>
<local:libelle_l>14</local:libelle_l>
<local:libelle_x>974370.680000</local:libelle_x>
<local:libelle_y>149814.150000</local:libelle_y>
<local:libelle_o>0.000000</local:libelle_o>
<local:nom_t>-1</local:nom_t>
<local:geom>
<gml:MultiPolygon
srsName="http://www.opengis.net/gml/srs/epsg.xml#27563">
<gml:polygonMember>
<gml:Polygon>
<gml:outerBoundaryIs>
<gml:LinearRing
srsName="EPSG:27563"><gml:coordinates>974364.62,149814.4
974368.73,149812.58 974375.34,149809.66 974379.67,149807.74
974382.42,149815.67 974370.45,149821.85 974369.73,149822.22
974367.8,149819.26 974366.88,149817.86
974364.62,149814.4</gml:coordinates></gml:LinearRing>
</gml:outerBoundaryIs>
</gml:Polygon>
</gml:polygonMember>
</gml:MultiPolygon>
</local:geom>
</local:dgi_parc>
</gml:featureMember>
</wfs:FeatureCollection>
Here the
Gilles Bassière a écrit :
>
>
> Olivier Terral wrote:
>> Salut Gilles,
>>>
>>>
>>> <?xml version="1.0" encoding="utf-8"?>
>>> <wfs:FeatureCollection xmlns="http://www.opengis.net/wfs"
>>> xmlns:wfs="http://www.opengis.net/wfs"
>> You have specified 2 times the same namespace maybe only the 2nd
>> (xmlns:wfs="http://www.opengis.net/wfs") is enough
>
> I probably did something wrong while trying your solution the first
> time. It actually works if I remove the duplicate definition and every
> instance of the wfs prefix (both in the declaration and in the
> namespace property of the config file).
>
> Nevertheless, I think the problem is different because I have the same
> error again with the gml prefix... :(
>
> There might be something wrong with the xsi declaration, I'll try to
> learn more about it tomorrow. Any help with this would be greatly
> appreciated :)
>
> Gilles
>
>>
>>
>>>
>>>
>>> -------------------------------------------------------------------------
>>>
>>> This SF.net email is sponsored by: Microsoft Defy all challenges.
>>> Microsoft(R) Visual Studio 2008.
>>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>>> ------------------------------------------------------------------------
>>>
>>>
>>> _______________________________________________
>>> Mapbuilder-users mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/mapbuilder-users
>>>
>>
>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Mapbuilder-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mapbuilder-users