Andrea,

I think that support for generic elements is possible but would require 
substantial changes both in the way mapping paths are resolved in the 
app-schema feature type cache and also changes in the GeoTools XML 
Encoder. We could continue to use GeoAPI, but the encoder would need 
some way of knowing that it should omit certain type information 
elements. Similar information is already smuggled in the UserData map, 
so that is an obvious route. Reverse mappings also need to be handled so 
that filter queries work. Supporting generic non-GML-compliant 
properties might be similar in problem scale to support for xs:anyType, 
although instance documents using xs:anyType still encode type information.

Kind regards,
Ben.

On 19/05/16 19:57, Andrea Aime wrote:
> Hi Ben,
> just thinking out loud here, so bear with me for a second but... wondering
> if app-schema
> encoding machinery could be relaxed to allow non GML compliant schemas.
> I'm trying to understand if we are against a veritable design wall, that
> would require deep
> changes, if the code is trying to play cop and enforce the GML rules, or
> something in the middle
> (e.g., may be hard but not impossible to get generic elements to be
> encoded).
>
> If the alternative is looking for a licenced product, then some funds could
> be directed at
> relaxing/"improving" the app-schema store instead
>
> Cheers
> Andrea
>
>
> On Thu, May 19, 2016 at 12:18 AM, Ben Caradoc-Davies <[email protected]>
> wrote:
>
>> Deen,
>>
>> have you considered creating a thin wrapper application schema that
>> defines new types that extend CityGML types by adding the properties you
>> need? Some other application schemas also support simple extensibility
>> by adding properties of xs:anyType with minOccurs="0". One of these
>> approaches may suffice for your needs; extending types is more robust.
>>
>> The underlying problem is that clients will need to understand the XML.
>> While generics.xsd will let you encode arbitrary XML, it does not say
>> what these properties mean.
>>
>> Kind regards,
>> Ben.
>>
>> On 19/05/16 08:04, Deen wrote:
>>> Hello Ben,
>>> sorry that late to reply, actually we are preparing for a CityGML change
>>> request. In the project we are using our python code for clients to
>> import
>>> and export CityGML data from 3d CityDB, but right now we want to upgrade
>> our
>>> project and provide WFS for the clients. 3d CityDB offers also the WFS
>>> interface, howerver, it is Simple WFS (free version), which is not
>> enough to
>>> satisfy our need. Since we do have Geoserver running on our server, I was
>>> asked to run some tests with app-schema to see if it can serve the
>> CityGML
>>> with a standard format via Geoserver WFS, before we buy the commercial
>> one
>>> or start coding the WFS by ourselves. Two weeks ago, mapping the surface
>>> geometry such as "WallSurface" and "GroundSurface" to the "Building" ran
>>> quite well for me,  I thought that mapping generic attributes and
>> appearance
>>> would do the same tricks. As
>>> you suggested, the "generic.xsd" violates the GML encoding rule and these
>>> types should be carefully used, but somehow this piece of information is
>>> needed for us. it seems to me now, the app-schema is probably not the
>>> solution we are looking for. But anyway, big thanks for your help!
>>>
>>> Kind Regards
>>> Deen
>>
>> --
>> Ben Caradoc-Davies <[email protected]>
>> Director
>> Transient Software Limited <http://transient.nz/>
>> New Zealand
>>
>>
>> ------------------------------------------------------------------------------
>> Mobile security can be enabling, not merely restricting. Employees who
>> bring their own devices (BYOD) to work are irked by the imposition of MDM
>> restrictions. Mobile Device Manager Plus allows you to control only the
>> apps on BYO-devices by containerizing them, leaving personal data
>> untouched!
>> https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
>> _______________________________________________
>> Geoserver-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>>
>
>
>

-- 
Ben Caradoc-Davies <[email protected]>
Director
Transient Software Limited <http://transient.nz/>
New Zealand

------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to