supermap怎样默认加载出来的三维星际2地图加载不出来上面只有一个

.cn/s/blog_6259ebd.html
什么是WMTS服务
&&&&&& WMTS,切片地图Web服务(Web Map Tile Service)当前版本是1.0.0。该服务符合 OGC(Open Geospatial Consortium,开放地理信息联盟)制定的 WMTS 实现规范。
WMTS 是 OGC 提出的缓存技术标准,即在服务器端缓存被切割成一定大小瓦片的地图,对客户端只提供这些预先定义好的单个瓦片的服务,将更多的数据处理操作如图层叠加等放在客户端,从而缓解 GIS 服务器端数据处理的压力,改善用户体验。
如何使用WMTS地图服务
  本文将对iServer的WMTS服务, 天地图的WMTS服务, ArcGIS的WMTS服务进行剖析
1.针对iServer发布的WMTS服务
  针对iServer Java 6R发布的WMTS,我们在使用iClinet对接时,需要注意以下几个参数,这里我用iClinet for JavaScript代码作为示范:
layer = new SuperMap.Layer.WMTS({name: "World",
&&&&&&&&&&url:&0&& //WMTS服务地址
&&&&&&&&& layer: "World",& //图层名称
&&&&&&&&& style: "default", &//图层样式
&&&&&&&&& matrixSet: "GlobalCRS84Scale_World", &//发布的标识符矩阵集
&&&&&&&&& format: "image/png", //图像的MIME类型,默认为 "image/png"
&&&&&&&&& resolutions:resolutions, //地图分辨率
&&&&&&&&& opacity: 1,
&&&&& &&&&requestEncoding:"KVP"}); //请求编码 ,一般默认都是KVP
&综合上面红色字体的部分,我们可以得出,如果是iServer发布的地图,除地图url外,我们需要获取以上5个属性,那么究竟如何获取这5个属性呢? 
&获取方法:
  1. 首先,启动iServer6R
  2. 其次浏览器中输入:&&然后回车
  3. 搜索Contents节点,我们可以获取所需4个属性
-180.0 -90.0
180.0 90.0
-2..9236E7
Custom_World
GlobalCRS84Scale_World
GoogleMapsCompatible_World
resourceType="tile" template="http://localhost:8090/iserver/services/map-world/wmts100/
World/default/Custom_World/{TileMatrix}/{TileRow}/{TileCol}.png"/&
resourceType="tile" template="http://localhost:8090/iserver/services/map-world/wmts100/
World/default/GlobalCRS84Scale_World/{TileMatrix}/{TileRow}/{TileCol}.png"/&
resourceType="tile" template="http://localhost:8090/iserver/services/map-world/wmts100/
\World/default/GoogleMapsCompatible_World/{TileMatrix}/{TileRow}/{TileCol}.png"/&
从高亮的部分,可以得出以下对应情况
WMTS服务参数
iClinet for JavaScript代码
layer: "World"
style: "default"
GlobalCRS84Scale_World
matrixSet: "GlobalCRS84Scale_World"
format="image/png"
format: "image/png"
4.&最后在根据自己地图,计算当前图层的分辨率数组信息.如本范例分辨率数组是:
&var resolutions = [1.33,0.665,0.466,
&&&&&&&&&&&&&&& 0.733,0.6,
&&&&&&&&&&&&&&& 0.65,0.53466,
&&&&&&&&&&&&&&& 0.665,0.553466,
&&&&&&&&&&&&&&& 0...9553466,
&&&&&&&&&&&&&&& 0...,
&&&&&&&&&&&&&&& 0...];
&最终效果图:
2.针对天地图官网发布的WMTS服务
  针对天地图官网发布的WMTS服务,我们在使用iClinet对接时,需要注意以下几个参数,这里我用iClinet for JavaScript代码作为示范:
  1. 天地图官网公布的WMTS服务地址,请查看
  2. 我选取为服务地址, 搜索Contents节点,获取4个重要信息:
-180.0 -90.0
180.0 90.0
-180.0 -90.0
180.0 90.0
urn:ogc:def:crs:EPSG::4490
从高亮的部分,可以得出以下对应情况
天地图官网WMTS服务参数
iClinet for JavaScript代码
layer: "vec"
style: "default"
matrixSet: "c"
format: "tiles"
& & &由于此天地图官网提供的WMTS服务,为全球经纬度范围(东西经&180度,南北纬&90度),则不需要设置原点和全副范围.
  那么在iClinet for JavaScript代码中可以这样写:
layer = new SuperMap.Layer.WMTS({name: "vec",
&&&&&&&& &&&&&&&url: "/vec_c/wmts",
&&&&&&&&&&&&&&& layer: "vec",
&&&&&&&&&&&&&&& style: "default",
&&&&&&&&&&&&&&& matrixSet: "c",
&&&&&&&&&&&&&&& format: "tiles",
&&&&&&&&&&&&&&& opacity: 1,
&&&&&&&&&&&&&&& requestEncoding:"KVP"});
  最终效果图:
      
  &当然如果再叠加一幅中文标记wmts地图(该步骤同上述步骤相似,请开发人员自己尝试),最终效果:
        &&
3.针对ArcGIS发布的WMTS服务
  针对ArcGIS发布的WMTS,我们在使用iClinet对接时,需要注意以下几个参数,这里我用iClinet for JavaScript代码作为示范:
     1.&使用ArcGIS发布地图服务,切缓存 (此步骤略) 出图正常
     
    2. 得到ArcGIS的WMTS服务地址, ()搜索Contents节点,获取6个重要信息:&
73.22 3.8635
134.62 53.125
73.22 3.8635
134.62 53.125
Default Style
default028mm
nativeTileMatrixSet
format="image/png"
resourceType="tile" template="http://localhost:6080/arcgis/rest/services/china/MapServer/WMTS
/tile/1.0.0/china/{Style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}.png"/&
以及矩阵原点属性
-400.0 400.0
  从高亮的部分,可以得出以下对应情况
ArcGIS WMTS服务参数
iClinet for JavaScript代码
layer: "china"
style: "default"
default028mm
matrixSet: "default028mm"
format: "image/png"
73.22 3.8635
134.62 53.125
tileFullExtent: new SuperMap.Bounds(
-400.0 400.0
tileOrigin:new SuperMap.LonLat(-400,400)
  3. 获取ArcGIS所切图层的分辨率,访问地图rest服务(&)我们可以获取resolutions
              
  那么在iClinet for JavaScript中完整代码可以这样写
var resolutions = [0.84,0.46,0.34473]; //分辨率
var maxExtent = new SuperMap.Bounds(73.22,3.,53.125); //全副范围
layer = new SuperMap.Layer.WMTS({name: "china",
& &&url: "http://localhost:6080/arcgis/rest/services/china/MapServer/wmts"
&& &layer: "china",
&&& style: "default",
&&& matrixSet: "default028mm",
& & format: "image/png",
&&& resolutions:resolutions,
& & opacity: 1,
&& &tileFullExtent:maxExtent,&&&& //瓦片设置的最大范围
&&& tileOrigin:new SuperMap.LonLat(-400,400),&& //瓦片矩阵左上角
&&& requestEncoding:"KVP"
& 最终效果图:
        
    注意:在对接ArcGIS wmts服务时:
      1. 需要设置瓦片设置的最大范围(全副范围)
      2. 需要设置瓦片矩阵左上角 (如果不出图,有时候需要根据请求瓦片行列号,微调这个值)
      3. 需要设置分辨率
&    (转贴请注明出处:&&& 如发现有错,请留言 谢谢)
阅读(...) 评论()supermap 三维贴图选项在哪_百度知道
色情、暴力
我们会通过消息、邮箱等方式尽快将举报结果通知您。
supermap 三维贴图选项在哪
我有更好的答案
请用SuperMap Objects.NET,有SceneControl控件 ,lBQtCW
是指屏幕贴图吗
为您推荐:
其他类似问题
supermap的相关知识
等待您来回答supermap布局设定地图网格及布局网格
时间: 10:41:35
&&&& 阅读:200
&&&& 评论:
&&&& 收藏:0
标签:&&&&&&&&&&&&&&&&&&&&&&&&&&&地图网格设定
LayoutElements elements = m_mapLayoutControl.MapLayout.E
//构造GeoMap
GeoMap geoMap = new GeoMap();
geoMap.MapName = "京津地区交通干线图";
// 新建一个 GeoMapGrid 对象。
GeoMapGrid geoMapGrid = new GeoMapGrid();
// 设置 GeoMapGrid 对象的相关属性,即设置地图的经纬网的风格。
// 设置为地图添加经纬网。
geoMapGrid.GridType = GeoMapGridType.G
// 设置经纬网的格网线的线型风格。
geoMapGrid.GridLineStyle.LineSymbolID = <span style="color: #;
geoMapGrid.GridLineStyle.LineColor = Color.B
// 设置经纬网的格网线的水平、竖直间距。
geoMapGrid.HorizontalGridDistance = <span style="color: #;
geoMapGrid.VerticalGridDistance = <span style="color: #;
// 设置经纬网的格网线的类型为实线。
geoMapGrid.GridLineType = GeoMapGridLineType.SolidL
// 设置经纬网的边框风格。
GeoStyle style = new GeoStyle();
style.LineSymbolID = <span style="color: #;
style.LineColor = Color.B
style.LineWidth = <span style="color: #.2;
geoMapGrid.BorderLineStyle =
// 设置经纬网文本标注的水平、竖直位置。
geoMapGrid.HorizontalTextPosition = HorizontalTextPositionType.M
geoMapGrid.VerticalTextPosition = VerticalTextPositionType.M
// 设置经纬网文本标注的文本风格。
geoMapGrid.GridLineTextStyle.ForeColor = Color.B
geoMapGrid.GridLineTextStyle.FontHeight = <span style="color: #;
// 为地图对象添加经纬网。
geoMap.IsGridVisible = true;
geoMap.MapGrid = geoMapG
//设置GeoMap对象的外切矩形
Rectangle2D rect = new Rectangle2D(new Point2D(<span style="color: #0, <span style="color: #00), new Size2D(<span style="color: #00, <span style="color: #00));
GeoRectangle geoRect = new GeoRectangle(rect, <span style="color: #);
geoMap.Shape = geoR
elements.AddNew(geoMap);
m_mapID = elements.GetID();
//构造指北针
GeoNorthArrow northArrow = new GeoNorthArrow(
NorthArrowStyleType.EightDirection,
new Rectangle2D(new Point2D(<span style="color: #00, <span style="color: #50), new Size2D(<span style="color: #0, <span style="color: #0)),
<span style="color: #);
northArrow.BindingGeoMapID = m_mapID;
elements.AddNew(northArrow);
//构造比例尺
GeoMapScale scale = new GeoMapScale(m_mapID, new Point2D(<span style="color: #5, <span style="color: #0), <span style="color: #, <span style="color: #);
scale.LeftDivisionCount = <span style="color: #;
scale.ScaleUnit = Unit.K
scale.SegmentCount = <span style="color: #;
elements.AddNew(scale);
地图网格设定
布局网格设定
s=new GeoStyle();
s.FillForeColor = background.BackC
m_mapLayoutControl.MapLayout.BackgroundStyle =
RulerSetting ssss = m_mapLayoutControl.MapLayout.RulerS
ssss.IsRulerVisible =
m_mapLayoutControl.MapLayout.IsOverlapDisplayed =
//布局文字反走样式
m_mapLayoutControl.MapLayout.IsTextAntialias =
//最小缩放比例
m_mapLayoutControl.MapLayout.MinZoomRatio = 0.01;
//最大缩放比例
m_mapLayoutControl.MapLayout.MaxZoomRatio = 0.01;
//是否显示水平滚动条
m_mapLayoutControl.IsHorizontalScrollbarVisible =
//是否显示垂直滚动条
m_mapLayoutControl.IsVerticalScrollbarVisible =
//是否支持对象修改后启用实时刷新
// m_mapLayoutControl.RefreshAtTracked =
//获取设置格网是否可以捕捉
m_mapLayoutControl.IsGridSnapable =
//构造一个格网设置对象,并设置其相应属性
GridSetting gridSetting = new GridSetting();
gridSetting.IsSizeFixed = true;
gridSetting.IsSnapable = true;
gridSetting.IsVisible = true;
gridSetting.VerticalSpacing = <span style="color: #;
gridSetting.Type = GridType.C
gridSetting.HorizontalSpacing = <span style="color: #;
GeoStyle style1 = new GeoStyle();
style1.LineColor = Color.G
gridSetting.DashStyle = style1;
GeoStyle style2 = new GeoStyle();
style2.LineColor = Color.G
gridSetting.SolidStyle = style2;
//设置地图对象的格网设置
m_mapLayoutControl.MapLayout.Paper.Grid = gridS
// m_mapLayoutControl.MapLayout.Paper.IsVisible =
// m_mapLayoutControl.MapLayout.Elements.AddNew(geoMap);
m_mapLayoutControl.MapLayout.Refresh();
布局网格设定
&标签:&&&&&&&&&&&&&&&&&&&&&&&&&&&
&&国之画&&&& &&&&chrome插件&&
版权所有 京ICP备号-2
迷上了代码!}

我要回帖

更多关于 gta5地图加载不出来 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信