We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Get bounding box and/or center point as lat/lon from VectorLayer

Hi there,

I’m opening a variety of files (ESRI Shapefile, GeoJSON, etc.) using FileDriver.OpenLayer, and I’d like to find the geolocation of the shape represented in the layer.

Assuming there’s a spatial reference system assigned in the layer, is there an easy way to calculate a lat/lon bounding box for the shape, and/or the center point as lat/lon?

I read through the documentation and couldn’t see a way to do this directly.

Thanks,
Kirk

@kirkmarple,

We will evaluate your requirements and get back to you soon.

1 Like