Improve FeatureAccess to work over Name instead of TypeName
-----------------------------------------------------------

                 Key: GEOT-1317
                 URL: http://jira.codehaus.org/browse/GEOT-1317
             Project: GeoTools
          Issue Type: Improvement
          Components: data, new modules
    Affects Versions: 2.4.0
            Reporter: Gabriel Roldán
            Assignee: Gabriel Roldán
             Fix For: 2.4.0


{{FeatureAccess}} access content by {{TypeName}}. It should be by {{Name}}.

consider the example used in the WFS 1.1 spec: a {{DescribeFeatureType for the 
TypeName}}  {{myns:TreesA_1M}} and {{myns:RoadL_1M}} returns a schema with the 
{{myns:TreesA_1M}} and {{myns:RoadL_1M}} element declarations and the 
{{myns:TreesA_1M_Type}} and {{myns:RoadL_1M_Type}} type definitions
respectively.

Despite the example is GML biased, it exposes the difference between what we're 
querying for, and what's the type of what we're querying for. As we usually do 
not differentiate that, a common hack in geoserver is to respond with a type 
definition whose name is composed of the Feature name queried plus {{"_Type"}}. 
i.e., if asked for {{ROAD}}, encode the road type as {{ROAD_TYPE}}. 
this doesn't used to be a problem, as generally we assume the table name in the 
backend RDBMS is the Feature name.

But working with externally defined feature types exposes the problem as a 
blocker, since we don't have control over what the Feature name and the 
FeatureType name are, and it doesnt makes sense to keep the hack around.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to