Skip to content

Commit

Permalink
Remove unused extents
Browse files Browse the repository at this point in the history
  • Loading branch information
dvdoug committed Nov 11, 2021
1 parent 78ded9e commit 8fbe41c
Show file tree
Hide file tree
Showing 47 changed files with 18 additions and 1,450 deletions.
20 changes: 18 additions & 2 deletions src/EPSG/Import/EPSGCodegenFromGeoRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,27 @@ public function generateExtents(): void
SELECT e.extent_code, e.extent_name
FROM epsg_coordoperation o
JOIN epsg_coordinatereferencesystem sourcecrs ON sourcecrs.coord_ref_sys_code = o.source_crs_code AND sourcecrs.coord_ref_sys_kind NOT IN ('engineering', 'derived') AND sourcecrs.deprecated = 0
JOIN epsg_usage u ON u.object_code = o.coord_op_code AND u.object_table_name = 'epsg_coordoperation'
JOIN epsg_extent e ON u.extent_code = e.extent_code
LEFT JOIN epsg_deprecation dep ON dep.object_table_name = 'epsg_coordoperation' AND dep.object_code = o.coord_op_code AND dep.deprecation_date <= '2020-12-14'
WHERE dep.deprecation_id IS NULL AND e.deprecated = 0
AND o.coord_op_name NOT LIKE '%example%'
LEFT JOIN epsg_supersession s ON s.object_table_name = 'epsg_coordoperation' AND s.object_code = o.coord_op_code
WHERE dep.deprecation_id IS NULL AND e.deprecated = 0 AND s.supersession_id IS NULL
AND o.coord_op_type != 'conversion' AND o.coord_op_type != 'concatenated operation' AND o.coord_op_name NOT LIKE '%example%' AND o.coord_op_name NOT LIKE '%mining%'
AND o.coord_op_method_code NOT IN (" . implode(',', EPSGCodegenFromDataImport::BLACKLISTED_METHODS) . ')
AND o.coord_op_code NOT IN (' . implode(',', EPSGCodegenFromDataImport::BLACKLISTED_OPERATIONS) . ")
UNION
SELECT e.extent_code, e.extent_name
FROM epsg_coordoperation o
JOIN epsg_coordinatereferencesystem projcrs ON projcrs.projection_conv_code = o.coord_op_code AND projcrs.coord_ref_sys_kind NOT IN ('engineering', 'derived') AND projcrs.deprecated = 0
JOIN epsg_usage u ON u.object_code = o.coord_op_code AND u.object_table_name = 'epsg_coordoperation'
JOIN epsg_extent e ON u.extent_code = e.extent_code
LEFT JOIN epsg_deprecation dep ON dep.object_table_name = 'epsg_coordoperation' AND dep.object_code = o.coord_op_code AND dep.deprecation_date <= '2020-12-14'
LEFT JOIN epsg_supersession s ON s.object_table_name = 'epsg_coordoperation' AND s.object_code = o.coord_op_code
WHERE dep.deprecation_id IS NULL AND e.deprecated = 0 AND s.supersession_id IS NULL
AND o.coord_op_type = 'conversion' AND o.coord_op_type != 'concatenated operation' AND o.coord_op_name NOT LIKE '%example%' AND o.coord_op_name NOT LIKE '%mining%'
AND o.coord_op_method_code NOT IN (" . implode(',', EPSGCodegenFromDataImport::BLACKLISTED_METHODS) . ')
AND o.coord_op_code NOT IN (' . implode(',', EPSGCodegenFromDataImport::BLACKLISTED_OPERATIONS) . ')
Expand Down
43 changes: 0 additions & 43 deletions src/Geometry/Extents/BoundingBoxOnly/Extent1038.php

This file was deleted.

28 changes: 0 additions & 28 deletions src/Geometry/Extents/BoundingBoxOnly/Extent1281.php

This file was deleted.

28 changes: 0 additions & 28 deletions src/Geometry/Extents/BoundingBoxOnly/Extent2292.php

This file was deleted.

48 changes: 0 additions & 48 deletions src/Geometry/Extents/BoundingBoxOnly/Extent2293.php

This file was deleted.

28 changes: 0 additions & 28 deletions src/Geometry/Extents/BoundingBoxOnly/Extent2307.php

This file was deleted.

28 changes: 0 additions & 28 deletions src/Geometry/Extents/BoundingBoxOnly/Extent2308.php

This file was deleted.

28 changes: 0 additions & 28 deletions src/Geometry/Extents/BoundingBoxOnly/Extent2309.php

This file was deleted.

28 changes: 0 additions & 28 deletions src/Geometry/Extents/BoundingBoxOnly/Extent2310.php

This file was deleted.

28 changes: 0 additions & 28 deletions src/Geometry/Extents/BoundingBoxOnly/Extent2317.php

This file was deleted.

28 changes: 0 additions & 28 deletions src/Geometry/Extents/BoundingBoxOnly/Extent2318.php

This file was deleted.

28 changes: 0 additions & 28 deletions src/Geometry/Extents/BoundingBoxOnly/Extent2320.php

This file was deleted.

Loading

0 comments on commit 8fbe41c

Please sign in to comment.