Select to view content in your preferred language

How to add bounding box (W, E, S, N) dataset as feature layer in SceneView

1826
3
09-03-2021 11:30 PM
KrishnakanthYachareni
Emerging Contributor
Hi,
I'm a complete beginner to the Esri API and I have a dataset that doesn't have coordinates, instead, it has the following bounding points. I'd like to imports that dataset as a feature layer in the base map. I see Extent (https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Extent.html) not seems appropriate for my requirement. Could anyone help here?
 
BoundingBox {
       WestBLongitude-120.355
       EastBLongitude-120.355
       SouthBLatitude: 10.301
       NorthBLatitude: 10.301869
}

Is there any way that we can build a feature layer without having coordinates but just with bounding values?

0 Kudos
3 Replies
David_Brooks
MVP Regular Contributor
0 Kudos
KrishnakanthYachareni
Emerging Contributor

Thanks for the response but to draw the above suggestions required an array of points like building a polygon, but I don't have points in dataset. 

0 Kudos
David_Brooks
MVP Regular Contributor

@KrishnakanthYachareni sorry, can you explai in more detail what you have?

If you want to make a rectangle from bounding coordinates then surely you just build a geometry from those:

Pont1 = xMin, yMin

Point2 = xMin, yMax

Point3 = xMax, yMax

Point 4 = xMax, yMin


David
..Maps with no limits..
0 Kudos