87 add points from xy
Uncomment the following line to install geemap if needed.
In [ ]:
Copied!
# !pip install geemap
# !pip install geemap
In [ ]:
Copied!
import geemap
import pandas as pd
import geemap
import pandas as pd
In [ ]:
Copied!
# geemap.update_package()
# geemap.update_package()
Using a CSV file containing xy coordinates
In [ ]:
Copied!
m = geemap.Map()
data = "https://raw.githubusercontent.com/giswqs/leafmap/master/examples/data/us_cities.csv"
m.add_points_from_xy(data, x="longitude", y="latitude")
m
m = geemap.Map()
data = "https://raw.githubusercontent.com/giswqs/leafmap/master/examples/data/us_cities.csv"
m.add_points_from_xy(data, x="longitude", y="latitude")
m
Using a Pandas DataFrame containing xy coordinates.
In [ ]:
Copied!
m = geemap.Map()
data = "https://raw.githubusercontent.com/giswqs/leafmap/master/examples/data/us_cities.csv"
df = pd.read_csv(data)
m.add_points_from_xy(df, x="longitude", y="latitude")
m
m = geemap.Map()
data = "https://raw.githubusercontent.com/giswqs/leafmap/master/examples/data/us_cities.csv"
df = pd.read_csv(data)
m.add_points_from_xy(df, x="longitude", y="latitude")
m