I am trying to save a geodataframe prepared in GeoPandas into ArcGIS via GeoPackage file.
The source data have coordinates in WGS-84 3D, e.g. EPSG:4979.
geometry = gpd.points_from_xy(dfs['Longitude'], dfs['Latitude'], dfs['Altitude'], 'EPSG:4979')
gdf = gpd.GeoDataFrame(dfs, geometry=geometry)
gdf.to_file("overview.gpkg", layer='assays', driver="GPKG")
ArcGIS Pro sees the file, but raises "Unknown CRS" error.
At the same time, ArcGIS does know that CRS (I can use Define projection tool to assign it).
Any idea how to make it work?
An optional parameter on that method is crs, which defaults to None.
Try specifying crs='EPSG:4326' and see if it changes.
Dear Josh,
Thanks for reply. Yes, that partly works - it's OK for Maps, for Scene it results in a complaint about missing vertical CRS.
Vaclav