About Reading .shp Files

Feel free to ask any question here
Post Reply
suyufeng
Posts: 47
Joined: Wed May 26, 2021 7:04 am

About Reading .shp Files

Post by suyufeng »

Can cc not load 3D shp files?

An error occurs when I load it.
[15:54:13] [SHP] Shape -127539384 has an invalid shape code (951281200)
[15:54:13] An error occurred while loading 'traffic_sign_merge': reading error (no access right?)
suyufeng
Posts: 47
Joined: Wed May 26, 2021 7:04 am

Re: About Reading .shp Files

Post by suyufeng »

I was wrong. I know that cc can load it, but when I use geopandas to convert geojson to an shp file, the generated shp file will be loaded into cc, the error is reported, which is my above error.
daniel
Site Admin
Posts: 7721
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: About Reading .shp Files

Post by daniel »

Have you tried to load the output SHP file to another software? (like QGis, etc.)
Daniel, CloudCompare admin
GrandSam
Posts: 1
Joined: Tue Aug 08, 2023 12:44 pm

Re: About Reading .shp Files

Post by GrandSam »

Hello
I've got the exact same problem.
I generate a shp file for a GeoDataFrame with GeoPandas in Python, I can open it in QGis but not in CloudCompare.
More precisely, it works when my GeoDataFrame contains only one line, but when it contains more this error occurs :

An error occurred while loading 'bordures': reading error (no access right?)

with this display

[15:20:07] [SHP] Record #1 - type: 3D polyline (38320 bytes)
[15:20:07] [SHP] Shape 411478491 has an invalid shape code (-1108095171)
[15:20:07] An error occurred while loading 'bordures': reading error (no access right?)

Others shp files with multiple polylines, from other sources, open correctly...
Does the the conversion from GeoDataFrame to shp file require a specific treatment ?
daniel
Site Admin
Posts: 7721
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: About Reading .shp Files

Post by daniel »

Can you share the SHP files with us? (to admin@cloudcompare.org)
Daniel, CloudCompare admin
Post Reply