Hello list,
I have a problem setting a predefined style as the layer default one via REST. I call “/geoserver/rest/layers/test:Test_Layer.json” via PUT and send the following data:
{‘layer’: {‘enabled’: True, ‘defaultStyle’: {'‘name’: ‘asd’}}}
If the style ‘asd’ belongs to the workspace ‘test’ it doesn’t work. If the style has no workspace everything works fine.
Do I miss something?
I’m using geoserver 2.2.2 with an underlying tomcat6.
Thanks,
Joel
Hi Joel,
If I’m reading this right (and I’ve still not quite got my head around workspaces), the layer is in the workspace “test”. So I’d imagine that having the style in the same workspace (“test”) should work fine.
Can you set it via the GeoServer interface? If so, it may be a bug.
Regards,
Jonathan
On 4 June 2013 14:11, Joel Kaiser <kaiser.joel@anonymised.com> wrote:
Hello list,
I have a problem setting a predefined style as the layer default one via REST. I call “/geoserver/rest/layers/test:Test_Layer.json” via PUT and send the following data:
{‘layer’: {‘enabled’: True, ‘defaultStyle’: {'‘name’: ‘asd’}}}
If the style ‘asd’ belongs to the workspace ‘test’ it doesn’t work. If the style has no workspace everything works fine.
Do I miss something?
I’m using geoserver 2.2.2 with an underlying tomcat6.
Thanks,
Joel
How ServiceNow helps IT people transform IT departments:
- A cloud service to automate IT design, transition and operations
- Dashboards that offer high-level views of enterprise services
- A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j
Geoserver-users mailing list
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
This transmission is intended for the named addressee(s) only and may contain sensitive or protectively marked material up to RESTRICTED and should be handled accordingly. Unless you are the named addressee (or authorised to receive it for the addressee) you may not copy or use it, or disclose it to anyone else. If you have received this transmission in error please notify the sender immediately. All email traffic sent to or from us, including without limitation all GCSX traffic, may be subject to recording and/or monitoring in accordance with relevant legislation.
If the style is in a workspace you need to specify the workspace name. This
should work:
{'layer': {'enabled': True, 'defaultStyle': {"name': 'asd', 'workspace':
'test'}}}
or in XML:
'<layer><defaultStyle><name>asd</name><workspace>test</workspace></defaultStyle><enabled>true</enabled></layer>'
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Setting-a-workspace-style-as-layer-default-via-rest-tp5057810p5058859.html
Sent from the GeoServer - User mailing list archive at Nabble.com.
Hi,
yes the layer and the style are in the same workspace ‘test’ and I can also set them via the GeoServer interface.
Regards,
Joel
···
2013/6/8 Jonathan Moules <jonathanmoules@anonymised.com>
Hi Joel,
If I’m reading this right (and I’ve still not quite got my head around workspaces), the layer is in the workspace “test”. So I’d imagine that having the style in the same workspace (“test”) should work fine.
Can you set it via the GeoServer interface? If so, it may be a bug.
Regards,
Jonathan
On 4 June 2013 14:11, Joel Kaiser <kaiser.joel@anonymised.com> wrote:
Hello list,
I have a problem setting a predefined style as the layer default one via REST. I call “/geoserver/rest/layers/test:Test_Layer.json” via PUT and send the following data:
{‘layer’: {‘enabled’: True, ‘defaultStyle’: {'‘name’: ‘asd’}}}
If the style ‘asd’ belongs to the workspace ‘test’ it doesn’t work. If the style has no workspace everything works fine.
Do I miss something?
I’m using geoserver 2.2.2 with an underlying tomcat6.
Thanks,
Joel
How ServiceNow helps IT people transform IT departments:
- A cloud service to automate IT design, transition and operations
- Dashboards that offer high-level views of enterprise services
- A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
This transmission is intended for the named addressee(s) only and may contain sensitive or protectively marked material up to RESTRICTED and should be handled accordingly. Unless you are the named addressee (or authorised to receive it for the addressee) you may not copy or use it, or disclose it to anyone else. If you have received this transmission in error please notify the sender immediately. All email traffic sent to or from us, including without limitation all GCSX traffic, may be subject to recording and/or monitoring in accordance with relevant legislation.