<html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312" /><title>空间查询</title><link rel="stylesheet" type="text/css" href="SuperMapHelp.css" /><style>body{background: #ffffff;color: #000000;font-family: '微软雅黑',Verdana, Arial, Helvetica, sans-serif,'宋体';font-size:90%;width: 98%;margin-left:2%;}a:link {color: #408080;}a:visited {color:#880000;}a:hover {color:#408080;}/*介绍页(主模块页)的列举风格:项目前面有图片,左侧缩进。*/.jumplist{ margin-left: -17pt; font-size: 10pt; margin-top: 10pt; margin-bottom: 8pt }.booktoc{font-size: 10pt;margin-top: 0pt;margin-bottom: 0pt;padding-left:15px;vertical-align:middle;}/*段落风格*/p{margin-top:5px;margin-bottom:10px;}/*技术支持页面中标题的风格*/p.pssTitle{color: #000080;font-weight:bold;}/*技术支持页面中页面标题的风格*/p.pssPageTitle{font-size: 130%;margin-top: 2%;margin-left: 2%;}/*一二三级标题的共有风格*/h1, h2, h3{font-family: '微软雅黑', Verdana, Arial, Helvetica, sans-serif,'宋体';margin-bottom: .5em;margin-top: 1.5em;font-weight: bold;}/*一级标题的特有风格*/h1{margin-top: 0em;font-size: 150%;}/*二级标题的特有风格*/h2{font-size: 130%;}/*三级标题的特有风格*/h3{font-size: 110%;}/*一二三级标题的风格*/h1 {font-size: 150%; margin-top: .4em; margin-bottom: .5em;}h2 {font-size: 130%; margin-top: 2em; margin-bottom: .5em;}h3 {font-size: 110%; margin-top: 1.2em; margin-bottom: .5em; font-weight: bold;}/*特别为表格标题添加的风格*/h4 { font-family:"微软雅黑", "华文细黑", "宋体"; text-align:center; color: #339966;font-size:100%; margin-bottom: 1.5em; margin-top: 1.5em; font-weight: bold; }/*接口表格样式*/table.dtTable{width: 95%; /* 占整个页面宽度的95% */margin-top: .6em;margin-bottom: 1em;border-width: 1px 1px 0px 0px;border-style: solid;border-color: #999999;font-size: 100%; /* Text in Table is same size as text outside table */}/*接口表格的首行风格,字体加粗并设置背景颜色*/table.dtTable tHead{background: #cccccc; /* Creates the shaded table header row */font-weight:bold;padding:4px 6px;text-align:left;}/*接口表格的首行(SFC组件使用)及单元格共有风格*/table.dtTABLE th, table.dtTable td{border-style: solid; /* Creates the cell border and color */border-width: 0px 0px 1px 1px;border-style: solid;border-color: #999999;padding: 4px 6px;text-align: left;vertical-align: top;}/*接口表格的首行/单元格(SFC组件使用)*/table.dtTABLE th{background: #cccccc; /* Creates the shaded table header row */vertical-align: bottom;}table.dtTABLE td{vertical-align: top;}/*通用表格样式,整个表格的宽度由内容的多少确定。*/table.cmTable{margin-top: .6em;margin-bottom: 1em;border-width: 1px 1px 0px 0px;border-style: solid;border-color: #999999;font-size: 100%; /* Text in Table is same size as text outside table */}/*通用表格的首行及单元格共用样式*/table.cmTable td, table.cmTable th{border-style: solid; /* Creates the cell border and color */border-width: 0px 0px 1px 1px;border-style: solid;border-color: #999999;padding: 4px 6px;text-align: left;}/*通用表格的首行特有样式,灰色背景*/table.cmTable tHead{background: #cccccc; /* Creates the shaded table header row */font-weight:bold;padding:4px 6px;text-align:left;}/*通用表格的首列样式:字体加粗*/table.cmTable td.ColTitle{font-weight:bold;}/*通用表格的首列样式:字体加粗(SFC组件用)*/table.cmTable td.ColumnTitle{font-weight:bold;}/*pre的code类 样式*/pre.code{background-color: #F4F4FF;padding: 4px 6px 4px 0px;}/*pre,div的syntax的样式*/pre, div.syntax{margin-top: .5em;margin-bottom: .5em;}/*代码样式*/code{color: #006600;font-family: "tahoma", "Time New Roman", "Courier New", "宋体", Courier, monospace;font-size: 100%;}pre, .code, div.syntax{color: #2B2B2B;font-family: "tahoma","宋体";font-size: 110%;width:95%;}pre b, code b{letter-spacing: .1em; /* opens kerning on bold in Syntax/Code */}/*Style for notes and tips*/div.notes{background-color:#F4F4FF;}/* 全部显示,全部隐藏*/div.expandall {right:20pt;POSITION: absolute; TOP: 39pt;height:20pt;}div.TabOverlay {position:absolute;left:11pt;top:40pt;width:700pt;color:white;}/*Style for image in the top of the page*/.pgImage{width:100%;position:relative;left:0px;padding:inherit;border-bottom:1px solid #999999;background-image: url(img/TitleBackground.png);color: #2D5493;height:70px;margin-left:-20px;margin-top:-15px;}/*Style for the first header*/.hd1{position:absolute;height:35%;font-size:120%;font-family:Arial,'宋体';vertical-align:middle;margin-top:5px;margin-left:170px;width:700px;height: 70px;}/*Style for the second header, used in <table>*/.hd2{position:absolute;font-size:140%;font-family:"微软雅黑", Candara,Cambria,Verdana, "宋体";color: #2D5493;height:45%;margin-top:12px;margin-left:170px;width:700px;height: 70px;}/* Style for */DIV.hd3{font-weight:bold;position:absolute;font-size: 100%;color:#FFFFFF;left:35pt;top:4pt;width:700pt;height: 70pt;}.expanded {font-weight: normal; }.collapsed {display: none;}/* LISTS */ol {font-size: 100%; margin-top: .5em; margin-bottom: 0em; margin-left: 4em;}ul {font-size: 100%; margin-top: .5em; margin-bottom: 0em;}ol ul {list-style: disc; margin-top: .5em;}ul ul {list-style: disc; margin-top: .5em;}li {margin-bottom: .7em; margin-left: -2em;}.subpara {margin-left: 18pt;}.subsubpara {margin-left: 36pt;}.usubpara {margin-left: 4pt;} /* for li in ul/ol*//* Applies to the copy code text and image. */.highlight-title { font-weight: bold; width:95%; margin-top: 1em; margin-bottom: 2px; border-bottom: gray 1px solid; padding-bottom: 3px; }.highlight-copycode { float: right; padding-right: 10px; font-weight: normal; cursor: pointer; }.highlight-copycode_h { float: right; padding-right: 10px; font-weight: normal; cursor: pointer; text-decoration: underline}</style></head><body><div class="pgImage"><div class="hd1">SuperMap iObjects Java 11i 范例程序说明</div><div><table cellspacing="0" width="98%" class="hd2"><tr><td>空间查询(SpatialQuery)</td><td> </td></tr></table></div></div><h3>范例简介</h3><p>如何对数据进行空间查询,并在 MapControl 中展示出来。</p><h3>示例数据</h3><p>安装目录\SampleData\World\World.smwu</p><h3>关键类型/成员</h3><table class="cmTable" cellspacing="0" width="95%"><thead><tr><td width="25%">控件/类</td><td>方法</td><td width="25%">事件</td></tr></thead><tr><td>Workspace</td><td>open</td><td> </td></tr><tr><td>QueryParameter</td><td>setSpatialQueryObject、setSpatialQueryMode</td><td> </td></tr><tr><td>SpatialQueryMode</td><td>CONTAIN、INTERSECT、DISJOINT</td><td> </td></tr><tr><td>DatasetVector</td><td>query</td><td> </td></tr><tr><td>Map</td><td>findSelection</td><td> </td></tr><tr><td>Selecttion</td><td>toRecordset、fromRecordset</td><td> </td></tr></table><h3> </h3><table width="90%" align="center"><tr align="center"><td><img src="img/SpatialQuery.png" /></td></tr></table><p></p><h3>使用步骤</h3><ol><li>在地图上选择对象作为查询对象;</li><li>点击相应的按钮进行相关的查询,查询结果在地图中以选择集的方式展现出来;</li></ol><h3>范例程序位置</h3><p>安装目录\SampleCode\SpatialQuery\</p><hr /><div><table width="95%"><tr><td width="20%" align="left"> </td><td align="right" style="font-size:70%"><a href="http://www.supermap.com.cn">版权所有© 北京超图软件股份有限公司。保留所有权利。</a></td></tr></table></div></body></html>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。