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

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

Canvec_to_osm python script

Line 
1# last updated 3:44 AM 10/19/2009
2# TITLE canvec-to-osm script BETA v0.9.5.0
3# HD_1150009_2_Coastal_waterRULES.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#
43outer,CODE,1150012,canvec:CODE,1150012
44#outer,CODE,1150012,canvec:generic_code,1150009
45#outer,CODE,1150012,canvec:entity,Coastal water - ( Eau côtière )
46#outer,CODE,1150012,canvec:entity_definition,Waterbody surrounding the Canadian continental landmass.
47#outer,CODE,1150012,canvec:value,Ocean - ( Océan )
48#outer,CODE,1150012,canvec:value_definition:Ocean,Coastal waterbody.
49outer,CODE,1150012,natural,water
50#inner,CODE,1150012,canvec:CODE,1150012
51##inner,CODE,1150012,canvec:generic_code,1150009
52##inner,CODE,1150012,canvec:entity,Coastal water - ( Eau côtière )
53##inner,CODE,1150012,canvec:entity_definition,Waterbody surrounding the Canadian continental landmass.
54##inner,CODE,1150012,canvec:value,Ocean - ( Océan )
55##inner,CODE,1150012,canvec:value_definition:Ocean,Coastal waterbody.
56#inner,CODE,1150012,natural,water
57#
58outer,CODE,1150022,canvec:CODE,1150022
59#outer,CODE,1150022,canvec:generic_code,1150009
60#outer,CODE,1150022,canvec:entity,Coastal water - ( Eau côtière )
61#outer,CODE,1150022,canvec:entity_definition,Waterbody surrounding the Canadian continental landmass.
62#outer,CODE,1150022,canvec:value,Alluvium - ( Alluvions )
63#outer,CODE,1150022,canvec:value_definition:Alluvium,Sedimentary deposits (mud; sand; gravel; stone) left by a river or the tide.
64#outer,CODE,1150022,canvec:min_size:CODE,1150022
65#outer,CODE,1150022,canvec:min_size:area_sq_meter,250
66#outer,CODE,1150022,canvec:min_size:lat_distance_meter,1.5
67#outer,CODE,1150022,canvec:min_size:length_meter,---
68#outer,CODE,1150022,canvec:min_size:long_distance_meter,3
69#outer,CODE,1150022,canvec:min_size:right_angle_tollerance_degree,---
70#outer,CODE,1150022,canvec:min_size:spike_angle_tollerance_degree,10
71outer,CODE,1150022,natural,beach
72#inner,CODE,1150022,canvec:CODE,1150022
73##inner,CODE,1150022,canvec:generic_code,1150009
74##inner,CODE,1150022,canvec:entity,Coastal water - ( Eau côtière )
75##inner,CODE,1150022,canvec:entity_definition,Waterbody surrounding the Canadian continental landmass.
76##inner,CODE,1150022,canvec:value,Alluvium - ( Alluvions )
77##inner,CODE,1150022,canvec:value_definition:Alluvium,Sedimentary deposits (mud; sand; gravel; stone) left by a river or the tide.
78##inner,CODE,1150022,canvec:min_size:CODE,1150022
79##inner,CODE,1150022,canvec:min_size:area_sq_meter,250
80##inner,CODE,1150022,canvec:min_size:lat_distance_meter,1.5
81##inner,CODE,1150022,canvec:min_size:length_meter,---
82##inner,CODE,1150022,canvec:min_size:long_distance_meter,3
83##inner,CODE,1150022,canvec:min_size:right_angle_tollerance_degree,---
84##inner,CODE,1150022,canvec:min_size:spike_angle_tollerance_degree,10
85#inner,CODE,1150022,natural,beach
86#
87#
88#VALDATE
89#Name,Validity date
90#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).
91#Data type,Character (8)
92#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.
93#outer,VALDATE,,canvec:VALDATE,-
94##inner,VALDATE,,canvec:VALDATE,-
95#
96#
97#PROVIDER
98#Name,Provider
99#Definition,The affiliation of the organization that generated (created or revised) the object.
100#Data type,Integer
101#Domain,[1..4]
102#outer,PROVIDER,1,canvec:PROVIDER,Other
103#outer,PROVIDER,2,canvec:PROVIDER,Federal
104#outer,PROVIDER,3,canvec:PROVIDER,Provincial/territorial
105#outer,PROVIDER,4,canvec:PROVIDER,Municipal
106##inner,PROVIDER,1,canvec:PROVIDER,Other
107##inner,PROVIDER,2,canvec:PROVIDER,Federal
108##inner,PROVIDER,3,canvec:PROVIDER,Provincial/territorial
109##inner,PROVIDER,4,canvec:PROVIDER,Municipal
110#
111#
112#ID
113#Name,Feature identifier
114#Definition,Identifier for the entity of the source database.
115#Data type,Character (64)
116#Domain,A string of 32 lowercase characters random based UUID (Universal unique identifier) generated without "-". Example: 69822b23d217494896014e57a2edb8ac.
117outer,ID,,canvec:UUID,-
118#inner,ID,,canvec:UUID,-
119#
120#
121#DATANAME
122#Name,Dataset name
123#Definition,Dataset identifier according to the National Topographic System (NTS).
124#Data type,Character (10)
125#Domain,[999A99] NTS identifier (6 characters).
126#outer,DATANAME,,canvec:datasetName,-
127##inner,DATANAME,,canvec:datasetName,-
128#
129#
130#ACCURACY
131#Name,Planimetric accuracy
132#Definition,Planimetric data accuracy expressed as the Circular Map Accuracy Standard (CMAS).
133#Data type,Integer
134#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.
135#outer,ACCURACY,,canvec:Planimetric Accuracy (CMAS),-
136##inner,ACCURACY,,canvec:Planimetric Accuracy (CMAS),-
137#
138#
139#THEME
140#Name,Theme
141#Definition,Entity theme code.
142#Data Character (2)
143#Domain,[BS,EN,FO,HD,IC,LI,LX,SS,TO,TR,VE]
144#outer,THEME,LX,canvec:Theme,LX Places of Interest
145##inner,THEME,LX,canvec:Theme,LX Places of Interest
146#
Note: See TracBrowser for help on using the repository browser.