Problem with GeoServer modifying a style when uploading an SLD via the REST API
I have an SLD called my_data.sld
(created in QGIS 3.2.x) with looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<StyledLayerDescriptor xmlns="http://www.opengis.net/sld" xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/sld http://schemas.opengis.net/sld/1.1.0/StyledLayerDescriptor.xsd" version="1.1.0" xmlns:se="http://www.opengis.net/se" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ogc="http://www.opengis.net/ogc">
<NamedLayer>
<se:Name>my_data</se:Name>
<UserStyle>
<se:Name>my_data</se:Name>
<se:FeatureTypeStyle>
<se:Rule>
<se:Name>Single symbol</se:Name>
<se:PointSymbolizer>
<se:Graphic>
<se:Mark>
<se:WellKnownName>circle</se:WellKnownName>
<se:Fill>
<se:SvgParameter name="fill">#e15989</se:SvgParameter>
</se:Fill>
<se:Stroke>
<se:SvgParameter name="stroke">#232323</se:SvgParameter>
<se:SvgParameter name="stroke-width">0.5</se:SvgParameter>
</se:Stroke>
</se:Mark>
<se:Size>7</se:Size>
</se:Graphic>
</se:PointSymbolizer>
</se:Rule>
</se:FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>
If I upload SLD file via the GeoServer control panel, then apply it to a layer, the layer is correctly styled, no problem.
However, I want to add upload this style to a workspace and apply it via the rest API, which I do via these commands (following the curl examples):
curl -v -u admin:pass -XPOST -H "Content-type: text/xml" -d "<style><name>my_data</name><filename>my_data.sld</filename></style>" https://localhost/geoserver/rest/workspaces/my_workspace/styles
curl -v -u admin:pass -XPUT -H "Content-type: application/vnd.ogc.sld+xml" -d @/home/sam/my_data.sld https://localhost/geoserver/rest/workspaces/my_workspace/styles/my_data
Both commands appear to work giving < HTTP/1.1 200 OK
codes. I have the new style in my workspace but there's a problem with the content of the style. Inspecting the new style in the GeoServer Style Editor control panel shows:
<?xml version="1.0" encoding="UTF-8"?>
<sld:StyledLayerDescriptor xmlns="http://www.opengis.net/sld" xmlns:sld="http://www.opengis.net/sld" xmlns:gml="http://www.opengis.net/gml" xmlns:ogc="http://www.opengis.net/ogc" version="1.0.0">
<sld:NamedLayer>
<sld:Name>my_data</sld:Name>
<sld:UserStyle>
<sld:Name>my_data</sld:Name>
<sld:FeatureTypeStyle>
<sld:Name>name</sld:Name>
<sld:Rule>
<sld:Name>Single symbol</sld:Name>
<sld:PointSymbolizer>
<sld:Graphic>
<sld:Mark>
<sld:WellKnownName>circle</sld:WellKnownName>
<sld:Fill/>
<sld:Stroke/>
</sld:Mark>
<sld:Size>7</sld:Size>
</sld:Graphic>
</sld:PointSymbolizer>
</sld:Rule>
</sld:FeatureTypeStyle>
</sld:UserStyle>
</sld:NamedLayer>
</sld:StyledLayerDescriptor>
Clearly tags with se:SvgParameter have not been translated into whatever format the style is in now.
I've tried to modify the <StyledLayerDescriptor>
to match the manual upload that worked, without success.
I thought the issue might be related to the "Content-type:application/vnd.ogc.sld+xml"
but can't find an appropriate content type either.
What should I try next?
geoserver wms style sld geoserver-rest-api
add a comment |
I have an SLD called my_data.sld
(created in QGIS 3.2.x) with looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<StyledLayerDescriptor xmlns="http://www.opengis.net/sld" xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/sld http://schemas.opengis.net/sld/1.1.0/StyledLayerDescriptor.xsd" version="1.1.0" xmlns:se="http://www.opengis.net/se" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ogc="http://www.opengis.net/ogc">
<NamedLayer>
<se:Name>my_data</se:Name>
<UserStyle>
<se:Name>my_data</se:Name>
<se:FeatureTypeStyle>
<se:Rule>
<se:Name>Single symbol</se:Name>
<se:PointSymbolizer>
<se:Graphic>
<se:Mark>
<se:WellKnownName>circle</se:WellKnownName>
<se:Fill>
<se:SvgParameter name="fill">#e15989</se:SvgParameter>
</se:Fill>
<se:Stroke>
<se:SvgParameter name="stroke">#232323</se:SvgParameter>
<se:SvgParameter name="stroke-width">0.5</se:SvgParameter>
</se:Stroke>
</se:Mark>
<se:Size>7</se:Size>
</se:Graphic>
</se:PointSymbolizer>
</se:Rule>
</se:FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>
If I upload SLD file via the GeoServer control panel, then apply it to a layer, the layer is correctly styled, no problem.
However, I want to add upload this style to a workspace and apply it via the rest API, which I do via these commands (following the curl examples):
curl -v -u admin:pass -XPOST -H "Content-type: text/xml" -d "<style><name>my_data</name><filename>my_data.sld</filename></style>" https://localhost/geoserver/rest/workspaces/my_workspace/styles
curl -v -u admin:pass -XPUT -H "Content-type: application/vnd.ogc.sld+xml" -d @/home/sam/my_data.sld https://localhost/geoserver/rest/workspaces/my_workspace/styles/my_data
Both commands appear to work giving < HTTP/1.1 200 OK
codes. I have the new style in my workspace but there's a problem with the content of the style. Inspecting the new style in the GeoServer Style Editor control panel shows:
<?xml version="1.0" encoding="UTF-8"?>
<sld:StyledLayerDescriptor xmlns="http://www.opengis.net/sld" xmlns:sld="http://www.opengis.net/sld" xmlns:gml="http://www.opengis.net/gml" xmlns:ogc="http://www.opengis.net/ogc" version="1.0.0">
<sld:NamedLayer>
<sld:Name>my_data</sld:Name>
<sld:UserStyle>
<sld:Name>my_data</sld:Name>
<sld:FeatureTypeStyle>
<sld:Name>name</sld:Name>
<sld:Rule>
<sld:Name>Single symbol</sld:Name>
<sld:PointSymbolizer>
<sld:Graphic>
<sld:Mark>
<sld:WellKnownName>circle</sld:WellKnownName>
<sld:Fill/>
<sld:Stroke/>
</sld:Mark>
<sld:Size>7</sld:Size>
</sld:Graphic>
</sld:PointSymbolizer>
</sld:Rule>
</sld:FeatureTypeStyle>
</sld:UserStyle>
</sld:NamedLayer>
</sld:StyledLayerDescriptor>
Clearly tags with se:SvgParameter have not been translated into whatever format the style is in now.
I've tried to modify the <StyledLayerDescriptor>
to match the manual upload that worked, without success.
I thought the issue might be related to the "Content-type:application/vnd.ogc.sld+xml"
but can't find an appropriate content type either.
What should I try next?
geoserver wms style sld geoserver-rest-api
add a comment |
I have an SLD called my_data.sld
(created in QGIS 3.2.x) with looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<StyledLayerDescriptor xmlns="http://www.opengis.net/sld" xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/sld http://schemas.opengis.net/sld/1.1.0/StyledLayerDescriptor.xsd" version="1.1.0" xmlns:se="http://www.opengis.net/se" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ogc="http://www.opengis.net/ogc">
<NamedLayer>
<se:Name>my_data</se:Name>
<UserStyle>
<se:Name>my_data</se:Name>
<se:FeatureTypeStyle>
<se:Rule>
<se:Name>Single symbol</se:Name>
<se:PointSymbolizer>
<se:Graphic>
<se:Mark>
<se:WellKnownName>circle</se:WellKnownName>
<se:Fill>
<se:SvgParameter name="fill">#e15989</se:SvgParameter>
</se:Fill>
<se:Stroke>
<se:SvgParameter name="stroke">#232323</se:SvgParameter>
<se:SvgParameter name="stroke-width">0.5</se:SvgParameter>
</se:Stroke>
</se:Mark>
<se:Size>7</se:Size>
</se:Graphic>
</se:PointSymbolizer>
</se:Rule>
</se:FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>
If I upload SLD file via the GeoServer control panel, then apply it to a layer, the layer is correctly styled, no problem.
However, I want to add upload this style to a workspace and apply it via the rest API, which I do via these commands (following the curl examples):
curl -v -u admin:pass -XPOST -H "Content-type: text/xml" -d "<style><name>my_data</name><filename>my_data.sld</filename></style>" https://localhost/geoserver/rest/workspaces/my_workspace/styles
curl -v -u admin:pass -XPUT -H "Content-type: application/vnd.ogc.sld+xml" -d @/home/sam/my_data.sld https://localhost/geoserver/rest/workspaces/my_workspace/styles/my_data
Both commands appear to work giving < HTTP/1.1 200 OK
codes. I have the new style in my workspace but there's a problem with the content of the style. Inspecting the new style in the GeoServer Style Editor control panel shows:
<?xml version="1.0" encoding="UTF-8"?>
<sld:StyledLayerDescriptor xmlns="http://www.opengis.net/sld" xmlns:sld="http://www.opengis.net/sld" xmlns:gml="http://www.opengis.net/gml" xmlns:ogc="http://www.opengis.net/ogc" version="1.0.0">
<sld:NamedLayer>
<sld:Name>my_data</sld:Name>
<sld:UserStyle>
<sld:Name>my_data</sld:Name>
<sld:FeatureTypeStyle>
<sld:Name>name</sld:Name>
<sld:Rule>
<sld:Name>Single symbol</sld:Name>
<sld:PointSymbolizer>
<sld:Graphic>
<sld:Mark>
<sld:WellKnownName>circle</sld:WellKnownName>
<sld:Fill/>
<sld:Stroke/>
</sld:Mark>
<sld:Size>7</sld:Size>
</sld:Graphic>
</sld:PointSymbolizer>
</sld:Rule>
</sld:FeatureTypeStyle>
</sld:UserStyle>
</sld:NamedLayer>
</sld:StyledLayerDescriptor>
Clearly tags with se:SvgParameter have not been translated into whatever format the style is in now.
I've tried to modify the <StyledLayerDescriptor>
to match the manual upload that worked, without success.
I thought the issue might be related to the "Content-type:application/vnd.ogc.sld+xml"
but can't find an appropriate content type either.
What should I try next?
geoserver wms style sld geoserver-rest-api
I have an SLD called my_data.sld
(created in QGIS 3.2.x) with looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<StyledLayerDescriptor xmlns="http://www.opengis.net/sld" xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/sld http://schemas.opengis.net/sld/1.1.0/StyledLayerDescriptor.xsd" version="1.1.0" xmlns:se="http://www.opengis.net/se" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ogc="http://www.opengis.net/ogc">
<NamedLayer>
<se:Name>my_data</se:Name>
<UserStyle>
<se:Name>my_data</se:Name>
<se:FeatureTypeStyle>
<se:Rule>
<se:Name>Single symbol</se:Name>
<se:PointSymbolizer>
<se:Graphic>
<se:Mark>
<se:WellKnownName>circle</se:WellKnownName>
<se:Fill>
<se:SvgParameter name="fill">#e15989</se:SvgParameter>
</se:Fill>
<se:Stroke>
<se:SvgParameter name="stroke">#232323</se:SvgParameter>
<se:SvgParameter name="stroke-width">0.5</se:SvgParameter>
</se:Stroke>
</se:Mark>
<se:Size>7</se:Size>
</se:Graphic>
</se:PointSymbolizer>
</se:Rule>
</se:FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>
If I upload SLD file via the GeoServer control panel, then apply it to a layer, the layer is correctly styled, no problem.
However, I want to add upload this style to a workspace and apply it via the rest API, which I do via these commands (following the curl examples):
curl -v -u admin:pass -XPOST -H "Content-type: text/xml" -d "<style><name>my_data</name><filename>my_data.sld</filename></style>" https://localhost/geoserver/rest/workspaces/my_workspace/styles
curl -v -u admin:pass -XPUT -H "Content-type: application/vnd.ogc.sld+xml" -d @/home/sam/my_data.sld https://localhost/geoserver/rest/workspaces/my_workspace/styles/my_data
Both commands appear to work giving < HTTP/1.1 200 OK
codes. I have the new style in my workspace but there's a problem with the content of the style. Inspecting the new style in the GeoServer Style Editor control panel shows:
<?xml version="1.0" encoding="UTF-8"?>
<sld:StyledLayerDescriptor xmlns="http://www.opengis.net/sld" xmlns:sld="http://www.opengis.net/sld" xmlns:gml="http://www.opengis.net/gml" xmlns:ogc="http://www.opengis.net/ogc" version="1.0.0">
<sld:NamedLayer>
<sld:Name>my_data</sld:Name>
<sld:UserStyle>
<sld:Name>my_data</sld:Name>
<sld:FeatureTypeStyle>
<sld:Name>name</sld:Name>
<sld:Rule>
<sld:Name>Single symbol</sld:Name>
<sld:PointSymbolizer>
<sld:Graphic>
<sld:Mark>
<sld:WellKnownName>circle</sld:WellKnownName>
<sld:Fill/>
<sld:Stroke/>
</sld:Mark>
<sld:Size>7</sld:Size>
</sld:Graphic>
</sld:PointSymbolizer>
</sld:Rule>
</sld:FeatureTypeStyle>
</sld:UserStyle>
</sld:NamedLayer>
</sld:StyledLayerDescriptor>
Clearly tags with se:SvgParameter have not been translated into whatever format the style is in now.
I've tried to modify the <StyledLayerDescriptor>
to match the manual upload that worked, without success.
I thought the issue might be related to the "Content-type:application/vnd.ogc.sld+xml"
but can't find an appropriate content type either.
What should I try next?
geoserver wms style sld geoserver-rest-api
geoserver wms style sld geoserver-rest-api
edited 4 hours ago
Ian Turton♦
47.9k546111
47.9k546111
asked 6 hours ago
SamFranklinSamFranklin
120128
120128
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
You are mixing an SLD 1.1.0 file (or Symbology Encoding) with the SLD 1.0.0 format so GeoServer is filtering out the 1.1.0 elements to make it compliant with 1.0.0. You need to set the content-type to application/vnd.ogc.se+xml
as is documented in the manual though it would help if QGis made it clearer that it was exporting SE not SLD.
A style exported from QGIS using the "style", "save as" functionality in the style editor begins with "<StyledLayerDescriptor xmlns="opengis.net/sld" version="1.1.0" ", so it's clear it's SE. Not sure how the style above got "exported"?
– Andrea Aime
5 hours ago
You are quite right, it's there in the manual, I didn't put it together though :)
– SamFranklin
5 hours ago
@AndreaAime hi, thanks for commenting. To clarify, I exported the above pasted style from qgis 3.2.0-bonn via the "Symbology" Properties window, then "Style"-->"Save Style", then selecting "SLD File" option. Hope that's useful.
– SamFranklin
5 hours ago
Doh right, I mixed up the two styles in the question, the one exported by QGIS states "1.1.0"
– Andrea Aime
5 hours ago
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "79"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e) {
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom)) {
StackExchange.using('gps', function() { StackExchange.gps.track('embedded_signup_form.view', { location: 'question_page' }); });
$window.unbind('scroll', onScroll);
}
};
$window.on('scroll', onScroll);
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f308542%2fproblem-with-geoserver-modifying-a-style-when-uploading-an-sld-via-the-rest-api%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
You are mixing an SLD 1.1.0 file (or Symbology Encoding) with the SLD 1.0.0 format so GeoServer is filtering out the 1.1.0 elements to make it compliant with 1.0.0. You need to set the content-type to application/vnd.ogc.se+xml
as is documented in the manual though it would help if QGis made it clearer that it was exporting SE not SLD.
A style exported from QGIS using the "style", "save as" functionality in the style editor begins with "<StyledLayerDescriptor xmlns="opengis.net/sld" version="1.1.0" ", so it's clear it's SE. Not sure how the style above got "exported"?
– Andrea Aime
5 hours ago
You are quite right, it's there in the manual, I didn't put it together though :)
– SamFranklin
5 hours ago
@AndreaAime hi, thanks for commenting. To clarify, I exported the above pasted style from qgis 3.2.0-bonn via the "Symbology" Properties window, then "Style"-->"Save Style", then selecting "SLD File" option. Hope that's useful.
– SamFranklin
5 hours ago
Doh right, I mixed up the two styles in the question, the one exported by QGIS states "1.1.0"
– Andrea Aime
5 hours ago
add a comment |
You are mixing an SLD 1.1.0 file (or Symbology Encoding) with the SLD 1.0.0 format so GeoServer is filtering out the 1.1.0 elements to make it compliant with 1.0.0. You need to set the content-type to application/vnd.ogc.se+xml
as is documented in the manual though it would help if QGis made it clearer that it was exporting SE not SLD.
A style exported from QGIS using the "style", "save as" functionality in the style editor begins with "<StyledLayerDescriptor xmlns="opengis.net/sld" version="1.1.0" ", so it's clear it's SE. Not sure how the style above got "exported"?
– Andrea Aime
5 hours ago
You are quite right, it's there in the manual, I didn't put it together though :)
– SamFranklin
5 hours ago
@AndreaAime hi, thanks for commenting. To clarify, I exported the above pasted style from qgis 3.2.0-bonn via the "Symbology" Properties window, then "Style"-->"Save Style", then selecting "SLD File" option. Hope that's useful.
– SamFranklin
5 hours ago
Doh right, I mixed up the two styles in the question, the one exported by QGIS states "1.1.0"
– Andrea Aime
5 hours ago
add a comment |
You are mixing an SLD 1.1.0 file (or Symbology Encoding) with the SLD 1.0.0 format so GeoServer is filtering out the 1.1.0 elements to make it compliant with 1.0.0. You need to set the content-type to application/vnd.ogc.se+xml
as is documented in the manual though it would help if QGis made it clearer that it was exporting SE not SLD.
You are mixing an SLD 1.1.0 file (or Symbology Encoding) with the SLD 1.0.0 format so GeoServer is filtering out the 1.1.0 elements to make it compliant with 1.0.0. You need to set the content-type to application/vnd.ogc.se+xml
as is documented in the manual though it would help if QGis made it clearer that it was exporting SE not SLD.
answered 6 hours ago
Ian Turton♦Ian Turton
47.9k546111
47.9k546111
A style exported from QGIS using the "style", "save as" functionality in the style editor begins with "<StyledLayerDescriptor xmlns="opengis.net/sld" version="1.1.0" ", so it's clear it's SE. Not sure how the style above got "exported"?
– Andrea Aime
5 hours ago
You are quite right, it's there in the manual, I didn't put it together though :)
– SamFranklin
5 hours ago
@AndreaAime hi, thanks for commenting. To clarify, I exported the above pasted style from qgis 3.2.0-bonn via the "Symbology" Properties window, then "Style"-->"Save Style", then selecting "SLD File" option. Hope that's useful.
– SamFranklin
5 hours ago
Doh right, I mixed up the two styles in the question, the one exported by QGIS states "1.1.0"
– Andrea Aime
5 hours ago
add a comment |
A style exported from QGIS using the "style", "save as" functionality in the style editor begins with "<StyledLayerDescriptor xmlns="opengis.net/sld" version="1.1.0" ", so it's clear it's SE. Not sure how the style above got "exported"?
– Andrea Aime
5 hours ago
You are quite right, it's there in the manual, I didn't put it together though :)
– SamFranklin
5 hours ago
@AndreaAime hi, thanks for commenting. To clarify, I exported the above pasted style from qgis 3.2.0-bonn via the "Symbology" Properties window, then "Style"-->"Save Style", then selecting "SLD File" option. Hope that's useful.
– SamFranklin
5 hours ago
Doh right, I mixed up the two styles in the question, the one exported by QGIS states "1.1.0"
– Andrea Aime
5 hours ago
A style exported from QGIS using the "style", "save as" functionality in the style editor begins with "<StyledLayerDescriptor xmlns="opengis.net/sld" version="1.1.0" ", so it's clear it's SE. Not sure how the style above got "exported"?
– Andrea Aime
5 hours ago
A style exported from QGIS using the "style", "save as" functionality in the style editor begins with "<StyledLayerDescriptor xmlns="opengis.net/sld" version="1.1.0" ", so it's clear it's SE. Not sure how the style above got "exported"?
– Andrea Aime
5 hours ago
You are quite right, it's there in the manual, I didn't put it together though :)
– SamFranklin
5 hours ago
You are quite right, it's there in the manual, I didn't put it together though :)
– SamFranklin
5 hours ago
@AndreaAime hi, thanks for commenting. To clarify, I exported the above pasted style from qgis 3.2.0-bonn via the "Symbology" Properties window, then "Style"-->"Save Style", then selecting "SLD File" option. Hope that's useful.
– SamFranklin
5 hours ago
@AndreaAime hi, thanks for commenting. To clarify, I exported the above pasted style from qgis 3.2.0-bonn via the "Symbology" Properties window, then "Style"-->"Save Style", then selecting "SLD File" option. Hope that's useful.
– SamFranklin
5 hours ago
Doh right, I mixed up the two styles in the question, the one exported by QGIS states "1.1.0"
– Andrea Aime
5 hours ago
Doh right, I mixed up the two styles in the question, the one exported by QGIS states "1.1.0"
– Andrea Aime
5 hours ago
add a comment |
Thanks for contributing an answer to Geographic Information Systems Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e) {
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom)) {
StackExchange.using('gps', function() { StackExchange.gps.track('embedded_signup_form.view', { location: 'question_page' }); });
$window.unbind('scroll', onScroll);
}
};
$window.on('scroll', onScroll);
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f308542%2fproblem-with-geoserver-modifying-a-style-when-uploading-an-sld-via-the-rest-api%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e) {
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom)) {
StackExchange.using('gps', function() { StackExchange.gps.track('embedded_signup_form.view', { location: 'question_page' }); });
$window.unbind('scroll', onScroll);
}
};
$window.on('scroll', onScroll);
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e) {
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom)) {
StackExchange.using('gps', function() { StackExchange.gps.track('embedded_signup_form.view', { location: 'question_page' }); });
$window.unbind('scroll', onScroll);
}
};
$window.on('scroll', onScroll);
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e) {
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom)) {
StackExchange.using('gps', function() { StackExchange.gps.track('embedded_signup_form.view', { location: 'question_page' }); });
$window.unbind('scroll', onScroll);
}
};
$window.on('scroll', onScroll);
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown