Re: [Geoserver-users] Mapping Database Fields to XML Attributes

2017-10-20 Thread Gavin Medley
Great! Thank you Ben.

-Gavin

On Fri, Oct 20, 2017 at 2:30 PM, Ben Caradoc-Davies 
wrote:

> Gavin,
>
> the content of the  tag is a bare CQL expression without any other
> XML expressions. Please try this:
>
> 
> codeListValue
> country
> 
>
> If you need to manipulate the string, you can use CQL. Literal strings
> need to be in CQL form, that is, surrounded by single quotes (').
>
> Kind regards,
> Ben.
>
> On 21/10/17 04:17, Gavin Medley wrote:
>
>> Hi all,
>>
>> I’m sure this is possible but I can’t figure out the syntax to put in my
>> mapping file. I need to map a field in my database, country to be an
>> attribute value codeListValue I think my  should be
>> something like the following but the attribute just doesn’t appear at all
>> in my WFS requests.
>>
>> 
>>  codeListValue
>>  
>>  country
>>  
>> 
>>
>> Thanks for the help!
>>
>> -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] Mapping Database Fields to XML Attributes

2017-10-20 Thread Ben Caradoc-Davies

Gavin,

the content of the  tag is a bare CQL expression without any 
other XML expressions. Please try this:



codeListValue
country


If you need to manipulate the string, you can use CQL. Literal strings 
need to be in CQL form, that is, surrounded by single quotes (').


Kind regards,
Ben.

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

Hi all,

I’m sure this is possible but I can’t figure out the syntax to put in my
mapping file. I need to map a field in my database, country to be an
attribute value codeListValue I think my  should be
something like the following but the attribute just doesn’t appear at all
in my WFS requests.


 codeListValue
 
 country
 


Thanks for the help!

-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] Mapping Database Fields to XML Attributes

2017-10-20 Thread Gavin Medley
Hi all,

I’m sure this is possible but I can’t figure out the syntax to put in my
mapping file. I need to map a field in my database, country to be an
attribute value codeListValue I think my  should be
something like the following but the attribute just doesn’t appear at all
in my WFS requests.


codeListValue

country



Thanks for the help!

-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