Jinzhou Zhang
2017-05-18 23:45:31 UTC
Hi,
I am using geoscript to reproject a layer in my geoserver.
I can use geoserver/catalog to access a layer's projection with no issue.
However, I can't change it. My code is like this:
var myPrj = Projection("EPSG:2008");
var myLayer = catalog.getVectorLayer("test:counties");
catalog.getVectorLayer("test:counties").projection = myPrj;
return {
old: myLayer.projection,
neo: myPrj,
temp: myLayer.temporary
};
The code in the third line never works however wps doesn't tell me any
error.
Do you know how can I fix this?
Thanks in advance,
Jinzhou
I am using geoscript to reproject a layer in my geoserver.
I can use geoserver/catalog to access a layer's projection with no issue.
However, I can't change it. My code is like this:
var myPrj = Projection("EPSG:2008");
var myLayer = catalog.getVectorLayer("test:counties");
catalog.getVectorLayer("test:counties").projection = myPrj;
return {
old: myLayer.projection,
neo: myPrj,
temp: myLayer.temporary
};
The code in the third line never works however wps doesn't tell me any
error.
Do you know how can I fix this?
Thanks in advance,
Jinzhou