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

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

Canvec_to_osm python script

Line 
1# last updated 3:47 AM 10/19/2009
2# TITLE canvec-to-osm script BETA v0.9.5.0
3# IC_1360039_02_Industrial_and_commercial_areaRULES.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#
23point,GEOMETRY,,GEOMETRY,-
24outer,GEOMETRY,,GEOMETRY,-
25#inner,GEOMETRY,,GEOMETRY,-
26#
27# note,"CODE" is used to note all the other attributes for each feature
28#CODE
29#Name,Specification code
30#Definition,Entity specification code.
31#Data type,Integer
32#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).
33point,CODE,,attribution,Natural Resources Canada
34point,CODE,,source,CanVec_Import_2009
35point,CODE,,created_by,canvec-to-osm
36#point,CODE,,canvec:source,CanVec_Feature_Catalogue_Edition_1_0_2.pdf
37outer,CODE,,attribution,Natural Resources Canada
38outer,CODE,,source,CanVec_Import_2009
39outer,CODE,,created_by,canvec-to-osm
40#outer,CODE,,canvec:source,CanVec_Feature_Catalogue_Edition_1_0_2.pdf
41#inner,CODE,,attribution,Natural Resources Canada
42#inner,CODE,,source,CanVec_Import_2009
43#inner,CODE,,created_by,canvec-to-osm
44##inner,CODE,,canvec:source,CanVec_Feature_Catalogue_Edition_1_0_2.pdf
45#
46#
47#note,Unknown - ( Inconnu )      Groups of cleared lots and buildings operated or arranged for human activity that is primarily industrial, commercial, institutional and/or recreational.
48#proposed feature
49point,CODE,1360030,canvec:CODE,1360030
50#point,CODE,1360030,canvec:generic_code,1360039
51#point,CODE,1360030,canvec:entity,Industrial and commercial area - ( Zone industrielle et commerciale )
52#point,CODE,1360030,canvec:entity_definition,Groups of cleared lots and buildings operated or arranged for human activity that is primarily industrial; commercial; institutional and/or recreational.
53#point,CODE,1360030,canvec:value,Unknown - ( Inconnu )
54point,CODE,1360030,landuse,mixed
55point,CODE,1360030,industrial,yes
56point,CODE,1360030,commercial,yes
57point,CODE,1360030,residential,yes
58outer,CODE,1360032,canvec:CODE,1360032
59#outer,CODE,1360032,canvec:generic_code,1360039
60#outer,CODE,1360032,canvec:entity,Industrial and commercial area - ( Zone industrielle et commerciale )
61#outer,CODE,1360032,canvec:entity_definition,Groups of cleared lots and buildings operated or arranged for human activity that is primarily industrial; commercial; institutional and/or recreational.
62#outer,CODE,1360032,canvec:value,Unknown - ( Inconnu )
63#outer,CODE,1360032,canvec:min_size:CODE,1360032
64#outer,CODE,1360032,canvec:min_size:area_sq_meter,500
65#outer,CODE,1360032,canvec:min_size:lat_distance_meter,1.5
66#outer,CODE,1360032,canvec:min_size:length_meter,---
67#outer,CODE,1360032,canvec:min_size:long_distance_meter,3
68#outer,CODE,1360032,canvec:min_size:right_angle_tollerance_degree,---
69#outer,CODE,1360032,canvec:min_size:spike_angle_tollerance_degree,10
70outer,CODE,1360032,landuse,mixed
71outer,CODE,1360032,industrial,yes
72outer,CODE,1360032,commercial,yes
73outer,CODE,1360032,residential,yes
74#inner,CODE,1360032,canvec:CODE,1360032
75##inner,CODE,1360032,canvec:generic_code,1360039
76##inner,CODE,1360032,canvec:entity,Industrial and commercial area - ( Zone industrielle et commerciale )
77##inner,CODE,1360032,canvec:entity_definition,Groups of cleared lots and buildings operated or arranged for human activity that is primarily industrial; commercial; institutional and/or recreational.
78##inner,CODE,1360032,canvec:value,Unknown - ( Inconnu )
79##inner,CODE,1360032,canvec:min_size:CODE,1360032
80##inner,CODE,1360032,canvec:min_size:area_sq_meter,500
81##inner,CODE,1360032,canvec:min_size:lat_distance_meter,1.5
82##inner,CODE,1360032,canvec:min_size:length_meter,---
83##inner,CODE,1360032,canvec:min_size:long_distance_meter,3
84##inner,CODE,1360032,canvec:min_size:right_angle_tollerance_degree,---
85##inner,CODE,1360032,canvec:min_size:spike_angle_tollerance_degree,10
86#inner,CODE,1360032,landuse,mixed
87#inner,CODE,1360032,industrial,yes
88#inner,CODE,1360032,commercial,yes
89#inner,CODE,1360032,residential,yes
90#
91#
92#VALDATE
93#Name,Validity date
94#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).
95#Data type,Character (8)
96#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.
97#point,VALDATE,,canvec:VALDATE,-
98#outer,VALDATE,,canvec:VALDATE,-
99##inner,VALDATE,,canvec:VALDATE,-
100#
101#
102#PROVIDER
103#Name,Provider
104#Definition,The affiliation of the organization that generated (created or revised) the object.
105#Data type,Integer
106#Domain,[1..4]
107#point,PROVIDER,1,canvec:PROVIDER,Other
108#point,PROVIDER,2,canvec:PROVIDER,Federal
109#point,PROVIDER,3,canvec:PROVIDER,Provincial_territorial
110#point,PROVIDER,4,canvec:PROVIDER,Municipal
111#outer,PROVIDER,1,canvec:PROVIDER,Other
112#outer,PROVIDER,2,canvec:PROVIDER,Federal
113#outer,PROVIDER,3,canvec:PROVIDER,Provincial/territorial
114#outer,PROVIDER,4,canvec:PROVIDER,Municipal
115##inner,PROVIDER,1,canvec:PROVIDER,Other
116##inner,PROVIDER,2,canvec:PROVIDER,Federal
117##inner,PROVIDER,3,canvec:PROVIDER,Provincial/territorial
118##inner,PROVIDER,4,canvec:PROVIDER,Municipal
119#
120#
121#ID
122#Name,Feature identifier
123#Definition,Identifier for the entity of the source database.
124#Data type,Character (64)
125#Domain,A string of 32 lowercase characters random based UUID (Universal unique identifier) generated without "-". Example: 69822b23d217494896014e57a2edb8ac.
126point,ID,,canvec:UUID,-
127outer,ID,,canvec:UUID,-
128#inner,ID,,canvec:UUID,-
129#
130#
131#DATANAME
132#Name,Dataset name
133#Definition,Dataset identifier according to the National Topographic System (NTS).
134#Data type,Character (10)
135#Domain,[999A99] NTS identifier (6 characters).
136#point,DATANAME,,canvec:datasetName,-
137#outer,DATANAME,,canvec:datasetName,-
138##inner,DATANAME,,canvec:datasetName,-
139#
140#
141#ACCURACY
142#Name,Planimetric accuracy
143#Definition,Planimetric data accuracy expressed as the Circular Map Accuracy Standard (CMAS).
144#Data type,Integer
145#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.
146#point,ACCURACY,,canvec:Planimetric Accuracy (CMAS),-
147#outer,ACCURACY,,canvec:Planimetric Accuracy (CMAS),-
148##inner,ACCURACY,,canvec:Planimetric Accuracy (CMAS),-
149#
150#
151#THEME
152#Name,Theme
153#Definition,Entity theme code.
154#Data type,Character (2)
155#Domain,[BS,EN,FO,HD,IC,LI,LX,SS,TO,TR,VE]
156#
157#
158#ORIENTATIO,N,31,8
159#Name Orientation
160#Definition Gives the direction of an occurrence of a point entity. The orientation is measured counterclockwise from the X-axis.
161#Data type Integer
162#Measurement unit Degree
163#Domain [-1,0..359]
164#point,ORIENTATIO,,canvec:ORIENTATIO,-
165#outer,ORIENTATIO,,canvec:ORIENTATIO,-
166##inner,ORIENTATIO,,canvec:ORIENTATIO,-
167#
168#
169#USE,N,3,0
170#Name Tank use
171#Definition Tank use.
172#Data type Integer
173#Domain [-1,1,2]
174#Values Code Label Definition
175#-1 Unknown Impossible to determine the tank use from the data source.
176#1 Other Other than a water tank.
177#2 Water A tank on or above ground level that is used to contain water.
178#
179#
180#TYPE,N,3,0
181#Name Tank type
182#Definition Type of tank.
183#Data type Integer
184#Domain [-1,1,2]
185#Values Code Label Definition
186#-1 Unknown Impossible to determine the type of the tank from the data source.
187#1 Horizontal A tank with the cylinder in a horizontal position.
188#2 Vertical A tank with the cylinder in a vertical position.
189#
Note: See TracBrowser for help on using the repository browser.