ogc-gml 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (334) hide show
  1. checksums.yaml +4 -4
  2. data/.gitmodules +1 -1
  3. data/.rubocop.yml +2 -0
  4. data/.rubocop_todo.yml +33 -0
  5. data/README.adoc +102 -0
  6. data/lib/ogc/gml/abstract_continuous_coverage.rb +1 -2
  7. data/lib/ogc/gml/abstract_coordinate_operation.rb +5 -6
  8. data/lib/ogc/gml/abstract_coordinate_system.rb +6 -7
  9. data/lib/ogc/gml/abstract_coverage.rb +1 -2
  10. data/lib/ogc/gml/abstract_crs.rb +4 -5
  11. data/lib/ogc/gml/abstract_curve.rb +1 -2
  12. data/lib/ogc/gml/abstract_curve_segment.rb +5 -6
  13. data/lib/ogc/gml/abstract_datum.rb +5 -6
  14. data/lib/ogc/gml/abstract_feature.rb +1 -2
  15. data/lib/ogc/gml/abstract_feature_collection.rb +1 -2
  16. data/lib/ogc/gml/abstract_general_conversion.rb +4 -5
  17. data/lib/ogc/gml/abstract_general_derived_crs.rb +1 -2
  18. data/lib/ogc/gml/abstract_general_operation_parameter.rb +3 -4
  19. data/lib/ogc/gml/abstract_general_operation_parameter_property.rb +4 -5
  20. data/lib/ogc/gml/abstract_general_parameter_value.rb +2 -3
  21. data/lib/ogc/gml/abstract_general_parameter_value_property.rb +2 -3
  22. data/lib/ogc/gml/abstract_general_transformation.rb +1 -2
  23. data/lib/ogc/gml/abstract_geometric_aggregate.rb +2 -3
  24. data/lib/ogc/gml/abstract_geometric_primitive.rb +8 -9
  25. data/lib/ogc/gml/abstract_geometry.rb +1 -2
  26. data/lib/ogc/gml/abstract_gml.rb +1 -2
  27. data/lib/ogc/gml/abstract_gridded_surface.rb +5 -6
  28. data/lib/ogc/gml/abstract_meta_data.rb +4 -5
  29. data/lib/ogc/gml/abstract_parametric_curve_surface.rb +3 -4
  30. data/lib/ogc/gml/abstract_ring.rb +2 -3
  31. data/lib/ogc/gml/abstract_ring_property.rb +2 -3
  32. data/lib/ogc/gml/abstract_solid.rb +1 -2
  33. data/lib/ogc/gml/abstract_surface.rb +1 -2
  34. data/lib/ogc/gml/abstract_surface_patch.rb +2 -3
  35. data/lib/ogc/gml/abstract_time_complex.rb +1 -2
  36. data/lib/ogc/gml/abstract_time_geometric_primitive.rb +5 -6
  37. data/lib/ogc/gml/abstract_time_object.rb +1 -2
  38. data/lib/ogc/gml/abstract_time_primitive.rb +2 -3
  39. data/lib/ogc/gml/abstract_time_slice.rb +1 -2
  40. data/lib/ogc/gml/abstract_time_topology_primitive.rb +1 -2
  41. data/lib/ogc/gml/abstract_topo_primitive.rb +1 -2
  42. data/lib/ogc/gml/abstract_topology.rb +4 -5
  43. data/lib/ogc/gml/affine_cs.rb +1 -2
  44. data/lib/ogc/gml/affine_cs_property.rb +4 -5
  45. data/lib/ogc/gml/affine_placement.rb +4 -5
  46. data/lib/ogc/gml/angle.rb +4 -3
  47. data/lib/ogc/gml/arc.rb +1 -2
  48. data/lib/ogc/gml/arc_by_bulge.rb +2 -3
  49. data/lib/ogc/gml/arc_by_center_point.rb +1 -2
  50. data/lib/ogc/gml/arc_string.rb +3 -4
  51. data/lib/ogc/gml/arc_string_by_bulge.rb +2 -3
  52. data/lib/ogc/gml/array.rb +1 -2
  53. data/lib/ogc/gml/array_association.rb +4 -5
  54. data/lib/ogc/gml/association_role.rb +5 -6
  55. data/lib/ogc/gml/b_spline.rb +1 -2
  56. data/lib/ogc/gml/bag.rb +1 -2
  57. data/lib/ogc/gml/base_unit.rb +2 -3
  58. data/lib/ogc/gml/bezier.rb +5 -6
  59. data/lib/ogc/gml/boolean.rb +4 -5
  60. data/lib/ogc/gml/bounding_shape.rb +4 -5
  61. data/lib/ogc/gml/cartesian_cs.rb +1 -2
  62. data/lib/ogc/gml/cartesian_cs_property.rb +4 -5
  63. data/lib/ogc/gml/category.rb +3 -4
  64. data/lib/ogc/gml/category_extent.rb +2 -3
  65. data/lib/ogc/gml/circle.rb +1 -2
  66. data/lib/ogc/gml/circle_by_center_point.rb +3 -4
  67. data/lib/ogc/gml/clothoid.rb +5 -6
  68. data/lib/ogc/gml/code.rb +4 -5
  69. data/lib/ogc/gml/code_or_nil_reason_list.rb +4 -5
  70. data/lib/ogc/gml/code_with_authority.rb +3 -4
  71. data/lib/ogc/gml/composite_curve.rb +1 -2
  72. data/lib/ogc/gml/composite_solid.rb +1 -2
  73. data/lib/ogc/gml/composite_surface.rb +1 -2
  74. data/lib/ogc/gml/composite_value.rb +5 -6
  75. data/lib/ogc/gml/compound_crs.rb +2 -3
  76. data/lib/ogc/gml/compound_crs_property.rb +4 -5
  77. data/lib/ogc/gml/concatenated_operation.rb +4 -5
  78. data/lib/ogc/gml/concatenated_operation_property.rb +4 -5
  79. data/lib/ogc/gml/cone.rb +1 -2
  80. data/lib/ogc/gml/control_point.rb +2 -3
  81. data/lib/ogc/gml/conventional_unit.rb +2 -3
  82. data/lib/ogc/gml/conversion.rb +1 -2
  83. data/lib/ogc/gml/conversion_property.rb +4 -5
  84. data/lib/ogc/gml/conversion_to_preferred_unit.rb +4 -5
  85. data/lib/ogc/gml/coordinate_operation_accuracy.rb +4 -5
  86. data/lib/ogc/gml/coordinate_operation_property.rb +4 -5
  87. data/lib/ogc/gml/coordinate_system_axis.rb +8 -9
  88. data/lib/ogc/gml/coordinate_system_axis_property.rb +4 -5
  89. data/lib/ogc/gml/coordinate_system_property.rb +4 -5
  90. data/lib/ogc/gml/coordinates.rb +6 -7
  91. data/lib/ogc/gml/count.rb +4 -5
  92. data/lib/ogc/gml/coverage_function.rb +2 -3
  93. data/lib/ogc/gml/crs_property.rb +4 -5
  94. data/lib/ogc/gml/cubic_spline.rb +3 -4
  95. data/lib/ogc/gml/curve.rb +1 -2
  96. data/lib/ogc/gml/curve_array_property.rb +3 -4
  97. data/lib/ogc/gml/curve_property.rb +5 -6
  98. data/lib/ogc/gml/curve_segment_array_property.rb +2 -3
  99. data/lib/ogc/gml/cylinder.rb +3 -4
  100. data/lib/ogc/gml/cylindrical_cs.rb +1 -2
  101. data/lib/ogc/gml/cylindrical_cs_property.rb +4 -5
  102. data/lib/ogc/gml/data_block.rb +3 -4
  103. data/lib/ogc/gml/datum_property.rb +4 -5
  104. data/lib/ogc/gml/definition.rb +2 -3
  105. data/lib/ogc/gml/definition_proxy.rb +2 -3
  106. data/lib/ogc/gml/degrees.rb +4 -5
  107. data/lib/ogc/gml/derivation_unit_term.rb +4 -5
  108. data/lib/ogc/gml/derived_crs.rb +1 -2
  109. data/lib/ogc/gml/derived_crs_property.rb +4 -5
  110. data/lib/ogc/gml/derived_unit.rb +2 -3
  111. data/lib/ogc/gml/dictionary.rb +8 -9
  112. data/lib/ogc/gml/dictionary_entry.rb +8 -9
  113. data/lib/ogc/gml/direct_position.rb +7 -8
  114. data/lib/ogc/gml/direct_position_list.rb +8 -9
  115. data/lib/ogc/gml/directed_edge_property.rb +6 -7
  116. data/lib/ogc/gml/directed_face_property.rb +6 -7
  117. data/lib/ogc/gml/directed_node_property.rb +6 -7
  118. data/lib/ogc/gml/directed_observation.rb +1 -2
  119. data/lib/ogc/gml/directed_observation_at_distance.rb +1 -2
  120. data/lib/ogc/gml/directed_topo_solid_property.rb +6 -7
  121. data/lib/ogc/gml/direction_description.rb +4 -5
  122. data/lib/ogc/gml/direction_property.rb +6 -7
  123. data/lib/ogc/gml/direction_vector.rb +2 -3
  124. data/lib/ogc/gml/discrete_coverage.rb +1 -2
  125. data/lib/ogc/gml/dms_angle.rb +5 -6
  126. data/lib/ogc/gml/domain_of_validity.rb +4 -5
  127. data/lib/ogc/gml/domain_set.rb +5 -6
  128. data/lib/ogc/gml/dynamic_feature.rb +1 -2
  129. data/lib/ogc/gml/dynamic_feature_collection.rb +1 -2
  130. data/lib/ogc/gml/dynamic_feature_member.rb +5 -6
  131. data/lib/ogc/gml/edge.rb +5 -6
  132. data/lib/ogc/gml/ellipsoid.rb +2 -3
  133. data/lib/ogc/gml/ellipsoid_property.rb +4 -5
  134. data/lib/ogc/gml/ellipsoidal_cs.rb +1 -2
  135. data/lib/ogc/gml/ellipsoidal_cs_property.rb +4 -5
  136. data/lib/ogc/gml/engineering_crs.rb +1 -2
  137. data/lib/ogc/gml/engineering_crs_property.rb +4 -5
  138. data/lib/ogc/gml/engineering_datum.rb +1 -2
  139. data/lib/ogc/gml/engineering_datum_property.rb +4 -5
  140. data/lib/ogc/gml/envelope.rb +6 -7
  141. data/lib/ogc/gml/envelope_with_time_period.rb +7 -8
  142. data/lib/ogc/gml/face.rb +6 -7
  143. data/lib/ogc/gml/face_or_topo_solid_property.rb +7 -8
  144. data/lib/ogc/gml/feature_array_property.rb +2 -3
  145. data/lib/ogc/gml/feature_collection.rb +1 -2
  146. data/lib/ogc/gml/feature_property.rb +5 -6
  147. data/lib/ogc/gml/file.rb +6 -7
  148. data/lib/ogc/gml/formula.rb +6 -7
  149. data/lib/ogc/gml/formula_citation.rb +4 -5
  150. data/lib/ogc/gml/general_conversion_property.rb +4 -5
  151. data/lib/ogc/gml/general_transformation_property.rb +4 -5
  152. data/lib/ogc/gml/generic_meta_data.rb +4 -5
  153. data/lib/ogc/gml/geocentric_crs.rb +1 -2
  154. data/lib/ogc/gml/geocentric_crs_property.rb +4 -5
  155. data/lib/ogc/gml/geodesic.rb +2 -3
  156. data/lib/ogc/gml/geodesic_string.rb +2 -3
  157. data/lib/ogc/gml/geodetic_crs.rb +1 -2
  158. data/lib/ogc/gml/geodetic_crs_property.rb +4 -5
  159. data/lib/ogc/gml/geodetic_datum.rb +1 -2
  160. data/lib/ogc/gml/geodetic_datum_property.rb +4 -5
  161. data/lib/ogc/gml/geographic_crs.rb +1 -2
  162. data/lib/ogc/gml/geographic_crs_property.rb +4 -5
  163. data/lib/ogc/gml/geometric_complex.rb +1 -2
  164. data/lib/ogc/gml/geometric_primitive_property.rb +5 -6
  165. data/lib/ogc/gml/geometry_array_property.rb +3 -4
  166. data/lib/ogc/gml/geometry_property.rb +5 -6
  167. data/lib/ogc/gml/grid.rb +10 -11
  168. data/lib/ogc/gml/grid_envelope.rb +4 -5
  169. data/lib/ogc/gml/grid_function.rb +3 -4
  170. data/lib/ogc/gml/grid_limits.rb +2 -3
  171. data/lib/ogc/gml/history_property.rb +3 -4
  172. data/lib/ogc/gml/image_crs.rb +1 -2
  173. data/lib/ogc/gml/image_crs_property.rb +4 -5
  174. data/lib/ogc/gml/image_datum.rb +1 -2
  175. data/lib/ogc/gml/image_datum_property.rb +4 -5
  176. data/lib/ogc/gml/indirect_entry.rb +2 -3
  177. data/lib/ogc/gml/inline_property.rb +3 -4
  178. data/lib/ogc/gml/knot.rb +5 -6
  179. data/lib/ogc/gml/knot_property.rb +2 -3
  180. data/lib/ogc/gml/length.rb +4 -3
  181. data/lib/ogc/gml/line_string.rb +1 -2
  182. data/lib/ogc/gml/line_string_segment.rb +2 -3
  183. data/lib/ogc/gml/line_string_segment_array_property.rb +2 -3
  184. data/lib/ogc/gml/linear_cs.rb +1 -2
  185. data/lib/ogc/gml/linear_cs_property.rb +4 -5
  186. data/lib/ogc/gml/linear_ring.rb +2 -3
  187. data/lib/ogc/gml/location_property.rb +5 -6
  188. data/lib/ogc/gml/mapping_rule.rb +3 -4
  189. data/lib/ogc/gml/measure.rb +4 -5
  190. data/lib/ogc/gml/measure_list.rb +4 -5
  191. data/lib/ogc/gml/measure_or_nil_reason_list.rb +4 -5
  192. data/lib/ogc/gml/meta_data_property.rb +5 -6
  193. data/lib/ogc/gml/moving_object_status.rb +1 -2
  194. data/lib/ogc/gml/multi_curve.rb +1 -2
  195. data/lib/ogc/gml/multi_curve_property.rb +5 -6
  196. data/lib/ogc/gml/multi_geometry.rb +1 -2
  197. data/lib/ogc/gml/multi_geometry_property.rb +5 -6
  198. data/lib/ogc/gml/multi_point.rb +1 -2
  199. data/lib/ogc/gml/multi_point_property.rb +5 -6
  200. data/lib/ogc/gml/multi_solid.rb +1 -2
  201. data/lib/ogc/gml/multi_solid_property.rb +5 -6
  202. data/lib/ogc/gml/multi_surface.rb +1 -2
  203. data/lib/ogc/gml/multi_surface_property.rb +5 -6
  204. data/lib/ogc/gml/node.rb +6 -7
  205. data/lib/ogc/gml/node_or_edge_property.rb +6 -7
  206. data/lib/ogc/gml/node_property.rb +5 -6
  207. data/lib/ogc/gml/oblique_cartesian_cs.rb +1 -2
  208. data/lib/ogc/gml/oblique_cartesian_cs_property.rb +4 -5
  209. data/lib/ogc/gml/observation.rb +1 -2
  210. data/lib/ogc/gml/offset_curve.rb +1 -2
  211. data/lib/ogc/gml/operation_method.rb +4 -5
  212. data/lib/ogc/gml/operation_method_property.rb +4 -5
  213. data/lib/ogc/gml/operation_parameter.rb +1 -2
  214. data/lib/ogc/gml/operation_parameter_group.rb +2 -3
  215. data/lib/ogc/gml/operation_parameter_group_property.rb +4 -5
  216. data/lib/ogc/gml/operation_parameter_property.rb +4 -5
  217. data/lib/ogc/gml/operation_property.rb +4 -5
  218. data/lib/ogc/gml/orientable_curve.rb +10 -11
  219. data/lib/ogc/gml/orientable_surface.rb +9 -10
  220. data/lib/ogc/gml/parameter_value.rb +7 -8
  221. data/lib/ogc/gml/parameter_value_group.rb +2 -3
  222. data/lib/ogc/gml/pass_through_operation.rb +2 -3
  223. data/lib/ogc/gml/pass_through_operation_property.rb +4 -5
  224. data/lib/ogc/gml/point.rb +1 -2
  225. data/lib/ogc/gml/point_array_property.rb +3 -4
  226. data/lib/ogc/gml/point_property.rb +5 -6
  227. data/lib/ogc/gml/polar_cs.rb +2 -3
  228. data/lib/ogc/gml/polar_cs_property.rb +4 -5
  229. data/lib/ogc/gml/polygon.rb +1 -2
  230. data/lib/ogc/gml/polygon_patch.rb +3 -4
  231. data/lib/ogc/gml/prime_meridian.rb +2 -3
  232. data/lib/ogc/gml/prime_meridian_property.rb +4 -5
  233. data/lib/ogc/gml/priority_location_property.rb +6 -7
  234. data/lib/ogc/gml/procedure_property.rb +5 -6
  235. data/lib/ogc/gml/projected_crs.rb +1 -2
  236. data/lib/ogc/gml/projected_crs_property.rb +4 -5
  237. data/lib/ogc/gml/quantity.rb +3 -4
  238. data/lib/ogc/gml/quantity_extent.rb +2 -3
  239. data/lib/ogc/gml/range_set.rb +3 -4
  240. data/lib/ogc/gml/rectangle.rb +3 -4
  241. data/lib/ogc/gml/rectified_grid.rb +10 -11
  242. data/lib/ogc/gml/ref_location.rb +2 -3
  243. data/lib/ogc/gml/reference.rb +5 -6
  244. data/lib/ogc/gml/related_time.rb +6 -7
  245. data/lib/ogc/gml/result.rb +5 -6
  246. data/lib/ogc/gml/ring.rb +2 -3
  247. data/lib/ogc/gml/second_defining_parameter1.rb +2 -3
  248. data/lib/ogc/gml/second_defining_parameter2.rb +3 -4
  249. data/lib/ogc/gml/sequence_rule.rb +5 -6
  250. data/lib/ogc/gml/shell.rb +4 -5
  251. data/lib/ogc/gml/shell_property.rb +2 -3
  252. data/lib/ogc/gml/single_crs_property.rb +4 -5
  253. data/lib/ogc/gml/single_operation_property.rb +4 -5
  254. data/lib/ogc/gml/solid.rb +1 -2
  255. data/lib/ogc/gml/solid_array_property.rb +3 -4
  256. data/lib/ogc/gml/solid_property.rb +5 -6
  257. data/lib/ogc/gml/sphere.rb +1 -2
  258. data/lib/ogc/gml/spherical_cs.rb +2 -3
  259. data/lib/ogc/gml/spherical_cs_property.rb +4 -5
  260. data/lib/ogc/gml/string_or_ref.rb +5 -6
  261. data/lib/ogc/gml/surface.rb +1 -2
  262. data/lib/ogc/gml/surface_array_property.rb +3 -4
  263. data/lib/ogc/gml/surface_patch_array_property.rb +2 -3
  264. data/lib/ogc/gml/surface_property.rb +5 -6
  265. data/lib/ogc/gml/target_property.rb +5 -6
  266. data/lib/ogc/gml/temporal_crs.rb +1 -2
  267. data/lib/ogc/gml/temporal_crs_property.rb +4 -5
  268. data/lib/ogc/gml/temporal_cs.rb +1 -2
  269. data/lib/ogc/gml/temporal_cs_property.rb +4 -5
  270. data/lib/ogc/gml/temporal_datum.rb +4 -5
  271. data/lib/ogc/gml/temporal_datum_property.rb +4 -5
  272. data/lib/ogc/gml/time_calendar.rb +3 -4
  273. data/lib/ogc/gml/time_calendar_era.rb +4 -5
  274. data/lib/ogc/gml/time_calendar_era_property.rb +5 -6
  275. data/lib/ogc/gml/time_calendar_property.rb +5 -6
  276. data/lib/ogc/gml/time_clock.rb +5 -6
  277. data/lib/ogc/gml/time_coordinate_system.rb +3 -4
  278. data/lib/ogc/gml/time_cs.rb +1 -2
  279. data/lib/ogc/gml/time_cs_property.rb +4 -5
  280. data/lib/ogc/gml/time_edge.rb +1 -2
  281. data/lib/ogc/gml/time_edge_property.rb +5 -6
  282. data/lib/ogc/gml/time_instant.rb +1 -2
  283. data/lib/ogc/gml/time_instant_property.rb +5 -6
  284. data/lib/ogc/gml/time_interval_length.rb +6 -7
  285. data/lib/ogc/gml/time_node.rb +2 -3
  286. data/lib/ogc/gml/time_node_property.rb +5 -6
  287. data/lib/ogc/gml/time_ordinal_era.rb +3 -4
  288. data/lib/ogc/gml/time_ordinal_era_property.rb +5 -6
  289. data/lib/ogc/gml/time_ordinal_reference_system.rb +3 -4
  290. data/lib/ogc/gml/time_period.rb +2 -3
  291. data/lib/ogc/gml/time_period_property.rb +5 -6
  292. data/lib/ogc/gml/time_position.rb +6 -7
  293. data/lib/ogc/gml/time_primitive_property.rb +5 -6
  294. data/lib/ogc/gml/time_reference_system.rb +3 -4
  295. data/lib/ogc/gml/time_topology_complex.rb +1 -2
  296. data/lib/ogc/gml/time_topology_primitive_property.rb +5 -6
  297. data/lib/ogc/gml/tin.rb +1 -2
  298. data/lib/ogc/gml/topo_complex.rb +7 -8
  299. data/lib/ogc/gml/topo_complex_property.rb +4 -5
  300. data/lib/ogc/gml/topo_curve.rb +5 -6
  301. data/lib/ogc/gml/topo_curve_property.rb +3 -4
  302. data/lib/ogc/gml/topo_point.rb +1 -2
  303. data/lib/ogc/gml/topo_point_property.rb +3 -4
  304. data/lib/ogc/gml/topo_primitive_array_association.rb +3 -4
  305. data/lib/ogc/gml/topo_primitive_member.rb +5 -6
  306. data/lib/ogc/gml/topo_solid.rb +7 -8
  307. data/lib/ogc/gml/topo_solid_property.rb +5 -6
  308. data/lib/ogc/gml/topo_surface.rb +5 -6
  309. data/lib/ogc/gml/topo_surface_property.rb +3 -4
  310. data/lib/ogc/gml/topo_volume.rb +5 -6
  311. data/lib/ogc/gml/topo_volume_property.rb +3 -4
  312. data/lib/ogc/gml/transformation.rb +1 -2
  313. data/lib/ogc/gml/transformation_property.rb +4 -5
  314. data/lib/ogc/gml/triangle.rb +3 -4
  315. data/lib/ogc/gml/unit_definition.rb +2 -3
  316. data/lib/ogc/gml/unit_of_measure.rb +3 -4
  317. data/lib/ogc/gml/user_defined_cs.rb +1 -2
  318. data/lib/ogc/gml/user_defined_cs_property.rb +4 -5
  319. data/lib/ogc/gml/value_array.rb +7 -8
  320. data/lib/ogc/gml/value_array_property.rb +5 -6
  321. data/lib/ogc/gml/value_property.rb +7 -8
  322. data/lib/ogc/gml/vector.rb +2 -3
  323. data/lib/ogc/gml/version.rb +1 -1
  324. data/lib/ogc/gml/vertical_crs.rb +1 -2
  325. data/lib/ogc/gml/vertical_crs_property.rb +4 -5
  326. data/lib/ogc/gml/vertical_cs.rb +1 -2
  327. data/lib/ogc/gml/vertical_cs_property.rb +4 -5
  328. data/lib/ogc/gml/vertical_datum.rb +1 -2
  329. data/lib/ogc/gml/vertical_datum_property.rb +4 -5
  330. data/lib/ogc/gml.rb +8 -5
  331. data/ogc-gml.gemspec +10 -10
  332. metadata +6 -6
  333. data/.github/workflows/main.yml +0 -27
  334. data/README.md +0 -35
@@ -1,7 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # --- topo_solid_type.rb ---
4
- require "shale"
3
+ require "lutaml/model"
5
4
 
6
5
  require_relative "code"
7
6
  require_relative "code_with_authority"
@@ -13,15 +12,15 @@ require_relative "solid_property"
13
12
 
14
13
  module Ogc
15
14
  module Gml
16
- class DirectedFaceProperty < Shale::Mapper
15
+ class DirectedFaceProperty < Lutaml::Model::Serializable
17
16
  end
18
17
 
19
- class TopoSolid < Shale::Mapper
20
- attribute :id, Shale::Type::Value
21
- attribute :aggregation_type, Shale::Type::String
22
- attribute :universal, Shale::Type::Boolean, default: -> { "false" }
18
+ class TopoSolid < Lutaml::Model::Serializable
19
+ attribute :id, :string
20
+ attribute :aggregation_type, :string
21
+ attribute :universal, :boolean, default: -> { false }
23
22
  attribute :meta_data_property, MetaDataProperty, collection: true
24
- attribute :description, Shale::Type::String
23
+ attribute :description, :string
25
24
  attribute :description_reference, Reference
26
25
  attribute :identifier, CodeWithAuthority
27
26
  attribute :name, Code, collection: true
@@ -1,16 +1,15 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # --- topo_solid_property_type.rb ---
4
- require "shale"
3
+ require "lutaml/model"
5
4
 
6
5
  require_relative "topo_solid"
7
6
 
8
7
  module Ogc
9
8
  module Gml
10
- class TopoSolidProperty < Shale::Mapper
11
- attribute :nil_reason, Shale::Type::Value
12
- attribute :remote_schema, Shale::Type::Value
13
- attribute :owns, Shale::Type::Boolean, default: -> { "false" }
9
+ class TopoSolidProperty < Lutaml::Model::Serializable
10
+ attribute :nil_reason, :string
11
+ attribute :remote_schema, :string
12
+ attribute :owns, :boolean, default: -> { false }
14
13
  attribute :topo_solid, TopoSolid
15
14
 
16
15
  xml do
@@ -1,7 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # --- topo_surface_type.rb ---
4
- require "shale"
3
+ require "lutaml/model"
5
4
 
6
5
  require_relative "code"
7
6
  require_relative "code_with_authority"
@@ -11,11 +10,11 @@ require_relative "reference"
11
10
 
12
11
  module Ogc
13
12
  module Gml
14
- class TopoSurface < Shale::Mapper
15
- attribute :id, Shale::Type::Value
16
- attribute :aggregation_type, Shale::Type::String
13
+ class TopoSurface < Lutaml::Model::Serializable
14
+ attribute :id, :string
15
+ attribute :aggregation_type, :string
17
16
  attribute :meta_data_property, MetaDataProperty, collection: true
18
- attribute :description, Shale::Type::String
17
+ attribute :description, :string
19
18
  attribute :description_reference, Reference
20
19
  attribute :identifier, CodeWithAuthority
21
20
  attribute :name, Code, collection: true
@@ -1,14 +1,13 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # --- topo_surface_property_type.rb ---
4
- require "shale"
3
+ require "lutaml/model"
5
4
 
6
5
  require_relative "topo_surface"
7
6
 
8
7
  module Ogc
9
8
  module Gml
10
- class TopoSurfaceProperty < Shale::Mapper
11
- attribute :owns, Shale::Type::Boolean, default: -> { "false" }
9
+ class TopoSurfaceProperty < Lutaml::Model::Serializable
10
+ attribute :owns, :boolean, default: -> { false }
12
11
  attribute :topo_surface, TopoSurface
13
12
 
14
13
  xml do
@@ -1,7 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # --- topo_volume_type.rb ---
4
- require "shale"
3
+ require "lutaml/model"
5
4
 
6
5
  require_relative "code"
7
6
  require_relative "code_with_authority"
@@ -11,11 +10,11 @@ require_relative "reference"
11
10
 
12
11
  module Ogc
13
12
  module Gml
14
- class TopoVolume < Shale::Mapper
15
- attribute :id, Shale::Type::Value
16
- attribute :aggregation_type, Shale::Type::String
13
+ class TopoVolume < Lutaml::Model::Serializable
14
+ attribute :id, :string
15
+ attribute :aggregation_type, :string
17
16
  attribute :meta_data_property, MetaDataProperty, collection: true
18
- attribute :description, Shale::Type::String
17
+ attribute :description, :string
19
18
  attribute :description_reference, Reference
20
19
  attribute :identifier, CodeWithAuthority
21
20
  attribute :name, Code, collection: true
@@ -1,14 +1,13 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # --- topo_volume_property_type.rb ---
4
- require "shale"
3
+ require "lutaml/model"
5
4
 
6
5
  require_relative "topo_volume"
7
6
 
8
7
  module Ogc
9
8
  module Gml
10
- class TopoVolumeProperty < Shale::Mapper
11
- attribute :owns, Shale::Type::Boolean, default: -> { "false" }
9
+ class TopoVolumeProperty < Lutaml::Model::Serializable
10
+ attribute :owns, :boolean, default: -> { false }
12
11
  attribute :topo_volume, TopoVolume
13
12
 
14
13
  xml do
@@ -1,7 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # --- transformation_type.rb ---
4
- require "shale"
3
+ require "lutaml/model"
5
4
 
6
5
  require_relative "abstract_general_parameter_value_property"
7
6
  require_relative "code"
@@ -1,15 +1,14 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # --- transformation_property_type.rb ---
4
- require "shale"
3
+ require "lutaml/model"
5
4
 
6
5
  require_relative "transformation"
7
6
 
8
7
  module Ogc
9
8
  module Gml
10
- class TransformationProperty < Shale::Mapper
11
- attribute :nil_reason, Shale::Type::Value
12
- attribute :remote_schema, Shale::Type::Value
9
+ class TransformationProperty < Lutaml::Model::Serializable
10
+ attribute :nil_reason, :string
11
+ attribute :remote_schema, :string
13
12
  attribute :transformation, Transformation
14
13
 
15
14
  xml do
@@ -1,14 +1,13 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # --- triangle_type.rb ---
4
- require "shale"
3
+ require "lutaml/model"
5
4
 
6
5
  require_relative "shell_property"
7
6
 
8
7
  module Ogc
9
8
  module Gml
10
- class Triangle < Shale::Mapper
11
- attribute :interpolation, Shale::Type::String
9
+ class Triangle < Lutaml::Model::Serializable
10
+ attribute :interpolation, :string
12
11
  attribute :exterior, ShellProperty
13
12
 
14
13
  xml do
@@ -1,7 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # --- unit_definition_type.rb ---
4
- require "shale"
3
+ require "lutaml/model"
5
4
 
6
5
  require_relative "code"
7
6
  require_relative "code_with_authority"
@@ -13,7 +12,7 @@ require_relative "abstract_topology"
13
12
  module Ogc
14
13
  module Gml
15
14
  class UnitDefinition < AbstractTopology
16
- attribute :remarks, Shale::Type::String
15
+ attribute :remarks, :string
17
16
  attribute :quantity_type, StringOrRef
18
17
  attribute :quantity_type_reference, Reference
19
18
  attribute :catalog_symbol, Code
@@ -1,12 +1,11 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # --- unit_of_measure_type.rb ---
4
- require "shale"
3
+ require "lutaml/model"
5
4
 
6
5
  module Ogc
7
6
  module Gml
8
- class UnitOfMeasure < Shale::Mapper
9
- attribute :uom, Shale::Type::Value
7
+ class UnitOfMeasure < Lutaml::Model::Serializable
8
+ attribute :uom, :string
10
9
 
11
10
  xml do
12
11
  root "unitOfMeasure"
@@ -1,7 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # --- user_defined_cs_type.rb ---
4
- require "shale"
3
+ require "lutaml/model"
5
4
  require_relative "abstract_coordinate_system"
6
5
 
7
6
  module Ogc
@@ -1,15 +1,14 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # --- user_defined_cs_property_type.rb ---
4
- require "shale"
3
+ require "lutaml/model"
5
4
 
6
5
  require_relative "user_defined_cs"
7
6
 
8
7
  module Ogc
9
8
  module Gml
10
- class UserDefinedCSProperty < Shale::Mapper
11
- attribute :nil_reason, Shale::Type::Value
12
- attribute :remote_schema, Shale::Type::Value
9
+ class UserDefinedCSProperty < Lutaml::Model::Serializable
10
+ attribute :nil_reason, :string
11
+ attribute :remote_schema, :string
13
12
  attribute :user_defined_cs, UserDefinedCS
14
13
 
15
14
  xml do
@@ -1,7 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # --- value_array_type.rb ---
4
- require "shale"
3
+ require "lutaml/model"
5
4
 
6
5
  require_relative "code"
7
6
  require_relative "code_with_authority"
@@ -12,13 +11,13 @@ require_relative "value_property"
12
11
 
13
12
  module Ogc
14
13
  module Gml
15
- class ValueArray < Shale::Mapper
16
- attribute :id, Shale::Type::Value
17
- attribute :aggregation_type, Shale::Type::String
18
- attribute :code_space, Shale::Type::Value
19
- attribute :uom, Shale::Type::Value
14
+ class ValueArray < Lutaml::Model::Serializable
15
+ attribute :id, :string
16
+ attribute :aggregation_type, :string
17
+ attribute :code_space, :string
18
+ attribute :uom, :string
20
19
  attribute :meta_data_property, MetaDataProperty, collection: true
21
- attribute :description, Shale::Type::String
20
+ attribute :description, :string
22
21
  attribute :description_reference, Reference
23
22
  attribute :identifier, CodeWithAuthority
24
23
  attribute :name, Code, collection: true
@@ -1,19 +1,18 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # --- value_array_property_type.rb ---
4
- require "shale"
3
+ require "lutaml/model"
5
4
 
6
5
  require_relative "abstract_geometry"
7
6
  require_relative "abstract_time_object"
8
7
 
9
8
  module Ogc
10
9
  module Gml
11
- class ValueArrayProperty < Shale::Mapper
12
- attribute :owns, Shale::Type::Boolean, default: -> { "false" }
13
- attribute :abstract_value, Shale::Type::Value, collection: true
10
+ class ValueArrayProperty < Lutaml::Model::Serializable
11
+ attribute :owns, :boolean, default: -> { false }
12
+ attribute :abstract_value, :string, collection: true
14
13
  attribute :abstract_geometry, AbstractGeometry, collection: true
15
14
  attribute :abstract_time_object, AbstractTimeObject, collection: true
16
- attribute :null, Shale::Type::Value, collection: true
15
+ attribute :null, :string, collection: true
17
16
 
18
17
  xml do
19
18
  root "valueComponents"
@@ -1,21 +1,20 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # --- value_property_type.rb ---
4
- require "shale"
3
+ require "lutaml/model"
5
4
 
6
5
  require_relative "abstract_geometry"
7
6
  require_relative "abstract_time_object"
8
7
 
9
8
  module Ogc
10
9
  module Gml
11
- class ValueProperty < Shale::Mapper
12
- attribute :nil_reason, Shale::Type::Value
13
- attribute :remote_schema, Shale::Type::Value
14
- attribute :owns, Shale::Type::Boolean, default: -> { "false" }
15
- attribute :abstract_value, Shale::Type::Value
10
+ class ValueProperty < Lutaml::Model::Serializable
11
+ attribute :nil_reason, :string
12
+ attribute :remote_schema, :string
13
+ attribute :owns, :boolean, default: -> { false }
14
+ attribute :abstract_value, :string
16
15
  attribute :abstract_geometry, AbstractGeometry
17
16
  attribute :abstract_time_object, AbstractTimeObject
18
- attribute :null, Shale::Type::Value
17
+ attribute :null, :string
19
18
 
20
19
  xml do
21
20
  root "valueComponent"
@@ -1,13 +1,12 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # --- vector_type.rb ---
4
- require "shale"
3
+ require "lutaml/model"
5
4
 
6
5
  require_relative "direct_position"
7
6
 
8
7
  module Ogc
9
8
  module Gml
10
- class Vector < Shale::Mapper
9
+ class Vector < Lutaml::Model::Serializable
11
10
  attribute :content, DirectPosition
12
11
 
13
12
  xml do
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Ogc
4
4
  module Gml
5
- VERSION = "1.0.0"
5
+ VERSION = "1.0.1"
6
6
  end
7
7
  end
@@ -1,7 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # --- vertical_crs_type.rb ---
4
- require "shale"
3
+ require "lutaml/model"
5
4
  require_relative "vertical_cs_property"
6
5
  require_relative "vertical_datum_property"
7
6
  require_relative "abstract_crs"
@@ -1,15 +1,14 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # --- vertical_crs_property_type.rb ---
4
- require "shale"
3
+ require "lutaml/model"
5
4
 
6
5
  require_relative "vertical_crs"
7
6
 
8
7
  module Ogc
9
8
  module Gml
10
- class VerticalCRSProperty < Shale::Mapper
11
- attribute :nil_reason, Shale::Type::Value
12
- attribute :remote_schema, Shale::Type::Value
9
+ class VerticalCRSProperty < Lutaml::Model::Serializable
10
+ attribute :nil_reason, :string
11
+ attribute :remote_schema, :string
13
12
  attribute :vertical_crs, VerticalCRS
14
13
 
15
14
  xml do
@@ -1,7 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # --- vertical_cs_type.rb ---
4
- require "shale"
3
+ require "lutaml/model"
5
4
  require_relative "abstract_coordinate_system"
6
5
 
7
6
  module Ogc
@@ -1,15 +1,14 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # --- vertical_cs_property_type.rb ---
4
- require "shale"
3
+ require "lutaml/model"
5
4
 
6
5
  require_relative "vertical_cs"
7
6
 
8
7
  module Ogc
9
8
  module Gml
10
- class VerticalCSProperty < Shale::Mapper
11
- attribute :nil_reason, Shale::Type::Value
12
- attribute :remote_schema, Shale::Type::Value
9
+ class VerticalCSProperty < Lutaml::Model::Serializable
10
+ attribute :nil_reason, :string
11
+ attribute :remote_schema, :string
13
12
  attribute :vertical_cs, VerticalCS
14
13
 
15
14
  xml do
@@ -1,7 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # --- vertical_datum_type.rb ---
4
- require "shale"
3
+ require "lutaml/model"
5
4
  require_relative "abstract_datum"
6
5
 
7
6
  module Ogc
@@ -1,15 +1,14 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # --- vertical_datum_property_type.rb ---
4
- require "shale"
3
+ require "lutaml/model"
5
4
 
6
5
  require_relative "vertical_datum"
7
6
 
8
7
  module Ogc
9
8
  module Gml
10
- class VerticalDatumProperty < Shale::Mapper
11
- attribute :nil_reason, Shale::Type::Value
12
- attribute :remote_schema, Shale::Type::Value
9
+ class VerticalDatumProperty < Lutaml::Model::Serializable
10
+ attribute :nil_reason, :string
11
+ attribute :remote_schema, :string
13
12
  attribute :vertical_datum, VerticalDatum
14
13
 
15
14
  xml do
data/lib/ogc/gml.rb CHANGED
@@ -1,18 +1,22 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require "lutaml/model"
4
+
5
+ Lutaml::Model::Config.configure do |config|
6
+ require "lutaml/model/xml_adapter/nokogiri_adapter"
7
+ config.xml_adapter = Lutaml::Model::XmlAdapter::NokogiriAdapter
8
+ end
9
+
3
10
  require_relative "gml/version"
4
11
 
5
12
  module Ogc
6
13
  module Gml
7
14
  class Error < StandardError; end
15
+
8
16
  # Your code goes here...
9
17
  end
10
18
  end
11
19
 
12
- require 'shale'
13
- require 'shale/adapter/nokogiri'
14
- Shale.xml_adapter = Shale::Adapter::Nokogiri
15
-
16
20
  require_relative "gml/abstract_continuous_coverage"
17
21
  require_relative "gml/abstract_coordinate_operation"
18
22
  require_relative "gml/abstract_coordinate_system"
@@ -330,7 +334,6 @@ require_relative "gml/value_array_property"
330
334
  require_relative "gml/value_array"
331
335
  require_relative "gml/value_property"
332
336
  require_relative "gml/vector"
333
- require_relative "gml/version"
334
337
  require_relative "gml/vertical_crs_property"
335
338
  require_relative "gml/vertical_crs"
336
339
  require_relative "gml/vertical_cs_property"
data/ogc-gml.gemspec CHANGED
@@ -4,14 +4,14 @@ require_relative "lib/ogc/gml/version"
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "ogc-gml"
7
- spec.version = Ogc::Gml::VERSION
8
- spec.authors = ["Ribose Inc."]
9
- spec.email = ["open.source@ribose.com'"]
7
+ spec.version = Ogc::Gml::VERSION
8
+ spec.authors = ["Ribose Inc."]
9
+ spec.email = ["open.source@ribose.com'"]
10
10
 
11
- spec.summary = "OGC GML data model parser"
12
- spec.description = "OGC GML data model parser"
13
- spec.homepage = "https://github.com/lutaml/ogc-gml"
14
- spec.license = "MIT"
11
+ spec.summary = "OGC GML data model parser"
12
+ spec.description = "OGC GML data model parser"
13
+ spec.homepage = "https://github.com/lutaml/ogc-gml"
14
+ spec.license = "MIT"
15
15
 
16
16
  spec.metadata["homepage_uri"] = spec.homepage
17
17
  spec.metadata["source_code_uri"] = spec.homepage
@@ -25,14 +25,14 @@ Gem::Specification.new do |spec|
25
25
  .split("\x0")
26
26
  .reject { |f| f.match(%r{^(test|spec|features)/}) }
27
27
  end
28
- spec.bindir = "exe"
29
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
28
+ spec.bindir = "exe"
29
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
30
30
  spec.require_paths = ["lib"]
31
31
 
32
32
  spec.required_ruby_version = ">= 2.7.0"
33
33
 
34
+ spec.add_runtime_dependency "lutaml-model"
34
35
  spec.add_runtime_dependency "nokogiri"
35
- spec.add_runtime_dependency "shale"
36
36
 
37
37
  spec.add_development_dependency "equivalent-xml"
38
38
  spec.add_development_dependency "pry", "~> 0.12.2"
metadata CHANGED
@@ -1,17 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ogc-gml
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-08-15 00:00:00.000000000 Z
11
+ date: 2024-08-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: nokogiri
14
+ name: lutaml-model
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - ">="
@@ -25,7 +25,7 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
- name: shale
28
+ name: nokogiri
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
@@ -129,16 +129,16 @@ executables: []
129
129
  extensions: []
130
130
  extra_rdoc_files: []
131
131
  files:
132
- - ".github/workflows/main.yml"
133
132
  - ".github/workflows/rake.yml"
134
133
  - ".github/workflows/release.yml"
135
134
  - ".gitignore"
136
135
  - ".gitmodules"
137
136
  - ".rspec"
138
137
  - ".rubocop.yml"
138
+ - ".rubocop_todo.yml"
139
139
  - CODE_OF_CONDUCT.md
140
140
  - Gemfile
141
- - README.md
141
+ - README.adoc
142
142
  - Rakefile
143
143
  - bin/console
144
144
  - bin/setup
@@ -1,27 +0,0 @@
1
- name: Ruby
2
-
3
- on:
4
- push:
5
- branches:
6
- - main
7
-
8
- pull_request:
9
-
10
- jobs:
11
- build:
12
- runs-on: ubuntu-latest
13
- name: Ruby ${{ matrix.ruby }}
14
- strategy:
15
- matrix:
16
- ruby:
17
- - '3.2.2'
18
-
19
- steps:
20
- - uses: actions/checkout@v4
21
- - name: Set up Ruby
22
- uses: ruby/setup-ruby@v1
23
- with:
24
- ruby-version: ${{ matrix.ruby }}
25
- bundler-cache: true
26
- - name: Run the default task
27
- run: bundle exec rake
data/README.md DELETED
@@ -1,35 +0,0 @@
1
- # Ogc::Gml
2
-
3
- TODO: Delete this and the text below, and describe your gem
4
-
5
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/ogc/gml`. To experiment with that code, run `bin/console` for an interactive prompt.
6
-
7
- ## Installation
8
-
9
- TODO: Replace `UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG` with your gem name right after releasing it to RubyGems.org. Please do not do it earlier due to security reasons. Alternatively, replace this section with instructions to install your gem from git if you don't plan to release to RubyGems.org.
10
-
11
- Install the gem and add to the application's Gemfile by executing:
12
-
13
- $ bundle add UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
14
-
15
- If bundler is not being used to manage dependencies, install the gem by executing:
16
-
17
- $ gem install UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
18
-
19
- ## Usage
20
-
21
- TODO: Write usage instructions here
22
-
23
- ## Development
24
-
25
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
26
-
27
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
28
-
29
- ## Contributing
30
-
31
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/ogc-gml. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/ogc-gml/blob/main/CODE_OF_CONDUCT.md).
32
-
33
- ## Code of Conduct
34
-
35
- Everyone interacting in the Ogc::Gml project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/ogc-gml/blob/main/CODE_OF_CONDUCT.md).