POST
|
ended up calculate the highPS to be the same as the lowPS then the overviews was created correctly.
... View more
03-09-2024
09:36 PM
|
0
|
0
|
84
|
POST
|
I have about 10k tiff rasters. Each one is 10k by 10k pixels in geo WGS84 and no pyramids. The pixel size is 25 cm (0.000003 in wgs84). I build the mosaic and add the rasters. It looks fine but when I check the footprint table the LowPS is 0.000003 (as the pixel size) but the High PS is 0.000086 - why? Then when I do define overviews each overview on the first level cover about 1000 original tiles and its pixel size is 25 meters. When I try to show the mosaic there are many scales that shows 200 or more original tiles (since it does not have overviews for this scale) and it draw very slow. I build many mosaics in the past, never had this problem. The tiff rasters was created from SplitRaster gp tool on a big MrSID file.
... View more
03-04-2024
09:53 PM
|
0
|
1
|
187
|
POST
|
Hi Charlie Good answer as usual, look promising I will test. One more question on the same subject. Since the internal format has very limited symbology I need to limit the symbology in Pro for layers that will be exported. The way to do it is to create a style with supported symbols. In the style I can give each symbol my name. My idea is to create some kind of table that will have the symbol name in the style and the properties in the internal symbol format. For this my code need to understand what is the original name of the symbol in the style that the renderer uses. Some kind of property for a symbol that keeps the connection to the style it came from. Any idea how to do it?
... View more
02-14-2024
10:50 PM
|
0
|
0
|
149
|
POST
|
I need to translate feature layer to some internal format. The format include symbol for each feature (no renderer). I can run a cursor on the layer to get feature geometry but finding the symbol is a problem. I need to go to the renderer. If it is single symbol it is easy. If unique value I need to find the field value for the feature and find the class in the renderer. If there are other renderers I need to write more code (find between what classes the value is in case of class break etc.). Is there any other way?
... View more
02-13-2024
07:17 AM
|
0
|
2
|
188
|
POST
|
We have a hosted layer with some domains. We use this code: https://support.esri.com/en-us/knowledge-base/how-to-edit-readonly-domains-of-a-hosted-feature-layer-000027789 to update the domain. The client (web application) need to close and restart in order to see the changes. If we go into the item details (in on-line standard api) and change anything in the domain then the client see it immediately. It look like the standard screen flag somehow the domain as updated while the code does not. Anybody have any idea how to do it with code some the client will understand the domain must be reloaded?
... View more
01-28-2024
10:07 PM
|
0
|
0
|
215
|
POST
|
Hi all The first question is what happen if you just use Pro to import the MXD - no Python. If it gives you the data then it is a python problem. If it gives you empty map then python have nothing to do here.
... View more
01-15-2024
09:44 PM
|
0
|
1
|
132
|
POST
|
Hi Shaun In most cases the reason to run server python is that we need to run python by scheduler a few times a day so the interactive mod does not help. I tested the propy.bat at least on one machine and it did not worked. I will test it on other machines too. Thanks
... View more
01-13-2024
10:27 PM
|
0
|
0
|
362
|
POST
|
Hi Allen Thanks for your answer. When I use the Pro python and the Pro have any licenses it works. Many users does not want to use Pro license for this and would like to use Server license. In ArcMap python you should do "import arcserver" (https://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-functions/setproduct.htm) This does not exists in Pro arcpy. The solution is to use the server python.exe that should use the server license automatically. It does work on many machines but sometime does not on machines that have both Pro and Server installed.
... View more
01-10-2024
10:06 PM
|
0
|
1
|
415
|
POST
|
I have a machine that has Pro 3.1.4 & server 11.1 When I run in CMD the python from server ("C:\Program Files\ArcGIS\Server\framework\runtime\ArcGIS\bin\Python\envs\arcgispro-py3\python.exe") and try to import arcpy I get an error (see attachment) When I do it with the Pro python ("C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\python.exe") it works. Both python version are the same (3.9.16) I have tested it on a few machines that have both Pro & server installed. Some of them works, others do not. Opened a case but the support does not have it on his machine. Anybody have any idea? When using the server python we should use the server license - this is the reason to use it. Thanks
... View more
01-10-2024
06:20 AM
|
0
|
5
|
539
|
POST
|
The current Layer to KML gp tool create kmz that save symbology. When unzip the kmz you found doc.kml and anther style file. I would like to create KML that save symbology in a single KML file. I understand this can be done for simple symbology only (solid fill, simple point symbols, etc). Is there any way to do it or anybody have a sample code to do it? Thanks
... View more
01-03-2024
11:05 PM
|
0
|
0
|
239
|
POST
|
I have a string that contain KML. The simple way is to save it to disk (How do I get to the Scratch Directory?) then run the GP tool KML to Layer . Is there any other sorter way (CreateLayer<KmlLayer> or something similar)? Thanks
... View more
12-18-2023
09:07 AM
|
0
|
0
|
213
|
POST
|
Hello all This is a pure mvvm question. I have a datagrid in dockpane. I would like to let the user select many records (using control or shift) so I set the selectionmode to extended (the other option is single). I set the property in the model view to object so I get something. When I select one record the property set is activated and I get the selected record. When I use the shift or control to add more records to the selected the property is not called. The is working with ListBox where the property is ObservableCollection<MyRecord> but I could not find similar example with DataGrid. Thanks Thanks
... View more
12-17-2023
10:50 AM
|
0
|
1
|
384
|
POST
|
Hi All I did not tried it but it might work. Create identical path on your publish machine and on server (C:\temp\packages) and place your files there. Register this path on the server so it is "trusted" Use this path in your code to access the packages and remove them from the script location. In theory when you published since this is the registered directory the lines will not be changed. You must keep the contact in your local directory and in the server local directory identical Have fun
... View more
11-15-2023
10:17 PM
|
0
|
0
|
309
|
POST
|
Hi all When I put a raster in pro and ask for classify renderer I have a few smart algorithms to create the breaks (Quantile, Natural Breaks , etc). I am not sure if Pro uses the statistics only or resample the raster to get these breaks but it is very quick for any raster size. I would like to convert a DTM into polygon layer, since the values are continues I need to break it into classes. I can easily get the max and min and use equal interval but this does not give good results most of the time. Any idea how to get these smart breaks if I am in stand alone application? Thanks
... View more
11-15-2023
08:22 AM
|
0
|
0
|
133
|
Title | Kudos | Posted |
---|---|---|
1 | 06-25-2022 11:28 PM | |
1 | 08-29-2021 11:09 PM | |
1 | 11-09-2023 06:09 AM | |
1 | 10-10-2023 10:12 PM | |
1 | 11-23-2021 11:06 PM |
Online Status |
Offline
|
Date Last Visited |
an hour ago
|