Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GeographicLocation.objects.get_or_create returns False with LineString #3

Open
korvinos opened this issue Dec 17, 2017 · 1 comment

Comments

@korvinos
Copy link
Member

korvinos commented Dec 17, 2017

I'm trying to use LineString for geolocation of drifter's track

geometry = LineString(zip(lon, lat))
geoloc, geo_cr = GeographicLocation.objects.get_or_create(geometry=geometry)

method returns False in geo_cr.
The same method with LineString was used in last stable version of the code.

@korvinos
Copy link
Member Author

Updates from documentation:

        "The GeoManager class is deprecated. Simply use a normal manager "
        "once you have replaced all calls to GeoQuerySet methods by annotations.",
        RemovedInDjango20Warning, stacklevel=2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant