Skip to content

Conversation

@tik65536
Copy link
Collaborator

Summary :

rf_level_scalefactor = {17: "10000000", 18: "100000000", 
                                    19: "1000000000", 20: "10000000000"}

Related issue in DGGRID:
sahrk/DGGRID#97 (comment)

- added `clipper_scale_factor` to Dggs class
This reverts commit 693cf8b.

The fix is not done correctly according to allixender#44 (comment)
- followed the suggestion from allixender#44 (comment)
- added the helper function `specify_clip_setting` to handle clip[per] related metafile settings.
- But it failed the test case `test_cells_for_geo_points` with cell_ids_only=False.
- fixed the input_address_type is None in `cells_for_geo_points`
  when the original `output_address_type` is None and zone_id_only is False
- changed the value of rf_level_scalefactor dictionary to string instead of int
- added test cases for the clipped_scale_factor
-changed the helper function name from `specify_clip_setting` to `specify_clip_settings`
- change the type of clip_geom from AnyGeometry to "AnyGeometry"
@tik65536 tik65536 changed the title Consolidate clipping parameters handling in helper function Consolidate clipping parameters handling in a helper function Dec 17, 2025
Copy link
Contributor

@fmigneault fmigneault left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

- grouped the handling of clip_subset_type under an if block
- moved the clipper_scale_factor under the if block
- removed the TYPE_CHECKING for AnyGeometry
- changed to use AnyGeometery dtype, instead of "AnyGeometry"
bugfix syntax error when using the dictionary get.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants