per page, with , order by , clip by
Results of 1 - 10 of about 15 for city (0.006 sec.)
GeoIP2によるジオロケーション 14019
GeoIP2によるジオロケーション 概要 GeoIP2 オブジェクトは、 MaxMind geoip2 Python ライブラリ [ 1 ] のラッパーです。 IP ベースのジオロケーションを実行するために、 GeoIP2 オブジェクトには、バイナリ形式の GeoIP Country および City データセットと ... せん!)。これらは、例えば MaxMind や DB-IP のウェブサイトからダウンロードできます。 GeoLite2-Country.mmdb.gz および GeoLite2-City.mmdb.gz ファイルを取得し、これらを GEOIP_PATH 設定に対応するディレクトリに解凍してください。 また、 geoip2 が C ライブラリ ... nent_name': 'North America', 'country_code': 'US', 'country_name': 'United States', 'is_in_european_union': False} >>> g . city ( "72.14.207.99" ) {'accuracy_radius': 1000, 'city': 'Mountain View', 'continent_code': 'NA', 'continent_name': 'North Ame ... . geos ( "24.124.1.80" ) . wkt 'POINT (-97 38)' API リファレンス class GeoIP2 ( path = None , cache = 0 , country = None , city = None ) [ソース] GeoIP オブジェクトにはデフォルトの設定を使用するため任意のパラメータは必要ありません。ただし、最低限、 G ...
https://man.mtool.work/django/6.1/ref/contrib/gis/geoip2.html
PostgreSQL 固有のルックアップ 10275
PostgreSQL 固有のルックアップ trigram(トリグラム)類似度 trigram_similar trigram_similar ルックアップを使用すると、専用の PostgreSQL 拡張機能を使用して trigram(トリグラム)検索を実行し、共有される trigram (3 つの連続する文字) の数を測定で ... ョンを使って拡張機能をインストールできます。 trigram_similar ルックアップは、 CharField と TextField 上で使用できます。 >>> City . objects . filter ( name__trigram_similar = "Middlesborough" ) <QuerySet [<City: Middlesbrough>]> trigram_word_similar tr ... ou want to perform this activation using migrations. unaccent ルックアップは、 CharField と TextField で使用できます。 >>> City . objects . filter ( name__unaccent = "México" ) <QuerySet [<City: Mexico>]> >>> User . objects . filter ( first_name__una ...
https://man.mtool.work/django/6.1/ref/contrib/postgres/lookups.html
GDAL API 10170
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 ... ャのフィールドをイテレートすることもできます。 geom このフィーチャのジオメトリを OGRGeometry オブジェクトとして返します: >>> city . geom . tuple (-104.609252, 38.255001) get このフィーチャーのフィールド (名前で指定) の値を返すメソッドで、 Field ラッパー ... オブジェクト ではありません : >>> city . get ( "Population" ) 102121 geom_type このフィーチャのジオメトリの種類を、 OGRGeomType オブジェクトとして返します。これは ... ーチャの元となった Layer オブジェクトの Layer.fields プロパティと等価です。 fid レイヤー内のフィーチャ識別子を返します: >>> city . fid 0 layer_name そのフィーチャーの Layer の名前を返します。これは指定されたレイヤーの全てのフィーチャに対して同じです: ...
https://man.mtool.work/django/6.1/ref/contrib/gis/gdal.html
地理情報データベース関数 10066
地理情報データベース関数 このページで説明する関数を使えば、Django のアノテーションや集約、フィルタで使う地理情報データベース関数にアクセスできます。 例: >>> from django.contrib.gis.db.models.functions import Length >>> Track . objects . ann ... が高く、リソースを多く必要とする) のどちらに基づいて計算するかを決めることができます。 以下の例では、Hobart 市から AustraliaCity クエリセット内の他の PointField までの距離を計算しています: >>> from django.contrib.gis.db.models.functions import Distanc ... e >>> pnt = AustraliaCity . objects . get ( name = "Hobart" ) . point >>> for city in AustraliaCity . objects . annotate ( distance = Distance ( "po ... int" , pnt )): ... print ( city . name , city . distance ) ... Wollongong 990071.220408 m Shellharbour 972804.613941 m Thirroul 1002334.36351 m ... 注釈 B ...
https://man.mtool.work/django/6.1/ref/contrib/gis/functions.html
GeoJSON シリアライザ 9021
GeoJSON シリアライザ GeoDjango は GeoJSON フォーマット専用のシリアライザを提供します。シリアライズの詳細については Django オブジェクトのシリアライズ を参照してください。 geojson シリアライザーはデシリアライザーに相当するものがないため、デー ... するフィールドを制限するために使用できます。 実装例: from django.core.serializers import serialize from my_app.models import City serialize ( "geojson" , City . objects . all (), geometry_field = "point" , fields = [ "name" ]) 出力は以下の通りです: { " ...
https://man.mtool.work/django/6.1/ref/contrib/gis/serializers.html
組み込みテンプレートタグとフィルタ 8185
組み込みテンプレートタグとフィルタ このドキュメントでは、 Django の組み込みテンプレートタグとフィルタについて述べます。 また 自動ドキュメンテーション を使えばインストールされている組み込みタグとカスタムタグのドキュメントを読めるのでお勧めで ... p cities by country as country_list %} < ul > {% for country in country_list %} < li > {{ country.grouper }} < ul > {% for city in country.list %} < li > {{ city.name }} : {{ city.population }} </ li > {% endfor %} </ ul > </ li > {% endfor %} </ ul ... s by country as country_list %} < ul > {% for country , local_cities in country_list %} < li > {{ country }} < ul > {% for city in local_cities %} < li > {{ city.name }} : {{ city.population }} </ li > {% endfor %} </ ul > </ li > {% endfor %} </ ul ...
https://man.mtool.work/django/6.1/ref/templates/builtins.html
GIS QuerySet API リファレンス 8081
GIS QuerySet API リファレンス 空間のルックアップ (Spatial Lookup) このセクションの空間ルックアップは GeometryField と RasterField 用です。 For an introduction, see the spatial lookups introduction . For an overview of what lookups are compa ... SpatiaLite QuerySet 内のすべての geo_field の範囲を表す、左下の座標と右上の座標からなる4値タプルを返します。 例: >>> qs = City . objects . filter ( name__in = ( "Houston" , "Dallas" )) . aggregate ( Extent ( "poly" )) >>> print ( qs [ "poly__extent" ... ld の 3D 範囲を、左下の座標と右上の座標 (それぞれ x、y、z 座標を持つ) からなる 6 要素のタプルとして返します。 例: >>> qs = City . objects . filter ( name__in = ( "Houston" , "Dallas" )) . aggregate ( Extent3D ( "poly" )) >>> print ( qs [ "poly__exten ... ポイントフィールドジオメトリから構築された LineString を返します。現在、クエリセットの順序は意味がありません。 例: >>> qs = City . objects . filter ( name__in = ( "Houston" , "Dallas" )) . aggregate ( MakeLine ( "poly" )) >>> print ( qs [ "poly__makel ...
https://man.mtool.work/django/6.1/ref/contrib/gis/geoquerysets.html
GeoDjango チュートリアル 7767
GeoDjango チュートリアル はじめに GeoDjangoは、Django用の標準のcontribモジュールであり、それを世界クラスの地理情報Webフレームワークに変えます。GeoDjangoは、位置情報サービスなどの地理情報Webアプリケーションを作成するのを可能な限り簡単にするこ ... ype ) Polygon >>> print ( len ( lyr )) 246 注釈 Unfortunately, the shapefile data format does not allow for greater specificity with regards to geometry types. This shapefile, like many others, actually includes MultiPolygon geometries, not Polygons. ... ing a non-default database: >>> from django.db import connections >>> connection = connections [ "your_gis_db_alias" ] >>> City . objects . raw ( ... "SELECT id, name, %s as point from myapp_city" % ( connection . ops . select % "point" ) ... ) 素のク ...
https://man.mtool.work/django/6.1/ref/contrib/gis/tutorial.html
タイムゾーン 7767
タイムゾーン 概要 タイムゾーンのサポートが有効な場合、Django は日時情報をデータベースには UTC で保存し、内部ではタイムゾーンを意識した(aware な) datetime オブジェクトを使用します。フォームではそれをエンドユーザーのタイムゾーンに変換して表 ... " method = "POST" > {% csrf_token %} < label for = "timezone" > Time zone: </ label > < select name = "timezone" > {% for city , tz in timezones.items %} < option value = " {{ tz }} " {% if tz == TIME_ZONE %} selected {% endif %} > {{ city }} </ opt ...
https://man.mtool.work/django/6.1/topics/i18n/timezones.html
Django の admin サイト 7558
Django の admin サイト Django のパワフルな特徴の1つは、自動的に生成される admin インタフェースです。あなたのモデルクラスからメタデータを読み取り、モデル中心のインタフェースを提供します。このインタフェースのおかげで、ユーザはあなたのサイトの ... フィールド名のリストまたはタプルです。このキーは必須です。 実装例: { "fields" : [ "first_name" , "last_name" , "address" , "city" , "state" ], } fields オプションと同様に、複数のフィールドを 1 行に表示するにはタプルでこれらのフィールドを囲んでください ... 、 first_name と last_name フィールドが 1 つの行に表示されます。 { "fields" : [( "first_name" , "last_name" ), "address" , "city" , "state" ], } fields は ModelAdmin.readonly_fields で定義される値を持つことができ、読み取り専用で表示されます。 fields に ... ィールドの名前を __ 表記で記述します。例えば、次のようにします。 class PersonAdmin ( admin . ModelAdmin ): list_display = [ "city__name" ] 1 つの引数 (モデルのインスタンス) を受け入れる呼び出し可能オブジェクトです。次に例を示します。 @admin . display ( ...
https://man.mtool.work/django/6.1/ref/contrib/admin/
PREV 1 2 NEXT