IDEA
|
I too have this complaint! I recently posted about it here. ArcPro uses serious computer resources to run, so why have two instances of Pro running with one of them being "ArcCatalog" and take up that much more memory (around 580 MB)? And then the annoyance of starting Pro --> Start without a template --> View tab --> Catalog View --> path to open folders (and then Save changes to Untitled? -->No when closing) instead of just opening an icon like Catalog. I really miss being able to look at either the map view or table view of each item I am perusing to understand/remember what the layer is representing as I search for old layers or newly downloaded ones. Pro just doesnt cut it.
... View more
02-25-2024
11:53 AM
|
0
|
0
|
320
|
IDEA
|
Thanks @DanPatterson - I searched for the topic before I posted because I know Im not the only one with this gripe, but the post you linked to didnt come up. I'll repost there as well to get more visibility.
... View more
02-25-2024
11:40 AM
|
0
|
0
|
378
|
IDEA
|
I miss the good ol' days of having ArcCatalog as a stand-alone product for managing datasets. I find it frustrating having to open a project in Pro just to peruse the Catalog. I also find it weird that if I want to use Catalog, I have to essentially create a project for it when I click on the Catalog icon when opening Pro. My suggestion is to have a similar separate app for ProCatalog where I can search for datasets, view the data spatially (not by loading it into a map), run tools, edit Metadata, and have all the same functionality as ArcCatalog.
... View more
02-24-2024
11:37 AM
|
4
|
4
|
521
|
POST
|
Thank you so much. The final parameter is what I was missing. I thought by putting in the service name it would map the layer. I edited the original code below to show where I added in the specific layer. prj = arcpy.mp.ArcGISProject(prjPath) m = prj.listMaps('Map')[0] lyr_zone = m.listLayers() for l in lyr_zone: if 'zone' in l.name: print (l.name) service = l.name # Local paths to create temporary content outdir = r"C:\\10000_VGF\VGF soil zones\Temp" sddraft_filename = os.path.join(outdir, service + ".sddraft") sddraft = m.getWebLayerSharingDraft("HOSTING_SERVER", "FEATURE", service, l)
... View more
01-07-2022
10:11 AM
|
0
|
0
|
1111
|
POST
|
Hi Dan, I have read through the documentation multiple times to try to get a handle on what listLayers does and what it will return. I need the program to iterate through the layers in my ArcPro doc and publish them separately, which is not really happening. From the documentation, the listLayers gives an object at a location, as shown below. Using the code I first posted, I can get it to list the names using the filter criteria, but when the layer gets published, it actually publishes the data from all layers under that one name, and this repeats for each layer. The second picture in the original post shows the layer "22 acres zones - XXX zones" in a web map. This layer contains the geometry and name of all other fields under the heading of "22 acres zones". This is where I get confused about what exactly I am calling and how the data is being read to be published.
... View more
01-06-2022
09:32 AM
|
0
|
1
|
1129
|
POST
|
I have a multitude of layers in an ArcPro map that I want to upload to AGOL using ArcPy. The following code will upload each layer that includes the name "zone" to a folder in AGOL. However, when I open the layer in AGOL, I see that it actually contains all the data from all other layers too (see screenshots). How can I have the code explicitly reference a single layer in my map? prj = arcpy.mp.ArcGISProject(prjPath) m = prj.listMaps('Map')[0] lyr_zone = m.listLayers() for l in lyr_zone: if 'zone' in l.name: print (l.name) service = l.name # Local paths to create temporary content outdir = r"C:\\10000_VGF\VGF soil zones\Temp" sddraft_filename = os.path.join(outdir, service + ".sddraft") sddraft = m.getWebLayerSharingDraft("HOSTING_SERVER", "FEATURE", service) sddraft.summary = "Soil zones created using Veris technology for VGF" sddraft.tags = "soil, zones" # Create Service Definition Draft file print("Creating SD file") sddraft.exportToSDDraft(sddraft_filename) # Stage Service print("Creating Stage Service file") sd_filename = os.path.join(outdir, service + ".sd") arcpy.StageService_server(sddraft_filename, sd_filename) # Share to portal print("Uploading Service Definition...") arcpy.UploadServiceDefinition_server(sd_filename, "My Hosted Services", in_folder_type = "Existing", in_folder = "Soils", in_organization = "SHARE_ORGANIZATION") print("Successfully Uploaded service.")
... View more
01-05-2022
06:13 PM
|
0
|
5
|
1534
|
POST
|
I got it to work with both of your help and much fiddling. Here are my notes of what I changed: 1. Changed the names of some farm fields because they started with numbers, and gdb's hate files that start with a number. 2. Reorganized the fields list to have the field names first, then geometry (SHAPE@), as seen in the SearchCursor help page. I have learned in python that in many instances, the particular order in which things are listed really does matter. import arcpy arcpy.env.workspace = r"C:\GIS\VGF_Satellite_Imagery.gdb" out_loc = r"C:\GIS\VGF_Imagery_NDVI.gdb" raster = arcpy.ListRasters('Imagery_merged_2021')[0] farm = r"C:\GIS\VGF_Field_Boundaries.gdb\VGF_Field_Boundaries" fields = ['Field_Name2', 'Farm', 'SHAPE@'] where_clause = "Farm = 'VGF'" with arcpy.da.SearchCursor(farm, fields, where_clause) as cursor: for row in cursor: arcpy.Clip_management(raster, "", out_loc + '\\' + row[0] + "_2021", row [2], "0", "ClippingGeometry", "MAINTAIN_EXTENT")
... View more
12-16-2021
04:42 PM
|
0
|
0
|
2065
|
POST
|
Thanks Jeff. I tried your suggestion of using "" for the rectangle parameter since I set the clipping geometry. It worked for the first field, but did not update to use the next field boundary row as the clipping geometry for the next iteration. The program ran, but the output was 37 clipped rasters that were exactly the same.
... View more
12-16-2021
01:36 PM
|
0
|
2
|
2071
|
POST
|
Hello ESRI community, I have a large raster that covers many farm fields. I would like to iterate through a feature class and clip the raster by each farm field polygon in the feature class. Originally I tried to do this in the Python window of ArcPro, but couldnt get ListRasters to work with the listMaps class. So, I am on to a stand-alone python script. I keep getting an error when I run the code below. Clip_management wants four points to define the clipping rectangle but I specify a polygon geometry ('SHAPE@'). Im assuming that is the problem, but Im not sure how to fix it. arcpy.env.workspace = r'C:\GIS\Data\10000_VGF\VGF_Satellite_Imagery\VGF_Satellite_Imagery.gdb' out_loc = r'C:\GIS\Data\10000_VGF\VGF_Satellite_Imagery\VGF_Imagery_NDVI.gdb' raster = arcpy.ListRasters('Imagery_merged_2021')[0] farm = r'C:\GIS\Data\10000_VGF\VGF_Field_Boundaries\VGF_Field_Boundaries.gdb\VGF_Field_Boundaries' fields = ['SHAPE@', 'Field_Name2', 'Farm'] where_clause = "Farm = 'VGF'" i = 0 with arcpy.da.SearchCursor(farm, fields, where_clause) as cursor: for row in cursor: i = +1 arcpy.Clip_management(raster, row[1], out_loc + '\\' + row[2] + "_"+ str(i) + "_2021_clip", in_template_dataset = row[0], clipping_geometry = "ClippingGeometry") #clip based on layer, clipping geometry will use the polygon extent only
... View more
12-15-2021
04:24 PM
|
0
|
6
|
2142
|
POST
|
Thanks Kevin! I can't wait to check out the feature. I appreciate you including it in the update. Natalie
... View more
12-09-2021
09:50 AM
|
0
|
0
|
2073
|
POST
|
I also had this problem. My logo file name had caps, not the extension. By changing the file name to lowercase and removing spaces, it worked! Thanks everyone for the tips to get it fixed!
... View more
08-04-2021
01:30 PM
|
0
|
0
|
613
|
POST
|
I am running a python script to create map tile packages from a series of maps containing imagery within an ArcPro project. The code halts when it gets to "Map 3". There is no Map 3 in my ArcPro project. When I click on the drop down arrow to see the list of maps, it is not there. However, when I open the "Create Map Tile Package" geoprocessing tool it sees a Map 3. How do I get rid of relic maps? This has happened to me many times before. See the images below. Map list in geoprocessing task Map list You can see Map 3 listed in the There is no Map 3 in the list of maps. geoprocessing task above.
... View more
07-08-2021
09:37 AM
|
0
|
2
|
537
|
POST
|
I did try this and it didnt work. Thanks for the suggestion though.
... View more
05-06-2021
11:24 AM
|
0
|
1
|
1053
|
POST
|
I created a survey form in the desktop version of Survey123 Connect for the collection of insect information in an apple orchard. My client needs the insect count field left blank to indicate that they did not check a trap; a 0 in the field would mean they checked the trap and found no insects. If I set the field to required, a 0 is automatically populated in the field. How do I write a note using the 'relevant' field to ask them if they are sure the insect count field should be null? So far I have tried: ${Codling_Moth_Male}=NaN ${Codling_Moth_Male}==NaN ${Codling_Moth_Male}=null ${Codling_Moth_Male}=<NULL> The first one, ${Codling_Moth_Male}=NaN, lets the form run properly but does not provide a note when the field is left blank.
... View more
04-23-2021
10:13 AM
|
0
|
6
|
1204
|
POST
|
I would like to open a layer's attribute table in Map Viewer (not Classic), click on a line to highlight a feature, then click on something to zoom to that selected feature. The "Center on Selection" option is missing in the attribute table settings menu (compared to Map Viewer Classic), and double clicking on a line like we do in good ol ArcPro or Arc Map does nothing too. Help!
... View more
04-22-2021
11:34 AM
|
14
|
12
|
3052
|
Title | Kudos | Posted |
---|---|---|
4 | 02-24-2024 11:37 AM | |
1 | 10-12-2020 03:03 PM | |
1 | 03-30-2021 11:14 AM | |
14 | 04-22-2021 11:34 AM | |
1 | 03-30-2021 11:18 AM |
Online Status |
Offline
|
Date Last Visited |
Thursday
|