Project

General

Profile

« Previous | Next » 

Revision 11382

schemas/VegCore/ERD/VegCore.ERD.mwb: geovalidatable_place: changed parent geoplace pointer to parent_boundary_WKT, since the immediate parent may not have an associated boundary to use for geovalidation (i.e. it may not be an official GADM geoplace), although ancestors further up likely will be

View differences:

schemas/VegCore/ERD/document.mwb.xml
6640 6640
                      <value type="int" key="scale">-1</value>
6641 6641
                      <link type="object" struct-name="db.SimpleDatatype" key="simpleType">com.mysql.rdbms.mysql.datatype.varbinary</link>
6642 6642
                      <value type="string" key="comment">the parent geoplace</value>
6643
                      <value type="string" key="name">parent</value>
6643
                      <value type="string" key="name">parent_boundary_WKT</value>
6644 6644
                      <value type="string" key="oldName">parent</value>
6645 6645
                      <link type="object" struct-name="GrtObject" key="owner">be8f78aa-a6e0-11e2-95e9-080027bcf912</link>
6646 6646
                    </value>
......
6670 6670
                      <value type="string" key="name">fk_nested_geoplace_geoplace1</value>
6671 6671
                      <value type="string" key="oldName">fk_nested_geoplace_geoplace1</value>
6672 6672
                    </value>
6673
                    <value type="object" struct-name="db.mysql.ForeignKey" id="2a08cd96-fa94-11e2-83d9-080027bcf912" struct-checksum="0x70a8fc40">
6674
                      <link type="object" struct-name="db.mysql.Table" key="referencedTable">be8d4a58-a6e0-11e2-95e9-080027bcf912</link>
6675
                      <value _ptr_="0xaca0f60" type="list" content-type="object" content-struct-name="db.Column" key="columns">
6676
                        <link type="object">523d417c-f96b-11e2-9fb4-080027bcf912</link>
6677
                      </value>
6678
                      <value type="int" key="deferability">0</value>
6679
                      <value type="string" key="deleteRule">CASCADE</value>
6680
                      <link type="object" struct-name="db.Index" key="index">2a08de6c-fa94-11e2-83d9-080027bcf912</link>
6681
                      <value type="int" key="mandatory">1</value>
6682
                      <value type="int" key="many">1</value>
6683
                      <value type="int" key="modelOnly">0</value>
6684
                      <link type="object" struct-name="db.Table" key="owner">be8f78aa-a6e0-11e2-95e9-080027bcf912</link>
6685
                      <value _ptr_="0xaca12e8" type="list" content-type="object" content-struct-name="db.Column" key="referencedColumns">
6686
                        <link type="object">be8d4cd8-a6e0-11e2-95e9-080027bcf912</link>
6687
                      </value>
6688
                      <value type="int" key="referencedMandatory">1</value>
6689
                      <value type="string" key="updateRule">CASCADE</value>
6690
                      <value type="string" key="comment"></value>
6691
                      <value type="string" key="name">fk_geovalidatable_place_geoplace1</value>
6692
                      <value type="string" key="oldName">fk_geovalidatable_place_geoplace1</value>
6693
                    </value>
6694 6673
                  </value>
6695 6674
                  <value _ptr_="0xac9ffb0" type="list" content-type="object" content-struct-name="db.mysql.Index" key="indices">
6696 6675
                    <value type="object" struct-name="db.mysql.Index" id="be8f8084-a6e0-11e2-95e9-080027bcf912" struct-checksum="0x309b847a">
......
6716 6695
                      <value type="string" key="oldName">PRIMARY</value>
6717 6696
                      <link type="object" struct-name="GrtObject" key="owner">be8f78aa-a6e0-11e2-95e9-080027bcf912</link>
6718 6697
                    </value>
6719
                    <value type="object" struct-name="db.mysql.Index" id="2a08de6c-fa94-11e2-83d9-080027bcf912" struct-checksum="0x309b847a">
6720
                      <value _ptr_="0xaca1758" type="list" content-type="object" content-struct-name="db.mysql.IndexColumn" key="columns">
6721
                        <value type="object" struct-name="db.mysql.IndexColumn" id="2a090fc2-fa94-11e2-83d9-080027bcf912" struct-checksum="0x62630b3c">
6722
                          <value type="int" key="columnLength">0</value>
6723
                          <value type="string" key="comment"></value>
6724
                          <value type="int" key="descend">0</value>
6725
                          <link type="object" struct-name="db.Column" key="referencedColumn">523d417c-f96b-11e2-9fb4-080027bcf912</link>
6726
                          <value type="string" key="name"></value>
6727
                          <link type="object" struct-name="GrtObject" key="owner">2a08de6c-fa94-11e2-83d9-080027bcf912</link>
6728
                        </value>
6729
                      </value>
6730
                      <value type="string" key="indexKind"></value>
6731
                      <value type="int" key="keyBlockSize">0</value>
6732
                      <value type="string" key="withParser"></value>
6733
                      <value type="string" key="comment"></value>
6734
                      <value type="int" key="deferability">0</value>
6735
                      <value type="string" key="indexType">INDEX</value>
6736
                      <value type="int" key="isPrimary">0</value>
6737
                      <value type="string" key="name">fk_geovalidatable_place_geoplace1_idx</value>
6738
                      <value type="int" key="unique">0</value>
6739
                      <value type="string" key="oldName">fk_geovalidatable_place_geoplace1_idx</value>
6740
                      <link type="object" struct-name="GrtObject" key="owner">be8f78aa-a6e0-11e2-95e9-080027bcf912</link>
6741
                    </value>
6742 6698
                  </value>
6743 6699
                  <value type="string" key="maxRows"></value>
6744 6700
                  <value type="string" key="mergeInsert"></value>
......
6770 6726
                  <value type="int" key="commentedOut">0</value>
6771 6727
                  <value type="string" key="createDate">2013-04-16 14:58</value>
6772 6728
                  <value _ptr_="0xac9fd38" type="dict" key="customData"/>
6773
                  <value type="string" key="lastChangeDate">2013-09-30 03:57</value>
6729
                  <value type="string" key="lastChangeDate">2013-10-20 14:54</value>
6774 6730
                  <value type="int" key="modelOnly">0</value>
6775 6731
                  <value type="string" key="name">geovalidatable_place</value>
6776 6732
                  <link type="object" struct-name="GrtNamedObject" key="owner">be8cb246-a6e0-11e2-95e9-080027bcf912</link>
......
14770 14726
                <value type="real" key="extraCaptionXOffs">0.e+00</value>
14771 14727
                <value type="real" key="extraCaptionYOffs">0.e+00</value>
14772 14728
                <link type="object" struct-name="db.ForeignKey" key="foreignKey">69b7c87c-f970-11e2-9f36-080027bcf912</link>
14773
                <value type="real" key="middleSegmentOffset">1.7077705202753350022248923778533935546875e+01</value>
14729
                <value type="real" key="middleSegmentOffset">-7.5374327269843206522637046873569488525390625e+00</value>
14774 14730
                <value type="real" key="startCaptionXOffs">0.e+00</value>
14775 14731
                <value type="real" key="startCaptionYOffs">0.e+00</value>
14776 14732
                <value type="int" key="drawSplit">0</value>
......
14969 14925
                <value type="int" key="visible">1</value>
14970 14926
                <value type="string" key="name"></value>
14971 14927
              </value>
14972
              <value type="object" struct-name="workbench.physical.Connection" id="2a093fd8-fa94-11e2-83d9-080027bcf912" struct-checksum="0x9baebc92">
14973
                <value type="string" key="caption">fk_geovalidatable_place_geoplace1</value>
14974
                <value type="real" key="captionXOffs">0.e+00</value>
14975
                <value type="real" key="captionYOffs">0.e+00</value>
14976
                <value type="string" key="comment"></value>
14977
                <value type="real" key="endCaptionXOffs">0.e+00</value>
14978
                <value type="real" key="endCaptionYOffs">0.e+00</value>
14979
                <value type="string" key="extraCaption"></value>
14980
                <value type="real" key="extraCaptionXOffs">0.e+00</value>
14981
                <value type="real" key="extraCaptionYOffs">0.e+00</value>
14982
                <link type="object" struct-name="db.ForeignKey" key="foreignKey">2a08cd96-fa94-11e2-83d9-080027bcf912</link>
14983
                <value type="real" key="middleSegmentOffset">1.061593754900280828223912976682186126708984375e+01</value>
14984
                <value type="real" key="startCaptionXOffs">0.e+00</value>
14985
                <value type="real" key="startCaptionYOffs">0.e+00</value>
14986
                <value type="int" key="drawSplit">0</value>
14987
                <link type="object" struct-name="model.Figure" key="endFigure">2EDCE9EA-B246-4F71-9D67-BD04855202B6</link>
14988
                <link type="object" struct-name="model.Figure" key="startFigure">988D9E58-7324-4913-A132-BF8CAD6050C8</link>
14989
                <link type="object" struct-name="model.Diagram" key="owner">3915EB3C-D507-4518-BE3A-63A8D8DD4471</link>
14990
                <value type="int" key="visible">1</value>
14991
                <value type="string" key="name"></value>
14992
              </value>
14993 14928
              <value type="object" struct-name="workbench.physical.Connection" id="2d3c5d86-0078-11e3-906b-080027bcf912" struct-checksum="0x9baebc92">
14994 14929
                <value type="string" key="caption">fk_place_observation_event1</value>
14995 14930
                <value type="real" key="captionXOffs">0.e+00</value>
......
16273 16208
                <value type="int" key="expanded">1</value>
16274 16209
                <value type="real" key="height">2.15e+02</value>
16275 16210
                <link type="object" struct-name="model.Layer" key="layer">88F9E582-B992-43CC-B7D6-A42E190DCB13</link>
16276
                <value type="real" key="left">4.41e+02</value>
16211
                <value type="real" key="left">4.46e+02</value>
16277 16212
                <value type="int" key="locked">0</value>
16278 16213
                <value type="int" key="manualSizing">0</value>
16279
                <value type="real" key="top">2.4e+02</value>
16214
                <value type="real" key="top">2.43e+02</value>
16280 16215
                <value type="real" key="width">9.6e+01</value>
16281 16216
                <link type="object" struct-name="model.Diagram" key="owner">3915EB3C-D507-4518-BE3A-63A8D8DD4471</link>
16282 16217
                <value type="int" key="visible">1</value>
......
16316 16251
                <value type="real" key="left">3.51e+02</value>
16317 16252
                <value type="int" key="locked">0</value>
16318 16253
                <value type="int" key="manualSizing">0</value>
16319
                <value type="real" key="top">5.17e+02</value>
16254
                <value type="real" key="top">4.65e+02</value>
16320 16255
                <value type="real" key="width">1.7e+02</value>
16321 16256
                <link type="object" struct-name="model.Diagram" key="owner">3915EB3C-D507-4518-BE3A-63A8D8DD4471</link>
16322 16257
                <value type="int" key="visible">1</value>
......
17042 16977
                <value type="real" key="left">3.38e+02</value>
17043 16978
                <value type="int" key="locked">0</value>
17044 16979
                <value type="int" key="manualSizing">0</value>
17045
                <value type="real" key="top">6.33e+02</value>
16980
                <value type="real" key="top">5.81e+02</value>
17046 16981
                <value type="real" key="width">1.4e+02</value>
17047 16982
                <link type="object" struct-name="model.Diagram" key="owner">3915EB3C-D507-4518-BE3A-63A8D8DD4471</link>
17048 16983
                <value type="int" key="visible">1</value>
......
17450 17385
                <value type="int" key="expanded">1</value>
17451 17386
                <value type="real" key="height">2.5e+01</value>
17452 17387
                <link type="object" struct-name="model.Layer" key="layer">88F9E582-B992-43CC-B7D6-A42E190DCB13</link>
17453
                <value type="real" key="left">3.88e+02</value>
17388
                <value type="real" key="left">3.93e+02</value>
17454 17389
                <value type="int" key="locked">0</value>
17455 17390
                <value type="int" key="manualSizing">0</value>
17456
                <value type="real" key="top">2.12e+02</value>
17391
                <value type="real" key="top">2.15e+02</value>
17457 17392
                <value type="real" key="width">9.4e+01</value>
17458 17393
                <link type="object" struct-name="model.Diagram" key="owner">3915EB3C-D507-4518-BE3A-63A8D8DD4471</link>
17459 17394
                <value type="int" key="visible">1</value>
......
17468 17403
                <value type="real" key="left">2.74e+02</value>
17469 17404
                <value type="int" key="locked">0</value>
17470 17405
                <value type="int" key="manualSizing">0</value>
17471
                <value type="real" key="top">6.01e+02</value>
17406
                <value type="real" key="top">5.49e+02</value>
17472 17407
                <value type="real" key="width">1.28e+02</value>
17473 17408
                <link type="object" struct-name="model.Diagram" key="owner">3915EB3C-D507-4518-BE3A-63A8D8DD4471</link>
17474 17409
                <value type="int" key="visible">1</value>
......
17485 17420
                <value type="real" key="left">2.78e+02</value>
17486 17421
                <value type="int" key="locked">0</value>
17487 17422
                <value type="int" key="manualSizing">0</value>
17488
                <value type="real" key="top">5.32e+02</value>
17423
                <value type="real" key="top">4.8e+02</value>
17489 17424
                <value type="real" key="width">7.e+01</value>
17490 17425
                <link type="object" struct-name="model.Diagram" key="owner">3915EB3C-D507-4518-BE3A-63A8D8DD4471</link>
17491 17426
                <value type="int" key="visible">1</value>
......
17498 17433
                <value type="int" key="expanded">1</value>
17499 17434
                <value type="real" key="height">4.1e+01</value>
17500 17435
                <link type="object" struct-name="model.Layer" key="layer">88F9E582-B992-43CC-B7D6-A42E190DCB13</link>
17501
                <value type="real" key="left">2.68e+02</value>
17436
                <value type="real" key="left">2.95e+02</value>
17502 17437
                <value type="int" key="locked">0</value>
17503 17438
                <value type="int" key="manualSizing">0</value>
17504
                <value type="real" key="top">4.73e+02</value>
17439
                <value type="real" key="top">4.21e+02</value>
17505 17440
                <value type="real" key="width">1.35e+02</value>
17506 17441
                <link type="object" struct-name="model.Diagram" key="owner">3915EB3C-D507-4518-BE3A-63A8D8DD4471</link>
17507 17442
                <value type="int" key="visible">1</value>
......
17588 17523
                <value type="string" key="name">aggregate_observation</value>
17589 17524
              </value>
17590 17525
              <value type="object" struct-name="workbench.model.NoteFigure" id="d1d0a2b8-0130-11e3-8d80-080027bcf912" struct-checksum="0x56ccd040">
17591
                <value type="string" key="text">5. georeference all places  ^
17592
    to corrected_geoplace</value>
17526
                <value type="string" key="text">5. update all places to  ^
17527
    corrected_geoplace</value>
17593 17528
                <value type="string" key="color">#ffffff</value>
17594 17529
                <value type="int" key="expanded">1</value>
17595 17530
                <value type="real" key="height">4.1e+01</value>
17596 17531
                <link type="object" struct-name="model.Layer" key="layer">88F9E582-B992-43CC-B7D6-A42E190DCB13</link>
17597
                <value type="real" key="left">3.12e+02</value>
17532
                <value type="real" key="left">3.35e+02</value>
17598 17533
                <value type="int" key="locked">0</value>
17599 17534
                <value type="int" key="manualSizing">0</value>
17600
                <value type="real" key="top">8.05e+02</value>
17601
                <value type="real" key="width">1.63e+02</value>
17535
                <value type="real" key="top">7.53e+02</value>
17536
                <value type="real" key="width">1.43e+02</value>
17602 17537
                <link type="object" struct-name="model.Diagram" key="owner">3915EB3C-D507-4518-BE3A-63A8D8DD4471</link>
17603 17538
                <value type="int" key="visible">1</value>
17604
                <value type="string" key="name">5. georeference all places to corrected_geoplace</value>
17539
                <value type="string" key="name">5. update all places to corrected_geoplace</value>
17605 17540
              </value>
17606 17541
              <value type="object" struct-name="workbench.physical.TableFigure" id="f9d27532-1dc5-11e3-838b-410b6ef2c3ca" struct-checksum="0x3b14eccb">
17607 17542
                <value type="int" key="columnsExpanded">1</value>
......
17845 17780
              <value type="int" key="visible">1</value>
17846 17781
              <value type="string" key="name"></value>
17847 17782
            </value>
17848
            <value _ptr_="0xad043d8" type="list" content-type="object" content-struct-name="model.Object" key="selection">
17849
              <link type="object">286AE59E-913E-4F00-A662-693F828EFB6F</link>
17850
            </value>
17783
            <value _ptr_="0xad043d8" type="list" content-type="object" content-struct-name="model.Object" key="selection"/>
17851 17784
            <value type="int" key="updateBlocked">0</value>
17852 17785
            <value type="real" key="width">1.6215e+03</value>
17853 17786
            <value type="real" key="x">0.e+00</value>
......
17860 17793
        <link type="object" struct-name="db.mgmt.Rdbms" key="rdbms">com.mysql.rdbms.mysql</link>
17861 17794
        <value _ptr_="0xac51240" type="list" content-type="object" content-struct-name="db.Script" key="scripts"/>
17862 17795
        <value _ptr_="0xa49c310" type="dict" key="syncProfiles">
17863
          <value type="object" struct-name="db.mgmt.SyncProfile" id="9912941e-39ce-11e3-96cb-080027bcf912" struct-checksum="0xc64972c2" key="">
17864
            <value _ptr_="0xa232930" type="dict" key="lastKnownDBNames">
17796
          <value type="object" struct-name="db.mgmt.SyncProfile" id="0ce9c816-39d0-11e3-96cb-080027bcf912" struct-checksum="0xc64972c2" key="">
17797
            <value _ptr_="0xb8740c8" type="dict" key="lastKnownDBNames">
17865 17798
              <value type="string" key="016697c0-23ec-11e3-ab7c-080027bcf912">name</value>
17866 17799
              <value type="string" key="01b2e3fe-f6ed-11e2-9cf1-080027bcf912">fk_georeferencing_party_list1</value>
17867 17800
              <value type="string" key="01b2e606-f6ed-11e2-9cf1-080027bcf912">georeferenced_by</value>
......
18501 18434
    <value type="object" struct-name="app.DocumentInfo" id="BEE3982F-55A1-4B2C-914A-CD6953803AB9" struct-checksum="0xbba780b8" key="info">
18502 18435
      <value type="string" key="author">Aaron Marcuse-Kubitza</value>
18503 18436
      <value type="string" key="caption">New Model</value>
18504
      <value type="string" key="dateChanged">2013-10-20 14:38</value>
18437
      <value type="string" key="dateChanged">2013-10-20 14:56</value>
18505 18438
      <value type="string" key="dateCreated">2012-01-19 14:06</value>
18506 18439
      <value type="string" key="description"></value>
18507 18440
      <value type="string" key="project">Name of the project</value>
schemas/VegCore/VegCore.my.sql
338 338
/*!40101 SET character_set_client = utf8 */;
339 339
CREATE TABLE `geovalidatable_place` (
340 340
  `id` varbinary(767) NOT NULL,
341
  `parent` varbinary(767) NOT NULL COMMENT 'the parent geoplace',
341
  `parent_boundary_WKT` varbinary(767) NOT NULL COMMENT 'the parent geoplace',
342 342
  PRIMARY KEY (`id`),
343
  KEY `fk_geovalidatable_place_geoplace1_idx` (`parent`),
344
  CONSTRAINT `fk_geovalidatable_place_geoplace1` FOREIGN KEY (`parent`) REFERENCES `geoplace` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
345 343
  CONSTRAINT `fk_nested_geoplace_geoplace1` FOREIGN KEY (`id`) REFERENCES `geoplace` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
346 344
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='stores only scrubbed geoplaces (GADM places, and distinct point coordinates that GNRS says should be located within them)';
347 345
/*!40101 SET character_set_client = @saved_cs_client */;
schemas/VegCore/VegCore.pg.sql
340 340
/*!40101 SET character_set_client = utf8 */;
341 341
CREATE TABLE "geovalidatable_place" (
342 342
  "id" text NOT NULL,
343
  "parent" text NOT NULL /*COMMENT 'the parent geoplace'*/,
343
  "parent_boundary_WKT" text NOT NULL /*COMMENT 'the parent geoplace'*/,
344 344
  PRIMARY KEY ("id"),
345
  /*KEY "fk_geovalidatable_place_geoplace1_idx" ("parent")*/CHECK (true),
346
  /*CONSTRAINT "fk_geovalidatable_place_geoplace1" FOREIGN KEY ("parent") REFERENCES "geoplace" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true),
347 345
  /*CONSTRAINT "fk_nested_geoplace_geoplace1" FOREIGN KEY ("id") REFERENCES "geoplace" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true)
348 346
) /*ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='stores only scrubbed geoplaces (GADM places, and distinct point coordinates that GNRS says should be located within them)'*/;
349 347
/*!40101 SET character_set_client = @saved_cs_client */;

Also available in: Unified diff