mapnik 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (173) hide show
  1. data/.autotest +35 -0
  2. data/.yardopts +1 -0
  3. data/Gemfile +14 -0
  4. data/LICENSE +19 -0
  5. data/Manifest.txt +172 -0
  6. data/README.rdoc +107 -0
  7. data/Rakefile +43 -0
  8. data/demo/data/COPYRIGHT.txt +3 -0
  9. data/demo/data/TM_WORLD_BORDERS_SIMPL_0.3_MOD.dbf +0 -0
  10. data/demo/data/TM_WORLD_BORDERS_SIMPL_0.3_MOD.prj +1 -0
  11. data/demo/data/TM_WORLD_BORDERS_SIMPL_0.3_MOD.shp +0 -0
  12. data/demo/data/TM_WORLD_BORDERS_SIMPL_0.3_MOD.shx +0 -0
  13. data/demo/data/boundaries.dbf +0 -0
  14. data/demo/data/boundaries.prj +1 -0
  15. data/demo/data/boundaries.sbx +0 -0
  16. data/demo/data/boundaries.shp +0 -0
  17. data/demo/data/boundaries.shx +0 -0
  18. data/demo/data/boundaries_l.dbf +0 -0
  19. data/demo/data/boundaries_l.prj +1 -0
  20. data/demo/data/boundaries_l.sbx +0 -0
  21. data/demo/data/boundaries_l.shp +0 -0
  22. data/demo/data/boundaries_l.shx +0 -0
  23. data/demo/data/ontdrainage.dbf +0 -0
  24. data/demo/data/ontdrainage.prj +1 -0
  25. data/demo/data/ontdrainage.sbx +0 -0
  26. data/demo/data/ontdrainage.shp +0 -0
  27. data/demo/data/ontdrainage.shx +0 -0
  28. data/demo/data/popplaces.dbf +0 -0
  29. data/demo/data/popplaces.prj +1 -0
  30. data/demo/data/popplaces.sbx +0 -0
  31. data/demo/data/popplaces.shp +0 -0
  32. data/demo/data/popplaces.shx +0 -0
  33. data/demo/data/qcdrainage.dbf +0 -0
  34. data/demo/data/qcdrainage.prj +1 -0
  35. data/demo/data/qcdrainage.sbx +0 -0
  36. data/demo/data/qcdrainage.shp +0 -0
  37. data/demo/data/qcdrainage.shx +0 -0
  38. data/demo/data/roads.dbf +0 -0
  39. data/demo/data/roads.prj +1 -0
  40. data/demo/data/roads.sbx +0 -0
  41. data/demo/data/roads.shp +0 -0
  42. data/demo/data/roads.shx +0 -0
  43. data/demo/data/test/charplacement.dbf +0 -0
  44. data/demo/data/test/charplacement.shp +0 -0
  45. data/demo/data/test/charplacement.shx +0 -0
  46. data/demo/data/test/displacement.dbf +0 -0
  47. data/demo/data/test/displacement.shp +0 -0
  48. data/demo/data/test/displacement.shx +0 -0
  49. data/demo/data/test/overlap.dbf +0 -0
  50. data/demo/data/test/overlap.shp +0 -0
  51. data/demo/data/test/overlap.shx +0 -0
  52. data/demo/data/test/raw/charplacement.gfs +25 -0
  53. data/demo/data/test/raw/charplacement.gml +99 -0
  54. data/demo/data/test/raw/charplacement.xsd +36 -0
  55. data/demo/data/test/raw/displacement.gfs +25 -0
  56. data/demo/data/test/raw/displacement.gml +173 -0
  57. data/demo/data/test/raw/displacement.xsd +36 -0
  58. data/demo/data/test/raw/overlap.gfs +25 -0
  59. data/demo/data/test/raw/overlap.gml +127 -0
  60. data/demo/data/test/raw/overlap.xsd +36 -0
  61. data/demo/data/test/raw/textspacing.gfs +25 -0
  62. data/demo/data/test/raw/textspacing.gml +117 -0
  63. data/demo/data/test/raw/textspacing.xsd +36 -0
  64. data/demo/data/test/readme.txt +3 -0
  65. data/demo/data/test/regenerate.sh +20 -0
  66. data/demo/data/test/textspacing.dbf +0 -0
  67. data/demo/data/test/textspacing.shp +0 -0
  68. data/demo/data/test/textspacing.shx +0 -0
  69. data/demo/rundemo.rb +145 -0
  70. data/demo/sinatra/demo.rb +31 -0
  71. data/demo/sinatra/public/css/demo_map.css +7 -0
  72. data/demo/sinatra/public/index.html +13 -0
  73. data/demo/sinatra/public/javascripts/demo_map.js +42 -0
  74. data/ext/ruby_mapnik/_mapnik.cpp +52 -0
  75. data/ext/ruby_mapnik/_mapnik.h +65 -0
  76. data/ext/ruby_mapnik/_mapnik_color.rb.cpp +179 -0
  77. data/ext/ruby_mapnik/_mapnik_color.rb.h +32 -0
  78. data/ext/ruby_mapnik/_mapnik_coord.rb.cpp +145 -0
  79. data/ext/ruby_mapnik/_mapnik_coord.rb.h +32 -0
  80. data/ext/ruby_mapnik/_mapnik_datasource.rb.cpp +170 -0
  81. data/ext/ruby_mapnik/_mapnik_datasource.rb.h +32 -0
  82. data/ext/ruby_mapnik/_mapnik_datasource_cache.rb.cpp +87 -0
  83. data/ext/ruby_mapnik/_mapnik_datasource_cache.rb.h +32 -0
  84. data/ext/ruby_mapnik/_mapnik_envelope.rb.cpp +220 -0
  85. data/ext/ruby_mapnik/_mapnik_envelope.rb.h +32 -0
  86. data/ext/ruby_mapnik/_mapnik_expression.rb.cpp +91 -0
  87. data/ext/ruby_mapnik/_mapnik_expression.rb.h +32 -0
  88. data/ext/ruby_mapnik/_mapnik_feature.rb.cpp +93 -0
  89. data/ext/ruby_mapnik/_mapnik_feature.rb.h +32 -0
  90. data/ext/ruby_mapnik/_mapnik_font_engine.rb.cpp +71 -0
  91. data/ext/ruby_mapnik/_mapnik_font_engine.rb.h +32 -0
  92. data/ext/ruby_mapnik/_mapnik_layer.rb.cpp +208 -0
  93. data/ext/ruby_mapnik/_mapnik_layer.rb.h +32 -0
  94. data/ext/ruby_mapnik/_mapnik_line_pattern_symbolizer.rb.cpp +71 -0
  95. data/ext/ruby_mapnik/_mapnik_line_pattern_symbolizer.rb.h +32 -0
  96. data/ext/ruby_mapnik/_mapnik_line_symbolizer.rb.cpp +43 -0
  97. data/ext/ruby_mapnik/_mapnik_line_symbolizer.rb.h +32 -0
  98. data/ext/ruby_mapnik/_mapnik_map.rb.cpp +489 -0
  99. data/ext/ruby_mapnik/_mapnik_map.rb.h +32 -0
  100. data/ext/ruby_mapnik/_mapnik_markers_symbolizer.rb.cpp +140 -0
  101. data/ext/ruby_mapnik/_mapnik_markers_symbolizer.rb.h +32 -0
  102. data/ext/ruby_mapnik/_mapnik_point_symbolizer.rb.cpp +150 -0
  103. data/ext/ruby_mapnik/_mapnik_point_symbolizer.rb.h +32 -0
  104. data/ext/ruby_mapnik/_mapnik_polygon_pattern_symbolizer.rb.cpp +93 -0
  105. data/ext/ruby_mapnik/_mapnik_polygon_pattern_symbolizer.rb.h +32 -0
  106. data/ext/ruby_mapnik/_mapnik_polygon_symbolizer.rb.cpp +89 -0
  107. data/ext/ruby_mapnik/_mapnik_polygon_symbolizer.rb.h +32 -0
  108. data/ext/ruby_mapnik/_mapnik_projection.rb.cpp +100 -0
  109. data/ext/ruby_mapnik/_mapnik_projection.rb.h +32 -0
  110. data/ext/ruby_mapnik/_mapnik_raster_colorizer.rb.cpp +162 -0
  111. data/ext/ruby_mapnik/_mapnik_raster_colorizer.rb.h +32 -0
  112. data/ext/ruby_mapnik/_mapnik_raster_symbolizer.rb.cpp +87 -0
  113. data/ext/ruby_mapnik/_mapnik_raster_symbolizer.rb.h +32 -0
  114. data/ext/ruby_mapnik/_mapnik_rule.rb.cpp +69 -0
  115. data/ext/ruby_mapnik/_mapnik_rule.rb.h +32 -0
  116. data/ext/ruby_mapnik/_mapnik_shield_symbolizer.rb.cpp +86 -0
  117. data/ext/ruby_mapnik/_mapnik_shield_symbolizer.rb.h +32 -0
  118. data/ext/ruby_mapnik/_mapnik_stroke.rb.cpp +188 -0
  119. data/ext/ruby_mapnik/_mapnik_stroke.rb.h +32 -0
  120. data/ext/ruby_mapnik/_mapnik_style.rb.cpp +76 -0
  121. data/ext/ruby_mapnik/_mapnik_style.rb.h +32 -0
  122. data/ext/ruby_mapnik/_mapnik_symbolizer.rb.cpp +75 -0
  123. data/ext/ruby_mapnik/_mapnik_symbolizer.rb.h +32 -0
  124. data/ext/ruby_mapnik/_mapnik_text_symbolizer.rb.cpp +471 -0
  125. data/ext/ruby_mapnik/_mapnik_text_symbolizer.rb.h +32 -0
  126. data/ext/ruby_mapnik/extconf.rb +80 -0
  127. data/ext/ruby_mapnik/ruby_mapnik.cpp +32 -0
  128. data/lib/mapnik.rb +1 -0
  129. data/lib/ruby_mapnik.rb +48 -0
  130. data/lib/ruby_mapnik/mapnik/font_engine.rb +35 -0
  131. data/lib/ruby_mapnik/mapnik/layer.rb +68 -0
  132. data/lib/ruby_mapnik/mapnik/map.rb +166 -0
  133. data/lib/ruby_mapnik/mapnik/projection.rb +44 -0
  134. data/lib/ruby_mapnik/mapnik/raster_colorizer.rb +55 -0
  135. data/lib/ruby_mapnik/mapnik/rule.rb +104 -0
  136. data/lib/ruby_mapnik/mapnik/stroke.rb +56 -0
  137. data/lib/ruby_mapnik/mapnik/style.rb +64 -0
  138. data/lib/ruby_mapnik/mapnik/tile.rb +93 -0
  139. data/script/console +2 -0
  140. data/test/data/TM_WORLD_BORDERS_SIMPL_0.3_MOD.dbf +0 -0
  141. data/test/data/TM_WORLD_BORDERS_SIMPL_0.3_MOD.prj +1 -0
  142. data/test/data/TM_WORLD_BORDERS_SIMPL_0.3_MOD.shp +0 -0
  143. data/test/data/TM_WORLD_BORDERS_SIMPL_0.3_MOD.shx +0 -0
  144. data/test/data/test_map.xml +15 -0
  145. data/test/test_helper.rb +29 -0
  146. data/test/test_line_pattern_symbolizer.rb +26 -0
  147. data/test/test_mapnik_color.rb +66 -0
  148. data/test/test_mapnik_coord.rb +92 -0
  149. data/test/test_mapnik_datasource.rb +49 -0
  150. data/test/test_mapnik_envelope.rb +232 -0
  151. data/test/test_mapnik_expression.rb +19 -0
  152. data/test/test_mapnik_feature.rb +29 -0
  153. data/test/test_mapnik_font_engine.rb +13 -0
  154. data/test/test_mapnik_layer.rb +121 -0
  155. data/test/test_mapnik_line_symbolizer.rb +25 -0
  156. data/test/test_mapnik_map.rb +211 -0
  157. data/test/test_mapnik_markers_symbolizer.rb +46 -0
  158. data/test/test_mapnik_point_symbolizer.rb +53 -0
  159. data/test/test_mapnik_polygon_symbolizer.rb +44 -0
  160. data/test/test_mapnik_projection.rb +46 -0
  161. data/test/test_mapnik_raster_colorizer.rb +56 -0
  162. data/test/test_mapnik_raster_symbolizer.rb +45 -0
  163. data/test/test_mapnik_rule.rb +45 -0
  164. data/test/test_mapnik_shield_symbolizer.rb +156 -0
  165. data/test/test_mapnik_stroke.rb +94 -0
  166. data/test/test_mapnik_style.rb +28 -0
  167. data/test/test_mapnik_symbolizer.rb +9 -0
  168. data/test/test_mapnik_text_symbolizer.rb +208 -0
  169. data/test/test_polygon_pattern_symbolizer.rb +34 -0
  170. data/test/test_ruby_mapnik.rb +34 -0
  171. data/yard/lib/yard/parser/generic_parser.rb +72 -0
  172. data/yard/lib/yard_generic.rb +18 -0
  173. metadata +333 -0
@@ -0,0 +1 @@
1
+ PROJCS["Atlas of Canada Lambert Conformal Conic",GEOGCS["GCS_North_American_1983",DATUM["D_North_American_1983",SPHEROID["GRS_1980",6378137.0,298.257222101]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Lambert_Conformal_Conic"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",-95.0],PARAMETER["Standard_Parallel_1",49.0],PARAMETER["Standard_Parallel_2",77.0],PARAMETER["Latitude_Of_Origin",49.0],UNIT["Meter",1.0]]
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1 @@
1
+ PROJCS["Atlas of Canada Lambert Conformal Conic",GEOGCS["GCS_North_American_1983",DATUM["D_North_American_1983",SPHEROID["GRS_1980",6378137.0,298.257222101]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Lambert_Conformal_Conic"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",-95.0],PARAMETER["Standard_Parallel_1",49.0],PARAMETER["Standard_Parallel_2",77.0],PARAMETER["Latitude_Of_Origin",49.0],UNIT["Meter",1.0]]
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1 @@
1
+ PROJCS["Atlas of Canada Lambert Conformal Conic",GEOGCS["GCS_North_American_1983",DATUM["D_North_American_1983",SPHEROID["GRS_1980",6378137.0,298.257222101]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Lambert_Conformal_Conic"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",-95.0],PARAMETER["Standard_Parallel_1",49.0],PARAMETER["Standard_Parallel_2",77.0],PARAMETER["Latitude_Of_Origin",49.0],UNIT["Meter",1.0]]
Binary file
Binary file
Binary file
@@ -0,0 +1,25 @@
1
+ <GMLFeatureClassList>
2
+ <GMLFeatureClass>
3
+ <Name>charplacement</Name>
4
+ <ElementPath>charplacement</ElementPath>
5
+ <DatasetSpecificInfo>
6
+ <FeatureCount>1</FeatureCount>
7
+ <ExtentXMin>1.00000</ExtentXMin>
8
+ <ExtentXMax>2.00000</ExtentXMax>
9
+ <ExtentYMin>1.00000</ExtentYMin>
10
+ <ExtentYMax>5.00000</ExtentYMax>
11
+ </DatasetSpecificInfo>
12
+ <PropertyDefn>
13
+ <Name>NAME</Name>
14
+ <ElementPath>NAME</ElementPath>
15
+ <Type>String</Type>
16
+ <Width>0</Width>
17
+ </PropertyDefn>
18
+ <PropertyDefn>
19
+ <Name>CLASS</Name>
20
+ <ElementPath>CLASS</ElementPath>
21
+ <Type>String</Type>
22
+ <Width>0</Width>
23
+ </PropertyDefn>
24
+ </GMLFeatureClass>
25
+ </GMLFeatureClassList>
@@ -0,0 +1,99 @@
1
+ <?xml version="1.0" encoding="utf-8" ?>
2
+ <ogr:FeatureCollection
3
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
+ xsi:schemaLocation="charplacement.xsd"
5
+ xmlns:ogr="http://ogr.maptools.org/"
6
+ xmlns:gml="http://www.opengis.net/gml">
7
+ <gml:boundedBy>
8
+ <gml:Box>
9
+ <gml:coord><gml:X>0</gml:X><gml:Y>0</gml:Y></gml:coord>
10
+ <gml:coord><gml:X>13</gml:X><gml:Y>-13</gml:Y></gml:coord>
11
+ </gml:Box>
12
+ </gml:boundedBy>
13
+ <gml:featureMember>
14
+
15
+ <ogr:charplacement fid="F0">
16
+ <ogr:geometryProperty><gml:LineString><gml:coordinates>2,-1 1,-3 2,-5</gml:coordinates></gml:LineString></ogr:geometryProperty>
17
+ <ogr:NAME>Road Name</ogr:NAME>
18
+ <ogr:CLASS>TRIANGLE</ogr:CLASS>
19
+ </ogr:charplacement>
20
+ <ogr:charplacement fid="F1">
21
+ <ogr:geometryProperty><gml:LineString><gml:coordinates>3,-1 4,-3 3,-5</gml:coordinates></gml:LineString></ogr:geometryProperty>
22
+ <ogr:NAME>Road Name</ogr:NAME>
23
+ <ogr:CLASS>TRIANGLE</ogr:CLASS>
24
+ </ogr:charplacement>
25
+
26
+ <ogr:charplacement fid="F7">
27
+ <ogr:geometryProperty><gml:LineString><gml:coordinates>
28
+ 1,-12 13,-12
29
+ </gml:coordinates></gml:LineString></ogr:geometryProperty>
30
+ <ogr:NAME>Road Name</ogr:NAME>
31
+ <ogr:CLASS>STRAIGHT</ogr:CLASS>
32
+ </ogr:charplacement>
33
+ <ogr:charplacement fid="F8">
34
+ <ogr:geometryProperty><gml:LineString><gml:coordinates>
35
+ 1,-13 2,-13 5,-13 10,-13 13,-13
36
+ </gml:coordinates></gml:LineString></ogr:geometryProperty>
37
+ <ogr:NAME>Road Name</ogr:NAME>
38
+ <ogr:CLASS>STRAIGHT</ogr:CLASS>
39
+ </ogr:charplacement>
40
+
41
+ <ogr:charplacement fid="F9">
42
+ <ogr:geometryProperty><gml:LineString><gml:coordinates>6,-1 5,-3 5,-5</gml:coordinates></gml:LineString></ogr:geometryProperty>
43
+ <ogr:NAME>Road Name</ogr:NAME>
44
+ <ogr:CLASS>BEND</ogr:CLASS>
45
+ </ogr:charplacement>
46
+ <ogr:charplacement fid="F10">
47
+ <ogr:geometryProperty><gml:LineString><gml:coordinates>7,-1 8,-3 8,-5</gml:coordinates></gml:LineString></ogr:geometryProperty>
48
+ <ogr:NAME>Road Name</ogr:NAME>
49
+ <ogr:CLASS>BEND</ogr:CLASS>
50
+ </ogr:charplacement>
51
+ <ogr:charplacement fid="F11">
52
+ <ogr:geometryProperty><gml:LineString><gml:coordinates>5,-6 5,-8 6,-10</gml:coordinates></gml:LineString></ogr:geometryProperty>
53
+ <ogr:NAME>Road Name</ogr:NAME>
54
+ <ogr:CLASS>BEND</ogr:CLASS>
55
+ </ogr:charplacement>
56
+ <ogr:charplacement fid="F12">
57
+ <ogr:geometryProperty><gml:LineString><gml:coordinates>8,-6 8,-8 7,-10</gml:coordinates></gml:LineString></ogr:geometryProperty>
58
+ <ogr:NAME>Road Name</ogr:NAME>
59
+ <ogr:CLASS>BEND</ogr:CLASS>
60
+ </ogr:charplacement>
61
+
62
+ <ogr:charplacement fid="F13">
63
+ <ogr:geometryProperty><gml:LineString><gml:coordinates>10.055915,-1.00031738281 10.6649858,-1.077712483 11.274056,-1.26950068 11.77921,-1.55298308 12.191993,-1.92815928 12.51529,-2.369132 12.746218,-2.8329032 12.884774,-3.2968745 12.930959,-3.875339</gml:coordinates></gml:LineString></ogr:geometryProperty>
64
+ <ogr:NAME>Road Name</ogr:NAME>
65
+ <ogr:CLASS>CURVE</ogr:CLASS>
66
+ </ogr:charplacement>
67
+ <ogr:charplacement fid="F14">
68
+ <ogr:geometryProperty><gml:LineString><gml:coordinates>10.0555,-8.875339 10.6645708,-8.7979439 11.273641,-8.6061557 11.778795,-8.3226733 12.191578,-7.9474971 12.514875,-7.5065244 12.745803,-7.0427532 12.884359,-6.5787819 12.930544,-6.0003174</gml:coordinates></gml:LineString></ogr:geometryProperty>
69
+ <ogr:NAME>Road Name</ogr:NAME>
70
+ <ogr:CLASS>CURVE</ogr:CLASS>
71
+ </ogr:charplacement>
72
+
73
+ <ogr:charplacement fid="F15">
74
+ <ogr:geometryProperty><gml:LineString><gml:coordinates>
75
+ 9.055915,-2.00031738281 9.6649858,-2.077712483 10.274056,-2.26950068 10.77921,-2.55298308 11.191993,-2.92815928 11.51529,-3.369132 11.746218,-3.8329032 11.884774,-4.2968745 11.930959,-4.875339
76
+ 11.930544,-5.0003174 11.884359,-5.5787819 11.745803,-6.0427532 11.514875,-6.5065244 11.191578,-6.9474971 10.778795,-7.3226733 10.273641,-7.6061557 9.6645708,-7.7979439 9.0555,-7.875339
77
+ </gml:coordinates></gml:LineString></ogr:geometryProperty>
78
+ <ogr:NAME>Road Name</ogr:NAME>
79
+ <ogr:CLASS>CURVE</ogr:CLASS>
80
+ </ogr:charplacement>
81
+
82
+ <ogr:charplacement fid="F16">
83
+ <ogr:geometryProperty><gml:LineString><gml:coordinates>
84
+ 9.0435048,-10.5550195 9.480786,-10.2191668 9.963148,-10.0731439 10.540222,-10.2495527 10.968444,-10.525815 11.419238,-10.8336443 12.01882,-10.9565825 12.559787,-10.7996079 12.956495,-10.4089966
85
+ </gml:coordinates></gml:LineString></ogr:geometryProperty>
86
+ <ogr:NAME>Road Name</ogr:NAME>
87
+ <ogr:CLASS>SQUIGGLE</ogr:CLASS>
88
+ </ogr:charplacement>
89
+
90
+ <ogr:charplacement fid="F16">
91
+ <ogr:geometryProperty><gml:LineString><gml:coordinates>
92
+ 1,-9 1.4,-10 1.8,-9 2.2,-10 2.6,-9 3.0,-10 3.4,-9 3.8,-10 4.2,-9 4.6,-10
93
+ </gml:coordinates></gml:LineString></ogr:geometryProperty>
94
+ <ogr:NAME>Long ZigZag Road Name</ogr:NAME>
95
+ <ogr:CLASS>ZIGZAG</ogr:CLASS>
96
+ </ogr:charplacement>
97
+
98
+ </gml:featureMember>
99
+ </ogr:FeatureCollection>
@@ -0,0 +1,36 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xs:schema targetNamespace="http://ogr.maptools.org/" xmlns:ogr="http://ogr.maptools.org/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:gml="http://www.opengis.net/gml" elementFormDefault="qualified" version="1.0">
3
+ <xs:import namespace="http://www.opengis.net/gml" schemaLocation="http://schemas.opengeospatial.net/gml/2.1.2/feature.xsd"/><xs:element name="FeatureCollection" type="ogr:FeatureCollectionType" substitutionGroup="gml:_FeatureCollection"/>
4
+ <xs:complexType name="FeatureCollectionType">
5
+ <xs:complexContent>
6
+ <xs:extension base="gml:AbstractFeatureCollectionType">
7
+ <xs:attribute name="lockId" type="xs:string" use="optional"/>
8
+ <xs:attribute name="scope" type="xs:string" use="optional"/>
9
+ </xs:extension>
10
+ </xs:complexContent>
11
+ </xs:complexType>
12
+ <xs:element name="charplacement" type="ogr:charplacement_Type" substitutionGroup="gml:_Feature"/>
13
+ <xs:complexType name="charplacement_Type">
14
+ <xs:complexContent>
15
+ <xs:extension base="gml:AbstractFeatureType">
16
+ <xs:sequence>
17
+ <xs:element name="geometryProperty" type="gml:GeometryPropertyType" nillable="true" minOccurs="1" maxOccurs="1"/>
18
+ <xs:element name="NAME" nillable="true" minOccurs="0" maxOccurs="1">
19
+ <xs:simpleType>
20
+ <xs:restriction base="xs:string">
21
+ <xs:maxLength value="60"/>
22
+ </xs:restriction>
23
+ </xs:simpleType>
24
+ </xs:element>
25
+ <xs:element name="CLASS" nillable="true" minOccurs="0" maxOccurs="1">
26
+ <xs:simpleType>
27
+ <xs:restriction base="xs:string">
28
+ <xs:maxLength value="60"/>
29
+ </xs:restriction>
30
+ </xs:simpleType>
31
+ </xs:element>
32
+ </xs:sequence>
33
+ </xs:extension>
34
+ </xs:complexContent>
35
+ </xs:complexType>
36
+ </xs:schema>
@@ -0,0 +1,25 @@
1
+ <GMLFeatureClassList>
2
+ <GMLFeatureClass>
3
+ <Name>displacement</Name>
4
+ <ElementPath>displacement</ElementPath>
5
+ <DatasetSpecificInfo>
6
+ <FeatureCount>1</FeatureCount>
7
+ <ExtentXMin>1.00000</ExtentXMin>
8
+ <ExtentXMax>2.00000</ExtentXMax>
9
+ <ExtentYMin>1.00000</ExtentYMin>
10
+ <ExtentYMax>5.00000</ExtentYMax>
11
+ </DatasetSpecificInfo>
12
+ <PropertyDefn>
13
+ <Name>NAME</Name>
14
+ <ElementPath>NAME</ElementPath>
15
+ <Type>String</Type>
16
+ <Width>0</Width>
17
+ </PropertyDefn>
18
+ <PropertyDefn>
19
+ <Name>CLASS</Name>
20
+ <ElementPath>CLASS</ElementPath>
21
+ <Type>String</Type>
22
+ <Width>0</Width>
23
+ </PropertyDefn>
24
+ </GMLFeatureClass>
25
+ </GMLFeatureClassList>
@@ -0,0 +1,173 @@
1
+ <?xml version="1.0" encoding="utf-8" ?>
2
+ <ogr:FeatureCollection
3
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
+ xsi:schemaLocation="displacement.xsd"
5
+ xmlns:ogr="http://ogr.maptools.org/"
6
+ xmlns:gml="http://www.opengis.net/gml">
7
+ <gml:boundedBy>
8
+ <gml:Box>
9
+ <gml:coord><gml:X>0</gml:X><gml:Y>0</gml:Y></gml:coord>
10
+ <gml:coord><gml:X>13</gml:X><gml:Y>-13</gml:Y></gml:coord>
11
+ </gml:Box>
12
+ </gml:boundedBy>
13
+ <gml:featureMember>
14
+
15
+ <ogr:displacement fid="F0">
16
+ <ogr:geometryProperty><gml:LineString><gml:coordinates>1,-3 1,-2</gml:coordinates></gml:LineString></ogr:geometryProperty>
17
+ <ogr:NAME>Road</ogr:NAME>
18
+ <ogr:CLASS>CLOCKWISE</ogr:CLASS>
19
+ </ogr:displacement>
20
+ <ogr:displacement fid="F0">
21
+ <ogr:geometryProperty><gml:LineString><gml:coordinates>1,-2 2,-1</gml:coordinates></gml:LineString></ogr:geometryProperty>
22
+ <ogr:NAME>Road</ogr:NAME>
23
+ <ogr:CLASS>CLOCKWISE</ogr:CLASS>
24
+ </ogr:displacement>
25
+ <ogr:displacement fid="F0">
26
+ <ogr:geometryProperty><gml:LineString><gml:coordinates>2,-1 3,-1</gml:coordinates></gml:LineString></ogr:geometryProperty>
27
+ <ogr:NAME>Road</ogr:NAME>
28
+ <ogr:CLASS>CLOCKWISE</ogr:CLASS>
29
+ </ogr:displacement>
30
+ <ogr:displacement fid="F0">
31
+ <ogr:geometryProperty><gml:LineString><gml:coordinates>3,-1 4,-2</gml:coordinates></gml:LineString></ogr:geometryProperty>
32
+ <ogr:NAME>Road</ogr:NAME>
33
+ <ogr:CLASS>CLOCKWISE</ogr:CLASS>
34
+ </ogr:displacement>
35
+ <ogr:displacement fid="F0">
36
+ <ogr:geometryProperty><gml:LineString><gml:coordinates>4,-2 4,-3</gml:coordinates></gml:LineString></ogr:geometryProperty>
37
+ <ogr:NAME>Road</ogr:NAME>
38
+ <ogr:CLASS>CLOCKWISE</ogr:CLASS>
39
+ </ogr:displacement>
40
+ <ogr:displacement fid="F0">
41
+ <ogr:geometryProperty><gml:LineString><gml:coordinates>4,-3 3,-4</gml:coordinates></gml:LineString></ogr:geometryProperty>
42
+ <ogr:NAME>Road</ogr:NAME>
43
+ <ogr:CLASS>CLOCKWISE</ogr:CLASS>
44
+ </ogr:displacement>
45
+ <ogr:displacement fid="F0">
46
+ <ogr:geometryProperty><gml:LineString><gml:coordinates>3,-4 2,-4</gml:coordinates></gml:LineString></ogr:geometryProperty>
47
+ <ogr:NAME>Road</ogr:NAME>
48
+ <ogr:CLASS>CLOCKWISE</ogr:CLASS>
49
+ </ogr:displacement>
50
+ <ogr:displacement fid="F0">
51
+ <ogr:geometryProperty><gml:LineString><gml:coordinates>2,-4 1,-3</gml:coordinates></gml:LineString></ogr:geometryProperty>
52
+ <ogr:NAME>Road</ogr:NAME>
53
+ <ogr:CLASS>CLOCKWISE</ogr:CLASS>
54
+ </ogr:displacement>
55
+
56
+ <ogr:displacement fid="F0">
57
+ <ogr:geometryProperty><gml:LineString><gml:coordinates>5,-3 6,-4</gml:coordinates></gml:LineString></ogr:geometryProperty>
58
+ <ogr:NAME>Road</ogr:NAME>
59
+ <ogr:CLASS>ANTICLOCKWISE</ogr:CLASS>
60
+ </ogr:displacement>
61
+ <ogr:displacement fid="F0">
62
+ <ogr:geometryProperty><gml:LineString><gml:coordinates>6,-4 7,-4</gml:coordinates></gml:LineString></ogr:geometryProperty>
63
+ <ogr:NAME>Road</ogr:NAME>
64
+ <ogr:CLASS>ANTICLOCKWISE</ogr:CLASS>
65
+ </ogr:displacement>
66
+ <ogr:displacement fid="F0">
67
+ <ogr:geometryProperty><gml:LineString><gml:coordinates>7,-4 8,-3</gml:coordinates></gml:LineString></ogr:geometryProperty>
68
+ <ogr:NAME>Road</ogr:NAME>
69
+ <ogr:CLASS>ANTICLOCKWISE</ogr:CLASS>
70
+ </ogr:displacement>
71
+ <ogr:displacement fid="F0">
72
+ <ogr:geometryProperty><gml:LineString><gml:coordinates>8,-3 8,-2</gml:coordinates></gml:LineString></ogr:geometryProperty>
73
+ <ogr:NAME>Road</ogr:NAME>
74
+ <ogr:CLASS>ANTICLOCKWISE</ogr:CLASS>
75
+ </ogr:displacement>
76
+ <ogr:displacement fid="F0">
77
+ <ogr:geometryProperty><gml:LineString><gml:coordinates>8,-2 7,-1</gml:coordinates></gml:LineString></ogr:geometryProperty>
78
+ <ogr:NAME>Road</ogr:NAME>
79
+ <ogr:CLASS>ANTICLOCKWISE</ogr:CLASS>
80
+ </ogr:displacement>
81
+ <ogr:displacement fid="F0">
82
+ <ogr:geometryProperty><gml:LineString><gml:coordinates>7,-1 6,-1</gml:coordinates></gml:LineString></ogr:geometryProperty>
83
+ <ogr:NAME>Road</ogr:NAME>
84
+ <ogr:CLASS>ANTICLOCKWISE</ogr:CLASS>
85
+ </ogr:displacement>
86
+ <ogr:displacement fid="F0">
87
+ <ogr:geometryProperty><gml:LineString><gml:coordinates>6,-1 5,-2</gml:coordinates></gml:LineString></ogr:geometryProperty>
88
+ <ogr:NAME>Road</ogr:NAME>
89
+ <ogr:CLASS>ANTICLOCKWISE</ogr:CLASS>
90
+ </ogr:displacement>
91
+ <ogr:displacement fid="F0">
92
+ <ogr:geometryProperty><gml:LineString><gml:coordinates>5,-2 5,-3</gml:coordinates></gml:LineString></ogr:geometryProperty>
93
+ <ogr:NAME>Road</ogr:NAME>
94
+ <ogr:CLASS>ANTICLOCKWISE</ogr:CLASS>
95
+ </ogr:displacement>
96
+
97
+ <ogr:displacement fid="F0">
98
+ <ogr:geometryProperty><gml:LineString><gml:coordinates>
99
+ 1,-6.5 2,-5.5 3,-5 4,-5 5,-5.5 6,-6.5
100
+ </gml:coordinates></gml:LineString></ogr:geometryProperty>
101
+ <ogr:NAME>Long Road Name To Go Around The Whole Curve!</ogr:NAME>
102
+ <ogr:CLASS>CURVE</ogr:CLASS>
103
+ </ogr:displacement>
104
+
105
+ <ogr:displacement fid="F0">
106
+ <ogr:geometryProperty><gml:LineString><gml:coordinates>
107
+ 1,-7 2,-8 3,-8.5 4,-8.5 5,-8 6,-7
108
+ </gml:coordinates></gml:LineString></ogr:geometryProperty>
109
+ <ogr:NAME>Long Road Name To Go Around The Whole Curve!</ogr:NAME>
110
+ <ogr:CLASS>CURVE</ogr:CLASS>
111
+ </ogr:displacement>
112
+
113
+ <ogr:displacement fid="F0">
114
+ <ogr:geometryProperty><gml:LineString><gml:coordinates>
115
+ 3,-8.5 2,-9.5 1.5,-10.5 1.5,-11.5 2,-12.5 3,-13.5
116
+ </gml:coordinates></gml:LineString></ogr:geometryProperty>
117
+ <ogr:NAME>Long Road Name To Go Around The Whole Curve!</ogr:NAME>
118
+ <ogr:CLASS>VERTCURVE</ogr:CLASS>
119
+ </ogr:displacement>
120
+ <ogr:displacement fid="F0">
121
+ <ogr:geometryProperty><gml:LineString><gml:coordinates>
122
+ 4,-8.5 5,-9.5 5.5,-10.5 5.5,-11.5 5,-12.5 4,-13.5
123
+ </gml:coordinates></gml:LineString></ogr:geometryProperty>
124
+ <ogr:NAME>Long Road Name To Go Around The Whole Curve!</ogr:NAME>
125
+ <ogr:CLASS>VERTCURVE</ogr:CLASS>
126
+ </ogr:displacement>
127
+
128
+ <ogr:displacement fid="F0">
129
+ <ogr:geometryProperty><gml:LineString><gml:coordinates>
130
+ 9.2,-4 9,-3 10,-3 10.2,-4
131
+ </gml:coordinates></gml:LineString></ogr:geometryProperty>
132
+ <ogr:NAME>Road Name</ogr:NAME>
133
+ <ogr:CLASS>PARALLELOGRAM</ogr:CLASS>
134
+ </ogr:displacement>
135
+ <ogr:displacement fid="F0">
136
+ <ogr:geometryProperty><gml:LineString><gml:coordinates>
137
+ 9,-2 9.2,-1 10.2,-1 10,-2
138
+ </gml:coordinates></gml:LineString></ogr:geometryProperty>
139
+ <ogr:NAME>Road Name</ogr:NAME>
140
+ <ogr:CLASS>PARALLELOGRAM</ogr:CLASS>
141
+ </ogr:displacement>
142
+
143
+ <ogr:displacement fid="F0">
144
+ <ogr:geometryProperty><gml:LineString><gml:coordinates>
145
+ 11,-1 11,-2 12,-2
146
+ </gml:coordinates></gml:LineString></ogr:geometryProperty>
147
+ <ogr:NAME>Road Name</ogr:NAME>
148
+ <ogr:CLASS>CORNER</ogr:CLASS>
149
+ </ogr:displacement>
150
+ <ogr:displacement fid="F0">
151
+ <ogr:geometryProperty><gml:LineString><gml:coordinates>
152
+ 11,-4 12,-4 12,-3
153
+ </gml:coordinates></gml:LineString></ogr:geometryProperty>
154
+ <ogr:NAME>Road Name</ogr:NAME>
155
+ <ogr:CLASS>CORNER</ogr:CLASS>
156
+ </ogr:displacement>
157
+ <ogr:displacement fid="F0">
158
+ <ogr:geometryProperty><gml:LineString><gml:coordinates>
159
+ 12.5,-1 13.5,-1 13.5,-2
160
+ </gml:coordinates></gml:LineString></ogr:geometryProperty>
161
+ <ogr:NAME>Road Name</ogr:NAME>
162
+ <ogr:CLASS>CORNER</ogr:CLASS>
163
+ </ogr:displacement>
164
+ <ogr:displacement fid="F0">
165
+ <ogr:geometryProperty><gml:LineString><gml:coordinates>
166
+ 12.5,-4 12.5,-3 13.5,-3
167
+ </gml:coordinates></gml:LineString></ogr:geometryProperty>
168
+ <ogr:NAME>Road Name</ogr:NAME>
169
+ <ogr:CLASS>CORNER</ogr:CLASS>
170
+ </ogr:displacement>
171
+
172
+ </gml:featureMember>
173
+ </ogr:FeatureCollection>
@@ -0,0 +1,36 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xs:schema targetNamespace="http://ogr.maptools.org/" xmlns:ogr="http://ogr.maptools.org/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:gml="http://www.opengis.net/gml" elementFormDefault="qualified" version="1.0">
3
+ <xs:import namespace="http://www.opengis.net/gml" schemaLocation="http://schemas.opengeospatial.net/gml/2.1.2/feature.xsd"/><xs:element name="FeatureCollection" type="ogr:FeatureCollectionType" substitutionGroup="gml:_FeatureCollection"/>
4
+ <xs:complexType name="FeatureCollectionType">
5
+ <xs:complexContent>
6
+ <xs:extension base="gml:AbstractFeatureCollectionType">
7
+ <xs:attribute name="lockId" type="xs:string" use="optional"/>
8
+ <xs:attribute name="scope" type="xs:string" use="optional"/>
9
+ </xs:extension>
10
+ </xs:complexContent>
11
+ </xs:complexType>
12
+ <xs:element name="displacement" type="ogr:displacement_Type" substitutionGroup="gml:_Feature"/>
13
+ <xs:complexType name="displacement_Type">
14
+ <xs:complexContent>
15
+ <xs:extension base="gml:AbstractFeatureType">
16
+ <xs:sequence>
17
+ <xs:element name="geometryProperty" type="gml:GeometryPropertyType" nillable="true" minOccurs="1" maxOccurs="1"/>
18
+ <xs:element name="NAME" nillable="true" minOccurs="0" maxOccurs="1">
19
+ <xs:simpleType>
20
+ <xs:restriction base="xs:string">
21
+ <xs:maxLength value="60"/>
22
+ </xs:restriction>
23
+ </xs:simpleType>
24
+ </xs:element>
25
+ <xs:element name="CLASS" nillable="true" minOccurs="0" maxOccurs="1">
26
+ <xs:simpleType>
27
+ <xs:restriction base="xs:string">
28
+ <xs:maxLength value="60"/>
29
+ </xs:restriction>
30
+ </xs:simpleType>
31
+ </xs:element>
32
+ </xs:sequence>
33
+ </xs:extension>
34
+ </xs:complexContent>
35
+ </xs:complexType>
36
+ </xs:schema>