Re: [Geoserver-users] Support for SQL 'Interval' type in GeoServer

2013-11-07 Thread snuffy
Thanks Andrea,

Sorry for the late reply.

Thought that might have been the case, although I doubt i'll take it on
could you give example of what java files etc need to be created/edited to
support the additional type? (rather new to the codebase)

I did try mapping my duration to a string (sql side) which GeoServer did
read, then hoped when it tried to encode the output xml it would just use a
regex from xsd to determine if the duration was valid but alas still empty
field ;).




On 4 November 2013 17:56, Andrea Aime andrea.a...@geo-solutions.it wrote:

 On Mon, Nov 4, 2013 at 1:27 AM, snuffy snuff...@gmail.com wrote:

 Hello All,

 I have a table with int,timestamp,string and an interval.

 But it seems like GeoServer does not support the 'interval' type.

 Is it likely to be supported? or is my best bet to just have an
 additional field that takes the interval type and converts it to string?.


 It will get supported the first time someone needs it badly enough to
 implement themselves, or sponsor someone to
 do that for them (which involves dealing with the new type at the data
 level, encoding filters involving it, encoding and parsing
 it in GML2/3/3.2,GeoJSON, decide what to do with zipped shapefiles, how to
 use it in WMS, and so on), all in all it's a sizeable
 amount of work.

 You decide which is the best route for you. :-)

 Cheers
 Andrea

 --
 ==
 Our support, Your Success! Visit http://opensdi.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

 ---

--
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most 
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231iu=/4140/ostg.clktrk___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] Support for SQL 'Interval' type in GeoServer

2013-11-03 Thread snuffy
Hello All,

I have a table with int,timestamp,string and an interval.

But it seems like GeoServer does not support the 'interval' type.

Is it likely to be supported? or is my best bet to just have an additional
field that takes the interval type and converts it to string?.


Thanks.
--
Android is increasing in popularity, but the open development platform that
developers love is also attractive to malware creators. Download this white
paper to learn more about secure code signing practices that can help keep
Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951iu=/4140/ostg.clktrk___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] App-schema data not populating

2013-10-27 Thread snuffy
Hello,

To expand on this slightly,

In my xsd I have:

 element name=location type=gml:GeometryPropertyType/

And in my features app-schema file is:
AttributeMapping
  targetAttributecompany:location/targetAttribute
  sourceExpression
OCQLpe_location/OCQL
  /sourceExpression
/AttributeMapping

Now the database shows the type=polygon and SRID =4326

The featuretype.xml file has the srs4326/srs within it.

When I request the feature I receive a blank entry for 'location'.

On the geoserver.log I see it populate the following info:

 GeometryAttributeImpl:positionMultiGeometryPropertyType
crs=GEOGCS[GDA94,
  DATUM[Geocentric Datum of Australia 1994,
SPHEROID[GRS 1980, 6378137.0, 298.257222101,
AUTHORITY[EPSG,7019]],
TOWGS84[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
AUTHORITY[EPSG,6283]],
  PRIMEM[Greenwich, 0.0, AUTHORITY[EPSG,8901]],
  UNIT[degree, 0.017453292519943295],
  AXIS[Geodetic latitude, NORTH],
  AXIS[Geodetic longitude, EAST],
  AUTHORITY[EPSG,4283]]=GEOMETRYCOLLECTION (POINT (-24.971244
114.871253))]


But it never shows in the final output.

I have a different app-schema which produces the same sort of output in the
log but also displays it in the final XML.

Suggestions ?





On 24 October 2013 14:25, snuffy snuff...@gmail.com wrote:

 Hello All,

 I want to try and figure out why app-schema is not displaying content,
 when viewing the 'geoserver.log' I see it gets content but does not display
 in the final WFS output.

 Is there a way to see more of why app-schema/geoserver is not displaying
 the content than silently discarding the results?


 Thanks

--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register 
http://pubads.g.doubleclick.net/gampad/clk?id=60135991iu=/4140/ostg.clktrk___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] App-schema data not populating

2013-10-23 Thread snuffy
Hello All,

I want to try and figure out why app-schema is not displaying content, when
viewing the 'geoserver.log' I see it gets content but does not display in
the final WFS output.

Is there a way to see more of why app-schema/geoserver is not displaying
the content than silently discarding the results?


Thanks
--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register 
http://pubads.g.doubleclick.net/gampad/clk?id=60135991iu=/4140/ostg.clktrk___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] App-schema and CharacterString Type

2013-10-14 Thread snuffy
Attached is stack trace..

Appears to be having issue with sql..

I think I know where the issue might be.. it is possible it is trying to
join between two databases.

(It was)

I have two different databases and two different jdbc connections, each
project uses their own.. except..

An app-schema feature can only describe a single jdbc datasource, so even
though each db has their own version of the 'ci_contact' and friends table,
when app-schema does a query its locked into the one jdbc datasource.

I guess if I want to implement separate db's which share another common
featureType  from an external namespace i'll need to have separate
geoservers or have it within a single database schema.

Thanks


On 14 October 2013 17:34, Ben Caradoc-Davies ben.caradoc-dav...@csiro.auwrote:

 Do you have a full stack trace?


 On 14/10/13 14:22, snuffy wrote:

 As a minor follow up to this.

 I've tried taking my 'company' schema and adding a CI_Contact entry.

 I believe something is not right in my xsd/xml.

 The error is listed below:

 ows:ExceptionText
 java.lang.RuntimeException: Error applying mapping with targetAttribute
 company:contactInfo Error applying mapping with targetAttribute
 company:contactInfo java.io.IOException null Schema 'person' does not
 exist.


 Have attached zip with relevant files.


 --
 Ben Caradoc-Davies ben.caradoc-dav...@csiro.au
 Software Engineer
 CSIRO Earth Science and Resource Engineering
 Australian Resources Research Centre

2013-10-15 09:53:29,477 INFO [org.geoserver.wfs] -
Request: getServiceInfo
2013-10-15 09:53:29,480 INFO [org.geoserver.wfs] -
Request: getFeature
service = wfs
version = 1.1.0
baseUrl = http://192.168.3.186:8080/geoserver/
query[0]:
typeName[0] = {http://www.x.com/people/1.0}Person
maxFeatures = 5
outputFormat = text/xml; subtype=gml/3.1.1
resultType = results
2013-10-15 09:53:29,482 DEBUG [org.geotools.xml] - building schema for schema: 
http://www.opengis.net/wfs
2013-10-15 09:53:29,638 DEBUG [org.geotools.jdbc] - CREATE CONNECTION
2013-10-15 09:53:29,642 DEBUG [org.geotools.jdbc] - SELECT 
person.p_id,person.p_name FROM person ORDER BY person.p_id ASC
2013-10-15 09:53:29,643 TRACE [org.geotools.data.complex.filter] - ENTRY 
FeatureImpl:PersonPersonType id=1=[] company:fullName empl 2 null null
2013-10-15 09:53:29,644 DEBUG [org.geotools.jdbc] - CREATE CONNECTION
2013-10-15 09:53:29,647 DEBUG [org.geotools.jdbc] - CREATE CONNECTION
2013-10-15 09:53:29,652 DEBUG [org.geotools.jdbc] - CLOSE CONNECTION
2013-10-15 09:53:29,652 DEBUG [org.geotools.jdbc] - CLOSE CONNECTION
2013-10-15 09:53:29,652 DEBUG [org.geotools.jdbc] - CLOSE CONNECTION
2013-10-15 09:53:29,652 ERROR [org.geoserver.ows] -
java.lang.RuntimeException: Error applying mapping with targetAttribute 
company:contactInfo
at 
org.geotools.data.complex.DataAccessMappingFeatureIterator.computeNext(DataAccessMappingFeatureIterator.java:1017)
at 
org.geotools.data.complex.AbstractMappingFeatureIterator.next(AbstractMappingFeatureIterator.java:280)
at 
org.geotools.feature.collection.BridgeIterator.next(BridgeIterator.java:31)
at 
org.geotools.feature.collection.BridgeIterator.next(BridgeIterator.java:18)
at org.geotools.xml.Encoder.encode(Encoder.java:703)
at org.geotools.xml.Encoder.encode(Encoder.java:588)
at 
org.geoserver.wfs.xml.GML3OutputFormat.encode(GML3OutputFormat.java:270)
at 
org.geoserver.wfs.xml.GML3OutputFormat.complexFeatureStreamIntercept(GML3OutputFormat.java:292)
at 
org.geoserver.wfs.xml.GML3OutputFormat.write(GML3OutputFormat.java:252)
at 
org.geoserver.wfs.WFSGetFeatureOutputFormat.write(WFSGetFeatureOutputFormat.java:190)
at org.geoserver.ows.Dispatcher.response(Dispatcher.java:919)
at 
org.geoserver.ows.Dispatcher.handleRequestInternal(Dispatcher.java:276)
at 
org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
at 
org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
at 
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923)
at 
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)
at 
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)
at 
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at 
org.geoserver.filters.ThreadLocalsCleanupFilter.doFilter(ThreadLocalsCleanupFilter.java:27

Re: [Geoserver-users] App-schema and CharacterString Type

2013-10-14 Thread snuffy
Sounds good,

I'd almost like an 'override' parameter or similar attached to the
datastore definition that I could then say:
forceLinkedJNDItrue/forceLinkedJNDI

Which when applied would use the JDBC connection of the feature requesting
the linkage to this feature.
aka:
Person pulls in CI_Contact, therefore override the jndi connection
specified by CI_Contact (if forceLinkJNDI = true) to be Person's JNDI
information.

I'm not sure how possible that is because I have not reviewed the code in
that respect.

PS: i noticed some sorting related changes on the git tree for app-schema
recently, does any of those changes remove the odd requirement of needing
the idExpression table column in the feature being linked to (because of
sorting)?


On 15 October 2013 14:44, rini.angre...@csiro.au wrote:

 Perhaps we could improve the joining setting by applying it per feature
 type, instead of per GeoServer instance.
 I raised this task, but I can't commit on working on it anytime soon.
 https://jira.codehaus.org/browse/GEOT-4596

 -Original Message-
 From: Caradoc-Davies, Ben (CESRE, Kensington)
 Sent: Tuesday, 15 October 2013 9:47 AM
 To: snuffy
 Cc: geoserver-users@lists.sourceforge.net; Angreani, Rini (CESRE,
 Kensington)
 Subject: Re: [Geoserver-users] App-schema and CharacterString Type

 Aha! Because app-schema can use separate connections for different feature
 types, it should work with chaining across different databases, but only if
 joining is turned off. It looks like you have found a use-case that does
 not automatically turn off joining; this is a bug.
 You can manually turn off joining in your app-schema.properties file:

 http://docs.geoserver.org/latest/en/user/data/app-schema/joining.html#conditions

 Kind regards,
 Ben.

 On 15/10/13 07:11, snuffy wrote:
  Attached is stack trace..
 
  Appears to be having issue with sql..
 
  I think I know where the issue might be.. it is possible it is trying
  to join between two databases.
 
  (It was)
 
  I have two different databases and two different jdbc connections,
  each project uses their own.. except..
 
  An app-schema feature can only describe a single jdbc datasource, so
  even though each db has their own version of the 'ci_contact' and
  friends table, when app-schema does a query its locked into the one
  jdbc datasource.
 
  I guess if I want to implement separate db's which share another
  common featureType  from an external namespace i'll need to have
  separate geoservers or have it within a single database schema.
 
  Thanks
 
 
  On 14 October 2013 17:34, Ben Caradoc-Davies
  ben.caradoc-dav...@csiro.au mailto:ben.caradoc-dav...@csiro.au
 wrote:
 
  Do you have a full stack trace?
 
 
  On 14/10/13 14:22, snuffy wrote:
 
  As a minor follow up to this.
 
  I've tried taking my 'company' schema and adding a CI_Contact
 entry.
 
  I believe something is not right in my xsd/xml.
 
  The error is listed below:
 
  ows:ExceptionText
  java.lang.RuntimeException: Error applying mapping with
  targetAttribute
  company:contactInfo Error applying mapping with targetAttribute
  company:contactInfo java.io.IOException null Schema 'person'
  does not exist.
 
 
  Have attached zip with relevant files.
 
 
  --
  Ben Caradoc-Davies ben.caradoc-dav...@csiro.au
  Software Engineer
  CSIRO Earth Science and Resource Engineering
  Australian Resources Research Centre
 
 

 --
 Ben Caradoc-Davies ben.caradoc-dav...@csiro.au Software Engineer CSIRO
 Earth Science and Resource Engineering Australian Resources Research Centre

--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register 
http://pubads.g.doubleclick.net/gampad/clk?id=60135031iu=/4140/ostg.clktrk___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] App-Schema: Inheritance question

2013-10-10 Thread snuffy
Hello Rini,

I'm still not quite understanding,

Why should the class being linked to have the ID field name of the class
being linked from as part of its sorting?

I agree there should be sorting on the main class by its ID, but it seems
wrong to require that same field to exist in the table its linking to.

I could understand if it decided to sort the linked class via its own 'id
field' but that's not what it does.






On 10 October 2013 16:19, rini.angre...@csiro.au wrote:

 Hi,

 Ben is quite right. The id ordering is used to handle multivalued
 properties. If idExpression is missing, it will order by primary key.
 If you don't want it to select v_super_class.sub_id, then perhaps you
 can set idExpression to map to another column.

 http://docs.geoserver.org/latest/en/user/data/app-schema/mapping-file.html#idexpression-optional

 Rini

 -Original Message-
 From: Caradoc-Davies, Ben (CESRE, Kensington)
 Sent: Thursday, 10 October 2013 12:50 PM
 To: snuffy
 Cc: geoserver-users@lists.sourceforge.net; Angreani, Rini (CESRE,
 Kensington)
 Subject: Re: [Geoserver-users] App-Schema: Inheritance question

 Please keep discussions on list.

 I am not sure; I speculate that this is used for multivalued properties or
 denormalised tables (in the absence of joining). Perhaps Rini can explain?

 Kind regards,
 Ben.

 On 10/10/13 11:59, snuffy wrote:
  Hello Ben,
 
  Was hoping you could explain why app-schema does the following to the
  database.
 
  I have zero issue with the joins, what I do have an issue with is this
  seemly tacked on the end  ASC, v_super_class.sub_id.
 
  I do not understand why it is required, now because i'm using
  postgreSQL inheritance for my tables I was forced to create a view
  that satisfied this additional requirement.
 
  Below is query:
 
 
 
  SELECT
 
 v_super_class.sup_id,v_super_class.sup_metadata_id,v_super_class.sup_f_contains,v_super_class.sub_id,sub_class.sub_id
  FOREIGN_ID_0_0 FROM v_super_class INNER JOIN sub_class ON (
  sub_class.sup_f_contains = v_super_class.sup_f_contains)
  ORDER BY sub_class.sub_id ASC, v_super_class.sup_id ASC,  CASE
  WHEN sub_class.sup_f_contains = v_super_class.sup_f_contains
  THEN 0 ELSE 1 END ASC, v_super_class.sub_id
 
 
 
 
  On 4 October 2013 14:55, Ben Caradoc-Davies
  ben.caradoc-dav...@csiro.au mailto:ben.caradoc-dav...@csiro.au
 wrote:
 
  This error means that comcomp:BranchManagerType does not have a
  property comcomp:otherVar so it cannot be used in a xpath (that is
  why it referring to location path). targetAttribute is in general
  an xpath.
 
  Kind regards,
  Ben.
 
 
  On 04/10/13 11:04, snuffy wrote:
 
  Hello Ben,
 
  I managed to get it working, thanks for your quick reply on this.
 
 
  I'm now trying to generalise this simple use case into my more
  complex
  model, with more complex types, and frustratingly I'm getting a
  new set
  of errors:
 
  java.lang.RuntimeException: Error applying mapping with
  targetAttribute
  comcomp:otherVar Error applying mapping with targetAttribute
  comcomp:__otherVarcomcompotherVar is not a valid location path
  for type
 
  http://www.x.com/comcomp/1.0:__BranchManagerType
  http://www.x.com/comcomp/1.0:BranchManagerType.
  comcomp:otherVar ns:
  http://www.x.com/comcomp/1.0, BranchManagerType properties:
  null#FEATURE_LINK,
  http://www.x.com/comcomp/1.0#__branchManagerType
  http://www.x.com/comcomp/1.0#branchManagerType
 
 
  Since this ended up working fine in my simpler model i'm going
  to redo
  my more complex one, in the hope that it does fix the issue.
 
  ... but if you have any quick suggestions on what these errors
 mean,
  then I'd be very appreciative to hear them.
 
  Thanks
 
 
  On 2 October 2013 19:36, Ben Caradoc-Davies
  ben.caradoc-dav...@csiro.au
  mailto:Ben.Caradoc-Davies@__csiro.au
  mailto:ben.caradoc-dav...@csiro.au wrote:
 
   Please send us the full error message that you get (include
  a stack
   trace from the logs if you have one), and your mapping file.
 
   Your schemas look good. Good job using FullMoon to generate
  them!
 
   Kind regards,
   Ben.
 
 
   On 02/10/13 15:44, snuffy wrote:
 
   Hello,
 
   I was playing around with app-schema and trying to do
  inheritance.
 
   I've got the following classes: (all exist within same
  namespace of
   'company')
   There are 3 separate xsd's
   (person/employee/customer- people.xsd)
   (manager - people-core.xsd)
   (branchmanager - people-retail.xsd)
 
   Person (fields: name,age

[Geoserver-users] App-schema and CharacterString Type

2013-10-10 Thread snuffy
Hello All,

I am trying to use the following constructs from the GMD namespace:
CI_Contact / CI_Telephone + CI_Address

It uses the 'CharacterString_PropertyType' which when i look at:
http://www.isotc211.org/2005/gco/basicTypes.xsd

States:

xs:element name=CharacterString type=xs:string/

xs:complexType name=CharacterString_PropertyType
xs:sequence minOccurs=0
xs:element ref=gco:CharacterString/
/xs:sequence
xs:attribute ref=gco:nilReason/
/xs:complexType


So it appears it maps back to the general 'string' type, but it is not
working when trying to populate the entry with a varchar from the DB.

Ideas? (Below is trace output from geoserver.log)

2013-10-11 11:11:11,192 TRACE [org.geotools.data.complex.filter] - ENTRY
FeatureImpl:CI_AddressCI_Address_Type id=2=[] gmd:city next city null null
2013-10-11 11:11:11,192 TRACE [org.geotools.data.complex.filter] - ENTRY
FeatureImpl:CI_AddressCI_Address_Type
id=2=[ComplexAttributeImpl:cityCharacterString_PropertyType=[]]
gmd:postalCode null null null


Thanks in advance
--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register 
http://pubads.g.doubleclick.net/gampad/clk?id=60134071iu=/4140/ostg.clktrk___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] App-Schema: Inheritance question

2013-10-03 Thread snuffy
Hello Ben,

I managed to get it working, thanks for your quick reply on this.


I'm now trying to generalise this simple use case into my more complex
model, with more complex types, and frustratingly I'm getting a new set of
errors:

java.lang.RuntimeException: Error applying mapping with targetAttribute
comcomp:otherVar Error applying mapping with targetAttribute comcomp:
otherVar comcomp otherVar is not a valid location path for type
http://www.x.com/comcomp/1.0:BranchManagerType. comcomp:otherVar ns:
http://www.x.com/comcomp/1.0, BranchManagerType properties:
null#FEATURE_LINK, http://www.x.com/comcomp/1.0#branchManagerType


Since this ended up working fine in my simpler model i'm going to redo my
more complex one, in the hope that it does fix the issue.

... but if you have any quick suggestions on what these errors mean, then
I'd be very appreciative to hear them.

Thanks


On 2 October 2013 19:36, Ben Caradoc-Davies ben.caradoc-dav...@csiro.auwrote:

 Please send us the full error message that you get (include a stack trace
 from the logs if you have one), and your mapping file.

 Your schemas look good. Good job using FullMoon to generate them!

 Kind regards,
 Ben.


 On 02/10/13 15:44, snuffy wrote:

 Hello,

 I was playing around with app-schema and trying to do inheritance.

 I've got the following classes: (all exist within same namespace of
 'company')
 There are 3 separate xsd's
 (person/employee/customer- people.xsd)
 (manager - people-core.xsd)
 (branchmanager - people-retail.xsd)

 Person (fields: name,age)
 ^-Employee (fields: employeeID,salary)  ^- Customer (fields:
 custID,revenue)
 ^-Manager (fields: managementGroup)
  ^-BranchManager (fields: branchID)


 When I try to refer to 'salary' from within the BranchManager it claims
 that it does not exist.

 eg.
  AttributeMapping
targetAttributecompany:**branchID/targetAttribute
sourceExpression
  OCQLpemb_brid/OCQL
/sourceExpression
  /AttributeMapping

  AttributeMapping
targetAttributecompany:**salary/targetAttribute
sourceExpression
  OCQLpe_salary/OCQL
/sourceExpression
  /AttributeMapping


 The DB table for branchManager has that field as expected.

 Of course from the 'Employee' app-schema I can refer to it just fine
 using 'company:salary'.

 What am I missing ?

 The XSD's specify the substitution groups ok, (example below of
 'employee')

   complexType name=EmployeeType
  complexContent
  extension base=company:PersonType

 Have attached full xsds.

 The targetTypes schemaUri is set to the correct one for 'branchManager'
 (people-retail.xsd)  that has an 'include' to the core people.xsd


 --**--**
 --
 October Webinars: Code for Performance
 Free Intel webinars can help you accelerate application performance.
 Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most
 from
 the latest Intel processors and coprocessors. See abstracts and register 
 http://pubads.g.doubleclick.**net/gampad/clk?id=60134791iu=**
 /4140/ostg.clktrk



 __**_
 Geoserver-users mailing list
 Geoserver-users@lists.**sourceforge.net
 https://lists.sourceforge.net/**lists/listinfo/geoserver-users


 --
 Ben Caradoc-Davies ben.caradoc-dav...@csiro.au
 Software Engineer
 CSIRO Earth Science and Resource Engineering
 Australian Resources Research Centre

--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register 
http://pubads.g.doubleclick.net/gampad/clk?id=60134791iu=/4140/ostg.clktrk___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] App-Schema: Inheritance question

2013-10-02 Thread snuffy
Hello,

I was playing around with app-schema and trying to do inheritance.

I've got the following classes: (all exist within same namespace of
'company')
There are 3 separate xsd's
(person/employee/customer- people.xsd)
(manager - people-core.xsd)
(branchmanager - people-retail.xsd)

Person (fields: name,age)
^-Employee (fields: employeeID,salary)  ^- Customer (fields: custID,revenue)
   ^-Manager (fields: managementGroup)
^-BranchManager (fields: branchID)


When I try to refer to 'salary' from within the BranchManager it claims
that it does not exist.

eg.
AttributeMapping
  targetAttributecompany:branchID/targetAttribute
  sourceExpression
OCQLpemb_brid/OCQL
  /sourceExpression
/AttributeMapping

AttributeMapping
  targetAttributecompany:salary/targetAttribute
  sourceExpression
OCQLpe_salary/OCQL
  /sourceExpression
/AttributeMapping


The DB table for branchManager has that field as expected.

Of course from the 'Employee' app-schema I can refer to it just fine using
'company:salary'.

What am I missing ?

The XSD's specify the substitution groups ok, (example below of 'employee')

 complexType name=EmployeeType
complexContent
extension base=company:PersonType

Have attached full xsds.

The targetTypes schemaUri is set to the correct one for 'branchManager'
(people-retail.xsd)  that has an 'include' to the core people.xsd


people-core.xsd
Description: Binary data


people-retail.xsd
Description: Binary data


people.xsd
Description: Binary data
--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register 
http://pubads.g.doubleclick.net/gampad/clk?id=60134791iu=/4140/ostg.clktrk___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users