-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Working with the API to fech the image, models
changed, specially image model
- Loading branch information
Showing
10 changed files
with
170 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
63 changes: 63 additions & 0 deletions
63
georeferencing/migrations/0010_image_camera_image_cameratilt_image_created_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
# Generated by Django 4.2.11 on 2024-09-21 06:13 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('georeferencing', '0009_alter_geoattempt_hash'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='image', | ||
name='camera', | ||
field=models.CharField(blank=True, max_length=100, null=True), | ||
), | ||
migrations.AddField( | ||
model_name='image', | ||
name='cameraTilt', | ||
field=models.IntegerField(blank=True, null=True), | ||
), | ||
migrations.AddField( | ||
model_name='image', | ||
name='created', | ||
field=models.DateTimeField(auto_now_add=True, null=True), | ||
), | ||
migrations.AddField( | ||
model_name='image', | ||
name='focalLength', | ||
field=models.IntegerField(blank=True, null=True), | ||
), | ||
migrations.AddField( | ||
model_name='image', | ||
name='link', | ||
field=models.URLField(blank=True, null=True), | ||
), | ||
migrations.AddField( | ||
model_name='image', | ||
name='photoCenterByMachineLearning', | ||
field=models.CharField(blank=True, max_length=100, null=True), | ||
), | ||
migrations.AddField( | ||
model_name='image', | ||
name='photoCenterPoint', | ||
field=models.CharField(blank=True, max_length=100, null=True), | ||
), | ||
migrations.AddField( | ||
model_name='image', | ||
name='spaceCraftAltitude', | ||
field=models.IntegerField(blank=True, null=True), | ||
), | ||
migrations.AddField( | ||
model_name='image', | ||
name='spacecraftNadirPoint', | ||
field=models.CharField(blank=True, max_length=100, null=True), | ||
), | ||
migrations.AddField( | ||
model_name='image', | ||
name='taken', | ||
field=models.DateTimeField(blank=True, null=True), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Generated by Django 4.2.11 on 2024-09-21 06:26 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('georeferencing', '0010_image_camera_image_cameratilt_image_created_and_more'), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name='image', | ||
name='path', | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Generated by Django 4.2.11 on 2024-09-21 06:43 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('georeferencing', '0011_remove_image_path'), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name='geoattempt', | ||
name='path', | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,19 @@ | ||
from django.urls import path | ||
from .views import ControlpointView, ControlpointIndividualView, ImageView, ImageIndividualView, GeoAttemptView, GeoAttemptIndividualView | ||
from .views import ( | ||
ControlpointView, | ||
ControlpointIndividualView, | ||
ImageView, | ||
ImageIndividualView, | ||
GeoAttemptView, | ||
GeoAttemptIndividualView, | ||
PendingGeoAttemptView) | ||
urlpatterns = [ | ||
# Define your app's URL patterns here | ||
path('controlpoint/', ControlpointView.as_view(), name='controlpoints'), | ||
path('controlpoint-individual/<int:pk>/', ControlpointIndividualView.as_view(), name='controlpoints-individual'), | ||
path('geoattempt/', GeoAttemptView.as_view(), name='geoattempt'), | ||
path('geoattempt-individual/<int:pk>/', GeoAttemptIndividualView.as_view(), name='geoattempt-individual'), | ||
path('geoattempt-pending/', PendingGeoAttemptView.as_view(), name='geoattempt-pending'), | ||
path('image/', ImageView.as_view(), name='images'), | ||
path('image-individual/<int:pk>/', ImageIndividualView.as_view(), name='images-individual'), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"id":6,"created":"2024-09-21T06:45:01.325499Z","image":4,"status":"PENDING","hash":"8063e11898fafd419166c010bad7ef60"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"id":5,"created":"2024-09-21T06:44:56.703143Z","image":3,"status":"PENDING","hash":"fce45a801acfb25b9b5236927eb39f07"} |