|
POST
|
I got it figured out. Make sure to specify the esriFieldTypeDate for the bind::esri:fieldType column in the XLSForm it transfers correctly. Before it was left blank.
... View more
04-12-2018
01:11 PM
|
1
|
1
|
1597
|
|
IDEA
|
In order to help keep large organizations content organized, be able to chose which folder to publish the Survey123 Form and Feature to in the ArcGIS Online Content -> My Content -> Folders. For an example, currently the folders were nice and organized by 5 departments folders. Now I add 10 Surveys for 3 different departments and my Content is suddenly disorganized with 15 folders.
... View more
04-11-2018
09:11 AM
|
88
|
10
|
6118
|
|
POST
|
Date to date (field:dateStarted={Date_Started}), no text fields involved. It is a date in my feature service attribute (Date_Started - Format as December 21, 1997) and a date in my Survey Connect Excel field (dateStared). It works great from Online to Survey. When integrating from collector to survey123 is where it always changes it to Monday, January 1, 0001. I should also add that I am using Windows. It is pulling from a ArcGIS Server rest Feature Service. Connect Attribute Config Hyperlink to Survey ArcGIS Online to Survey123 ArcGIS Collector to Survey123
... View more
04-11-2018
06:23 AM
|
0
|
3
|
1597
|
|
POST
|
When I pass a date field from collector to survey123 (field:dateStarted={Date_Started}) it will only pass to survey123 as Monday, January 1, 0001. When I do this from a ArcGIS Online map it pass on the correctly entered date. How would I get this to pass correctly using survey123?
... View more
04-10-2018
02:15 PM
|
1
|
5
|
1936
|
|
POST
|
Using Survey123 Connect for ArcGIS. I have a survey which I originally published in the default location because I did not see any option to choose which folder to publish in. I moved it to the correct group/folder for my organization so now when I re-publish it ends up in a never ending loop. If I move it back to my home folder I am able to re-publish. How do I tell Survey123 which folder I want to publish/re-publish to so I do not have to keep moving it?
... View more
03-28-2018
12:10 PM
|
1
|
11
|
10194
|
|
POST
|
Thanks, that was it! This is the corrected code. MapView.Active.Map.GetLayersAsFlattenedList().OfType<FeatureLayer>().First(l => l.Name.Equals("Parcels"));
... View more
02-02-2018
12:52 PM
|
0
|
0
|
4644
|
|
POST
|
Here is the full code I am trying to get to work. namespace Parcel_Select
{
internal class SelectParcel : MapTool
{
public SelectParcel()
{
IsSketchTool = true;
SketchType = SketchGeometryType.Rectangle;
SketchOutputMode = SketchOutputMode.Map;
}
protected override Task OnToolActivateAsync(bool active)
{
return base.OnToolActivateAsync(active);
}
protected override Task<bool> OnSketchCompleteAsync(Geometry geometry)
{
var parcellayer = (MapView.Active.Map.Layers.First(layer => layer.Name.Equals("Parcels")) as FeatureLayer);
//var parcellayer = (MapView.Active.Map.GetLayersAsFlattenedList().Where(layer => layer.Name.Equals("Parcels")) as FeatureLayer);
if (parcellayer == null) return Task.FromResult(true);
return ArcGIS.Desktop.Framework.Threading.Tasks.QueuedTask.Run(() =>
{
var sqatialfilter = new SpatialQueryFilter()
{
FilterGeometry = geometry,
SpatialRelationship = SpatialRelationship.Intersects
};
MapView.Active.Map.SetSelection(null);
parcellayer.Select(sqatialfilter);
return base.OnSketchCompleteAsync(geometry);
});
}
}
}
... View more
02-02-2018
11:58 AM
|
0
|
2
|
4644
|
|
POST
|
I am trying to create a Map Tool where it only selects features in my "Parcels" layer. Some users will have the "Parcels" layer inside a Group Layer in the Map and some will not. .NET C# var parcellayer = (MapView.Active.Map.Layers.First(layer => layer.Name.Equals("Parcels")) as FeatureLayer); This works well if the layer is directly in the Map, but will crash if the layer is in a Group Layer in the Map. I have yet to figure out how to use a layer within a Group Layer in the same manner, simply because it is not what I am after. According to ProConcepts Map Authoring · Esri/arcgis-pro-sdk Wiki · GitHub , Working with Map Members, one should use FlattenedList because "Should you need to get a list without group layers hierarchy, use Map.GetLayersAsFlattenedList() method". When I do this, nothing happens when I try and use the new Map Tool .NET C# var parcellayer = (MapView.Active.Map.GetLayersAsFlattenedList().Where(layer => layer.Name.Equals("Parcels")) as FeatureLayer); I want to be able to make a Select Map Tool where it will select the "Parcels" layer regardless of if it is in a Group Layer or not. To add more confusion. I can run a stand alone Python Script within Pro and it will not matter if a feature layer is in a Group layer or not. Python selectPar = pm.SelectLayerByLocation("Parcels","WITHIN_A_DISTANCE",ZoneCaseFeat,"1000 Feet","NEW_SELECTION")
But if I run this same exact Python script from within .NET I have to put the Group in there first. Python selectPar = pm.SelectLayerByLocation(r"GroupLayerName\Parcels","WITHIN_A_DISTANCE",ZoneCaseFeat,"1000 Feet","NEW_SELECTION") But if I do this and run the Python script from within .Net it will work fine in or out of a group! Python aprx = arcpy.mp.ArcGISProject("CURRENT")
m = aprx.listMaps("Layers")[0]
ParcelsLayer = m.listLayers("Parcels")[0]
selectPar = pm.SelectLayerByLocation(ParcelsLayer,"WITHIN_A_DISTANCE",ZoneCaseFeat,"1000 Feet","NEW_SELECTION")
... View more
02-02-2018
11:41 AM
|
0
|
3
|
5805
|
|
POST
|
I suspect the License is not getting checked out. Try catching an exceptions on that before running the Tabulate. See the Code Sample here: CheckOutExtension—Help | ArcGIS for Desktop
... View more
12-14-2017
11:13 AM
|
1
|
0
|
1013
|
|
POST
|
Is there a way to use a relative path to that folder? Not everyone I share the project with will have the same file, folder, directories. Replace the "string tool_path" with a relative path. public async Task<IGPResult> ExecuteModel()
{
string tool_path = @"C:\Test_Folder\Base_Maps\Base_Maps.tbx\TestScript";
var parameters = Geoprocessing.MakeValueArray();
IGPResult gp_result = await Geoprocessing.ExecuteToolAsync(tool_path, parameters);
Geoprocessing.ShowMessageBox(gp_result.Messages, "GP Messages", gp_result.IsFailed ? GPMessageBoxStyle.Error : GPMessageBoxStyle.Default);
return gp_result
} ;
... View more
11-27-2017
01:15 PM
|
0
|
1
|
4348
|
|
POST
|
Using a C# .Net add-in I need to run a custom python script tool from my toolbox from with-in the map in Pro. The sample "CallScriptFromNet" will not work because it runs the Python script from outside of the Pro environment. I have things in the script that uses many layers from the "CURRENT" map so it fails running it the way the sample shows. The script works great when I run it from the toolbox, but I cannot figure out how to run it from the .Net add-in. I am thinking I need to use some sort of combination of getting a Geoprocessing Project Item and Executing it?
... View more
10-25-2017
01:31 PM
|
2
|
12
|
6820
|
|
POST
|
Using a python script I need to figure out how split an line segment across the road and get its classification. Using my parcel data I need to calculate the segments values of adjacent polygons base on a classification. I used the intersect tool to get the initial segments. My problem is where the road is at. Anyone have any ideas how to handle this in a script? See attached image. The pink line needs to be split at the perpendicular intersection of the light and dark green polygons, and classified based on their values. Please note the shapes will not always be nice and squared. Also this script is for ArcGIS Pro.
... View more
07-18-2017
10:10 AM
|
0
|
0
|
838
|
|
POST
|
Does anyone know a way to get Collector for ArcGIS to recognize the GPS location through the Verizon Jetpack GPS function other then using the turboirc.com GPSDirect sensor? Unfortunately GPSDirect is not currently supported on the Surface Pro 4, Windows 10 system.
... View more
07-13-2017
09:21 AM
|
0
|
0
|
760
|
|
IDEA
|
AddMessage's are very helpful when running custom scripts to show where and how it might fail. I would like to see these messages and error messages if it fails just like it does in the Geoprocessing tab when you run a script outside of a step. When run within a step in task there is no where to get the messages.
... View more
06-02-2017
06:53 AM
|
3
|
2
|
1546
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 04-12-2021 09:58 AM | |
| 2 | 03-18-2025 10:32 AM | |
| 1 | 07-28-2020 11:56 AM | |
| 1 | 08-23-2024 07:48 AM | |
| 1 | 08-23-2024 07:10 AM |
| Online Status |
Offline
|
| Date Last Visited |
a week ago
|