Skip to main content
Question

Selection with Python in gdb Reader

  • November 23, 2023
  • 4 replies
  • 42 views

marta.podsiad
Supporter
Forum|alt.badge.img+9

Hi,

 

I am struggling to put a simple Python script in gdb Reader/Scripted Parameter Value that will allow me to read only polyline. Could someone please push me in the right direction?

image

4 replies

david_r
Celebrity
  • November 23, 2023

You can't assign anything to parameter values with Python, you can only read them. This is because the Python code is evaluated at run-time, when the parameter values are frozen.


marta.podsiad
Supporter
Forum|alt.badge.img+9
  • Author
  • Supporter
  • November 23, 2023

In this case how I can read only relationship types from gdb without reading all data?


j.botterill
Influencer
Forum|alt.badge.img+55
  • Influencer
  • November 24, 2023

Hi Marta, I think you may need to change the Geodatabase Reader feature type to read a specific geometry type and/or expose "Format Attributes" . Refer to this article Introduction to Working with Geodatabase Relationship Classes (safe.com) #ReadingRelationshipClasses, appears to be some attachment workspace examples there


marta.podsiad
Supporter
Forum|alt.badge.img+9
  • Author
  • Supporter
  • November 24, 2023

Hi Marta, I think you may need to change the Geodatabase Reader feature type to read a specific geometry type and/or expose "Format Attributes" . Refer to this article Introduction to Working with Geodatabase Relationship Classes (safe.com) #ReadingRelationshipClasses, appears to be some attachment workspace examples there

I have tested that before I posted the question. relationship type does not have schema so feature reader is not going to help I am affraid