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

Make ZoneID column name configurable #51

Closed
dhixsingh opened this issue May 13, 2021 · 1 comment
Closed

Make ZoneID column name configurable #51

dhixsingh opened this issue May 13, 2021 · 1 comment
Assignees

Comments

@dhixsingh
Copy link
Contributor

The ZoneID column name is hardcoded and should instead be a configurable string.

for (JSONObject feature : (Iterable<JSONObject>) features) {
JSONObject properties = (JSONObject) feature.get("properties");
String zoneId = (properties.get("SA1_MAIN11") != null) ?
(String) properties.get("SA1_MAIN11") :
(String) properties.get("SA1_MAIN16");
if (zoneId == null) {
logger.warn("Feature has no property named SA1_MAIN11 or SA1_MAIN16; discarding");
continue;
}

@dhixsingh dhixsingh self-assigned this May 13, 2021
@dhixsingh
Copy link
Contributor Author

Available since 2c6725c.

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

1 participant