WebCAD-Lib-TS API 文档 - v1.0.0
    Preparing search index...

    Interface IConditionQueryFeatures

    条件查询实体参数

    interface IConditionQueryFeatures {
        zoom?: number;
        mapid?: string;
        version?: string;
        layer?: string;
        limit?: number;
        fields?: string;
        geom?: boolean;
        simplifyTolerance?: boolean;
        useCache?: boolean;
        toMapCoordinate?: boolean;
        condition: string;
        bounds?: [number, number, number, number];
        beginpos?: number;
        includegeom?: boolean;
        realgeom?: boolean;
        isContains?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    zoom?: number

    当前级别.

    mapid?: string

    地图ID(为空时采用当前打开的mapid).

    version?: string

    地图版本(为空时采用当前打开的地图版本).

    layer?: string

    图层名称(为空时采用当前打开的地图图层名称).

    limit?: number

    返回最多的记录条数.

    fields?: string

    是返回的字段列表,多个之是用逗号,分开,如. "name,objectId"

    geom?: boolean

    是否为几何图形查询.

    simplifyTolerance?: boolean

    GeoJSON几何数据简化墨托卡距离,默认为零,不简化。例如允许10级别以上一个像素级别的误差,可用 map.pixelToGeoLength(1, 10) * vjmap.Projection.EQUATORIAL_SEMIPERIMETER * 2 / map.getGeoBounds(1.0).width()

    useCache?: boolean

    启动cache(内存打开的图形有效).

    toMapCoordinate?: boolean

    查询返回的坐标默认为墨卡托坐标,返回会程序会自动转化为cad坐标,如果要直接返回cad地图坐标,需要把toMapCoordinate设置为true.

    condition: string

    条件.

    bounds?: [number, number, number, number]

    范围.

    beginpos?: number

    记录开始位置.

    includegeom?: boolean

    是否返回几何数据,为了性能问题,realgeom为false时,如果返回条数大于1.只会返回每个实体的外包矩形,如果条数为1的话,会返回此实体的真实geojson;realgeom为true时每条都会返回实体的geojson

    realgeom?: boolean

    是否返回真实实体几何geojson.与 includegeom参数,结合使用。参考includegeom的用法

    isContains?: boolean

    是否为包含关系, true为包含关系,false为相交关系,默认false. (传入了bounds进行范围查询时有效)