No video

Introduction to Visualizing Geospatial Data with Python GeoPandas

  Рет қаралды 35,635

GeoDelta Labs

GeoDelta Labs

Күн бұрын

In this tutorial, you will learn how to do basic plots of geospatial data using Geopandas and Matplotlib Python libraries.
Download the exercise files - drive.google.com/open?id=1C_Z...
Tutorial on how to install Python and Configure Pandas (and Spyder IDE) - • How to Install Pandas ...
How to install GeoPandas (quick and easy) - • How to Install Python ...
Matplotlib Colormaps - matplotlib.org/users/colormap...
⭐NOTE:
‘Kite’ is an excellent tool that can help you boost your productivity when it comes to programming with its free Artificial Intelligence (AI) powered coding assistant. Kite is a plugin which provides smart completions and documentation as you’re typing-in your code, and its compatible with most of the well-known IDEs such as PyCharm, Spyder and VS Code. I absolutely love it, and recommend you guys to try it out as well.
www.kite.com/get-kite/?...

Пікірлер: 44
@jubayerhossain8812
@jubayerhossain8812 3 жыл бұрын
Thank you so much! It's very helpful. I'm using Geopandas in our research group for understanding the disease distribution in different location.
@user-bk5ep5wy8r
@user-bk5ep5wy8r 4 жыл бұрын
Great video. Thank you so much.
@potpie2004
@potpie2004 4 жыл бұрын
thank you for this tutorial - I used this in conjunction with your 2 part series with nepal as the example. Once again was helpful. I'd recommend linking to your 2 part series in the description as I believe that was a better baseline for a beginner if they are struggling with t his exercise.
@augustarcher6407
@augustarcher6407 3 жыл бұрын
pro tip: you can watch movies at Flixzone. Been using it for watching a lot of movies these days.
@bakercain265
@bakercain265 3 жыл бұрын
@August Archer Yea, have been watching on Flixzone} for since december myself =)
@iraesteban8998
@iraesteban8998 3 жыл бұрын
@August Archer yea, I have been using Flixzone} for since november myself =)
@clifford_prince
@clifford_prince 4 жыл бұрын
Hi can you also make a video on machine learning with netCDF files? Thank you very much. Love your way of tutorials.
@evertoncastro5647
@evertoncastro5647 Жыл бұрын
Muito obrigado!!!
@wasifeelahi1341
@wasifeelahi1341 4 жыл бұрын
Thanks again... your videos are helping me a lot in my Ph.D. project. Could you please make a video on the quiver plot from the NetCDF file that contains u, v and time data?
@geodeltalabs
@geodeltalabs 4 жыл бұрын
Thanks for the suggestion. We will try incorporate your idea for our future tutorial videos
@DileepGuptagoodman
@DileepGuptagoodman 3 жыл бұрын
Hello sir your video is very informative. Please tell us how plot the legend with color and country name to represent the each with different color
@GIS-Engineer
@GIS-Engineer 2 жыл бұрын
How can landuse classify the satellite image
@Anurag-sq4yc
@Anurag-sq4yc 3 жыл бұрын
Sir can you make tutorials on Pytorch for geospatial data
@marcoherbas81
@marcoherbas81 3 жыл бұрын
Thank you for the great video! I have one question, how can I do to plot some specific countries, instead of removing Antarctica let's say I would like to show in color countries like US, France and Australia and the rest uncolored?
@mucahitugurlu7324
@mucahitugurlu7324 3 жыл бұрын
you could try something like this.. russia =world_data[world_data.NAME.str.contains('Russia')] ax = world_data.plot(figsize =(12,12),color ='darkgreen',edgecolor='black') russia.plot(color = 'blue', ax=ax) *Let's say that you'd like to highlight russia in the world map with a different color. All you need to do is ,first get the russia's data and plot it with the world map. Just try the code that I've written and you'll understand what I meant sir. You could also do this with different countries too with the same way.
@razzlejazzles
@razzlejazzles Жыл бұрын
# Create a new column for the desired countries world_data["color"] = 0 world_data.loc[world_data["NAME"].isin(["United States", "France", "Australia"]), "color"] = 1 # Plot the desired countries in a different color world_data.plot(column='color', cmap="Set1", legend=False, figsize=(7,7))
@harithameka8328
@harithameka8328 2 жыл бұрын
can you please make a video plotting streamlines please thank you uploading video on using geopandas
@princee9385
@princee9385 2 жыл бұрын
You are awesome. But I want to know what exactly is to be considered before choosing your shp file since there are many on the zipfile. Thanks
@razzlejazzles
@razzlejazzles Жыл бұрын
ArcGIS shapefile files are composed of mandatory files (SHP, SHX and DBF) and optional files (PRJ, XML, SBN and SBX). You want to just select the shp file for this tutorial when coding.
@arnavaghatak1125
@arnavaghatak1125 4 жыл бұрын
i am not able to get the map and other data on console it is only visible on plots. if i want to see the columns the following error is shown please help me shape_file.columns() Traceback (most recent call last): File "", line 1, in shape_file.columns() please help me
@Agronomistapolo
@Agronomistapolo 3 жыл бұрын
When I try to calculate the area of USA (Multipolygon) I obtained an wronong area. I changed the src.
@geodeltalabs
@geodeltalabs 3 жыл бұрын
Yes, you better use a projected CRS for geometrical computations like distances and areas.
@akolamkar333
@akolamkar333 3 жыл бұрын
Hi. can you tell me how to generate vector tiles with the help of shape files in python.
@razzlejazzles
@razzlejazzles Жыл бұрын
import subprocess # Set the path to the input shapefile input_shapefile = "path/to/input.shp" # Set the path to the output directory for the vector tiles output_directory = "path/to/output/directory" # Set the zoom levels to generate tiles for zoom_levels = "0-12" # Set the name of the layer to use in the vector tiles layer_name = "my_layer" # Call the tippecanoe command to generate the vector tiles tippecanoe_command = f"tippecanoe -o {output_directory}/{layer_name}.mbtiles -z {zoom_levels} -l {layer_name} {input_shapefile}" subprocess.call(tippecanoe_command, shell=True)
@ayeshareezwana8542
@ayeshareezwana8542 4 жыл бұрын
Hi. Thank you. I have a question. Is there any way I can extract the latitude and longitude from the geometry and add them as separate columns in the geopandas dataframe??
@geodeltalabs
@geodeltalabs 4 жыл бұрын
Hi, yes absolutely. You may check this video, it shows how that can be done kzbin.info/www/bejne/l6GooI2Lp5yWZ7c
@ayeshareezwana8542
@ayeshareezwana8542 4 жыл бұрын
@@geodeltalabs Hello ,Thank you very much. My geometry data is in multipolygon and if I try to extract the long/lat following this, it shows me an error "MultiPolygon' object has no attribute y" . I am new to geopandas. Can you please give me an idea how to extract long/lat from the multipolygon?
@geodeltalabs
@geodeltalabs 4 жыл бұрын
Hi, it's expected if that's a polygon. I was under the impression that you were referring to point objects. A polygon is actually made up of many points (vertices), so I'm not sure what exactly you mean by extracting lat and lon of a polygon? Are you referring to maybe the centeroids' coordinates of each polygon?
@ayeshareezwana8542
@ayeshareezwana8542 4 жыл бұрын
@@geodeltalabsHi, I did a (.centroid) operation over the multipolygon which results in a point object and returns me for an example point(103.70469 ,1.34714). I think this is my lat and long. Correct me please if I am misleading myself. Thank you very much. I love your channel :-)
@crtnnn
@crtnnn Жыл бұрын
When I open the attribute table (geodataframe) and scroll over to geometry, my spyder starts to lag extremely (works extremely slow). what might be the issue?
@geodeltalabs
@geodeltalabs Жыл бұрын
Are you working with an abnormally large dataset?
@travelissimple7015
@travelissimple7015 4 жыл бұрын
Thank you for your tutorial. But when I use get area for each country, I get this erro. "C:\Users\user\Anaconda3\lib\site-packages\ipykernel_launcher.py:1: UserWarning: Geometry is in a geographic CRS. Results from 'area' are likely incorrect. Use 'GeoSeries.to_crs()' to re-project geometries to a projected CRS before this operation. """Entry point for launching an IPython kernel." Could you explain me why and how can I resolve this? Thank u a lot
@razzlejazzles
@razzlejazzles Жыл бұрын
It doesn't affect anything, it is just letting you know that since the area is calculated by degrees is wont be as accurate as it would be if it was calculated by sq km for example.
@iceiceisaac
@iceiceisaac 2 жыл бұрын
world_data = world_data.to_crs(epsg=3857) is not the format
@mohammedumar4359
@mohammedumar4359 3 жыл бұрын
wrld = gpd.read_file(r "C:\Programs\Python\Python38-32\geo\world.shp") This is giving me syntax error...can someone help
@ericbibard9288
@ericbibard9288 3 жыл бұрын
Try using single quotes
@axelblaze9904
@axelblaze9904 4 жыл бұрын
I am unable to download the exercise file, its showing corrupted!!!
@geodeltalabs
@geodeltalabs 4 жыл бұрын
Hi Axel, the link has been updated. Thanks for notifying :)
@aliinel2508
@aliinel2508 2 жыл бұрын
I can not install "Geopandas". please help me
@geodeltalabs
@geodeltalabs 2 жыл бұрын
Hi, please refer to the 'Beginner's guide to geopandas tutorial" which I have done quite some time ago. in the first few minutes of the tutorial, you will learn how to install geopandas :)
@razzlejazzles
@razzlejazzles Жыл бұрын
I had a lot of trouble downloading geopandas with anaconda. What ended up working for me was putting "pip install geopandas" in my anaconda prompt
@rubayetalam8759
@rubayetalam8759 Жыл бұрын
please work in a white theme, and please zoom.
How to Convert Coordinates from CSV to ESRI Shapefile
14:03
GeoDelta Labs
Рет қаралды 15 М.
Extracting Topographic Elevations using Python
16:49
GeoDelta Labs
Рет қаралды 11 М.
Smart Sigma Kid #funny #sigma #memes
00:26
CRAZY GREAPA
Рет қаралды 6 МЛН
КАК ДУМАЕТЕ КТО ВЫЙГРАЕТ😂
00:29
МЯТНАЯ ФАНТА
Рет қаралды 11 МЛН
A little girl was shy at her first ballet lesson #shorts
00:35
Fabiosa Animated
Рет қаралды 17 МЛН
GeoPandas tutorial for beginners
56:23
Data Analytics.m
Рет қаралды 15 М.
Matplotlib Full Python Course - Data Science Fundamentals
1:02:41
NeuralNine
Рет қаралды 127 М.
An Absolute Beginner's Guide to Python GeoPandas
48:42
GeoDelta Labs
Рет қаралды 98 М.
Intro to GeoPandas
21:01
Geospatial Programming
Рет қаралды 17 М.
JPEG is Dying - And that's a bad thing
8:09
2kliksphilip
Рет қаралды 57 М.
plotting maps with geopandas and matplotlib
15:09
101touchapps
Рет қаралды 53 М.