mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2025-12-16 22:57:14 +00:00
tooling to check unevidenced locations
This commit is contained in:
@@ -305,26 +305,39 @@ def eastings(request):
|
||||
|
||||
entrances = Entrance.objects.all()
|
||||
for e in entrances:
|
||||
if e.easting or e.northing:
|
||||
if e.exact_station:
|
||||
ents.add(e)
|
||||
add_stations(e)
|
||||
e.northing = float(e.northing)
|
||||
e.easting = float(e.easting)
|
||||
# if e.easting or e.northing:
|
||||
# ents.add(e)
|
||||
# add_stations(e)
|
||||
# e.northing = float(e.northing)
|
||||
# e.easting = float(e.easting)
|
||||
|
||||
if e.northing < 5200000:
|
||||
e.bmn = True
|
||||
# e.northing = e.northing + 5200000
|
||||
e.northing = e.northing + 5198919.918
|
||||
# if e.northing < 5200000:
|
||||
# e.bmn = True
|
||||
# e.bmn_n = e.northing
|
||||
# # e.northing = e.northing + 5200000
|
||||
# e.northing = e.northing + 5198919.918
|
||||
|
||||
#e.easting = e.easting - 36000 + 486000
|
||||
e.easting = e.easting + 374854.63 # linear hack
|
||||
# e.bmn_e = e.easting
|
||||
# #e.easting = e.easting - 36000 + 486000
|
||||
# e.easting = e.easting + 374854.63 # linear hack
|
||||
|
||||
try:
|
||||
e.diffx = e.easting - e.best_station_object().x
|
||||
e.diffy = e.northing - e.best_station_object().y
|
||||
e.error = sqrt(e.diffx**2 + e.diffy**2)
|
||||
except:
|
||||
pass
|
||||
# if e.alt:
|
||||
# e.alt = e.alt.replace("m","")
|
||||
|
||||
# #print(f"{e.slug} '{e.alt}'")
|
||||
# e.bmn_alt = e.alt
|
||||
# else:
|
||||
# e.bmn_alt = 1000
|
||||
# e.pslug = e.slug.replace("1623-","x")
|
||||
# try:
|
||||
# e.diffx = e.easting - e.best_station_object().x
|
||||
# e.diffy = e.northing - e.best_station_object().y
|
||||
# e.error = sqrt(e.diffx**2 + e.diffy**2)
|
||||
# except:
|
||||
# pass
|
||||
|
||||
for e in entrances:
|
||||
if e.lat_wgs84 or e.long_wgs84:
|
||||
|
||||
Reference in New Issue
Block a user