ee.Filter.bounds
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
यह एक ऐसा फ़िल्टर बनाता है जो तब पास होता है, जब ऑब्जेक्ट की ज्यामिति, दी गई ज्यामिति से इंटरसेक्ट करती है.
चेतावनी: geometry
आर्ग्युमेंट के तौर पर बड़ा या जटिल कलेक्शन देने से, परफ़ॉर्मेंस खराब हो सकती है. कलेक्शन की ज्यामिति को एक साथ रखने से, परफ़ॉर्मेंस पर असर पड़ता है. इसलिए, सबसे छोटे कलेक्शन (या ज्यामिति) का इस्तेमाल करें, ताकि आपको मनमुताबिक नतीजे मिल सकें.
बनाया गया फ़िल्टर दिखाता है.
इस्तेमाल रिटर्न ee.Filter.bounds(geometry, errorMargin )
फ़िल्टर
आर्ग्यूमेंट टाइप विवरण geometry
ComputedObject|FeatureCollection|Geometry वह ज्यामिति, सुविधा या कलेक्शन जिसके साथ इंटरसेक्ट करना है. errorMargin
ComputedObject|Number, optional गड़बड़ी का वैकल्पिक मार्जिन. अगर कोई संख्या है, तो इसे स्फ़ियर के सर्फ़ेस मीटर के तौर पर माना जाता है.
उदाहरण
कोड एडिटर (JavaScript)
// collection.filterBounds() is preferred.
// A Sentinel-2 surface reflectance image collection for 3 months in 2021.
var ic = ee . ImageCollection ( 'COPERNICUS/S2_SR' )
. filterDate ( '2021-07-01' , '2021-10-01' );
// A point geometry for the peak of Mount Shasta, California, USA.
var geom = ee . Geometry . Point ( - 122.196 , 41.411 );
print ( 'Images intersecting point geometry' ,
ic . filter ( ee . Filter . bounds ( geom )));
// A feature collection of point geometries for mountain peaks.
var fc = ee . FeatureCollection ([
ee . Feature ( ee . Geometry . Point ( - 122.196 , 41.411 ), { mountain : 'Mount Shasta' }),
ee . Feature ( ee . Geometry . Point ( - 121.697 , 45.374 ), { mountain : 'Mount Hood' })
]);
print ( 'Images intersecting feature collection' ,
ic . filter ( ee . Filter . bounds ( fc )));
Python सेटअप करना
Python API और इंटरैक्टिव डेवलपमेंट के लिए geemap
का इस्तेमाल करने के बारे में जानकारी पाने के लिए,
Python एनवायरमेंट पेज देखें.
import ee
import geemap.core as geemap
Colab (Python)
# collection.filterBounds() is preferred.
# A Sentinel-2 surface reflectance image collection for 3 months in 2021.
ic = ee . ImageCollection ( 'COPERNICUS/S2_SR' ) . filterDate ( '2021-07-01' ,
'2021-10-01' )
# A point geometry for the peak of Mount Shasta, California, USA.
geom = ee . Geometry . Point ( - 122.196 , 41.411 )
print ( 'Images intersecting point geometry:' ,
ic . filter ( ee . Filter . bounds ( geom )) . getInfo ())
# A feature collection of point geometries for mountain peaks.
fc = ee . FeatureCollection ([
ee . Feature ( ee . Geometry . Point ( - 122.196 , 41.411 ),
{ 'mountain' : 'Mount Shasta' }),
ee . Feature ( ee . Geometry . Point ( - 121.697 , 45.374 ),
{ 'mountain' : 'Mount Hood' })
])
print ( 'Images intersecting feature collection:' ,
ic . filter ( ee . Filter . bounds ( fc )) . getInfo ())
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-26 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-07-26 (UTC) को अपडेट किया गया."],[],[],null,[]]