﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
31611	Point Coords inputted using OSM map widget in Admin are wrong way round.	ghareth	nobody	"Model with PointField being administered through Django Administration.

Points inserted correctly using map widget provided through GeoModelAdmin.

However, Points inserted using map widget provided through OSMGeoAdmin are created incorrectly with Latitude and Longitude swapped around. 

i.e. SRID=4326;POINT(84.9497846781168 -172.663887489678) was inserted using OSMGeoAdmin.

i.e. SRID=4326;POINT(-119.5332 37.7459) was inserted using GeoModelAdmin.

Points inserted manually (ie. using method below) cannot be handled by OSMGeoAdmin returning error as **Error transforming geometry from srid '4326' to srid '3857' (OGR failure.)**

{{{
p.Location = Point(-119.5332, 37.7459)
p.save()
}}}

Models created using the following code using Djanog 3.0.5 running on Python 3.7 on MacOS. 

{{{
from django.contrib.gis.db import models
from django.contrib.gis import admin

class Point(models.Model):
    location = models.PointField(default=Point(-98.4842, 39.0119), srid=4326)
}}}

''in admin.py''

{{{
admin.site.register(Point, admin.GeoModelAdmin)
}}}
or 
{{{
admin.site.register(Point, admin.OSMGeoAdmin)
}}}
 

"	Bug	closed	GIS	3.0	Normal	duplicate	OSMGeoAdmin	ghareth	Unreviewed	0	0	0	0	0	0
