Regarding auto-generating a map with measurements

18 views
Skip to first unread message

Srijita Mallick

unread,
Apr 3, 2021, 6:30:37 PM4/3/21
to Django users
Hello all!
I'm doing a project where provided length and breadth of a land, I have to auto-generate a map with no. of flower beds (length of them provided too) in it like the image I have attached below. How can I go about it?
Any help is much appreciated.

Thanks and regards,
Srijita
pic.jpeg

Ryan Nowakowski

unread,
Apr 3, 2021, 10:20:43 PM4/3/21
to django...@googlegroups.com
Perhaps use SVG?

Srijita Mallick

unread,
Apr 3, 2021, 10:36:30 PM4/3/21
to django...@googlegroups.com
Actually that's a great idea, thanks :). We can create a large rectangle and fit in small SVG beds using loop as per measurements. 

Thanks again!

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/E1535D26-6A34-4879-8FBF-07E9A8A8427B%40fattuba.com.

Ryan Nowakowski

unread,
Apr 5, 2021, 1:23:18 PM4/5/21
to django...@googlegroups.com
No prob. A trick that I use sometimes is to create a sample SVG manually
with Inkscape. Then I modify it with Inkscape to manually "add" whatever
I'm thinking about adding automatically. Finally I can diff the
original file I created with Inkscape and with modified file to find out
what values I need to change in my SVG Django template.
> > <https://groups.google.com/d/msgid/django-users/E1535D26-6A34-4879-8FBF-07E9A8A8427B%40fattuba.com?utm_medium=email&utm_source=footer>
> > .
> >
>
> --
> You received this message because you are subscribed to the Google Groups "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAEq3HBT%3DiKvToxAWRLC%2Bi0v8rpzsSRC13gFgfWwHUgQfPMn8sQ%40mail.gmail.com.

Srijita Mallick

unread,
Apr 5, 2021, 7:42:17 PM4/5/21
to django...@googlegroups.com
This was of great help, thanks!


Derek

unread,
Apr 6, 2021, 4:23:39 AM4/6/21
to Django users
We have done something similar, but for a rectangular layout you may be able to also use a simple HTML table, or a series of nested "div"s (with appropriate styling).  

Srijita Mallick

unread,
Apr 6, 2021, 4:28:06 AM4/6/21
to django...@googlegroups.com
Right! Could you elaborate a bit? Thanks!

Reply all
Reply to author
Forward
0 new messages