Rapid Geographic Web Application Development with GeoDjango (Where 2.0  Tutorial - May 13, 2008)
62 pages
Latin

Rapid Geographic Web Application Development with GeoDjango (Where 2.0 Tutorial - May 13, 2008)

Le téléchargement nécessite un accès à la bibliothèque YouScribe
Tout savoir sur nos offres
62 pages
Latin
Le téléchargement nécessite un accès à la bibliothèque YouScribe
Tout savoir sur nos offres

Description

geodjangoRapid Geographic Web Application with GeoDjangoMay 14, 2008Where 2.0…ƒ„†Django IntroInstallationThird-Party LibrariesInspection & Import‡ˆŠ‰ExplorationAdminMappingConclusionƒDjango Introgeodjango(Crazily brief) IntroductionDjango is a high-level Python web framework “that encourages rapid development and clean, pragmatic design.”More…http://toys.jacobian.org/presentations/2008/pycon/tutorial/http://www.djangoproject.com/documentation/design_philosophies/http://www.djangobook.com/en/1.0/chapter01/$ django‐admin.py startproject where2where2/__init__.pymanage.pysettings.pyurls.pyfrom django.db import modelsclass County(models.Model): name = models.CharField(...)>>> County(name=’x’).save()>>> County(name=’y’).save()>>> County.objects.count()2>>> c = County.objects.get(name=’y’)CREATE TABLE "app_county" (    "id" integer NOT NULL PRIMARY KEY,    "name" varchar(50) NOT NULL     );from django.contrib.gis.db \ import modelsfrom django.contrib.gis.geos \ import Pointclass County(models.Model): name = models.CharField(...) center = models.PointField(srid=4269) objects = models.GeoManager()>>> p1 = ’POINT (0 1)’>>> p2 = Point(10, 20)>>> County(name=’x’, center=p1).save()>>> County(name=’y’, center=p2).save()>>> County.objects.count()2>>> y = County.objects.get(center=p2)CREATE TABLE "app_county" (    "id" integer NOT NULL PRIMARY KEY,    "name" varchar(50) NOT NULL,     ) ...

Informations

Publié par
Nombre de lectures 41
Langue Latin

Extrait

>> p1 = ’POINT (0 1)’>>> p2 = Point(10, 20)>>> County(name=’x’, center=p1).save()>>> County(name=’y’, center=p2).save()>>> County.objects.count()2>>> y = County.objects.get(center=p2)CREATE TABLE "app_county" (    "id" integer NOT NULL PRIMARY KEY,    "name" varchar(50) NOT NULL,     ) ..." />

geodjango
Rapid Geographic Web Application with GeoDjango
May 14, 2008
Where 2.0…
ƒ


Django Intro
Installation
Third-Party Libraries
Inspection &
Import‡
ˆ
Š

Exploration
Admin
Mapping
Conclusionƒ
Django Introgeodjango(Crazily brief)
IntroductionDjango is a high-level
Python web framework “that encourages rapid
development and clean,
pragmatic design.
”More…
http://toys.jacobian.org/presentations/2008/pycon/tutorial/
http://www.djangoproject.com/documentation/
design_philosophies/
http://www.djangobook.com/en/1.0/chapter01/$ 
django‐admin.py startproject where2where2/
__init__.py
manage.py
settings.py
urls.py

  • Univers Univers
  • Ebooks Ebooks
  • Livres audio Livres audio
  • Presse Presse
  • Podcasts Podcasts
  • BD BD
  • Documents Documents