source: subversion/applications/utils/import/canvec_import/canvec_to_osm/rules/IC_1350059_2_Peat_cuttingRULES.txt @ 18865

Revision 18865, 5.5 KB checked in by fsteggink, 4 years ago (diff)

Canvec_to_osm python script

Line 
1# last updated 3:46 AM 10/19/2009
2# TITLE canvec-to-osm script BETA v0.9.5.0
3# IC_1350059_2_Peat_cuttingRULES.txt
4# Note: This script omits the description tags.  Use rules_canvecMETAosm.txt for the full version.
5#
6# This is a comma-delimited format.
7#
8# Field:  Description:
9#      1  The shapefile types to match (outer, #inner, line, point) (see below)
10#      2  The source attribute name to match
11#      3  The source attribute value to match. Can be empty to match all values.
12#      4  The name of the tag to apply when the source key/value pair match.
13#      5  The value of the tag to apply. Use a sinlgle dash ("-") to use the original value.
14#
15# The shape file types are:
16#  outer  = The outer polygon of a MultiPolygon
17#  inner  = The inner polygon of a MultiPolygon
18#  line   = A line string of a MultiLineString
19#  point  = A point of a PointString
20#
21#       
22#
23outer,GEOMETRY,,GEOMETRY,-
24#inner,GEOMETRY,,GEOMETRY,-
25#
26# note,"CODE" is used to note all the other attributes for each feature
27#CODE
28#Name,Specification code
29#Definition,Entity specification code.
30#Data type,Integer
31#Domain [AAABBBG] => AAA = Unique value for each entity; BBB = Unique value for each combination of attribute values; G = Geometry indicator (0 = Point, 1 = Line, 2 = Area) or Generic code (9).
32outer,CODE,,attribution,Natural Resources Canada
33outer,CODE,,source,CanVec_Import_2009
34outer,CODE,,created_by,canvec-to-osm
35#outer,CODE,,canvec:source,CanVec_Feature_Catalogue_Edition_1_0_2.pdf
36#inner,CODE,,attribution,Natural Resources Canada
37#inner,CODE,,source,CanVec_Import_2009
38#inner,CODE,,created_by,canvec-to-osm
39##inner,CODE,,canvec:source,CanVec_Feature_Catalogue_Edition_1_0_2.pdf
40#
41#
42#proposed feature
43outer,CODE,1350052,canvec:CODE,1350052
44#outer,CODE,1350052,canvec:generic_code,1350059
45#outer,CODE,1350052,canvec:entity,Peat cutting - ( Tourbière )
46#outer,CODE,1350052,canvec:entity_definition,An excavation created by the removal of peat.
47#outer,CODE,1350052,canvec:value,Peat cutting - ( Tourbière )
48#outer,CODE,1350052,canvec:min_size:CODE,1350052
49#outer,CODE,1350052,canvec:min_size:area_sq_meter,500
50#outer,CODE,1350052,canvec:min_size:lat_distance_meter,1.5
51#outer,CODE,1350052,canvec:min_size:length_meter,---
52#outer,CODE,1350052,canvec:min_size:long_distance_meter,3
53#outer,CODE,1350052,canvec:min_size:right_angle_tollerance_degree,---
54#outer,CODE,1350052,canvec:min_size:spike_angle_tollerance_degree,---
55outer,CODE,1350052,landuse,peat_cutting
56#inner,CODE,1350052,canvec:CODE,1350052
57##inner,CODE,1350052,canvec:generic_code,1350059
58##inner,CODE,1350052,canvec:entity,Peat cutting - ( Tourbière )
59##inner,CODE,1350052,canvec:entity_definition,An excavation created by the removal of peat.
60##inner,CODE,1350052,canvec:value,Peat cutting - ( Tourbière )
61##inner,CODE,1350052,canvec:min_size:CODE,1350052
62##inner,CODE,1350052,canvec:min_size:area_sq_meter,500
63##inner,CODE,1350052,canvec:min_size:lat_distance_meter,1.5
64##inner,CODE,1350052,canvec:min_size:length_meter,---
65##inner,CODE,1350052,canvec:min_size:long_distance_meter,3
66##inner,CODE,1350052,canvec:min_size:right_angle_tollerance_degree,---
67##inner,CODE,1350052,canvec:min_size:spike_angle_tollerance_degree,---
68#inner,CODE,1350052,landuse,peat_cutting
69#
70#
71#VALDATE
72#Name,Validity date
73#Definition,Date of the data source used to create, revise or confirm an object. A source corresponds to any analog or digital document or field validation (e.g. aerial photography, imagery, GPS).
74#Data type,Character (8)
75#Domain,A date in the format YYYYMMDD. If the month or the day is unknown, the corresponding characters are left blank (e.g. 20060630, 200606, 2006). The whole field is left blank if unknown.
76#outer,VALDATE,,canvec:VALDATE,-
77##inner,VALDATE,,canvec:VALDATE,-
78#
79#
80#PROVIDER
81#Name,Provider
82#Definition,The affiliation of the organization that generated (created or revised) the object.
83#Data type,Integer
84#Domain,[1..4]
85#outer,PROVIDER,1,canvec:PROVIDER,Other
86#outer,PROVIDER,2,canvec:PROVIDER,Federal
87#outer,PROVIDER,3,canvec:PROVIDER,Provincial/territorial
88#outer,PROVIDER,4,canvec:PROVIDER,Municipal
89##inner,PROVIDER,1,canvec:PROVIDER,Other
90##inner,PROVIDER,2,canvec:PROVIDER,Federal
91##inner,PROVIDER,3,canvec:PROVIDER,Provincial/territorial
92##inner,PROVIDER,4,canvec:PROVIDER,Municipal
93#
94#
95#ID
96#Name,Feature identifier
97#Definition,Identifier for the entity of the source database.
98#Data type,Character (64)
99#Domain,A string of 32 lowercase characters random based UUID (Universal unique identifier) generated without "-". Example: 69822b23d217494896014e57a2edb8ac.
100outer,ID,,canvec:UUID,-
101#inner,ID,,canvec:UUID,-
102#
103#
104#DATANAME
105#Name,Dataset name
106#Definition,Dataset identifier according to the National Topographic System (NTS).
107#Data type,Character (10)
108#Domain,[999A99] NTS identifier (6 characters).
109#outer,DATANAME,,canvec:datasetName,-
110##inner,DATANAME,,canvec:datasetName,-
111#
112#
113#ACCURACY
114#Name,Planimetric accuracy
115#Definition,Planimetric data accuracy expressed as the Circular Map Accuracy Standard (CMAS).
116#Data type,Integer
117#Domain,[-1,0..50] A real value equal or greater than the accuracy of the Landsat 7 Orthorectified product for the concerned area. Value "-1" is used when non applicable.
118#outer,ACCURACY,,canvec:Planimetric Accuracy (CMAS),-
119##inner,ACCURACY,,canvec:Planimetric Accuracy (CMAS),-
120#
121#
122#THEME
123#Name,Theme
124#Definition,Entity theme code.
125#Data type,Character (2)
126#Domain,[BS,EN,FO,HD,IC,LI,LX,SS,TO,TR,VE]
127#outer,THEME,LX,canvec:Theme,LX Places of Interest
128##inner,THEME,LX,canvec:Theme,LX Places of Interest
129#
Note: See TracBrowser for help on using the repository browser.