Re: GeoDjango Hosting

2023-11-16 Thread 'ch...@routh.io' via Django users
Sorry but this sounds like a problem with the user. DO has dedicated node 
types if you look through the catalog. 

On Thursday, 16 November 2023 at 07:39:18 UTC-8 Sebastian Jung wrote:

> No no please don't go to digital ocean..
>  I know many people how have much problems... No dedicated cpu.. no fix 
> ressources... No go...
>
> IKT Service  schrieb am Do., 16. Nov. 2023, 16:35:
>
>> Try digital Ocean 
>>
>> tor. 16. nov. 2023 kl. 15:17 skrev Ernest Okiya :
>>
>>> Hello. GCP will work best for you. Try it out
>>>
>>> On Thu, 16 Nov 2023, 02:46 lone...@gmail.com,  wrote:
>>>
 Hello all,

 I am looking for a webhosting service that allows me to install 
 qgis software packages on the webhost.  My preferred hosts are either 
 Ubuntu or Debian.  Anyone know of any good solutions?

 Thank you.

>>> -- 
 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/e106b78b-847a-451c-87d2-33bb246185f8n%40googlegroups.com
  
 
 .

>>> -- 
>>> 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/CAM2QfqoPbSUHxtcXQVBjM0-_RffOe2agzb2iY465W0%3DFnQ%3DYPg%40mail.gmail.com
>>>  
>>> 
>>> .
>>>
>> -- 
>> 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/CAA7BsYgs%3DZk8PfXmwtt0u2mhi7GJ72rztXqH-rHV5rfOP6jP_w%40mail.gmail.com
>>  
>> 
>> .
>>
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/482c84d9-ae3a-4a15-8ca4-81bbc8235a69n%40googlegroups.com.


Re: GeoDjango Hosting

2023-11-16 Thread 'ch...@routh.io' via Django users


Linode or Digital Ocean or Vultr

Deploy vanilla linux and get your hands dirty, or use a one click deploy of 
a familiar stack like Cpanel and then modify the host as you like. And once 
you're on one of these providers if you want to move to containers or 
leverage object storage or managed databases, it's all there.


Cheers,


Chris Routh


On Wednesday, 15 November 2023 at 15:45:30 UTC-8 lone...@gmail.com wrote:

> Hello all,
>
> I am looking for a webhosting service that allows me to install qgis 
> software packages on the webhost.  My preferred hosts are either Ubuntu or 
> Debian.  Anyone know of any good solutions?
>
> Thank you.
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/26a9fb6d-e37e-4316-85b7-ecd9c86f5493n%40googlegroups.com.


Re: GeoDjango Hosting

2023-11-16 Thread Sebastian Jung
No no please don't go to digital ocean..
 I know many people how have much problems... No dedicated cpu.. no fix
ressources... No go...

IKT Service  schrieb am Do., 16. Nov. 2023, 16:35:

> Try digital Ocean
>
> tor. 16. nov. 2023 kl. 15:17 skrev Ernest Okiya :
>
>> Hello. GCP will work best for you. Try it out
>>
>> On Thu, 16 Nov 2023, 02:46 lone...@gmail.com, 
>> wrote:
>>
>>> Hello all,
>>>
>>> I am looking for a webhosting service that allows me to install qgis
>>> software packages on the webhost.  My preferred hosts are either Ubuntu or
>>> Debian.  Anyone know of any good solutions?
>>>
>>> Thank you.
>>>
>> --
>>> 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+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/e106b78b-847a-451c-87d2-33bb246185f8n%40googlegroups.com
>>> 
>>> .
>>>
>> --
>> 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+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAM2QfqoPbSUHxtcXQVBjM0-_RffOe2agzb2iY465W0%3DFnQ%3DYPg%40mail.gmail.com
>> 
>> .
>>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAA7BsYgs%3DZk8PfXmwtt0u2mhi7GJ72rztXqH-rHV5rfOP6jP_w%40mail.gmail.com
> 
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAKGT9mxYw%2BPoY5CV2kmJmH83%2B8pAAo-3JT2Zid6-ZOJkdzi2GQ%40mail.gmail.com.


Re: GeoDjango Hosting

2023-11-16 Thread IKT Service
Try digital Ocean

tor. 16. nov. 2023 kl. 15:17 skrev Ernest Okiya :

> Hello. GCP will work best for you. Try it out
>
> On Thu, 16 Nov 2023, 02:46 lone...@gmail.com,  wrote:
>
>> Hello all,
>>
>> I am looking for a webhosting service that allows me to install qgis
>> software packages on the webhost.  My preferred hosts are either Ubuntu or
>> Debian.  Anyone know of any good solutions?
>>
>> Thank you.
>>
> --
>> 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+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/e106b78b-847a-451c-87d2-33bb246185f8n%40googlegroups.com
>> 
>> .
>>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAM2QfqoPbSUHxtcXQVBjM0-_RffOe2agzb2iY465W0%3DFnQ%3DYPg%40mail.gmail.com
> 
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAA7BsYgs%3DZk8PfXmwtt0u2mhi7GJ72rztXqH-rHV5rfOP6jP_w%40mail.gmail.com.


Re: GeoDjango Hosting

2023-11-16 Thread Ernest Okiya
Hello. GCP will work best for you. Try it out

On Thu, 16 Nov 2023, 02:46 lone...@gmail.com,  wrote:

> Hello all,
>
> I am looking for a webhosting service that allows me to install qgis
> software packages on the webhost.  My preferred hosts are either Ubuntu or
> Debian.  Anyone know of any good solutions?
>
> Thank you.
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/e106b78b-847a-451c-87d2-33bb246185f8n%40googlegroups.com
> 
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAM2QfqoPbSUHxtcXQVBjM0-_RffOe2agzb2iY465W0%3DFnQ%3DYPg%40mail.gmail.com.


Re: GeoDjango Hosting

2023-11-15 Thread Sebastian Jung
Hello,

Take a VPS when you don't need hugh amount of ressources. We have in
germany netcup atarts with 3,25€ with 40 GB ssd and you can install every
OS what you want or when you need much more ressources then a root server
with dedicate CPU. Starts from around 10€ per month with 4 high end cores,
i think 6 gb ram and 80GB ssd.

https://www.netcup.de/vserver/vps.php

Netcup is a very good Provider.

Regards

lone...@gmail.com  schrieb am Do., 16. Nov. 2023,
00:45:

> Hello all,
>
> I am looking for a webhosting service that allows me to install qgis
> software packages on the webhost.  My preferred hosts are either Ubuntu or
> Debian.  Anyone know of any good solutions?
>
> Thank you.
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/e106b78b-847a-451c-87d2-33bb246185f8n%40googlegroups.com
> 
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAKGT9mybG5XddUJWPMFSgZ755M499HqTDhUEjOOQDiaB18AubA%40mail.gmail.com.


Re: GeoDjango Hosting

2023-11-15 Thread OSP PRO
create account with https://osphosting.com

On Thu, Nov 16, 2023 at 2:46 AM lone...@gmail.com 
wrote:

> Hello all,
>
> I am looking for a webhosting service that allows me to install qgis
> software packages on the webhost.  My preferred hosts are either Ubuntu or
> Debian.  Anyone know of any good solutions?
>
> Thank you.
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/e106b78b-847a-451c-87d2-33bb246185f8n%40googlegroups.com
> 
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CACng%3DehDPGcg%2BV%3DaLt5WZNj96nPMU4VexTwEB4tAtt12QvUa%2BQ%40mail.gmail.com.


GeoDjango Hosting

2023-11-15 Thread lone...@gmail.com
Hello all,

I am looking for a webhosting service that allows me to install qgis 
software packages on the webhost.  My preferred hosts are either Ubuntu or 
Debian.  Anyone know of any good solutions?

Thank you.

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/e106b78b-847a-451c-87d2-33bb246185f8n%40googlegroups.com.


Re: GEODJANGO Problem/Question

2022-05-11 Thread Steve Watts
Update - I did manage to get the vast majority of the features to load - 
still missing 7,000/1,462,918 that showed errors during the LayerMapping 
process. I see a lot of "An error occurred in the current transaction. You 
can't execute queries until the end of the 'atomic' block." so I suspect 
there are fewer than 7,000 errors. I had "Step" set to 1,000. I imagine I 
can figure out how many errors there really are by setting "Step" to 1, 
This will get me started, but I am still very interested in further insight 
regarding my original question.

Thanks,

Steve Watts
On Wednesday, May 11, 2022 at 12:49:35 AM UTC-5 Steve Watts wrote:

> I am running a LayerMapping on a set of ShapeFiles acquired from a County 
> GIS Department. I've done a quite a bit of this, and this is the first time 
> I"ve seen such an issue. As LayerMapping is proceeding through the file 
> saving model instances, it encounters one that it can't handle:
>
> "GDAL_ERROR 1: b'Geometry of polygon of fid 5572 cannot be translated to 
> Simple Geometry. All polygons will be contained in a multipolygon.'"
> "GDAL_ERROR 1: b'organizePolygons() received an unexpected geometry. 
>  Either a polygon with interior rings, or a polygon with less than 4 
> points, or a non-Polygon geometry.  Return arguments as a collection.'"
> "GEOS_ERROR: IllegalArgumentException: Invalid number of points in 
> LinearRing found 3 - must be 0 or >= 4"
> "Failed to save the feature (id: 5572) into the model with the keyword 
> arguments:"
> And the final Exception:
> "GEOSException: Error encountered checking Geometry returned from GEOS C 
> function "GEOSWKTReader_read_r"."
>
> The best description of the issue I can find is 
> https://github.com/r-spatial/sf/issues/1589. In this help thread, and a 
> related one, they talk about a utility called "MakeValid" to resolve this 
> LinearRing issue.
>
> It appears I need to either add a point to any of these "LinearRing" 
> instances, or somehow otherwise fix these items.
>
> I'm not sure that sending the ShapeFiles back to the County to "fix" would 
> be productive.
>
> Does anyone have anything to contribute as far as how I might best move 
> forward with this set of ShapeFiles?
>
> Is there another forum where I should be addressing this issue? Need more 
> information?
>
> Thanks!
>
> Steve Watts
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/685ea3af-30dc-46d3-a7db-b25cb93f2b1cn%40googlegroups.com.


GEODJANGO Problem/Question

2022-05-10 Thread Steve Watts
I am running a LayerMapping on a set of ShapeFiles acquired from a County 
GIS Department. I've done a quite a bit of this, and this is the first time 
I"ve seen such an issue. As LayerMapping is proceeding through the file 
saving model instances, it encounters one that it can't handle:

"GDAL_ERROR 1: b'Geometry of polygon of fid 5572 cannot be translated to 
Simple Geometry. All polygons will be contained in a multipolygon.'"
"GDAL_ERROR 1: b'organizePolygons() received an unexpected geometry. 
 Either a polygon with interior rings, or a polygon with less than 4 
points, or a non-Polygon geometry.  Return arguments as a collection.'"
"GEOS_ERROR: IllegalArgumentException: Invalid number of points in 
LinearRing found 3 - must be 0 or >= 4"
"Failed to save the feature (id: 5572) into the model with the keyword 
arguments:"
And the final Exception:
"GEOSException: Error encountered checking Geometry returned from GEOS C 
function "GEOSWKTReader_read_r"."

The best description of the issue I can find is 
https://github.com/r-spatial/sf/issues/1589. In this help thread, and a 
related one, they talk about a utility called "MakeValid" to resolve this 
LinearRing issue.

It appears I need to either add a point to any of these "LinearRing" 
instances, or somehow otherwise fix these items.

I'm not sure that sending the ShapeFiles back to the County to "fix" would 
be productive.

Does anyone have anything to contribute as far as how I might best move 
forward with this set of ShapeFiles?

Is there another forum where I should be addressing this issue? Need more 
information?

Thanks!

Steve Watts

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/82fe8d9e-e83a-4e6c-bde1-1665ddd45670n%40googlegroups.com.


Re: GeoDjango with SpatialLite on Windows 10

2021-08-15 Thread Tugg Speedman
OK, I got it.

As it turns out, GDAL has everything you need, including the SQLite 
database. There is only one important fact, you have to load the DLL prior 
Django loads his SQLite. Because Django loads the one from Python it self. 
Therefore i did put the necessary code into the settings.py. Because Django 
has first to load the settings, before it can load the correct database 
middleware (SQLite, PostgreSQL, MariaDB,...). The code is in the Picture 
below.

P.S.: The Tutorial is not quiet accurate. The Geographic Model from there 
(https://docs.djangoproject.com/en/3.2/ref/contrib/gis/tutorial/#defining-a-geographic-model)
 
should allow NULL for the polygon field:
mpoly = models.MultiPolygonField(null=True)
This is neccessary because the ZIP you offer there has incomplete data. At 
least good old England (to be precise: United Kingdom) has no pylogon data, 
maybe some more countries. I didn't check further. Therefore you can't load 
the "TM_WORLD_BORDERS-0.3.shp" as instructed 
(https://docs.djangoproject.com/en/3.2/ref/contrib/gis/tutorial/#layermapping).

Should I open a ticket for this, or is this mailing list enough?
[image: settings.png]
Tugg Speedman schrieb am Freitag, 13. August 2021 um 18:41:22 UTC+2:

> Ah OK, this was helpful. I never thought about this, but as it turns out 
> on Windows, Python ships with it's own compiled version of SQLite (see 
> picture below). This is problematic. If i just swap this DLL with another 
> one, I would change every other Python Script on my machine. Hmm..., is it 
> possible to change some environment Paths in a venv and just point to 
> another DLL? I have to look this up. Thanks a lot Micheal.
>
> [image: sqlite.png]
>
> Michael Ross schrieb am Freitag, 13. August 2021 um 00:51:02 UTC+2:
>
>> On Thu, 12 Aug 2021 04:15:57 -0700 (PDT)
>> Tugg Speedman  wrote:
>>
>> > 
>> > Hello everyone,
>> > 
>> > I'm new to GeoDjango and therefore I tried to follow the tutorial 
>> > (https://docs.djangoproject.com/en/3.2/ref/contrib/gis/tutorial/) 
>> first. 
>> > But the problem is, it doesn't work with SQLite a.k.a SpatialLite. When 
>> I 
>> > try to build the migrations, a Windows error pops up (see picture 
>> below). 
>> > It's german and says there is no entry point in gdal301.dll.
>> > 
>> > So why do I post this problem here in Django mailing list? Because the 
>> > Tutorial is very fuzzy for Spatial & Windows. It basically just says 
>> > download the SQLite files from here: https://www.gaia-gis.it/gaia-sins/
>> > 
>> > But what to do with this files? Can I put them wherever I want? Do I 
>> have 
>> > to add them on System/Python path?
>> > 
>> > I would really appreciate any help
>> > Thank you[image: error.png]
>>
>> Maybe this helps:
>>
>>
>> https://stackoverflow.com/questions/53682315/error-on-libcurl-dll-when-using-gdal-of-osgeo4w-in-django
>>
>> TLDR: IntelliJ loads wrong sqlite3.dll?
>>
>> -- 
>> Michael Ross 
>>
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/e0fb9baa-dbcb-4d6a-a566-a91c7b8d362cn%40googlegroups.com.


Re: GeoDjango with SpatialLite on Windows 10

2021-08-12 Thread Michael Ross
On Thu, 12 Aug 2021 04:15:57 -0700 (PDT)
Tugg Speedman  wrote:

> 
> Hello everyone,
> 
> I'm new to GeoDjango and therefore I tried to follow the tutorial 
> (https://docs.djangoproject.com/en/3.2/ref/contrib/gis/tutorial/) first. 
> But the problem is, it doesn't work with SQLite a.k.a SpatialLite. When I 
> try to build the migrations, a Windows error pops up (see picture below). 
> It's german and says there is no entry point in gdal301.dll.
> 
> So why do I post this problem here in Django mailing list? Because the 
> Tutorial is very fuzzy for Spatial & Windows. It basically just says 
> download the SQLite files from here: https://www.gaia-gis.it/gaia-sins/
> 
> But what to do with this files? Can I put them wherever I want? Do I have 
> to add them on System/Python path?
> 
> I would really appreciate any help
> Thank you[image: error.png]

Maybe this helps:

https://stackoverflow.com/questions/53682315/error-on-libcurl-dll-when-using-gdal-of-osgeo4w-in-django

TLDR: IntelliJ loads wrong sqlite3.dll?

-- 
Michael Ross 

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/20210813004952.44506dd5571d092c0fcef804%40ross.cx.


GeoDjango with SpatialLite on Windows 10

2021-08-12 Thread Tugg Speedman

Hello everyone,

I'm new to GeoDjango and therefore I tried to follow the tutorial 
(https://docs.djangoproject.com/en/3.2/ref/contrib/gis/tutorial/) first. 
But the problem is, it doesn't work with SQLite a.k.a SpatialLite. When I 
try to build the migrations, a Windows error pops up (see picture below). 
It's german and says there is no entry point in gdal301.dll.

So why do I post this problem here in Django mailing list? Because the 
Tutorial is very fuzzy for Spatial & Windows. It basically just says 
download the SQLite files from here: https://www.gaia-gis.it/gaia-sins/

But what to do with this files? Can I put them wherever I want? Do I have 
to add them on System/Python path?

I would really appreciate any help
Thank you[image: error.png]

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/45d49863-7849-4388-a8e6-181745a7a204n%40googlegroups.com.


Re: location based web app with django and geodjango

2021-06-20 Thread Stathis Angelou
Good evening all,
following my application development, I have reached to the stage where I 
am about to add some data using data migrations.
I did download some data from OSM (saved as json), added a load data 
function but when i run the migrate command I get a keyerror in my 
migration files:   

File 
"/home/qgislinuxadmin/nearbyshops/shops/migrations/0002_auto_20210618_2102.py", 
line 18, in load_data
for obj in objects['elements']:
KeyError: 'elements'

which would mean that the key in not in a dictionary.
Any help or advice would be appreciated

Kind  Regards

Stathis 
On Tuesday, June 15, 2021 at 12:01:19 PM UTC+1 Stathis Angelou wrote:

>
> Good morning Both and thank you very much for your help,
>
> Yes that worked!!?
> Thank you again,
> off for the next step!!
>
> Kind Regards
>
> Stathis
>
> On Tuesday, June 15, 2021 at 10:05:16 AM UTC+1 Nikeet NA wrote:
>
>> Your app is not registered in settings file as stated by Aritra.
>>
>> On Tuesday, 15 June 2021 at 14:22:45 UTC+5:30 arit...@gmail.com wrote:
>>
>>> Hello, 
>>> Register your app in setting.py-> INSTALLED_APPS like 
>>> 'appname.apps.appnameConfig' from your apps.py. Alternatively, you can 
>>> write 'app_name' instead of the whole sentence.
>>>
>>> Regards,
>>> Aritra.
>>>
>>> On Tue, 15 Jun 2021 at 05:46, Stathis Angelou  
>>> wrote:
>>>
 good evening all,

 I have started building a webapp using python, django and linux, but 
 i'm afraid the app does not appear under admin tab in 
 127.0.0.1:8000/admin
 I am sure I am missing something, attached is my code

 Thank you in advance
 Stathis

 -- 
 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/f96dec5e-7f33-43d5-b48b-283460668f5an%40googlegroups.com
  
 
 .

>>>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/cb7f9498-97ea-4769-8638-638a101ccaf9n%40googlegroups.com.
# Generated by Django 3.2.4 on 2021-06-18 21:02

from os import name
from django.db import migrations
import json
from django.contrib.gis.geos import fromstr
from pathlib import Path

DATA_FILENAME = 'data.json'


def load_data(apps, schema_editor):
Shop = apps.get_model('shops', 'Shop')
jsonfile = Path(__file__).parents[2] / DATA_FILENAME

with open(str(jsonfile)) as datafile:
objects = json.load(datafile)
for obj in objects['elements']:
try:
objType = obj['type']
if objType == 'node':
tags = obj['tags']
name = tags.get('name', 'no-name')
longitude = obj.get('lon', 0)
latitude = obj.get('lat', 0)
location = fromstr(
f'POINT({longitude} {latitude})', srid=4326
)
Shop(name=name, location=location).save()
except KeyError:
pass


class Migration(migrations.Migration):

dependencies = [
('shops', '0001_initial'),
]

operations = [
migrations.RunPython(load_data)
]


Re: location based web app with django and geodjango

2021-06-15 Thread Stathis Angelou

Good morning Both and thank you very much for your help,

Yes that worked!!?
Thank you again,
off for the next step!!

Kind Regards

Stathis

On Tuesday, June 15, 2021 at 10:05:16 AM UTC+1 Nikeet NA wrote:

> Your app is not registered in settings file as stated by Aritra.
>
> On Tuesday, 15 June 2021 at 14:22:45 UTC+5:30 arit...@gmail.com wrote:
>
>> Hello, 
>> Register your app in setting.py-> INSTALLED_APPS like 
>> 'appname.apps.appnameConfig' from your apps.py. Alternatively, you can 
>> write 'app_name' instead of the whole sentence.
>>
>> Regards,
>> Aritra.
>>
>> On Tue, 15 Jun 2021 at 05:46, Stathis Angelou  wrote:
>>
>>> good evening all,
>>>
>>> I have started building a webapp using python, django and linux, but i'm 
>>> afraid the app does not appear under admin tab in 127.0.0.1:8000/admin
>>> I am sure I am missing something, attached is my code
>>>
>>> Thank you in advance
>>> Stathis
>>>
>>> -- 
>>> 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/f96dec5e-7f33-43d5-b48b-283460668f5an%40googlegroups.com
>>>  
>>> 
>>> .
>>>
>>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/c960259e-2f2e-463c-a5b5-1eb1231b48b0n%40googlegroups.com.


Re: location based web app with django and geodjango

2021-06-15 Thread Nikeet NA
Your app is not registered in settings file as stated by Aritra.

On Tuesday, 15 June 2021 at 14:22:45 UTC+5:30 arit...@gmail.com wrote:

> Hello, 
> Register your app in setting.py-> INSTALLED_APPS like 
> 'appname.apps.appnameConfig' from your apps.py. Alternatively, you can 
> write 'app_name' instead of the whole sentence.
>
> Regards,
> Aritra.
>
> On Tue, 15 Jun 2021 at 05:46, Stathis Angelou  wrote:
>
>> good evening all,
>>
>> I have started building a webapp using python, django and linux, but i'm 
>> afraid the app does not appear under admin tab in 127.0.0.1:8000/admin
>> I am sure I am missing something, attached is my code
>>
>> Thank you in advance
>> Stathis
>>
>> -- 
>> 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/f96dec5e-7f33-43d5-b48b-283460668f5an%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/274673a6-fd60-403e-a9e0-c6976bff99d4n%40googlegroups.com.


Re: location based web app with django and geodjango

2021-06-15 Thread Aritra Ray
Hello,
Register your app in setting.py-> INSTALLED_APPS like
'appname.apps.appnameConfig' from your apps.py. Alternatively, you can
write 'app_name' instead of the whole sentence.

Regards,
Aritra.

On Tue, 15 Jun 2021 at 05:46, Stathis Angelou  wrote:

> good evening all,
>
> I have started building a webapp using python, django and linux, but i'm
> afraid the app does not appear under admin tab in 127.0.0.1:8000/admin
> I am sure I am missing something, attached is my code
>
> Thank you in advance
> Stathis
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/f96dec5e-7f33-43d5-b48b-283460668f5an%40googlegroups.com
> 
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAFecadsoLmb6WPRyZG1WaMu54a0_jg15zQBE70XvLBzoznysTw%40mail.gmail.com.


Re: location based web app with django and geodjango

2021-06-15 Thread Stathis Angelou
Good morning Nikeet and thank you for your response, i am afraid i am
still not getting the web app yet on my admin page

Kind Regards

Stathis
On Tuesday, June 15, 2021 at 1:27:03 AM UTC+1 Nikeet NA wrote:

> Replace admin.site.register(Report) with this @admin.register(Report)
>
> On Tuesday, 15 June 2021 at 05:46:46 UTC+5:30 staka...@gmail.com wrote:
>
>> good evening all,
>>
>> I have started building a webapp using python, django and linux, but i'm 
>> afraid the app does not appear under admin tab in 127.0.0.1:8000/admin
>> I am sure I am missing something, attached is my code
>>
>> Thank you in advance
>> Stathis
>>
>>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/2c0226e0-be5c-487f-8776-436e9baccd4fn%40googlegroups.com.


Re: location based web app with django and geodjango

2021-06-15 Thread Stathis Angelou
Good morning Nikeet and thank you for your response, i am afraid i am
still not getting the web app yet on my admin page

Kind Regards

Stathis

Στις Τρί, 15 Ιουν 2021 στις 1:27 π.μ., ο/η Nikeet NA
 έγραψε:
>
> Replace admin.site.register(Report) with this @admin.register(Report)
>
> On Tuesday, 15 June 2021 at 05:46:46 UTC+5:30 staka...@gmail.com wrote:
>>
>> good evening all,
>>
>> I have started building a webapp using python, django and linux, but i'm 
>> afraid the app does not appear under admin tab in 127.0.0.1:8000/admin
>> I am sure I am missing something, attached is my code
>>
>> Thank you in advance
>> Stathis
>>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/15cbe9a7-fb69-4498-a726-1b6613c6536an%40googlegroups.com.

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAO0H-H9M-1yXoeKbuZCrkbYCV68UJZ05BQS0A0AKa3zuG7DAHw%40mail.gmail.com.


Re: location based web app with django and geodjango

2021-06-14 Thread Nikeet NA
Replace admin.site.register(Report) with this @admin.register(Report)

On Tuesday, 15 June 2021 at 05:46:46 UTC+5:30 staka...@gmail.com wrote:

> good evening all,
>
> I have started building a webapp using python, django and linux, but i'm 
> afraid the app does not appear under admin tab in 127.0.0.1:8000/admin
> I am sure I am missing something, attached is my code
>
> Thank you in advance
> Stathis
>
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/15cbe9a7-fb69-4498-a726-1b6613c6536an%40googlegroups.com.


location based web app with django and geodjango

2021-06-14 Thread Stathis Angelou
good evening all,

I have started building a webapp using python, django and linux, but i'm 
afraid the app does not appear under admin tab in 127.0.0.1:8000/admin
I am sure I am missing something, attached is my code

Thank you in advance
Stathis

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/f96dec5e-7f33-43d5-b48b-283460668f5an%40googlegroups.com.
from django.contrib import admin
from django.contrib.gis.admin import OSMGeoAdmin
from .models import Report

admin.site.register(Report)
class ReportAdmin(OSMGeoAdmin):
list_display = ('name','location')

# Register your models here.
from django.contrib.gis.db import models

class Incident(models.Model):
name = models.CharField(max_length=100)
location = models.PointField()
address = models.CharField(max_length=100)
ward = models.CharField(max_length=50)
# Create your models here.
from django.apps import AppConfig


class ReportsConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'reports'
"""
Django settings for incidents project.

Generated by 'django-admin startproject' using Django 3.2.4.

For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/

For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""

from pathlib import Path

# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent


# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/3.2/howto/deployment/checklist/

# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'django-insecure-*#kfn*+a!qz_*u!r#c9s2pq1f@$5^2=&!2fg@mfhto1ot!)ndi'

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True

ALLOWED_HOSTS = ['*']


# Application definition

INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.gis',
'incidents',
]

MIDDLEWARE = [
'django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
]

ROOT_URLCONF = 'incidents.urls'

TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
'django.template.context_processors.debug',
'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
],
},
},
]

WSGI_APPLICATION = 'incidents.wsgi.application'


# Database
# https://docs.djangoproject.com/en/3.2/ref/settings/#databases

DATABASES = {
'default': {
'ENGINE': 'django.contrib.gis.db.backends.postgis',
'NAME': 'postgres',
'USER' : 'postgres',
'PASSWORD' : '***',
'HOST' : 'localhost',
'PORT' : '5432'
}
}


# Password validation
# https://docs.djangoproject.com/en/3.2/ref/settings/#auth-password-validators

AUTH_PASSWORD_VALIDATORS = [
{
'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
},
]


# Internationalization
# https://docs.djangoproject.com/en/3.2/topics/i18n/

LANGUAGE_CODE = 'en-us'

TIME_ZONE = 'UTC'

USE_I18N = True

USE_L10N = True

USE_TZ = True


# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/3.2/howto/static-files/

STATIC_URL = '/static/'

# Default primary key field type
# https://docs.djangoproject.com/en/3.2/ref/settings/#default-auto-field

DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'

Re: Integrating GeoDjango with Esri API

2020-11-22 Thread Derek
Some other (possibly useful) links are:

* https://www.youtube.com/watch?v=1-7KUHLTqjs - edit data with QGIS instead 
of GeoDjango
* 
https://stackoverflow.com/questions/19160349/geodjango-geoserver-openlayers-for-dynamic-mapping
 
- replace "geosever" with "arcmap" and the same principles apply
* 
https://desktop.arcgis.com/en/arcmap/latest/extensions/production-mapping/data-editing-with-wfs-services.htm
 
- ESRI notes on using WFS to edit data

On Friday, 20 November 2020 at 23:50:53 UTC+2 Rodrigo Culagovski wrote:

> Not looking for a general intro to geodjango, but rather what I asked. 
> Thanks anyway.
>
> Saludos,
>   *Rodrigo Culagovski*
> Director
> +569 7667 0402 <+56%209%207667%200402>
> H98R+8C Santiago
>
>
> On Fri, 20 Nov 2020 at 17:55, Dhruvil Shah  wrote:
>
>> I don't think. so, it's basic project on how to use it and also find 
>> distance from your current location to what u write in text box. 
>>
>> On Sat, 21 Nov 2020, 01:58 Rodrigo Culagovski,  wrote:
>>
>>> Does it connect to ESRI services? I can't find any reference to that in 
>>> the video, and that's what I specifically need.
>>>
>>> Saludos,
>>>   *Rodrigo Culagovski*
>>> Director
>>> +569 7667 0402 <+56%209%207667%200402>
>>> H98R+8C Santiago
>>>
>>>
>>>
>>> On Fri, 20 Nov 2020 at 15:43, Dhruvil Shah  wrote:
>>>
>>>> You can follow this YouTuber he has made a project on GeoDjango.
>>>>
>>>> https://youtu.be/_KIMevaubfQ
>>>>
>>>>
>>>> On Fri, 20 Nov 2020, 18:29 Rodrigo Cea,  wrote:
>>>>
>>>>> I'm developing a mapping website. I will be consuming map layers from 
>>>>> ESRI Online. I see they have a fairly sophisticated Python API. The site 
>>>>> will be django based. I wonder how easy it would be to use GeoDjango for 
>>>>> local storage and editing of geographical  data as well as other, not 
>>>>> geolocated info, and using the ESRI api to sync it to ESRI's servers and 
>>>>> generate maps?
>>>>>
>>>>> Using ESRI maps and interacting with other ESRI based sites is a 
>>>>> client requirement, and non-negotiable.
>>>>>
>>>>> -- 
>>>>> 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/1a346478-d46a-43d7-9621-3a1859133774n%40googlegroups.com
>>>>>  
>>>>> <https://groups.google.com/d/msgid/django-users/1a346478-d46a-43d7-9621-3a1859133774n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>> .
>>>>>
>>>> -- 
>>>> You received this message because you are subscribed to a topic in the 
>>>> Google Groups "Django users" group.
>>>> To unsubscribe from this topic, visit 
>>>> https://groups.google.com/d/topic/django-users/W4ps2dL4er0/unsubscribe.
>>>> To unsubscribe from this group and all its topics, send an email to 
>>>> django-users...@googlegroups.com.
>>>> To view this discussion on the web visit 
>>>> https://groups.google.com/d/msgid/django-users/CADsP_izDws3Msb0uRdvkt1zi0FFPvKN8h8A8RHnE_PfXbBq_MQ%40mail.gmail.com
>>>>  
>>>> <https://groups.google.com/d/msgid/django-users/CADsP_izDws3Msb0uRdvkt1zi0FFPvKN8h8A8RHnE_PfXbBq_MQ%40mail.gmail.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/CALU%3DqNN3o9ojR5AuVrp%3DoAFpOUkS2%2Bh%2B9get_3%2B2U54Qkpk2Ug%40mail.gmail.com
>>>  
>>> <https://groups.google.com/d/msgid/django-users/CALU%3DqNN3o9ojR5AuVrp%3DoAFpOUkS2%2Bh%2B9get_3%2B2U54Qkpk2Ug%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> -- 
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "Django users" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/django-users/W4ps2dL4er0/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to 
>> django-users...@googlegroups.com.
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/CADsP_iy%2BX3Ye08yVR22PaFoRNv-QL%2BfegBr9ieAZkWQWCWD67Q%40mail.gmail.com
>>  
>> <https://groups.google.com/d/msgid/django-users/CADsP_iy%2BX3Ye08yVR22PaFoRNv-QL%2BfegBr9ieAZkWQWCWD67Q%40mail.gmail.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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/7d418d79-cbcc-4d08-9930-0efaf4f1201cn%40googlegroups.com.


Re: Integrating GeoDjango with Esri API

2020-11-20 Thread Rodrigo Culagovski
Not looking for a general intro to geodjango, but rather what I asked.
Thanks anyway.

Saludos,
  *Rodrigo Culagovski*
Director
+569 7667 0402
H98R+8C Santiago



On Fri, 20 Nov 2020 at 17:55, Dhruvil Shah  wrote:

> I don't think. so, it's basic project on how to use it and also find
> distance from your current location to what u write in text box.
>
> On Sat, 21 Nov 2020, 01:58 Rodrigo Culagovski,  wrote:
>
>> Does it connect to ESRI services? I can't find any reference to that in
>> the video, and that's what I specifically need.
>>
>> Saludos,
>>   *Rodrigo Culagovski*
>> Director
>> +569 7667 0402
>> H98R+8C Santiago
>>
>>
>>
>> On Fri, 20 Nov 2020 at 15:43, Dhruvil Shah  wrote:
>>
>>> You can follow this YouTuber he has made a project on GeoDjango.
>>>
>>> https://youtu.be/_KIMevaubfQ
>>>
>>>
>>> On Fri, 20 Nov 2020, 18:29 Rodrigo Cea,  wrote:
>>>
>>>> I'm developing a mapping website. I will be consuming map layers from
>>>> ESRI Online. I see they have a fairly sophisticated Python API. The site
>>>> will be django based. I wonder how easy it would be to use GeoDjango for
>>>> local storage and editing of geographical  data as well as other, not
>>>> geolocated info, and using the ESRI api to sync it to ESRI's servers and
>>>> generate maps?
>>>>
>>>> Using ESRI maps and interacting with other ESRI based sites is a client
>>>> requirement, and non-negotiable.
>>>>
>>>> --
>>>> 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+unsubscr...@googlegroups.com.
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/django-users/1a346478-d46a-43d7-9621-3a1859133774n%40googlegroups.com
>>>> <https://groups.google.com/d/msgid/django-users/1a346478-d46a-43d7-9621-3a1859133774n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>> --
>>> You received this message because you are subscribed to a topic in the
>>> Google Groups "Django users" group.
>>> To unsubscribe from this topic, visit
>>> https://groups.google.com/d/topic/django-users/W4ps2dL4er0/unsubscribe.
>>> To unsubscribe from this group and all its topics, send an email to
>>> django-users+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CADsP_izDws3Msb0uRdvkt1zi0FFPvKN8h8A8RHnE_PfXbBq_MQ%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CADsP_izDws3Msb0uRdvkt1zi0FFPvKN8h8A8RHnE_PfXbBq_MQ%40mail.gmail.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+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CALU%3DqNN3o9ojR5AuVrp%3DoAFpOUkS2%2Bh%2B9get_3%2B2U54Qkpk2Ug%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CALU%3DqNN3o9ojR5AuVrp%3DoAFpOUkS2%2Bh%2B9get_3%2B2U54Qkpk2Ug%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Django users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/django-users/W4ps2dL4er0/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CADsP_iy%2BX3Ye08yVR22PaFoRNv-QL%2BfegBr9ieAZkWQWCWD67Q%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CADsP_iy%2BX3Ye08yVR22PaFoRNv-QL%2BfegBr9ieAZkWQWCWD67Q%40mail.gmail.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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CALU%3DqNOkhg_yqtXtJ_eTTvKtcFNfmOYMXQDGH13N6LmzdGfdEw%40mail.gmail.com.


Re: Integrating GeoDjango with Esri API

2020-11-20 Thread Rodrigo Culagovski
Great, thanks.

Saludos,
  *Rodrigo Culagovski*
Director
+569 7667 0402
H98R+8C Santiago



On Fri, 20 Nov 2020 at 18:26, Mohammed Alnajdi  wrote:

> Yes it does. It connects to the Esri WMS. if you actually read the docs
> enough you will find it.
>
> On Fri, Nov 20, 2020 at 9:33 PM Rodrigo Culagovski 
> wrote:
>
>> Does it connect to ESRI services? I can't find any reference to that on
>> their site, and that's what I specifically need.
>>
>> Saludos,
>>   *Rodrigo Culagovski*
>> Director
>> +569 7667 0402
>> H98R+8C Santiago
>>
>>
>>
>> On Fri, 20 Nov 2020 at 14:37, Mohammed Alnajdi 
>> wrote:
>>
>>> You might want to check out the GeoNode project.
>>>
>>> Sent from my iPhone
>>>
>>> On 20 Nov 2020, at 3:58 PM, Rodrigo Cea  wrote:
>>>
>>> I'm developing a mapping website. I will be consuming map layers from
>>> ESRI Online. I see they have a fairly sophisticated Python API. The site
>>> will be django based. I wonder how easy it would be to use GeoDjango for
>>> local storage and editing of geographical  data as well as other, not
>>> geolocated info, and using the ESRI api to sync it to ESRI's servers and
>>> generate maps?
>>>
>>> Using ESRI maps and interacting with other ESRI based sites is a client
>>> requirement, and non-negotiable.
>>>
>>> --
>>> 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+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/1a346478-d46a-43d7-9621-3a1859133774n%40googlegroups.com
>>> <https://groups.google.com/d/msgid/django-users/1a346478-d46a-43d7-9621-3a1859133774n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>> --
>>> You received this message because you are subscribed to a topic in the
>>> Google Groups "Django users" group.
>>> To unsubscribe from this topic, visit
>>> https://groups.google.com/d/topic/django-users/W4ps2dL4er0/unsubscribe.
>>> To unsubscribe from this group and all its topics, send an email to
>>> django-users+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/649D465B-F799-4D4E-BACB-F3D165A7BA0A%40gmail.com
>>> <https://groups.google.com/d/msgid/django-users/649D465B-F799-4D4E-BACB-F3D165A7BA0A%40gmail.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+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CALU%3DqNMf9SJPYObpj5fbGmnfG2hfr_Yg8kEfZzPdn7nQ9oFyhQ%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CALU%3DqNMf9SJPYObpj5fbGmnfG2hfr_Yg8kEfZzPdn7nQ9oFyhQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Django users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/django-users/W4ps2dL4er0/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAOu2D2s%3DYxCDH94cjwk-CZ02WMhwsTz_MvXCrNJiubqP_z677Q%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAOu2D2s%3DYxCDH94cjwk-CZ02WMhwsTz_MvXCrNJiubqP_z677Q%40mail.gmail.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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CALU%3DqNNC1%2B1HnYS_5ZkJNgYvKV0BnZVj6FR1LoTZpVtuwabsHQ%40mail.gmail.com.


Re: Integrating GeoDjango with Esri API

2020-11-20 Thread Mohammed Alnajdi
Yes it does. It connects to the Esri WMS. if you actually read the docs
enough you will find it.

On Fri, Nov 20, 2020 at 9:33 PM Rodrigo Culagovski 
wrote:

> Does it connect to ESRI services? I can't find any reference to that on
> their site, and that's what I specifically need.
>
> Saludos,
>   *Rodrigo Culagovski*
> Director
> +569 7667 0402
> H98R+8C Santiago
>
>
>
> On Fri, 20 Nov 2020 at 14:37, Mohammed Alnajdi 
> wrote:
>
>> You might want to check out the GeoNode project.
>>
>> Sent from my iPhone
>>
>> On 20 Nov 2020, at 3:58 PM, Rodrigo Cea  wrote:
>>
>> I'm developing a mapping website. I will be consuming map layers from
>> ESRI Online. I see they have a fairly sophisticated Python API. The site
>> will be django based. I wonder how easy it would be to use GeoDjango for
>> local storage and editing of geographical  data as well as other, not
>> geolocated info, and using the ESRI api to sync it to ESRI's servers and
>> generate maps?
>>
>> Using ESRI maps and interacting with other ESRI based sites is a client
>> requirement, and non-negotiable.
>>
>> --
>> 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+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/1a346478-d46a-43d7-9621-3a1859133774n%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-users/1a346478-d46a-43d7-9621-3a1859133774n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "Django users" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/django-users/W4ps2dL4er0/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to
>> django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/649D465B-F799-4D4E-BACB-F3D165A7BA0A%40gmail.com
>> <https://groups.google.com/d/msgid/django-users/649D465B-F799-4D4E-BACB-F3D165A7BA0A%40gmail.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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CALU%3DqNMf9SJPYObpj5fbGmnfG2hfr_Yg8kEfZzPdn7nQ9oFyhQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CALU%3DqNMf9SJPYObpj5fbGmnfG2hfr_Yg8kEfZzPdn7nQ9oFyhQ%40mail.gmail.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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAOu2D2s%3DYxCDH94cjwk-CZ02WMhwsTz_MvXCrNJiubqP_z677Q%40mail.gmail.com.


Re: Integrating GeoDjango with Esri API

2020-11-20 Thread Dhruvil Shah
I don't think. so, it's basic project on how to use it and also find
distance from your current location to what u write in text box.

On Sat, 21 Nov 2020, 01:58 Rodrigo Culagovski,  wrote:

> Does it connect to ESRI services? I can't find any reference to that in
> the video, and that's what I specifically need.
>
> Saludos,
>   *Rodrigo Culagovski*
> Director
> +569 7667 0402
> H98R+8C Santiago
>
>
>
> On Fri, 20 Nov 2020 at 15:43, Dhruvil Shah  wrote:
>
>> You can follow this YouTuber he has made a project on GeoDjango.
>>
>> https://youtu.be/_KIMevaubfQ
>>
>>
>> On Fri, 20 Nov 2020, 18:29 Rodrigo Cea,  wrote:
>>
>>> I'm developing a mapping website. I will be consuming map layers from
>>> ESRI Online. I see they have a fairly sophisticated Python API. The site
>>> will be django based. I wonder how easy it would be to use GeoDjango for
>>> local storage and editing of geographical  data as well as other, not
>>> geolocated info, and using the ESRI api to sync it to ESRI's servers and
>>> generate maps?
>>>
>>> Using ESRI maps and interacting with other ESRI based sites is a client
>>> requirement, and non-negotiable.
>>>
>>> --
>>> 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+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/1a346478-d46a-43d7-9621-3a1859133774n%40googlegroups.com
>>> <https://groups.google.com/d/msgid/django-users/1a346478-d46a-43d7-9621-3a1859133774n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "Django users" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/django-users/W4ps2dL4er0/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to
>> django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CADsP_izDws3Msb0uRdvkt1zi0FFPvKN8h8A8RHnE_PfXbBq_MQ%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CADsP_izDws3Msb0uRdvkt1zi0FFPvKN8h8A8RHnE_PfXbBq_MQ%40mail.gmail.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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CALU%3DqNN3o9ojR5AuVrp%3DoAFpOUkS2%2Bh%2B9get_3%2B2U54Qkpk2Ug%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CALU%3DqNN3o9ojR5AuVrp%3DoAFpOUkS2%2Bh%2B9get_3%2B2U54Qkpk2Ug%40mail.gmail.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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CADsP_iy%2BX3Ye08yVR22PaFoRNv-QL%2BfegBr9ieAZkWQWCWD67Q%40mail.gmail.com.


Re: Integrating GeoDjango with Esri API

2020-11-20 Thread Rodrigo Culagovski
Does it connect to ESRI services? I can't find any reference to that in the
video, and that's what I specifically need.

Saludos,
  *Rodrigo Culagovski*
Director
+569 7667 0402
H98R+8C Santiago



On Fri, 20 Nov 2020 at 15:43, Dhruvil Shah  wrote:

> You can follow this YouTuber he has made a project on GeoDjango.
>
> https://youtu.be/_KIMevaubfQ
>
>
> On Fri, 20 Nov 2020, 18:29 Rodrigo Cea,  wrote:
>
>> I'm developing a mapping website. I will be consuming map layers from
>> ESRI Online. I see they have a fairly sophisticated Python API. The site
>> will be django based. I wonder how easy it would be to use GeoDjango for
>> local storage and editing of geographical  data as well as other, not
>> geolocated info, and using the ESRI api to sync it to ESRI's servers and
>> generate maps?
>>
>> Using ESRI maps and interacting with other ESRI based sites is a client
>> requirement, and non-negotiable.
>>
>> --
>> 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+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/1a346478-d46a-43d7-9621-3a1859133774n%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-users/1a346478-d46a-43d7-9621-3a1859133774n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Django users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/django-users/W4ps2dL4er0/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CADsP_izDws3Msb0uRdvkt1zi0FFPvKN8h8A8RHnE_PfXbBq_MQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CADsP_izDws3Msb0uRdvkt1zi0FFPvKN8h8A8RHnE_PfXbBq_MQ%40mail.gmail.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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CALU%3DqNN3o9ojR5AuVrp%3DoAFpOUkS2%2Bh%2B9get_3%2B2U54Qkpk2Ug%40mail.gmail.com.


Re: Integrating GeoDjango with Esri API

2020-11-20 Thread Dhruvil Shah
You can follow this YouTuber he has made a project on GeoDjango.

https://youtu.be/_KIMevaubfQ


On Fri, 20 Nov 2020, 18:29 Rodrigo Cea,  wrote:

> I'm developing a mapping website. I will be consuming map layers from ESRI
> Online. I see they have a fairly sophisticated Python API. The site will be
> django based. I wonder how easy it would be to use GeoDjango for local
> storage and editing of geographical  data as well as other, not geolocated
> info, and using the ESRI api to sync it to ESRI's servers and generate maps?
>
> Using ESRI maps and interacting with other ESRI based sites is a client
> requirement, and non-negotiable.
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/1a346478-d46a-43d7-9621-3a1859133774n%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/1a346478-d46a-43d7-9621-3a1859133774n%40googlegroups.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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CADsP_izDws3Msb0uRdvkt1zi0FFPvKN8h8A8RHnE_PfXbBq_MQ%40mail.gmail.com.


Re: Integrating GeoDjango with Esri API

2020-11-20 Thread Rodrigo Culagovski
Does it connect to ESRI services? I can't find any reference to that on
their site, and that's what I specifically need.

Saludos,
  *Rodrigo Culagovski*
Director
+569 7667 0402
H98R+8C Santiago



On Fri, 20 Nov 2020 at 14:37, Mohammed Alnajdi  wrote:

> You might want to check out the GeoNode project.
>
> Sent from my iPhone
>
> On 20 Nov 2020, at 3:58 PM, Rodrigo Cea  wrote:
>
> I'm developing a mapping website. I will be consuming map layers from
> ESRI Online. I see they have a fairly sophisticated Python API. The site
> will be django based. I wonder how easy it would be to use GeoDjango for
> local storage and editing of geographical  data as well as other, not
> geolocated info, and using the ESRI api to sync it to ESRI's servers and
> generate maps?
>
> Using ESRI maps and interacting with other ESRI based sites is a client
> requirement, and non-negotiable.
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/1a346478-d46a-43d7-9621-3a1859133774n%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/1a346478-d46a-43d7-9621-3a1859133774n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Django users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/django-users/W4ps2dL4er0/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/649D465B-F799-4D4E-BACB-F3D165A7BA0A%40gmail.com
> <https://groups.google.com/d/msgid/django-users/649D465B-F799-4D4E-BACB-F3D165A7BA0A%40gmail.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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CALU%3DqNMf9SJPYObpj5fbGmnfG2hfr_Yg8kEfZzPdn7nQ9oFyhQ%40mail.gmail.com.


Re: Integrating GeoDjango with Esri API

2020-11-20 Thread Mohammed Alnajdi
You might want to check out the GeoNode project. 

Sent from my iPhone

> On 20 Nov 2020, at 3:58 PM, Rodrigo Cea  wrote:
> 
> I'm developing a mapping website. I will be consuming map layers from ESRI 
> Online. I see they have a fairly sophisticated Python API. The site will be 
> django based. I wonder how easy it would be to use GeoDjango for local 
> storage and editing of geographical  data as well as other, not geolocated 
> info, and using the ESRI api to sync it to ESRI's servers and generate maps?
> 
> Using ESRI maps and interacting with other ESRI based sites is a client 
> requirement, and non-negotiable.
> -- 
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/1a346478-d46a-43d7-9621-3a1859133774n%40googlegroups.com.

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/649D465B-F799-4D4E-BACB-F3D165A7BA0A%40gmail.com.


Integrating GeoDjango with Esri API

2020-11-20 Thread Rodrigo Cea
I'm developing a mapping website. I will be consuming map layers from ESRI 
Online. I see they have a fairly sophisticated Python API. The site will be 
django based. I wonder how easy it would be to use GeoDjango for local 
storage and editing of geographical  data as well as other, not geolocated 
info, and using the ESRI api to sync it to ESRI's servers and generate maps?

Using ESRI maps and interacting with other ESRI based sites is a client 
requirement, and non-negotiable.

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/1a346478-d46a-43d7-9621-3a1859133774n%40googlegroups.com.


Re: I want to store (City, Country) pairs in my models as a field. Is GeoDjango an overkill for my use case?

2020-09-17 Thread Carles Pina i Estany


Hi,

On Sep/17/2020, John Reese wrote:
> I want to store (City, Country) pairs in my models as a field. I want to do
> something like this <https://stackoverflow.com/jobs> (the location field).
> 
> *Is GeoDjango an overkill for my use case? If yes, what do you suggest me
> to use?*

I've read your question in multiple places I think!

I would seriously consider just using:
https://django-autocomplete-light.readthedocs.io/en/master/

You would need to have in your Django app the cities and countries,
tweak the query from django-autocomplete-light, etc.

Cheers,

-- 
Carles Pina i Estany
https://carles.pina.cat

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/20200917204747.GA3581%40pina.cat.


I want to store (City, Country) pairs in my models as a field. Is GeoDjango an overkill for my use case?

2020-09-17 Thread John Reese
I want to store (City, Country) pairs in my models as a field. I want to do
something like this <https://stackoverflow.com/jobs> (the location field).

*Is GeoDjango an overkill for my use case? If yes, what do you suggest me
to use?*

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CADvhLOQWP-7frt2Tbv_4kALHGobcfUkqmgT5g_pxL7ZX7EAPEA%40mail.gmail.com.


RES: Geodjango Exception when importing django.contrib.gis.gdal

2020-06-03 Thread Samuel Nogueira
Hi Farook. Are you using sqlite3 as your application database? De: Farook MEnviado:quarta-feira, 3 de junho de 2020 13:46Para: Django usersAssunto: Geodjango Exception when importing django.contrib.gis.gdal I have installed python 3.7.5 64 bit. GDAL 2.4.4 and corresponding python gdal from http://www.gisinternals.com/query.html?content=filelist&file=release-1900-gdal-2-4-4-mapserver-7-4-3.zip I have also set environment variables correctly. I did a gdalinfo --version from command prompt, i could get the version number. When i try to run django server using python manage.py runserver i am getting the below error  And in the command prompt i could see errors Any help would be appreciated-- 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+unsubscr...@googlegroups.com.To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/d2cc9046-e609-44f3-b6a0-15c18e081a02%40googlegroups.com. 



-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/0711B3A0-2D32-4477-BB21-E585FBED5F2B%40hxcore.ol.


RES: Geodjango Exception when importing django.contrib.gis.gdal

2020-06-03 Thread Samuel Nogueira
Hi Farook. Are you using sqlite as your database?De: Farook MEnviado:quarta-feira, 3 de junho de 2020 13:46Para: Django usersAssunto: Geodjango Exception when importing django.contrib.gis.gdal I have installed python 3.7.5 64 bit. GDAL 2.4.4 and corresponding python gdal from http://www.gisinternals.com/query.html?content=filelist&file=release-1900-gdal-2-4-4-mapserver-7-4-3.zip I have also set environment variables correctly. I did a gdalinfo --version from command prompt, i could get the version number. When i try to run django server using python manage.py runserver i am getting the below error  And in the command prompt i could see errors Any help would be appreciated-- 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+unsubscr...@googlegroups.com.To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/d2cc9046-e609-44f3-b6a0-15c18e081a02%40googlegroups.com. 



-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/1D0C7C84-CD3F-4F5E-8F84-AE4A4EA26330%40hxcore.ol.


Geodjango Exception when importing django.contrib.gis.gdal

2020-06-03 Thread Farook M
I have installed python 3.7.5 64 bit. GDAL 2.4.4 and corresponding python 
gdal from 
http://www.gisinternals.com/query.html?content=filelist&file=release-1900-gdal-2-4-4-mapserver-7-4-3.zip
 I 
have also set environment variables correctly. I did a gdalinfo --version 
from command prompt, i could get the version number. When i try to run 
django server using python manage.py runserver i am getting the below error
 [image: enter image description here] 

And in the command prompt i could see errors [image: enter image 
description here] 
Any help would be appreciated

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/d2cc9046-e609-44f3-b6a0-15c18e081a02%40googlegroups.com.


RES: RES: Re: Deploy on heroku with Geodjango/ postgis

2020-05-27 Thread Samuel Nogueira
Sure! Here it is: https://github.com/SamuelNoB/Primeiro-Projeto-Django-REST Sorry if my requirements.txt is messy. I didn’t set properly my venv and it pulled all packages of my system  De: Mujahid AbbasEnviado:quarta-feira, 27 de maio de 2020 19:16Para: Django usersAssunto: RES: Re: Deploy on heroku with Geodjango/ postgis Could you share you GitHub repo so that I'll help you -- 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+unsubscr...@googlegroups.com.To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/9693b29a-12f0-47a1-8610-b5ccabacd2e3%40googlegroups.com. 



-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/5ecef15e.1c69fb81.c0757.7d59%40mx.google.com.


RES: Re: Deploy on heroku with Geodjango/ postgis

2020-05-27 Thread Mujahid Abbas
Could you share you GitHub repo so that I'll help you

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/9693b29a-12f0-47a1-8610-b5ccabacd2e3%40googlegroups.com.


Re: Deploy on heroku with Geodjango/ postgis

2020-05-27 Thread Akinfolarin Stephen


On Thursday, May 28, 2020 at 2:45:30 AM UTC+14, Samuel Nogueira wrote:
>
> Hi guys. Does anyone have/know a walkthrough for deploying my django 
> application using geodjango and postgres with postgis on heroku? I was 
> struggling with that yesterday until I've given up.
> I was developing my django app in win10, with python 3.7.7.
>


have you check your error log
 

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/6a70a76e-3a9e-4251-9207-76cabcb823d7%40googlegroups.com.


Deploy on heroku with Geodjango/ postgis

2020-05-27 Thread Samuel Nogueira
Hi guys. Does anyone have/know a walkthrough for deploying my django
application using geodjango and postgres with postgis on heroku? I was
struggling with that yesterday until I've given up.
I was developing my django app in win10, with python 3.7.7.

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAOJT-cCgiFAAprhqoTT-LDL-aXkq3_i%2BZQfXtK%3DrfWWLADqZrw%40mail.gmail.com.


Re: GeoDjango with MySQL8

2020-05-25 Thread Tim Graham
Hi, you might have better luck getting an answer on the GeoDjango mailing 
list: https://groups.google.com/forum/#!forum/geodjango

On Monday, May 25, 2020 at 11:06:26 AM UTC-4, Utkarsh Bansal wrote:
>
> I am facing problems while trying to use GeoDjango (v2.2) with MySQL 8.0.19
>
> I created a new PointField and ran makemigrations
> geo_code = PointField(srid=4326)
>
> On running sqlmigrate on the generated migration - I notice that the 
> column does not have a SRID constrain
> BEGIN;
> --
> -- Create model Location
> --
> CREATE TABLE `locations_location` (`id` integer AUTO_INCREMENT NOT NULL 
> PRIMARY KEY, `geo_code` POINT NOT NULL);
> CREATE SPATIAL INDEX `locations_location_geo_code_id` ON 
> `locations_location`(`geo_code`);
> COMMIT;
>
> Now anything I add to the column is saved with SRID 0, which is incorrect.
>
> Next, I tried creating the column with the correct SRID by using 
> migrations.SeparateDatabaseAndState to generate the column.
> ALTER TABLE backend_userprofile ADD COLUMN geocode_point POINT NULL SRID 
> 4326;
>
> Now if I try to insert data in this new column, I get and error because 
> Django is still trying to insert with SRID 0 and MySQL does not allow that
> django.db.utils.OperationalError: (3643, "The SRID of the geometry does 
> not match the SRID of the column 'geo_code'. The SRID of the geometry is 0, 
> but the SRID of the column is 4326. Consider changing the SRID of the 
> geometry or the SRID property of the column.")
>
> Is there a way to make Django use correct SRIDs with MySQL? I also found a 
> ticket on the issue tracker which seems related 
> https://code.djangoproject.com/ticket/27464
>
>
>
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/c9d4a387-de7e-42d5-897f-88cbd540fc1d%40googlegroups.com.


GeoDjango with MySQL8

2020-05-25 Thread Utkarsh Bansal
I am facing problems while trying to use GeoDjango (v2.2) with MySQL 8.0.19

I created a new PointField and ran makemigrations
geo_code = PointField(srid=4326)

On running sqlmigrate on the generated migration - I notice that the column 
does not have a SRID constrain
BEGIN;
--
-- Create model Location
--
CREATE TABLE `locations_location` (`id` integer AUTO_INCREMENT NOT NULL 
PRIMARY KEY, `geo_code` POINT NOT NULL);
CREATE SPATIAL INDEX `locations_location_geo_code_id` ON 
`locations_location`(`geo_code`);
COMMIT;

Now anything I add to the column is saved with SRID 0, which is incorrect.

Next, I tried creating the column with the correct SRID by using 
migrations.SeparateDatabaseAndState to generate the column.
ALTER TABLE backend_userprofile ADD COLUMN geocode_point POINT NULL SRID 
4326;

Now if I try to insert data in this new column, I get and error because 
Django is still trying to insert with SRID 0 and MySQL does not allow that
django.db.utils.OperationalError: (3643, "The SRID of the geometry does not 
match the SRID of the column 'geo_code'. The SRID of the geometry is 0, but 
the SRID of the column is 4326. Consider changing the SRID of the geometry 
or the SRID property of the column.")

Is there a way to make Django use correct SRIDs with MySQL? I also found a 
ticket on the issue tracker which seems related 
https://code.djangoproject.com/ticket/27464



-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/4765854e-2ea8-4c51-a54f-667985688412%40googlegroups.com.


SRID issues with GeoDjango on MySQL 8

2020-05-25 Thread Utkarsh Bansal
GeoDjango is not respecting SRIDs with MySQL 8.


I created a new column

geo_code = PointField(srid=4326)

and ran makemigrations. Running sqlmigrate on the generated migration gives


BEGIN;
--
-- Create model Location
--
CREATE TABLE `locations_location` (`id` integer AUTO_INCREMENT NOT NULL 
PRIMARY KEY, `geo_code` POINT NOT NULL);
CREATE SPATIAL INDEX `locations_location_geo_code_id` ON 
`locations_location`(`geo_code`);
COMMIT;


See how the SRID was ignored.

Now anything I add to this column is using SRID 0 - which is incorrect. I 
get wrong results if I use the `ST_DISTANCE` function with SRID 0.

 
I tried using `migrations.SeparateDatabaseAndState` to create the column 
with the correct SRID constraint with the following SQL

ALTER TABLE backend_userprofile ADD COLUMN geocode_point POINT NULL SRID 
4326;


Now if I try inserting data into this column I get the following error

django.db.utils.OperationalError: (3643, "The SRID of the geometry does not 
match the SRID of the
column 'geocode_point'. The SRID of the geometry is 0, but the SRID of the 
column is 4326. 
Consider changing the SRID of the geometry or the SRID property of the 
column.")


Django is still trying to insert data with SRID 0 and MySQL raises and 
error because the column has a constrain on SRID.

Is there a way to make Django work with correct SRIDs?


-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/7c36ebcd-8618-4357-a88f-5d29ca2ddf49%40googlegroups.com.


Re: Trouble installing GeoDjango with spatialite on Python3

2020-05-05 Thread Bugra Demiriz
Did you solve this problem?


24 Mayıs 2017 Çarşamba 09:27:22 UTC+3 tarihinde Antonis Christofides yazdı:
>
> Hi,
>
> This is the error message I get when I run "./manage.py test" or 
> "./manage.py migrate":
>
>   File 
> "/home/anthony/nosync/virtualenvs/enhydris3.6/lib/python3.6/site-packages/django/contrib/gis/db/backends/spatialite/base.py",
>  
> line 53, in get_new_connection   
> 'The pysqlite library does not support C extension loading. '
> django.core.exceptions.ImproperlyConfigured: The pysqlite library does not 
> support C extension loading. Both SQLite and pysqlite must be configured to 
> allow the loading of extensions to use SpatiaLite.
>
> However, something isn't right. AFAIU pysqlite isn't supported on Python 
> 3, therefore something else is happening. This is a Python 3.6 that I 
> installed on Debian stretch. These are the relevant settings:
>
> DATABASES = {
> 'default': {
> 'ENGINE': 'django.contrib.gis.db.backends.spatialite',
> 'NAME': 'enhydris.db',
> }
> }
> if os.path.exists('/usr/lib/x86_64-linux-gnu/mod_spatialite.so'):
> # This is necessary for spatialite>=4.2
> SPATIALITE_LIBRARY_PATH = 'mod_spatialite'
>
> Thanks!
>
> A.
>
> -- 
> Antonis Christofideshttp://djangodeployment.com
>
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/60ba14ea-0980-4e7f-95cb-eb2cbabd86e7%40googlegroups.com.


Geodjango deplyoment with Apache on Windows Server

2020-01-21 Thread 'nicola frosi' via Django users

I would like to know if anyone has ever managed to publish web pages 
created with geodjango using the OSGEO, mod_wsgi, Python36 libraries and 
drivers in PyCharm with APACHE. I would be interested in starting a 
discussion on which compilers in windows is better to use, or if to compile 
the Python modules it is better to use the classic Microsoft Visual C ++ 
14.0 compiler or you can opt for gcc or others. As for the configuration of 
Apache for the use of leaflet maps there is not much material on the net 
does anyone use the proxy module?
thank you
nicola

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/bf621a82-36f4-40b2-a356-3c5bf53d1441%40googlegroups.com.


GeoDjango admin

2019-08-06 Thread mconnors
Hi,

I'm using OSMGeoAdmin and it gives me a map I can select a point on. I would 
like to have the option of it picking the point automatically based on the 
address field. I know how to get the coordinates from the address in python. I 
would like to know what the best approach is to modifying the admin. Ideally a 
search attached to the address field that prompts to update the map if the 
coordinates are fetched successfully.

Any advice?

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/109995ca-aaae-4d37-8e40-ea72ce818bb3%40googlegroups.com.


Re: Extract LineString in Geodjango

2019-02-28 Thread Jason
https://docs.djangoproject.com/en/2.1/ref/contrib/gis/db-api/#spatial-lookups 
has 
the geodjango lookups.  Perhaps there is one there that fits your needs?

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/8a475605-a50e-4844-b3e3-315317995823%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Extract LineString in Geodjango

2019-02-28 Thread AsAl
Hi, 

I am using Geodjango at work. Could you please to confirm me if in 
Geodjango there is a function such as ST_Line_Substring in Postgis. 

Best regards

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/ac67ce96-1706-4d47-ac7f-1c153f6d48ac%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: geodjango raster field get pixel value

2018-10-08 Thread Pradeep Singh
there is no effect...i am facing these problem many days

On Mon, 8 Oct 2018 at 04:08, 'Vinod Kumar' via Django users <
django-users@googlegroups.com> wrote:

> replace below code in urls.py
>
>
> from django.contrib import adminfrom django.urls import include, path
>
> from testapp import views
> urlpatterns = [
> path('hello/', views.welcome),
> path('admin/', admin.site.urls),]
>
>
>
> On Mon, Oct 8, 2018 at 4:33 PM Vinod Kumar 
> wrote:
>
>> replace url(welcome.views ) into your-app-name.views.funtion
>>
>> in your case replace url path *welcome.views* into
>> *testapp.views.welcome*
>>
>> On Mon, Oct 8, 2018 at 4:25 PM Pradeep Singh 
>> wrote:
>>
>>> brother please help why i am getting django 404.
>>>
>>> On Mon, 8 Oct 2018 at 16:24, Pradeep Singh 
>>> wrote:
>>>
>>>>
>>>>
>>>> On Mon, 8 Oct 2018 at 16:23, Pradeep Singh 
>>>> wrote:
>>>>
>>>>>
>>>>>
>>>>> On Mon, 8 Oct 2018 at 16:23, Pradeep Singh 
>>>>> wrote:
>>>>>
>>>>>>
>>>>>>
>>>>>> On Sun, 7 Oct 2018 at 04:11, Majid Hojati  wrote:
>>>>>>
>>>>>>> [image: Boxbe] <https://www.boxbe.com/overview> This message is
>>>>>>> eligible for Automatic Cleanup! (asd5...@gmail.com) Add cleanup rule
>>>>>>> <https://www.boxbe.com/popup?url=https%3A%2F%2Fwww.boxbe.com%2Fcleanup%3Fkey%3Dn811i2aFTVC0UA0hX3tGMp5v%252B09vFHl07L0ANJF%252FQoY%253D%26token%3DI92YWAWqoEqMsoBl%252BHAOe5j3bdiQEb553wwEMpPO3cVfuTr6J6lc95CYQin2HEEguOkINNrfKWKP39eOHLRwguSOpUFKZmy4Txtsp5g9JLD4nMmusfXMpdptzuL%252Fxmu6sQSbIuTpr2Y%253D&tc_serial=43916131860&tc_rand=720360854&utm_source=stf&utm_medium=email&utm_campaign=ANNO_CLEANUP_ADD&utm_content=001>
>>>>>>> | More info
>>>>>>> <http://blog.boxbe.com/general/boxbe-automatic-cleanup?tc_serial=43916131860&tc_rand=720360854&utm_source=stf&utm_medium=email&utm_campaign=ANNO_CLEANUP_ADD&utm_content=001>
>>>>>>> try to config your urls.py correctly
>>>>>>>
>>>>>>> On Saturday, October 6, 2018 at 9:14:33 PM UTC+3:30, Pradeep Singh
>>>>>>> wrote:
>>>>>>>>
>>>>>>>> when i  sendind request  always m getting django 404 error can you
>>>>>>>> help me ..nd please tell me how to fix it
>>>>>>>>
>>>>>>>> On Sat, 6 Oct 2018 at 10:42, Pradeep Singh 
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> i don't know,  i hava a problem can you solve this .
>>>>>>>>>
>>>>>>>>> On Sat, 6 Oct 2018 at 10:09, Majid Hojati 
>>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>>> [image: Boxbe] <https://www.boxbe.com/overview> This message is
>>>>>>>>>> eligible for Automatic Cleanup! (asd...@gmail.com) Add cleanup
>>>>>>>>>> rule
>>>>>>>>>> <https://www.boxbe.com/popup?url=https%3A%2F%2Fwww.boxbe.com%2Fcleanup%3Fkey%3D2CQCStXD2pspqOIeT%252B8CbXjoHf6S8g%252FhLPcMXbMbMKw%253D%26token%3DvLiNoKF4esrI2A%252BFP26dBZcj8QlMhwmBDXWBwmVFJl%252FwMdUxlT5s%252F5fRODsg83LYdee9qzgQeL3Qciisb6Y1wzR2Y697p0%252BuDK9qD3uMx8tk%252BOxKY0CZM1w%252FaQnMppMQDjB5ETOHt88%253D&tc_serial=43897169245&tc_rand=872094224&utm_source=stf&utm_medium=email&utm_campaign=ANNO_CLEANUP_ADD&utm_content=001>
>>>>>>>>>> | More info
>>>>>>>>>> <http://blog.boxbe.com/general/boxbe-automatic-cleanup?tc_serial=43897169245&tc_rand=872094224&utm_source=stf&utm_medium=email&utm_campaign=ANNO_CLEANUP_ADD&utm_content=001>
>>>>>>>>>> Hi,
>>>>>>>>>> Is there any function to get raster value under a point using
>>>>>>>>>> geodjango?or we must perform a raw query?
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>> 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

Re: geodjango raster field get pixel value

2018-10-08 Thread 'Vinod Kumar' via Django users
replace below code in urls.py


from django.contrib import adminfrom django.urls import include, path

from testapp import views
urlpatterns = [
path('hello/', views.welcome),
path('admin/', admin.site.urls),]



On Mon, Oct 8, 2018 at 4:33 PM Vinod Kumar  wrote:

> replace url(welcome.views ) into your-app-name.views.funtion
>
> in your case replace url path *welcome.views* into *testapp.views.welcome*
>
> On Mon, Oct 8, 2018 at 4:25 PM Pradeep Singh 
> wrote:
>
>> brother please help why i am getting django 404.
>>
>> On Mon, 8 Oct 2018 at 16:24, Pradeep Singh  wrote:
>>
>>>
>>>
>>> On Mon, 8 Oct 2018 at 16:23, Pradeep Singh 
>>> wrote:
>>>
>>>>
>>>>
>>>> On Mon, 8 Oct 2018 at 16:23, Pradeep Singh 
>>>> wrote:
>>>>
>>>>>
>>>>>
>>>>> On Sun, 7 Oct 2018 at 04:11, Majid Hojati  wrote:
>>>>>
>>>>>> [image: Boxbe] <https://www.boxbe.com/overview> This message is
>>>>>> eligible for Automatic Cleanup! (asd5...@gmail.com) Add cleanup rule
>>>>>> <https://www.boxbe.com/popup?url=https%3A%2F%2Fwww.boxbe.com%2Fcleanup%3Fkey%3Dn811i2aFTVC0UA0hX3tGMp5v%252B09vFHl07L0ANJF%252FQoY%253D%26token%3DI92YWAWqoEqMsoBl%252BHAOe5j3bdiQEb553wwEMpPO3cVfuTr6J6lc95CYQin2HEEguOkINNrfKWKP39eOHLRwguSOpUFKZmy4Txtsp5g9JLD4nMmusfXMpdptzuL%252Fxmu6sQSbIuTpr2Y%253D&tc_serial=43916131860&tc_rand=720360854&utm_source=stf&utm_medium=email&utm_campaign=ANNO_CLEANUP_ADD&utm_content=001>
>>>>>> | More info
>>>>>> <http://blog.boxbe.com/general/boxbe-automatic-cleanup?tc_serial=43916131860&tc_rand=720360854&utm_source=stf&utm_medium=email&utm_campaign=ANNO_CLEANUP_ADD&utm_content=001>
>>>>>> try to config your urls.py correctly
>>>>>>
>>>>>> On Saturday, October 6, 2018 at 9:14:33 PM UTC+3:30, Pradeep Singh
>>>>>> wrote:
>>>>>>>
>>>>>>> when i  sendind request  always m getting django 404 error can you
>>>>>>> help me ..nd please tell me how to fix it
>>>>>>>
>>>>>>> On Sat, 6 Oct 2018 at 10:42, Pradeep Singh 
>>>>>>> wrote:
>>>>>>>
>>>>>>>> i don't know,  i hava a problem can you solve this .
>>>>>>>>
>>>>>>>> On Sat, 6 Oct 2018 at 10:09, Majid Hojati  wrote:
>>>>>>>>
>>>>>>>>> [image: Boxbe] <https://www.boxbe.com/overview> This message is
>>>>>>>>> eligible for Automatic Cleanup! (asd...@gmail.com) Add cleanup
>>>>>>>>> rule
>>>>>>>>> <https://www.boxbe.com/popup?url=https%3A%2F%2Fwww.boxbe.com%2Fcleanup%3Fkey%3D2CQCStXD2pspqOIeT%252B8CbXjoHf6S8g%252FhLPcMXbMbMKw%253D%26token%3DvLiNoKF4esrI2A%252BFP26dBZcj8QlMhwmBDXWBwmVFJl%252FwMdUxlT5s%252F5fRODsg83LYdee9qzgQeL3Qciisb6Y1wzR2Y697p0%252BuDK9qD3uMx8tk%252BOxKY0CZM1w%252FaQnMppMQDjB5ETOHt88%253D&tc_serial=43897169245&tc_rand=872094224&utm_source=stf&utm_medium=email&utm_campaign=ANNO_CLEANUP_ADD&utm_content=001>
>>>>>>>>> | More info
>>>>>>>>> <http://blog.boxbe.com/general/boxbe-automatic-cleanup?tc_serial=43897169245&tc_rand=872094224&utm_source=stf&utm_medium=email&utm_campaign=ANNO_CLEANUP_ADD&utm_content=001>
>>>>>>>>> Hi,
>>>>>>>>> Is there any function to get raster value under a point using
>>>>>>>>> geodjango?or we must perform a raw query?
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> 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 post to this group, send email to django...@googlegroups.com.
>>>>>>>>> Visit this group at https://groups.google.com/group/django-users.
>>>>>>>>> To view this discussion on the web visit
>>>>>>>>> https://groups.google.com/d/msgid/django-users/63334e6f-2ac5-434f-8041-6e4bea64e33c%40googlegroups.com
>>>>>>>>> <https://groups.google.com/d/msgid/django-user

Re: geodjango raster field get pixel value

2018-10-08 Thread 'Vinod Kumar' via Django users
replace url(welcome.views ) into your-app-name.views.funtion

in your case replace url path *welcome.views* into *testapp.views.welcome*

On Mon, Oct 8, 2018 at 4:25 PM Pradeep Singh  wrote:

> brother please help why i am getting django 404.
>
> On Mon, 8 Oct 2018 at 16:24, Pradeep Singh  wrote:
>
>>
>>
>> On Mon, 8 Oct 2018 at 16:23, Pradeep Singh  wrote:
>>
>>>
>>>
>>> On Mon, 8 Oct 2018 at 16:23, Pradeep Singh 
>>> wrote:
>>>
>>>>
>>>>
>>>> On Sun, 7 Oct 2018 at 04:11, Majid Hojati  wrote:
>>>>
>>>>> [image: Boxbe] <https://www.boxbe.com/overview> This message is
>>>>> eligible for Automatic Cleanup! (asd5...@gmail.com) Add cleanup rule
>>>>> <https://www.boxbe.com/popup?url=https%3A%2F%2Fwww.boxbe.com%2Fcleanup%3Fkey%3Dn811i2aFTVC0UA0hX3tGMp5v%252B09vFHl07L0ANJF%252FQoY%253D%26token%3DI92YWAWqoEqMsoBl%252BHAOe5j3bdiQEb553wwEMpPO3cVfuTr6J6lc95CYQin2HEEguOkINNrfKWKP39eOHLRwguSOpUFKZmy4Txtsp5g9JLD4nMmusfXMpdptzuL%252Fxmu6sQSbIuTpr2Y%253D&tc_serial=43916131860&tc_rand=720360854&utm_source=stf&utm_medium=email&utm_campaign=ANNO_CLEANUP_ADD&utm_content=001>
>>>>> | More info
>>>>> <http://blog.boxbe.com/general/boxbe-automatic-cleanup?tc_serial=43916131860&tc_rand=720360854&utm_source=stf&utm_medium=email&utm_campaign=ANNO_CLEANUP_ADD&utm_content=001>
>>>>> try to config your urls.py correctly
>>>>>
>>>>> On Saturday, October 6, 2018 at 9:14:33 PM UTC+3:30, Pradeep Singh
>>>>> wrote:
>>>>>>
>>>>>> when i  sendind request  always m getting django 404 error can you
>>>>>> help me ..nd please tell me how to fix it
>>>>>>
>>>>>> On Sat, 6 Oct 2018 at 10:42, Pradeep Singh 
>>>>>> wrote:
>>>>>>
>>>>>>> i don't know,  i hava a problem can you solve this .
>>>>>>>
>>>>>>> On Sat, 6 Oct 2018 at 10:09, Majid Hojati  wrote:
>>>>>>>
>>>>>>>> [image: Boxbe] <https://www.boxbe.com/overview> This message is
>>>>>>>> eligible for Automatic Cleanup! (asd...@gmail.com) Add cleanup rule
>>>>>>>> <https://www.boxbe.com/popup?url=https%3A%2F%2Fwww.boxbe.com%2Fcleanup%3Fkey%3D2CQCStXD2pspqOIeT%252B8CbXjoHf6S8g%252FhLPcMXbMbMKw%253D%26token%3DvLiNoKF4esrI2A%252BFP26dBZcj8QlMhwmBDXWBwmVFJl%252FwMdUxlT5s%252F5fRODsg83LYdee9qzgQeL3Qciisb6Y1wzR2Y697p0%252BuDK9qD3uMx8tk%252BOxKY0CZM1w%252FaQnMppMQDjB5ETOHt88%253D&tc_serial=43897169245&tc_rand=872094224&utm_source=stf&utm_medium=email&utm_campaign=ANNO_CLEANUP_ADD&utm_content=001>
>>>>>>>> | More info
>>>>>>>> <http://blog.boxbe.com/general/boxbe-automatic-cleanup?tc_serial=43897169245&tc_rand=872094224&utm_source=stf&utm_medium=email&utm_campaign=ANNO_CLEANUP_ADD&utm_content=001>
>>>>>>>> Hi,
>>>>>>>> Is there any function to get raster value under a point using
>>>>>>>> geodjango?or we must perform a raw query?
>>>>>>>>
>>>>>>>> --
>>>>>>>> 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 post to this group, send email to django...@googlegroups.com.
>>>>>>>> Visit this group at https://groups.google.com/group/django-users.
>>>>>>>> To view this discussion on the web visit
>>>>>>>> https://groups.google.com/d/msgid/django-users/63334e6f-2ac5-434f-8041-6e4bea64e33c%40googlegroups.com
>>>>>>>> <https://groups.google.com/d/msgid/django-users/63334e6f-2ac5-434f-8041-6e4bea64e33c%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>>>>> .
>>>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>>>
>>>>>>> --
>>>>> 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+unsubscr..

Re: geodjango raster field get pixel value

2018-10-08 Thread Pradeep Singh
brother please help why i am getting django 404.

On Mon, 8 Oct 2018 at 16:24, Pradeep Singh  wrote:

>
>
> On Mon, 8 Oct 2018 at 16:23, Pradeep Singh  wrote:
>
>>
>>
>> On Mon, 8 Oct 2018 at 16:23, Pradeep Singh  wrote:
>>
>>>
>>>
>>> On Sun, 7 Oct 2018 at 04:11, Majid Hojati  wrote:
>>>
>>>> [image: Boxbe] <https://www.boxbe.com/overview> This message is
>>>> eligible for Automatic Cleanup! (asd5...@gmail.com) Add cleanup rule
>>>> <https://www.boxbe.com/popup?url=https%3A%2F%2Fwww.boxbe.com%2Fcleanup%3Fkey%3Dn811i2aFTVC0UA0hX3tGMp5v%252B09vFHl07L0ANJF%252FQoY%253D%26token%3DI92YWAWqoEqMsoBl%252BHAOe5j3bdiQEb553wwEMpPO3cVfuTr6J6lc95CYQin2HEEguOkINNrfKWKP39eOHLRwguSOpUFKZmy4Txtsp5g9JLD4nMmusfXMpdptzuL%252Fxmu6sQSbIuTpr2Y%253D&tc_serial=43916131860&tc_rand=720360854&utm_source=stf&utm_medium=email&utm_campaign=ANNO_CLEANUP_ADD&utm_content=001>
>>>> | More info
>>>> <http://blog.boxbe.com/general/boxbe-automatic-cleanup?tc_serial=43916131860&tc_rand=720360854&utm_source=stf&utm_medium=email&utm_campaign=ANNO_CLEANUP_ADD&utm_content=001>
>>>> try to config your urls.py correctly
>>>>
>>>> On Saturday, October 6, 2018 at 9:14:33 PM UTC+3:30, Pradeep Singh
>>>> wrote:
>>>>>
>>>>> when i  sendind request  always m getting django 404 error can you
>>>>> help me ..nd please tell me how to fix it
>>>>>
>>>>> On Sat, 6 Oct 2018 at 10:42, Pradeep Singh  wrote:
>>>>>
>>>>>> i don't know,  i hava a problem can you solve this .
>>>>>>
>>>>>> On Sat, 6 Oct 2018 at 10:09, Majid Hojati  wrote:
>>>>>>
>>>>>>> [image: Boxbe] <https://www.boxbe.com/overview> This message is
>>>>>>> eligible for Automatic Cleanup! (asd...@gmail.com) Add cleanup rule
>>>>>>> <https://www.boxbe.com/popup?url=https%3A%2F%2Fwww.boxbe.com%2Fcleanup%3Fkey%3D2CQCStXD2pspqOIeT%252B8CbXjoHf6S8g%252FhLPcMXbMbMKw%253D%26token%3DvLiNoKF4esrI2A%252BFP26dBZcj8QlMhwmBDXWBwmVFJl%252FwMdUxlT5s%252F5fRODsg83LYdee9qzgQeL3Qciisb6Y1wzR2Y697p0%252BuDK9qD3uMx8tk%252BOxKY0CZM1w%252FaQnMppMQDjB5ETOHt88%253D&tc_serial=43897169245&tc_rand=872094224&utm_source=stf&utm_medium=email&utm_campaign=ANNO_CLEANUP_ADD&utm_content=001>
>>>>>>> | More info
>>>>>>> <http://blog.boxbe.com/general/boxbe-automatic-cleanup?tc_serial=43897169245&tc_rand=872094224&utm_source=stf&utm_medium=email&utm_campaign=ANNO_CLEANUP_ADD&utm_content=001>
>>>>>>> Hi,
>>>>>>> Is there any function to get raster value under a point using
>>>>>>> geodjango?or we must perform a raw query?
>>>>>>>
>>>>>>> --
>>>>>>> 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 post to this group, send email to django...@googlegroups.com.
>>>>>>> Visit this group at https://groups.google.com/group/django-users.
>>>>>>> To view this discussion on the web visit
>>>>>>> https://groups.google.com/d/msgid/django-users/63334e6f-2ac5-434f-8041-6e4bea64e33c%40googlegroups.com
>>>>>>> <https://groups.google.com/d/msgid/django-users/63334e6f-2ac5-434f-8041-6e4bea64e33c%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>>>> .
>>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>>
>>>>>> --
>>>> 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+unsubscr...@googlegroups.com.
>>>> To post to this group, send email to django-users@googlegroups.com.
>>>> Visit this group at https://groups.google.com/group/django-users.
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/django-users/510c3c11-e0ac-418b-9d9a-fedaf0e1ffa5%40googlegroups.com
>>>> <https://groups.google.com/d/msgid/django-users/510c3c11-e0ac-418b-9d9a-fedaf0e1ffa5%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CANwgZcY48ZNVJTUcn%3D9g9FjvN2eZNyKAYJve_c48aKadYSAvog%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: geodjango raster field get pixel value

2018-10-07 Thread Majid Hojati
try to config your urls.py correctly

On Saturday, October 6, 2018 at 9:14:33 PM UTC+3:30, Pradeep Singh wrote:
>
> when i  sendind request  always m getting django 404 error can you help me 
> ..nd please tell me how to fix it
>
> On Sat, 6 Oct 2018 at 10:42, Pradeep Singh  > wrote:
>
>> i don't know,  i hava a problem can you solve this .
>>
>> On Sat, 6 Oct 2018 at 10:09, Majid Hojati > 
>> wrote:
>>
>>> [image: Boxbe] <https://www.boxbe.com/overview> This message is 
>>> eligible for Automatic Cleanup! (asd...@gmail.com ) Add 
>>> cleanup rule 
>>> <https://www.boxbe.com/popup?url=https%3A%2F%2Fwww.boxbe.com%2Fcleanup%3Fkey%3D2CQCStXD2pspqOIeT%252B8CbXjoHf6S8g%252FhLPcMXbMbMKw%253D%26token%3DvLiNoKF4esrI2A%252BFP26dBZcj8QlMhwmBDXWBwmVFJl%252FwMdUxlT5s%252F5fRODsg83LYdee9qzgQeL3Qciisb6Y1wzR2Y697p0%252BuDK9qD3uMx8tk%252BOxKY0CZM1w%252FaQnMppMQDjB5ETOHt88%253D&tc_serial=43897169245&tc_rand=872094224&utm_source=stf&utm_medium=email&utm_campaign=ANNO_CLEANUP_ADD&utm_content=001>
>>>  
>>> | More info 
>>> <http://blog.boxbe.com/general/boxbe-automatic-cleanup?tc_serial=43897169245&tc_rand=872094224&utm_source=stf&utm_medium=email&utm_campaign=ANNO_CLEANUP_ADD&utm_content=001>
>>>  
>>> Hi,
>>> Is there any function to get raster value under a point using 
>>> geodjango?or we must perform a raw query?
>>>
>>> -- 
>>> 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 post to this group, send email to django...@googlegroups.com 
>>> .
>>> Visit this group at https://groups.google.com/group/django-users.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/django-users/63334e6f-2ac5-434f-8041-6e4bea64e33c%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/django-users/63334e6f-2ac5-434f-8041-6e4bea64e33c%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/510c3c11-e0ac-418b-9d9a-fedaf0e1ffa5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: geodjango raster field get pixel value

2018-10-06 Thread Pradeep Singh
when i  sendind request  always m getting django 404 error can you help me
..nd please tell me how to fix it

On Sat, 6 Oct 2018 at 10:42, Pradeep Singh  wrote:

> i don't know,  i hava a problem can you solve this .
>
> On Sat, 6 Oct 2018 at 10:09, Majid Hojati  wrote:
>
>> [image: Boxbe] <https://www.boxbe.com/overview> This message is eligible
>> for Automatic Cleanup! (asd5...@gmail.com) Add cleanup rule
>> <https://www.boxbe.com/popup?url=https%3A%2F%2Fwww.boxbe.com%2Fcleanup%3Fkey%3D2CQCStXD2pspqOIeT%252B8CbXjoHf6S8g%252FhLPcMXbMbMKw%253D%26token%3DvLiNoKF4esrI2A%252BFP26dBZcj8QlMhwmBDXWBwmVFJl%252FwMdUxlT5s%252F5fRODsg83LYdee9qzgQeL3Qciisb6Y1wzR2Y697p0%252BuDK9qD3uMx8tk%252BOxKY0CZM1w%252FaQnMppMQDjB5ETOHt88%253D&tc_serial=43897169245&tc_rand=872094224&utm_source=stf&utm_medium=email&utm_campaign=ANNO_CLEANUP_ADD&utm_content=001>
>> | More info
>> <http://blog.boxbe.com/general/boxbe-automatic-cleanup?tc_serial=43897169245&tc_rand=872094224&utm_source=stf&utm_medium=email&utm_campaign=ANNO_CLEANUP_ADD&utm_content=001>
>> Hi,
>> Is there any function to get raster value under a point using
>> geodjango?or we must perform a raw query?
>>
>> --
>> 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+unsubscr...@googlegroups.com.
>> To post to this group, send email to django-users@googlegroups.com.
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/63334e6f-2ac5-434f-8041-6e4bea64e33c%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-users/63334e6f-2ac5-434f-8041-6e4bea64e33c%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CANwgZcak%3DMDBvzPAiH%3DUNYmbuhE0jQkO88gD0OHShT2ErYzmxA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: geodjango raster field get pixel value

2018-10-06 Thread Pradeep Singh
i don't know,  i hava a problem can you solve this .

On Sat, 6 Oct 2018 at 10:09, Majid Hojati  wrote:

> [image: Boxbe] <https://www.boxbe.com/overview> This message is eligible
> for Automatic Cleanup! (asd5...@gmail.com) Add cleanup rule
> <https://www.boxbe.com/popup?url=https%3A%2F%2Fwww.boxbe.com%2Fcleanup%3Fkey%3D2CQCStXD2pspqOIeT%252B8CbXjoHf6S8g%252FhLPcMXbMbMKw%253D%26token%3DvLiNoKF4esrI2A%252BFP26dBZcj8QlMhwmBDXWBwmVFJl%252FwMdUxlT5s%252F5fRODsg83LYdee9qzgQeL3Qciisb6Y1wzR2Y697p0%252BuDK9qD3uMx8tk%252BOxKY0CZM1w%252FaQnMppMQDjB5ETOHt88%253D&tc_serial=43897169245&tc_rand=872094224&utm_source=stf&utm_medium=email&utm_campaign=ANNO_CLEANUP_ADD&utm_content=001>
> | More info
> <http://blog.boxbe.com/general/boxbe-automatic-cleanup?tc_serial=43897169245&tc_rand=872094224&utm_source=stf&utm_medium=email&utm_campaign=ANNO_CLEANUP_ADD&utm_content=001>
> Hi,
> Is there any function to get raster value under a point using geodjango?or
> we must perform a raw query?
>
> --
> 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+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/63334e6f-2ac5-434f-8041-6e4bea64e33c%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/63334e6f-2ac5-434f-8041-6e4bea64e33c%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CANwgZcZkmLNuQxzZhSAp7CVKewWXG%2BCEeZgj9vgtJ3i4PE_05g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


geodjango raster field get pixel value

2018-10-06 Thread Majid Hojati
Hi,
Is there any function to get raster value under a point using geodjango?or 
we must perform a raw query?

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/63334e6f-2ac5-434f-8041-6e4bea64e33c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Geodjango Error

2018-10-03 Thread VAIBHAV GUPTA
Still I am not able to get what path should I set so that GDAL could run.

On Wednesday, October 3, 2018, heriberto ochoa  wrote:

> In the path of Anaconda3 where stay python, or in el path default in case
> of use the traditional installation of python
>
> El martes, 2 de octubre de 2018, 13:53:41 (UTC-6), VAIBHAV GUPTA escribió:
>>
>>  It is installed automatically at that location. I didn't specified any
>> location.
>> So according to you, where should I install this GDAL?
>>
>> On Wed, Oct 3, 2018 at 12:48 AM heriberto ochoa  wrote:
>>
>>> The problem can be with Anaconda3, you installed GDAL in the path of
>>> Anaconda3 or in the path de other path of python?, the path of GDAL have
>>> all .dll file required
>>>
>>> El martes, 2 de octubre de 2018, 5:26:16 (UTC-6), VAIBHAV GUPTA escribió:

 Yaa I got the error as what you (Michal Petrucha) stated about that
 the path of  GDAL_LIBRARY_PATH that I had given was of Linux. Now I
 changed the path (given below)  according to the windows OS  , still the
 problem is not resolved.
 GDAL_LIBRARY_PATH = 'C:\\Users\\gaurav\\Anaconda3\
 \Lib\\site-packages\\django\\contrib\\gis\\gdal'

 Also I have reinstalled GDAL from https://sandbox.idre.ucla
 .edu/sandbox/tutorials/installing-gdal-for-windows
 and followed all the steps provided in this website, but still the
 problem is not resolved.
 Now I have given this path GDAL_LIBRARY_PATH = 'C:\\Program
 Files\\GDAL\\gdal203.dll' in settings.py .

 May be that now I have two GDAL libraries, one installed using  OSGeo4W
 installer  and the other using the
 above link and now they are conflicting.


 On Tue, Oct 2, 2018 at 12:19 PM Michal Petrucha <
 michal@konk.org> wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA512
>
> On Mon, Oct 01, 2018 at 03:02:18PM -0700, vaibhav.g...@gla.ac.in
> wrote:
> > I have installed PROJ4, GDAL and GEOS libraries using OSGeo4W
> installer
> > . But the problem is with GDAL
> library.
> > Earlier there was an error showing :-
> > django.core.exceptions.ImproperlyConfigured: Could not find the
> GDAL
> > library (tried "gdal202", "gdal201", "gdal20", "gdal111", "gdal110",
> > "gdal19"). Is GDAL installed? If it is, try setting
> GDAL_LIBRARY_PATH in
> > your settings.
> >
> > Then after setting the path using GDAL_LIBRARY_PATH =
> > '/home/sue/local/lib/libgdal.so'  in settings.py file the error
> changes to
> > what I have stated before which is :-
> > OSError: [WinError 126] The specified module could not be found.
>
> If you used '/home/sue/local/lib/libgdal.so', then that would be
> incorrect – you write that you're trying to run this on Windows, but
> this is a Unix path, so of course Python won't find that file there.
>
> Replace that with the full path to your GDAL DLL, and if you use
> backslashes as a directory delimiter, make sure to either use a raw
> string literal (r'c:\path\to\my\gdal.dll'), or double-backslashes
> ('c:\\path\\to\\my\\gdal.dll').
>
> Michal
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1
>
> iQIcBAEBCgAGBQJbsxTVAAoJEHA7T/IPM/klLA0QANjRJZjywvglG74qJQujhyK3
> F0FkcN6RVXlwZv2XBq21NufpItQ5kWwnPWEFfA0LwCfIIqrwbsQu2Al1r6xaq29U
> uq7cgZDNCfvfMrqnG7sVoqddkJN9taIkl0z+KQtaqg1rsfTdNZa6esKBc062+rCO
> HhqrAbHZaUaYkenfvMXp1Qe3GBN6taJ+5banbBoWs1ipeUYK3v+ltLkv8sN4ipHg
> Fcj5FKHv1ldt2pE88JvVwGxcrW6cpngKjElZZTjgTDGokC2v7kptCVkkj3KJWPNv
> VR+OK0FWwsJdF2uZ3eni9v/MNBTCMe1b8m/ZM6tU2aWW3+8EqznMaX82I+8RMOtS
> dPwvTk5To7DwVhm6tQtaO1+abdf/pZ6X76hWwusGbmbCW/Mn04S66CMM+TgVGhSX
> LyQZajgYKq6qyt6C/YkNO1wkGNNY8eaDVSotdRMXd9oDpg9xVwx2jwVuGRMBhsVi
> 2Oou19GTU9GLfOLAC3pEGU3/724ZfLBWP+dCksHtTLrRqU0u9KhEtbrLUrutfDUG
> rdWxpmKMjkwyZ7oZt4kLu+ZTEuu2tYU4G770Vq3Z4Ui1HbBYX0QNIEiwhTXehx+a
> 3vNZ0I5M9idu9kfgrPFmthYb69eWi2cZuPbOMoC1lBm0JrVE5v8L4NwEKx0Itp7u
> i/QDsOX/rzuTUQyvnOq3
> =VilN
> -END PGP SIGNATURE-
>
> --
> 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 post to this group, send email to django...@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/2018100206485
> 4.GZ1181%40konk.org.
> For more options, visit https://groups.google.com/d/optout.
>
 --
>>> 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...

Re: Geodjango Error

2018-10-02 Thread heriberto ochoa
In the path of Anaconda3 where stay python, or in el path default in case 
of use the traditional installation of python

El martes, 2 de octubre de 2018, 13:53:41 (UTC-6), VAIBHAV GUPTA escribió:
>
>  It is installed automatically at that location. I didn't specified any 
> location.
> So according to you, where should I install this GDAL?
>
> On Wed, Oct 3, 2018 at 12:48 AM heriberto ochoa  > wrote:
>
>> The problem can be with Anaconda3, you installed GDAL in the path of 
>> Anaconda3 or in the path de other path of python?, the path of GDAL have 
>> all .dll file required
>>
>> El martes, 2 de octubre de 2018, 5:26:16 (UTC-6), VAIBHAV GUPTA escribió:
>>>
>>> Yaa I got the error as what you (Michal Petrucha) stated about that the 
>>> path of  GDAL_LIBRARY_PATH that I had given was of Linux. Now I changed 
>>> the path (given below)  according to the windows OS  , still the problem is 
>>> not resolved.
>>> GDAL_LIBRARY_PATH = 
>>> 'C:\\Users\\gaurav\\Anaconda3\\Lib\\site-packages\\django\\contrib\\gis\\gdal'
>>>
>>> Also I have reinstalled GDAL from 
>>> https://sandbox.idre.ucla.edu/sandbox/tutorials/installing-gdal-for-windows
>>> and followed all the steps provided in this website, but still the 
>>> problem is not resolved.
>>> Now I have given this path GDAL_LIBRARY_PATH = 'C:\\Program 
>>> Files\\GDAL\\gdal203.dll' in settings.py . 
>>>  
>>> May be that now I have two GDAL libraries, one installed using  OSGeo4W 
>>> installer  and the other using the 
>>> above link and now they are conflicting.
>>>
>>>
>>> On Tue, Oct 2, 2018 at 12:19 PM Michal Petrucha  
>>> wrote:
>>>
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA512

 On Mon, Oct 01, 2018 at 03:02:18PM -0700, vaibhav.g...@gla.ac.in wrote:
 > I have installed PROJ4, GDAL and GEOS libraries using OSGeo4W 
 installer 
 > . But the problem is with GDAL 
 library. 
 > Earlier there was an error showing :-
 > django.core.exceptions.ImproperlyConfigured: Could not find the GDAL 
 > library (tried "gdal202", "gdal201", "gdal20", "gdal111", "gdal110", 
 > "gdal19"). Is GDAL installed? If it is, try setting GDAL_LIBRARY_PATH 
 in 
 > your settings.
 > 
 > Then after setting the path using GDAL_LIBRARY_PATH = 
 > '/home/sue/local/lib/libgdal.so'  in settings.py file the error 
 changes to 
 > what I have stated before which is :-
 > OSError: [WinError 126] The specified module could not be found.

 If you used '/home/sue/local/lib/libgdal.so', then that would be
 incorrect – you write that you're trying to run this on Windows, but
 this is a Unix path, so of course Python won't find that file there.

 Replace that with the full path to your GDAL DLL, and if you use
 backslashes as a directory delimiter, make sure to either use a raw
 string literal (r'c:\path\to\my\gdal.dll'), or double-backslashes
 ('c:\\path\\to\\my\\gdal.dll').

 Michal
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1

 iQIcBAEBCgAGBQJbsxTVAAoJEHA7T/IPM/klLA0QANjRJZjywvglG74qJQujhyK3
 F0FkcN6RVXlwZv2XBq21NufpItQ5kWwnPWEFfA0LwCfIIqrwbsQu2Al1r6xaq29U
 uq7cgZDNCfvfMrqnG7sVoqddkJN9taIkl0z+KQtaqg1rsfTdNZa6esKBc062+rCO
 HhqrAbHZaUaYkenfvMXp1Qe3GBN6taJ+5banbBoWs1ipeUYK3v+ltLkv8sN4ipHg
 Fcj5FKHv1ldt2pE88JvVwGxcrW6cpngKjElZZTjgTDGokC2v7kptCVkkj3KJWPNv
 VR+OK0FWwsJdF2uZ3eni9v/MNBTCMe1b8m/ZM6tU2aWW3+8EqznMaX82I+8RMOtS
 dPwvTk5To7DwVhm6tQtaO1+abdf/pZ6X76hWwusGbmbCW/Mn04S66CMM+TgVGhSX
 LyQZajgYKq6qyt6C/YkNO1wkGNNY8eaDVSotdRMXd9oDpg9xVwx2jwVuGRMBhsVi
 2Oou19GTU9GLfOLAC3pEGU3/724ZfLBWP+dCksHtTLrRqU0u9KhEtbrLUrutfDUG
 rdWxpmKMjkwyZ7oZt4kLu+ZTEuu2tYU4G770Vq3Z4Ui1HbBYX0QNIEiwhTXehx+a
 3vNZ0I5M9idu9kfgrPFmthYb69eWi2cZuPbOMoC1lBm0JrVE5v8L4NwEKx0Itp7u
 i/QDsOX/rzuTUQyvnOq3
 =VilN
 -END PGP SIGNATURE-

 -- 
 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 post to this group, send email to django...@googlegroups.com.
 Visit this group at https://groups.google.com/group/django-users.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/django-users/20181002064854.GZ1181%40konk.org
 .
 For more options, visit https://groups.google.com/d/optout.

>>> -- 
>> 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 post to this group, send email to django...@googlegroups.com 
>> .
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msg

Re: Geodjango Error

2018-10-02 Thread VAIBHAV GUPTA
 It is installed automatically at that location. I didn't specified any
location.
So according to you, where should I install this GDAL?

On Wed, Oct 3, 2018 at 12:48 AM heriberto ochoa  wrote:

> The problem can be with Anaconda3, you installed GDAL in the path of
> Anaconda3 or in the path de other path of python?, the path of GDAL have
> all .dll file required
>
> El martes, 2 de octubre de 2018, 5:26:16 (UTC-6), VAIBHAV GUPTA escribió:
>>
>> Yaa I got the error as what you (Michal Petrucha) stated about that the
>> path of  GDAL_LIBRARY_PATH that I had given was of Linux. Now I changed
>> the path (given below)  according to the windows OS  , still the problem is
>> not resolved.
>> GDAL_LIBRARY_PATH =
>> 'C:\\Users\\gaurav\\Anaconda3\\Lib\\site-packages\\django\\contrib\\gis\\gdal'
>>
>> Also I have reinstalled GDAL from
>> https://sandbox.idre.ucla.edu/sandbox/tutorials/installing-gdal-for-windows
>> and followed all the steps provided in this website, but still the
>> problem is not resolved.
>> Now I have given this path GDAL_LIBRARY_PATH = 'C:\\Program
>> Files\\GDAL\\gdal203.dll' in settings.py .
>>
>> May be that now I have two GDAL libraries, one installed using  OSGeo4W
>> installer  and the other using the
>> above link and now they are conflicting.
>>
>>
>> On Tue, Oct 2, 2018 at 12:19 PM Michal Petrucha 
>> wrote:
>>
>>> -BEGIN PGP SIGNED MESSAGE-
>>> Hash: SHA512
>>>
>>> On Mon, Oct 01, 2018 at 03:02:18PM -0700, vaibhav.g...@gla.ac.in wrote:
>>> > I have installed PROJ4, GDAL and GEOS libraries using OSGeo4W
>>> installer
>>> > . But the problem is with GDAL
>>> library.
>>> > Earlier there was an error showing :-
>>> > django.core.exceptions.ImproperlyConfigured: Could not find the GDAL
>>> > library (tried "gdal202", "gdal201", "gdal20", "gdal111", "gdal110",
>>> > "gdal19"). Is GDAL installed? If it is, try setting GDAL_LIBRARY_PATH
>>> in
>>> > your settings.
>>> >
>>> > Then after setting the path using GDAL_LIBRARY_PATH =
>>> > '/home/sue/local/lib/libgdal.so'  in settings.py file the error
>>> changes to
>>> > what I have stated before which is :-
>>> > OSError: [WinError 126] The specified module could not be found.
>>>
>>> If you used '/home/sue/local/lib/libgdal.so', then that would be
>>> incorrect – you write that you're trying to run this on Windows, but
>>> this is a Unix path, so of course Python won't find that file there.
>>>
>>> Replace that with the full path to your GDAL DLL, and if you use
>>> backslashes as a directory delimiter, make sure to either use a raw
>>> string literal (r'c:\path\to\my\gdal.dll'), or double-backslashes
>>> ('c:\\path\\to\\my\\gdal.dll').
>>>
>>> Michal
>>> -BEGIN PGP SIGNATURE-
>>> Version: GnuPG v1
>>>
>>> iQIcBAEBCgAGBQJbsxTVAAoJEHA7T/IPM/klLA0QANjRJZjywvglG74qJQujhyK3
>>> F0FkcN6RVXlwZv2XBq21NufpItQ5kWwnPWEFfA0LwCfIIqrwbsQu2Al1r6xaq29U
>>> uq7cgZDNCfvfMrqnG7sVoqddkJN9taIkl0z+KQtaqg1rsfTdNZa6esKBc062+rCO
>>> HhqrAbHZaUaYkenfvMXp1Qe3GBN6taJ+5banbBoWs1ipeUYK3v+ltLkv8sN4ipHg
>>> Fcj5FKHv1ldt2pE88JvVwGxcrW6cpngKjElZZTjgTDGokC2v7kptCVkkj3KJWPNv
>>> VR+OK0FWwsJdF2uZ3eni9v/MNBTCMe1b8m/ZM6tU2aWW3+8EqznMaX82I+8RMOtS
>>> dPwvTk5To7DwVhm6tQtaO1+abdf/pZ6X76hWwusGbmbCW/Mn04S66CMM+TgVGhSX
>>> LyQZajgYKq6qyt6C/YkNO1wkGNNY8eaDVSotdRMXd9oDpg9xVwx2jwVuGRMBhsVi
>>> 2Oou19GTU9GLfOLAC3pEGU3/724ZfLBWP+dCksHtTLrRqU0u9KhEtbrLUrutfDUG
>>> rdWxpmKMjkwyZ7oZt4kLu+ZTEuu2tYU4G770Vq3Z4Ui1HbBYX0QNIEiwhTXehx+a
>>> 3vNZ0I5M9idu9kfgrPFmthYb69eWi2cZuPbOMoC1lBm0JrVE5v8L4NwEKx0Itp7u
>>> i/QDsOX/rzuTUQyvnOq3
>>> =VilN
>>> -END PGP SIGNATURE-
>>>
>>> --
>>> 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 post to this group, send email to django...@googlegroups.com.
>>> Visit this group at https://groups.google.com/group/django-users.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/20181002064854.GZ1181%40konk.org
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
> 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+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/dc60d6b1-7fc7-44a5-abfe-2dd4909fec61%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed

Re: Geodjango Error

2018-10-02 Thread heriberto ochoa
The problem can be with Anaconda3, you installed GDAL in the path of 
Anaconda3 or in the path de other path of python?, the path of GDAL have 
all .dll file required

El martes, 2 de octubre de 2018, 5:26:16 (UTC-6), VAIBHAV GUPTA escribió:
>
> Yaa I got the error as what you (Michal Petrucha) stated about that the 
> path of  GDAL_LIBRARY_PATH that I had given was of Linux. Now I changed 
> the path (given below)  according to the windows OS  , still the problem is 
> not resolved.
> GDAL_LIBRARY_PATH = 
> 'C:\\Users\\gaurav\\Anaconda3\\Lib\\site-packages\\django\\contrib\\gis\\gdal'
>
> Also I have reinstalled GDAL from 
> https://sandbox.idre.ucla.edu/sandbox/tutorials/installing-gdal-for-windows
> and followed all the steps provided in this website, but still the problem 
> is not resolved.
> Now I have given this path GDAL_LIBRARY_PATH = 'C:\\Program 
> Files\\GDAL\\gdal203.dll' in settings.py . 
>  
> May be that now I have two GDAL libraries, one installed using  OSGeo4W 
> installer  and the other using the above 
> link and now they are conflicting.
>
>
> On Tue, Oct 2, 2018 at 12:19 PM Michal Petrucha  > wrote:
>
>> -BEGIN PGP SIGNED MESSAGE-
>> Hash: SHA512
>>
>> On Mon, Oct 01, 2018 at 03:02:18PM -0700, vaibhav.g...@gla.ac.in 
>>  wrote:
>> > I have installed PROJ4, GDAL and GEOS libraries using OSGeo4W installer 
>> > . But the problem is with GDAL 
>> library. 
>> > Earlier there was an error showing :-
>> > django.core.exceptions.ImproperlyConfigured: Could not find the GDAL 
>> > library (tried "gdal202", "gdal201", "gdal20", "gdal111", "gdal110", 
>> > "gdal19"). Is GDAL installed? If it is, try setting GDAL_LIBRARY_PATH 
>> in 
>> > your settings.
>> > 
>> > Then after setting the path using GDAL_LIBRARY_PATH = 
>> > '/home/sue/local/lib/libgdal.so'  in settings.py file the error changes 
>> to 
>> > what I have stated before which is :-
>> > OSError: [WinError 126] The specified module could not be found.
>>
>> If you used '/home/sue/local/lib/libgdal.so', then that would be
>> incorrect – you write that you're trying to run this on Windows, but
>> this is a Unix path, so of course Python won't find that file there.
>>
>> Replace that with the full path to your GDAL DLL, and if you use
>> backslashes as a directory delimiter, make sure to either use a raw
>> string literal (r'c:\path\to\my\gdal.dll'), or double-backslashes
>> ('c:\\path\\to\\my\\gdal.dll').
>>
>> Michal
>> -BEGIN PGP SIGNATURE-
>> Version: GnuPG v1
>>
>> iQIcBAEBCgAGBQJbsxTVAAoJEHA7T/IPM/klLA0QANjRJZjywvglG74qJQujhyK3
>> F0FkcN6RVXlwZv2XBq21NufpItQ5kWwnPWEFfA0LwCfIIqrwbsQu2Al1r6xaq29U
>> uq7cgZDNCfvfMrqnG7sVoqddkJN9taIkl0z+KQtaqg1rsfTdNZa6esKBc062+rCO
>> HhqrAbHZaUaYkenfvMXp1Qe3GBN6taJ+5banbBoWs1ipeUYK3v+ltLkv8sN4ipHg
>> Fcj5FKHv1ldt2pE88JvVwGxcrW6cpngKjElZZTjgTDGokC2v7kptCVkkj3KJWPNv
>> VR+OK0FWwsJdF2uZ3eni9v/MNBTCMe1b8m/ZM6tU2aWW3+8EqznMaX82I+8RMOtS
>> dPwvTk5To7DwVhm6tQtaO1+abdf/pZ6X76hWwusGbmbCW/Mn04S66CMM+TgVGhSX
>> LyQZajgYKq6qyt6C/YkNO1wkGNNY8eaDVSotdRMXd9oDpg9xVwx2jwVuGRMBhsVi
>> 2Oou19GTU9GLfOLAC3pEGU3/724ZfLBWP+dCksHtTLrRqU0u9KhEtbrLUrutfDUG
>> rdWxpmKMjkwyZ7oZt4kLu+ZTEuu2tYU4G770Vq3Z4Ui1HbBYX0QNIEiwhTXehx+a
>> 3vNZ0I5M9idu9kfgrPFmthYb69eWi2cZuPbOMoC1lBm0JrVE5v8L4NwEKx0Itp7u
>> i/QDsOX/rzuTUQyvnOq3
>> =VilN
>> -END PGP SIGNATURE-
>>
>> -- 
>> 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 post to this group, send email to django...@googlegroups.com 
>> .
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/20181002064854.GZ1181%40konk.org
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/dc60d6b1-7fc7-44a5-abfe-2dd4909fec61%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Geodjango Error

2018-10-02 Thread VAIBHAV GUPTA
Yaa I got the error as what you (Michal Petrucha) stated about that the
path of  GDAL_LIBRARY_PATH that I had given was of Linux. Now I changed the
path (given below)  according to the windows OS  , still the problem is not
resolved.
GDAL_LIBRARY_PATH =
'C:\\Users\\gaurav\\Anaconda3\\Lib\\site-packages\\django\\contrib\\gis\\gdal'

Also I have reinstalled GDAL from
https://sandbox.idre.ucla.edu/sandbox/tutorials/installing-gdal-for-windows
and followed all the steps provided in this website, but still the problem
is not resolved.
Now I have given this path GDAL_LIBRARY_PATH = 'C:\\Program
Files\\GDAL\\gdal203.dll' in settings.py .

May be that now I have two GDAL libraries, one installed using  OSGeo4W
installer  and the other using the above
link and now they are conflicting.


On Tue, Oct 2, 2018 at 12:19 PM Michal Petrucha <
michal.petru...@konk.org> wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA512
>
> On Mon, Oct 01, 2018 at 03:02:18PM -0700, vaibhav.gupta_c...@gla.ac.in
> wrote:
> > I have installed PROJ4, GDAL and GEOS libraries using OSGeo4W installer
> > . But the problem is with GDAL
> library.
> > Earlier there was an error showing :-
> > django.core.exceptions.ImproperlyConfigured: Could not find the GDAL
> > library (tried "gdal202", "gdal201", "gdal20", "gdal111", "gdal110",
> > "gdal19"). Is GDAL installed? If it is, try setting GDAL_LIBRARY_PATH in
> > your settings.
> >
> > Then after setting the path using GDAL_LIBRARY_PATH =
> > '/home/sue/local/lib/libgdal.so'  in settings.py file the error changes
> to
> > what I have stated before which is :-
> > OSError: [WinError 126] The specified module could not be found.
>
> If you used '/home/sue/local/lib/libgdal.so', then that would be
> incorrect – you write that you're trying to run this on Windows, but
> this is a Unix path, so of course Python won't find that file there.
>
> Replace that with the full path to your GDAL DLL, and if you use
> backslashes as a directory delimiter, make sure to either use a raw
> string literal (r'c:\path\to\my\gdal.dll'), or double-backslashes
> ('c:\\path\\to\\my\\gdal.dll').
>
> Michal
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1
>
> iQIcBAEBCgAGBQJbsxTVAAoJEHA7T/IPM/klLA0QANjRJZjywvglG74qJQujhyK3
> F0FkcN6RVXlwZv2XBq21NufpItQ5kWwnPWEFfA0LwCfIIqrwbsQu2Al1r6xaq29U
> uq7cgZDNCfvfMrqnG7sVoqddkJN9taIkl0z+KQtaqg1rsfTdNZa6esKBc062+rCO
> HhqrAbHZaUaYkenfvMXp1Qe3GBN6taJ+5banbBoWs1ipeUYK3v+ltLkv8sN4ipHg
> Fcj5FKHv1ldt2pE88JvVwGxcrW6cpngKjElZZTjgTDGokC2v7kptCVkkj3KJWPNv
> VR+OK0FWwsJdF2uZ3eni9v/MNBTCMe1b8m/ZM6tU2aWW3+8EqznMaX82I+8RMOtS
> dPwvTk5To7DwVhm6tQtaO1+abdf/pZ6X76hWwusGbmbCW/Mn04S66CMM+TgVGhSX
> LyQZajgYKq6qyt6C/YkNO1wkGNNY8eaDVSotdRMXd9oDpg9xVwx2jwVuGRMBhsVi
> 2Oou19GTU9GLfOLAC3pEGU3/724ZfLBWP+dCksHtTLrRqU0u9KhEtbrLUrutfDUG
> rdWxpmKMjkwyZ7oZt4kLu+ZTEuu2tYU4G770Vq3Z4Ui1HbBYX0QNIEiwhTXehx+a
> 3vNZ0I5M9idu9kfgrPFmthYb69eWi2cZuPbOMoC1lBm0JrVE5v8L4NwEKx0Itp7u
> i/QDsOX/rzuTUQyvnOq3
> =VilN
> -END PGP SIGNATURE-
>
> --
> 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+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/20181002064854.GZ1181%40konk.org
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAA0Ai3ZXV5MviEmGo_UKU_XVTZfPoXEjs6eu0ULRw05w-mW8Rw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Geodjango Error

2018-10-01 Thread Michal Petrucha
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

On Mon, Oct 01, 2018 at 03:02:18PM -0700, vaibhav.gupta_c...@gla.ac.in wrote:
> I have installed PROJ4, GDAL and GEOS libraries using OSGeo4W installer 
> . But the problem is with GDAL library. 
> Earlier there was an error showing :-
> django.core.exceptions.ImproperlyConfigured: Could not find the GDAL 
> library (tried "gdal202", "gdal201", "gdal20", "gdal111", "gdal110", 
> "gdal19"). Is GDAL installed? If it is, try setting GDAL_LIBRARY_PATH in 
> your settings.
> 
> Then after setting the path using GDAL_LIBRARY_PATH = 
> '/home/sue/local/lib/libgdal.so'  in settings.py file the error changes to 
> what I have stated before which is :-
> OSError: [WinError 126] The specified module could not be found.

If you used '/home/sue/local/lib/libgdal.so', then that would be
incorrect – you write that you're trying to run this on Windows, but
this is a Unix path, so of course Python won't find that file there.

Replace that with the full path to your GDAL DLL, and if you use
backslashes as a directory delimiter, make sure to either use a raw
string literal (r'c:\path\to\my\gdal.dll'), or double-backslashes
('c:\\path\\to\\my\\gdal.dll').

Michal
-BEGIN PGP SIGNATURE-
Version: GnuPG v1

iQIcBAEBCgAGBQJbsxTVAAoJEHA7T/IPM/klLA0QANjRJZjywvglG74qJQujhyK3
F0FkcN6RVXlwZv2XBq21NufpItQ5kWwnPWEFfA0LwCfIIqrwbsQu2Al1r6xaq29U
uq7cgZDNCfvfMrqnG7sVoqddkJN9taIkl0z+KQtaqg1rsfTdNZa6esKBc062+rCO
HhqrAbHZaUaYkenfvMXp1Qe3GBN6taJ+5banbBoWs1ipeUYK3v+ltLkv8sN4ipHg
Fcj5FKHv1ldt2pE88JvVwGxcrW6cpngKjElZZTjgTDGokC2v7kptCVkkj3KJWPNv
VR+OK0FWwsJdF2uZ3eni9v/MNBTCMe1b8m/ZM6tU2aWW3+8EqznMaX82I+8RMOtS
dPwvTk5To7DwVhm6tQtaO1+abdf/pZ6X76hWwusGbmbCW/Mn04S66CMM+TgVGhSX
LyQZajgYKq6qyt6C/YkNO1wkGNNY8eaDVSotdRMXd9oDpg9xVwx2jwVuGRMBhsVi
2Oou19GTU9GLfOLAC3pEGU3/724ZfLBWP+dCksHtTLrRqU0u9KhEtbrLUrutfDUG
rdWxpmKMjkwyZ7oZt4kLu+ZTEuu2tYU4G770Vq3Z4Ui1HbBYX0QNIEiwhTXehx+a
3vNZ0I5M9idu9kfgrPFmthYb69eWi2cZuPbOMoC1lBm0JrVE5v8L4NwEKx0Itp7u
i/QDsOX/rzuTUQyvnOq3
=VilN
-END PGP SIGNATURE-

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/20181002064854.GZ1181%40konk.org.
For more options, visit https://groups.google.com/d/optout.


Re: Geodjango Error

2018-10-01 Thread heriberto ochoa
try this installation
https://sandbox.idre.ucla.edu/sandbox/tutorials/installing-gdal-for-windows

or this
http://www.sigdeletras.com/2016/instalacion-de-python-y-gdal-en-windows/

El lun., 1 de oct. de 2018 4:02 p. m., 
escribió:

> I have installed PROJ4, GDAL and GEOS libraries using OSGeo4W installer
> <https://trac.osgeo.org/osgeo4w/>. But the problem is with GDAL library.
> Earlier there was an error showing :-
> django.core.exceptions.ImproperlyConfigured: Could not find the GDAL
> library (tried "gdal202", "gdal201", "gdal20", "gdal111", "gdal110",
> "gdal19"). Is GDAL installed? If it is, try setting GDAL_LIBRARY_PATH in
> your settings.
>
> Then after setting the path using GDAL_LIBRARY_PATH =
> '/home/sue/local/lib/libgdal.so'  in settings.py file the error changes to
> what I have stated before which is :-
> OSError: [WinError 126] The specified module could not be found.
>
> On Monday, October 1, 2018 at 10:48:15 PM UTC+5:30, vaibhav.g...@gla.ac.in
> wrote:
>>
>> Currently, I am working on Geodjango. I have gone through all the
>> procedures written in
>> https://docs.djangoproject.com/en/2.1/ref/contrib/gis/install/#requirements
>> for windows OS. But still I am facing an error showing :
>>
>> OSError: [WinError 126] The specified module could not be found
>>
>> You can refer to this error in the attached file.
>> Can anyone help me out of this.
>>
>>
>> --
> 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+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/313312c3-4e8b-4178-985b-e3fedd910351%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/313312c3-4e8b-4178-985b-e3fedd910351%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAOEQi8QJNKpDJsXrBtR4GyLiiRJD9%3DDc%2B6u0r4CRnGCsy8BWsQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Geodjango Error

2018-10-01 Thread vaibhav . gupta_cs16


On Tuesday, October 2, 2018 at 3:32:18 AM UTC+5:30, vaibhav.g...@gla.ac.in 
wrote:
>
> I have installed PROJ4, GDAL and GEOS libraries using OSGeo4W installer 
> <https://trac.osgeo.org/osgeo4w/>. But the problem is with GDAL library. 
> Earlier there was an error showing :-
> django.core.exceptions.ImproperlyConfigured: Could not find the GDAL 
> library (tried "gdal202", "gdal201", "gdal20", "gdal111", "gdal110", 
> "gdal19"). Is GDAL installed? If it is, try setting GDAL_LIBRARY_PATH in 
> your settings.
>
> Then after setting the path using GDAL_LIBRARY_PATH = 
> '/home/sue/local/lib/libgdal.so'  in settings.py file the error changes to 
> what I have stated before which is :-
> OSError: [WinError 126] The specified module could not be found.
>
> On Monday, October 1, 2018 at 10:48:15 PM UTC+5:30, vaibhav.g...@gla.ac.in 
> wrote:
>>
>> Currently, I am working on Geodjango. I have gone through all the 
>> procedures written in 
>> https://docs.djangoproject.com/en/2.1/ref/contrib/gis/install/#requirements 
>> for windows OS. But still I am facing an error showing :
>>
>> OSError: [WinError 126] The specified module could not be found
>>
>> You can refer to this error in the attached file.
>> Can anyone help me out of this.
>>
>>
>>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/b3265462-5122-49e0-bdf4-05a84387d221%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Geodjango Error

2018-10-01 Thread vaibhav . gupta_cs16
I have installed PROJ4, GDAL and GEOS libraries using OSGeo4W installer 
<https://trac.osgeo.org/osgeo4w/>. But the problem is with GDAL library. 
Earlier there was an error showing :-
django.core.exceptions.ImproperlyConfigured: Could not find the GDAL 
library (tried "gdal202", "gdal201", "gdal20", "gdal111", "gdal110", 
"gdal19"). Is GDAL installed? If it is, try setting GDAL_LIBRARY_PATH in 
your settings.

Then after setting the path using GDAL_LIBRARY_PATH = 
'/home/sue/local/lib/libgdal.so'  in settings.py file the error changes to 
what I have stated before which is :-
OSError: [WinError 126] The specified module could not be found.

On Monday, October 1, 2018 at 10:48:15 PM UTC+5:30, vaibhav.g...@gla.ac.in 
wrote:
>
> Currently, I am working on Geodjango. I have gone through all the 
> procedures written in 
> https://docs.djangoproject.com/en/2.1/ref/contrib/gis/install/#requirements 
> for windows OS. But still I am facing an error showing :
>
> OSError: [WinError 126] The specified module could not be found
>
> You can refer to this error in the attached file.
> Can anyone help me out of this.
>
>
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/313312c3-4e8b-4178-985b-e3fedd910351%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Geodjango Error

2018-10-01 Thread heriberto ochoa
Could it be that it does not find a .dll file, what libraries do you use?

El lun., 1 de oct. de 2018 11:17 a. m., 
escribió:

> Currently, I am working on Geodjango. I have gone through all the
> procedures written in
> https://docs.djangoproject.com/en/2.1/ref/contrib/gis/install/#requirements
> for windows OS. But still I am facing an error showing :
>
> OSError: [WinError 126] The specified module could not be found
>
> You can refer to this error in the attached file.
> Can anyone help me out of this.
>
>
> --
> 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+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/9fab105c-da54-400a-83bd-6510649078f0%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/9fab105c-da54-400a-83bd-6510649078f0%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAOEQi8Szsgaqs2jenBtLkY%2BOJZjeWaOLU51au1Vu%2B72T%3DRLJCg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Geodjango Error

2018-10-01 Thread vaibhav . gupta_cs16
Currently, I am working on Geodjango. I have gone through all the 
procedures written 
in https://docs.djangoproject.com/en/2.1/ref/contrib/gis/install/#requirements 
for windows OS. But still I am facing an error showing :

OSError: [WinError 126] The specified module could not be found

You can refer to this error in the attached file.
Can anyone help me out of this.


-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/9fab105c-da54-400a-83bd-6510649078f0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Error during GeoDjango tutorial documentaion

2018-08-28 Thread Benjamin Smith
Thank you Jason, that was it.

On Sun, Aug 26, 2018 at 5:49 PM Jason  wrote:

> this might be related:
> https://groups.google.com/forum/#!topic/geodjango/Imkq2DDI7qg
>
> --
> 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+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/94e6dc8f-ddb3-464a-be35-3bcc526cf5cb%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/94e6dc8f-ddb3-464a-be35-3bcc526cf5cb%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAM4YLWJ2jg6KppL-ADX_1HwuMQyinWzR3aJ4v_LuGtOBLKurYg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Error during GeoDjango tutorial documentaion

2018-08-26 Thread Jason
this might be related:  
https://groups.google.com/forum/#!topic/geodjango/Imkq2DDI7qg

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/94e6dc8f-ddb3-464a-be35-3bcc526cf5cb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Error during GeoDjango tutorial documentaion

2018-08-26 Thread Benjamin Smith
I am using these version:

gdal-bin v2.2.3+dfsg-2

Python v3.6.5
Django v2.1
psycopg2 v2.7.5
postgis v2.4.3+dfsg-4

On Sun, Aug 26, 2018 at 3:45 PM Benjamin Smith 
wrote:

> I am going through the GeoDjango tutorial from the official documentation.
>
>1. I have installed the required geospatial libraries, installed and
>enabled spatial functionality by extending the PostgreSQL via postgis.
>2. Downloaded the world borders data, and have unzipped the data.
>3. Created a GeoDjango model (WorldBorder) in the world app.
>4. Created the load.py inside the world app, as instructed in the
>documentation.
>
> But when I try to import the *load* module and call the *run* routine, I
> am getting an error:
>
>   Failed to save the feature (id: 141) into the model with the keyword
>> arguments:
>>   Traceback (most recent call last):
>> File
>> "/home/vagrant/.virtualenvs/testenv/lib/python3.6/site-packages/django/contrib/gis/utils/layermapping.py",
>> line 577, in _save
>>   stream.write('%s: %s\n' % ('Updated' if is_update else 'Saved', m))
>>   UnicodeEncodeError: 'ascii' codec can't encode characters in position
>> 7-8: ordinal not in range(128)
>>   During handling of the above exception, another exception occurred:
>>   Traceback (most recent call last):
>> File "", line 1, in 
>> File "/vagrant/geo_project/world/load.py", line 30, in run
>>   lm.save(strict=True, verbose=verbose)
>> File
>> "/home/vagrant/.virtualenvs/testenv/lib/python3.6/site-packages/django/contrib/gis/utils/layermapping.py",
>> line 627, in save
>>   _save()
>> File "/usr/lib/python3.6/contextlib.py", line 52, in inner
>>   return func(*args, **kwds)
>> File
>> "/home/vagrant/.virtualenvs/testenv/lib/python3.6/site-packages/django/contrib/gis/utils/layermapping.py",
>> line 586, in _save
>>   stream.write('%s\n' % kwargs)
>>   UnicodeEncodeError: 'ascii' codec can't encode character '\xc3' in
>> position 62: ordinal not in range(128)
>
>
> I cannot figure out where I am wrong. Could you please help me out? Thank
> you.
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAM4YLWKrga4R9dKLrCo5Nw-ENG16uzvP6xH1PqubLTna25xK8g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Error during GeoDjango tutorial documentaion

2018-08-26 Thread Benjamin Smith
I am going through the GeoDjango tutorial from the official documentation.

   1. I have installed the required geospatial libraries, installed and
   enabled spatial functionality by extending the PostgreSQL via postgis.
   2. Downloaded the world borders data, and have unzipped the data.
   3. Created a GeoDjango model (WorldBorder) in the world app.
   4. Created the load.py inside the world app, as instructed in the
   documentation.

But when I try to import the *load* module and call the *run* routine, I am
getting an error:

  Failed to save the feature (id: 141) into the model with the keyword
> arguments:
>   Traceback (most recent call last):
> File
> "/home/vagrant/.virtualenvs/testenv/lib/python3.6/site-packages/django/contrib/gis/utils/layermapping.py",
> line 577, in _save
>   stream.write('%s: %s\n' % ('Updated' if is_update else 'Saved', m))
>   UnicodeEncodeError: 'ascii' codec can't encode characters in position
> 7-8: ordinal not in range(128)
>   During handling of the above exception, another exception occurred:
>   Traceback (most recent call last):
> File "", line 1, in 
> File "/vagrant/geo_project/world/load.py", line 30, in run
>   lm.save(strict=True, verbose=verbose)
> File
> "/home/vagrant/.virtualenvs/testenv/lib/python3.6/site-packages/django/contrib/gis/utils/layermapping.py",
> line 627, in save
>   _save()
> File "/usr/lib/python3.6/contextlib.py", line 52, in inner
>   return func(*args, **kwds)
> File
> "/home/vagrant/.virtualenvs/testenv/lib/python3.6/site-packages/django/contrib/gis/utils/layermapping.py",
> line 586, in _save
>   stream.write('%s\n' % kwargs)
>   UnicodeEncodeError: 'ascii' codec can't encode character '\xc3' in
> position 62: ordinal not in range(128)


I cannot figure out where I am wrong. Could you please help me out? Thank
you.

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAM4YLWJ0uCO47PWEaPAUYB4JCwpBMW-AVsoKA2u_ksmmUhXKEg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


geodjango raster field display on leaflet

2018-07-25 Thread Xristos Xristoou
 

in the new django version support raster field and i follow this 
<https://docs.djangoproject.com/en/2.0/ref/contrib/gis/model-api/> manual 
for geodjango raster field and this questions 
<https://stackoverflow.com/questions/42285780/geodjango-tif-import-with-raster-needs-to-be-opened-in-write-mode-to-change-val>
 
for add raster i have build a simple demo.

here the code :

settings.py

postgis database backend

'django.contrib.gis.db.backends.postgis'

models.py

from django.db import modelsfrom django.contrib.gis.db import models
class Elevation(models.Model):
name = models.CharField(max_length=100)
rast = models.RasterField()

all works fine without error.

but i have one BIG question where i dont know how to complete it.

how to display this raster in some web map like leaflet ? any idea how 
?some tutorial to help me ?

thank you 

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/4ecf8150-3dca-4fd8-bfc8-299862a0b89a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Converting GeometryField to MultiPolygon using GeoDjango?

2018-06-13 Thread Jani Tiainen
Hi.

I usually do data cleanups with QGIS tool which has excellent tools to
manipulate data. And it's relatively fast.

Of course if you need to import data more regular basis QGIS might not be
an option.

ke 13. kesäk. 2018 klo 21.30 Jack  kirjoitti:

> See original question on Stack Overflow
> <https://stackoverflow.com/questions/50841538/converting-geometryfield-to-multipolygon-using-geodjango>
>  for
> better formating.
>
> --
> 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+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/8b8f53c5-2e53-4ec8-b2e6-7c7ec18ed5fe%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/8b8f53c5-2e53-4ec8-b2e6-7c7ec18ed5fe%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAHn91oeDgwMGQ8Q1E7fk5K9-Pw1k8vMjBfK9sisSY94Z1%3D-WbA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Converting GeometryField to MultiPolygon using GeoDjango?

2018-06-13 Thread Jack
See original question on Stack Overflow 
<https://stackoverflow.com/questions/50841538/converting-geometryfield-to-multipolygon-using-geodjango>
 for 
better formating.

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/8b8f53c5-2e53-4ec8-b2e6-7c7ec18ed5fe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Converting GeometryField to MultiPolygon using GeoDjango?

2018-06-13 Thread Jack
I am trying to add a bunch of school boundary files into the database.  The 
boundary files are inconsistent.  They are processed by `DataSource` as 
either `Polygon`, `MultiPolygon`, or `GeometryCollection`.

Converting `Polygon` into `MultiPolygon` is fairly simple using this 
solution 
<https://gis.stackexchange.com/questions/13498>(https://gis.stackexchange.com/questions/13498),
 
but the conversion does not work for `GeometryCollection`.

class School(models.Model):
boundaries = models.MultiPolygonField()

---

from django.contrib.gis.geos import Polygon, MultiPolygon
from django.contrib.gis.geos.collections import GeometryCollection

ds = DataSource('school_boundaries.aspx')
feature = ds[0][0]
geom_geos = feature.geom.geos
if isinstance(geom_geos, Polygon):
geom_geos = MultiPolygon(geom_geos)
elif isinstance(geom_geos, GeometryCollection):
geom_geos = MultiPolygon(GeometryCollection)  #This does not work
school = School(boundaries = geom_geos)
school.save()

Is there some way to convert `GeometryField` to `MultiPolygon` in GeoDjango?

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/9fa3df23-bc41-4ea4-a766-d68525065766%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: geodjango wrong srid when it saves feature

2018-05-23 Thread Majid Hojati
in fact I tried this and problem solved I have no idea why this happened

geom_t = feat.geom.transform(wgs84, clone=True)
geom= GEOSGeometry(geom_t.wkt,4326)


On Wednesday, May 23, 2018 at 7:54:46 PM UTC+4:30, Daniel Germano Travieso 
wrote:
>
> Hello!
>
> You should probably use the LineString from django.contrib.gis.geos to 
> store Geo objects on the database
>
> Hope it helps.
>
> *[]'s*
> *Daniel Germano Travieso*
> *Engenharia da Computação Turma: 013*
> *Unicamp*
>
> On Wed, May 23, 2018 at 11:54 AM, Majid Hojati  > wrote:
>
>> Hi,
>> I tried to read data from a shape file and save them into database. well 
>> here is my code
>>
>>
>> lyr = ds[0]
>>
>> for feat in lyr:
>> geom_t = feat.geom.transform(wgs84, clone=True)
>> print(geom_t.wkt)
>> print(feat.geom.wkt)
>>
>> name =''
>> Twoway='1'
>>
>> data = {
>> 'name': name,
>> 'Twoway': Twoway,
>> 'geom': geom_t.wkb
>> }
>> form = Street_Form(data)
>> if form.is_valid():
>> savedlocation = form.save()
>>
>>
>> well it saves and works fine. I printed some of my geometries as wkt before 
>> saving to databse and here is the result 
>>
>>
>> LINESTRING (50.9847540637495 35.8384680697353,50.9850968571006 
>> 35.8383655346687)
>> LINESTRING (50.9847540637495 35.8384680697353,50.9850968571006 
>> 35.8383655346687)
>>
>>
>> As you can see they are EPSG:4326 and nothing is wrong. 
>> Here is my model
>>
>> class str(models.Model):
>> geom = models.LineStringField(srid=4326)
>>
>>
>> but when I read data from database they are as following
>>
>>
>> "LINESTRING(0.000457917485762628 0.000321907544087987,0.000457920236524686 
>> 0.000321915031075541)"
>>
>>
>> the above result is from this query
>>
>>
>> select st_astext(geom) from public."app_str"
>>
>>
>> well the geometries are misplaced, where is the problem?why this happens?
>>
>> -- 
>> 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 post to this group, send email to django...@googlegroups.com 
>> .
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/76979930-39f5-4deb-9c95-dcf3d7f55f97%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/167690aa-e363-4789-a115-11026079c2de%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: geodjango wrong srid when it saves feature

2018-05-23 Thread Daniel Germano Travieso
Hello!

You should probably use the LineString from django.contrib.gis.geos to
store Geo objects on the database

Hope it helps.

*[]'s*
*Daniel Germano Travieso*
*Engenharia da Computação Turma: 013*
*Unicamp*

On Wed, May 23, 2018 at 11:54 AM, Majid Hojati  wrote:

> Hi,
> I tried to read data from a shape file and save them into database. well
> here is my code
>
>
> lyr = ds[0]
>
> for feat in lyr:
> geom_t = feat.geom.transform(wgs84, clone=True)
> print(geom_t.wkt)
> print(feat.geom.wkt)
>
> name =''
> Twoway='1'
>
> data = {
> 'name': name,
> 'Twoway': Twoway,
> 'geom': geom_t.wkb
> }
> form = Street_Form(data)
> if form.is_valid():
> savedlocation = form.save()
>
>
> well it saves and works fine. I printed some of my geometries as wkt before 
> saving to databse and here is the result
>
>
> LINESTRING (50.9847540637495 35.8384680697353,50.9850968571006 
> 35.8383655346687)
> LINESTRING (50.9847540637495 35.8384680697353,50.9850968571006 
> 35.8383655346687)
>
>
> As you can see they are EPSG:4326 and nothing is wrong.
> Here is my model
>
> class str(models.Model):
> geom = models.LineStringField(srid=4326)
>
>
> but when I read data from database they are as following
>
>
> "LINESTRING(0.000457917485762628 0.000321907544087987,0.000457920236524686 
> 0.000321915031075541)"
>
>
> the above result is from this query
>
>
> select st_astext(geom) from public."app_str"
>
>
> well the geometries are misplaced, where is the problem?why this happens?
>
> --
> 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+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/76979930-39f5-4deb-9c95-dcf3d7f55f97%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABF8kZPV%2Bn4ebw7hh%2BvfcacsbWsDUt4oS2XW6NJuf91tQYNoQA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


geodjango wrong srid when it saves feature

2018-05-23 Thread Majid Hojati
Hi,
I tried to read data from a shape file and save them into database. well 
here is my code


lyr = ds[0]

for feat in lyr:
geom_t = feat.geom.transform(wgs84, clone=True)
print(geom_t.wkt)
print(feat.geom.wkt)

name =''
Twoway='1'

data = {
'name': name,
'Twoway': Twoway,
'geom': geom_t.wkb
}
form = Street_Form(data)
if form.is_valid():
savedlocation = form.save()


well it saves and works fine. I printed some of my geometries as wkt before 
saving to databse and here is the result 


LINESTRING (50.9847540637495 35.8384680697353,50.9850968571006 35.8383655346687)
LINESTRING (50.9847540637495 35.8384680697353,50.9850968571006 35.8383655346687)


As you can see they are EPSG:4326 and nothing is wrong. 
Here is my model

class str(models.Model):
geom = models.LineStringField(srid=4326)


but when I read data from database they are as following


"LINESTRING(0.000457917485762628 0.000321907544087987,0.000457920236524686 
0.000321915031075541)"


the above result is from this query


select st_astext(geom) from public."app_str"


well the geometries are misplaced, where is the problem?why this happens?

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/76979930-39f5-4deb-9c95-dcf3d7f55f97%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: GeoDjango GDAL Slice Error in layer.py

2018-01-13 Thread Jason
Are you able to access any features in the layer?

eg, the snippet above the one that gives you the error

>>> for feat in lyr:

...print(feat.get('NAME'), feat.geom.num_points)




On Friday, January 12, 2018 at 5:37:10 PM UTC-5, Justin Johnson wrote:
>
>
>
> I'm completely new to GeoDjango.  I'm working through the tutorial for 
> Django version 2.0, and I am encountering an error when I follow the steps 
> in the GeoDjango section.  
>
> Specifically, when I attempt to slice a Layer object to extract Features, 
> it gives me an error which looks like a possible bug.   I'll go through the 
> steps here.
>
>
>1. 
>
> https://docs.djangoproject.com/en/2.0/ref/contrib/gis/tutorial/#importing-spatial-data
>1. in this section of the tutorial, we import spatial data and use the 
>   GDAL library to work with an imported shapefile of world borders
>   2. Next, through the Django shell, I create a DataSource object 
>   
> <https://docs.djangoproject.com/en/2.0/ref/contrib/gis/gdal/#django.contrib.gis.gdal.DataSource>
>  
>   using the *django.contrib.gis.gdal *module
>   3. I am able to retrieve, from this DataSource object, a Layer 
>   object 
>   <https://docs.djangoproject.com/en/2.0/ref/contrib/gis/gdal/#layer> 
>   containing Features for each polygon
>   4. I can work through the examples showing the properties of that 
>   Layer object, and iterate through the Features in the Layer, so I know 
>   that's working
>2. The problem is when I try to Slice a Layer, to extract a subset of 
>Features: 
>   1. The example says I should be able to run  *>>> lyr[0:2]* and 
>   receive two Feature objects
>   2. However, what I get is an error message saying there is an 
>   IndexError, and it mentions a TypeError
>
>
> This is an image of the Traceback
>
>
> <https://lh3.googleusercontent.com/-brhlB-hy304/Wlk0oyv_XwI/f4c/mjZO4-9mEq4NjCj06XXm60HB90SwE9YSwCLcBGAs/s1600/Django_Slice_Error.jpg>
>
>
>
> And here is the traceback in text:
>
>
>
> In [12]: lyr[0:2]
> ---
> IndexErrorTraceback (most recent call last)
>  in ()
> > 1 lyr[0:2]
>
> c:\projects\python\env\ENV3\lib\site-packages\django\contrib\gis\gdal\layer.py
>  
> in __getitem__(self, index)
>  49 # A slice was given
>  50 start, stop, stride = index.indices(self.num_feat)
> ---> 51 return [self._make_feature(fid) for fid in 
> range(start, stop, stride)]
>  52 else:
>  53 raise TypeError('Integers and slices may only be used 
> when indexing OGR Layers.')
>
> c:\projects\python\env\ENV3\lib\site-packages\django\contrib\gis\gdal\layer.py
>  
> in (.0)
>  49 # A slice was given
>  50 start, stop, stride = index.indices(self.num_feat)
> ---> 51 return [self._make_feature(fid) for fid in 
> range(start, stop, stride)]
>  52 else:
>  53 raise TypeError('Integers and slices may only be used 
> when indexing OGR Layers.')
>
> c:\projects\python\env\ENV3\lib\site-packages\django\contrib\gis\gdal\layer.py
>  
> in _make_feature(self, feat_id)
>  88 return feat
>  89 # Should have returned a Feature, raise an IndexError.
> ---> 90 raise IndexError('Invalid feature id: %s.' % feat_id)
>  91
>  92 #  Layer properties 
>
> IndexError: Invalid feature id: 0.
>
>
>
> Again, I'm totally new to GeoDjango, so this could all be a user error.  I 
> have restarted the tutorial 3 times and it always fails at the slice 
> example.  The comment in the Traceback mentioning an IndexError has me 
> wondering.
>
> Thanks in advance.
>
>
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/82b69997-caed-4330-aef7-4d5c26bc6656%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


GeoDjango GDAL Slice Error in layer.py

2018-01-12 Thread Justin Johnson



I'm completely new to GeoDjango.  I'm working through the tutorial for 
Django version 2.0, and I am encountering an error when I follow the steps 
in the GeoDjango section.  

Specifically, when I attempt to slice a Layer object to extract Features, 
it gives me an error which looks like a possible bug.   I'll go through the 
steps here.


   1. 
   
https://docs.djangoproject.com/en/2.0/ref/contrib/gis/tutorial/#importing-spatial-data
   1. in this section of the tutorial, we import spatial data and use the 
  GDAL library to work with an imported shapefile of world borders
  2. Next, through the Django shell, I create a DataSource object 
  
<https://docs.djangoproject.com/en/2.0/ref/contrib/gis/gdal/#django.contrib.gis.gdal.DataSource>
 
  using the *django.contrib.gis.gdal *module
  3. I am able to retrieve, from this DataSource object, a Layer object 
  <https://docs.djangoproject.com/en/2.0/ref/contrib/gis/gdal/#layer> 
  containing Features for each polygon
  4. I can work through the examples showing the properties of that 
  Layer object, and iterate through the Features in the Layer, so I know 
  that's working
   2. The problem is when I try to Slice a Layer, to extract a subset of 
   Features: 
  1. The example says I should be able to run  *>>> lyr[0:2]* and 
  receive two Feature objects
  2. However, what I get is an error message saying there is an 
  IndexError, and it mentions a TypeError
   

This is an image of the Traceback

<https://lh3.googleusercontent.com/-brhlB-hy304/Wlk0oyv_XwI/f4c/mjZO4-9mEq4NjCj06XXm60HB90SwE9YSwCLcBGAs/s1600/Django_Slice_Error.jpg>



And here is the traceback in text:



In [12]: lyr[0:2]
---
IndexErrorTraceback (most recent call last)
 in ()
> 1 lyr[0:2]

c:\projects\python\env\ENV3\lib\site-packages\django\contrib\gis\gdal\layer.py 
in __getitem__(self, index)
 49 # A slice was given
 50 start, stop, stride = index.indices(self.num_feat)
---> 51 return [self._make_feature(fid) for fid in range(start, 
stop, stride)]
 52 else:
 53 raise TypeError('Integers and slices may only be used 
when indexing OGR Layers.')

c:\projects\python\env\ENV3\lib\site-packages\django\contrib\gis\gdal\layer.py 
in (.0)
 49 # A slice was given
 50 start, stop, stride = index.indices(self.num_feat)
---> 51 return [self._make_feature(fid) for fid in range(start, 
stop, stride)]
 52 else:
 53 raise TypeError('Integers and slices may only be used 
when indexing OGR Layers.')

c:\projects\python\env\ENV3\lib\site-packages\django\contrib\gis\gdal\layer.py 
in _make_feature(self, feat_id)
 88 return feat
 89 # Should have returned a Feature, raise an IndexError.
---> 90 raise IndexError('Invalid feature id: %s.' % feat_id)
 91
 92 # #### Layer properties 

IndexError: Invalid feature id: 0.



Again, I'm totally new to GeoDjango, so this could all be a user error.  I 
have restarted the tutorial 3 times and it always fails at the slice 
example.  The comment in the Traceback mentioning an IndexError has me 
wondering.

Thanks in advance.


-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/a8fb48a0-8bcd-41bb-a3ce-737c324d96cb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: GeoDjango GIS Model Fieldset Usage

2018-01-10 Thread Jani Tiainen

Hi,

Apparently you have mistaken what GeoDjango is.

GeoDjango is a GIS framework, that is it deals with (usually) real world 
coordinates.


And in most cases coordinates are 3D. Two well known coordinate systems 
are WGS84 (GPS uses this) and second one is Google Transverse Mercator.


GIS is usually used to do spatial lookups, like does two geometries 
intersect, or is point within specific polygon.


In GIS you do have few math ops, mainly distance and area. Distance and 
area math depends a bit of used coordinate system since some coordinate 
systems can take earth curvature in to account.


What you asking is actually is more like trigonometry which GeoDjango 
can't really do.


On 11.1.2018 6.53, Shazia Nusrat wrote:
For Instance...lets say I need to let customer calculate Azimuth for 
the home roof with ModelForm.
Its not a simple one single direction. If you can do it let me know 
with example.


Regards,
Shazia.

On Wed, Jan 10, 2018 at 11:30 PM, Jani Tiainen <mailto:rede...@gmail.com>> wrote:


Hi.

So what is your actual problem?

11.1.2018 3.04 "Shazia Nusrat" mailto:shazianu...@gmail.com>> kirjoitti:

Hi,

I need quick help about using the fields in the following model:

class Size(models.Model):
   azimuth = models.CharField(max_length=200, blank=True,
null=True)
 tilt = models.CharField(max_length=200, blank=True, null=True)
 boundary_coordinates = models.CharField(max_length=200,
blank=True)
 height = models.CharField(max_length=200, blank=True)
 width = models.CharField(max_length=200, blank=True)

I know there is a function reference for it but I don't know
how to use it as per the link below because I am newbie.

https://docs.djangoproject.com/en/2.0/ref/contrib/gis/functions/
<https://docs.djangoproject.com/en/2.0/ref/contrib/gis/functions/>

Please advise.
-- 
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+unsubscr...@googlegroups.com
<mailto:django-users+unsubscr...@googlegroups.com>.
To post to this group, send email to
django-users@googlegroups.com
<mailto:django-users@googlegroups.com>.
Visit this group at
https://groups.google.com/group/django-users
<https://groups.google.com/group/django-users>.
To view this discussion on the web visit

https://groups.google.com/d/msgid/django-users/CAD83tOz2xe4mHbbd1Xyag-Tad%2B3zsRjtQyTgC1C4Q35V1Wf4gg%40mail.gmail.com

<https://groups.google.com/d/msgid/django-users/CAD83tOz2xe4mHbbd1Xyag-Tad%2B3zsRjtQyTgC1C4Q35V1Wf4gg%40mail.gmail.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout
<https://groups.google.com/d/optout>.

-- 
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+unsubscr...@googlegroups.com
<mailto:django-users+unsubscr...@googlegroups.com>.
To post to this group, send email to django-users@googlegroups.com
<mailto:django-users@googlegroups.com>.
Visit this group at https://groups.google.com/group/django-users
<https://groups.google.com/group/django-users>.
To view this discussion on the web visit

https://groups.google.com/d/msgid/django-users/CAHn91oeB9c1axU-p7hyXZz5tD8sSbAskK7d%3DpVWTUvEsJwNHrA%40mail.gmail.com

<https://groups.google.com/d/msgid/django-users/CAHn91oeB9c1axU-p7hyXZz5tD8sSbAskK7d%3DpVWTUvEsJwNHrA%40mail.gmail.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout
<https://groups.google.com/d/optout>.


--
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+unsubscr...@googlegroups.com 
<mailto:django-users+unsubscr...@googlegroups.com>.
To post to this group, send email to django-users@googlegroups.com 
<mailto:django-users@googlegroups.com>.

Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAD83tOwpUu9xy4Qo4FiFO6OB4_8ocFt6sjuk3dB_tqV_Zm5nhQ%40mail.gmail.com 
<https://groups.google.com/d/msgid/django-users/CAD83tOwpUu9xy4Qo4FiFO6OB4_8ocFt6sjuk3dB_tqV_Zm5nhQ%40mail.gmail.com?utm_medium=email&utm_source=footer>.

For more options, visit https://groups.google.com/d/optout.


--
Jani Tiainen

--
You received this m

Re: GeoDjango GIS Model Fieldset Usage

2018-01-10 Thread Shazia Nusrat
For Instance...lets say I need to let customer calculate Azimuth for the
home roof with ModelForm.
Its not a simple one single direction. If you can do it let me know with
example.

Regards,
Shazia.

On Wed, Jan 10, 2018 at 11:30 PM, Jani Tiainen  wrote:

> Hi.
>
> So what is your actual problem?
>
> 11.1.2018 3.04 "Shazia Nusrat"  kirjoitti:
>
>> Hi,
>>
>> I need quick help about using the fields in the following model:
>>
>> class Size(models.Model):
>>azimuth = models.CharField(max_length=200, blank=True, null=True)
>>tilt = models.CharField(max_length=200, blank=True, null=True)
>>boundary_coordinates = models.CharField(max_length=200, blank=True)
>>height = models.CharField(max_length=200, blank=True)
>>width = models.CharField(max_length=200, blank=True)
>>
>> I know there is a function reference for it but I don't know how to use
>> it as per the link below because I am newbie.
>>
>> https://docs.djangoproject.com/en/2.0/ref/contrib/gis/functions/
>>
>> Please advise.
>>
>> --
>> 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+unsubscr...@googlegroups.com.
>> To post to this group, send email to django-users@googlegroups.com.
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit https://groups.google.com/d/ms
>> gid/django-users/CAD83tOz2xe4mHbbd1Xyag-Tad%2B3zsRjtQyTgC1C4
>> Q35V1Wf4gg%40mail.gmail.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> 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+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/CAHn91oeB9c1axU-p7hyXZz5tD8sSbAskK7d%
> 3DpVWTUvEsJwNHrA%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAD83tOwpUu9xy4Qo4FiFO6OB4_8ocFt6sjuk3dB_tqV_Zm5nhQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: GeoDjango GIS Model Fieldset Usage

2018-01-10 Thread Jani Tiainen
Hi.

So what is your actual problem?

11.1.2018 3.04 "Shazia Nusrat"  kirjoitti:

> Hi,
>
> I need quick help about using the fields in the following model:
>
> class Size(models.Model):
>azimuth = models.CharField(max_length=200, blank=True, null=True)
>tilt = models.CharField(max_length=200, blank=True, null=True)
>boundary_coordinates = models.CharField(max_length=200, blank=True)
>height = models.CharField(max_length=200, blank=True)
>width = models.CharField(max_length=200, blank=True)
>
> I know there is a function reference for it but I don't know how to use it
> as per the link below because I am newbie.
>
> https://docs.djangoproject.com/en/2.0/ref/contrib/gis/functions/
>
> Please advise.
>
> --
> 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+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/CAD83tOz2xe4mHbbd1Xyag-Tad%2B3zsRjtQyTgC1C4Q35V1Wf4gg%
> 40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAHn91oeB9c1axU-p7hyXZz5tD8sSbAskK7d%3DpVWTUvEsJwNHrA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


GeoDjango GIS Model Fieldset Usage

2018-01-10 Thread Shazia Nusrat
Hi,

I need quick help about using the fields in the following model:

class Size(models.Model):
   azimuth = models.CharField(max_length=200, blank=True, null=True)
   tilt = models.CharField(max_length=200, blank=True, null=True)
   boundary_coordinates = models.CharField(max_length=200, blank=True)
   height = models.CharField(max_length=200, blank=True)
   width = models.CharField(max_length=200, blank=True)

I know there is a function reference for it but I don't know how to use it
as per the link below because I am newbie.

https://docs.djangoproject.com/en/2.0/ref/contrib/gis/functions/

Please advise.

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAD83tOz2xe4mHbbd1Xyag-Tad%2B3zsRjtQyTgC1C4Q35V1Wf4gg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: GeoDjango: strip z dimension; force 2D

2017-08-25 Thread Rukaya Johaadien
I did the following: 

from django.contrib.gis.geos import GEOSGeometry, WKTWriter
wkt_w = WKTWriter()
wkt_w.outdim = 2 # This sets the writer to output 2D WKT
polygon = GEOSGeometry(json.dumps(item['geometry'])) # The 3D geometry
temp = wkt_w.write(polygon)
polygon = GEOSGeometry(temp) # The 3D geometry

Here it is in the 
docs: 
https://docs.djangoproject.com/en/1.11/ref/contrib/gis/geos/#django.contrib.gis.geos.WKBWriter.outdim


On Monday, 7 March 2016 20:43:05 UTC+2, Jônatas Castro wrote:
>
> In my project I need to import *shapefiles* and same some geometry.
>
> Some of these are *MULTIPOLYGON Z* type, but all Z coordinates are 
> 0-value.
>
> When I try to save the geometry, I get the error: *"Geometry has Z 
> dimension but column does not".*
>
> *What is the best way to strip the Z dimension?*
>
>
>
> My code:
>
>
>
> *ds = DataSource(file_path, encoding='ISO-8859-1')layers = ds[0]*
>
> *#need something HERE to coerce geometry to 2D*
>
>
> *obj=MyModel(geometry=GEOSGeometry(layers[0].geom.hex))*
> *obj.save()*
>
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/377d3f34-c092-46dd-92f1-5d9e806c6f59%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


GeoDjango distance lookup on Subquery: AttributeError: 'tuple' object has no attribute 'extend'

2017-07-30 Thread Oliver Eidel
Good evening,

I'm having a problem doing a distance lookup on a Subquery. I always get an 
AttributeError (see above).

Put simply, I have a table of Locations where a User may have many 
Locations (one-to-many). Now, I want to look up which users were close to a 
Point at a specific time, i.e., get the newest Location which is equal or 
older than my lookup time T for each user and do a distance query to only 
include users close by. I chose to do this with a Subquery, but correct me 
if my approach is not optimal.

This error is triggered in django/contrib/gis/db/models/lookups.py", line 
143.
Interestingly, sql_params is a Tuple in this case, which of course doesn't 
allow .extend() to be called. However, I am not proficient enough to fully 
understand the stacktrace, especially at which point sql_params suddenly 
becomes a Tuple instead of a List, which it should be.

Full stacktrace at the bottom of this post.

Simplified reproduction:

models.py
from django.contrib.auth.models import User
from django.contrib.gis.db import models

class Location(models.Model):
user = models.ForeignKey(User, on_delete=models.CASCADE,
 related_name='locations')
location = models.PointField()
created_at = models.DateTimeField(auto_now=True)




views.py or in shell
from datetime import timedelta
from django.contrib.auth.models import User
from django.contrib.gis.geos import Point
from django.contrib.gis.measure import D
from django.db.models import OuterRef, Subquery
from django.utils import timezone

from .models import Location

some_time = timezone.now() - timedelta(days=1)
some_location = Point(49.1, 110.2)
radius = D(m=1000)

# get the a location for each user which is less than or equal
# to our lookup time some_time
locations = Location.objects \
.filter(user=OuterRef('pk'),
created_at__lte=some_time) \
.order_by('-created_at')

# select the users which were close by at our lookup time some_time
# this yields the attribute error.
users = User.objects \
.annotate(location_at_time=Subquery(
 locations.values('location')[:1])
 ) \
.filter(location_at_time__distance_lte=(some_location, radius))

# interestingly, this similar query without a subquery works
users = User.objects \
.filter(location__location__distance_lte=(some_location, radius
))


when running pdb in django/contrib/gis/db/models/lookups.py in 
GISLookup.as_sql(),  the values of some variables are these:

(Pdb) sql_params
(datetime.datetime(2017, 7, 30, 22, 5, 44, 866379, tzinfo=),)   # <-- 
Tuple!
(Pdb) lhs_sql
'(SELECT U0."location" FROM "api_location" U0 WHERE (U0."user_id" = 
(V0."id") AND U0."created_at" <= %s) ORDER BY U0."created_at" DESC LIMIT 1)'
(Pdb) rhs_sql
'%s'
(Pdb) rhs_params
[, 1000.0]

the next command sql_params.extend(rhs_params) then fails, obviously.

So I suppose there's something fishy going on due to the Subquery.

Would love some help, as I'm pretty much just starting out with Django (and 
Python) and my source code reading skills are very limited.

Thanks! :)


Full stacktrace:

Traceback (most recent call last):
  File "myproject/philter/tests/test_api.py", line 284, in test_play
response = self.create_game(self.users[0])
  File "myproject/philter/tests/test_api.py", line 248, in create_game
response = self.game_view(request)
  File 
"myproject/venv/lib/python3.6/site-packages/django/views/decorators/csrf.py", 
line 58, in wrapped_view
return view_func(*args, **kwargs)
  File 
"myproject/venv/lib/python3.6/site-packages/django/views/generic/base.py", 
line 68, in view
return self.dispatch(request, *args, **kwargs)
  File 
"myproject/venv/lib/python3.6/site-packages/rest_framework/views.py", line 
489, in dispatch
response = self.handle_exception(exc)
  File 
"myproject/venv/lib/python3.6/site-packages/rest_framework/views.py", line 
449, in handle_exception
self.raise_uncaught_exception(exc)
  File 
"myproject/venv/lib/python3.6/site-packages/rest_framework/views.py", line 
486, in dispatch
response = handler(request, *args, **kwargs)
  File "myproject/philter/api/views.py", line 149, in post
possible_question_count = questions.count()
  File 
"myproject/venv/lib/python3.6/site-packages/django/db/models/query.py", 
line 364, in count
return self.query.get_count(using=self.db)
  File 
"myproject/venv/lib/python3.6/site-packages/django/db/models/sql/query.py", 
line 499, in get_count
number = obj.get_aggregation(using, ['__count'])['__count']
  File 
"myproject/venv/lib/python3.6/site-packages/django/db/models/sql/query.py", 
line 463, in get_aggregation
outer_query.add_subquery(inner_query, using)
  File 
"myproject/venv/lib/python3.6/site-packages/django/db/models/sql/subqueries.py",
 
line 209, in add_subquery
self.subquery, self.sub_params = 
query.get_compiler(using).as_sql(wi

Re: Trouble installing GeoDjango with spatialite on Python3

2017-05-24 Thread Tim Graham
Did you compile Python from source? If so, you need to use this option: 
./configure --enable-loadable-sqlite-extensions before running "make 
install".

On Wednesday, May 24, 2017 at 2:27:22 AM UTC-4, Antonis Christofides wrote:
>
> Hi,
>
> This is the error message I get when I run "./manage.py test" or 
> "./manage.py migrate":
>
>   File 
> "/home/anthony/nosync/virtualenvs/enhydris3.6/lib/python3.6/site-packages/django/contrib/gis/db/backends/spatialite/base.py",
>  
> line 53, in get_new_connection   
> 'The pysqlite library does not support C extension loading. '
> django.core.exceptions.ImproperlyConfigured: The pysqlite library does not 
> support C extension loading. Both SQLite and pysqlite must be configured to 
> allow the loading of extensions to use SpatiaLite.
>
> However, something isn't right. AFAIU pysqlite isn't supported on Python 
> 3, therefore something else is happening. This is a Python 3.6 that I 
> installed on Debian stretch. These are the relevant settings:
>
> DATABASES = {
> 'default': {
> 'ENGINE': 'django.contrib.gis.db.backends.spatialite',
> 'NAME': 'enhydris.db',
> }
> }
> if os.path.exists('/usr/lib/x86_64-linux-gnu/mod_spatialite.so'):
> # This is necessary for spatialite>=4.2
> SPATIALITE_LIBRARY_PATH = 'mod_spatialite'
>
> Thanks!
>
> A.
>
> -- 
> Antonis Christofideshttp://djangodeployment.com
>
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/39b1f344-37e6-4030-9799-e8923942b36d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Trouble installing GeoDjango with spatialite on Python3

2017-05-23 Thread Antonis Christofides
Hi,

This is the error message I get when I run "./manage.py test" or "./manage.py
migrate":

  File

"/home/anthony/nosync/virtualenvs/enhydris3.6/lib/python3.6/site-packages/django/contrib/gis/db/backends/spatialite/base.py",
line 53, in get_new_connection  
'The pysqlite library does not support C extension loading. '
django.core.exceptions.ImproperlyConfigured: The pysqlite library does not
support C extension loading. Both SQLite and pysqlite must be configured to
allow the loading of extensions to use SpatiaLite.

However, something isn't right. AFAIU pysqlite isn't supported on Python 3,
therefore something else is happening. This is a Python 3.6 that I installed on
Debian stretch. These are the relevant settings:

DATABASES = {
'default': {
'ENGINE': 'django.contrib.gis.db.backends.spatialite',
'NAME': 'enhydris.db',
}
}
if os.path.exists('/usr/lib/x86_64-linux-gnu/mod_spatialite.so'):
# This is necessary for spatialite>=4.2
SPATIALITE_LIBRARY_PATH = 'mod_spatialite'

Thanks!

A.

-- 
Antonis Christofides
http://djangodeployment.com

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/68f90044-5e11-4a2c-61f5-4dd3f85d81b5%40djangodeployment.com.
For more options, visit https://groups.google.com/d/optout.


Re: GeoDjango

2017-03-26 Thread Alex Mandel
I'll add that you could also use Geonode http://geonode.org/ which is a
Django front-end to a Geoserver instance.

I've also run Tilestache directly on GeoDjango tables stored in Postgis
to generate TMS style services.

Enjoy,
Alex

PS: GeoDjango has it's own mailing list.

On 03/20/2017 01:05 AM, Jani Tiainen wrote:
> Hi,
> 
> There are several options how to actually server maps.
> 
> Few simplest options are running seperate server that serves maps like
> MapServer, GeoServer or Mapnik.
> 
> Of course if you want to serve maps from Django directly that maybe tricky.
> 
> That django-wms package seems to leverage MapServer mapscript to publish
> maps. Not sure how mature that project is.
> 
> On 18.03.2017 14:51, Samuel Brunel wrote:
>> Hello,
>>
>> I’m new on GeoDjango, I need to known If I can use GeoDjango as  WMS ?
>>
>> Best regards,
>>
>> Samuel
>>
> 

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/206545b6-143a-34b6-68e0-74211fd5ed38%40wildintellect.com.
For more options, visit https://groups.google.com/d/optout.


Re: GeoDjango

2017-03-25 Thread Derek
GeoServer allows you to serve multiple formats for a WFS (not just GeoJSON) 
- see 
http://docs.geoserver.org/latest/en/user/services/wfs/outputformats.html

You also can't generalise about a WFS vs a WMS in terms of time - there are 
many instances where its much more efficient to serve vector data.

GeoServer is a really useful and powerful tool/system for serving WMS or 
WFS (or other outputs)  - but, as always, it depends on your specific use 
case as to what technology you should choose.

On Saturday, 25 March 2017 13:51:30 UTC+2, Suresh Nimbalkar wrote:
>
> In this example, the author is simply using GeoServer to serve WFS layer 
> (i.e. GeoJSON layer) to Leaflet. You can serve GeoJSON layers without the 
> need of GeoServer. Any map based on GeoJSON data takes considerable time to 
> load as against map based on WMS (i.e. image). Hence, this example is of 
> not much use.
>
> On Monday, 20 March 2017 13:07:10 UTC+5:30, Derek wrote:
>>
>> One option is to use Geoserver on the backend to manage your spatial data 
>> (in files or databases), and then to serve this via Django.
>>
>> See:
>> https://www.youtube.com/watch?v=rU_Jh6RcY24
>>
>>
>> On Saturday, 18 March 2017 15:21:55 UTC+2, sbrunel62 wrote:
>>>
>>> Hello, 
>>>
>>> I’m new on GeoDjango, I need to known If I can use GeoDjango as  WMS ? 
>>>
>>> Best regards, 
>>>
>>> Samuel 
>>>
>>>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/e8ff43e0-b39f-4189-bd60-6071e1f1fad0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: GeoDjango

2017-03-25 Thread Suresh Nimbalkar
In this example, the author is simply using GeoServer to serve WFS layer 
(i.e. GeoJSON layer) to Leaflet. You can serve GeoJSON layers without the 
need of GeoServer. Any map based on GeoJSON data takes considerable time to 
load as against map based on WMS (i.e. image). Hence, this example is of 
not much use.

On Monday, 20 March 2017 13:07:10 UTC+5:30, Derek wrote:
>
> One option is to use Geoserver on the backend to manage your spatial data 
> (in files or databases), and then to serve this via Django.
>
> See:
> https://www.youtube.com/watch?v=rU_Jh6RcY24
>
>
> On Saturday, 18 March 2017 15:21:55 UTC+2, sbrunel62 wrote:
>>
>> Hello, 
>>
>> I’m new on GeoDjango, I need to known If I can use GeoDjango as  WMS ? 
>>
>> Best regards, 
>>
>> Samuel 
>>
>>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/9ed8821a-1a35-42bd-bd89-e1a133d95349%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: GeoDjango

2017-03-20 Thread Jani Tiainen

Hi,

There are several options how to actually server maps.

Few simplest options are running seperate server that serves maps like 
MapServer, GeoServer or Mapnik.


Of course if you want to serve maps from Django directly that maybe tricky.

That django-wms package seems to leverage MapServer mapscript to publish 
maps. Not sure how mature that project is.


On 18.03.2017 14:51, Samuel Brunel wrote:

Hello,

I’m new on GeoDjango, I need to known If I can use GeoDjango as  WMS ?

Best regards,

Samuel



--
Jani Tiainen

--
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/dfe6ce2f-ef29-1016-e04e-0d257a4b59d5%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: GeoDjango

2017-03-20 Thread Derek
One option is to use Geoserver on the backend to manage your spatial data 
(in files or databases), and then to serve this via Django.

See:
https://www.youtube.com/watch?v=rU_Jh6RcY24


On Saturday, 18 March 2017 15:21:55 UTC+2, sbrunel62 wrote:
>
> Hello, 
>
> I’m new on GeoDjango, I need to known If I can use GeoDjango as  WMS ? 
>
> Best regards, 
>
> Samuel 
>
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/07b5677c-0a48-4494-bd43-73d021c40e86%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: GeoDjango

2017-03-18 Thread Samuel Brunel
Thanks a lot,

WMS is Web Map Server like MapServer (http://www.mapserver.org).

I think django-wms provides the service I need.



> On 18 Mar 2017, at 14:35, Tim Graham  wrote:
> 
> What's WMS? Is this package relevant https://django-wms.readthedocs.io/ ? 
> (found with a web search for "geodjango wms")
> 
> p.s. There's a geodjango mailing list that might be more useful for future 
> questions: https://groups.google.com/forum/#!forum/geodjango
> 
> On Saturday, March 18, 2017 at 9:21:55 AM UTC-4, sbrunel62 wrote:
> Hello, 
> 
> I’m new on GeoDjango, I need to known If I can use GeoDjango as  WMS ? 
> 
> Best regards, 
> 
> Samuel 
> 
> 
> -- 
> 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+unsubscr...@googlegroups.com 
> <mailto:django-users+unsubscr...@googlegroups.com>.
> To post to this group, send email to django-users@googlegroups.com 
> <mailto:django-users@googlegroups.com>.
> Visit this group at https://groups.google.com/group/django-users 
> <https://groups.google.com/group/django-users>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/350cd402-df80-48ec-8491-0e5614983eaf%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/django-users/350cd402-df80-48ec-8491-0e5614983eaf%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/45412C8D-4C32-41D0-AE45-DD5911E6ADFB%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: GeoDjango

2017-03-18 Thread Tim Graham
What's WMS? Is this package relevant https://django-wms.readthedocs.io/ ? 
(found with a web search for "geodjango wms")

p.s. There's a geodjango mailing list that might be more useful for future 
questions: https://groups.google.com/forum/#!forum/geodjango

On Saturday, March 18, 2017 at 9:21:55 AM UTC-4, sbrunel62 wrote:
>
> Hello, 
>
> I’m new on GeoDjango, I need to known If I can use GeoDjango as  WMS ? 
>
> Best regards, 
>
> Samuel 
>
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/350cd402-df80-48ec-8491-0e5614983eaf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


GeoDjango

2017-03-18 Thread Samuel Brunel
Hello,

I’m new on GeoDjango, I need to known If I can use GeoDjango as  WMS ?

Best regards,

Samuel

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/1E523D42-61D2-41BD-BA26-F15993DCC1CC%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Geodjango layermapping utility

2017-01-23 Thread jbanting
Replacing lines 92-96 in layermapping.py with 

if isinstance(data[0], six.string_types):
self.ds = DataSource(data[0], encoding=encoding)
else:
self.ds = data
self.layer = self.ds[layer]

worked for me.

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/830f38e1-41ad-48c1-bd7f-f1c8787e097d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Geodjango layermapping utility

2017-01-23 Thread jbanting
It seems like layermapping.py is not seeing the data as an instance of 
six.string_types and therefore doesn't build a GDAL Datasource from it.  

Line 92-96 of contrib\gis\utils\layermaping.py

if isinstance(data, six.string_types):
 self.ds = DataSource(data, encoding=encoding)
else:
 self.ds = data
self.layer = self.ds[layer]


-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/f34d4681-cd13-4b6b-a2d1-cff4d252251e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: GeoDjango: Filter by Area

2016-12-22 Thread Sanjay Bhangar
On Wed, Dec 21, 2016 at 10:08 PM, Tim Graham  wrote:

> If you don't get an answer here, you can also ask on the geodjango list:
> https://groups.google.com/forum/#!forum/geodjango.
>
>
Will do. Thanks Tim, you're the best!

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAG3W7ZHrkuJEdHzitoz-b9epeRTG3XY4XU45g5EmDH62Th9uqQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: GeoDjango: Filter by Area

2016-12-21 Thread Tim Graham
If you don't get an answer here, you can also ask on the geodjango 
list: https://groups.google.com/forum/#!forum/geodjango.

On Monday, December 19, 2016 at 6:59:43 AM UTC-5, Sanjay Bhangar wrote:
>
> Hey folks,
>
> I am trying to use the 'Area' function documented here: 
> https://docs.djangoproject.com/en/1.10/ref/contrib/gis/functions/#area to 
> annotate my geo queryset results with Area of the polygon geometries in my 
> database.
>
> This works great with something like:
>
>   annotated_qset = GeoModel.objects.annotate(area=Area('geom'))
>
> I then have a property called 'area` which I can use and it's all great.
>
> However, I then try and filter by Area by following the documentation for 
> filtering by Length on the documentation page, so I try something like:
>
>   filtered_qset = 
> GeoModel.objects.annotate(area=Area('geom')).filter(area__gt=1)
>
> This gives an error like "AttributeError: 'AreaField' object has no 
> attribute 'get_lookup".
>
> It makes sense that this works for the Length function since Length uses 
> the FloatField class, so supports lookups and filters, whereas the 
> AreaField does not: 
> https://github.com/django/django/blob/master/django/contrib/gis/db/models/sql/conversion.py#L24
>
> I could be totally naive here and this may just not be a trivial thing for 
> the back-end (PostGIS in my case) to support, but just wondering if anyone 
> has any work-arounds to filter by area size of feature, and / or if there 
> are plans to support this in future versions.
>
> Thank you all again for an amazing community and amazing piece of software 
> :-)
>
> -Sanjay
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/bd72b2f9-1efb-4b68-946b-917c0b539f54%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


  1   2   3   4   5   6   >