Geolocation data

Is it possible to add Geolocation data to tag properties using json code?

  • This isn't fully supported and is not documented, but you can define a "Geolocation" Tag Extended Property as a "Geography" type and use geolocation  coordinates. You can use other names for the property and use a string type instead, but if you follow the convention above, AVEVA Insight will recognize the property and use the location to render values on the "Map". Other applications might also leverage this convention in the future. 

    declare @KeyOut int
    declare @Geo int
    set @Geo = (select * from AttributeType where AttributeTypeName='Geography')
    exec aaAddTagExtendedPropertyName 'GeoLocation', @Geo, 0, 0, 0, @keyOut output
    exec aaAddTagExtendedProperty 'Flow1.PV', 'GeoLocation', '33.596088,-117.677678,27.1'
    exec aaAddTagExtendedProperty 'Flow2.PV', 'GeoLocation', '33.596091,-117.67723'