code
stringlengths
0
21.5M
repo_name
stringlengths
4
92
path
stringlengths
1
189
language
stringlengths
0
26
license
stringclasses
11 values
size
int64
0
21.5M
# This file is distributed under the same license as the Django package. # # Translators: # Sagar Chalise <chalisesagar@gmail.com>, 2011 msgid "" msgstr "" "Project-Id-Version: django\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-10-09 17:42+0200\n" "PO-Revision-Date: 2017-09-19 16:40+0000\n" "Last-Translator:...
castiel248/Convert
Lib/site-packages/django/contrib/flatpages/locale/ne/LC_MESSAGES/django.po
po
mit
2,178
# This file is distributed under the same license as the Django package. # # Translators: # Harro van der Klauw <hvdklauw@gmail.com>, 2012 # Ilja Maas <iljamaas@dreamsolution.nl>, 2015 # Jannis Leidel <jannis@leidel.info>, 2011 # Jeffrey Gelens <jeffrey@noppo.pro>, 2012 # Sander Steffann <inactive+steffann@transifex.co...
castiel248/Convert
Lib/site-packages/django/contrib/flatpages/locale/nl/LC_MESSAGES/django.po
po
mit
2,669
# This file is distributed under the same license as the Django package. # # Translators: # hgrimelid <havard@grimelid.com>, 2011 # Jannis Leidel <jannis@leidel.info>, 2011 # Sivert Olstad, 2021 msgid "" msgstr "" "Project-Id-Version: django\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2019-09-08 17:27+0200\n" "PO...
castiel248/Convert
Lib/site-packages/django/contrib/flatpages/locale/nn/LC_MESSAGES/django.po
po
mit
2,487
# This file is distributed under the same license as the Django package. # # Translators: # Soslan Khubulov <inactive+soslan@transifex.com>, 2013 msgid "" msgstr "" "Project-Id-Version: django\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-10-09 17:42+0200\n" "PO-Revision-Date: 2017-09-19 16:40+0000\n" "Last-Tr...
castiel248/Convert
Lib/site-packages/django/contrib/flatpages/locale/os/LC_MESSAGES/django.po
po
mit
2,546
# This file is distributed under the same license as the Django package. # # Translators: # Jannis Leidel <jannis@leidel.info>, 2011 msgid "" msgstr "" "Project-Id-Version: django\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-10-09 17:42+0200\n" "PO-Revision-Date: 2017-09-19 16:40+0000\n" "Last-Translator: Jan...
castiel248/Convert
Lib/site-packages/django/contrib/flatpages/locale/pa/LC_MESSAGES/django.po
po
mit
1,780
# This file is distributed under the same license as the Django package. # # Translators: # angularcircle, 2012 # angularcircle, 2012 # Jannis Leidel <jannis@leidel.info>, 2011 # Janusz Harkot <jh@trilab.pl>, 2015 # m_aciek <maciej.olko@gmail.com>, 2019 # Tomasz Kajtoch <tomekkaj@tomekkaj.pl>, 2016 msgid "" msgstr "" "...
castiel248/Convert
Lib/site-packages/django/contrib/flatpages/locale/pl/LC_MESSAGES/django.po
po
mit
2,793
# This file is distributed under the same license as the Django package. # # Translators: # Jannis Leidel <jannis@leidel.info>, 2011 # Nuno Mariz <nmariz@gmail.com>, 2011-2012,2015 # Raúl Pedro Fernandes Santos, 2014 msgid "" msgstr "" "Project-Id-Version: django\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-1...
castiel248/Convert
Lib/site-packages/django/contrib/flatpages/locale/pt/LC_MESSAGES/django.po
po
mit
2,326
# This file is distributed under the same license as the Django package. # # Translators: # Allisson Azevedo <allisson@gmail.com>, 2014 # Amanda Savluchinske <amandasavluchinske@gmail.com>, 2019 # andrewsmedina <andrewsmedina@gmail.com>, 2013 # dudanogueira <dudanogueira@gmail.com>, 2019 # Eduardo Cereto Carvalho, 2011...
castiel248/Convert
Lib/site-packages/django/contrib/flatpages/locale/pt_BR/LC_MESSAGES/django.po
po
mit
2,942
# This file is distributed under the same license as the Django package. # # Translators: # Bogdan Mateescu, 2019 # Daniel Ursache-Dogariu, 2011 # Denis Darii <denis.darii@gmail.com>, 2014 # Jannis Leidel <jannis@leidel.info>, 2011 # Razvan Stefanescu <razvan.stefanescu@gmail.com>, 2016 msgid "" msgstr "" "Project-Id-V...
castiel248/Convert
Lib/site-packages/django/contrib/flatpages/locale/ro/LC_MESSAGES/django.po
po
mit
2,632
# This file is distributed under the same license as the Django package. # # Translators: # Eugene <eugene.mechanism@gmail.com>, 2012 # crazyzubr <hjcnbckfd@gmail.com>, 2020 # Jannis Leidel <jannis@leidel.info>, 2011 # Mike Yumatov <mike@yumatov.org>, 2011 # Алексей Борискин <sun.void@gmail.com>, 2012,2014-2015,2019 ms...
castiel248/Convert
Lib/site-packages/django/contrib/flatpages/locale/ru/LC_MESSAGES/django.po
po
mit
3,312
# This file is distributed under the same license as the Django package. # # Translators: # Jannis Leidel <jannis@leidel.info>, 2011 # Marian Andre <marian@andre.sk>, 2011-2012,2014 # Martin Tóth <ezimir@gmail.com>, 2017 # Peter Kuma, 2021 msgid "" msgstr "" "Project-Id-Version: django\n" "Report-Msgid-Bugs-To: \n" "PO...
castiel248/Convert
Lib/site-packages/django/contrib/flatpages/locale/sk/LC_MESSAGES/django.po
po
mit
2,601
# This file is distributed under the same license as the Django package. # # Translators: # Andrej Marsetič, 2022 # iElectric <domen@dev.si>, 2011 # Jannis Leidel <jannis@leidel.info>, 2011 # zejn <zelo.zejn+transifex@gmail.com>, 2016 # zejn <zelo.zejn+transifex@gmail.com>, 2012 msgid "" msgstr "" "Project-Id-Version: ...
castiel248/Convert
Lib/site-packages/django/contrib/flatpages/locale/sl/LC_MESSAGES/django.po
po
mit
2,621
# This file is distributed under the same license as the Django package. # # Translators: # Besnik <besnik@programeshqip.org>, 2011,2015 # Besnik <besnik@programeshqip.org>, 2015,2019 msgid "" msgstr "" "Project-Id-Version: django\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2019-09-08 17:27+0200\n" "PO-Revision-D...
castiel248/Convert
Lib/site-packages/django/contrib/flatpages/locale/sq/LC_MESSAGES/django.po
po
mit
2,548
# This file is distributed under the same license as the Django package. # # Translators: # Branko Kokanovic <branko@kokanovic.org>, 2018 # Igor Jerosimić, 2019-2020 # Jannis Leidel <jannis@leidel.info>, 2011 # Janos Guljas <janos@resenje.org>, 2011-2012 msgid "" msgstr "" "Project-Id-Version: django\n" "Report-Msgid-B...
castiel248/Convert
Lib/site-packages/django/contrib/flatpages/locale/sr/LC_MESSAGES/django.po
po
mit
3,071
# This file is distributed under the same license as the Django package. # # Translators: # Igor Jerosimić, 2019-2020 # Jannis Leidel <jannis@leidel.info>, 2011 # Janos Guljas <janos@resenje.org>, 2011-2012 msgid "" msgstr "" "Project-Id-Version: django\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2019-09-08 17:27...
castiel248/Convert
Lib/site-packages/django/contrib/flatpages/locale/sr_Latn/LC_MESSAGES/django.po
po
mit
2,589
# This file is distributed under the same license as the Django package. # # Translators: # Albin Larsson <albin.post@gmail.com>, 2022 # Andreas Pelme <andreas@pelme.se>, 2011-2012 # Jannis Leidel <jannis@leidel.info>, 2011 # Jonathan Lindén, 2014 # Petter Strandmark <petter.strandmark@gmail.com>, 2019 # Thomas Lundqvi...
castiel248/Convert
Lib/site-packages/django/contrib/flatpages/locale/sv/LC_MESSAGES/django.po
po
mit
2,613
# This file is distributed under the same license as the Django package. # # Translators: # Machaku <bmachaku@gmail.com>, 2015 msgid "" msgstr "" "Project-Id-Version: django\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-10-09 17:42+0200\n" "PO-Revision-Date: 2017-09-23 18:54+0000\n" "Last-Translator: Jannis Le...
castiel248/Convert
Lib/site-packages/django/contrib/flatpages/locale/sw/LC_MESSAGES/django.po
po
mit
1,991
# This file is distributed under the same license as the Django package. # # Translators: # Jannis Leidel <jannis@leidel.info>, 2011 msgid "" msgstr "" "Project-Id-Version: django\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-10-09 17:42+0200\n" "PO-Revision-Date: 2017-09-19 16:40+0000\n" "Last-Translator: Jan...
castiel248/Convert
Lib/site-packages/django/contrib/flatpages/locale/ta/LC_MESSAGES/django.po
po
mit
2,474
# This file is distributed under the same license as the Django package. # # Translators: # Jannis Leidel <jannis@leidel.info>, 2011 msgid "" msgstr "" "Project-Id-Version: django\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-10-09 17:42+0200\n" "PO-Revision-Date: 2017-09-19 16:40+0000\n" "Last-Translator: Jan...
castiel248/Convert
Lib/site-packages/django/contrib/flatpages/locale/te/LC_MESSAGES/django.po
po
mit
2,000
# This file is distributed under the same license as the Django package. # # Translators: # Surush Sufiew <siriusproger@gmail.com>, 2020 msgid "" msgstr "" "Project-Id-Version: django\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2019-09-08 17:27+0200\n" "PO-Revision-Date: 2020-05-15 00:29+0000\n" "Last-Translator:...
castiel248/Convert
Lib/site-packages/django/contrib/flatpages/locale/tg/LC_MESSAGES/django.po
po
mit
2,572
# This file is distributed under the same license as the Django package. # # Translators: # Jannis Leidel <jannis@leidel.info>, 2011 # Kowit Charoenratchatabhan <kowit.s.c@gmail.com>, 2012 msgid "" msgstr "" "Project-Id-Version: django\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-10-09 17:42+0200\n" "PO-Revis...
castiel248/Convert
Lib/site-packages/django/contrib/flatpages/locale/th/LC_MESSAGES/django.po
po
mit
2,941
# This file is distributed under the same license as the Django package. # # Translators: # Welbeck Garli <welbeckgrlyw@gmail.com>, 2020 msgid "" msgstr "" "Project-Id-Version: django\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2019-09-08 17:27+0200\n" "PO-Revision-Date: 2020-07-15 16:35+0000\n" "Last-Translator:...
castiel248/Convert
Lib/site-packages/django/contrib/flatpages/locale/tk/LC_MESSAGES/django.po
po
mit
1,824
# This file is distributed under the same license as the Django package. # # Translators: # BouRock, 2015,2019 # BouRock, 2014 # Jannis Leidel <jannis@leidel.info>, 2011 # Metin Amiroff <amiroff@gmail.com>, 2011 # Murat Çorlu <muratcorlu@gmail.com>, 2012 msgid "" msgstr "" "Project-Id-Version: django\n" "Report-Msgid-B...
castiel248/Convert
Lib/site-packages/django/contrib/flatpages/locale/tr/LC_MESSAGES/django.po
po
mit
2,588
# This file is distributed under the same license as the Django package. # # Translators: # Azat Khasanshin <lordofbazuks@gmail.com>, 2011 msgid "" msgstr "" "Project-Id-Version: django\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-10-09 17:42+0200\n" "PO-Revision-Date: 2017-09-19 16:40+0000\n" "Last-Translato...
castiel248/Convert
Lib/site-packages/django/contrib/flatpages/locale/tt/LC_MESSAGES/django.po
po
mit
2,402
# This file is distributed under the same license as the Django package. # # Translators: msgid "" msgstr "" "Project-Id-Version: django\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-10-09 17:42+0200\n" "PO-Revision-Date: 2017-09-19 16:40+0000\n" "Last-Translator: Jannis Leidel <jannis@leidel.info>\n" "Languag...
castiel248/Convert
Lib/site-packages/django/contrib/flatpages/locale/udm/LC_MESSAGES/django.po
po
mit
1,533
# This file is distributed under the same license as the Django package. # # Translators: # Oleksandr Chernihov <o.chernihov@gmail.com>, 2014 # Illia Volochii <illia.volochii@gmail.com>, 2021 # Jannis Leidel <jannis@leidel.info>, 2011 # Panasoft, 2016 # Sergey Lysach <sergikoff88@gmail.com>, 2011-2012 # tarasyyyk <tara...
castiel248/Convert
Lib/site-packages/django/contrib/flatpages/locale/uk/LC_MESSAGES/django.po
po
mit
3,405
# This file is distributed under the same license as the Django package. # # Translators: # Mansoorulhaq Mansoor <mnsrknp@gmail.com>, 2011 msgid "" msgstr "" "Project-Id-Version: django\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-10-09 17:42+0200\n" "PO-Revision-Date: 2017-09-19 16:40+0000\n" "Last-Translato...
castiel248/Convert
Lib/site-packages/django/contrib/flatpages/locale/ur/LC_MESSAGES/django.po
po
mit
2,371
# This file is distributed under the same license as the Django package. # # Translators: # Jannis Leidel <jannis@leidel.info>, 2011 # toi ta <phuongtran84fr@yahoo.fr>, 2016 # Tran <hongdiepkien@gmail.com>, 2011 msgid "" msgstr "" "Project-Id-Version: django\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-10-09 ...
castiel248/Convert
Lib/site-packages/django/contrib/flatpages/locale/vi/LC_MESSAGES/django.po
po
mit
1,900
# This file is distributed under the same license as the Django package. # # Translators: # Jannis Leidel <jannis@leidel.info>, 2011 # Lele Long <schemacs@gmail.com>, 2011 # mozillazg <opensource.mozillazg@gmail.com>, 2016 # Ronald White <tkliuxing@me.com>, 2014 # Suntravel Chris <chrisfromcn@gmail.com>, 2019 # wolf ic...
castiel248/Convert
Lib/site-packages/django/contrib/flatpages/locale/zh_Hans/LC_MESSAGES/django.po
po
mit
2,533
# This file is distributed under the same license as the Django package. # # Translators: # ilay <ilay@ilay.tw>, 2012 # Jannis Leidel <jannis@leidel.info>, 2011 # 619e61dbdb61c57213f62815aaf60e01, 2011 # Tzu-ping Chung <uranusjr@gmail.com>, 2016,2019 msgid "" msgstr "" "Project-Id-Version: django\n" "Report-Msgid-Bugs-...
castiel248/Convert
Lib/site-packages/django/contrib/flatpages/locale/zh_Hant/LC_MESSAGES/django.po
po
mit
2,475
from django.conf import settings from django.contrib.flatpages.views import flatpage from django.http import Http404 from django.utils.deprecation import MiddlewareMixin class FlatpageFallbackMiddleware(MiddlewareMixin): def process_response(self, request, response): if response.status_code != 404: ...
castiel248/Convert
Lib/site-packages/django/contrib/flatpages/middleware.py
Python
mit
784
from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("sites", "0001_initial"), ] operations = [ migrations.CreateModel( name="FlatPage", fields=[ ( "id", models.Aut...
castiel248/Convert
Lib/site-packages/django/contrib/flatpages/migrations/0001_initial.py
Python
mit
2,408
castiel248/Convert
Lib/site-packages/django/contrib/flatpages/migrations/__init__.py
Python
mit
0
from django.contrib.sites.models import Site from django.db import models from django.urls import NoReverseMatch, get_script_prefix, reverse from django.utils.encoding import iri_to_uri from django.utils.translation import gettext_lazy as _ class FlatPage(models.Model): url = models.CharField(_("URL"), max_length...
castiel248/Convert
Lib/site-packages/django/contrib/flatpages/models.py
Python
mit
1,764
from django.apps import apps as django_apps from django.contrib.sitemaps import Sitemap from django.core.exceptions import ImproperlyConfigured class FlatPageSitemap(Sitemap): def items(self): if not django_apps.is_installed("django.contrib.sites"): raise ImproperlyConfigured( ...
castiel248/Convert
Lib/site-packages/django/contrib/flatpages/sitemaps.py
Python
mit
584
castiel248/Convert
Lib/site-packages/django/contrib/flatpages/templatetags/__init__.py
Python
mit
0
from django import template from django.conf import settings from django.contrib.flatpages.models import FlatPage from django.contrib.sites.shortcuts import get_current_site register = template.Library() class FlatpageNode(template.Node): def __init__(self, context_name, starts_with=None, user=None): sel...
castiel248/Convert
Lib/site-packages/django/contrib/flatpages/templatetags/flatpages.py
Python
mit
3,552
from django.contrib.flatpages import views from django.urls import path urlpatterns = [ path("<path:url>", views.flatpage, name="django.contrib.flatpages.views.flatpage"), ]
castiel248/Convert
Lib/site-packages/django/contrib/flatpages/urls.py
Python
mit
179
from django.conf import settings from django.contrib.flatpages.models import FlatPage from django.contrib.sites.shortcuts import get_current_site from django.http import Http404, HttpResponse, HttpResponsePermanentRedirect from django.shortcuts import get_object_or_404 from django.template import loader from django.uti...
castiel248/Convert
Lib/site-packages/django/contrib/flatpages/views.py
Python
mit
2,724
castiel248/Convert
Lib/site-packages/django/contrib/gis/__init__.py
Python
mit
0
from django.contrib.admin import ( HORIZONTAL, VERTICAL, AdminSite, ModelAdmin, StackedInline, TabularInline, action, autodiscover, display, register, site, ) from django.contrib.gis.admin.options import GeoModelAdmin, GISModelAdmin, OSMGeoAdmin from django.contrib.gis.admin....
castiel248/Convert
Lib/site-packages/django/contrib/gis/admin/__init__.py
Python
mit
672
import warnings from django.contrib.admin import ModelAdmin from django.contrib.gis.admin.widgets import OpenLayersWidget from django.contrib.gis.db import models from django.contrib.gis.forms import OSMWidget from django.contrib.gis.gdal import OGRGeomType from django.forms import Media from django.utils.deprecation ...
castiel248/Convert
Lib/site-packages/django/contrib/gis/admin/options.py
Python
mit
6,390
# RemovedInDjango50Warning. import logging import warnings from django.contrib.gis.gdal import GDALException from django.contrib.gis.geos import GEOSException, GEOSGeometry from django.forms.widgets import Textarea from django.utils import translation from django.utils.deprecation import RemovedInDjango50Warning # Cr...
castiel248/Convert
Lib/site-packages/django/contrib/gis/admin/widgets.py
Python
mit
5,097
from django.apps import AppConfig from django.core import serializers from django.utils.translation import gettext_lazy as _ class GISConfig(AppConfig): default_auto_field = "django.db.models.AutoField" name = "django.contrib.gis" verbose_name = _("GIS") def ready(self): serializers.BUILTIN_S...
castiel248/Convert
Lib/site-packages/django/contrib/gis/apps.py
Python
mit
417
castiel248/Convert
Lib/site-packages/django/contrib/gis/db/__init__.py
Python
mit
0
castiel248/Convert
Lib/site-packages/django/contrib/gis/db/backends/__init__.py
Python
mit
0
castiel248/Convert
Lib/site-packages/django/contrib/gis/db/backends/base/__init__.py
Python
mit
0
class WKTAdapter: """ An adaptor for Geometries sent to the MySQL and Oracle database backends. """ def __init__(self, geom): self.wkt = geom.wkt self.srid = geom.srid def __eq__(self, other): return ( isinstance(other, WKTAdapter) and self.wkt == ot...
castiel248/Convert
Lib/site-packages/django/contrib/gis/db/backends/base/adapter.py
Python
mit
592
import re from django.contrib.gis.db import models class BaseSpatialFeatures: gis_enabled = True # Does the database contain a SpatialRefSys model to store SRID information? has_spatialrefsys_table = True # Does the backend support the django.contrib.gis.utils.add_srs_entry() utility? supports_...
castiel248/Convert
Lib/site-packages/django/contrib/gis/db/backends/base/features.py
Python
mit
3,718
from django.contrib.gis import gdal class SpatialRefSysMixin: """ The SpatialRefSysMixin is a class used by the database-dependent SpatialRefSys objects to reduce redundant code. """ @property def srs(self): """ Return a GDAL SpatialReference object. """ # TODO...
castiel248/Convert
Lib/site-packages/django/contrib/gis/db/backends/base/models.py
Python
mit
4,009
from django.contrib.gis.db.models import GeometryField from django.contrib.gis.db.models.functions import Distance from django.contrib.gis.measure import Area as AreaMeasure from django.contrib.gis.measure import Distance as DistanceMeasure from django.db import NotSupportedError from django.utils.functional import cac...
castiel248/Convert
Lib/site-packages/django/contrib/gis/db/backends/base/operations.py
Python
mit
6,835
castiel248/Convert
Lib/site-packages/django/contrib/gis/db/backends/mysql/__init__.py
Python
mit
0
from django.db.backends.mysql.base import DatabaseWrapper as MySQLDatabaseWrapper from .features import DatabaseFeatures from .introspection import MySQLIntrospection from .operations import MySQLOperations from .schema import MySQLGISSchemaEditor class DatabaseWrapper(MySQLDatabaseWrapper): SchemaEditorClass = ...
castiel248/Convert
Lib/site-packages/django/contrib/gis/db/backends/mysql/base.py
Python
mit
498
from django.contrib.gis.db.backends.base.features import BaseSpatialFeatures from django.db.backends.mysql.features import DatabaseFeatures as MySQLDatabaseFeatures from django.utils.functional import cached_property class DatabaseFeatures(BaseSpatialFeatures, MySQLDatabaseFeatures): empty_intersection_returns_no...
castiel248/Convert
Lib/site-packages/django/contrib/gis/db/backends/mysql/features.py
Python
mit
866
from MySQLdb.constants import FIELD_TYPE from django.contrib.gis.gdal import OGRGeomType from django.db.backends.mysql.introspection import DatabaseIntrospection class MySQLIntrospection(DatabaseIntrospection): # Updating the data_types_reverse dictionary with the appropriate # type for Geometry fields. ...
castiel248/Convert
Lib/site-packages/django/contrib/gis/db/backends/mysql/introspection.py
Python
mit
1,602
from django.contrib.gis.db import models from django.contrib.gis.db.backends.base.adapter import WKTAdapter from django.contrib.gis.db.backends.base.operations import BaseSpatialOperations from django.contrib.gis.db.backends.utils import SpatialOperator from django.contrib.gis.geos.geometry import GEOSGeometryBase from...
castiel248/Convert
Lib/site-packages/django/contrib/gis/db/backends/mysql/operations.py
Python
mit
4,230
import logging from django.contrib.gis.db.models import GeometryField from django.db import OperationalError from django.db.backends.mysql.schema import DatabaseSchemaEditor logger = logging.getLogger("django.contrib.gis") class MySQLGISSchemaEditor(DatabaseSchemaEditor): sql_add_spatial_index = "CREATE SPATIAL...
castiel248/Convert
Lib/site-packages/django/contrib/gis/db/backends/mysql/schema.py
Python
mit
3,205
castiel248/Convert
Lib/site-packages/django/contrib/gis/db/backends/oracle/__init__.py
Python
mit
0
from cx_Oracle import CLOB from django.contrib.gis.db.backends.base.adapter import WKTAdapter from django.contrib.gis.geos import GeometryCollection, Polygon class OracleSpatialAdapter(WKTAdapter): input_size = CLOB def __init__(self, geom): """ Oracle requires that polygon rings are in prop...
castiel248/Convert
Lib/site-packages/django/contrib/gis/db/backends/oracle/adapter.py
Python
mit
2,025
from django.db.backends.oracle.base import DatabaseWrapper as OracleDatabaseWrapper from .features import DatabaseFeatures from .introspection import OracleIntrospection from .operations import OracleOperations from .schema import OracleGISSchemaEditor class DatabaseWrapper(OracleDatabaseWrapper): SchemaEditorCl...
castiel248/Convert
Lib/site-packages/django/contrib/gis/db/backends/oracle/base.py
Python
mit
507
from django.contrib.gis.db.backends.base.features import BaseSpatialFeatures from django.db.backends.oracle.features import ( DatabaseFeatures as OracleDatabaseFeatures, ) from django.utils.functional import cached_property class DatabaseFeatures(BaseSpatialFeatures, OracleDatabaseFeatures): supports_add_srs_...
castiel248/Convert
Lib/site-packages/django/contrib/gis/db/backends/oracle/features.py
Python
mit
1,021
import cx_Oracle from django.db.backends.oracle.introspection import DatabaseIntrospection from django.utils.functional import cached_property class OracleIntrospection(DatabaseIntrospection): # Associating any OBJECTVAR instances with GeometryField. This won't work # right on Oracle objects that aren't MDSY...
castiel248/Convert
Lib/site-packages/django/contrib/gis/db/backends/oracle/introspection.py
Python
mit
1,890
""" The GeometryColumns and SpatialRefSys models for the Oracle spatial backend. It should be noted that Oracle Spatial does not have database tables named according to the OGC standard, so the closest analogs are used. For example, the `USER_SDO_GEOM_METADATA` is used for the GeometryColumns model and the `SDO_...
castiel248/Convert
Lib/site-packages/django/contrib/gis/db/backends/oracle/models.py
Python
mit
2,084
""" This module contains the spatial lookup types, and the `get_geo_where_clause` routine for Oracle Spatial. Please note that WKT support is broken on the XE version, and thus this backend will not work on such platforms. Specifically, XE lacks support for an internal JVM, and Java libraries are required to use...
castiel248/Convert
Lib/site-packages/django/contrib/gis/db/backends/oracle/operations.py
Python
mit
8,766
from django.contrib.gis.db.models import GeometryField from django.db.backends.oracle.schema import DatabaseSchemaEditor from django.db.backends.utils import strip_quotes, truncate_name class OracleGISSchemaEditor(DatabaseSchemaEditor): sql_add_geometry_metadata = """ INSERT INTO USER_SDO_GEOM_METADATA ...
castiel248/Convert
Lib/site-packages/django/contrib/gis/db/backends/oracle/schema.py
Python
mit
4,469
castiel248/Convert
Lib/site-packages/django/contrib/gis/db/backends/postgis/__init__.py
Python
mit
0
""" This object provides quoting for GEOS geometries into PostgreSQL/PostGIS. """ from django.contrib.gis.db.backends.postgis.pgraster import to_pgraster from django.contrib.gis.geos import GEOSGeometry from django.db.backends.postgresql.psycopg_any import sql class PostGISAdapter: def __init__(self, obj, geogra...
castiel248/Convert
Lib/site-packages/django/contrib/gis/db/backends/postgis/adapter.py
Python
mit
1,980
from functools import lru_cache from django.db.backends.base.base import NO_DB_ALIAS from django.db.backends.postgresql.base import DatabaseWrapper as PsycopgDatabaseWrapper from django.db.backends.postgresql.psycopg_any import is_psycopg3 from .adapter import PostGISAdapter from .features import DatabaseFeatures fro...
castiel248/Convert
Lib/site-packages/django/contrib/gis/db/backends/postgis/base.py
Python
mit
5,239
""" PostGIS to GDAL conversion constant definitions """ # Lookup to convert pixel type values from GDAL to PostGIS GDAL_TO_POSTGIS = [None, 4, 6, 5, 8, 7, 10, 11, None, None, None, None] # Lookup to convert pixel type values from PostGIS to GDAL POSTGIS_TO_GDAL = [1, 1, 1, 3, 1, 3, 2, 5, 4, None, 6, 7, None, None] # ...
castiel248/Convert
Lib/site-packages/django/contrib/gis/db/backends/postgis/const.py
Python
mit
2,007
from django.contrib.gis.db.backends.base.features import BaseSpatialFeatures from django.db.backends.postgresql.features import ( DatabaseFeatures as PsycopgDatabaseFeatures, ) class DatabaseFeatures(BaseSpatialFeatures, PsycopgDatabaseFeatures): supports_geography = True supports_3d_storage = True su...
castiel248/Convert
Lib/site-packages/django/contrib/gis/db/backends/postgis/features.py
Python
mit
455
from django.contrib.gis.gdal import OGRGeomType from django.db.backends.postgresql.introspection import DatabaseIntrospection class PostGISIntrospection(DatabaseIntrospection): postgis_oid_lookup = {} # Populated when introspection is performed. ignored_tables = DatabaseIntrospection.ignored_tables + [ ...
castiel248/Convert
Lib/site-packages/django/contrib/gis/db/backends/postgis/introspection.py
Python
mit
3,164
""" The GeometryColumns and SpatialRefSys models for the PostGIS backend. """ from django.contrib.gis.db.backends.base.models import SpatialRefSysMixin from django.db import models class PostGISGeometryColumns(models.Model): """ The 'geometry_columns' view from PostGIS. See the PostGIS documentation at C...
castiel248/Convert
Lib/site-packages/django/contrib/gis/db/backends/postgis/models.py
Python
mit
2,002
import re from django.conf import settings from django.contrib.gis.db.backends.base.operations import BaseSpatialOperations from django.contrib.gis.db.backends.utils import SpatialOperator from django.contrib.gis.db.models import GeometryField, RasterField from django.contrib.gis.gdal import GDALRaster from django.con...
castiel248/Convert
Lib/site-packages/django/contrib/gis/db/backends/postgis/operations.py
Python
mit
16,576
import struct from django.core.exceptions import ValidationError from .const import ( BANDTYPE_FLAG_HASNODATA, BANDTYPE_PIXTYPE_MASK, GDAL_TO_POSTGIS, GDAL_TO_STRUCT, POSTGIS_HEADER_STRUCTURE, POSTGIS_TO_GDAL, STRUCT_SIZE, ) def pack(structure, data): """ Pack data into hex strin...
castiel248/Convert
Lib/site-packages/django/contrib/gis/db/backends/postgis/pgraster.py
Python
mit
4,588
from django.db.backends.postgresql.schema import DatabaseSchemaEditor from django.db.models.expressions import Col, Func class PostGISSchemaEditor(DatabaseSchemaEditor): geom_index_type = "GIST" geom_index_ops_nd = "GIST_GEOMETRY_OPS_ND" rast_index_template = "ST_ConvexHull(%(expressions)s)" sql_alte...
castiel248/Convert
Lib/site-packages/django/contrib/gis/db/backends/postgis/schema.py
Python
mit
3,020
castiel248/Convert
Lib/site-packages/django/contrib/gis/db/backends/spatialite/__init__.py
Python
mit
0
from django.contrib.gis.db.backends.base.adapter import WKTAdapter from django.db.backends.sqlite3.base import Database class SpatiaLiteAdapter(WKTAdapter): "SQLite adapter for geometry objects." def __conform__(self, protocol): if protocol is Database.PrepareProtocol: return str(self)
castiel248/Convert
Lib/site-packages/django/contrib/gis/db/backends/spatialite/adapter.py
Python
mit
318
from ctypes.util import find_library from django.conf import settings from django.core.exceptions import ImproperlyConfigured from django.db.backends.sqlite3.base import DatabaseWrapper as SQLiteDatabaseWrapper from .client import SpatiaLiteClient from .features import DatabaseFeatures from .introspection import Spat...
castiel248/Convert
Lib/site-packages/django/contrib/gis/db/backends/spatialite/base.py
Python
mit
3,218
from django.db.backends.sqlite3.client import DatabaseClient class SpatiaLiteClient(DatabaseClient): executable_name = "spatialite"
castiel248/Convert
Lib/site-packages/django/contrib/gis/db/backends/spatialite/client.py
Python
mit
138
from django.contrib.gis.db.backends.base.features import BaseSpatialFeatures from django.db.backends.sqlite3.features import ( DatabaseFeatures as SQLiteDatabaseFeatures, ) from django.utils.functional import cached_property class DatabaseFeatures(BaseSpatialFeatures, SQLiteDatabaseFeatures): can_alter_geomet...
castiel248/Convert
Lib/site-packages/django/contrib/gis/db/backends/spatialite/features.py
Python
mit
876
from django.contrib.gis.gdal import OGRGeomType from django.db.backends.sqlite3.introspection import ( DatabaseIntrospection, FlexibleFieldLookupDict, ) class GeoFlexibleFieldLookupDict(FlexibleFieldLookupDict): """ Subclass that includes updates the `base_data_types_reverse` dict for geometry fie...
castiel248/Convert
Lib/site-packages/django/contrib/gis/db/backends/spatialite/introspection.py
Python
mit
3,118
""" The GeometryColumns and SpatialRefSys models for the SpatiaLite backend. """ from django.contrib.gis.db.backends.base.models import SpatialRefSysMixin from django.db import models class SpatialiteGeometryColumns(models.Model): """ The 'geometry_columns' table from SpatiaLite. """ f_table_name = ...
castiel248/Convert
Lib/site-packages/django/contrib/gis/db/backends/spatialite/models.py
Python
mit
1,930
""" SQL functions reference lists: https://www.gaia-gis.it/gaia-sins/spatialite-sql-4.3.0.html """ from django.contrib.gis.db import models from django.contrib.gis.db.backends.base.operations import BaseSpatialOperations from django.contrib.gis.db.backends.spatialite.adapter import SpatiaLiteAdapter from django.contrib...
castiel248/Convert
Lib/site-packages/django/contrib/gis/db/backends/spatialite/operations.py
Python
mit
8,394
from django.db import DatabaseError from django.db.backends.sqlite3.schema import DatabaseSchemaEditor class SpatialiteSchemaEditor(DatabaseSchemaEditor): sql_add_geometry_column = ( "SELECT AddGeometryColumn(%(table)s, %(column)s, %(srid)s, " "%(geom_type)s, %(dim)s, %(null)s)" ) sql_add_...
castiel248/Convert
Lib/site-packages/django/contrib/gis/db/backends/spatialite/schema.py
Python
mit
7,204
""" A collection of utility routines and classes used by the spatial backends. """ class SpatialOperator: """ Class encapsulating the behavior specific to a GIS operation (used by lookups). """ sql_template = None def __init__(self, op=None, func=None): self.op = op self.func = f...
castiel248/Convert
Lib/site-packages/django/contrib/gis/db/backends/utils.py
Python
mit
785
from django.db.models import * # NOQA isort:skip from django.db.models import __all__ as models_all # isort:skip import django.contrib.gis.db.models.functions # NOQA import django.contrib.gis.db.models.lookups # NOQA from django.contrib.gis.db.models.aggregates import * # NOQA from django.contrib.gis.db.models.agg...
castiel248/Convert
Lib/site-packages/django/contrib/gis/db/models/__init__.py
Python
mit
865
from django.contrib.gis.db.models.fields import ( ExtentField, GeometryCollectionField, GeometryField, LineStringField, ) from django.db.models import Aggregate, Value from django.utils.functional import cached_property __all__ = ["Collect", "Extent", "Extent3D", "MakeLine", "Union"] class GeoAggrega...
castiel248/Convert
Lib/site-packages/django/contrib/gis/db/models/aggregates.py
Python
mit
2,969
from collections import defaultdict, namedtuple from django.contrib.gis import forms, gdal from django.contrib.gis.db.models.proxy import SpatialProxy from django.contrib.gis.gdal.error import GDALException from django.contrib.gis.geos import ( GeometryCollection, GEOSException, GEOSGeometry, LineStrin...
castiel248/Convert
Lib/site-packages/django/contrib/gis/db/models/fields.py
Python
mit
14,312
from decimal import Decimal from django.contrib.gis.db.models.fields import BaseSpatialField, GeometryField from django.contrib.gis.db.models.sql import AreaField, DistanceField from django.contrib.gis.geos import GEOSGeometry from django.core.exceptions import FieldError from django.db import NotSupportedError from d...
castiel248/Convert
Lib/site-packages/django/contrib/gis/db/models/functions.py
Python
mit
18,666
from django.contrib.gis.db.models.fields import BaseSpatialField from django.contrib.gis.measure import Distance from django.db import NotSupportedError from django.db.models import Expression, Lookup, Transform from django.db.models.sql.query import Query from django.utils.regex_helper import _lazy_re_compile class ...
castiel248/Convert
Lib/site-packages/django/contrib/gis/db/models/lookups.py
Python
mit
11,798
""" The SpatialProxy object allows for lazy-geometries and lazy-rasters. The proxy uses Python descriptors for instantiating and setting Geometry or Raster objects corresponding to geographic model fields. Thanks to Robert Coup for providing this functionality (see #4322). """ from django.db.models.query_utils import ...
castiel248/Convert
Lib/site-packages/django/contrib/gis/db/models/proxy.py
Python
mit
3,173
from django.contrib.gis.db.models.sql.conversion import AreaField, DistanceField __all__ = [ "AreaField", "DistanceField", ]
castiel248/Convert
Lib/site-packages/django/contrib/gis/db/models/sql/__init__.py
Python
mit
134
""" This module holds simple classes to convert geospatial values from the database. """ from decimal import Decimal from django.contrib.gis.measure import Area, Distance from django.db import models class AreaField(models.FloatField): "Wrapper for Area values." def __init__(self, geo_field): super(...
castiel248/Convert
Lib/site-packages/django/contrib/gis/db/models/sql/conversion.py
Python
mit
2,432
from django.contrib.syndication.views import Feed as BaseFeed from django.utils.feedgenerator import Atom1Feed, Rss201rev2Feed class GeoFeedMixin: """ This mixin provides the necessary routines for SyndicationFeed subclasses to produce simple GeoRSS or W3C Geo elements. """ def georss_coords(self...
castiel248/Convert
Lib/site-packages/django/contrib/gis/feeds.py
Python
mit
5,995
from django.forms import * # NOQA from .fields import ( # NOQA GeometryCollectionField, GeometryField, LineStringField, MultiLineStringField, MultiPointField, MultiPolygonField, PointField, PolygonField, ) from .widgets import BaseGeometryWidget, OpenLayersWidget, OSMWidget # NOQA
castiel248/Convert
Lib/site-packages/django/contrib/gis/forms/__init__.py
Python
mit
318
from django import forms from django.contrib.gis.gdal import GDALException from django.contrib.gis.geos import GEOSException, GEOSGeometry from django.core.exceptions import ValidationError from django.utils.translation import gettext_lazy as _ from .widgets import OpenLayersWidget class GeometryField(forms.Field): ...
castiel248/Convert
Lib/site-packages/django/contrib/gis/forms/fields.py
Python
mit
4,608
import logging import warnings from django.conf import settings from django.contrib.gis import gdal from django.contrib.gis.geometry import json_regex from django.contrib.gis.geos import GEOSException, GEOSGeometry from django.forms.widgets import Widget from django.utils import translation from django.utils.deprecati...
castiel248/Convert
Lib/site-packages/django/contrib/gis/forms/widgets.py
Python
mit
4,549
""" This module houses ctypes interfaces for GDAL objects. The following GDAL objects are supported: CoordTransform: Used for coordinate transformations from one spatial reference system to another. Driver: Wraps an OGR data source driver. DataSource: Wrapper for the OGR data source object, supports OGR-su...
castiel248/Convert
Lib/site-packages/django/contrib/gis/gdal/__init__.py
Python
mit
1,827
from django.contrib.gis.gdal.error import GDALException from django.contrib.gis.ptr import CPointerBase class GDALBase(CPointerBase): null_ptr_exception_class = GDALException
castiel248/Convert
Lib/site-packages/django/contrib/gis/gdal/base.py
Python
mit
181
""" DataSource is a wrapper for the OGR Data Source object, which provides an interface for reading vector geometry data from many different file formats (including ESRI shapefiles). When instantiating a DataSource object, use the filename of a GDAL-supported data source. For example, a SHP file or a TIGER/Line...
castiel248/Convert
Lib/site-packages/django/contrib/gis/gdal/datasource.py
Python
mit
4,611