Skip to content
Discussion options

You must be logged in to vote

Hi @insdeck ,

Here is something I put together a while back. It will output this:

By default, it dumps to Out-GridView. You can change that on the last line though.

$camInfo = New-Object System.Collections.Generic.List[PSCustomObject]

$directionArray = @(
    "N"
    "NNE"
    "NE"
    "ENE"
    "E"
    "ESE"
    "SE"
    "SSE"
    "S"
    "SSW"
    "SW"
    "WSW"
    "W"
    "WNW"
    "NW"
    "NNW"
)

foreach ($cam in Get-VmsCamera)
{
    $gisPoint = $cam.GisPoint
    if ($gisPoint.Substring(7, $GisPoint.Length - 8) -match "[0-9]")
    {
        $long = $gisPoint.Substring(7, $GisPoint.Length - 8).Split(" ")[0]
        $lat = $gisPoint.Substring(7, $GisPoint.Length - 8).Split(" ")[1]
…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by insdeck
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants