How can I get in explorer folder window a layer in specify shape?

For example allow:

enter image description here

How can We look, explorer after click INPUT FEATURES, shows a layers only points type.

How can I get validate effect like this?

  • 2
    Have a look at the filter property of the parameter.
    – Hornbydd
    Apr 10 '18 at 10:33

Open python toolbox file (.pyt) in any editor. Edit updateParameters method like this: (I assume that Input Features is the first parameter, whose index is 0)

def updateParameters(self, parameters):
    self.params[0].filter.list = ["POINT"]

    # or if you want another type, use ["LINE", "POLYGON"]
    # other lines

For detailed information: Filter - Help

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.