Page 1 of 1

Importing 3D shapefile

Posted: Mon Nov 25, 2019 12:16 am
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é

Re: Importing 3D shapefile

Posted: Mon Nov 25, 2019 9:01 pm
by daniel
Can you send it to me? (admin [at] cloudcompare.org).

Re: Importing 3D shapefile

Posted: Wed Nov 27, 2019 9:12 pm
by daniel
So the file is corrupted, just waiting to know how it was generated ;)

Re: Importing 3D shapefile

Posted: Mon Dec 02, 2019 7:26 am
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.