<?xml version="1.0" encoding="UTF-8"?>
<commits type="array">
  <commit>
    <parents type="array">
      <parent>
        <id>3b5608193e6bed6f39721ee0467afa35022308e1</id>
      </parent>
    </parents>
    <author>
      <name>sjors</name>
      <email>sjors@b9d5c4c9-76e1-0310-9c85-f3177eceb1e4</email>
    </author>
    <url>http://github.com/Sjors/srtm2postgis/commit/d93032878a6ff948b077fde4d19b25837981f2d6</url>
    <id>d93032878a6ff948b077fde4d19b25837981f2d6</id>
    <committed-date>2008-07-30T23:22:31-07:00</committed-date>
    <authored-date>2008-07-30T23:22:31-07:00</authored-date>
    <message>Move database activity into a seperate class.


git-svn-id: http://svn.openstreetmap.org/applications/utils/srtm2postgis/trunk@9393 b9d5c4c9-76e1-0310-9c85-f3177eceb1e4</message>
    <tree>447c522c0014ea4bd39229b9f673e8c5c9f11ba4</tree>
    <committer>
      <name>sjors</name>
      <email>sjors@b9d5c4c9-76e1-0310-9c85-f3177eceb1e4</email>
    </committer>
  </commit>
  <commit>
    <parents type="array">
      <parent>
        <id>05874578b4bdd1c7d021aa4751789cd070811347</id>
      </parent>
    </parents>
    <author>
      <name>Sjors</name>
      <email>sjors@sprovoost.nl</email>
    </author>
    <url>http://github.com/Sjors/srtm2postgis/commit/3cb585dca1d7fe10791312ca26125168506b61c1</url>
    <id>3cb585dca1d7fe10791312ca26125168506b61c1</id>
    <committed-date>2008-07-16T06:53:16-07:00</committed-date>
    <authored-date>2008-07-16T06:53:16-07:00</authored-date>
    <message>Unzips the .hgt.zip files during the database insert and cleans up afterwards..</message>
    <tree>f0e646cda18fb8b0c0ad396ae1f80527e4dc6e51</tree>
    <committer>
      <name>Sjors</name>
      <email>sjors@sprovoost.nl</email>
    </committer>
  </commit>
  <commit>
    <parents type="array">
      <parent>
        <id>79fe5a1ef08400237762d1e1143602e1ad6fe7c5</id>
      </parent>
    </parents>
    <author>
      <name>Sjors</name>
      <email>sjors@sprovoost.nl</email>
    </author>
    <url>http://github.com/Sjors/srtm2postgis/commit/05874578b4bdd1c7d021aa4751789cd070811347</url>
    <id>05874578b4bdd1c7d021aa4751789cd070811347</id>
    <committed-date>2008-07-16T06:24:22-07:00</committed-date>
    <authored-date>2008-07-16T06:24:22-07:00</authored-date>
    <message>Insert data into database for all continents.</message>
    <tree>2ed039315b2da84a5ef5a0f92bd578cd0128d3af</tree>
    <committer>
      <name>Sjors</name>
      <email>sjors@sprovoost.nl</email>
    </committer>
  </commit>
  <commit>
    <parents type="array">
      <parent>
        <id>1b02a642c23c0f25d95ac3a8f5744722232bbfa8</id>
      </parent>
    </parents>
    <author>
      <name>Sjors</name>
      <email>sjors@sprovoost.nl</email>
    </author>
    <url>http://github.com/Sjors/srtm2postgis/commit/79fe5a1ef08400237762d1e1143602e1ad6fe7c5</url>
    <id>79fe5a1ef08400237762d1e1143602e1ad6fe7c5</id>
    <committed-date>2008-07-16T06:24:07-07:00</committed-date>
    <authored-date>2008-07-16T06:24:07-07:00</authored-date>
    <message>Insert data into database for all continents.</message>
    <tree>8594bfc2c9c46461e13439260782f1a185b970bc</tree>
    <committer>
      <name>Sjors</name>
      <email>sjors@sprovoost.nl</email>
    </committer>
  </commit>
  <commit>
    <parents type="array">
      <parent>
        <id>87791c22e4c4f3b7645d1254a115e03033225d07</id>
      </parent>
    </parents>
    <author>
      <name>Sjors</name>
      <email>sjors@sprovoost.nl</email>
    </author>
    <url>http://github.com/Sjors/srtm2postgis/commit/e67aec6e52ba2dfe09c0b9a3c1f76c09b170f6b8</url>
    <id>e67aec6e52ba2dfe09c0b9a3c1f76c09b170f6b8</id>
    <committed-date>2008-06-30T02:29:46-07:00</committed-date>
    <authored-date>2008-06-30T02:29:46-07:00</authored-date>
    <message>Not really MySQL related changes. Added Eclipse envirment. Added directores for more continents. Made some changes to download Germany. This commit will probably  not run.</message>
    <tree>03865e917f289de6666d68826a3bf65712f1856c</tree>
    <committer>
      <name>Sjors</name>
      <email>sjors@sprovoost.nl</email>
    </committer>
  </commit>
  <commit>
    <parents type="array">
      <parent>
        <id>aa9aa7432a5cd674384b2f2214c7e0655e3c373f</id>
      </parent>
    </parents>
    <author>
      <name>sjors</name>
      <email>sjors@b9d5c4c9-76e1-0310-9c85-f3177eceb1e4</email>
    </author>
    <url>http://github.com/Sjors/srtm2postgis/commit/c1fe7be66fff55697df29e9011c3fb1d8c2521d4</url>
    <id>c1fe7be66fff55697df29e9011c3fb1d8c2521d4</id>
    <committed-date>2008-06-16T01:03:25-07:00</committed-date>
    <authored-date>2008-06-16T01:03:25-07:00</authored-date>
    <message>Resume support


git-svn-id: http://svn.openstreetmap.org/applications/utils/srtm2postgis/trunk@8248 b9d5c4c9-76e1-0310-9c85-f3177eceb1e4</message>
    <tree>1cbe59354b5fbee8807d740b970160736553f350</tree>
    <committer>
      <name>sjors</name>
      <email>sjors@b9d5c4c9-76e1-0310-9c85-f3177eceb1e4</email>
    </committer>
  </commit>
  <commit>
    <parents type="array">
      <parent>
        <id>88bb3c91ccbb3a83deaa87fe19695300085a688d</id>
      </parent>
    </parents>
    <author>
      <name>sjors</name>
      <email>sjors@b9d5c4c9-76e1-0310-9c85-f3177eceb1e4</email>
    </author>
    <url>http://github.com/Sjors/srtm2postgis/commit/aa9aa7432a5cd674384b2f2214c7e0655e3c373f</url>
    <id>aa9aa7432a5cd674384b2f2214c7e0655e3c373f</id>
    <committed-date>2008-06-16T01:00:17-07:00</committed-date>
    <authored-date>2008-06-16T01:00:17-07:00</authored-date>
    <message>Test for special value -32768. Resume function (not tested)


git-svn-id: http://svn.openstreetmap.org/applications/utils/srtm2postgis/trunk@8247 b9d5c4c9-76e1-0310-9c85-f3177eceb1e4</message>
    <tree>f99665680a4b66743a9437bb80c54c128bc2ea0d</tree>
    <committer>
      <name>sjors</name>
      <email>sjors@b9d5c4c9-76e1-0310-9c85-f3177eceb1e4</email>
    </committer>
  </commit>
  <commit>
    <parents type="array">
      <parent>
        <id>e530ad778148bc96ef98ccd84060adb04a25ded9</id>
      </parent>
    </parents>
    <author>
      <name>sjors</name>
      <email>sjors@b9d5c4c9-76e1-0310-9c85-f3177eceb1e4</email>
    </author>
    <url>http://github.com/Sjors/srtm2postgis/commit/88bb3c91ccbb3a83deaa87fe19695300085a688d</url>
    <id>88bb3c91ccbb3a83deaa87fe19695300085a688d</id>
    <committed-date>2008-06-16T00:56:54-07:00</committed-date>
    <authored-date>2008-06-16T00:56:54-07:00</authored-date>
    <message>Fixed bug in verification.


git-svn-id: http://svn.openstreetmap.org/applications/utils/srtm2postgis/trunk@8246 b9d5c4c9-76e1-0310-9c85-f3177eceb1e4</message>
    <tree>37cf5aefe3dae17d6aec1875493b17d23dc13617</tree>
    <committer>
      <name>sjors</name>
      <email>sjors@b9d5c4c9-76e1-0310-9c85-f3177eceb1e4</email>
    </committer>
  </commit>
  <commit>
    <parents type="array">
      <parent>
        <id>6ef5d6ecee15e377e4d424a341095c1be0fee58d</id>
      </parent>
    </parents>
    <author>
      <name>sjors</name>
      <email>sjors@b9d5c4c9-76e1-0310-9c85-f3177eceb1e4</email>
    </author>
    <url>http://github.com/Sjors/srtm2postgis/commit/e530ad778148bc96ef98ccd84060adb04a25ded9</url>
    <id>e530ad778148bc96ef98ccd84060adb04a25ded9</id>
    <committed-date>2008-06-16T00:54:51-07:00</committed-date>
    <authored-date>2008-06-16T00:54:51-07:00</authored-date>
    <message>Supports whole continent or part of it


git-svn-id: http://svn.openstreetmap.org/applications/utils/srtm2postgis/trunk@8245 b9d5c4c9-76e1-0310-9c85-f3177eceb1e4</message>
    <tree>2fcca7992554ceda0f9f7cbcf12f2a233e57de5f</tree>
    <committer>
      <name>sjors</name>
      <email>sjors@b9d5c4c9-76e1-0310-9c85-f3177eceb1e4</email>
    </committer>
  </commit>
  <commit>
    <parents type="array">
      <parent>
        <id>89664c9655eccd48d0df0b72b3b8d878a01b9643</id>
      </parent>
    </parents>
    <author>
      <name>sjors</name>
      <email>sjors@b9d5c4c9-76e1-0310-9c85-f3177eceb1e4</email>
    </author>
    <url>http://github.com/Sjors/srtm2postgis/commit/6ef5d6ecee15e377e4d424a341095c1be0fee58d</url>
    <id>6ef5d6ecee15e377e4d424a341095c1be0fee58d</id>
    <committed-date>2008-06-16T00:54:24-07:00</committed-date>
    <authored-date>2008-06-16T00:54:24-07:00</authored-date>
    <message>Added some tests to be on the safe side. Changed index. Changed insert.

 * Replaced 360 by -360 in the index; file coordintes represent the
   lower left coordinate, not the upper left coordinate.

 * Although file name represents lower left coordinate, the first item
   in the file is actually the top left coordinate. For this reason
   I drop the overlapping top row and right column in stead of bottom
   row and left column.


git-svn-id: http://svn.openstreetmap.org/applications/utils/srtm2postgis/trunk@8244 b9d5c4c9-76e1-0310-9c85-f3177eceb1e4</message>
    <tree>214cc1552e4a347ead7133e678cadff1e6c23a72</tree>
    <committer>
      <name>sjors</name>
      <email>sjors@b9d5c4c9-76e1-0310-9c85-f3177eceb1e4</email>
    </committer>
  </commit>
  <commit>
    <parents type="array">
      <parent>
        <id>4991478cc9e3d06f97368539a0f17842a13fd8a6</id>
      </parent>
    </parents>
    <author>
      <name>sjors</name>
      <email>sjors@b9d5c4c9-76e1-0310-9c85-f3177eceb1e4</email>
    </author>
    <url>http://github.com/Sjors/srtm2postgis/commit/89664c9655eccd48d0df0b72b3b8d878a01b9643</url>
    <id>89664c9655eccd48d0df0b72b3b8d878a01b9643</id>
    <committed-date>2008-06-04T22:50:55-07:00</committed-date>
    <authored-date>2008-06-04T22:50:55-07:00</authored-date>
    <message>Space saving measures

 * Changed altitude from double to smallint to save space

 * Replace lat,lon index by a biginteger to save space. The index of a
   coordinate is dermined as follows:
   (-lat0 * 360 + lon0) * 1200 * 1200 + lat1 * 1200 * 1200 + lon1 * 1200
   lat0 and lon0 are the latitude and longitude of the top left corner of a tile.
   lat1 and lon1 are the (decimal) relative latitude and longitude south east of that
   corner. 0 &lt;= lat0 &lt; 1 &amp;&amp; 0 &lt;= lon0 &lt; 1

 * Limit tiles to a smaller region: -45 &lt; lat &lt;= -26 and 141 &lt;= lon &lt; 155 or the part of Australia south east of the north eastern corner of South Australia. Basicly the southern part of Queensland, all of NSW, ACT, Victoria and Tasmania.

 * These 186 tiles need about 15 GB i


git-svn-id: http://svn.openstreetmap.org/applications/utils/srtm2postgis/trunk@8102 b9d5c4c9-76e1-0310-9c85-f3177eceb1e4</message>
    <tree>3e1d0617cf2d4f68f37d55caee2e90c80a3a5a19</tree>
    <committer>
      <name>sjors</name>
      <email>sjors@b9d5c4c9-76e1-0310-9c85-f3177eceb1e4</email>
    </committer>
  </commit>
  <commit>
    <parents type="array">
      <parent>
        <id>29c9a98a7b430cabfdb19b9e9b9654f0bb489fac</id>
      </parent>
    </parents>
    <author>
      <name>sjors</name>
      <email>sjors@b9d5c4c9-76e1-0310-9c85-f3177eceb1e4</email>
    </author>
    <url>http://github.com/Sjors/srtm2postgis/commit/4991478cc9e3d06f97368539a0f17842a13fd8a6</url>
    <id>4991478cc9e3d06f97368539a0f17842a13fd8a6</id>
    <committed-date>2008-05-30T22:35:08-07:00</committed-date>
    <authored-date>2008-05-30T22:35:08-07:00</authored-date>
    <message>Load all tiles in the database.

Verifies that all tiles are inserted in the database in two ways.

 1 : total number of records in the altitude table == 1 526 400 000:
 number of tiles (1060) * width of tile (1200) * height of tile (1200)
 2 : top-left coordinate in file matches top-left coordinate in db

I have succesfully inserted the first 3 tiles; I have not verified the full insert yet.


git-svn-id: http://svn.openstreetmap.org/applications/utils/srtm2postgis/trunk@8013 b9d5c4c9-76e1-0310-9c85-f3177eceb1e4</message>
    <tree>3245fc302b4d13f6a1afe89a04e00ff2960ba1ec</tree>
    <committer>
      <name>sjors</name>
      <email>sjors@b9d5c4c9-76e1-0310-9c85-f3177eceb1e4</email>
    </committer>
  </commit>
  <commit>
    <parents type="array">
      <parent>
        <id>65e3aac17f6895312f5d7f618e7ad30849373fb1</id>
      </parent>
    </parents>
    <author>
      <name>sjors</name>
      <email>sjors@b9d5c4c9-76e1-0310-9c85-f3177eceb1e4</email>
    </author>
    <url>http://github.com/Sjors/srtm2postgis/commit/29c9a98a7b430cabfdb19b9e9b9654f0bb489fac</url>
    <id>29c9a98a7b430cabfdb19b9e9b9654f0bb489fac</id>
    <committed-date>2008-05-30T22:33:10-07:00</committed-date>
    <authored-date>2008-05-30T22:33:10-07:00</authored-date>
    <message>Insert one tile in database

* Use Psycopg2 for insert in stead of PyGreSQL. PyGreSQL crashed my Postgres server for some reason.

* Call Postgres COPY command through a sub process, because the
  Psycopg2 method hangs.

* Insert a tile into the database.

* Create a smaller test tile to speed up the tests

* Read tile from database

* Verify that inserted tile is the same as the read file


git-svn-id: http://svn.openstreetmap.org/applications/utils/srtm2postgis/trunk@8012 b9d5c4c9-76e1-0310-9c85-f3177eceb1e4</message>
    <tree>653e76dce2980514bd91e352b7ca6c8d6348d5f5</tree>
    <committer>
      <name>sjors</name>
      <email>sjors@b9d5c4c9-76e1-0310-9c85-f3177eceb1e4</email>
    </committer>
  </commit>
  <commit>
    <parents type="array">
      <parent>
        <id>a564c8a3770f32a853ba6a5c96ab3501be3f02f4</id>
      </parent>
    </parents>
    <author>
      <name>sjors</name>
      <email>sjors@b9d5c4c9-76e1-0310-9c85-f3177eceb1e4</email>
    </author>
    <url>http://github.com/Sjors/srtm2postgis/commit/65e3aac17f6895312f5d7f618e7ad30849373fb1</url>
    <id>65e3aac17f6895312f5d7f618e7ad30849373fb1</id>
    <committed-date>2008-05-30T22:30:56-07:00</committed-date>
    <authored-date>2008-05-30T22:30:56-07:00</authored-date>
    <message>Created test database &amp; more tests.

 * Created test database. Unfortunately I can not find a Python database test suite for Postgres. I'll just try something myself.

 * Use http://www.pygresql.org/ to connect to Postgres

 * Add database.py (and template) for main and test database configuration.

 * Test if database exists

 * Test if InternalError is raised when deliberatly connecting to non existing
 database.

 * Test if table altitude exists

 * Create table altitude. It uses two columns (lat, lon) in stead of
one point, because I could not figure out what btree opclass
belongs to POINT.


git-svn-id: http://svn.openstreetmap.org/applications/utils/srtm2postgis/trunk@8011 b9d5c4c9-76e1-0310-9c85-f3177eceb1e4</message>
    <tree>41c5bc8b5d69cd3db1836aac28310bf80850bae6</tree>
    <committer>
      <name>sjors</name>
      <email>sjors@b9d5c4c9-76e1-0310-9c85-f3177eceb1e4</email>
    </committer>
  </commit>
</commits>
