Skip to content

Conversation

martinRenou
Copy link
Member

@martinRenou martinRenou commented Aug 27, 2025

Copy link
Contributor

Binder 👈 Launch a Binder on branch martinRenou/jupytergis/try_inferring_feature_name

for (const key of Object.keys(feature)) {
const lowerCase = key.toLowerCase();

if ((lowerCase.includes('name') || lowerCase === 'id') && feature[key]) {
Copy link
Member Author

Choose a reason for hiding this comment

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

We'll have to see if this is a good rule on the long run.

Copy link
Member

Choose a reason for hiding this comment

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

This is good for now but yeah we can expand it to using a list with generic names such as ['name', 'title', 'label', 'id', 'fid', 'identifier']

@martinRenou martinRenou added the enhancement New feature or request label Aug 27, 2025
Copy link
Member

@arjxn-py arjxn-py left a comment

Choose a reason for hiding this comment

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

This is looking good as a improvement 💯
Thanks @martinRenou :)

@martinRenou martinRenou merged commit a1c9126 into geojupyter:main Aug 27, 2025
15 of 17 checks passed
@martinRenou martinRenou deleted the try_inferring_feature_name branch August 27, 2025 12:52
Copy link
Contributor

Integration tests report: appsharing.space

mfisher87 pushed a commit to mapninja/jupytergis-docwork that referenced this pull request Aug 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants