当前位置: 首页>>代码示例>>Java>>正文


Java OrientedCoordinateArray类代码示例

本文整理汇总了Java中com.vividsolutions.jts.noding.OrientedCoordinateArray的典型用法代码示例。如果您正苦于以下问题:Java OrientedCoordinateArray类的具体用法?Java OrientedCoordinateArray怎么用?Java OrientedCoordinateArray使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

OrientedCoordinateArray类属于com.vividsolutions.jts.noding包,在下文中一共展示了OrientedCoordinateArray类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: add

import com.vividsolutions.jts.noding.OrientedCoordinateArray; //导入依赖的package包/类
/**
 * Insert an edge unless it is already in the list
 */
public void add(Edge e)
{
  edges.add(e);
  OrientedCoordinateArray oca = new OrientedCoordinateArray(e.getCoordinates());
  ocaMap.put(oca, e);
}
 
开发者ID:GitHubDroid,项目名称:geodroid_master_update,代码行数:10,代码来源:EdgeList.java


示例2: findEqualEdge

import com.vividsolutions.jts.noding.OrientedCoordinateArray; //导入依赖的package包/类
/**
 * If there is an edge equal to e already in the list, return it.
 * Otherwise return null.
 * @return  equal edge, if there is one already in the list
 *          null otherwise
 */
public Edge findEqualEdge(Edge e)
{
  OrientedCoordinateArray oca = new OrientedCoordinateArray(e.getCoordinates());
  // will return null if no edge matches
  Edge matchEdge = (Edge) ocaMap.get(oca);
  return matchEdge; 
}
 
开发者ID:GitHubDroid,项目名称:geodroid_master_update,代码行数:14,代码来源:EdgeList.java


示例3: add

import com.vividsolutions.jts.noding.OrientedCoordinateArray; //导入依赖的package包/类
/**
 * Insert an edge unless it is already in the list
 */
public void add(Edge e) {
    this.edges.add(e);
    OrientedCoordinateArray oca = new OrientedCoordinateArray(e.getCoordinates());
    this.ocaMap.put(oca, e);
}
 
开发者ID:gegy1000,项目名称:Earth,代码行数:9,代码来源:EdgeList.java


示例4: add

import com.vividsolutions.jts.noding.OrientedCoordinateArray; //导入依赖的package包/类
/**
 * Insert an edge unless it is already in the list
 */
public void add(Edge e) {
    edges.add(e);
    OrientedCoordinateArray oca = new OrientedCoordinateArray(e.getCoordinates());
    ocaMap.put(oca, e);
}
 
开发者ID:Semantive,项目名称:jts,代码行数:9,代码来源:EdgeList.java


示例5: findEqualEdge

import com.vividsolutions.jts.noding.OrientedCoordinateArray; //导入依赖的package包/类
/**
 * If there is an edge equal to e already in the list, return it.
 * Otherwise return null.
 *
 * @return equal edge, if there is one already in the list
 * null otherwise
 */
public Edge findEqualEdge(Edge e) {
    OrientedCoordinateArray oca = new OrientedCoordinateArray(e.getCoordinates());
    // will return null if no edge matches
    Edge matchEdge = (Edge) this.ocaMap.get(oca);
    return matchEdge;
}
 
开发者ID:gegy1000,项目名称:Earth,代码行数:14,代码来源:EdgeList.java


示例6: findEqualEdge

import com.vividsolutions.jts.noding.OrientedCoordinateArray; //导入依赖的package包/类
/**
 * If there is an edge equal to e already in the list, return it.
 * Otherwise return null.
 *
 * @return equal edge, if there is one already in the list
 * null otherwise
 */
public Edge findEqualEdge(Edge e) {
    OrientedCoordinateArray oca = new OrientedCoordinateArray(e.getCoordinates());
    // will return null if no edge matches
    Edge matchEdge = (Edge) ocaMap.get(oca);
    return matchEdge;
}
 
开发者ID:Semantive,项目名称:jts,代码行数:14,代码来源:EdgeList.java



注:本文中的com.vividsolutions.jts.noding.OrientedCoordinateArray类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。