BTW, I was wondering about the request URL, first I tried without
service=WFS and got an exception that doesn't say anything about the
missing required parameter (
http://demo.opengeo.org/geoserver/topp/wfs?request=GetFeature&version=1.0.0&outputFormat=csv&propertyName=STATE&typeName=topp:tasmania_state_boundaries
):
<?xml version="1.0" ?>
<ServiceExceptionReport
version="1.2.0"
xmlns="http://www.opengis.net/ogc"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.opengis.net/ogc
http://schemas.opengis.net/wfs/1.0.0/OGC-exception.xsd">
<ServiceException>
java.lang.ClassCastException: java.lang.String cannot be cast to
java.util.Collection
java.lang.String cannot be cast to java.util.Collection
</ServiceException>
</ServiceExceptionReport>
I expected to get a response like this:
<?xml version="1.0" ?>
<ServiceExceptionReport
version="1.2.0"
xmlns="http://www.opengis.net/ogc"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.opengis.net/ogc
http://schemas.opengis.net/wfs/1.0.0/OGC-exception.xsd">
<ServiceException code="MissingParameterValue" locator="service">
Could not determine geoserver request from http request ...
</ServiceException>
</ServiceExceptionReport>
Any idea?
2013/5/24 Frank Gasdorf <[email protected]>
> Thanks! I guess your hint about minOccurs should help to solve the
> problem. I had a second look at the DescribeFeatureType output and all
> values set to "0" (and maxOccurs is set to "1") - sorry for this confusion
> and the clarification for POST request format itself.
>
> - Frank
>
>
> 2013/5/24 Andrea Aime <[email protected]>
>
>> On Fri, May 24, 2013 at 10:19 AM, Frank Gasdorf <
>> [email protected]> wrote:
>>
>>> Andrea, you are right, the used feature type has all minOccurs values
>>> set to "1" whereas nillable is set to "true". Later confuses me a bit
>>> because mandatory properties which can be null? Or what does it mean if the
>>> property nillable is set tu true?
>>>
>>> Used request :
>>> http://demo.opengeo.org/geoserver/topp/wfs?request=DescribeFeatureType&typeName=topp:tasmania_state_boundaries
>>>
>>>
>>
>> No no, it means that all properties are optional
>> I had another look at your request, and it's ill formed: you cannot do a
>> POST request but do property selection in the url,
>> mixing the two styles for output format works just by accident.
>>
>> This one if properly setup, and works as expected:
>>
>>
>> http://demo.opengeo.org/geoserver/topp/wfs?request=GetFeature&version=1.1.0&service=wfs&typeName=topp:tasmania_state_boundaries&propertyName=STATE&outputFormat=csv
>>
>> Cheers
>> Andrea
>>
>>
>> --
>> ==
>> GeoServer training in Milan, 6th & 7th June 2013! Visit
>> http://geoserver.geo-solutions.it for more information.
>> ==
>>
>> Ing. Andrea Aime
>> @geowolf
>> Technical Lead
>>
>> GeoSolutions S.A.S.
>> Via Poggio alle Viti 1187
>> 55054 Massarosa (LU)
>> Italy
>> phone: +39 0584 962313
>> fax: +39 0584 1660272
>> mob: +39 339 8844549
>>
>> http://www.geo-solutions.it
>> http://twitter.com/geosolutions_it
>>
>> -------------------------------------------------------
>>
>
>
------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users