i find a bug

classic Classic list List threaded Threaded
2 messages Options
qing qing
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

i find a bug

today i update osgearth to lastest version,but when i construct a featurenode without geometry or vertexs,
app block,i find app block in GeoExtent::GeoExtent(), so i add isValid(), it is ok.
GeoExtent::GeoExtent( const SpatialReference* srs, const Bounds& bounds ) :
_srs    ( srs ),
_west   ( bounds.xMin() ),
_east   ( bounds.xMax() ),
_south  ( bounds.yMin() ),
_north  ( bounds.yMax() )
{    
    if ( isValid() )
        recomputeCircle();

    if (_srs->isGeographic() && (_east-_west < 360.0) && isValid())
    {
        _west = s_normalizeLongitude(_west);
        _east = s_normalizeLongitude(_east);
    }
}
jasonbeverage jasonbeverage
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: i find a bug

Thanks for that, I just pushed a fix to the master.

On Sat, Mar 4, 2017 at 2:24 PM qing [via osgEarth] <[hidden email]> wrote:
today i update osgearth to lastest version,but when i construct a featurenode without geometry or vertexs,
app block,i find app block in GeoExtent::GeoExtent(), so i add isValid(), it is ok.
GeoExtent::GeoExtent( const SpatialReference* srs, const Bounds& bounds ) :
_srs    ( srs ),
_west   ( bounds.xMin() ),
_east   ( bounds.xMax() ),
_south  ( bounds.yMin() ),
_north  ( bounds.yMax() )
{    
    if ( isValid() )
        recomputeCircle();

    if (_srs->isGeographic() && (_east-_west < 360.0) && isValid())
    {
        _west = s_normalizeLongitude(_west);
        _east = s_normalizeLongitude(_east);
    }
}



If you reply to this email, your message will be added to the discussion below:
http://forum.osgearth.org/i-find-a-bug-tp7590607.html
To start a new topic under osgEarth, email [hidden email]
To unsubscribe from osgEarth, click here.
NAML
Loading...