JSTS Class

JSTS Class

本系列文章主要參考JSTS的API 主要講解一些類或方法.

學習內(nèi)容

Namespaces

Interfaces

開啟JSTS之旅

1 新建jstsInfo.js文件

const jsts = require('jsts')
//打印jsts的版本信息
console.log(jsts.version);
//打印jsts對象
console.log(jsts);

2 node jstsInfo.js

2.0.6 (0a96a17)

{ algorithm: 
   { distance: 
      { DiscreteHausdorffDistance: [Object],
        DistanceToPoint: [Object],
        PointPairDistance: [Object] },
     locate: 
      { IndexedPointInAreaLocator: [Object],
        PointOnGeometryLocator: [Object],
        SimplePointInAreaLocator: [Object] },
     match: 
      { AreaSimilarityMeasure: [Object],
        HausdorffSimilarityMeasure: [Object],
        SimilarityMeasure: [Object],
        SimilarityMeasureCombiner: [Object] },
     Angle: 
      { [Function: re]
        constructor_: [Function],
        PI_TIMES_2: 6.283185307179586,
        PI_OVER_2: 1.5707963267948966,
        PI_OVER_4: 0.7853981633974483,
        COUNTERCLOCKWISE: 1,
        CLOCKWISE: -1,
        NONE: 0 },
     Area: { [Function: Ot] constructor_: [Function] },
     Centroid: { [Function: rn] constructor_: [Function] },
     ConvexHull: { [Function: cn] RadialComparator: [Object], constructor_: [Function] },
     Distance: { [Function: A] constructor_: [Function] },
     InteriorPointArea: { [Function: un] SafeBisectorFinder: [Object], constructor_: [Function] },
     InteriorPointLine: { [Function: dn] constructor_: [Function] },
     InteriorPointPoint: { [Function: _n] constructor_: [Function] },
     Length: { [Function: xt] constructor_: [Function] },
     Orientation: 
      { [Function: v]
        constructor_: [Function],
        CLOCKWISE: -1,
        RIGHT: -1,
        COUNTERCLOCKWISE: 1,
        LEFT: 1,
        COLLINEAR: 0,
        STRAIGHT: 0 },
     PointLocation: { [Function: je] constructor_: [Function] },
     PointLocator: { [Function: fn] constructor_: [Function] },
     RobustLineIntersector: { [Function: ee] constructor_: [Function] },
     MinimumBoundingCircle: { [Function: pn] constructor_: [Function] },
     MinimumDiameter: { [Function: mn] constructor_: [Function] } },
  densify: 
   { Densifier: { [Function: xn] DensifyTransformer: [Object], constructor_: [Function] } },
  dissolve: { LineDissolver: { [Function: Rn] constructor_: [Function] } },
  geom: 
   { Coordinate: 
      { [Function: g]
        DimensionalComparator: [Object],
        constructor_: [Function],
        serialVersionUID: 6683108902428367000,
        NULL_ORDINATE: undefined,
        X: 0,
        Y: 1,
        Z: 2 },
     CoordinateList: { [Function: I] constructor_: [Function], coordArrayType: [] },
     Envelope: 
      { [Function: N]
        constructor_: [Function],
        serialVersionUID: 5873921885273102000 },
     LineSegment: 
      { [Function: ne]
        constructor_: [Function],
        serialVersionUID: 3252005833466256400 },
     GeometryFactory: 
      { [Function: Wt]
        CloneOp: [Object],
        constructor_: [Function],
        serialVersionUID: -6820524753094096000 },
     Geometry: 
      { [Function: q]
        constructor_: [Function],
        serialVersionUID: 8763622679187377000,
        TYPECODE_POINT: 0,
        TYPECODE_MULTIPOINT: 1,
        TYPECODE_LINESTRING: 2,
        TYPECODE_LINEARRING: 3,
        TYPECODE_MULTILINESTRING: 4,
        TYPECODE_POLYGON: 5,
        TYPECODE_MULTIPOLYGON: 6,
        TYPECODE_GEOMETRYCOLLECTION: 7,
        TYPENAME_POINT: 'Point',
        TYPENAME_MULTIPOINT: 'MultiPoint',
        TYPENAME_LINESTRING: 'LineString',
        TYPENAME_LINEARRING: 'LinearRing',
        TYPENAME_MULTILINESTRING: 'MultiLineString',
        TYPENAME_POLYGON: 'Polygon',
        TYPENAME_MULTIPOLYGON: 'MultiPolygon',
        TYPENAME_GEOMETRYCOLLECTION: 'GeometryCollection',
        geometryChangedFilter: [Object] },
     Point: 
      { [Function: vt]
        constructor_: [Function],
        serialVersionUID: 4902022702746615000 },
     LineString: 
      { [Function: Rt]
        constructor_: [Function],
        serialVersionUID: 3110669828065365500 },
     LinearRing: 
      { [Function: Dt]
        constructor_: [Function],
        MINIMUM_VALID_SIZE: 4,
        serialVersionUID: -4261142084085851600 },
     Polygon: 
      { [Function: Mt]
        constructor_: [Function],
        serialVersionUID: -3494792200821764600 },
     GeometryCollection: 
      { [Function: ft]
        constructor_: [Function],
        serialVersionUID: -5694727726395021000 },
     MultiPoint: 
      { [Function: At]
        constructor_: [Function],
        serialVersionUID: -8048474874175356000 },
     MultiLineString: 
      { [Function: pt]
        constructor_: [Function],
        serialVersionUID: 8166665132445434000 },
     MultiPolygon: 
      { [Function: Ft]
        constructor_: [Function],
        serialVersionUID: -551033529766975900 },
     Dimension: 
      { [Function: gt]
        constructor_: [Function],
        P: 0,
        L: 1,
        A: 2,
        FALSE: -1,
        TRUE: -2,
        DONTCARE: -3,
        SYM_FALSE: 'F',
        SYM_TRUE: 'T',
        SYM_DONTCARE: '*',
        SYM_P: '0',
        SYM_L: '1',
        SYM_A: '2' },
     IntersectionMatrix: { [Function: ie] constructor_: [Function] },
     PrecisionModel: 
      { [Function: Xt]
        Type: [Object],
        constructor_: [Function],
        serialVersionUID: 7777263578777804000,
        FIXED: [Object],
        FLOATING: [Object],
        FLOATING_SINGLE: [Object],
        maximumPreciseValue: 9007199254740992 },
     Location: 
      { [Function: se]
        constructor_: [Function],
        INTERIOR: 0,
        BOUNDARY: 1,
        EXTERIOR: 2,
        NONE: -1 },
     Triangle: { [Function: oe] constructor_: [Function] },
     util: 
      { AffineTransformation: [Object],
        AffineTransformationBuilder: [Object],
        AffineTransformationFactory: [Object],
        ComponentCoordinateExtracter: [Object],
        GeometryCollectionMapper: [Object],
        GeometryCombiner: [Object],
        GeometryEditor: [Object],
        GeometryExtracter: [Object],
        GeometryMapper: [Object],
        GeometryTransformer: [Object],
        LineStringExtracter: [Object],
        LinearComponentExtracter: [Object],
        MapOp: [Object],
        PointExtracter: [Object],
        PolygonExtracter: [Object],
        ShortCircuitedGeometryVisitor: [Object],
        SineStarFactory: [Object] } },
  geomgraph: { GeometryGraph: { [Function: Jn] constructor_: [Function] } },
  index: 
   { kdtree: { KdTree: [Object] },
     quadtree: { Quadtree: [Object] },
     strtree: { STRtree: [Object] } },
  io: 
   { GeoJSONReader: [Function: GeoJSONReader],
     GeoJSONWriter: [Function: GeoJSONWriter],
     OL3Parser: [Function: OL3Parser],
     WKTReader: [Function: WKTReader],
     WKTWriter: [Function: $t] },
  linearref: 
   { LengthIndexedLine: { [Function: Uo] constructor_: [Function] },
     LengthLocationMap: { [Function: Yo] constructor_: [Function] },
     LinearGeometryBuilder: { [Function: qo] constructor_: [Function] },
     LinearIterator: { [Function: Do] constructor_: [Function] },
     LinearLocation: { [Function: Ao] constructor_: [Function] },
     LocationIndexedLine: { [Function: Vo] constructor_: [Function] } },
  noding: 
   { MCIndexNoder: { [Function: Us] SegmentOverlapAction: [Object], constructor_: [Function] },
     ScaledNoder: { [Function: Xs] constructor_: [Function] },
     SegmentString: { [Function: Ds] constructor_: [Function] } },
  operation: 
   { BoundaryOp: { [Function: mt] constructor_: [Function] },
     IsSimpleOp: { [Function: Ws] EndpointInfo: [Object], constructor_: [Function] },
     buffer: { BufferOp: [Object], BufferParameters: [Object] },
     distance: { DistanceOp: [Object] },
     linemerge: { LineMerger: [Object] },
     overlay: { snap: [Object], OverlayOp: [Object] },
     polygonize: { Polygonizer: [Object] },
     relate: { RelateOp: [Object] },
     union: { UnaryUnionOp: [Object] },
     valid: { IsValidOp: [Object], ConsistentAreaTester: [Object] } },
  precision: 
   { GeometryPrecisionReducer: { [Function: kr] constructor_: [Function] } },
  simplify: 
   { DouglasPeuckerSimplifier: { [Function: Wr] DPTransformer: [Object], constructor_: [Function] },
     TopologyPreservingSimplifier: 
      { [Function: eo]
        LineStringTransformer: [Object],
        LineStringMapBuilderFilter: [Object],
        constructor_: [Function] },
     VWSimplifier: { [Function: oo] VWTransformer: [Object], constructor_: [Function] } },
  triangulate: 
   { ConformingDelaunayTriangulationBuilder: { [Function: vo] constructor_: [Function] },
     DelaunayTriangulationBuilder: { [Function: Po] constructor_: [Function] },
     VoronoiDiagramBuilder: { [Function: Oo] constructor_: [Function] },
     quadedge: { Vertex: [Object] } },
  util: 
   { CollectionUtil: { [Function: Xo] Function: [Function], constructor_: [Function] },
     CoordinateArrayFilter: { [Function: Ho] constructor_: [Function] },
     CoordinateCountFilter: { [Function: Wo] constructor_: [Function] },
     GeometricShapeFactory: { [Function: we] Dimensions: [Object], constructor_: [Function] },
     NumberUtil: { [Function: e] constructor_: [Function] },
     ObjectCounter: { [Function: jo] Counter: [Object], constructor_: [Function] },
     PriorityQueue: { [Function: ps] constructor_: [Function] },
     StringUtil: 
      { [Function: wt]
        constructor_: [Function],
        NEWLINE: '\n',
        SIMPLE_ORDINATE_FORMAT: {} },
     UniqueCoordinateArrayFilter: { [Function: an] constructor_: [Function] } },
  version: '2.0.6 (0a96a17)' }
最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
  • 序言:七十年代末阶界,一起剝皮案震驚了整個濱河市,隨后出現(xiàn)的幾起案子刹勃,更是在濱河造成了極大的恐慌剩蟀,老刑警劉巖,帶你破解...
    沈念sama閱讀 211,348評論 6 491
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件苦酱,死亡現(xiàn)場離奇詭異售貌,居然都是意外死亡,警方通過查閱死者的電腦和手機疫萤,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 90,122評論 2 385
  • 文/潘曉璐 我一進店門颂跨,熙熙樓的掌柜王于貴愁眉苦臉地迎上來律姨,“玉大人诱告,你說我怎么就攤上這事』逞Γ” “怎么了尾序?”我有些...
    開封第一講書人閱讀 156,936評論 0 347
  • 文/不壞的土叔 我叫張陵钓丰,是天一觀的道長。 經(jīng)常有香客問我每币,道長携丁,這世上最難降的妖魔是什么? 我笑而不...
    開封第一講書人閱讀 56,427評論 1 283
  • 正文 為了忘掉前任兰怠,我火速辦了婚禮梦鉴,結(jié)果婚禮上,老公的妹妹穿的比我還像新娘揭保。我一直安慰自己肥橙,他們只是感情好,可當我...
    茶點故事閱讀 65,467評論 6 385
  • 文/花漫 我一把揭開白布掖举。 她就那樣靜靜地躺著快骗,像睡著了一般。 火紅的嫁衣襯著肌膚如雪塔次。 梳的紋絲不亂的頭發(fā)上方篮,一...
    開封第一講書人閱讀 49,785評論 1 290
  • 那天,我揣著相機與錄音励负,去河邊找鬼藕溅。 笑死,一個胖子當著我的面吹牛继榆,可吹牛的內(nèi)容都是我干的巾表。 我是一名探鬼主播汁掠,決...
    沈念sama閱讀 38,931評論 3 406
  • 文/蒼蘭香墨 我猛地睜開眼,長吁一口氣:“原來是場噩夢啊……” “哼集币!你這毒婦竟也來了考阱?” 一聲冷哼從身側(cè)響起,我...
    開封第一講書人閱讀 37,696評論 0 266
  • 序言:老撾萬榮一對情侶失蹤鞠苟,失蹤者是張志新(化名)和其女友劉穎乞榨,沒想到半個月后,有當?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體当娱,經(jīng)...
    沈念sama閱讀 44,141評論 1 303
  • 正文 獨居荒郊野嶺守林人離奇死亡吃既,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點故事閱讀 36,483評論 2 327
  • 正文 我和宋清朗相戀三年,在試婚紗的時候發(fā)現(xiàn)自己被綠了跨细。 大學時的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片鹦倚。...
    茶點故事閱讀 38,625評論 1 340
  • 序言:一個原本活蹦亂跳的男人離奇死亡,死狀恐怖冀惭,靈堂內(nèi)的尸體忽然破棺而出震叙,到底是詐尸還是另有隱情,我是刑警寧澤云头,帶...
    沈念sama閱讀 34,291評論 4 329
  • 正文 年R本政府宣布捐友,位于F島的核電站,受9級特大地震影響溃槐,放射性物質(zhì)發(fā)生泄漏。R本人自食惡果不足惜科吭,卻給世界環(huán)境...
    茶點故事閱讀 39,892評論 3 312
  • 文/蒙蒙 一昏滴、第九天 我趴在偏房一處隱蔽的房頂上張望。 院中可真熱鬧对人,春花似錦谣殊、人聲如沸。這莊子的主人今日做“春日...
    開封第一講書人閱讀 30,741評論 0 21
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽。三九已至势告,卻和暖如春蛇捌,著一層夾襖步出監(jiān)牢的瞬間,已是汗流浹背咱台。 一陣腳步聲響...
    開封第一講書人閱讀 31,977評論 1 265
  • 我被黑心中介騙來泰國打工络拌, 沒想到剛下飛機就差點兒被人妖公主榨干…… 1. 我叫王不留,地道東北人回溺。 一個月前我還...
    沈念sama閱讀 46,324評論 2 360
  • 正文 我出身青樓春贸,卻偏偏與公主長得像混萝,于是被迫代替她去往敵國和親。 傳聞我的和親對象是個殘疾皇子萍恕,可洞房花燭夜當晚...
    茶點故事閱讀 43,492評論 2 348

推薦閱讀更多精彩內(nèi)容