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

oceania/au/nsw include LHI in TopoMap (#743), thanks @andrewharvey @GenericError #743

Merged
merged 6 commits into from
Dec 13, 2019

Conversation

andrewharvey
Copy link
Collaborator

this superseeds #735

cc @GenericError

Imagery isn't necessary over the ocean, so the polygon there can be massively simplified
@grischard
Copy link
Collaborator

Can we simply include the whole ocean? No mappers go there, and it simplifies the polygon.

@andrewharvey
Copy link
Collaborator Author

Can we simply include the whole ocean? No mappers go there, and it simplifies the polygon.

Err I'd rather not since it technically doesn't cover the ocean. It would be misleading to say it's covered there, but in reality it's not. Is there an issue with multiple Polygon rings?

@GenericError
Copy link

Late follow up, but thank you for going ahead and modifying it. I second that it shouldn't include the ocean unless it is necessary.

@grischard
Copy link
Collaborator

It's not 'necessary' but the geojson is 2 MB already, and the points don't add any value for our purpose since no one will ever map the ocean.

We already do this for the LPI NSW Base Map, and for many sources elsewhere - see Spain on https://osmlab.github.io/editor-layer-index/ for a good example.

If there is any land in that polygon or anything mappers would potentially want to map, we shouldn't do it of course.

@Klumbumbus
Copy link
Contributor

I would use the middle way. Use about 5 nodes for the coastline of australia and one (or two) rectangle(s) for the two islands. This way you have only a handful of nodes more than the current shape, while it is nearly as exact as the first version and it doesn't falsify the shape that much.

@andrewharvey
Copy link
Collaborator Author

It's not 'necessary' but the geojson is 2 MB already,

There are many options to compress this for downstream users who need smaller file sizes without sacrificing quality of the data, like Mapbox Vector Tiles or geobuf or flatgeobuf. So I still think the original one I proposed at https://github.com/osmlab/editor-layer-index/blob/e31f75bb8d9b8bc071f29c0eb71f48c197c37ff5/sources/oceania/au/nsw/NSW-LPI-WebServices-TopographicMap.geojson is the one we should use, it's not like we have the coastline traced out here, it's just a very rugged footprint polygon.

points don't add any value for our purpose since no one will ever map the ocean.

They show the footprint more accurately. There are many other sources where have the same level of detail and it's absolutely important for editors to have that precision if they are editing on the boundary of the coverage.

We already do this for the LPI NSW Base Map

Because the LPI NSW Base Map does cover that area, it's an accurate representation of the footprint.

@grischard
Copy link
Collaborator

We don't need to show the footprint accurately though - for what purpose would we do that? We need the editors to get the imagery over land, and that's it.

Very good idea for vector tiles - I was thinking it could be part of a solution to #586?

@andrewharvey
Copy link
Collaborator Author

andrewharvey commented Dec 11, 2019

@grischard End of the day each of these files are only 1.7K compressed, that's tiny. I took some time to reduce the coordinate precision in my version at e811a01, but I realised I probably still can't convince you so, I've reinstated your version.

I'd still much prefer it not covering the ocean if there is no actual content here, but it's not worth our time to argue over this so let's just merge this.

@grischard grischard changed the title oceania/au/nsw include LHI in TopoMap oceania/au/nsw include LHI in TopoMap (#743), thanks @andrewharvey @GenericError Dec 13, 2019
@grischard grischard merged commit adb6f20 into gh-pages Dec 13, 2019
@grischard grischard deleted the au-nsw-topo-lhi branch December 13, 2019 08:00
@grischard
Copy link
Collaborator

You actually made me laugh out loud. I hope I'm not that stubborn :).

The build script actually simplifies coordinates to, IIRC, five digits after the comma.

It would actually be interesting to see what the biggest source files are.

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.

4 participants