Skip to main content
Question

How can I get parent_id in xml for creating database tables ? (I used FeatureReader,XMLFragmenter and etc. but I cannot get xml_parent_id)

  • Nov 15, 2021 12:50 PM UTC
  • 5 replies
  • 93 views

5 replies

Forum|alt.badge.img
  • Author
  • Nov 15, 2021 2:18 PM UTC

Parent_id is not exported and its missing. Parent id is imported for building table hierarchy.


caracadrian
Contributor
Forum|alt.badge.img+23
  • Contributor
  • Nov 16, 2021 6:00 AM UTC

Is parent_id part of your geometry definition?

If it is you could use GeometryPropertyExtractor to extract the trait to an attribute.

If it's not, AttributeExposer should do the trick.

Either way, some sample date would be very helpful.


Forum|alt.badge.img
  • Author
  • Nov 16, 2021 7:46 AM UTC

Hi @caracadrian​  thanks for answer.

I use GeometryPropertyExtractor  but it does not work. Parent_id is empty again.

 

 


caracadrian
Contributor
Forum|alt.badge.img+23
  • Contributor
  • Nov 16, 2021 7:57 AM UTC

Hi @caracadrian​  thanks for answer.

I use GeometryPropertyExtractor  but it does not work. Parent_id is empty again.

 

 

If you can, please provide some sample data.

Or at least a screen shot of the Feature Information pane from FME Data inspector so we can see the xml structure.


Forum|alt.badge.img
  • Author
  • Nov 16, 2021 8:19 AM UTC

 

emptycoordinateThis is coordinate in xml have . Additionally, it has shapes and areas list data (like polygon) so I will create database tables relation (join on )from using that parent child hieararcy.