Hi Igor,

Which version of GeoServer are you using? Would you be able to attach the 
mapping files as well?

>From the output, it is either a bug or an error in the mapping.

Victor Tey 
Software Engineer
ASRDC
CSIRO Earth Science and Resource Engineering
Phone: +61 8 6436 8944 
[email protected] | www.csiro.au | 
Address: Australian Resources Research Centre, 26 Dick Perry Avenue, Kensington 
WA 6151
PLEASE NOTE
The information contained in this email may be confidential or privileged. Any 
unauthorised use or disclosure is prohibited. If you have received this email 
in error, please delete it immediately and notify the sender by return email. 
Thank you. To the extent permitted by law, CSIRO does not represent, warrant 
and/or guarantee that the integrity of this communication has been maintained 
or that the communication is free of errors, virus, interception or 
interference. 
Please consider the environment before printing this email.


-----Original Message-----
From: igor.erdoiza [mailto:[email protected]] 
Sent: Wednesday, 24 October 2012 3:34 PM
To: [email protected]
Subject: Re: [Geoserver-users] GEOServer: app-schema & Feature Chaining

Hi Victor and again, thanks for your help.

It may clearify the issue if I write the output I want to get and the output I 
am actually getting:

I have a table (transitStop) that references another table (provider) through 
the provider_id field. I want to show data from every transitStop including 
data from the provider pointed by the transitStop. What I want to get is 
something similar to this:

<gml:featureMember>
        <cocities:TransitStop gml:id="oip_transit_stop.3">
                <cocities:code>3</cocities:code>
                <cocities:name>3</cocities:name>
                <cocities:long_name>Jackson & Menard</cocities:long_name>
                <cocities:bus_stop>
                        <gml:Point srsDimension="2" 
srsName="urn:x-ogc:def:crs:EPSG:4326">
                                <gml:pos>41.87695725 -87.76975039</gml:pos>
                        </gml:Point>
                </cocities:bus_stop>
                <cocities:provider> 
                        <cocities:providername>Ayuntamiento de 
Bilbao</cocities:providername>
                        <cocities:providerid>3</cocities:providerid>
                </cocities:provider> 
        </cocities:TransitStop>
</gml:featureMember>

And this is what I am getting:

<?xml version="1.0" encoding="UTF-8"?>
<gml:featureMember>
        <cocities:TransitStop gml:id="oip_transit_stop.3">
                <cocities:code>3</cocities:code>
                <cocities:name>3</cocities:name>
                <cocities:long_name>Jackson & Menard</cocities:long_name>
                <cocities:bus_stop>
                        <gml:Point srsDimension="2" 
srsName="urn:x-ogc:def:crs:EPSG:4326">
                                <gml:pos>41.87695725 -87.76975039</gml:pos>
                        </gml:Point>
                </cocities:bus_stop>
                <cocities:provider>
                        <cocities:name>Ayuntamiento de Bilbao</cocities:name>
                        <cocities:name>
                                FeatureImpl:provider
                                <ProviderType id=oip_provider.3>
                                        =[AttributeImpl:providerid
                                        <string>
                                                =oip_provider.3, 
AttributeImpl:name
                                                <string>=TxDOT]
                        </cocities:name>
                        <cocities:name>
                                FeatureImpl:provider
                                <ProviderType id=oip_provider.8>
                                        =[AttributeImpl:providerid
                                        <string>
                                                =oip_provider.8, 
AttributeImpl:name
                                                <string>=DTN Weather service]
                        </cocities:name>
                        <cocities:name>
                                FeatureImpl:provider
                                <ProviderType id=oip_provider.1>
                                        =[AttributeImpl:providerid
                                        <string>
                                                =oip_provider.1, 
AttributeImpl:name
                                                <string>=ICM]
                        </cocities:name>
                        <cocities:providerid>
                                FeatureImpl:provider
                                <ProviderType id=oip_provider.2>
                                        =[AttributeImpl:providerid
                                        <string>
                                                =oip_provider.2, 
AttributeImpl:name
                                                <string>=Ayuntamiento de Bilbao]
                        </cocities:providerid>
                        <cocities:providerid>
                                FeatureImpl:provider
                                <ProviderType id=oip_provider.3>
                                        =[AttributeImpl:providerid
                                        <string>
                                                =oip_provider.3, 
AttributeImpl:name
                                                <string>=TxDOT]
                        </cocities:providerid>
                        <cocities:providerid>
                                FeatureImpl:provider
                                <ProviderType id=oip_provider.8>
                                        =[AttributeImpl:providerid
                                        <string>
                                                =oip_provider.8, 
AttributeImpl:name
                                                <string>=DTN Weather service]
                        </cocities:providerid>
                        <cocities:providerid>
                                FeatureImpl:provider
                                <ProviderType id=oip_provider.1>
                                        =[AttributeImpl:providerid
                                        <string>
                                                =oip_provider.1, 
AttributeImpl:name
                                                <string>=ICM]
                        </cocities:providerid>
                </cocities:provider>
        </cocities:TransitStop>
</gml:featureMember>

It fetches all the providers in the first TransitStop

May be, it has something to do with the xsd file or the Featuremappings but I 
find it imposible to find a solution.
Thank you very much





--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/GEOServer-app-schema-Feature-Chaining-tp5010210p5010710.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics Download AppDynamics Lite for free 
today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to