Hello, This is my first inquery and i am very happy that this user community exists. This is the code fragment:
if request.method == 'POST': #code ommited... poly_coords = request.POST['polygcoords'] if poly_coords != 0: coords = poly_coords.replace(", ", " ").replace("),(", ", ").replace("(", "").replace(")", "") #"print coords" gives: 17.197 -91.576, 16.703 -93.103, 17.606 -92.916, 17.920 -91.774, 17.197 -91.576# geometria = GEOSGeometry('POLYGON((coords))') insert_info = polygons(geometry = geometria) insert_info.save() else: form = UploadFileForm() print "Problem occured during polygon storage" return HttpResponseRedirect("/appname/mainpage/") The error: String or unicode input unrecognized as WKT EWKT, and HEXEWKB. If i replace coords with manually inserted values, it works. Any ideas what i am doing wrong? cheers! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---