gregmuellegger / django-autofixture

Can create auto-generated test data.
BSD 3-Clause "New" or "Revised" License
460 stars 118 forks source link

Add GeopositionGenerator #78

Closed cvng closed 8 years ago

cvng commented 8 years ago

For my use-case I had to create a simple GeopositionGenerator (eg. "12.345678,-45.678912"). Could it be useful for you?

gregmuellegger commented 8 years ago

Hey, thanks for the idea. Is this somehow useful or works together with the GeoDjango fields?

cvng commented 8 years ago

For the moment, the geoposition is generated as a string so, it is not compliant with GeoDjango fields (works with tuples), but it may be subject of another pull-request for sure!

gregmuellegger commented 8 years ago

Hm, ok. That seems very specific for your case though and I doubt that many more people have a need for this string based point generator. I would merge a generator though that supports PointField or other geometrical shapes from django.contrib.gis. Thanks for your efforts :) !