Hi Adam,
You can ask the ShapeLayer for its OMGraphicList, using getList().
The OMGraphics contain the coordinates. They will be in the
OMGraphicList in the order they were retrieved from the Shape file.
For OMPoly objects, you can call getLatLonArray(). Beware! When you
get those coordinates, they will be in radians. If you want to
inspect them as lat/lon decimal degrees, you should make a copy of
them before sending them to ProjMath.arrayRadToDeg(), which will do
the conversion in place. If you don't make the copy, you mess up the
OMPoly.
Hope this helps,
Don
On Oct 29, 2009, at 2:06 PM, Adam Brightwell wrote:
> I am currently using ShapeLayer to display shapefiles. However, I
> need to access the data (coordinates) that make up a given shape
> within that layer. Any suggestions on how this might be accomplished?
>
> Thanks,
> Adam
--
[To unsubscribe to this list send an email to "majdart_at_bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Thu Oct 29 2009 - 14:12:35 EDT