Below are relevant excerpts of my config file :

<?xml version="1.0" encoding="utf-8" standalone="no"?>
<MapbuilderConfig version="0.2.1" id="referenceTemplate"
xmlns="http://mapbuilder.sourceforge.net/mapbuilder";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://mapbuilder.sourceforge.net/mapbuilder mapbuilder/lib/schemas/config.xsd">

  <models>
[...]

     <!-- Gestion des localisations -->
     <FeatureCollection id="localisationModel">
        <widgets>
           <GmlRendererOL id="localisationGmlZoom">
              <targetModel>mainMap</targetModel>
           </GmlRendererOL>
           <ZoomToBboxGml id="localisationZoomToBbox">
              <targetModel>mainMap</targetModel>
<scriptFile>mapbuilder/customlib/widget/ZoomToBboxGml.js</scriptFile>
           </ZoomToBboxGml>
        </widgets>
<namespace>xmlns:wfs='http://www.opengis.net/wfs' xmlns:gml='http://www.opengis.net/gml' xmlns:local='http://localhost'</namespace>
     </FeatureCollection>

     [...]

  </models>

  <widgets>

     [...]

  </widgets>

  <skinDir>mapbuilder/customlib/skin/customskin</skinDir>
  <userWidgetTextDir>mapbuilder/customlib/text</userWidgetTextDir>
  <proxyUrl>/mapbuilder/server/php/proxy.php</proxyUrl>
  <serializeUrl>/mapbuilder/server/php/serializer.php</serializeUrl>
</MapbuilderConfig>

and here is my GML file :

<?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:LineString 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:LineString> </gml:outerBoundaryIs>

           </gml:Polygon>
         </gml:polygonMember>
       </gml:MultiPolygon>
     </local:geom>
   </local:dgi_parc>
 </gml:featureMember>
</wfs:FeatureCollection>


I didn't progress any further. Do you see something wrong in my XML code ?
Regards,
Gilles


[EMAIL PROTECTED] wrote:

Could you send your GML file and your config file please


Gilles Bassière a écrit :
Hi Olivier,

Thanks for help. I tried to remove either of xmlns= and xmlns:wfs= with no success. I also tried to remove all 'wfs' prefix in tags but it does not help.

Regards
Gilles


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




------------------------------------------------------------------------- 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




--
Gilles Bassiere
MAKINA CORPUS
30 rue des Jeuneurs
FR-75002 PARIS
+33 (0) 1 44 82 00 80
http://www.makina-corpus.com

begin:vcard
fn;quoted-printable:Gilles Bassi=C3=A8re
n;quoted-printable:Bassi=C3=A8re;Gilles
org:Makina Corpus;GIS
adr;quoted-printable:;;30 rue des Je=C3=BBneurs;Paris;;FR-75011;France
email;internet:[EMAIL PROTECTED]
title:Web GIS developper
tel;work:+33 (0) 1 44 82 00 80
x-mozilla-html:FALSE
url:http://www.makina-corpus.com
version:2.1
end:vcard

-------------------------------------------------------------------------
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

Reply via email to