Map Scale denominator from camara altitude

I am trying to convert the camera altitude to a scale.

I am styling using the OGC SLD and need to filter by min and max scale denominator.

I would appreciate any suggestions on how to computer the scale denominator when using Cesium.

I do realize that this doesn’t really make sense due to the fact that the scree size and resolution are not being considered, I just need an approximate mechanism.

Thanks in advance,

Dale

I’m not quite sure what you mean, but in case you want to calculate how far away 2 points on Earth are from eachother (both of which are also visible from the camera) then use this information to create a map scale, Kevin posted an example implementation for 3D mode here https://groups.google.com/d/msg/cesium-dev/mc5hyMykhGE/szeMp8dN7L0J