tqjxlm / Atlas

An extensible 3D GIS application for visualization, analysis and research.
GNU General Public License v3.0
151 stars 74 forks source link

Function can not work(osgearth 2.10) #19

Closed tangxiaodao closed 3 years ago

tangxiaodao commented 3 years ago

I use osgearth 2.10+osg3.6.4, the program runs normally without any errors, but the add data function does not work, such as AddTMSData and so on. By the way, why do mapNode and mainMap define two (MAX_SUBVIEW), and what can it do?

Best regards for you!

tangxiaodao commented 3 years ago

Log info for TMS Data can not Display: [osgEarth] [engine_rex] Activated!

[osg] [INFO] [osgEarth] [Capabilities] osgEarth Version: 2.10.2 [osg] [INFO] [osgEarth] [Capabilities] OSG Version: 3.6.4 [osg] [INFO] [osgEarth] [Capabilities] GDAL Version: 2.4.1

[Qt] [Info] Plugin loaded: "TMS Data" (..\Atlas\core\PluginManager\PluginManager.cpp: 114, class PluginInterface __cdecl PluginManager::instantiate(class QObject ) [Qt] [Warning] QOpenGLContext::swapBuffers() called with non-exposed window, behavior is undefined (kernel\qopenglcontext.cpp: 1098, void __cdecl QOpenGLContext::swapBuffers(class QSurface *)

No errors and only one warning.


Best Regards For U!

tangxiaodao commented 3 years ago

Maybe I found the problem with tmslayer not work: [osgEarth] [SpatialReference] SRS xform not possible From => WGS 84 To => Mercator CS [osgEarth] [SpatialReference] INPUT: GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4326"]] OUTPUT: PROJCS["unnamed",GEOGCS["unnamed ellipse",DATUM["unknown",SPHEROID["unnamed",6378137,0],TOWGS84[0,0,0,0,0,0,0],EXTENSION["PROJ4_GRIDS","@null"]],PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433]],PROJECTION["Mercator_2SP"],PARAMETER["standard_parallel_1",0],PARAMETER["central_meridian",0],PARAMETER["false_easting",0],PARAMETER["false_northing",0],UNIT["Meter",1],EXTENSION["PROJ4","+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +towgs84=0,0,0,0,0,0,0 +wktext +no_defs"]] [osgEarth] [SpatialReference] ERROR: [osgEarth] [SpatialReference] SRS xform not possible From => WGS 84 To => Mercator CS [osgEarth]* [SpatialReference] INPUT: GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4326"]] OUTPUT: PROJCS["unnamed",GEOGCS["unnamed ellipse",DATUM["unknown",SPHEROID["unnamed",6378137,0],TOWGS84[0,0,0,0,0,0,0],EXTENSION["PROJ4_GRIDS","@null"]],PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433]],PROJECTION["Mercator_2SP"],PARAMETER["standard_parallel_1",0],PARAMETER["central_meridian",0],PARAMETER["false_easting",0],PARAMETER["false_northing",0],UNIT["Meter",1],EXTENSION["PROJ4","+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +towgs84=0,0,0,0,0,0,0 +wktext +no_defs"]]

tangxiaodao commented 3 years ago

======== solved