|
POST
|
Dear Mark, I highly appreciate if you can help me to write the same tool (just the first part, add x y tool button with out the buffer part). on(dom.byId("btnFindCoordinates"), "click", function() { map.graphics.clear(); var x = dom.byId("xCoord").value; var y = dom.byId("yCoord").value; var coordPoint = new Point(x,y); prjParams.geometries = [coordPoint]; map.centerAndZoom(coordPoint, 11); map.graphics.add(new Graphic(coordPoint, markerSymbol)); }); In our work we are using the cityworks application and in order to add a new tool, we need to write the .js file, an example of "homebutton" is as shown. it should be in the same written in the same way in order to add to the cityworks may. define(['dojo', 'esri/dijit/Button'], function(_dojo, HomeButton){
return function (proxy, cfg){
var initialized = false;
var displayPanel;
function initUI() {
var config = {label: cfg.title, title: cfg.title};
var container = _dojo.create('div');
var button = _dojo.create('button');
container.appendChild(button);
var homeButton = new HomeButton({map: proxy.map.get()}, button);
homeButton.startup();
config.content = container;
return config;
}
function selectChild(){
//proxy.layout.toggleRegion({region: 'trailing', expand: true});
proxy.layout.selectChild(displayPanel);
}
this.init = function() {
var dfd = proxy.utility.deferred();
dfd.resolve();
return dfd;
};
this.show = function(){
if (!initialized){
initialized = true;
var uiConfig = initUI();
displayPanel = proxy.layout.createTrailingPanel(uiConfig);
selectChild();
}
else{
selectChild()
}
}
}
}) P.S: I am new to API for JS. the guild line for the company to add a new tool is as shown: Thank you in advance. Best Majdoleen
... View more
11-13-2019
01:40 AM
|
6
|
0
|
2266
|
|
POST
|
The Arcgis Pro fails to catch the existing cache for a cached map service. We couldn’t figure out why the Arcgis Pro fails to catch the existing cache for a cached map service. For example, I have the cache for one of our map services which cached in PC#1 and I want to move the cache to PC#2 without consuming anytime in caching. But unfortunately, we found out that the cache processing will start from 0% and after one day it reached to 45% and still processing as shown in the screenshot, but the strange behavior is that the size of the cache is the same (No effects)! Any explanation for this behavior? Is it a known bug? Please note that this approach is used before with Arcmap and Arcgis server and we never faced like this behavior.
... View more
10-22-2019
11:06 PM
|
5
|
0
|
920
|
|
POST
|
We couldn’t figure out where is the cache status on the Arcgis pro, otherwise, we can find it on Arcmap by clicking right click on the service.
... View more
10-21-2019
03:59 AM
|
11
|
4
|
1872
|
|
POST
|
I tried the below steps and it works fine with me: But I couldn't reach the datastore proprieties.
... View more
09-22-2019
11:34 PM
|
8
|
1
|
822
|
|
POST
|
Here's the code which is written by Ahmad before, and as Ahmad mentioned, it worked fine with Ahmad! also I used the python online checker :https://extendsclass.com/python-tester.html which indicate that their is no error, but ends with an error at the level of Arcmap!! What do you think? import arcpy
Feature = arcpy.GetParameterAsText(0)
X_Value = arcpy.GetParameterAsText(1)
Y_Value = arcpy.GetParameterAsText(2)
def shift_features(Feature, X_Value=None, Y_Value=None):
"""
Shifts features by an x and/or y value. The shift values are in
the units of the in_features coordinate system.
Parameters:
in_features: string
An existing feature class or feature layer. If using a
feature layer with a selection, only the selected features
will be modified.
X_Value: float
The distance the x coordinates will be shifted.
Y_Value: float
The distance the y coordinates will be shifted.
"""
with arcpy.da.UpdateCursor(Feature, ['SHAPE@XY']) as cursor:
for row in cursor:
cursor.updateRow([[row[0][0] + (X_Value or 0),
row[0][1] + (Y_Value or 0)]])
return
shift_features(Feature, X_Value, Y_Value)
... View more
09-19-2019
01:52 AM
|
6
|
4
|
4398
|
|
POST
|
Thank you Ahmad so much for your prompt help, I tried to use your python but unfortunately I end with the error shown below: What might be the issue here? Best Majdoleen
... View more
09-19-2019
12:01 AM
|
5
|
6
|
4398
|
|
POST
|
Please note that I have created the attached script/ toolbox, and despite the fact that the job completed successfully, the feature remains on its place. here the script: import arcpy Feature = arcpy.GetParameterAsText(0) X_Value = arcpy.GetParameterAsText(1) Y_Value = arcpy.GetParameterAsText(2) def shift_features(Feature, X_Value=None, Y_Value=None): """ Shifts features by an x and/or y value. The shift values are in the units of the in_features coordinate system. Parameters: in_features: string An existing feature class or feature layer. If using a feature layer with a selection, only the selected features will be modified. X_Value: float The distance the x coordinates will be shifted. Y_Value: float The distance the y coordinates will be shifted. """ with arcpy.da.UpdateCursor(Feature, ['SHAPE@XY']) as cursor: for row in cursor: cursor.updateRow([[row[0][0] + (X_Value or 0), row[0][1] + (Y_Value or 0)]]) return ps: I don't have any experience in script
... View more
09-17-2019
03:55 AM
|
6
|
8
|
4398
|
|
POST
|
Thank you Ahmad for your reply, do you mean that changing the default instance type per site to “shared instances” will affect all the services, and all the services will share the number of instances? and in this case we don’t need to apply the pooling setting per services as shown below. Best Majdoleen
... View more
09-15-2019
12:19 AM
|
9
|
1
|
4168
|
|
POST
|
Thank you Jonathan Quinn for your reply, this is what we have done before (monitoring), but now with the sharing instances option in Arcgis 10.7.1, we think it is a good approach, but why not to have the sharing option at the level of the site and not per service?y
... View more
09-10-2019
03:56 AM
|
7
|
3
|
4168
|
|
POST
|
One more step is missing, just click on "License activity" and view the sessions, end one of them: Best Majdoleen
... View more
09-09-2019
11:00 PM
|
7
|
2
|
5129
|
|
POST
|
Arcgis server fails to keep the same symbol properties when caching a feature layer (polygon for example), We couldn’t figure out why when we cache a feature layer (polygon for example) using Arcgis server, it ends up with changing the thickness of the line. What might be the issue here? Best Majdoleen
... View more
09-02-2019
11:43 PM
|
7
|
0
|
654
|
|
POST
|
Thank you Randall Williams for your reply, it is very helpful. So, we can conclude that the main effect of (Require Encrypted Web Access) at the level of the folder in Arcgis server is to disable the http (enforce https) and only work with https, Please have a look on the attach! Best, Majdoleen
... View more
07-28-2019
01:39 AM
|
5
|
2
|
3819
|
| Title | Kudos | Posted |
|---|---|---|
| 2 | 06-14-2023 05:01 AM | |
| 1 | 09-05-2017 02:58 AM | |
| 1 | 01-19-2020 11:54 PM | |
| 1 | 08-25-2018 11:29 PM | |
| 2 | 08-27-2020 01:07 AM |
| Online Status |
Offline
|
| Date Last Visited |
07-01-2024
08:15 PM
|