|
POST
|
Have you tried refreshing your map? I have seen this behavior in both Pro SDK and Python Scripts for Pro. Pro is suppose to not need to be refreshed so there really is no code for it. One work around I had was to zoom in then back out a bit with the camera at the very end of my code. Also try rebuilding your solution, it is not suppose to be needed in small children version builds but I have found it to correct some issues in the past.
... View more
03-21-2019
08:51 AM
|
0
|
5
|
1543
|
|
POST
|
I just tested this and it happens to me as well using 2.3.1, must be a bug. Why not plot the pdf? I historically have had issues plotting from ArcMap and Pro so I always export them to pdf and print those.
... View more
03-21-2019
08:19 AM
|
0
|
1
|
2139
|
|
POST
|
Joshua, this is the answer. I had never worked on a dataset that was not a local coordinate system and it was confusing me too and I have been doing this a while. The original data is using WGS84, using the Asia North corrected the problem.
... View more
03-21-2019
05:40 AM
|
2
|
1
|
2366
|
|
POST
|
Where do you work and what is your role? I currently work for a local government in Kansas. My role is to know a little bit about a lot of things in GIS, from paper maps to SDKs. What GIS success have you had this year and what product did you use? Lately I have been writing a lot of add-ins for Pro so we can move everybody off the ArcMap platform. It forced me, a Python guy, to figure out C#. I have successful wrote them all, luckily I did not have a tight time frame. I am sure I wrote way more code then was actually needed, I feel sorry next guy who needs to modify/update them. What is your expertise (GIS related or not), and how can that help the community? I think I am ahead of the curve on Pro and the Pro SDK. I actual have fun writing Python Scripts. I prefer to help the community by asking/answer questions and ideas. Favorite Location 39°16'38"N 105°46'15"W
... View more
03-20-2019
10:06 AM
|
1
|
1
|
1882
|
|
POST
|
Here is a solution I found on here many years ago, which I cannot find now. This is for ArcMap. import arcpy, os
from arcpy import env
env.overwriteOutput = True
# Get arguments:
# Input point feature class
# Output polygon feature class
# Buffer distance
# Boolean type: Maintain fields and field values of the input in the output
print "initializing"
inPoints = arcpy.GetParameterAsText(0) # Feature Class
outPath = arcpy.GetParameterAsText(1) # Folder
outName = arcpy.GetParameterAsText(2) # Variant
buf1 = float(arcpy.GetParameterAsText(3)) # String
buf2 = float(arcpy.GetParameterAsText(4)) # String
bufDist1 = buf1/2
bufDist2 = buf2/2
outPolys = outPath+"//"+outName+".shp"
print "creating new blank feature"
arcpy.env.outputCoordinateSystem = arcpy.GetParameterAsText(5) # Coordinate System
arcpy.CreateFeatureclass_management(outPath, outName,"POLYGON","","","", "", "","","","")
print "created"
# Open searchcursor
inRows = arcpy.SearchCursor(inPoints)
# Open insertcursor
outRows = arcpy.InsertCursor(outPolys)
# Create point and array objects
pntObj = arcpy.Point()
arrayObj = arcpy.Array()
print "writing geomety"
for inRow in inRows: # One output feature for each input point feature
inShape = inRow.shape
pnt = inShape.getPart(0)
# Need 5 vertices for square buffer: upper right, upper left, lower left,
# lower right, upper right. Add and subtract distance from coordinates of
# input point as appropriate.
for vertex in [0,1,2,3,4]:
pntObj.ID = vertex
if vertex in [0,3,4]:
pntObj.X = pnt.X + bufDist1
else:
pntObj.X = pnt.X - bufDist1
if vertex in [0,1,5]:
pntObj.Y = pnt.Y + bufDist2
else:
pntObj.Y = pnt.Y - bufDist2
arrayObj.add(pntObj)
# Create new row for output feature
feat = outRows.newRow()
# Assign array of points to output feature
feat.shape = arrayObj
# Insert the feature
outRows.insertRow(feat)
# Clear array of points
arrayObj.removeAll()
# Delete inputcursor
del outRows
print "done"
... View more
03-20-2019
09:39 AM
|
1
|
0
|
3031
|
|
POST
|
Try this: for layer in layers:
if layer.getSelectionSet() > 0:
print layer
... View more
03-20-2019
08:05 AM
|
0
|
0
|
1860
|
|
POST
|
Yes you need to check it back in on the device it was checked out of. We had a computer broke and the only way to get the license back was through Esri Customer Service.
... View more
03-19-2019
11:21 AM
|
2
|
1
|
1350
|
|
POST
|
I just saw that you are new to this. First you cannot edit the layer directly from the Living Atlas. Right click the layer and export it. Next use the explode tool, this will break it into all individual features. Next select the two and Merge. I just did this on the same layer and it turns out there is a tiny gap between the two. For it to be seamless you need to draw a polygon over the gap, snapping to the boundaries, select the features and Merge.
... View more
03-19-2019
09:51 AM
|
2
|
2
|
2590
|
|
POST
|
Uma, I think I am narrowing it down, I went into the ArcGISPro.exe.config and changed to <supportedRuntime version="v4.0.30319" sku=".NETFramework,Version=v4.6.1"/> Now all the add-ins I built work great but the out of the box ones do not. I assume there is a setting in VS where I can set the framework version or write the correct one into the code somewhere? If you have any experience or knowledge in this area I would appreciate the help, I am at a loss when I have to start getting into the XML system files. ArcObjects Help for .NET developers https://gis.stackexchange.com/questions/13606/why-cant-the-breakpoint-be-hit-when-debugging-an-arcgis-10-add-in#16206
... View more
02-19-2019
02:13 PM
|
0
|
0
|
1199
|
|
POST
|
I renamed the root folders and reinstalled the software and it has helped a lot. Still a bit slow but manageable. using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ArcGIS.Core.Geometry;
using ArcGIS.Desktop.Mapping;
namespace MapToolSelect
{
internal class MapToolSelect : MapTool
{
public MapToolSelect()
{
IsSketchTool = true;
SketchType = SketchGeometryType.Rectangle;
SketchOutputMode = SketchOutputMode.Screen;
}
protected override Task OnToolActivateAsync(bool active)
{
return base.OnToolActivateAsync(active);
}
protected override Task<bool> OnSketchCompleteAsync(Geometry geometry)
{
return ArcGIS.Desktop.Framework.Threading.Tasks.QueuedTask.Run(() =>
{
// Using the active map view to select
// the features that intersect the sketch geometry
ActiveMapView.SelectFeatures(geometry);
return true;
});
}
}
}
... View more
02-19-2019
12:24 PM
|
0
|
0
|
1199
|
|
POST
|
Correct. Normal out of the box works fine. My custom code and the ESRI samples code downloaded from GitHub fails. Worked fine in 2.2.
... View more
02-19-2019
11:40 AM
|
0
|
3
|
1199
|
|
POST
|
No exception thrown. It sits and spins for 5-10 minutes, all others tools are grayed out, the refresh spins, and nothing gets selected. All features are in a sde database.
... View more
02-19-2019
11:18 AM
|
0
|
5
|
1199
|
| 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
|