[Geoserver-devel] Another bug with GetFeature??

When I write the following request --> http://myserver:8080/geoserver/wfs?request=GetFeature&typename=ntadfhwa_uza:ntadfhwa_uza,fire:fire I get the following:

<?xml version="1.0" encoding="UTF-8" ?>
- <#> <wfs:FeatureCollection xmlns:wfs="*http://www.opengis.net/wfs*&quot; xmlns:fire="*http://picasso.dlsi.uji.es/schemas/oklahoma/fire*&quot; xmlns:gml="*http://www.opengis.net/gml*&quot; xmlns:ntadfhwa_uza="*http://picasso.dlsi.uji.es/schemas/oklahoma/ntadfhwa_uza*&quot; xmlns:xsi="*http://www.w3.org/2001/XMLSchema-instance*&quot; xsi:schemaLocation="*http://picasso.dlsi.uji.es/schemas/oklahoma/fire http://localhost:8080/geoserver/wfs/DescribeFeatureType?typeName=ntadfhwa_uza:ntadfhwa_uza,fire:fire http://www.opengis.net/wfs http://localhost:8080/geoserver/data/capabilities/wfs/1.0.0/WFS-basic.xsd*&quot;&gt;
- <#> <gml:boundedBy>
- <#> <gml:Box srsName="*http://www.opengis.net/gml/srs/epsg.xml#13869*&quot;&gt;
  <gml:coordinates decimal="*.*" cs="*,*" ts="">-98.53723199,34.5322885 -98.53723199,36.59758438 -94.43181798,36.59758438 -94.43181798,34.5322885</gml:coordinates>
  </gml:Box>
  </gml:boundedBy>

.

So, when I try to validate de response with a xml validator I get the following errors:

    * ERROR at line 2: cvc-complex-type.2.4.a: Invalid content was found
      starting with element 'fire:fire'. One of
      '{"http://www.opengis.net/gml&quot;:\_Feature\}' is expected.
    * ERROR at line 2: cvc-complex-type.2.4.a: Invalid content was found
      starting with element 'fire:fire'. One of
      '{"http://www.opengis.net/gml&quot;:\_Feature\}' is expected.
    * ERROR at line 2: cvc-complex-type.2.4.a: Invalid content was found
      starting with element 'fire:fire'. One of
      '{"http://www.opengis.net/gml&quot;:\_Feature\}' is expected.
    * ERROR at line 2: cvc-complex-type.2.4.a: Invalid content was found
      starting with element 'fire:fire'. One of
      '{"http://www.opengis.net/gml&quot;:\_Feature\}' is expected.

.

I think the bug is in this line:

xsi:schemaLocation="*http://picasso.dlsi.uji.es/schemas/oklahoma/fire http://localhost:8080/geoserver/wfs/DescribeFeatureType?typeName=ntadfhwa_uza:ntadfhwa_uza,fire:fire*

because *ntadfhwa_uza and **fire prefixes belong to distinct namespaces (**http://picasso.dlsi.uji.es/schemas/oklahoma/fire and **http://picasso.dlsi.uji.es/schemas/oklahoma/**ntadfhwa_uza**and **respectively) , so geoserver should generate something similar to this:

*xsi:schemaLocation="*http://picasso.dlsi.uji.es/schemas/oklahoma/fire http://localhost:8080/geoserver/wfs/DescribeFeatureType?typeName=fire:fire
                                 **http://picasso.dlsi.uji.es/schemas/oklahoma/**ntadfhwa_uza** http://localhost:8080/geoserver/wfs/DescribeFeatureType?typeName=**ntadfhwa_uza:ntadfhwa_uza&quot;\*
*

Any suggestion???

*

--
Miguel Ángel Esbrí
Dept. Information Systems
(Lenguajes y Sistemas Informáticos)
Universitat Jaume I
E-12071 Castellón, Spain
mailto:maesbri@anonymised.com
http://edugi.uji.es

What does the response to

http://localhost:8080/geoserver/wfs/DescribeFeatureType?typeName=ntadfhwa_uza:ntadfhwa_uza,fire:fire*

look like? It shouldn't need two imports there, as that
DescribeFeatureType response should actually just be two different imports
of the namespaces, which the validator would then follow and get the
actual schemas. So basically geoserver puts the two imports in that
describe feature type statement.

If you could email me the full response to the GetFeature request, as well
as to the describe request with both and the describe requests with one
each, along with the catalog.xml, info.xml and schema.xml files if you
used them I can try to diagnose the problem. GeoServer has been tested
through the CITE conformance tests for this, so it should work, it's
likely an error with configuration.

Chris

On Fri, 27 Feb 2004, Miguel Ángel Esbrí wrote:

When I write the following request -->
http://myserver:8080/geoserver/wfs?request=GetFeature&typename=ntadfhwa_uza:ntadfhwa_uza,fire:fire
I get the following:

<?xml version="1.0" encoding="UTF-8" ?>
- <#> <wfs:FeatureCollection xmlns:wfs="*http://www.opengis.net/wfs*&quot;
xmlns:fire="*http://picasso.dlsi.uji.es/schemas/oklahoma/fire*&quot;
xmlns:gml="*http://www.opengis.net/gml*&quot;
xmlns:ntadfhwa_uza="*http://picasso.dlsi.uji.es/schemas/oklahoma/ntadfhwa_uza*&quot;
xmlns:xsi="*http://www.w3.org/2001/XMLSchema-instance*&quot;
xsi:schemaLocation="*http://picasso.dlsi.uji.es/schemas/oklahoma/fire
http://localhost:8080/geoserver/wfs/DescribeFeatureType?typeName=ntadfhwa_uza:ntadfhwa_uza,fire:fire
http://www.opengis.net/wfs
http://localhost:8080/geoserver/data/capabilities/wfs/1.0.0/WFS-basic.xsd*&quot;&gt;
- <#> <gml:boundedBy>
- <#> <gml:Box srsName="*http://www.opengis.net/gml/srs/epsg.xml#13869*&quot;&gt;
  <gml:coordinates decimal="*.*" cs="*,*" ts="">-98.53723199,34.5322885
-98.53723199,36.59758438 -94.43181798,36.59758438
-94.43181798,34.5322885</gml:coordinates>
  </gml:Box>
  </gml:boundedBy>

.
.
.
.
.
.

So, when I try to validate de response with a xml validator I get the
following errors:

    * ERROR at line 2: cvc-complex-type.2.4.a: Invalid content was found
      starting with element 'fire:fire'. One of
      '{"http://www.opengis.net/gml&quot;:\_Feature\}' is expected.
    * ERROR at line 2: cvc-complex-type.2.4.a: Invalid content was found
      starting with element 'fire:fire'. One of
      '{"http://www.opengis.net/gml&quot;:\_Feature\}' is expected.
    * ERROR at line 2: cvc-complex-type.2.4.a: Invalid content was found
      starting with element 'fire:fire'. One of
      '{"http://www.opengis.net/gml&quot;:\_Feature\}' is expected.
    * ERROR at line 2: cvc-complex-type.2.4.a: Invalid content was found
      starting with element 'fire:fire'. One of
      '{"http://www.opengis.net/gml&quot;:\_Feature\}' is expected.

.
.
.
.
.

I think the bug is in this line:

xsi:schemaLocation="*http://picasso.dlsi.uji.es/schemas/oklahoma/fire
http://localhost:8080/geoserver/wfs/DescribeFeatureType?typeName=ntadfhwa_uza:ntadfhwa_uza,fire:fire*

because *ntadfhwa_uza and **fire prefixes belong to distinct namespaces
(**http://picasso.dlsi.uji.es/schemas/oklahoma/fire and
**http://picasso.dlsi.uji.es/schemas/oklahoma/**ntadfhwa_uza**and
**respectively) , so geoserver should generate something similar to this:

*xsi:schemaLocation="*http://picasso.dlsi.uji.es/schemas/oklahoma/fire
http://localhost:8080/geoserver/wfs/DescribeFeatureType?typeName=fire:fire
                                 
**http://picasso.dlsi.uji.es/schemas/oklahoma/**ntadfhwa_uza**
http://localhost:8080/geoserver/wfs/DescribeFeatureType?typeName=**ntadfhwa_uza:ntadfhwa_uza&quot;\*
*

Any suggestion???

*

--