POST
|
Hi Earl, you are right! Jamie helped me figure it out. We changed the data type to Thematic, sampling method to Nearest neighbor, and then rebuilt the pyramid. After those changes, it works well. Hopefully it could help any others that encounter the same issue.
... View more
02-21-2018
09:41 AM
|
0
|
0
|
1009
|
POST
|
Hi Jamie, Thanks for following-up. I have sent our image service url to your esri email address. Please let me know if anything else is needed. Thanks again! Kaixi
... View more
01-18-2018
11:43 AM
|
0
|
2
|
1009
|
POST
|
Hi Jamie, Thanks for your help. I published a mosaic dataset as image service. On the service editor, I added a raster function template. The mosaic dataset and the function template were copied to the server together. The python function specified in the template is attached below. On the client side, I set the mosaic rule and rendering rule: //render rule var renderRF = new RasterFunction(); renderRF.functionName = "CustomziedRasterFuncTemplate"; renderRF.functionArguments = { "ignoredvalues":ignoredPixelValues, "Raster": "$$" }; //mosaic rule var msRule = new MosaicRule(); msRule.method = MosaicRule.METHOD_LOCKRASTER; msRule.lockRasterIds = [bandIndex] //image service parameter var params = new ImageServiceParameters(); params.noData = 0; params.mosaicRule = msRule; params.renderingRule=renderRF; //image service layer var imageServiceLayer = new ArcGISImageServiceLayer(mosaidImageServiceURL, { imageServiceParameters: params, opacity: 1.0 }); Kaixi
... View more
01-16-2018
05:01 PM
|
0
|
4
|
1009
|
POST
|
I have a customized python raster function, which is pretty simple, setting some given values among the input raster to zero.Here, I used numpy inputRasterNumpyArray[inputRasterNumpyArray==target_value]=0 The function works well in ArcMap. But when I used this raster function to render an image service, the result is very strange (see below). I can see vector lines when zooming in. Does anyone have any idea why it looks like this?
... View more
01-16-2018
10:56 AM
|
0
|
6
|
1516
|
POST
|
My raster datasets is in another server, which can be accessed through URL, for example, http://servername.com/raster/test.tif My question is how to use ArcObjects .Net to read this raster dataset? I tried the same way like opening a dataset in the local ocmputer (as shown below), but it did not work..... IWorkspaceFactory2 workspaceFactory = new RasterWorkspaceFactory() as IWorkspaceFactory2; IRasterWorkspace lRasterWorkspace = workspaceFactory.OpenFromFile(url, 0) as IRasterWorkspace; inRasterWS = (IWorkspace)lRasterWorkspace; _rasterDataset = (inRasterWS as IRasterWorkspace).OpenRasterDataset(datasetName); Does someone know how to read datasets located on a remote server using ArcObjects?
... View more
02-13-2017
11:20 AM
|
0
|
2
|
624
|
POST
|
I explored the function generate_raster in ArcGIS python API, following the tutorial creating raster information product using raster analytics | ArcGIS for Developers. It worked perfectly when using the built-in raster functions like 'Stretch' as demoed in the tutorial. But when I replace the rasterFunction name with the one in my image service, like, 'customRasterFunction', it returned the error below. ERROR 001641: The specified entry 'Input Raster Function' is invalid. A processing template must reference either a valid raster function template (RFT) XML file or a pre-existing template by name.\nFailed to execute (GenerateRasterFromRasterFunction).\n."} It seems that it could not find the raster function template 'customRasterFunction'. However, when I opened the image service in map viewer, and click 'Image Display', I can change the Renderer to the 'customRasterFunction', and the image is displayed without any problem. Any idea why?
... View more
01-24-2017
10:37 AM
|
0
|
1
|
805
|
POST
|
Thanks, Grant! Is it possible to share your C# version of adding/registering items? I am sucked with one problem in my codes....
... View more
01-12-2017
02:48 PM
|
0
|
2
|
1130
|
POST
|
Hi Anthony, thanks so much for the reply. I used TIFF files. It just came up blank when viewing it at REST via the Javascript Viewer and ArcGIS Online. But strangely, I checked it just now. The published image service works!!! I can see the image at REST API. No idea why...
... View more
01-05-2017
08:06 AM
|
0
|
0
|
343
|
POST
|
I used C# + ArcObjects to publish image service. I can successfully publish the image service. However, the data source of the image service is empty, as shown in the picture below. Thereby, the image service can not be visualized. But I checked the image service configuration file, in which the path has been defined "path": "\\\\server\\test.gdb\\Vulnerability", I have registered this gdb on the arcgis server. Any ideas how to solve the problem?
... View more
12-28-2016
09:45 AM
|
0
|
3
|
1509
|
POST
|
Thanks! Finally, I wrote the tables as txt files, which allowed me to do the writing at the same time.
... View more
12-28-2016
09:17 AM
|
0
|
0
|
265
|
POST
|
I used C# and ArcObjects to write 6 output tables in the same workspace. To improve the performance, I tried to do parallelization, each thread writing one table . Codes were pasted below. Parallel.For(0, tableCount, k=> { //write kth table writeTable(k); } But I got the error "can not acquire the lock....". It seems that workspace did not support multiple writing at the same time. Is there any other solutions?
... View more
12-16-2016
06:43 AM
|
0
|
2
|
725
|
POST
|
Thanks! I have imported the server's self signed certificate into the certificate store. But it still pops up the alert window. I have a 3 machine cluster, each machine has installed arcgis server 10.4. I did it on the 3 machines. Still not working....
... View more
10-27-2016
10:25 AM
|
0
|
0
|
327
|
POST
|
I noticed from the ESRI website that "AddToolbox also supports working with secured ArcGIS online services", and the example is as below: import arcpy tbx = "http://logistics.arcgis.com/arcgis/services;World/ServiceAreas;UseSSOIdentityIfPortalOwned" arcpy.AddToolbox(tbx) The codes work, but my arcgis server service uses self-signed certificate. Thereby, when I run the codes, it always pops up the "security alert" window. Is there anyway to let the arcpy.AddToolbox ignore or trust the self-signed certification? Thanks PS. I use ArcGIS Server 10.4
... View more
10-26-2016
06:34 PM
|
0
|
2
|
958
|
Title | Kudos | Posted |
---|---|---|
1 | 07-28-2016 11:34 AM | |
1 | 07-29-2016 01:34 PM | |
1 | 07-29-2016 01:31 PM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:25 AM
|