I was trying to get to the coordinates of certain shapes in the hierarchy.
I generally do this by transforming shapes, for every level of hierarchy as I come back up to top. It works.
An alternate approach, I have been using is to flatten the GDS by writing a on-the-fly flatten rule deck for DRC tool, specifying layers of interest. Then process the flattened data back with scripts.
Here I was hoping to be able to write flattened data in text format and then process with perl or something to fit my requirement.
Suggestions are welcome.