Gavin,

that is interesting. I suspect that this situation was not anticipated (only nulls). Please file a bug report.

Workarounds are to convert empty strings to nulls in a database view or a CQL if_then_else expression in the mapping file.

Kind regards,
Ben.

On 21/10/17 05:08, Gavin Medley wrote:
Hi,

I am using App Schema to map to GeodesyML, a rather demanding schema in
terms of validation. One of the problems I’m running into is missing child
elements that are not generated by App Schema when the database field is
blank. Specifically, the problem arises when the field I’m mapping contains
an empty string (''). i.e. it’s not a null value but it *is* empty so it
doesn’t appear, even when I use <encodeIfEmpty>true</encodeIfEmpty>. Am I
getting this right? Is there a workaround, other than changing the data in
my database?

Thanks,

Gavin
​



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot



_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


--
Ben Caradoc-Davies <b...@transient.nz>
Director
Transient Software Limited <http://transient.nz/>
New Zealand

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to