# show point inside rectangle

**URL:** <https://community.cesium.com/t/show-point-inside-rectangle/3115>\
**Category:** CesiumJS\
**Created:** [September 28, 2015, 12:11pm UTC](https://community.cesium.com/t/show-point-inside-rectangle/3115 "2015-09-28T12:11:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mbunic151](https://avatars.discourse-cdn.com/v4/letter/m/9f8e36/32.png) [@mbunic151](https://community.cesium.com/u/mbunic151)\
**Post date:** [September 28, 2015, 12:11pm UTC](https://community.cesium.com/t/show-point-inside-rectangle/3115/1 "2015-09-28T12:11:46Z")

</div>

Hi everyone!

I have X,Y pairs of coordinates of points in database.

I'm trying to achieve that only points which are inside camera rectangle are visible.

Two questions:  
1. Is it possible to recieve coordinates of camera rectangle and how?  
2. Is there any function/method which return only points which are inside geometry (ex. rectangle or circle)?

Thank you in front!

---

<div class="post-metadata">

**Author:** ![hannah](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/hannah/32/4509_2.png) [@hannah](https://community.cesium.com/u/hannah)\
**Post date:** [September 28, 2015, 8:11pm UTC](https://community.cesium.com/t/show-point-inside-rectangle/3115/2 "2015-09-28T20:11:52Z")

</div>

Hello,

I don’t believe either of these are currently implemented in Cesium. Someone in this post has some suggestions for a workaround for #1: [https://groups.google.com/d/msg/cesium-dev/lZAr0L6Cq9s/dWyS4W8rAQAJ](https://groups.google.com/d/msg/cesium-dev/lZAr0L6Cq9s/dWyS4W8rAQAJ)

#2 Shouldn’t be difficult to implement for a rectangle. You could just compare the lon/lat positions with the north/south/east/west edges of the Rectangle.

Best,

Hannah
