Thanks, great tutorials for a guy new to arcgis. Also want to say, scripting is a must for people looking to automate layer creations off a daily/weekly upload of points.
I've been trying to learn ArcGIS & Python: my man you are KILLING IT! Great job so far on these tutorials, the are extremely helpful on helping me get started.
If you press ctrl+Q whilst hovering over your module function in pycharm (e.g. something like "arcpy.SelectLayerByLocation_management()") then it should display the documentation in pycharm itself. Saves a bit of extra clicking. Thanks for the tutorial.
It is really hard to see which such a small font size and with the black background. The course is good, but it's hard to keep going with so much effort to actually see it.
yea I know, I try to use bigger font in my newer videos. The code for this series is on GitHub. Might help to have that github.com/franchyze923/Code_From_Tutorials/tree/master/Arcgis%20Scripting%20with%20Python%20Arcpy
This does not work for me. It generates an output file but it is empty. I am using ArcGIS Pro and Python 3. Any input on how to update the script for the new version?
¡Great tutorial even in 2023! One question: does arcpy run the same functions regardless of the ArcGIS version? If I'm still using Arcmap, is arcpy independent from the ArcGIS version you have?
I'm actually not sure.. I think there are probably minor updates to arcpy between arcgis versions but in my experience arcpy behaves the same between different versions. If there is a difference it's probably minor and documented
i am getting the following error at the time of SelectLayerByLocation ERROR 000561: Relationship invalid for selected layers have used the exact same thing
hmm that's odd, have you tried copying the code from GitHub? - github.com/franchyze923/Code_From_Tutorials/tree/master/Arcgis%20Scripting%20with%20Python%20Arcpy Are you using the same data?
Thank you for the video! It is very helpful. I ran into one issue when querying the name of US from the countries shpfile. I had to use "United States of America" for the script to work instead of just US. I figured I would let others know in case they ran into the same issue.
Sir! Would you give me a favor When I give where clause('NAME' = 'Pakistan') in make feature layer It give me an error "Keyword can't be an expression" and shows = as error kindly help me and provide the solution of this problem I'll be very thankful
Are you putting it in quotes correctly? It should look like """ "NAME" = 'Pakistan' """ I know it is very sensitive to the quotes so just make sure it follows the format in the video.
Hey, here you go. desktop.arcgis.com/en/arcmap/latest/tools/data-management-toolbox/make-feature-layer.htm This is the latest documentation. In the video I was using a slight older version. For the most part syntax should be the same.
@@julieromig448 I went back and recoded this and uploaded it to GitHub. The reason you had to use that query is because 'United States' is no longer a name value in that shapefile, they changed it to 'United States of America' github.com/franchyze923/Code_From_Tutorials/tree/master/Arcgis%20Scripting%20with%20Python%20Arcpy
You sure can! That's a good topic for a video. I'll try to make one soon. I just realized all my videos only deal with shapefiles, not geodatabases. Here's a bit of code to help you get started. import arcpy ws = arcpy.env.workspace = r'F:\Files\GIS\OSM_data\Philadelphia_Metro_Area_OSM.gdb' fc_list = arcpy.ListFeatureClasses() for x in fc_list: print x This will just print all of the features in a geodatabase. You can also print all fields in a feature class with arcpy.ListFields().
Create arc tool using python and not only select by Location. May other geo processing tools. Also discus OOPs concept, Multithreading. Discuss detail ArcPy Cursors- how it works. Thanks for your reply
@@Franchyze923 no, i use it in python idle.... but when i wrote the code on arcmap its works! tell me please if there’s a way i can fix this problem. Thank you for answering:)
@@nourabawazir6183 in Idle can you run this and let me know what is says. import sys print(sys.executable) I think you might be using a different version of Python.
Yea sounds like you’re not using the right version of Python. You might have multiple versions installed on your computer. In arcmap type the same thing in the Python window and that is the version of Python you need to use
Thanks, great tutorials for a guy new to arcgis. Also want to say, scripting is a must for people looking to automate layer creations off a daily/weekly upload of points.
I've been trying to learn ArcGIS & Python: my man you are KILLING IT! Great job so far on these tutorials, the are extremely helpful on helping me get started.
Awesome! Glad they are helping you out.
If you press ctrl+Q whilst hovering over your module function in pycharm (e.g. something like "arcpy.SelectLayerByLocation_management()") then it should display the documentation in pycharm itself. Saves a bit of extra clicking.
Thanks for the tutorial.
I did not know that! Thank you
Great job man! Been out of python for a while, this is exactly what I needed as a refresher. Very easy to follow.
You're welcome! Glad to hear
it is working on shapefile and gdb but not on mdb...i can't do this with personal geodatabase....what should i do now????
Hmm, I've never tried with a personal geodatabase. Can you just use a file geodatabase instead? I know personal geodatabases have limitations.
It is really hard to see which such a small font size and with the black background. The course is good, but it's hard to keep going with so much effort to actually see it.
yea I know, I try to use bigger font in my newer videos. The code for this series is on GitHub. Might help to have that
github.com/franchyze923/Code_From_Tutorials/tree/master/Arcgis%20Scripting%20with%20Python%20Arcpy
@@Franchyze923 that's really nice of you, thanks a lot! It really helps and save lots of time having the code :) cheers!
When I try this code it works using PyCharm or another interpreter like Pythonwin, but it doesn't work using IDLE Python 2.7. Do you know why?
This does not work for me. It generates an output file but it is empty. I am using ArcGIS Pro and Python 3. Any input on how to update the script for the new version?
I've got an empty output too, as i guess i had a name error. check this """ "NAME" = 'United States of America'""" not "United States"
@@Giobaski thanks dear.... you saved my time
¡Great tutorial even in 2023! One question: does arcpy run the same functions regardless of the ArcGIS version? If I'm still using Arcmap, is arcpy independent from the ArcGIS version you have?
I'm actually not sure.. I think there are probably minor updates to arcpy between arcgis versions but in my experience arcpy behaves the same between different versions. If there is a difference it's probably minor and documented
Thanks a lot. Very good tutorial to learn python for ArcMap.
You’re welcome! Thanks for watching
i am getting the following error at the time of SelectLayerByLocation
ERROR 000561: Relationship invalid for selected layers
have used the exact same thing
hmm that's odd, have you tried copying the code from GitHub? - github.com/franchyze923/Code_From_Tutorials/tree/master/Arcgis%20Scripting%20with%20Python%20Arcpy
Are you using the same data?
THANK YOU SO MUCH!! Worked like a charm :)
Great! Glad to hear the video was helpful!
Thank you for the video! It is very helpful. I ran into one issue when querying the name of US from the countries shpfile. I had to use "United States of America" for the script to work instead of just US. I figured I would let others know in case they ran into the same issue.
Thanks for pointing this out! I'm going back and rewriting the code so I can put it on GitHub and yes it seems like the shapefile changed slightly.
Extremely helpful! Thanks for posting!
You're welcome! Thanks for watching
Great tutorial! But I think it would be better if you provide a github link so that we could get access to the codes easily.
Anyway, nice job!
Sir! Would you give me a favor
When I give where clause('NAME' = 'Pakistan') in make feature layer
It give me an error "Keyword can't be an expression" and shows = as error
kindly help me and provide the solution of this problem
I'll be very thankful
Are you putting it in quotes correctly? It should look like """ "NAME" = 'Pakistan' """
I know it is very sensitive to the quotes so just make sure it follows the format in the video.
@@Franchyze923 thank you sir
My problem has been solved
@@afzalriz-v8361 Awesome!
@@Franchyze923 thank you for solving my problem sir 😍
Hi dear sir Do not clear this video ... all videos is low quality please provide High quality
This is very helpful video. Thanks a lot
You're welcome!
It is not taking the where clause....In output it is taking all of the cities instead of cities in America. So can you share the syntax?
Can you share what you tried?
@@Franchyze923 sorry I got i correct, there was syntax error by me in the where clause.
Great! Glad to hear. Thanks for watching
@@Franchyze923 Can u share your mail? I have some doubts so then I can share screenshots with you
you are amazing, keep it up i really like your videos
Thanks for watching!
Can you please share the link for the syntax from where you were copying it
Hey, here you go. desktop.arcgis.com/en/arcmap/latest/tools/data-management-toolbox/make-feature-layer.htm
This is the latest documentation. In the video I was using a slight older version. For the most part syntax should be the same.
@@Franchyze923 "for the most part" - I spent two days changing quotes etc and finally got it to work with """ NAME LIKE 'United States%' """ :(
@@julieromig448 yikes - glad you got it figured out. SQL Syntax can be annoying
@@julieromig448 I went back and recoded this and uploaded it to GitHub. The reason you had to use that query is because 'United States' is no longer a name value in that shapefile, they changed it to 'United States of America'
github.com/franchyze923/Code_From_Tutorials/tree/master/Arcgis%20Scripting%20with%20Python%20Arcpy
Can you call features in geodatabases using arcpy as well?
You sure can! That's a good topic for a video. I'll try to make one soon. I just realized all my videos only deal with shapefiles, not geodatabases.
Here's a bit of code to help you get started.
import arcpy
ws = arcpy.env.workspace = r'F:\Files\GIS\OSM_data\Philadelphia_Metro_Area_OSM.gdb'
fc_list = arcpy.ListFeatureClasses()
for x in fc_list:
print x
This will just print all of the features in a geodatabase. You can also print all fields in a feature class with
arcpy.ListFields().
where can i find this shapefile ?
www.naturalearthdata.com
It will be appreciative, if you prepare more related video.
Do you have any specific topics you'd like to see videos on ?
Create arc tool using python and not only select by Location. May other geo processing tools. Also discus OOPs concept, Multithreading. Discuss detail ArcPy Cursors- how it works.
Thanks for your reply
I just made some new videos on Arcpy with ArcGIS Pro! Check them out
ruclips.net/p/PLO6KswO64zVt8YCuKIOdCsJvlUivXETGu
@@Franchyze923 Thanks. You are so helpfull
i got a message "no module named arcpy" what i can do ?
Are you using the version of python that comes with arcmap?
@@Franchyze923 no, i use it in python idle.... but when i wrote the code on arcmap its works!
tell me please if there’s a way i can fix this problem.
Thank you for answering:)
@@nourabawazir6183 in Idle can you run this and let me know what is says.
import sys
print(sys.executable)
I think you might be using a different version of Python.
@@Franchyze923 c:\users\msi user\appdata\local\programs\python\python39\pythonw.exe
That’s what happened
I use python 3.9
Yea sounds like you’re not using the right version of Python. You might have multiple versions installed on your computer.
In arcmap type the same thing in the Python window and that is the version of Python you need to use
Thanks! This was quite helpful!
找arcgis搭子,一起学习提高呀
THANK YOU SO MUCH!!!!!
You’re welcome!
Thank you for this!
You're welcome! Thanks for watching
font too small cannot read
good video thank u so much bro
You're welcome, glad it helped you out
thank you so much!!!!
You're welcome! Glad it helped
Thank you
You're welcome! Any other videos you'd like to see?
Nice !
Thanks!