Standard Energy Efficiency Data (SEED) Platform™ is a web-based application that helps organizations easily manage data on the energy performance of large groups of buildings.
Prior to this change, when importing a file with a UBID we were setting the PropertyState's latitude and longitude to the center of the UBID bounding box, which isn't necessarily representative of the footprint.
What's this PR do?
Sets the PropertyState's latitude and longitude to the center of the UBID centroid.
This PR also fixes floating-point rounding errors for lat/long values when geocoding from a UBID by rounding to 12 decimal places. There's no risk of loss of precision, because at its highest precision the area encompassed by the coordinate would be 12,392 square nanometers at the equator.
How should this be manually tested?
Upload a file with a UBID like 85FPPRRC+XH9-7-8-3-6
Confirm that the lat/long is 39.7424125, -105.178515625, NOT 39.7424625, -105.178484375
Screenshots (if appropriate)
The red dot represents the lat/long SEED was setting, the center the centroid (blue pin) is what is now used:
Any background context you want to provide?
Prior to this change, when importing a file with a UBID we were setting the PropertyState's latitude and longitude to the center of the UBID bounding box, which isn't necessarily representative of the footprint.
What's this PR do?
How should this be manually tested?
85FPPRRC+XH9-7-8-3-6
39.7424125, -105.178515625
, NOT39.7424625, -105.178484375
Screenshots (if appropriate)
The red dot represents the lat/long SEED was setting, the center the centroid (blue pin) is what is now used:![image](https://github.com/SEED-platform/seed/assets/411466/88f1374c-e1cf-4b95-9d49-a542bc865c89)