<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=iso-8859-1"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=FR link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>Hi everyone,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I’m trying to validate a GML file produced with ogr2ogr with OpenGIS GML XSD files.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>For every file I try to validate I have the same error message : « element FeatureCollection: Schemas validity error : Element '{http://ogr.maptools.org/}FeatureCollection': No matching global declaration available for the validation root. »<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I suspect I do something wrong but I can’t figure what !?!<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I tried several -dsco FORMAT parameter and tried to validate on every schema I could find here <a href="http://schemas.opengis.net/gml/">http://schemas.opengis.net/gml/</a> without any success.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Does someone know what I’m doing wrong or could help me to validate my file ?<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Thanks a lot !<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Copy of my test file :<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><?xml version="1.0" encoding="utf-8" ?><o:p></o:p></p><p class=MsoNormal><ogr:FeatureCollection<o:p></o:p></p><p class=MsoNormal> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"<o:p></o:p></p><p class=MsoNormal> xsi:schemaLocation="http://ogr.maptools.org/ test.xsd"<o:p></o:p></p><p class=MsoNormal> xmlns:ogr="http://ogr.maptools.org/"<o:p></o:p></p><p class=MsoNormal> xmlns:gml="http://www.opengis.net/gml"><o:p></o:p></p><p class=MsoNormal> <gml:boundedBy><o:p></o:p></p><p class=MsoNormal> <gml:Box><o:p></o:p></p><p class=MsoNormal> <gml:coord><gml:X>3.38653564453125</gml:X><gml:Y>50.41551870402676</gml:Y></gml:coord><o:p></o:p></p><p class=MsoNormal> <gml:coord><gml:X>4.57305908203125</gml:X><gml:Y>50.89956852220873</gml:Y></gml:coord><o:p></o:p></p><p class=MsoNormal> </gml:Box><o:p></o:p></p><p class=MsoNormal> </gml:boundedBy><o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal> <gml:featureMember><o:p></o:p></p><p class=MsoNormal> <ogr:test fid="test.0"><o:p></o:p></p><p class=MsoNormal> <ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>4.49066162109375,50.896103955543587 3.38653564453125,50.60415948856101 4.57305908203125,50.415518704026759 3.61724853515625,50.899568522208732 4.49066162109375,50.896103955543587</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty><o:p></o:p></p><p class=MsoNormal> <ogr:userid>userid-1</ogr:userid><o:p></o:p></p><p class=MsoNormal> </ogr:test><o:p></o:p></p><p class=MsoNormal> </gml:featureMember><o:p></o:p></p><p class=MsoNormal> <gml:featureMember><o:p></o:p></p><p class=MsoNormal> <ogr:test fid="test.1"><o:p></o:p></p><p class=MsoNormal> <ogr:geometryProperty><gml:MultiPolygon srsName="EPSG:4326"><gml:polygonMember><gml:Polygon><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>3.921339446183916,50.745568181163129 4.57305908203125,50.415518704026759 3.38653564453125,50.60415948856101 3.921339446183916,50.745568181163129</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></gml:polygonMember><gml:polygonMember><gml:Polygon><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>4.49066162109375,50.896103955543587 3.921339446183916,50.745568181163129 3.61724853515625,50.899568522208732 4.49066162109375,50.896103955543587</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></gml:polygonMember></gml:MultiPolygon></ogr:geometryProperty><o:p></o:p></p><p class=MsoNormal> <ogr:label>label-2</ogr:label><o:p></o:p></p><p class=MsoNormal> </ogr:test><o:p></o:p></p><p class=MsoNormal> </gml:featureMember><o:p></o:p></p><p class=MsoNormal></ogr:FeatureCollection><o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span lang=FR-BE style='mso-fareast-language:FR'>Jonathan Beliėn<o:p></o:p></span></p><p class=MsoNormal><span lang=FR-BE style='mso-fareast-language:FR'>GEO-6<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>