[LandXML] Re: Point ID in Faces

  • From: Daniel Lidström <daniel.lidstrom@xxxxxx>
  • To: landxml@xxxxxxxxxxxxx
  • Date: Wed, 18 Feb 2009 13:57:50 +0100

Hi,
 
I have never seen a LandXML file like that. I would ask the producer of that
file to change their way of writing it. In the meantime, you can detect such
files by searching for <F> elements that refer to point id 0.



--
Daniel Lidström
SBG AB 


  _____  

From: JohannJ.Stampler@xxxxxxxxxxx [mailto:JohannJ.Stampler@xxxxxxxxxxx] 
Sent: Wednesday, February 18, 2009 11:44 AM
To: landxml@xxxxxxxxxxxxx
Subject: [LandXML] Point ID in Faces



Hello,

 

My team just found a problem, that in some LandXML files point indices in
the <F> element are 0-based and in some they are 1-based. What is correct?
The specification says that the indices in the <F> element refer to the ID
of a <P> element. This ID is specified to be a positive integer. So in my
opinion, it is wrong to start indices with zero. Is it possible that the
values sometimes refer to the <P>-element's ID and sometimes to its position
(0-based index) within the parent <Pnts> element? If yes, how can we
recognize that?

 

In the attached example, there are 778 surface points with ID starting by 1,
but the indices in the <F> elements start by 0. 

 

I tested the file with the online SVG converter and it failed. Anyway, I am
not sure and it is not clearly pointed out in the specification.

 

Best regards,

Johann Stampler jr.

Software Developer

Bentley Systems Austria GmbH

BentleyLOGO_4C_complete_247x60

P     Please don't print this email unless you really need to.

 

Attachment: image003.jpg
Description: JPEG image

Other related posts: