Merge bd0e10e61a into 25759e86a5
This commit is contained in:
commit
0e66f433e7
@ -136,7 +136,12 @@ public class RESTResource {
|
|||||||
RESTBoundingBox bbox = this.getLatLonBoundingBox();
|
RESTBoundingBox bbox = this.getLatLonBoundingBox();
|
||||||
return bbox.getCRS();
|
return bbox.getCRS();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getSrs(){
|
||||||
|
return rootElem.getChildText("srs");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
public double getMinX() {
|
public double getMinX() {
|
||||||
return this.getLatLonBoundingBox().getMinX();
|
return this.getLatLonBoundingBox().getMinX();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -61,9 +61,11 @@ public class GSLayerGroupEncoder extends PropertyXMLEncoder {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void addLayer(String layer, String styleName) {
|
public void addLayer(String layer, String styleName) {
|
||||||
initPublishables("layers");
|
initPublishables("publishables");
|
||||||
|
Element e = elem("published", elem("name", layer));
|
||||||
|
e.setAttribute("type", "layer");
|
||||||
|
|
||||||
publishablesElem.addContent(elem("layer", elem("name", layer)));
|
publishablesElem.addContent(e);
|
||||||
|
|
||||||
Element style = new Element("style");
|
Element style = new Element("style");
|
||||||
stylesElem.addContent(style);
|
stylesElem.addContent(style);
|
||||||
@ -72,6 +74,17 @@ public class GSLayerGroupEncoder extends PropertyXMLEncoder {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void addLayerGroup(String layer) {
|
||||||
|
initPublishables("publishables");
|
||||||
|
Element e = elem("published", elem("name", layer));
|
||||||
|
e.setAttribute("type", "layerGroup");
|
||||||
|
|
||||||
|
publishablesElem.addContent(e);
|
||||||
|
|
||||||
|
Element style = new Element("style");
|
||||||
|
stylesElem.addContent(style);
|
||||||
|
}
|
||||||
|
|
||||||
public void setBounds(String crs, double minx, double maxx, double miny, double maxy) {
|
public void setBounds(String crs, double minx, double maxx, double miny, double maxy) {
|
||||||
boundsElem = elem("bounds",
|
boundsElem = elem("bounds",
|
||||||
elem("minx", Double.toString(minx)),
|
elem("minx", Double.toString(minx)),
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user