Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GeoJSON: how to get nested attributes? #4084

Open
Zauberbutter opened this issue Sep 11, 2019 · 1 comment
Open

GeoJSON: how to get nested attributes? #4084

Zauberbutter opened this issue Sep 11, 2019 · 1 comment

Comments

@Zauberbutter
Copy link

I want to get a nested attribute from a GeoJSON file for a <TextSymbolizer>:

... { "tags" : { "name": "test" } } ...

With

<TextSymbolizer 
                placement="point"
                size="15"
                >[tags]</TextSymbolizer>

I get the whole string { "name": "test" }, but how can I get only tags.name?

@artemp
Copy link
Member

artemp commented Oct 22, 2019

@Cerberooo - nested attributes get squashed into textual representation, so no support. You might be able to use regex to match/extract relevant value from that string, not sure.
Thanks for bringing this in, I'm starting to think we should support nested attributes properly by changing internal feature representation.

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

No branches or pull requests

2 participants