summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@gmail.com>2023-10-12 00:25:24 +0300
committerPhilip Sargent <philip.sargent@gmail.com>2023-10-12 00:25:24 +0300
commit3b1fd56fe4b09ffc9203c3109fcd05ff440732ef (patch)
treed7bd772024943448259d50f2165901612b054d1c
parenta2bddaeb89c7d5ada35aaade93d06196672ec0bc (diff)
downloadtroggle-3b1fd56fe4b09ffc9203c3109fcd05ff440732ef.tar.gz
troggle-3b1fd56fe4b09ffc9203c3109fcd05ff440732ef.tar.bz2
troggle-3b1fd56fe4b09ffc9203c3109fcd05ff440732ef.zip
REMOVED northing and easting fields
-rw-r--r--core/forms.py7
-rw-r--r--core/models/caves.py2
-rw-r--r--templates/eastings.html27
3 files changed, 8 insertions, 28 deletions
diff --git a/core/forms.py b/core/forms.py
index ed334f6..8eb8f78 100644
--- a/core/forms.py
+++ b/core/forms.py
@@ -174,12 +174,7 @@ class EntranceForm(ModelForm):
required=False,
widget=forms.TextInput(attrs={"size": "50"}), label="Other station: Survex station id, e.g. 1623.2023-xx-01.33"
)
- northing = forms.CharField(
- required=False, widget=forms.TextInput(attrs={"size": "10"}), label="Northing (UTM) - random shit, being expunged"
- )
- easting = forms.CharField(
- required=False, widget=forms.TextInput(attrs={"size": "10"}), label="Easting (UTM) - random shit, being expunged"
- )
+
lat_wgs84 = forms.CharField(
required=False, widget=forms.TextInput(attrs={"size": "10"}), label="Latitude (WSG84) - if no other location"
)
diff --git a/core/models/caves.py b/core/models/caves.py
index 3079ed1..bd35461 100644
--- a/core/models/caves.py
+++ b/core/models/caves.py
@@ -236,7 +236,6 @@ class Entrance(TroggleModel):
alt = models.TextField(blank=True, null=True)
approach = models.TextField(blank=True, null=True)
bearings = models.TextField(blank=True, null=True)
- easting = models.TextField(blank=True, null=True) # apparently? manually entered not calculated
entrance_description = models.TextField(blank=True, null=True)
explorers = models.TextField(blank=True, null=True)
filename = models.CharField(max_length=200)
@@ -250,7 +249,6 @@ class Entrance(TroggleModel):
marking = models.CharField(max_length=2, choices=MARKING_CHOICES)
marking_comment = models.TextField(blank=True, null=True)
name = models.CharField(max_length=100, blank=True, null=True)
- northing = models.TextField(blank=True, null=True) # apparently? manually entered not calculated
other_description = models.TextField(blank=True, null=True)
photo = models.TextField(blank=True, null=True)
slug = models.SlugField(max_length=50, unique=True, default="default_slug_id")
diff --git a/templates/eastings.html b/templates/eastings.html
index 17b19b2..21a40e6 100644
--- a/templates/eastings.html
+++ b/templates/eastings.html
@@ -5,17 +5,6 @@
<h1>Entrance locations</h1>
-<p>
-These first two tables are all the Caves which have <em>manual</em> locations specified as Northing/Easting coordinates in their Cave Entrance Description data.
-<p>
-This report is to help you sort out and fix the bad data in our records. You can see from the tables here
-that UTM data sometimes have Northings and Eastings swapped, or UTM is used when it is intended to be
-BMN and vice versa.
-
-<p>All surveyed caves have entrance locations fixed by the survex data, as survey stations with names such as
-1623.p277a . This is the reliable data and is shown in the third table. The reason why we have manual data is because when a
-cave entrance is first discovered, it is not yet connected to the survey network. But we want to record its position
-otherise we will lose it.
<p>
Coordinate systems in Austria are explained in:<br>
@@ -35,12 +24,11 @@ th, td {
</style>
<p>
-{% for ent in ents %}
-*fix {{ent.pslug}} {{ent.bmn_e|floatformat:0}} {{ent.bmn_n|floatformat:0}} {{ent.bmn_alt|floatformat:0}}<br />
-{% endfor %}
-<p>and what those stations are:
+
+
<table>
-<tr><th>Cave</th><th>tag</th><th>tag x</th><th>tag y</th><th>tag exact</th><th>exact x</th><th>exact y</th><th>tag other</th><th>other x</th><th>other y</th></tr>
+<tr><th>Cave</th><th>Ent slug</th>
+<th>tag</th><th>tag x</th><th>tag y</th><th>tag exact</th><th>exact x</th><th>exact y</th><th>tag other</th><th>other x</th><th>other y</th></tr>
{% for ent in ents %}
<tr>
<td style="text-align:left">
@@ -53,6 +41,7 @@ th, td {
{% endif %}</a><br>
{% endfor %}</td>
+ <td style="text-align:right">{{ent.slug}}</td>
<td style="text-align:right">{{ent.tag_station}}</td>
<td style="text-align:right">{{ent.tag_ts.x|floatformat:0}}</td>
<td style="text-align:right">{{ent.tag_ts.y|floatformat:0}}</td>
@@ -71,7 +60,7 @@ th, td {
<tr><th>Cave</th>
<th>Alt</th>
<th>GPS Lat</th><th>GPS Long</th>
-<th>best Lat</th><th>best Long</th><th>tag</th><th>tag Lat</th><th>tag Long</th>
+<th>best Lat</th><th>best Long</th>
</tr>
{% for ent in gpsents %}
<tr>
@@ -90,9 +79,7 @@ th, td {
<td style="text-align:right">{{ent.long_wgs84|floatformat:6}}</td>
<td style="text-align:right">{{ent.lat|floatformat:6}}</td>
<td style="text-align:right">{{ent.long|floatformat:6}}</td>
- <td style="text-align:right">{{ent.tag_station}}</td>
- <td style="text-align:right">{{ent.tag_ts.lat|floatformat:6}}</td>
- <td style="text-align:right">{{ent.tag_ts.long|floatformat:6}}</td>
+
</tr>
{% endfor %}
</table>