Comments (4)
generate old file path is ./linestring/北京市-202403010505.dgb
and it is generate sucess with
and append the same path failed;
from geopandas.
I'm not very familiar with the GDB file format, and I also want to ask why the directory I generated is a directory that contains sub files. shouldn't it have only one main file?
from geopandas.
ESRI File GDB is structured as a directory containing a lot of files. That is entirely expected here.
I'm not sure about why Fiona is failing here (probably an error to report there instead), as you are passing the same dataset each time, but this should be possible using engine='pyogrio'
if you have that installed; it worked for me with the latest version of pyogrio / GDAL 3.8.3.
from geopandas.
ESRI File GDB is structured as a directory containing a lot of files. That is entirely expected here.
I'm not sure about why Fiona is failing here (probably an error to report there instead), as you are passing the same dataset each time, but this should be possible using
engine='pyogrio'
if you have that installed; it worked for me with the latest version of pyogrio / GDAL 3.8.3.
Although the geometry in my geopandas df is a linestring and polygon, when it is written to gdb and read out again, it shows that the geometry is a multilining and multipolygon, which causes the prompt format to not match and results in failure. Therefore, my current solution is to convert the linestring and polygon of the geometry in my df to multi (xx)
with the code:
gpd_convex_Hull_df = gpd.GeoDataFrame(pd_polygon_df, geometry="geometry", crs="EPSG:4326")
gpd_convex_Hull_df['geometry'] = gpd_convex_Hull_df['geometry'].apply(
lambda x: MultiPolygon([x]) if isinstance(x, Polygon) else x)
gpd_linestring_df = gpd.GeoDataFrame(pd_linestring_df, geometry="geometry", crs="EPSG:4326")
gpd_linestring_df['geometry'] = gpd_linestring_df['geometry'].apply(
lambda x: MultiLineString([x]) if isinstance(x, LineString) else x)
from geopandas.
Related Issues (20)
- numpy dependency missing & numpy 2.0 support status? HOT 3
- ENH: inplace=True for .dissolve and .explode? HOT 4
- BUG: `pyogrio` doesn't like io.BytesIO? HOT 10
- BUG: Issue with webpage code interp HOT 1
- ENH: sjoin() should allow to return the distance when using the dwithin predicate, just like sjoin_nearest() HOT 3
- BUG: set_precision() doesn't work HOT 1
- ENH: CRS from GeoDataFrame not passed on to individual geometry objects HOT 3
- BUG: Unable to open files with fiona where filepath contains a # character HOT 3
- BUG: GeoJSON file from URL not recognized as a supported file format HOT 17
- MAINT: Update the conda forge feedstocks for 1.0 HOT 2
- ENH: Speedup to overlay/identity HOT 4
- ENH: Modin as a backend for geopandas
- BUG: explore() with all-empty geometries
- BUG: install HOT 1
- TST: increase testing coverage of read_parquet for alternate covering bounding box field names
- ENH: GeoSeries.from_json() to parse GeoJSON strings in array-like structure, analogous to GeoSeries.from_wkt() HOT 4
- BUG: S3 with request payer enabled does not work HOT 1
- API: (not?) preserving name of passed data to `GeoDataFrame(..., geometry=data)` HOT 4
- BUG: ``to_parquet`` does not seem to preserve ``attrs``
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from geopandas.