POST
|
desc = arcpy.Describe(inFC).extent print(desc.XMin, desc.XMax)
... View more
06-12-2020
06:50 AM
|
0
|
1
|
467
|
POST
|
I am trying to make a script tool that shows the extent of a raster. The tool runs in ArcPro without an error, but doesn't produce results of the extent of the raster. Is there any line of code I am missing to show the extent of my input raster? thank you import arcpy ws = r"C:\Users\tophe\Documents\ArcGIS\Projects\Programming\rasters" arcpy.env.workspace = ws inFC = arcpy.GetParameterAsText(0) desc = arcpy.Describe(inFC).extent print(desc) if __name__=="__main__": workspace = r"C:\Users\tophe\Documents\ArcGIS\Projects\Programming\rasters"
... View more
06-11-2020
09:50 PM
|
0
|
3
|
513
|
POST
|
Yeah I'm trying to see if it exists in the gdb, if it does im deleting it, if what I input doesn't exist i'm creating it.
... View more
06-11-2020
05:04 PM
|
0
|
1
|
985
|
POST
|
06-11-2020
04:25 PM
|
0
|
3
|
985
|
POST
|
I changed it from inFC==inFC to ws == inFC, but it gives me back an error when I run the tool. i also put the input feature class name without the .shp. Thank you for your help
... View more
06-11-2020
04:24 PM
|
0
|
4
|
985
|
POST
|
Hi everyone. I am creating am making a script with arcpro and need some help. The tool will delete a shapefile in my gdb if it matches the name of my input, but if it doesn't find a shapefile in the gdb it will create a shapefile with that name. the tool will online get to the point of using the delete tool, but doesnt show that it is using the create feature class tool. any help would be appreciated. import arcpy def CheckFcExists(ws,inFC, outFC): arcpy.env.workspace = ws if inFC == inFC: arcpy.Delete_management(inFC) arcpy.AddMessage(f"deleting...") else: arcpy.CreateFeatureclass_management(inFC,outFC) arcpy.AddMessage(f"creating...") workspace = arcpy.GetParameterAsText(0) inFeatureClass = arcpy.GetParameterAsText(1) outFeatureClass = arcpy.GetParameterAsText(2) if __name__ == "__main__": workspace = r"C:\Users\tophe\Documents\ArcGIS\Projects\Lab3_Programming\Lab3.gdb" CheckFcExists(workspace, inFeatureClass, outFeatureClass)
... View more
06-11-2020
03:06 PM
|
0
|
6
|
1056
|
POST
|
Hey all! I'm finally putting on the finishing touches on my map and have come across a weird situation where I try and use graduated symbols on my field (data type is long), but once I put all the information in the tool it shows me that there aren't any values. I created a new field and changed the data type to double and it didn't work. also restarted everything including my computer with no hope. There are a lot of null values right now as I am waiting for my contact to update the field. Also, I used the union tool right before trying to use the graduated symbols. I doubt that would have an impact. I also tried to change the classes but as I thought it reverted back to 1. attached below is a photo
... View more
05-23-2020
04:26 PM
|
0
|
1
|
483
|
POST
|
I was looking all over for an answer to why I kept getting an Error saying "cannot acquire a lock" and found a couple of solutions but none of it worked. I just found a weird solution that is actually really simple! So if you're that random person still trying to figure something out this may work! I wrote up my calculation, then clicked into one of the cells as if I were going to write something into it, then clicked out of the cell completely, then ran my function and it ran through. I'm not sure why this is what I have to do in order for my field calculator to work, but hope this helps someone!
... View more
05-16-2020
10:39 PM
|
3
|
1
|
5447
|
Title | Kudos | Posted |
---|---|---|
3 | 05-16-2020 10:39 PM |