|
POST
|
Dan, Thanks for that catch. I was looking at the code and not the logic in my responce. Adjusted my reply as well...
... View more
07-07-2019
11:46 AM
|
0
|
0
|
1758
|
|
POST
|
Malcolm Little First is you are getting a lock acquisition error, do you have multiple copies open of the table you are attempting to update? Second use something like TravelMode = speedType (!Speed!) . "Type" is a function in Python and should not be used as a def name. It will work, but is poor practice. Third for the Code Block, the way you have it coded "sp" is not assigned a value you have assigned the speed to "modey" when you called your function. "sp" is only defined as a global and never set. Your logic also does not handle NULL values or negative values that could be in your data. def speedType(sp):
if sp == 0:
return "stationary"
elif 1 <= sp <=6:
return "walk"
elif 7 <= sp <= 19:
return "cycle"
else:
return "drive"
... View more
07-07-2019
11:26 AM
|
1
|
0
|
1758
|
|
POST
|
egypt gas, 1) Please insure you have allowUpdates=true (case sensitive with no spaces) in the bind::esri:parameters for the repeat you are trying to edit in your XLSForm. If you need to include a query statement such as allowUpdates=true query="Editor='MyName'" make sure there is a space between the key value pairs. The query parameter is optional. Make sure to refresh your survey in the Survey123 App for the changes to show after republishing. See Prepare for editing existing survey data for additional info. 2) When was your survey published and how was it published? If using Survey123 Connect, what version? There have been recent changes (June 2019) to the editing ability of Surveys and if your survey was published before this time or using an older version of Survey123 Connect may be your issue. A quick check: go to https://survey123.arcgis.com and logon Navigate to "My Surveys" Hover over the pencil/designer button for the survey in question and click Go to Settings/Version Tab This will display the version the survey was published - 3.0 in the sample below Select "Always use the latest version" - currently 3.5 Click Save Test your survey now If this works, try downloading and installing he most recent version of Survey123 Connect and/or republish your survey. You can just use the option noted above, but if your survey is large it may be slow to load.
... View more
07-07-2019
09:51 AM
|
1
|
2
|
7539
|
|
POST
|
Catherine, Those are the underlying metadata tables for the two surveys you have loaded into your session, DO NOT DELETE THEM.
... View more
07-07-2019
08:11 AM
|
1
|
1
|
1296
|
|
POST
|
Catherine, Yes, you can add multiple Survey123 feature services to a map in AGOL. The data is stored as a feature service in AGOL just as any other data would be from Collector or directly in AGOL provided you are storing the XY data for your survey using a geopoint question. One bit of advice, if you are using the internal GPS of phones or tablets to collect your XY data, these can be off substantially by tens or even hundreds of meters. Take a a look at: Share your survey data—Get Started with Survey123 for ArcGIS
... View more
07-07-2019
08:07 AM
|
0
|
2
|
1153
|
|
POST
|
Lynn, There is some information available in the document Extending Survey123 for ArcGIS from the 2019 ESRI users conference. Also, I believe Add-In support for the collector app is still in development - Sneak peek—Survey123 for ArcGIS so you would need to be running a Alpha or Beta version to utilize this function, if released for testing.
... View more
07-07-2019
07:34 AM
|
1
|
2
|
1559
|
|
POST
|
Teemoo, If you are trying to run a stand along python script in ArcGIS take a look at Running a script in process—Help | ArcGIS Desktop. If you need further assistance, take a look at the ESRI video Using Python in ArcGIS 10.
... View more
07-07-2019
07:12 AM
|
0
|
0
|
916
|
|
POST
|
Andrew, That appears to be one of the Merchich coordinate systems. Take a look at https://epsg.io/?q=Morocco for a list of coordinate systems for the area in question. In particular EPSG: 26192 - Merchich / Sud Maroc (South Morocco) or EPSG: 26191 - Merchich / Nord Maroc (North Morocco). One of these should be the system you need to use.
... View more
07-07-2019
06:36 AM
|
1
|
0
|
2064
|
|
POST
|
Ali, That appears you may be using curve segments in your CAD drawing which are not supported in shapefiles. Take a look at Geoprocessing considerations for shapefile output—Appendices | ArcGIS Desktop. Parametrically defined curves (also known as circular arc curves) are not supported on shapefiles. Parametric curves are created by editing geodatabase feature classes, as described in Create arc segments and curves. Circular arc curves use a mathematical formula to draw the curve. If you export a geodatabase feature class containing circular arc curve features to a shapefile, the curved features are transformed to simple line features with closely spaced vertices to capture the curved shape.
... View more
07-07-2019
06:22 AM
|
2
|
0
|
1077
|
|
POST
|
May, 1) Does the error message listed correspond to your sudo code? In particular the File “<string>”, line 1 relate to the arcpy.env.workspace = SDEworkspace line 1 in your sudo code. Here is the code: arcpy.env.workspace = SEDworkspace tableName = "MasterStreetName" outTableName = "{}\{}".format(outGDB, tableName) arcpy.Copy Runtime error Traceback (most recent call last): File "<string>", line 1, in <module> File "c:\program files (x86)\arcgis\desktop10.6\arcpy\arcpy\management.py", line 4314, in Copy raise e ExecuteError: ERROR 000840: The value is not a Data Element. 2) is this running as a stand-alone script or in ArcGIS. I have seen this error when coping a feature when it is active in the TOC from desktop scripts.
... View more
07-07-2019
06:03 AM
|
0
|
0
|
2235
|
|
POST
|
Robert, Open your MXD and navigate to View > Data Frame Properties, go to the Coordinate system Tab and click the Transformations button. This dialog will have a list of all the coordinate systems for the data being used in the map. Note, you need to have your Data Frame coordinate system set for the MXD and data added to your MXD in the systems you want to transform between to initially configure this dialog. in the "Convert from" selection dialog, select the coordinate system you would like to assign a fixed transformation to. The "Into" selection dialog will be set to the data frame coordinate system In the "Using" selection dialog select the transformation you want to use between these two systems. The screen shot above shows an example from our system as we always want to use the NAD_1983_To_HARN_Ohio + NAD_1983_HARN_To_NAD_1983_2011 transformation between GCS_NAD_1983 and GCS_NAD_1983_2011 for our data. Click OK then click Apply Save your MXD This will now apply the NAD_1983_To_HARN_Ohio + NAD_1983_HARN_To_NAD_1983_2011 transformation between GCS_NAD_1983 and GCS_NAD_1983_2011 anytime data is added to this MXD in GCS_NAD_1983
... View more
07-04-2019
06:42 AM
|
0
|
0
|
1110
|
|
POST
|
Estella, One item I noted in your setting is "Editors can only edit their own features" is enabled. Please take a look at Manage hosted feature layers on the AGOL website. If you want to restrict feature edits based on the creator of the feature, select Editors can only edit their own features (requires tracking) under the What features can editors edit? setting. This allows editors to delete or modify the features they created but not delete or modify others' features.
... View more
07-03-2019
09:35 PM
|
0
|
1
|
2970
|
|
POST
|
May, One notable item is a possible typo in your script, "arcpy.env.workspace = SEDworkspace" may need to be "SDEworkspace". Or is this just a typo in your post?
... View more
07-03-2019
09:18 PM
|
0
|
1
|
2235
|
|
POST
|
Hi Albert, If/Else and When statements only return the first true condition. To do this you will need create a variable to hold your return string or list of values to return, check each condition and then return the string. Something along the lines of the following: (Code is not tested and meant as a sample only) var i = 0;
var ret = [];
function add(f, s) {
if (f == 'y') {
ret[i++] = s;
}
}
add($feature["HiF1"], 'Strong and Engaged Leadership');
add($feature["HiF2"], 'The Text for this Feature');
add($feature["HiF3"], 'The Next Feature to Check');
add($feature["HiF4"], 'Etc.');
return Concatenate(ret, ", ") I believe you could also use a dictionary containing the feature name and text to clean this up even more: var i = 0;
var ret = [];
function add(f, s) {
if (f == 'y') {
ret[i++] = s;
}
}
var d = dictionary(
"HiF1", 'Strong and Engaged Leadership',
"HiF2", 'The Text for this Feature',
"HiF3", 'The Next Feature to Check',
"HiF4", 'Etc.');
for (var x in d){
add($feature[x], d[x]);
}
return Concatenate(ret, ", ") You can change the comma (", ") in the Concatenate line to what ever you would like to join the strings together.
... View more
07-03-2019
08:46 PM
|
2
|
1
|
1487
|
|
POST
|
Joanne, Take a look at the Blog Overlapping Features in Pop-Ups Quick Introduction to Using FeatureSets with Arcade and its subsequent posts.
... View more
07-03-2019
05:03 PM
|
2
|
0
|
3308
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | Thursday | |
| 1 | 09-16-2019 05:49 PM | |
| 1 | 06-11-2025 03:32 PM | |
| 1 | 12-26-2023 09:15 AM | |
| 1 | 12-29-2023 10:06 AM |
| Online Status |
Offline
|
| Date Last Visited |
Thursday
|