[Imported] Adding geo co-ordinates for objects by name using SQL
EcoStruxure Geo SCADA Expert Forum
Schneider Electric support forum about installation, configuration, integration and troubleshooting of EcoStruxure Geo SCADA Expert (ClearSCADA, ViewX, WebX).
Send a co-worker an invite to the portal.Just enter their email address and we'll connect them to register. After joining, they will belong to the same company.
You have entered an invalid email address. Please re-enter the email address.
This co-worker has already been invited to the Exchange portal. Please invite another co-worker.
Please enter email address
Send InviteCancel
Invitation Sent
Your invitation was sent.Thanks for sharing Exchange with your co-worker.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2019-11-0501:08 PM. Last Modified: 2023-05-0312:35 AM
[Imported] Adding geo co-ordinates for objects by name using SQL
>>Message imported from previous forum - Category:ClearSCADA Software<< User: florian, originally posted: 2018-10-25 15:56:41 Id:229 This is a re-posting from the obsoleted (October 2018) "Schneider Electric Telemetry & SCADA" forum.
-----------------
**_sbeadle:_** **_Geo co-ordinates are stored in an Aggregate, which is a 'tree' of tables/classes separate from the main 'CDBObject' tree. Aggregates enable the main objects to have fewer redundant fields when there are options in the configuration. Aggregates are indexed by the id (of the main CDBObject) and the name (AggrName) [the latter because more than one aggregate can be used, but that's another story!]._**
**_Here's some SQL which updates the Geo co-ordinates of an object (assuming that the location configuration has been set to Static):_**
_update CGISLocationSrcStatic set Latitude = 51.05838, Longitude = 4.09659 where id = ( select id from cdbobject where fullname = 'mygrouppath.myobjectname')_
**_In the past, users have added metadata fields to objects for Latitude and Longitude._**
**_Contributors are invited to add the SQL which would transfer this data to the aggregate!_**