per page, with , order by , clip by
Results of 1 - 10 of about 17 for width (0.016 sec.)
GDAL API 15346
GDAL API 概要 GDAL stands for Geospatial Data Abstraction Library , and is a veritable "Swiss army knife" of GIS data functionality. A subset of GDAL is the OGR Simple Features Library, which specializes in reading and writing vector geogra ... のサブクラスです: >>> [ ft . __name__ for ft in layer . field_types ] ['OFTString', 'OFTReal', 'OFTReal', 'OFTDate'] field_widths このレイヤーの各フィールドの最大フィールド幅のリストを返します: >>> layer . field_widths [80, 11, 24, 10] field_precision ... d クラス自体は値を文字列として返しますが、各サブクラスは最適な形式で値を返します: >>> city [ "Population" ] . value 102121 width このフィールドの幅を返します: >>> city [ "Name" ] . width 80 precision このフィールドの数値精度を返します。非数値フィールド ... オブジェクトです。 入力がファイルパスの場合は、そのパスからラスタがオープンされます。入力が辞書の生データの場合、パラメータ width 、 height 、 srid が必要です。入力がバイトオブジェクトの場合、GDALの仮想ファイルシステムを使用してオープンされます。 辞書入 ...
https://man.mtool.work/django/6.1/ref/contrib/gis/gdal.html
Django 3.1.3 リリースノート 8897
Django 3.1.3 リリースノート November 2, 2020 Django 3.1.3 fixes several bugs in 3.1.2 and adds compatibility with Python 3.9. バグ修正 Fixed a regression in Django 3.1.2 that caused the incorrect height of the admin changelist search bar ( ... #32072 ). Fixed a regression in Django 3.1.2 that caused the incorrect width of the admin changelist search bar on a filtered page ( #32091 ). Fixed displaying Unicode characters in forms.JSONField a ...
https://man.mtool.work/django/6.1/releases/3.1.3.html
Porting your apps from Django 0.96 to 1.0 8776
Porting your apps from Django 0.96 to 1.0 Django 1.0 breaks compatibility with 0.96 in some areas. This guide will help you port 0.96 projects and apps to 1.0. The first part of this document includes the common changes needed to run with 1 ... tent.url myfile.get_content_size() myfile.content.size myfile.save_content_file() myfile.content.save() myfile.get_content_width() myfile.content.width myfile.get_content_height() myfile.content.height Note that the width and height attributes only ma ...
https://man.mtool.work/django/6.1/releases/1.0-porting-guide.html
組み込みテンプレートタグとフィルタ 8655
組み込みテンプレートタグとフィルタ このドキュメントでは、 Django の組み込みテンプレートタグとフィルタについて述べます。 また 自動ドキュメンテーション を使えばインストールされている組み込みタグとカスタムタグのドキュメントを読めるのでお勧めで ... : {% verbatim myblock %} Avoid template rendering via the {% verbatim %}{% endverbatim %} block. {% endverbatim myblock %} widthratio バーチャートなどを生成する場合のために、指定した値と最大値との比を計算し、 定数に掛けた値を返します。 例: < img src = ... "bar.png" alt = "Bar" height = "10" width = " {% widthratio this_value max_value max_width %} " > ここで this_value = 175 、 max_value = 200 であるとき、画像の幅は ... 88 ピクセルになります (175 / 200 = .875、 .875 * 100 = 87.5 から四捨五入して 88 )。 widthratio の結果を変数に入れてキャプチャーしたいことがあります。例えば blocktranslate で使う場合、次のようにできます: {% widthr ...
https://man.mtool.work/django/6.1/ref/templates/builtins.html
ファイルの管理 8655
ファイルの管理 この文書では、ユーザがアップロードしたようなファイルに対する Django のファイルアクセス API について説明します。下位レベルの API は十分一般的なので、他の目的にも使えます。"静的ファイル" (JS や CSS など) を扱いたい場合は、 静的 ... f : ... car . specs = File ( f , name = path . name ) ... car . save () ... 注釈 ImageField のインスタンスでは、 height , width , size などの画像データ以外の属性は利用可能ですが、ベースとなる画像データは画像を開き直さなければ利用できません。たとえば: ... >>> from PIL import Image >>> car = Car . objects . get ( name = "57 Chevy" ) >>> car . photo . width 191 >>> car . photo . height 287 >>> image = Image . open ( car . photo ) # Raises ValueError: seek of closed file. >>> ca ...
https://man.mtool.work/django/6.1/topics/files.html
GeoDjango データベース API 8397
GeoDjango データベース API 空間バックエンド (Spatial Backend) GeoDjango は現在、次の空間データベースバックエンドを提供しています: django.contrib.gis.db.backends.postgis django.contrib.gis.db.backends.mysql django.contrib.gis.db.backends.ora ... もラスターモデルの保存に使用できます: >>> from django.contrib.gis.gdal import GDALRaster >>> rast = GDALRaster ( ... { ... "width" : 10 , ... "height" : 10 , ... "name" : "Canyon" , ... "srid" : 4326 , ... "scale" : [ 0.1 , - 0.1 ], ... "bands" : [{ "d ... save () Note that this is equivalent to: >>> dem = Elevation . objects . create ( ... name = "Canyon" , ... rast = { ... "width" : 10 , ... "height" : 10 , ... "name" : "Canyon" , ... "srid" : 4326 , ... "scale" : [ 0.1 , - 0.1 ], ... "bands" : [{ "d ...
https://man.mtool.work/django/6.1/ref/contrib/gis/db-api.html
GEOS API 8397
GEOS API 背景 GEOS とは? GEOS stands for Geometry Engine - Open Source , and is a C++ library, ported from the Java Topology Suite . GEOS implements the OpenGIS Simple Features for SQL spatial predicate functions and spatial operators. GEOS ... トリの DE-9IM 交差行列が T*F**F*** である場合に True を返します。 トポロジー的 (Topological) メソッド GEOSGeometry. buffer ( width , quadsegs = 8 ) このジオメトリからの距離が与えられた width 以下のすべての点を表す GEOSGeometry を返す。オプションの quads ... egs キーワードは、1/4円の近似に使用するセグメントの数を設定します (デフォルトは8) 。 GEOSGeometry. buffer_with_style ( width , quadsegs = 8 , end_cap_style = 1 , join_style = 1 , mitre_limit = 5.0 ) buffer() と同じですが、バッファのスタイルをカスタ ...
https://man.mtool.work/django/6.1/ref/contrib/gis/geos.html
File オブジェクト 8276
File オブジェクト django.core.files モジュールとそのサブモジュールでは、Django の基本的なファイルハンドリングに関するビルトインクラスが定義されています。 File クラス class File ( file_object , name = None ) [ソース] The File class is a thin ... クラスがあります。 django.core.files.images.ImageFile は File のすべての属性とメソッドを継承し、さらに次のものを提供します: width [ソース] 画像の幅 (ピクセル単位)。 height [ソース] 画像の高さ(ピクセル単位)。 オブジェクトに添付されたファイルに関する追加 ...
https://man.mtool.work/django/6.1/ref/files/file.html
Django 5.1 リリースノート 8276
Django 5.1 リリースノート 2024年8月7日 Django 5.1 へようこそ! このリリースノートでは、 バージョン 5.1 の新機能 と、Django 5.0 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。また、 一部の機能を非推奨 とし ... mageField.update_dimension_fields(force=True) が呼び出されなくなりました。ストレージバックエンドが画像をリサイズする場合、 width_field と height_field が実際の画像の幅と高さと一致しなくなります。 asgiref の最小サポートバージョンが 3.7.0 から 3.8.1 に引 ... トを除いて、削除されました。 django.contrib.postgres.fields.CIText ミックスインは削除されました。 BaseGeometryWidget の map_width と map_height 属性は削除されました。 SimpleTestCase.assertFormsetError() メソッドは削除されました。 TransactionTestCase.as ...
https://man.mtool.work/django/6.1/releases/5.1.html
モデルフィールドリファレンス 8035
モデルフィールドリファレンス このドキュメントには、Django が提供するフィールドオプション field options とフィールド型 field types を含む、 Field のすべての API リファレンスが記載されています。 注釈 フィールドは django.db.models.fields に定義 ... して保持されるため、null 値を許容する必要があります。 ImageField class ImageField ( upload_to = None , height_field = None , width_field = None , max_length = 100 , ** options ) [ソース] FileField から全ての属性とメソッドを継承して、さらにアップロードさ ... れたオブジェクトが有効な画像であることを検証します。 FileField で使える専用の属性に加えて、 ImageField には height と width 属性があります。 これらの属性に対するクエリを容易にするために、 ImageField は以下のオプション引数を持ちます: ImageField. h ... eight_field 画像オブジェクトがセットされるたびに自動的に画像の高さが入力されるモデルフィールドの名前。 ImageField. width_field 画像オブジェクトがセットされるたびに自動的に画像の幅が入力されるモデルフィールドの名前。 pillow ライブラリを必要とし ...
https://man.mtool.work/django/6.1/ref/models/fields.html
PREV 1 2 NEXT