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 fr

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 fr

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, '