|
POST
|
The output is not being written to in_memory. It is being output as shapefile.
... View more
01-08-2021
07:31 AM
|
1
|
0
|
5301
|
|
POST
|
It is working fine in ArcGIS Pro though. Is the incompatibility only on arcpy available on the ArcGIS server?
... View more
01-07-2021
01:03 PM
|
1
|
2
|
5340
|
|
POST
|
I have an python tool that runs fine in ArcGIS pro. I was able to publish as a service to my ArcGIS Enterprise however when I try to run the service it gives an error. It looks like the it is hung up when trying to call arcpy.Project_management. Any ideas on why this would run fine in Pro but not as a GP service? Thanks in advance. esriJobMessageTypeError: Traceback (most recent call last): File "<string>", line 156, in execute File "<string>", line 441, in getMessages File "d:\program files\arcgis\server\framework\runtime\arcgis\Resources\arcpy\arcpy\management.py", line 11492, in Project raise e File "d:\program files\arcgis\server\framework\runtime\arcgis\Resources\arcpy\arcpy\management.py", line 11489, in Project retval = convertArcObjectToPythonObject(gp.Project_management(*gp_fixargs((in_dataset, out_dataset, out_coor_system, transform_method, in_coor_system, preserve_shape, max_deviation, vertical), True))) File "d:\program files\arcgis\server\framework\runtime\arcgis\Resources\arcpy\arcpy\geoprocessing\_base.py", line 511, in <lambda> return lambda *args: val(*gp_fixargs(args, True)) arcgisscripting.ExecuteError: ERROR 000208: Error creating output feature class Failed to execute (Project). # what to do with a polygon
logging.debug(
"Input feature is a polygon based on config, buffer will not be created")
poly = arcpy.AsShape(feature["geometry"], True)
try:
wkid = feature["geometry"]["spatialReference"]["latestWkid"]
except Exception:
wkid = feature["geometry"]["spatialReference"]["wkid"]
pass
in_sr = arcpy.SpatialReference(wkid)
poly_fc = arcpy.CreateFeatureclass_management(
"in_memory", "tempPoly", "POLYGON", spatial_reference=in_sr)[0]
logging.debug("Spatial Reference of poly_fc: " +
arcpy.Describe(poly_fc).spatialReference.name)
# Open an insert cursor
with arcpy.da.InsertCursor(poly_fc, ["SHAPE@"]) as cursor:
# add the poly to the feature class
cursor.insertRow([poly])
# reproject the poly feature class to 4326 if it's not already so the
# buffer output will be in 4326 and be more accurate
if wkid == 4326:
event_poly = poly_fc
else:
projected_poly = os.path.join(script_path,"prjPoly.shp")
arcpy.Project_management(
poly_fc, projected_poly, arcpy.SpatialReference(4326))
arcpy.CopyFeatures_management(projected_poly, event_poly)
arcpy.Delete_management(projected_poly)
logging.debug("event Poly feature count: " +
str(arcpy.GetCount_management(event_poly).getOutput(0)))
logging.debug("event Poly spatial reference: " +
arcpy.Describe(event_poly).spatialReference.name)
... View more
01-07-2021
12:50 PM
|
1
|
17
|
8512
|
|
BLOG
|
I agree with this. Why not just create a search option to include searching archived items?
... View more
11-05-2020
10:49 AM
|
4
|
0
|
12019
|
|
BLOG
|
I really hope it turns out better than this current mess. I used to contribute quite often to the community back when it was a normal forum. The GeoNet changes made it fairly unusable so I have really been missing out.
... View more
11-05-2020
08:51 AM
|
0
|
0
|
12019
|
|
POST
|
While this article is helpful in understanding how things operate, I am curious as to why it must be this way. Often times I have data only available as a feature layer and need to put it under a map service layer but cannot do so. Are web maps just architected in a way that puts hand cuffs on us?
... View more
05-14-2020
11:55 AM
|
6
|
1
|
6616
|
|
POST
|
Couldn't get it to work so went a different route. Now just appending a date to the layer names each layer added will be unique.
... View more
02-14-2020
01:03 PM
|
0
|
0
|
1697
|
|
POST
|
I tried both as well as closing out the pop up window. No luck. function cleanup(){
//hide the legend and remove the existing hotspot layer
//domUtils.hide(dom.byId('legendDiv'));
var hailLayer = this.map.getLayer('Hail_History_Swath');
if(hailLayer){
map.infoWindow.clearFeatures();
hailLayer.infoTemplate = null;
hailLayer.infoTemplate = [];
this.map.removeLayer(hailLayer);
}
... View more
02-14-2020
11:43 AM
|
0
|
0
|
1697
|
|
POST
|
I think you are on the right track but it is not just that I have a pop up open. Eseesntially if I have a pop up open or have had one open but now closed, I get the same issue. If I never open a pop up on that layer I do not see this issue.
... View more
02-13-2020
12:55 PM
|
0
|
2
|
1697
|
|
POST
|
I have a widget that adds a layer from the result of a gpservice. Users can re-run the gp tool for different dates. In doing so the layer is removed and then re-added (with same id) when the new gpresult is returned. The pop ups are acting strange when i do this. As you can see I have these "ghost" features that show the pop up for outlined in blue. The yellow feature in the middle is from the newest gpresult. I can't figure out why it is still requesting the pop up info from the first gpresult. function gpJobComplete(jobinfo){
gp.getResultImageLayer(jobinfo.jobId, null, null, function(layer){
layer.setOpacity(0.7);
layer.title = "Hail History Swath";
layer.id = "Hail_History_Swath"
this.map.addLayers([layer]);
});
}
function gpJobStatus(jobinfo){
console.log(jobinfo);
}
function gpJobFailed(error){
console.warn(error);
}
function cleanup(){
var hailLayer = this.map.getLayer('Hail_History_Swath');
if(hailLayer){
this.map.removeLayer(hailLayer);
}
}
... View more
02-13-2020
11:52 AM
|
0
|
5
|
1885
|
|
POST
|
Ended up using resize function on the panel. Works much better. let size = { l: 60, t: 180, w: 570, h: null } this.getPanel().resize(size);
... View more
02-12-2020
05:40 AM
|
0
|
0
|
1151
|
|
POST
|
I am trying to resize and move a panel at runtime. There seems to be a couple problems with the code I am using below. Changing only the top position works fine but using left position does nothing. If I change height or width it works but the panel gets centered on screen. let panel = this.getPanel(); let pos = panel.position; pos.width = 570; pos.height = map.height - 290; pos.top = 180; pos.left = 50; panel.setPosition(pos); panel.panelManager.normalizePanel(panel); Any ideas? Thanks.
... View more
02-11-2020
12:35 PM
|
0
|
1
|
1363
|
|
IDEA
|
Thanks Scott. I saw the same after digging. Looks like EB is build on 4.x so WAB wigets would deinately need to be modified. I also read that EB will not obsolete WAB and it will continue to be maintained seperately.
... View more
11-21-2019
05:19 AM
|
0
|
0
|
6624
|
|
IDEA
|
Oh great. Just really got into using WebApp Builder in the past 6 months and have a lot of time into building custom widgets. Hope my code is reusable with this Experience Builder.
... View more
11-20-2019
09:07 AM
|
0
|
1
|
6624
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 05-21-2026 06:15 AM | |
| 4 | 03-12-2025 11:01 AM | |
| 3 | 01-08-2025 09:26 AM | |
| 1 | 01-08-2025 07:19 AM | |
| 1 | 12-06-2024 04:52 AM |
| Online Status |
Offline
|
| Date Last Visited |
3 weeks ago
|