Hi Matthias, There are no plans in Shapely for extended WKB or WKT. I recommend inserting the SRID value into the text or byte strings from Shapely. Something like
ewkt = ";".join(["SRID=4326", wkt]) On Tue, May 6, 2014 at 2:40 AM, Matthias Uden <matthias.u...@googlemail.com>wrote: > Hi list, > > I'm new to Shapely and I just recognised, that exporting EWKT/EWKB is not > supported, only plain WKT/WKB. [1] > I'm not entirely sure but I think GEOS supports including the SRID? [2] > > Are there any plans on supporting this feature in future Shapely releases? > > AFAIK, the only other possibility to export EWKT/EWKB with Python would > then be to use the Django > GEOS binding, which supports it, cf. [3]. > However, I'd like to avoid using Django because it is a bit of an overhead > for my project > since I'm not doing any web development but rather backend geodata > processing. > > If anyone can think of other possibilities instead, please let me know. > Any help is appreciated, thanks a lot in advance! > > Cheers, > Matthias > > [1] - http://toblerity.org/shapely/manual.html#well-known-formats > [2] - http://geos.osgeo.org/doxygen/classgeos_1_1io_1_1WKBWriter.html > [3] - https://docs.djangoproject.com/en/dev/ref/contrib/gis/ > geos/#django.contrib.gis.geos.WKBWriter > > > _______________________________________________ > Community mailing list > Community@lists.gispython.org > http://lists.gispython.org/mailman/listinfo/community > -- Sean Gillies
_______________________________________________ Community mailing list Community@lists.gispython.org http://lists.gispython.org/mailman/listinfo/community