ynyn
路人甲
路人甲
  • 注册日期2004-11-29
  • 发帖数7
  • QQ
  • 铜币133枚
  • 威望0点
  • 贡献值0点
  • 银元0个
阅读:930回复:1

[求助]两个问题:等值线和标注(急,达人们来救命啊)

楼主#
更多 发布于:2005-03-23 14:40
<P>arcims9,使用imageserver+htmlviewer,没有用sde,地图属性数据放在dbf中.
1、等值线:
用来画等值线的数据在一个sqlserver里,如何将其与地图文件相关联?
需要在web页中生成等值线,要怎么做?

2、lable
要在地图上显示label,可是我写了xml发送以后没有反应以下是代码
function showLabel(){
var theString="";
theString += "<ARCXML version='1.1'>\n";
theString += "<REQUEST>\n";
theString += "<GET_IMAGE>\n";
theString += "<PROPERTIES>\n";
theString += "<ENVELOPE minx='"+forceComma(eLeft)+"' miny='"+forceComma(eBottom)+"' maxx='"+forceComma(eRight)+"' maxy='"+forceComma(eTop)+"' />\n";
theString += "</PROPERTIES>\n";
theString += " <LAYER type='featureclass' name='报汛站_font_point' visible='true' id='8'>\n";
theString += " <DATASET name='报汛站_font_point' type='point' workspace='shp_ws-0' />\n";
theString += " <GROUPRENDERER>\n";
theString += " <SIMPLELABELRENDERER field='stnm' labelpriorities='2,1,2,4,5,3,2,4'>\n";
theString += " <TEXTSYMBOL font='Arial' fontstyle='regular' fontsize='10' />\n";
theString += " </SIMPLELABELRENDERER>\n";
theString += " <SIMPLERENDERER>\n";
theString += " <SIMPLEMARKERSYMBOL color='255,0,255' width='8' />\n";
theString += " </SIMPLERENDERER>\n";
theString += " </GROUPRENDERER>\n";
theString += " </LAYER>\n";
theString += "</GET_IMAGE>\n";
theString += "</REQUEST>\n";
theString += "</ARCXML>\n";
sendToServer(imsURL,theString,1);
}
这样写有什么问题么?</P>
<P>我也试过在writexml()里加</P>
<P>if(showLabel){
  theString += "<LAYER type='featureclass' name='报汛站_font_point' visible='true' id='8'>\n";
  theString += "<DATASET name='报汛站_font_point' type='point' workspace='shp_ws-0' />\n";
  theString += "<GROUPRENDERER>\n";
  theString += "<SIMPLELABELRENDERER field='stnm' labelpriorities='2,1,2,4,5,3,2,4'>\n";
  theString += "<TEXTSYMBOL font='Arial' fontstyle='regular' fontsize='10' />\n";
  theString += "</SIMPLELABELRENDERER>\n";
  theString += "<SIMPLERENDERER>\n";
  theString += "<SIMPLEMARKERSYMBOL color='255,0,255' width='8' />\n";
  theString += "</SIMPLERENDERER>\n";
  theString += "</GROUPRENDERER>\n";
  theString += "</LAYER>\n";
}</P>
<P>然后在外面设置showLabel后sendMapXml发送,可一样没用....,到底我该怎么办呀</P>
[此贴子已经被作者于2005-3-23 14:42:23编辑过]
喜欢0 评分0
gis
gis
管理员
管理员
  • 注册日期2003-07-16
  • 发帖数15951
  • QQ
  • 铜币25345枚
  • 威望15368点
  • 贡献值0点
  • 银元0个
  • GIS帝国居民
  • 帝国沙发管家
  • GIS帝国明星
  • GIS帝国铁杆
1楼#
发布于:2005-03-24 10:50
<P>只有先提取坐标数据,生成图形再加载吧,</P><P>arcims好象编辑功能不强哦,具体偶也没做过,帮你顶住,听楼下的了</P>
GIS麦田守望者,期待与您交流。
举报 回复(0) 喜欢(0)     评分
游客

返回顶部