ogc-gml 1.0.4 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (338) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/release.yml +5 -0
  3. data/.rubocop.yml +3 -9
  4. data/.rubocop_todo.yml +79 -8
  5. data/CLAUDE.md +139 -0
  6. data/Gemfile +1 -3
  7. data/README.adoc +5 -4
  8. data/lib/ogc/gml/abstract_continuous_coverage.rb +3 -5
  9. data/lib/ogc/gml/abstract_coordinate_operation.rb +7 -9
  10. data/lib/ogc/gml/abstract_coordinate_system.rb +4 -10
  11. data/lib/ogc/gml/abstract_coverage.rb +3 -8
  12. data/lib/ogc/gml/abstract_crs.rb +3 -9
  13. data/lib/ogc/gml/abstract_curve.rb +3 -4
  14. data/lib/ogc/gml/abstract_curve_segment.rb +2 -2
  15. data/lib/ogc/gml/abstract_datum.rb +3 -9
  16. data/lib/ogc/gml/abstract_feature.rb +3 -11
  17. data/lib/ogc/gml/abstract_feature_collection.rb +3 -8
  18. data/lib/ogc/gml/abstract_general_conversion.rb +7 -12
  19. data/lib/ogc/gml/abstract_general_derived_crs.rb +3 -5
  20. data/lib/ogc/gml/abstract_general_operation_parameter.rb +3 -4
  21. data/lib/ogc/gml/abstract_general_operation_parameter_property.rb +8 -8
  22. data/lib/ogc/gml/abstract_general_parameter_value.rb +2 -2
  23. data/lib/ogc/gml/abstract_general_parameter_value_property.rb +4 -5
  24. data/lib/ogc/gml/abstract_general_transformation.rb +5 -5
  25. data/lib/ogc/gml/abstract_geometric_aggregate.rb +3 -4
  26. data/lib/ogc/gml/abstract_geometric_primitive.rb +4 -9
  27. data/lib/ogc/gml/abstract_geometry.rb +3 -4
  28. data/lib/ogc/gml/abstract_gml.rb +3 -9
  29. data/lib/ogc/gml/abstract_gridded_surface.rb +2 -2
  30. data/lib/ogc/gml/abstract_meta_data.rb +4 -4
  31. data/lib/ogc/gml/abstract_parametric_curve_surface.rb +2 -2
  32. data/lib/ogc/gml/abstract_ring.rb +2 -2
  33. data/lib/ogc/gml/abstract_ring_property.rb +2 -4
  34. data/lib/ogc/gml/abstract_solid.rb +3 -4
  35. data/lib/ogc/gml/abstract_surface.rb +3 -4
  36. data/lib/ogc/gml/abstract_surface_patch.rb +2 -2
  37. data/lib/ogc/gml/abstract_time_complex.rb +3 -9
  38. data/lib/ogc/gml/abstract_time_geometric_primitive.rb +4 -10
  39. data/lib/ogc/gml/abstract_time_object.rb +3 -9
  40. data/lib/ogc/gml/abstract_time_primitive.rb +3 -7
  41. data/lib/ogc/gml/abstract_time_slice.rb +3 -11
  42. data/lib/ogc/gml/abstract_time_topology_primitive.rb +3 -10
  43. data/lib/ogc/gml/abstract_topo_primitive.rb +3 -9
  44. data/lib/ogc/gml/abstract_topology.rb +4 -8
  45. data/lib/ogc/gml/affine_cs.rb +3 -4
  46. data/lib/ogc/gml/affine_cs_property.rb +4 -6
  47. data/lib/ogc/gml/affine_placement.rb +2 -5
  48. data/lib/ogc/gml/angle.rb +2 -5
  49. data/lib/ogc/gml/arc.rb +2 -3
  50. data/lib/ogc/gml/arc_by_bulge.rb +2 -4
  51. data/lib/ogc/gml/arc_by_center_point.rb +2 -7
  52. data/lib/ogc/gml/arc_string.rb +2 -8
  53. data/lib/ogc/gml/arc_string_by_bulge.rb +2 -4
  54. data/lib/ogc/gml/array.rb +3 -10
  55. data/lib/ogc/gml/array_association.rb +2 -2
  56. data/lib/ogc/gml/association_role.rb +4 -4
  57. data/lib/ogc/gml/b_spline.rb +2 -3
  58. data/lib/ogc/gml/bag.rb +3 -11
  59. data/lib/ogc/gml/base_unit.rb +3 -10
  60. data/lib/ogc/gml/bezier.rb +2 -8
  61. data/lib/ogc/gml/boolean.rb +2 -2
  62. data/lib/ogc/gml/bounding_shape.rb +2 -4
  63. data/lib/ogc/gml/cartesian_cs.rb +3 -4
  64. data/lib/ogc/gml/cartesian_cs_property.rb +4 -6
  65. data/lib/ogc/gml/category.rb +2 -4
  66. data/lib/ogc/gml/category_extent.rb +2 -4
  67. data/lib/ogc/gml/circle.rb +2 -3
  68. data/lib/ogc/gml/circle_by_center_point.rb +2 -9
  69. data/lib/ogc/gml/clothoid.rb +2 -5
  70. data/lib/ogc/gml/code.rb +2 -2
  71. data/lib/ogc/gml/code_or_nil_reason_list.rb +2 -2
  72. data/lib/ogc/gml/code_with_authority.rb +2 -4
  73. data/lib/ogc/gml/composite_curve.rb +3 -5
  74. data/lib/ogc/gml/composite_solid.rb +3 -5
  75. data/lib/ogc/gml/composite_surface.rb +3 -5
  76. data/lib/ogc/gml/composite_value.rb +4 -11
  77. data/lib/ogc/gml/compound_crs.rb +3 -5
  78. data/lib/ogc/gml/compound_crs_property.rb +4 -6
  79. data/lib/ogc/gml/concatenated_operation.rb +6 -12
  80. data/lib/ogc/gml/concatenated_operation_property.rb +4 -6
  81. data/lib/ogc/gml/cone.rb +2 -3
  82. data/lib/ogc/gml/control_point.rb +2 -6
  83. data/lib/ogc/gml/conventional_unit.rb +7 -14
  84. data/lib/ogc/gml/conversion.rb +9 -10
  85. data/lib/ogc/gml/conversion_property.rb +4 -6
  86. data/lib/ogc/gml/conversion_to_preferred_unit.rb +2 -4
  87. data/lib/ogc/gml/coordinate_operation_accuracy.rb +4 -6
  88. data/lib/ogc/gml/coordinate_operation_property.rb +6 -7
  89. data/lib/ogc/gml/coordinate_system_axis.rb +4 -9
  90. data/lib/ogc/gml/coordinate_system_axis_property.rb +4 -6
  91. data/lib/ogc/gml/coordinate_system_property.rb +4 -6
  92. data/lib/ogc/gml/coordinates.rb +2 -2
  93. data/lib/ogc/gml/count.rb +2 -2
  94. data/lib/ogc/gml/coverage_function.rb +2 -6
  95. data/lib/ogc/gml/crs_property.rb +4 -6
  96. data/lib/ogc/gml/cubic_spline.rb +2 -9
  97. data/lib/ogc/gml/curve.rb +3 -5
  98. data/lib/ogc/gml/curve_array_property.rb +2 -5
  99. data/lib/ogc/gml/curve_property.rb +7 -12
  100. data/lib/ogc/gml/curve_segment_array_property.rb +3 -8
  101. data/lib/ogc/gml/cylinder.rb +2 -3
  102. data/lib/ogc/gml/cylindrical_cs.rb +3 -4
  103. data/lib/ogc/gml/cylindrical_cs_property.rb +4 -6
  104. data/lib/ogc/gml/data_block.rb +4 -6
  105. data/lib/ogc/gml/datum_property.rb +4 -6
  106. data/lib/ogc/gml/definition.rb +3 -9
  107. data/lib/ogc/gml/definition_proxy.rb +3 -9
  108. data/lib/ogc/gml/degrees.rb +2 -2
  109. data/lib/ogc/gml/derivation_unit_term.rb +2 -2
  110. data/lib/ogc/gml/derived_crs.rb +3 -7
  111. data/lib/ogc/gml/derived_crs_property.rb +4 -6
  112. data/lib/ogc/gml/derived_unit.rb +3 -11
  113. data/lib/ogc/gml/dictionary.rb +19 -19
  114. data/lib/ogc/gml/dictionary_entry.rb +9 -11
  115. data/lib/ogc/gml/direct_position.rb +2 -2
  116. data/lib/ogc/gml/direct_position_list.rb +2 -2
  117. data/lib/ogc/gml/directed_edge_property.rb +4 -6
  118. data/lib/ogc/gml/directed_face_property.rb +4 -6
  119. data/lib/ogc/gml/directed_node_property.rb +4 -6
  120. data/lib/ogc/gml/directed_observation.rb +3 -16
  121. data/lib/ogc/gml/directed_observation_at_distance.rb +3 -17
  122. data/lib/ogc/gml/directed_topo_solid_property.rb +4 -6
  123. data/lib/ogc/gml/direction_description.rb +2 -5
  124. data/lib/ogc/gml/direction_property.rb +4 -9
  125. data/lib/ogc/gml/direction_vector.rb +2 -5
  126. data/lib/ogc/gml/discrete_coverage.rb +3 -4
  127. data/lib/ogc/gml/dms_angle.rb +2 -4
  128. data/lib/ogc/gml/domain_of_validity.rb +4 -6
  129. data/lib/ogc/gml/domain_set.rb +4 -7
  130. data/lib/ogc/gml/dynamic_feature.rb +3 -14
  131. data/lib/ogc/gml/dynamic_feature_collection.rb +3 -15
  132. data/lib/ogc/gml/dynamic_feature_member.rb +4 -6
  133. data/lib/ogc/gml/edge.rb +4 -13
  134. data/lib/ogc/gml/ellipsoid.rb +3 -11
  135. data/lib/ogc/gml/ellipsoid_property.rb +4 -6
  136. data/lib/ogc/gml/ellipsoidal_cs.rb +3 -4
  137. data/lib/ogc/gml/ellipsoidal_cs_property.rb +4 -6
  138. data/lib/ogc/gml/engineering_crs.rb +3 -13
  139. data/lib/ogc/gml/engineering_crs_property.rb +4 -6
  140. data/lib/ogc/gml/engineering_datum.rb +3 -4
  141. data/lib/ogc/gml/engineering_datum_property.rb +4 -6
  142. data/lib/ogc/gml/envelope.rb +2 -5
  143. data/lib/ogc/gml/envelope_with_time_period.rb +2 -6
  144. data/lib/ogc/gml/face.rb +6 -14
  145. data/lib/ogc/gml/face_or_topo_solid_property.rb +4 -10
  146. data/lib/ogc/gml/feature_array_property.rb +2 -4
  147. data/lib/ogc/gml/feature_collection.rb +3 -4
  148. data/lib/ogc/gml/feature_property.rb +4 -6
  149. data/lib/ogc/gml/file.rb +2 -5
  150. data/lib/ogc/gml/formula.rb +2 -2
  151. data/lib/ogc/gml/formula_citation.rb +4 -6
  152. data/lib/ogc/gml/general_conversion_property.rb +6 -7
  153. data/lib/ogc/gml/general_transformation_property.rb +6 -7
  154. data/lib/ogc/gml/generic_meta_data.rb +4 -4
  155. data/lib/ogc/gml/geocentric_crs.rb +3 -7
  156. data/lib/ogc/gml/geocentric_crs_property.rb +4 -6
  157. data/lib/ogc/gml/geodesic.rb +2 -7
  158. data/lib/ogc/gml/geodesic_string.rb +2 -7
  159. data/lib/ogc/gml/geodetic_crs.rb +3 -9
  160. data/lib/ogc/gml/geodetic_crs_property.rb +4 -6
  161. data/lib/ogc/gml/geodetic_datum.rb +3 -6
  162. data/lib/ogc/gml/geodetic_datum_property.rb +4 -6
  163. data/lib/ogc/gml/geographic_crs.rb +3 -6
  164. data/lib/ogc/gml/geographic_crs_property.rb +4 -6
  165. data/lib/ogc/gml/geometric_complex.rb +3 -5
  166. data/lib/ogc/gml/geometric_primitive_property.rb +6 -7
  167. data/lib/ogc/gml/geometry_array_property.rb +2 -4
  168. data/lib/ogc/gml/geometry_property.rb +4 -6
  169. data/lib/ogc/gml/grid.rb +4 -10
  170. data/lib/ogc/gml/grid_envelope.rb +2 -2
  171. data/lib/ogc/gml/grid_function.rb +2 -4
  172. data/lib/ogc/gml/grid_limits.rb +2 -4
  173. data/lib/ogc/gml/history_property.rb +2 -4
  174. data/lib/ogc/gml/identifier.rb +13 -0
  175. data/lib/ogc/gml/image_crs.rb +3 -8
  176. data/lib/ogc/gml/image_crs_property.rb +4 -6
  177. data/lib/ogc/gml/image_datum.rb +3 -4
  178. data/lib/ogc/gml/image_datum_property.rb +4 -6
  179. data/lib/ogc/gml/indirect_entry.rb +2 -4
  180. data/lib/ogc/gml/inline_property.rb +2 -2
  181. data/lib/ogc/gml/knot.rb +2 -2
  182. data/lib/ogc/gml/knot_property.rb +2 -4
  183. data/lib/ogc/gml/length.rb +2 -5
  184. data/lib/ogc/gml/line_string.rb +3 -9
  185. data/lib/ogc/gml/line_string_segment.rb +2 -8
  186. data/lib/ogc/gml/line_string_segment_array_property.rb +2 -4
  187. data/lib/ogc/gml/linear_cs.rb +3 -4
  188. data/lib/ogc/gml/linear_cs_property.rb +4 -6
  189. data/lib/ogc/gml/linear_ring.rb +2 -7
  190. data/lib/ogc/gml/location_property.rb +4 -8
  191. data/lib/ogc/gml/mapping_rule.rb +2 -4
  192. data/lib/ogc/gml/measure.rb +2 -2
  193. data/lib/ogc/gml/measure_list.rb +2 -2
  194. data/lib/ogc/gml/measure_or_nil_reason_list.rb +2 -2
  195. data/lib/ogc/gml/meta_data_property.rb +4 -6
  196. data/lib/ogc/gml/moving_object_status.rb +3 -15
  197. data/lib/ogc/gml/multi_curve.rb +3 -5
  198. data/lib/ogc/gml/multi_curve_property.rb +4 -6
  199. data/lib/ogc/gml/multi_geometry.rb +3 -6
  200. data/lib/ogc/gml/multi_geometry_property.rb +6 -7
  201. data/lib/ogc/gml/multi_point.rb +3 -6
  202. data/lib/ogc/gml/multi_point_property.rb +4 -6
  203. data/lib/ogc/gml/multi_solid.rb +3 -6
  204. data/lib/ogc/gml/multi_solid_property.rb +4 -6
  205. data/lib/ogc/gml/multi_surface.rb +3 -6
  206. data/lib/ogc/gml/multi_surface_property.rb +4 -6
  207. data/lib/ogc/gml/namespace.rb +9 -0
  208. data/lib/ogc/gml/namespaces/gml_31_namespace.rb +14 -0
  209. data/lib/ogc/gml/namespaces/gml_32_namespace.rb +14 -0
  210. data/lib/ogc/gml/node.rb +4 -15
  211. data/lib/ogc/gml/node_or_edge_property.rb +4 -10
  212. data/lib/ogc/gml/node_property.rb +4 -6
  213. data/lib/ogc/gml/oblique_cartesian_cs.rb +3 -4
  214. data/lib/ogc/gml/oblique_cartesian_cs_property.rb +4 -6
  215. data/lib/ogc/gml/observation.rb +3 -15
  216. data/lib/ogc/gml/offset_curve.rb +2 -7
  217. data/lib/ogc/gml/operation_method.rb +5 -12
  218. data/lib/ogc/gml/operation_method_property.rb +4 -6
  219. data/lib/ogc/gml/operation_parameter.rb +3 -4
  220. data/lib/ogc/gml/operation_parameter_group.rb +5 -6
  221. data/lib/ogc/gml/operation_parameter_group_property.rb +4 -6
  222. data/lib/ogc/gml/operation_parameter_property.rb +4 -6
  223. data/lib/ogc/gml/operation_property.rb +4 -6
  224. data/lib/ogc/gml/orientable_curve.rb +4 -13
  225. data/lib/ogc/gml/orientable_surface.rb +4 -10
  226. data/lib/ogc/gml/parameter_value.rb +2 -7
  227. data/lib/ogc/gml/parameter_value_group.rb +4 -6
  228. data/lib/ogc/gml/pass_through_operation.rb +5 -13
  229. data/lib/ogc/gml/pass_through_operation_property.rb +4 -6
  230. data/lib/ogc/gml/point.rb +3 -5
  231. data/lib/ogc/gml/point_array_property.rb +2 -4
  232. data/lib/ogc/gml/point_property.rb +4 -6
  233. data/lib/ogc/gml/polar_cs.rb +3 -4
  234. data/lib/ogc/gml/polar_cs_property.rb +4 -6
  235. data/lib/ogc/gml/polygon.rb +3 -6
  236. data/lib/ogc/gml/polygon_patch.rb +2 -4
  237. data/lib/ogc/gml/prime_meridian.rb +3 -10
  238. data/lib/ogc/gml/prime_meridian_property.rb +4 -6
  239. data/lib/ogc/gml/priority_location_property.rb +4 -8
  240. data/lib/ogc/gml/procedure_property.rb +4 -6
  241. data/lib/ogc/gml/projected_crs.rb +3 -7
  242. data/lib/ogc/gml/projected_crs_property.rb +4 -6
  243. data/lib/ogc/gml/quantity.rb +2 -4
  244. data/lib/ogc/gml/quantity_extent.rb +2 -4
  245. data/lib/ogc/gml/range_set.rb +2 -6
  246. data/lib/ogc/gml/rectangle.rb +2 -4
  247. data/lib/ogc/gml/rectified_grid.rb +4 -12
  248. data/lib/ogc/gml/ref_location.rb +2 -4
  249. data/lib/ogc/gml/reference.rb +10 -4
  250. data/lib/ogc/gml/related_time.rb +4 -6
  251. data/lib/ogc/gml/result.rb +4 -4
  252. data/lib/ogc/gml/ring.rb +2 -3
  253. data/lib/ogc/gml/second_defining_parameter1.rb +2 -4
  254. data/lib/ogc/gml/second_defining_parameter2.rb +2 -5
  255. data/lib/ogc/gml/sequence_rule.rb +2 -2
  256. data/lib/ogc/gml/shell.rb +2 -6
  257. data/lib/ogc/gml/shell_property.rb +2 -6
  258. data/lib/ogc/gml/single_crs_property.rb +4 -6
  259. data/lib/ogc/gml/single_operation_property.rb +4 -6
  260. data/lib/ogc/gml/solid.rb +3 -5
  261. data/lib/ogc/gml/solid_array_property.rb +2 -4
  262. data/lib/ogc/gml/solid_property.rb +4 -6
  263. data/lib/ogc/gml/sphere.rb +2 -3
  264. data/lib/ogc/gml/spherical_cs.rb +3 -4
  265. data/lib/ogc/gml/spherical_cs_property.rb +4 -6
  266. data/lib/ogc/gml/string_or_ref.rb +4 -4
  267. data/lib/ogc/gml/surface.rb +4 -5
  268. data/lib/ogc/gml/surface_array_property.rb +2 -4
  269. data/lib/ogc/gml/surface_patch_array_property.rb +2 -5
  270. data/lib/ogc/gml/surface_property.rb +4 -7
  271. data/lib/ogc/gml/target_property.rb +4 -7
  272. data/lib/ogc/gml/temporal_crs.rb +3 -7
  273. data/lib/ogc/gml/temporal_crs_property.rb +4 -6
  274. data/lib/ogc/gml/temporal_cs.rb +3 -4
  275. data/lib/ogc/gml/temporal_cs_property.rb +4 -6
  276. data/lib/ogc/gml/temporal_datum.rb +3 -10
  277. data/lib/ogc/gml/temporal_datum_property.rb +4 -6
  278. data/lib/ogc/gml/time_calendar.rb +3 -10
  279. data/lib/ogc/gml/time_calendar_era.rb +3 -11
  280. data/lib/ogc/gml/time_calendar_era_property.rb +4 -6
  281. data/lib/ogc/gml/time_calendar_property.rb +4 -6
  282. data/lib/ogc/gml/time_clock.rb +3 -11
  283. data/lib/ogc/gml/time_coordinate_system.rb +3 -12
  284. data/lib/ogc/gml/time_cs.rb +3 -4
  285. data/lib/ogc/gml/time_cs_property.rb +4 -6
  286. data/lib/ogc/gml/time_edge.rb +3 -12
  287. data/lib/ogc/gml/time_edge_property.rb +4 -6
  288. data/lib/ogc/gml/time_instant.rb +3 -5
  289. data/lib/ogc/gml/time_instant_property.rb +4 -6
  290. data/lib/ogc/gml/time_interval_length.rb +2 -2
  291. data/lib/ogc/gml/time_node.rb +3 -9
  292. data/lib/ogc/gml/time_node_property.rb +4 -6
  293. data/lib/ogc/gml/time_ordinal_era.rb +3 -12
  294. data/lib/ogc/gml/time_ordinal_era_property.rb +4 -6
  295. data/lib/ogc/gml/time_ordinal_reference_system.rb +3 -10
  296. data/lib/ogc/gml/time_period.rb +3 -7
  297. data/lib/ogc/gml/time_period_property.rb +4 -6
  298. data/lib/ogc/gml/time_position.rb +2 -2
  299. data/lib/ogc/gml/time_primitive_property.rb +4 -6
  300. data/lib/ogc/gml/time_reference_system.rb +3 -9
  301. data/lib/ogc/gml/time_topology_complex.rb +3 -10
  302. data/lib/ogc/gml/time_topology_primitive_property.rb +6 -7
  303. data/lib/ogc/gml/tin.rb +3 -9
  304. data/lib/ogc/gml/topo_complex.rb +4 -15
  305. data/lib/ogc/gml/topo_complex_property.rb +4 -6
  306. data/lib/ogc/gml/topo_curve.rb +4 -10
  307. data/lib/ogc/gml/topo_curve_property.rb +2 -4
  308. data/lib/ogc/gml/topo_point.rb +3 -10
  309. data/lib/ogc/gml/topo_point_property.rb +2 -4
  310. data/lib/ogc/gml/topo_primitive_array_association.rb +4 -5
  311. data/lib/ogc/gml/topo_primitive_member.rb +4 -6
  312. data/lib/ogc/gml/topo_solid.rb +4 -15
  313. data/lib/ogc/gml/topo_solid_property.rb +4 -6
  314. data/lib/ogc/gml/topo_surface.rb +4 -10
  315. data/lib/ogc/gml/topo_surface_property.rb +2 -4
  316. data/lib/ogc/gml/topo_volume.rb +6 -11
  317. data/lib/ogc/gml/topo_volume_property.rb +2 -4
  318. data/lib/ogc/gml/transformation.rb +9 -17
  319. data/lib/ogc/gml/transformation_property.rb +4 -6
  320. data/lib/ogc/gml/triangle.rb +2 -4
  321. data/lib/ogc/gml/unit_definition.rb +3 -10
  322. data/lib/ogc/gml/unit_of_measure.rb +2 -2
  323. data/lib/ogc/gml/user_defined_cs.rb +3 -4
  324. data/lib/ogc/gml/user_defined_cs_property.rb +4 -6
  325. data/lib/ogc/gml/value_array.rb +4 -11
  326. data/lib/ogc/gml/value_array_property.rb +2 -5
  327. data/lib/ogc/gml/value_property.rb +4 -7
  328. data/lib/ogc/gml/vector.rb +2 -4
  329. data/lib/ogc/gml/version.rb +1 -1
  330. data/lib/ogc/gml/vertical_crs.rb +3 -6
  331. data/lib/ogc/gml/vertical_crs_property.rb +4 -6
  332. data/lib/ogc/gml/vertical_cs.rb +3 -4
  333. data/lib/ogc/gml/vertical_cs_property.rb +4 -6
  334. data/lib/ogc/gml/vertical_datum.rb +3 -4
  335. data/lib/ogc/gml/vertical_datum_property.rb +4 -6
  336. data/lib/ogc/gml.rb +661 -327
  337. data/ogc-gml.gemspec +3 -1
  338. metadata +9 -4
@@ -2,21 +2,19 @@
2
2
 
3
3
  require "lutaml/model"
4
4
 
5
- require_relative "string_or_ref"
6
-
7
5
  module Ogc
8
6
  module Gml
9
7
  class FormulaCitation < Lutaml::Model::Serializable
10
8
  attribute :nil_reason, :string
11
- attribute :remote_schema, :string
9
+ attribute :remote_schema, RemoteSchema
12
10
  attribute :reference_event, StringOrRef
13
11
 
14
12
  xml do
15
- root "formulaCitation"
16
- namespace "http://www.opengis.net/gml/3.2", "gml"
13
+ element "formulaCitation"
14
+ namespace Namespace
17
15
 
18
16
  map_attribute "nilReason", to: :nil_reason
19
- map_attribute "remoteSchema", to: :remote_schema, prefix: "gml", namespace: "http://www.opengis.net/gml/3.2"
17
+ map_attribute "remoteSchema", to: :remote_schema
20
18
  map_element "referenceEvent", to: :reference_event
21
19
  end
22
20
  end
@@ -2,22 +2,21 @@
2
2
 
3
3
  require "lutaml/model"
4
4
 
5
- require_relative "abstract_general_conversion"
6
-
7
5
  module Ogc
8
6
  module Gml
9
7
  class GeneralConversionProperty < Lutaml::Model::Serializable
10
8
  attribute :nil_reason, :string
11
- attribute :remote_schema, :string
9
+ attribute :remote_schema, RemoteSchema
12
10
  attribute :abstract_general_conversion, AbstractGeneralConversion
13
11
 
14
12
  xml do
15
- root "definedByConversion"
16
- namespace "http://www.opengis.net/gml/3.2", "gml"
13
+ element "definedByConversion"
14
+ namespace Namespace
17
15
 
18
16
  map_attribute "nilReason", to: :nil_reason
19
- map_attribute "remoteSchema", to: :remote_schema, prefix: "gml", namespace: "http://www.opengis.net/gml/3.2"
20
- map_element "AbstractGeneralConversion", to: :abstract_general_conversion
17
+ map_attribute "remoteSchema", to: :remote_schema
18
+ map_element "AbstractGeneralConversion",
19
+ to: :abstract_general_conversion
21
20
  end
22
21
  end
23
22
  end
@@ -2,22 +2,21 @@
2
2
 
3
3
  require "lutaml/model"
4
4
 
5
- require_relative "abstract_general_transformation"
6
-
7
5
  module Ogc
8
6
  module Gml
9
7
  class GeneralTransformationProperty < Lutaml::Model::Serializable
10
8
  attribute :nil_reason, :string
11
- attribute :remote_schema, :string
9
+ attribute :remote_schema, RemoteSchema
12
10
  attribute :abstract_general_transformation, AbstractGeneralTransformation
13
11
 
14
12
  xml do
15
- root "generalTransformationRef"
16
- namespace "http://www.opengis.net/gml/3.2", "gml"
13
+ element "generalTransformationRef"
14
+ namespace Namespace
17
15
 
18
16
  map_attribute "nilReason", to: :nil_reason
19
- map_attribute "remoteSchema", to: :remote_schema, prefix: "gml", namespace: "http://www.opengis.net/gml/3.2"
20
- map_element "AbstractGeneralTransformation", to: :abstract_general_transformation
17
+ map_attribute "remoteSchema", to: :remote_schema
18
+ map_element "AbstractGeneralTransformation",
19
+ to: :abstract_general_transformation
21
20
  end
22
21
  end
23
22
  end
@@ -6,14 +6,14 @@ module Ogc
6
6
  module Gml
7
7
  class GenericMetaData < Lutaml::Model::Serializable
8
8
  attribute :content, :string
9
- attribute :id, :string
9
+ attribute :id, Identifier
10
10
 
11
11
  xml do
12
- root "GenericMetaData"
13
- namespace "http://www.opengis.net/gml/3.2", "gml"
12
+ element "GenericMetaData"
13
+ namespace Namespace
14
14
 
15
15
  map_content to: :content
16
- map_attribute "id", to: :id, prefix: "gml", namespace: "http://www.opengis.net/gml/3.2"
16
+ map_attribute "id", to: :id, form: :qualified
17
17
  end
18
18
  end
19
19
  end
@@ -1,10 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "lutaml/model"
4
- require_relative "cartesian_cs_property"
5
- require_relative "geodetic_datum_property"
6
- require_relative "spherical_cs_property"
7
- require_relative "abstract_crs"
8
4
 
9
5
  module Ogc
10
6
  module Gml
@@ -14,10 +10,10 @@ module Ogc
14
10
  attribute :uses_geodetic_datum, GeodeticDatumProperty
15
11
 
16
12
  xml do
17
- root "GeocentricCRS"
18
- namespace "http://www.opengis.net/gml/3.2", "gml"
13
+ element "GeocentricCRS"
14
+ namespace Namespace
19
15
 
20
- map_attribute "id", to: :id, prefix: "gml", namespace: "http://www.opengis.net/gml/3.2"
16
+ map_attribute "id", to: :id, form: :qualified
21
17
  map_element "metaDataProperty", to: :meta_data_property
22
18
  map_element "description", to: :description
23
19
  map_element "descriptionReference", to: :description_reference
@@ -2,21 +2,19 @@
2
2
 
3
3
  require "lutaml/model"
4
4
 
5
- require_relative "geocentric_crs"
6
-
7
5
  module Ogc
8
6
  module Gml
9
7
  class GeocentricCRSProperty < Lutaml::Model::Serializable
10
8
  attribute :nil_reason, :string
11
- attribute :remote_schema, :string
9
+ attribute :remote_schema, RemoteSchema
12
10
  attribute :geocentric_crs, GeocentricCRS
13
11
 
14
12
  xml do
15
- root "geocentricCRSRef"
16
- namespace "http://www.opengis.net/gml/3.2", "gml"
13
+ element "geocentricCRSRef"
14
+ namespace Namespace
17
15
 
18
16
  map_attribute "nilReason", to: :nil_reason
19
- map_attribute "remoteSchema", to: :remote_schema, prefix: "gml", namespace: "http://www.opengis.net/gml/3.2"
17
+ map_attribute "remoteSchema", to: :remote_schema
20
18
  map_element "GeocentricCRS", to: :geocentric_crs
21
19
  end
22
20
  end
@@ -2,11 +2,6 @@
2
2
 
3
3
  require "lutaml/model"
4
4
 
5
- require_relative "direct_position_list"
6
- require_relative "direct_position"
7
- require_relative "point_property"
8
- require_relative "abstract_curve_segment"
9
-
10
5
  module Ogc
11
6
  module Gml
12
7
  class Geodesic < AbstractCurveSegment
@@ -16,8 +11,8 @@ module Ogc
16
11
  attribute :point_property, PointProperty, collection: true
17
12
 
18
13
  xml do
19
- root "Geodesic"
20
- namespace "http://www.opengis.net/gml/3.2", "gml"
14
+ element "Geodesic"
15
+ namespace Namespace
21
16
 
22
17
  map_attribute "numDerivativesAtStart", to: :num_derivatives_at_start
23
18
  map_attribute "numDerivativesAtEnd", to: :num_derivatives_at_end
@@ -2,11 +2,6 @@
2
2
 
3
3
  require "lutaml/model"
4
4
 
5
- require_relative "direct_position_list"
6
- require_relative "direct_position"
7
- require_relative "point_property"
8
- require_relative "abstract_curve_segment"
9
-
10
5
  module Ogc
11
6
  module Gml
12
7
  class GeodesicString < AbstractCurveSegment
@@ -16,8 +11,8 @@ module Ogc
16
11
  attribute :point_property, PointProperty, collection: true
17
12
 
18
13
  xml do
19
- root "GeodesicString"
20
- namespace "http://www.opengis.net/gml/3.2", "gml"
14
+ element "GeodesicString"
15
+ namespace Namespace
21
16
 
22
17
  map_attribute "numDerivativesAtStart", to: :num_derivatives_at_start
23
18
  map_attribute "numDerivativesAtEnd", to: :num_derivatives_at_end
@@ -2,12 +2,6 @@
2
2
 
3
3
  require "lutaml/model"
4
4
 
5
- require_relative "cartesian_cs_property"
6
- require_relative "ellipsoidal_cs_property"
7
- require_relative "geodetic_datum_property"
8
- require_relative "spherical_cs_property"
9
- require_relative "abstract_crs"
10
-
11
5
  module Ogc
12
6
  module Gml
13
7
  class GeodeticCRS < AbstractCRS
@@ -17,10 +11,10 @@ module Ogc
17
11
  attribute :geodetic_datum, GeodeticDatumProperty
18
12
 
19
13
  xml do
20
- root "GeodeticCRS"
21
- namespace "http://www.opengis.net/gml/3.2", "gml"
14
+ element "GeodeticCRS"
15
+ namespace Namespace
22
16
 
23
- map_attribute "id", to: :id, prefix: "gml", namespace: "http://www.opengis.net/gml/3.2"
17
+ map_attribute "id", to: :id, form: :qualified
24
18
  map_element "metaDataProperty", to: :meta_data_property
25
19
  map_element "description", to: :description
26
20
  map_element "descriptionReference", to: :description_reference
@@ -2,21 +2,19 @@
2
2
 
3
3
  require "lutaml/model"
4
4
 
5
- require_relative "geodetic_crs"
6
-
7
5
  module Ogc
8
6
  module Gml
9
7
  class GeodeticCRSProperty < Lutaml::Model::Serializable
10
8
  attribute :nil_reason, :string
11
- attribute :remote_schema, :string
9
+ attribute :remote_schema, RemoteSchema
12
10
  attribute :geodetic_crs, GeodeticCRS
13
11
 
14
12
  xml do
15
- root "baseGeodeticCRS"
16
- namespace "http://www.opengis.net/gml/3.2", "gml"
13
+ element "baseGeodeticCRS"
14
+ namespace Namespace
17
15
 
18
16
  map_attribute "nilReason", to: :nil_reason
19
- map_attribute "remoteSchema", to: :remote_schema, prefix: "gml", namespace: "http://www.opengis.net/gml/3.2"
17
+ map_attribute "remoteSchema", to: :remote_schema
20
18
  map_element "GeodeticCRS", to: :geodetic_crs
21
19
  end
22
20
  end
@@ -1,9 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "lutaml/model"
4
- require_relative "ellipsoid_property"
5
- require_relative "prime_meridian_property"
6
- require_relative "abstract_datum"
7
4
 
8
5
  module Ogc
9
6
  module Gml
@@ -12,10 +9,10 @@ module Ogc
12
9
  attribute :ellipsoid, EllipsoidProperty
13
10
 
14
11
  xml do
15
- root "GeodeticDatum"
16
- namespace "http://www.opengis.net/gml/3.2", "gml"
12
+ element "GeodeticDatum"
13
+ namespace Namespace
17
14
 
18
- map_attribute "id", to: :id, prefix: "gml", namespace: "http://www.opengis.net/gml/3.2"
15
+ map_attribute "id", to: :id, form: :qualified
19
16
  map_element "metaDataProperty", to: :meta_data_property
20
17
  map_element "description", to: :description
21
18
  map_element "descriptionReference", to: :description_reference
@@ -2,21 +2,19 @@
2
2
 
3
3
  require "lutaml/model"
4
4
 
5
- require_relative "geodetic_datum"
6
-
7
5
  module Ogc
8
6
  module Gml
9
7
  class GeodeticDatumProperty < Lutaml::Model::Serializable
10
8
  attribute :nil_reason, :string
11
- attribute :remote_schema, :string
9
+ attribute :remote_schema, RemoteSchema
12
10
  attribute :geodetic_datum, GeodeticDatum
13
11
 
14
12
  xml do
15
- root "usesGeodeticDatum"
16
- namespace "http://www.opengis.net/gml/3.2", "gml"
13
+ element "usesGeodeticDatum"
14
+ namespace Namespace
17
15
 
18
16
  map_attribute "nilReason", to: :nil_reason
19
- map_attribute "remoteSchema", to: :remote_schema, prefix: "gml", namespace: "http://www.opengis.net/gml/3.2"
17
+ map_attribute "remoteSchema", to: :remote_schema
20
18
  map_element "GeodeticDatum", to: :geodetic_datum
21
19
  end
22
20
  end
@@ -1,9 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "lutaml/model"
4
- require_relative "ellipsoidal_cs_property"
5
- require_relative "geodetic_datum_property"
6
- require_relative "abstract_crs"
7
4
 
8
5
  module Ogc
9
6
  module Gml
@@ -12,10 +9,10 @@ module Ogc
12
9
  attribute :uses_geodetic_datum, GeodeticDatumProperty
13
10
 
14
11
  xml do
15
- root "GeographicCRS"
16
- namespace "http://www.opengis.net/gml/3.2", "gml"
12
+ element "GeographicCRS"
13
+ namespace Namespace
17
14
 
18
- map_attribute "id", to: :id, prefix: "gml", namespace: "http://www.opengis.net/gml/3.2"
15
+ map_attribute "id", to: :id, form: :qualified
19
16
  map_element "metaDataProperty", to: :meta_data_property
20
17
  map_element "description", to: :description
21
18
  map_element "descriptionReference", to: :description_reference
@@ -2,21 +2,19 @@
2
2
 
3
3
  require "lutaml/model"
4
4
 
5
- require_relative "geographic_crs"
6
-
7
5
  module Ogc
8
6
  module Gml
9
7
  class GeographicCRSProperty < Lutaml::Model::Serializable
10
8
  attribute :nil_reason, :string
11
- attribute :remote_schema, :string
9
+ attribute :remote_schema, RemoteSchema
12
10
  attribute :geographic_crs, GeographicCRS
13
11
 
14
12
  xml do
15
- root "geographicCRSRef"
16
- namespace "http://www.opengis.net/gml/3.2", "gml"
13
+ element "geographicCRSRef"
14
+ namespace Namespace
17
15
 
18
16
  map_attribute "nilReason", to: :nil_reason
19
- map_attribute "remoteSchema", to: :remote_schema, prefix: "gml", namespace: "http://www.opengis.net/gml/3.2"
17
+ map_attribute "remoteSchema", to: :remote_schema
20
18
  map_element "GeographicCRS", to: :geographic_crs
21
19
  end
22
20
  end
@@ -1,8 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "lutaml/model"
4
- require_relative "geometric_primitive_property"
5
- require_relative "abstract_geometric_aggregate"
6
4
 
7
5
  module Ogc
8
6
  module Gml
@@ -10,10 +8,10 @@ module Ogc
10
8
  attribute :element, GeometricPrimitiveProperty, collection: true
11
9
 
12
10
  xml do
13
- root "GeometricComplex"
14
- namespace "http://www.opengis.net/gml/3.2", "gml"
11
+ element "GeometricComplex"
12
+ namespace Namespace
15
13
 
16
- map_attribute "id", to: :id, prefix: "gml", namespace: "http://www.opengis.net/gml/3.2"
14
+ map_attribute "id", to: :id, form: :qualified
17
15
  map_attribute "srsName", to: :srs_name
18
16
  map_attribute "srsDimension", to: :srs_dimension
19
17
  map_attribute "axisLabels", to: :axis_labels
@@ -2,24 +2,23 @@
2
2
 
3
3
  require "lutaml/model"
4
4
 
5
- require_relative "abstract_geometric_primitive"
6
-
7
5
  module Ogc
8
6
  module Gml
9
7
  class GeometricPrimitiveProperty < Lutaml::Model::Serializable
10
8
  attribute :owns, :boolean, default: -> { false }
11
9
  attribute :nil_reason, :string
12
- attribute :remote_schema, :string
10
+ attribute :remote_schema, RemoteSchema
13
11
  attribute :abstract_geometric_primitive, AbstractGeometricPrimitive
14
12
 
15
13
  xml do
16
- root "GeometricPrimitivePropertyType"
17
- namespace "http://www.opengis.net/gml/3.2", "gml"
14
+ element "GeometricPrimitivePropertyType"
15
+ namespace Namespace
18
16
 
19
17
  map_attribute "owns", to: :owns
20
18
  map_attribute "nilReason", to: :nil_reason
21
- map_attribute "remoteSchema", to: :remote_schema, prefix: "gml", namespace: "http://www.opengis.net/gml/3.2"
22
- map_element "AbstractGeometricPrimitive", to: :abstract_geometric_primitive
19
+ map_attribute "remoteSchema", to: :remote_schema
20
+ map_element "AbstractGeometricPrimitive",
21
+ to: :abstract_geometric_primitive
23
22
  end
24
23
  end
25
24
  end
@@ -2,8 +2,6 @@
2
2
 
3
3
  require "lutaml/model"
4
4
 
5
- require_relative "abstract_geometry"
6
-
7
5
  module Ogc
8
6
  module Gml
9
7
  class GeometryArrayProperty < Lutaml::Model::Serializable
@@ -11,8 +9,8 @@ module Ogc
11
9
  attribute :abstract_geometry, AbstractGeometry, collection: true
12
10
 
13
11
  xml do
14
- root "geometryMembers"
15
- namespace "http://www.opengis.net/gml/3.2", "gml"
12
+ element "geometryMembers"
13
+ namespace Namespace
16
14
 
17
15
  map_attribute "owns", to: :owns
18
16
  map_element "AbstractGeometry", to: :abstract_geometry
@@ -2,22 +2,20 @@
2
2
 
3
3
  require "lutaml/model"
4
4
 
5
- require_relative "abstract_geometry"
6
-
7
5
  module Ogc
8
6
  module Gml
9
7
  class GeometryProperty < Lutaml::Model::Serializable
10
8
  attribute :nil_reason, :string
11
- attribute :remote_schema, :string
9
+ attribute :remote_schema, RemoteSchema
12
10
  attribute :owns, :boolean, default: -> { false }
13
11
  attribute :abstract_geometry, AbstractGeometry
14
12
 
15
13
  xml do
16
- root "geometryMember"
17
- namespace "http://www.opengis.net/gml/3.2", "gml"
14
+ element "geometryMember"
15
+ namespace Namespace
18
16
 
19
17
  map_attribute "nilReason", to: :nil_reason
20
- map_attribute "remoteSchema", to: :remote_schema, prefix: "gml", namespace: "http://www.opengis.net/gml/3.2"
18
+ map_attribute "remoteSchema", to: :remote_schema
21
19
  map_attribute "owns", to: :owns
22
20
  map_element "AbstractGeometry", to: :abstract_geometry
23
21
  end
data/lib/ogc/gml/grid.rb CHANGED
@@ -2,16 +2,10 @@
2
2
 
3
3
  require "lutaml/model"
4
4
 
5
- require_relative "code"
6
- require_relative "code_with_authority"
7
- require_relative "grid_limits"
8
- require_relative "meta_data_property"
9
- require_relative "reference"
10
-
11
5
  module Ogc
12
6
  module Gml
13
7
  class Grid < Lutaml::Model::Serializable
14
- attribute :id, :string
8
+ attribute :id, Identifier
15
9
  attribute :srs_name, :string
16
10
  attribute :srs_dimension, :integer
17
11
  attribute :axis_labels, :string
@@ -26,10 +20,10 @@ module Ogc
26
20
  attribute :axis_name, :string, collection: true
27
21
 
28
22
  xml do
29
- root "Grid"
30
- namespace "http://www.opengis.net/gml/3.2", "gml"
23
+ element "Grid"
24
+ namespace Namespace
31
25
 
32
- map_attribute "id", to: :id, prefix: "gml", namespace: "http://www.opengis.net/gml/3.2"
26
+ map_attribute "id", to: :id, form: :qualified
33
27
  map_attribute "srsName", to: :srs_name
34
28
  map_attribute "srsDimension", to: :srs_dimension
35
29
  map_attribute "axisLabels", to: :axis_labels
@@ -9,8 +9,8 @@ module Ogc
9
9
  attribute :high, :string
10
10
 
11
11
  xml do
12
- root "GridEnvelopeType"
13
- namespace "http://www.opengis.net/gml/3.2", "gml"
12
+ element "GridEnvelopeType"
13
+ namespace Namespace
14
14
 
15
15
  map_element "low", to: :low
16
16
  map_element "high", to: :high
@@ -2,8 +2,6 @@
2
2
 
3
3
  require "lutaml/model"
4
4
 
5
- require_relative "sequence_rule"
6
-
7
5
  module Ogc
8
6
  module Gml
9
7
  class GridFunction < Lutaml::Model::Serializable
@@ -11,8 +9,8 @@ module Ogc
11
9
  attribute :start_point, :string
12
10
 
13
11
  xml do
14
- root "GridFunction"
15
- namespace "http://www.opengis.net/gml/3.2", "gml"
12
+ element "GridFunction"
13
+ namespace Namespace
16
14
 
17
15
  map_element "sequenceRule", to: :sequence_rule
18
16
  map_element "startPoint", to: :start_point
@@ -2,16 +2,14 @@
2
2
 
3
3
  require "lutaml/model"
4
4
 
5
- require_relative "grid_envelope"
6
-
7
5
  module Ogc
8
6
  module Gml
9
7
  class GridLimits < Lutaml::Model::Serializable
10
8
  attribute :grid_envelope, GridEnvelope
11
9
 
12
10
  xml do
13
- root "GridLimitsType"
14
- namespace "http://www.opengis.net/gml/3.2", "gml"
11
+ element "GridLimitsType"
12
+ namespace Namespace
15
13
 
16
14
  map_element "GridEnvelope", to: :grid_envelope
17
15
  end
@@ -2,8 +2,6 @@
2
2
 
3
3
  require "lutaml/model"
4
4
 
5
- require_relative "abstract_time_slice"
6
-
7
5
  module Ogc
8
6
  module Gml
9
7
  class HistoryProperty < Lutaml::Model::Serializable
@@ -11,8 +9,8 @@ module Ogc
11
9
  attribute :abstract_time_slice, AbstractTimeSlice, collection: true
12
10
 
13
11
  xml do
14
- root "track"
15
- namespace "http://www.opengis.net/gml/3.2", "gml"
12
+ element "track"
13
+ namespace Namespace
16
14
 
17
15
  map_attribute "owns", to: :owns
18
16
  map_element "AbstractTimeSlice", to: :abstract_time_slice
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "lutaml/model"
4
+
5
+ module Ogc
6
+ module Gml
7
+ class Identifier < Lutaml::Model::Type::String
8
+ xml do
9
+ namespace Namespace
10
+ end
11
+ end
12
+ end
13
+ end
@@ -1,11 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "lutaml/model"
4
- require_relative "affine_cs_property"
5
- require_relative "cartesian_cs_property"
6
- require_relative "image_datum_property"
7
- require_relative "oblique_cartesian_cs_property"
8
- require_relative "abstract_crs"
9
4
 
10
5
  module Ogc
11
6
  module Gml
@@ -16,10 +11,10 @@ module Ogc
16
11
  attribute :image_datum, ImageDatumProperty
17
12
 
18
13
  xml do
19
- root "ImageCRS"
20
- namespace "http://www.opengis.net/gml/3.2", "gml"
14
+ element "ImageCRS"
15
+ namespace Namespace
21
16
 
22
- map_attribute "id", to: :id, prefix: "gml", namespace: "http://www.opengis.net/gml/3.2"
17
+ map_attribute "id", to: :id, form: :qualified
23
18
  map_element "metaDataProperty", to: :meta_data_property
24
19
  map_element "description", to: :description
25
20
  map_element "descriptionReference", to: :description_reference
@@ -2,21 +2,19 @@
2
2
 
3
3
  require "lutaml/model"
4
4
 
5
- require_relative "image_crs"
6
-
7
5
  module Ogc
8
6
  module Gml
9
7
  class ImageCRSProperty < Lutaml::Model::Serializable
10
8
  attribute :nil_reason, :string
11
- attribute :remote_schema, :string
9
+ attribute :remote_schema, RemoteSchema
12
10
  attribute :image_crs, ImageCRS
13
11
 
14
12
  xml do
15
- root "imageCRSRef"
16
- namespace "http://www.opengis.net/gml/3.2", "gml"
13
+ element "imageCRSRef"
14
+ namespace Namespace
17
15
 
18
16
  map_attribute "nilReason", to: :nil_reason
19
- map_attribute "remoteSchema", to: :remote_schema, prefix: "gml", namespace: "http://www.opengis.net/gml/3.2"
17
+ map_attribute "remoteSchema", to: :remote_schema
20
18
  map_element "ImageCRS", to: :image_crs
21
19
  end
22
20
  end