Re: [Geoserver-users] encodeIfEmpty with string values length zero

2017-10-23 Thread Ben Caradoc-Davies

Thanks, Gavin.

Kind regards,
Ben.

On 24/10/17 10:21, Gavin Medley wrote:

Bug report filed: https://osgeo-org.atlassian.net/browse/GEOS-8362

On Fri, Oct 20, 2017 at 3:24 PM, Ben Caradoc-Davies 
wrote:


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 true. 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 
Director
Transient Software Limited 
New Zealand







--
Ben Caradoc-Davies 
Director
Transient Software Limited 
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


Re: [Geoserver-users] encodeIfEmpty with string values length zero

2017-10-23 Thread Gavin Medley
Bug report filed: https://osgeo-org.atlassian.net/browse/GEOS-8362

On Fri, Oct 20, 2017 at 3:24 PM, Ben Caradoc-Davies 
wrote:

> 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 true. 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 
> Director
> Transient Software Limited 
> New Zealand
>



-- 
Gavin Medley
Software Engineer, UNAVCO
6350 Nautilus Drive
Boulder, CO 80301-5394
Mobile: 505-819-1270
med...@unavco.org
--
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


Re: [Geoserver-users] encodeIfEmpty with string values length zero

2017-10-20 Thread Ben Caradoc-Davies

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 true. 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 
Director
Transient Software Limited 
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


[Geoserver-users] encodeIfEmpty with string values length zero

2017-10-20 Thread Gavin Medley
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 true. Am I
getting this right? Is there a workaround, other than changing the data in
my database?

Thanks,

Gavin
​
-- 
Gavin Medley
Software Engineer, UNAVCO
6350 Nautilus Drive
Boulder, CO 80301-5394
Mobile: 505-819-1270
med...@unavco.org
--
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