... 受け付けるすべての入力を受け入れます。 以下は、ラスターファイル volcano.tif からラスターオブジェクトを作成する方法の例です ( Elevation モデルを想定) : >>> from elevation.models import Elevation >>> dem = Elevation ( name = "Volcano" , rast = "/path/to/raste ... yon" , ... "srid" : 4326 , ... "scale" : [ 0.1 , - 0.1 ], ... "bands" : [{ "data" : range ( 100 )}], ... } ... ) >>> dem = Elevation ( name = "Canyon" , rast = rast ) >>> dem . save () Note that this is equivalent to: >>> dem = Elevation . objects . creat ... arameter>) >>> qs = Zipcode.objects.exclude(...) 例: >>> qs = Zipcode . objects . filter ( poly__contains = pnt ) >>> qs = Elevation . objects . filter ( poly__contains = rst ) この場合、 poly は地理情報フィールド、 contains は空間ルックアップタイプ、 pnt ... ... 受け付けるすべての入力を受け入れます。 以下は、ラスターファイル volcano.tif からラスターオブジェクトを作成する方法の例です ( Elevation モデルを想定) : >>> from elevation.models import Elevation >>> dem = Elevation ( name = "Volcano" , rast = "/path/to/raste ... yon" , ... "srid" : 4326 , ... "scale" : [ 0.1 , - 0.1 ], ... "bands" : [{ "data" : range ( 100 )}], ... } ... ) >>> dem = Elevation ( name = "Canyon" , rast = rast ) >>> dem . save () Note that this is equivalent to: >>> dem = Elevation . objects . creat ... arameter>) >>> qs = Zipcode.objects.exclude(...) 例: >>> qs = Zipcode . objects . filter ( poly__contains = pnt ) >>> qs = Elevation . objects . filter ( poly__contains = rst ) この場合、 poly は地理情報フィールド、 contains は空間ルックアップタイプ、 pnt ... ... ic model of a ZIP code and of a Digital Elevation Model as our examples: from django.contrib.gis.db import models class Zipcode ( models . Model ): code = models . CharFiel ... d ( max_length = 5 ) poly = models . PolygonField () class Elevation ( models . Model ): name = models . CharField ( max_length = 100 ) rast = models . RasterField () 空間フィールドのタイプ ¶ ... ... ic model of a ZIP code and of a Digital Elevation Model as our examples: from django.contrib.gis.db import models class Zipcode ( models . Model ): code = models . CharFiel ... d ( max_length = 5 ) poly = models . PolygonField () class Elevation ( models . Model ): name = models . CharField ( max_length = 100 ) rast = models . RasterField () 空間フィールドのタイプ ¶ ... 2026年10月08日