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

Ground polygon is wrong #7507

Closed
hpinkos opened this issue Jan 24, 2019 · 5 comments
Closed

Ground polygon is wrong #7507

hpinkos opened this issue Jan 24, 2019 · 5 comments

Comments

@hpinkos
Copy link
Contributor

hpinkos commented Jan 24, 2019

image

The red is a polygon with height: 0. The purple is where it overlaps with the ground polygon.

var viewer = new Cesium.Viewer('cesiumContainer');

viewer.entities.add({
    polygon : {
        hierarchy : Cesium.Cartesian3.fromDegreesArray([-120.0, 30.0,
                                                        -80.0, 30.0,
                                                        -80.0, 40.0,
                                                        -120.0, 40.0]),
        material : Cesium.Color.BLUE.withAlpha(0.5)
    }
});

viewer.entities.add({
    polygon : {
        hierarchy : Cesium.Cartesian3.fromDegreesArray([-120.0, 30.0,
                                                        -80.0, 30.0,
                                                        -80.0, 40.0,
                                                        -120.0, 40.0]),
        material : Cesium.Color.RED.withAlpha(0.5),
        height: 0
    }
});

viewer.zoomTo(viewer.entities);
@hpinkos
Copy link
Contributor Author

hpinkos commented Jan 24, 2019

@likangning93 I marked this next release but if it doesn't make the February release that's okay. Please look into it ASAP

@mramato
Copy link
Contributor

mramato commented Jan 24, 2019

Is this a rhumb/geodesic conflict?

@hpinkos
Copy link
Contributor Author

hpinkos commented Jan 24, 2019

Nope, this is in master

@likangning93
Copy link
Contributor

I think this is a problem with the polygon's bounding rectangle, I have some hunches.

@mramato
Copy link
Contributor

mramato commented Jan 24, 2019

Nope, this is in master

Right, I thought maybe ground polyline was just using a different interoplation, sounds like @likangning93 is on the case! Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants