per page, with , order by , clip by
Results of 1 - 10 of about 49 for point (0.005 sec.)
GEOS API 16873
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 ... e geometry from WKT, HEX, WKB, and GeoJSON: >>> from django.contrib.gis.geos import GEOSGeometry >>> pnt = GEOSGeometry ( "POINT(5 23)" ) # WKT >>> pnt = GEOSGeometry ( "010100000000000000000014400000000000003740" ) # HEX >>> pnt = GEOSGeometry ( ... ... \x00\x00\x00\x00\x00\x00\x00\x14 @ \x00\x00\x00\x00\x00\x00 7@" ... ) ... ) # WKB >>> pnt = GEOSGeometry ( ... '{ "type": "Point", "coordinates": [ 5.000000, 23.000000 ] }' ... ) # GeoJSON Another option is to use the constructor for the specific geom ... etry type that you wish to create. For example, a Point object may be created by passing in the X and Y coordinates into its constructor: >>> from django.contrib.gis.geos import ...
https://man.mtool.work/django/6.1/ref/contrib/gis/geos.html
地理情報データベース関数 9704
地理情報データベース関数 このページで説明する関数を使えば、Django のアノテーションや集約、フィルタで使う地理情報データベース関数にアクセスできます。 例: >>> from django.contrib.gis.db.models.functions import Length >>> Track . objects . ann ... とする) のどちらに基づいて計算するかを決めることができます。 以下の例では、Hobart 市から AustraliaCity クエリセット内の他の PointField までの距離を計算しています: >>> from django.contrib.gis.db.models.functions import Distance >>> pnt = AustraliaCity . ... objects . get ( name = "Hobart" ) . point >>> for city in AustraliaCity . objects . annotate ( distance = Distance ( "point" , pnt )): ... print ( city . name , cit ... または式を受け取り、ジオメトリフィールドの周長を Distance オブジェクトとして返します。 リレーション Azimuth class Azimuth ( point_a , point_b , ** extra ) [ソース] 利用可能なDB : PostGIS , SpatiaLite (LWGEOM/RTTOPO) 与えられた点のジオメトリで定義される ...
https://man.mtool.work/django/6.1/ref/contrib/gis/functions.html
GDAL API 9568
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 ... tains some number of geographic features ( Feature ), information about the type of features contained in that layer (e.g. points, polygons, etc.), as well as the names and types of any additional fields ( Field ) of data that may be associated with e ... : ... print ( 'Layer " %s ": %i %s s' % ( layer . name , len ( layer ), layer . geom_type . name )) ... Layer "cities": 3 Points 上記で読み込まれた都市データソースからの例の出力は、明らかに1つのレイヤーである "cities" を含み、その中に3つのポイント・フ ... . num_feat 3 geom_type レイヤーのジオメトリタイプを OGRGeomType オブジェクトとして返します: >>> layer . geom_type . name 'Point' num_fields レイヤーのフィールド数、つまりレイヤー内の各フィーチャに関連付けられたデータフィールドの数を返します: >>> laye ...
https://man.mtool.work/django/6.1/ref/contrib/gis/gdal.html
GeoDjango チュートリアル 8980
GeoDjango チュートリアル はじめに GeoDjangoは、Django用の標準のcontribモジュールであり、それを世界クラスの地理情報Webフレームワークに変えます。GeoDjangoは、位置情報サービスなどの地理情報Webアプリケーションを作成するのを可能な限り簡単にするこ ... : String (2.0) indicates that the FIPS character field has a maximum length of 2. Similarly, LON: Real (8.3) is a floating-point field that holds a maximum of 8 digits up to three decimal places. 地理情報モデル 地理情報モデルを定義する さて、 ogrinfo ... ドで 値 にアクセス) の両方から情報を抽出できます: >>> for feat in lyr : ... print ( feat . get ( "NAME" ), feat . geom . num_points ) ... Guernsey 18 Jersey 26 South Georgia South Sandwich Islands 338 Taiwan 363 Layer オブジェクトはスライス可能です。 >> ... atial lookups to the Django ORM. For example, you can find the country in the WorldBorder table that contains a particular point. First, fire up the management shell: /  $ python manage.py shell ...\> py manage.py shell ここで、注目するポイント [ 3 ...
https://man.mtool.work/django/6.1/ref/contrib/gis/tutorial.html
GeoDjango データベース API 8904
GeoDjango データベース API 空間バックエンド (Spatial Backend) GeoDjango は現在、次の空間データベースバックエンドを提供しています: django.contrib.gis.db.backends.postgis django.contrib.gis.db.backends.mysql django.contrib.gis.db.backends.ora ... harField ( max_length = 30 ) # A projected coordinate system (only valid for South Texas!) # is used, units are in meters. point = models . PointField ( srid = 32140 ) 距離クエリは次のように実行できます: >>> from django.contrib.gis.geos import GEOSGeo ... ``D`` is a shortcut for ``Distance`` >>> from geoapp.models import SouthTexasCity # Distances will be calculated from this point, which does not have to be projected. >>> pnt = GEOSGeometry ( "POINT(-96.876369 29.905320)" , srid = 4326 ) # If numeric ... parameter, units of field (meters in this case) are assumed. >>> qs = SouthTexasCity . objects . filter ( point__distance_lte = ( pnt , 7000 )) # Find all Cities within 7 km, > 20 miles away, and > 100 chains away (an obscure unit) >> ...
https://man.mtool.work/django/6.1/ref/contrib/gis/db-api.html
Django のリリースプロセス 8572
Django のリリースプロセス フィーチャーリリース Feature releases contain new features, improvements to existing features, and other enhancements. Each version will be mostly backwards compatible with the previous release. Exceptions to this ... features, including deprecations and breaking changes, must be merged by the feature freeze. Any features not done by this point will be deferred to the next feature release. At this point, the stable/A.B.x branch will be forked from main . Non-releas ... before the final release. Translators can then submit updated translations for inclusion in the final release. After this point, new translatable strings must not be added. After the release candidate, only release blockers and documentation fixes ar ... ach version. As a concrete example, consider a moment in time halfway between the release of Django 2029 and 2030. At this point in time: Features will be added to the development main branch, to be released as Django 2030 around mid-January 2030. Cri ...
https://man.mtool.work/django/6.1/internals/release-process.html
チケットをトリアージする 7848
チケットをトリアージする Django uses Trac for managing the work on the code base. Trac is a community-tended garden of the bugs people have found and the features Django has decided to add. As in any garden, sometimes there are weeds to be ... igrations/test_regression.py , which can be run with: $ ./runtests.py migrations.test_regression Next, we mark the current point in history as being "bad" since the test fails: $ git bisect bad You need to start by "git bisect start" Do you want me to ... do it for you [ Y/n ] ? y Now, we need to find a point in git history before the regression was introduced (i.e. a point where the test passes). Use something like git checkout ... HEAD~100 to check out an earlier revision (100 commits earlier, in this case). Check if the test fails. If so, mark that point as "bad" ( git bisect bad ), then check out an earlier revision and recheck. Once you find a revision where your test pass ...
https://man.mtool.work/django/6.1/internals/contributing/triaging-tickets.html
GeoJSON シリアライザ 7848
GeoJSON シリアライザ GeoDjango は GeoJSON フォーマット専用のシリアライザを提供します。シリアライズの詳細については Django オブジェクトのシリアライズ を参照してください。 geojson シリアライザーはデシリアライザーに相当するものがないため、デー ... alizers import serialize from my_app.models import City serialize ( "geojson" , City . objects . all (), geometry_field = "point" , fields = [ "name" ]) 出力は以下の通りです: { "type" : "FeatureCollection" , "features" : [ { "type" : "Feature" , "id" ... : 1 , "geometry" : { "type" : "Point" , "coordinates" : [ - 87.650175 , 41.850385 ]}, "properties" : { "name" : "Chicago" }, } ], } fields パラメータが指定され ...
https://man.mtool.work/django/6.1/ref/contrib/gis/serializers.html
Django 1.6.6 リリースノート 7848
Django 1.6.6 リリースノート August 20, 2014 Django 1.6.6 fixes several security issues and bugs in 1.6.5. reverse() could generate URLs pointing to other hosts In certain situations, URL reversing could generate scheme-relative URLs (URLs s ... oor performance in the upload handler, eventually causing it to become very slow simply by uploading 0-byte files. At this point, even a slow network connection and few HTTP requests would be all that is necessary to make a site unavailable. We've rem ... of FK fields could be initialized with a wrong value when an inline model formset is created for a relationship defined to point to a field other than the PK ( #13794 ). Restored pre_delete signals for GenericRelation cascade deletion ( #22998 ). Fixe ...
https://man.mtool.work/django/6.1/releases/1.6.6.html
Sprint quickstart guide 7576
Sprint quickstart guide This document explains how to prepare to contribute to Django. It is intended for use during sprints, or by people who are already familiar with contributing to Python open source projects. This guide assumes you're ... CI, they may not on every person's local environment. For example, the test suite is only guaranteed to pass on the latest point release of each supported Python version. It's possible you may encounter errors using an earlier point release. If you ha ...
https://man.mtool.work/django/6.1/internals/contributing/sprint-quickstart.html
PREV 1 2 3 4 5 NEXT