Thanks Olivier. It doesn't work anyway. I can see the layer "base" but not my tinyows layer... I post for you:
1) my config.xml file: <tinyows online_resource="http://127.0.0.1:8080/cgi-bin/tinyows.exe" schema_dir="C:\PostgreSQL\EnterpriseDB-ApachePHP\tinyows\schema\" log="C:\PostgreSQL\EnterpriseDB-ApachePHP\apache\logs\tinyows.log" log_level="7"> <pg host="localhost" user="***" password="***" dbname="***" port="5432"/> <metadata name="TinyOWS Server" title="TinyOWS Server - Demo Service" /> <layer retrievable="1" ns_prefix="tows" ns_uri="http://www.tinyows.org" name="france" title="France Departments Boundaries" /> </tinyows> 2) the tinyows.log error: [ERROR] Element '{http://www.w3.org/2001/XMLSchema}import': Failed to locate a schema at location ' http://127.0.0.1:8080/cgi-bin/tinyows.exe?service=WFS&request=DescribeFeatureType&version=1.0.0'. Skipping the import. [ERROR] Element '{http://www.opengis.net/wfs}GetFeature': No matching global declaration available for the validation root. 3) the result of the call ' http://127.0.0.1:8080/cgi-bin/tinyows.exe?service=WFS&request=DescribeFeatureType&version=1.0.0' seems to work. I get: <xs:schema xmlns:tows="http://www.tinyows.org" xmlns:ogc=" http://www.opengis.net/ogc"xmlns:xs="http://www.w3.org/2001/XMLSchema " xmlns="http://www.w3.org/2001/XMLSchema" xmlns:gml=" http://www.opengis.net/gml"targetNamespace="http://www.tinyows.org " elementFormDefault="qualified" version="1.0"> <xs:import namespace="http://www.opengis.net/gml" schemaLocation=" http://schemas.opengis.net/gml/2.1.2/feature.xsd"/> <xs:element name="france" type="tows:franceType" substitutionGroup="gml:_Feature"/> <xs:complexType name="franceType"> <xs:complexContent> <xs:extension base="gml:AbstractFeatureType"> <xs:sequence> <xs:element name="id_geofla" type="decimal" nillable="true" minOccurs="0" maxOccurs="1"/> <xs:element name="code_chf_l" type="string" nillable="true" minOccurs="0" maxOccurs="1"/> <xs:element name="nom_chf_l" type="string" nillable="true" minOccurs="0" maxOccurs="1"/> <xs:element name="x_chf_lieu" type="int" nillable="true" minOccurs="0" maxOccurs="1"/> <xs:element name="y_chf_lieu" type="int" nillable="true" minOccurs="0" maxOccurs="1"/> <xs:element name="x_centroid" type="int" nillable="true" minOccurs="0" maxOccurs="1"/> <xs:element name="y_centroid" type="int" nillable="true" minOccurs="0" maxOccurs="1"/> <xs:element name="nom_dept" type="string" nillable="true" minOccurs="0" maxOccurs="1"/> <xs:element name="code_reg" type="string" nillable="true" minOccurs="0" maxOccurs="1"/> <xs:element name="nom_region" type="string" nillable="true" minOccurs="0" maxOccurs="1"/> <xs:element name="code_dept" type="string" nillable="true" minOccurs="0" maxOccurs="1"/> <xs:element name="geom" type="gml:MultiPolygonPropertyType" nillable="true" minOccurs="0" maxOccurs="1"/> </xs:sequence> </xs:extension> </xs:complexContent> </xs:complexType> </xs:schema> 4) Finally the error on apache error.log: [client 127.0.0.1] error : No such file or directory\r, referer: http://localhost:8080/tinyows.html [error] [client 127.0.0.1] I/O warning : failed to load external entity " http://127.0.0.1:8080/cgi-bin/tinyows.exe?service=WFS&request=DescribeFeatureType&version=1.0.0"\r, referer: http://localhost:8080/tinyows.html On QGIS I'm able to load the layer without problem, as before. Thanks again, Riccardo P.S.:sorry Olivier maybe before I've answered just to you... 2012/10/16 Olivier Courtin <[email protected]> > Hi Riccardo, > > Well if everything work's fine except OpenLayers, > maybe it's an OpenLayers configuration issue... > > TinyOWS debug tools are really unix based, > so could be a bit painfull under Win32... > > I suggest you to begin to follow step by step > this tutorial, to check that everything work as expected: > http://mapserver.org/trunk/tinyows/openlayershowtobasic.html > > > Nota: With OpenLayers client retrieving data as GeoJson > is a better idea than as GML. > > HTH, > > -- > Olivier > > _______________________________________________ > mapserver-users mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/mapserver-users > >
_______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
