# Introduction

## GeoDjangoではじめる地理空間情報

GeoDjangoはDjangoに含まれている地理空間データ用のモジュールです。 この資料はWebアプリ作成に必要な簡単な地理空間情報、Django、GeoDjangoについて記述をしています。

## 対象読者

このドキュメントは、次の方にお読みいただくことを前提に説明しています。<br>

* 地理空間情報のプログラミングは初めてという方
* Pythonの文法はある程度理解している方
* HTML, CSS, JacaScriptはある程度理解している方
* Djangoを使うのは初めてという方
* Webアプリの開発の初級者の方

## ライセンス

\
この資料は [クリエイティブ・コモンズ 表示 - 継承 4.0 国際 ライセンス](http://creativecommons.org/licenses/by-sa/4.0/)の下に提供されています。

* コモンズ証 - <https://creativecommons.org/licenses/by-sa/4.0/deed.ja>
* リーガルコード - <https://creativecommons.org/licenses/by-sa/4.0/legalcode.ja>

### 参考にしたサイト

この資料は下記のサイトを参考に作成をしています。\
&#x20;資料の一部は参考、引用、転載をしています。

* [Django documentation](https://docs.djangoproject.com/en/2.0/)
* [Django ドキュメント](https://docs.djangoproject.com/ja/2.0/)
* [Django Girls Tutorial 英語版](https://tutorial.djangogirls.org/en/)
* [Django Girls Tutorial 日本語版](https://djangogirlsjapan.gitbooks.io/workshop_tutorialjp/content/)
* [GeoDjango Tutorial](https://docs.djangoproject.com/en/2.0/ref/contrib/gis/tutorial/)
* [PostGISとGeoDjangoを使ってLeafletでGeoJSON Tile Layerを表示してみる(1) – インストール編 –](https://blog.bitmeister.jp/?p=3467)
* [モダンDjango入門](https://codezine.jp/article/corner/723)
* [Django Rest Framework GISで誰でも簡単RESTful Geo API](http://monomoti.hatenablog.jp/entry/2015/12/15/000000)

## 免責

* 内容に関しては、正確性、安全性、合法性、適切性、合目的性を保証するものではありません。
* 当該情報に基づいて利用者が被る一切の損害について何等責任を負いません。
* 他のウェブサイトやリソースへのリンクを記述している場合がありまが、リンク先の内容や真偽等につきまして一切責任を負いかねます。
* 予告なしに内容の変更または廃止する場合があります。

## 使用データ

国土数値情報 ダウンロードサービス - <http://nlftp.mlit.go.jp/ksj/index.html>の北海道のデータを使用します

* 国土交通省国土政策局「国土数値情報（行政区域データ）」 (N03-170101\_01\_GML)
  * <http://nlftp.mlit.go.jp/ksj/gml/datalist/KsjTmplt-N03-v2_3.html>
* 国土交通省国土政策局「国土数値情報（小学校区データ）」 (A27-16\_01\_GML)
  * <http://nlftp.mlit.go.jp/ksj/gml/datalist/KsjTmplt-A27-v2_1.html>
* 国土交通省国土政策局「国土数値情報（公共施設データ）」 (P02-06\_01\_GML)
  * <http://nlftp.mlit.go.jp/ksj/gml/datalist/KsjTmplt-P02-v4_0.html>
* 国土交通省国土政策局「国土数値情報（バス停留所データ）」 (P11-10\_01\_GML)
  * <http://nlftp.mlit.go.jp/ksj/gml/datalist/KsjTmplt-P11.html>

## サンプルコード ダウンロード

* [サンプルソースコード (source\_code.zip)](https://github.com/homata/geodjango-book/raw/master/download/source_code.zip)
* GitHub
  * <https://github.com/homata/geodjango-hands-on>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://homata.gitbook.io/geodjango/master.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
