ee.Feature.select
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
यह फ़ंक्शन, किसी सुविधा से प्रॉपर्टी को नाम या RE2 के साथ काम करने वाले रेगुलर एक्सप्रेशन के हिसाब से चुनता है. इसके अलावा, यह प्रॉपर्टी के नाम बदलने का विकल्प भी देता है.
इस्तेमाल | रिटर्न |
---|
Feature.select(propertySelectors, newProperties, retainGeometry) | एलिमेंट |
आर्ग्यूमेंट | टाइप | विवरण |
---|
यह: input | एलिमेंट | वह सुविधा जिससे प्रॉपर्टी चुनी जाती हैं. |
propertySelectors | सूची | यह उन नामों या रेगुलर एक्सप्रेशन की सूची होती है जिनसे प्रॉपर्टी चुनी जाती हैं. |
newProperties | सूची, डिफ़ॉल्ट: null | आउटपुट प्रॉपर्टी के लिए नए नाम. ये नाम देना ज़रूरी नहीं है. यह चुनी गई प्रॉपर्टी की संख्या से मेल खाना चाहिए. |
retainGeometry | बूलियन, डिफ़ॉल्ट: true | अगर यह विकल्प 'बंद है' पर सेट है, तो नतीजे में NULL ज्यामिति होगी. |
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-26 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-07-26 (UTC) को अपडेट किया गया."],[[["\u003cp\u003eSelects properties from a given feature based on provided names or regular expressions.\u003c/p\u003e\n"],["\u003cp\u003eOptionally allows renaming the selected properties using a separate list.\u003c/p\u003e\n"],["\u003cp\u003eBy default, retains the original geometry of the feature, but this can be disabled to return only properties.\u003c/p\u003e\n"],["\u003cp\u003eReturns a new Element containing only the selected and potentially renamed properties.\u003c/p\u003e\n"]]],[],null,["# ee.Feature.select\n\nSelects properties from a feature by name or RE2-compatible regex and optionally renames them.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|-----------------------------------------------------------------------------|---------|\n| Feature.select`(propertySelectors, `*newProperties* `, `*retainGeometry*`)` | Element |\n\n| Argument | Type | Details |\n|---------------------|------------------------|---------------------------------------------------------------------------------------------|\n| this: `input` | Element | The feature to select properties from. |\n| `propertySelectors` | List | A list of names or regexes specifying the properties to select. |\n| `newProperties` | List, default: null | Optional new names for the output properties. Must match the number of properties selected. |\n| `retainGeometry` | Boolean, default: true | When false, the result will have a NULL geometry. |"]]