Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

geopandas set crs

my_geoseries = my_geoseries.set_crs("EPSG:4326")
my_geoseries = my_geoseries.set_crs(epsg=4326)
Comment

geopandas set CRS

# To set a CRS
gdf = gdf.set_crs('EPSG:4326')
# To transform and reprojet geometry into another CRS
gdf = gdf.to_crs('epsg:3857')
>>> gdf.crs  
<Projected CRS: EPSG:3857>
Name: WGS 84 / Pseudo-Mercator
Axis Info [cartesian]:
- X[east]: Easting (metre)
- Y[north]: Northing (metre)
Area of Use:
- name: World - 85°S to 85°N
- bounds: (-180.0, -85.06, 180.0, 85.06)
Coordinate Operation:
- name: Popular Visualisation Pseudo-Mercator
- method: Popular Visualisation Pseudo Mercator
Datum: World Geodetic System 1984
- Ellipsoid: WGS 84
- Prime Meridian: Greenwich
Comment

PREVIOUS NEXT
Code Example
Python :: model load pytorch 
Python :: pandas series remove punctuation 
Python :: pandas group by month 
Python :: combination python 
Python :: select closest number in array python 
Python :: how to get the current position of mouse on screen using python 
Python :: how to override save method in django 
Python :: pandas set a column as index 
Python :: isprime function in python 
Python :: print type of exception python 
Python :: portscan with python 
Python :: urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1123) 
Python :: infinity in python 
Python :: pygame quit 
Python :: write dataframe to csv python 
Python :: prettytable python 
Python :: flask if statement 
Python :: py get mouse coordinates 
Python :: pandas dataframe from dict 
Python :: only keep few key value from dict 
Python :: python dictionary remove nonetype 
Python :: python print float with 2 decimals 
Python :: convert numpy array to dataframe 
Python :: make dataframe from list of tuples 
Python :: how to refresh windows 10 with python 
Python :: order pandas dataframe by column values 
Python :: python random.choices vs random.sample 
Python :: get sheet names using pandas 
Python :: spark dataframe get unique values 
Python :: How do you sum consecutive numbers in Python? 
ADD CONTENT
Topic
Content
Source link
Name
6+8 =