... hon で実装された GEOS ジオメトリルーチンへの BSD ライセンスのインターフェイス。 Loosely-coupled to GeoDjango. For example, GEOSGeometry objects may be used outside of a Django project/application. In other words, no need to have DJANGO_SETTINGS_MODULE set or ... use a database, etc. ミュータビリティ (Mutability): GEOSGeometry オブジェクトは変更可能です。 クロスプラットフォームでテストされています。 チュートリアル このセクションには、 GEOSGeometry ... オブジェクトの簡単な紹介とチュートリアルが含まれています。 ジオメトリを作成する GEOSGeometry objects may be created in a few ways. The first is to simply instantiate the object on some spatial input -- the following ... ... クラス) (組み込みクラス) Area (django.contrib.gis.db.models.functions のクラス) (django.contrib.gis.measure のクラス) area (GEOSGeometry の属性) (OGRGeometry の属性) arefresh() (TaskResult のメソッド) arefresh_from_db() (Model のメソッド) aremove() (RelatedMa ... jango.contrib.postgres.aggregates のクラス) bound_field_class (BaseRenderer の属性) (Field の属性) (Form の属性) boundary (GEOSGeometry の属性) boundary() (OGRGeometry のメソッド) BoundField (django.forms のクラス) BoundingCircle (django.contrib.gis.db.model ... istExtension (django.contrib.postgres.operations のクラス) BTreeIndex (django.contrib.postgres.indexes のクラス) buffer() (GEOSGeometry のメソッド) buffer_with_style() (GEOSGeometry のメソッド) build_absolute_uri() (HttpRequest のメソッド) build_suite() (Dis ... ... s import Zipcode >>> z = Zipcode ( code = 77096 , poly = "POLYGON(( 10 10, 10 20, 20 20, 20 15, 10 10))" ) >>> z . save () GEOSGeometry オブジェクトもジオメトリモデルを保存するために使用できます: >>> from django.contrib.gis.geos import GEOSGeometry >>> poly ... = GEOSGeometry ( "POLYGON(( 10 10, 10 20, 20 20, 20 15, 10 10))" ) >>> z = Zipcode ( code = 77096 , poly = poly ) >>> z . save () さらに、 ... GEOSGeometry がフィールドの座標系と異なる座標系 (異なる SRID 値を持つ) 場合は、空間データベースの変換プロシージャを使用して、モデルのフ ... ... odel containing a spatial field. The following types are now disallowed by spatial lookups: dict A str that is not a valid GEOSGeometry , e.g. a serialized dictionary This is a backward incompatible change. As a reminder, all untrusted user input should be v ... to the Django security policy . CVE-2026-15830: Potential denial-of-service vulnerability via nested geometry collections GEOSGeometry was subject to a potential denial-of-service attack when provided deeply nested GEOMETRYCOLLECTION objects, leading to a s ... eld form field were also affected. The limit can be customized through the new max_geom_collections argument, available on GEOSGeometry , the form field , and the model field . The limit is not applied to GeoJSON inputs, as they were parsed by GDAL and are n ... ... odel containing a spatial field. The following types are now disallowed by spatial lookups: dict A str that is not a valid GEOSGeometry , e.g. a serialized dictionary This is a backward incompatible change. As a reminder, all untrusted user input should be v ... to the Django security policy . CVE-2026-15830: Potential denial-of-service vulnerability via nested geometry collections GEOSGeometry was subject to a potential denial-of-service attack when provided deeply nested GEOMETRYCOLLECTION objects, leading to a s ... eld form field were also affected. The limit can be customized through the new max_geom_collections argument, available on GEOSGeometry , the form field , and the model field . The limit is not applied to GeoJSON inputs, as they were parsed by GDAL and are n ... ... f , item ): ... geometry ( obj ) get_object() で返されたオブジェクトを受け取り、 feed のジオメトリを返します。通常、これは GEOSGeometry インスタンスであり、ポイントまたはボックスを表すタプルであることもあります。例えば: class ZipcodeFeed ( Feed ): def geomet ... le like: (X0, Y0, X1, Y1). item_geometry ( item ) これをセットすると、フィードの各 アイテム のジオメトリを返します。これは GEOSGeometry のインスタンス、 あるいは点座標やバウンディングボックスを表すタプルとなります。たとえば次のようになります: class ZipcodeFe ... ... st as the Django process user, or read a file, or both. Lookups against spatial fields , the GeometryField form field, and GEOSGeometry now reject GeoJSON geometries with CRS references to external resources. The DataSource and LayerMapping utilities for loa ... hich by default resolves URLs and reads files. This behavior was not documented by Django. Other affected methods included GEOSGeometry.transform() , OGRGeometry.transform() , GDALRaster.transform() , the srs setter of OGRGeometry , and the srs and srid sett ... ... st as the Django process user, or read a file, or both. Lookups against spatial fields , the GeometryField form field, and GEOSGeometry now reject GeoJSON geometries with CRS references to external resources. The DataSource and LayerMapping utilities for loa ... hich by default resolves URLs and reads files. This behavior was not documented by Django. Other affected methods included GEOSGeometry.transform() , OGRGeometry.transform() , GDALRaster.transform() , the srs setter of OGRGeometry , and the srs and srid sett ... ... st as the Django process user, or read a file, or both. Lookups against spatial fields , the GeometryField form field, and GEOSGeometry now reject GeoJSON geometries with CRS references to external resources. The DataSource and LayerMapping utilities for loa ... hich by default resolves URLs and reads files. This behavior was not documented by Django. Other affected methods included GEOSGeometry.transform() , OGRGeometry.transform() , GDALRaster.transform() , the srs setter of OGRGeometry , and the srs and srid sett ... ... o.contrib.gis Distance lookups は、distance value パラメータとして、式 (expression) を受け付けるようになりました。 The new GEOSGeometry.unary_union property computes the union of all the elements of this geometry. Added the GEOSGeometry.covers() binary predi ... ea aggregate function now returns a float instead of decimal.Decimal . (It's still wrapped in a measure of square meters.) GEOSGeometry のデフォルトの表現 (WKT の出力) がデフォルトでトリムされるようになりました。つまり POINT (23.0000000000000000 5.5000000000 ... ックエンドは、古いバージョンの Django のサポートを継続するために 古いメソッドを残しておくこともできます。 django.contrib.gis GEOSGeometry の get_srid() と set_srid() メソッドが非推奨になり、代わりに srid プロパティが導入されました。 Point の get_x() 、 set_x() ... 2026年10月08日