0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

GeoDjangoトラブルシュート

Last updated at Posted at 2014-01-23

django.contrib.gisを使っていて不可解なエラーに何度か遭ったのでメモ。

String or unicode input unrecognized as WKT EWKT, and HEXEWKB.

StringまたはUnicodeオブジェクトをPointやPolygon等のGEOSオブジェクトに変換する際、変換に失敗した場合に出るエラー。GeoJSONを利用している場合はオブジェクトの変換にGDALが必要となる。

django.contrib.gis.geos.error.GEOSException: Could not parse version info string "3.4.2-CAPI-1.8.2 r3921"

DjangoとGEOSのバージョンがアンマッチしていると起きる(手元ではDjango 1.4 + GEOS 3.4.2の組み合わせで発生)。stackoverflowではdjangoにパッチを当てて回避する例が紹介されている。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?