Importing 3D shapefile

If you are allergic to bug trackers, you can post here any remarks, issues and potential bugs you encounter
Post Reply
andre.carrilho
Posts: 2
Joined: Sun Nov 24, 2019 11:51 pm

Importing 3D shapefile

Post by andre.carrilho »

Hello,

I have a 3D shapefile (POLYGONZ) which is not opening correctly in CloudCompare:

Code: Select all

[SHP] Shape -640747693 has an invalid shape code (-98784248)
((Tested on 2.10.2 and 2.11 alpha ))

However, it goes all right when I export the shapefile as 2D (POLYGON).
It is strange because I used to open the same file before in CloudCompare, but I got my PC formatted recently and don't remember what version I used before.

Thank you in advance,
André
daniel
Site Admin
Posts: 7396
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Importing 3D shapefile

Post by daniel »

Can you send it to me? (admin [at] cloudcompare.org).
Daniel, CloudCompare admin
daniel
Site Admin
Posts: 7396
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Importing 3D shapefile

Post by daniel »

So the file is corrupted, just waiting to know how it was generated ;)
Daniel, CloudCompare admin
andre.carrilho
Posts: 2
Joined: Sun Nov 24, 2019 11:51 pm

Re: Importing 3D shapefile

Post by andre.carrilho »

Hi Daniel

Thank you very much for your reply.

The file was indeed corrupted. It was created with a script written in C++. However, it had a problem as pointed out by yourself.

I was using the wrong function from Shapelib: "SHPCreateSimpleObject()" instead of "SHPCreateObject()".

I`m sorry for posting as a bug of CloudCompare.
Post Reply