GISarabia.org
PostGIS › الدليل الرسمي › 7. مرجع PostGIS › 7.18. دوال المستطيل المحيط
PostGIS 3.6 · Official Manual · ترجمة عربية

ST_MakeBox2D

الصفحة الأصلية بالإنجليزية postgis.net ↗

الاسم

ST_MakeBox2D — تُنشئ BOX2D معرّفًا بنقطتين ثنائيتي الأبعاد.

المختصر

box2d ST_MakeBox2D(geometry pointLowLeft, geometry pointUpRight);

الوصف

تُنشئ box2d معرّفًا بشكلين هندسيين من نوع نقطة. وهذا مفيد لإجراء استعلامات النطاق.

أمثلة


--Return all features that fall reside or partly reside in a US national atlas coordinate bounding box
--It is assumed here that the geometries are stored with SRID = 2163 (US National atlas equal area)
SELECT feature_id, feature_name, geom
FROM features
WHERE geom && ST_SetSRID(ST_MakeBox2D(ST_Point(-989502.1875, 528439.5625),
        ST_Point(-987121.375 ,529933.1875)),2163)

انظر أيضًا

ST_Point, ST_SetSRID, ST_SRID