Okay I get where the confusion comes from …

This is not the descriptor of the feature collection (which you are correct 
would be handled by whatever is containing it). This is instead only talking 
about getting a better handle on the contents of our feature collection.

My impression this is the GML difference between the name of feature members 
(something like "country") and the type of the feature members (something like 
"CountryType").

From the WFS spec they have an example with Person and PersionType:

<wfs:FeatureCollection …. >
   …
   <gml:featureMember>
      <Person>
         <myns:lastName>Smith</myns:lastName>
         <myns:firstName>Fred</myns:firstName>
         <myns:age>35</myns:age>
         <myns:sex>Male</myns:sex>
         <myns:location>
            <gml:Point><gml:pos>15 15</gml:pos></gml:Point>
         </myns:location>
         ...
      </Person>
   </gml:featureMember>
</wfs:FeatureCollection>


Backed by the schema:

    <xsd:element name="Person"
                    type="myns:PersonType"
                    substitutionGroup="gml:_Feature"/>


<xsd:complexType name="PersonType">
    <xsd:complexContent>
        <xsd:extension base="gml:AbstractFeatureType">
           <xsd:sequence>
                …
            </xsd:sequence>
        </xsd:extension>
   </xsd:complexContent>
</xsd:complexType>



Currently that shows up in GeoTools as a FeatureCollection with:
- getSchema(): "PersonType" information

And Ben did some amazing hack to look up "Person" when encoding the result …

The request is to make:
- getSchema(): "PersonType" information
- getDescriptor(): An attribute descriptor "Person" indicating the contents are 
of type "PersonType"  

--  
Jody Garnett


On Sunday, 24 June 2012 at 8:11 PM, Andrea Aime wrote:

> Well, I don't get why we need the name to start with. In my mind a feature 
> collection is either a stand alone container,
> for which I don't see the need of a descriptor, or it could be the value of a 
> complex feature property, but in the latter case  
> the property already has its own descriptor.
>  
> What's the use case for having a descriptor of a collection?
>  
> Cheres
> Andrea
>  
>  
>  


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to