-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Processing pixel size is halved when using Python raster function with REST #87
Comments
@simjoh yes, if you provide a repro case and we can take a look. Thanks. |
@shenganzhan Thanks, in the followin zip you can see a some tif files of different scales and python raster function. In the docx file you can see the steps to replicate the issue. PythonRF_upDatePixels_v01.docx best regards, |
@simjoh thank you for sharing this. We will investigate and update you. |
@shenganzhan any news on this topic? |
@simjoh thanks for reporting this issue and all the effort reproducing it with a simplified workflow. this is a good catch and I am able to reproduce it also. arcgis pro uses SOAP to interact with the service, we will import and debug this problem and see where it goes wrong. |
@greatzzk Any news on this bug? |
@simjoh thanks for following up on this. our developer is investigating the problem and have some initial findings. we are discussing the reason causing the behavior. |
The following problem has been reported as an issue to the ESRI support team in Sweden who reported it to Esri Inc Tech Support. Tech support suggested that we should report the problem as an issue here. Since it involved python raster functions
The Swedish forestry agency has the following problem on several of our imageServices and the problem has been replicated by our support.
The problem
A dataset with pixel resolution of 50m is published along with rasterfunction templates which is using a python raster function to process the dataset.
If we consume the Imageservice in ArcGIS Pro with the raster function template as processing template. The python raster function works with cellSize 50, the shape of the numpy array in the method updatePixels() corresponds to a 50m pixels.
If we instead consume the raster function template by a “rendering_rule” with REST. The cell size is halved to 25m the shape of the numpy array is doubled in both dimensions.
Our ESRI support in Sweden has been very helpful and created a minimal example with dataset of different pixel resolution and comes to the same conclusion. Image services that are consumed with REST are processed at half the pixel resolution.
The information about the raster is logged in updatePixels by:
in getConfiguration we use ‘resampling’:False
To us it seems that there is something treated differently by the server depending on type of request. Do you have any idea why pixel resolution I halved? We have datasets and an extensive report to provide if someone here would like to take a closer look.
The text was updated successfully, but these errors were encountered: