Supermap iclient space query join external Table query multi-Table field sample code

Source: Internet
Author: User

Original article. For more information, see the source! Http://blog.csdn.net/songhfu

The following is an example of the code used to query a space table and a joined table field:

/*

* Code indicating successful association test
**/
VaR joinitem = new Supermap. Rest. joinitem ({
Foreigntablename: "v_enableview_land ",
Joinfilter: "bbs_parcel.cadastralno = v_enableview_land.cadastralno ",
Jointype: "innerjoin"
});
VaR queryparam, querybygeometryparameters, queryservice;
Queryparam = new Supermap. Rest. filterparameter ({
Joinitems: [joinitem],
Name: "[email protected] _ sysdb ",
Fields :[
"Bbs_parcel.cadastralno as cadastralno ",
"Bbs_parcel.landuser as landuser ",
"Bbs_parcel.parceladdress as parceladdress ",
"Bbs_parcel.rightstype_cn as rightstype_cn ",
"Bbs_parcel.landpurpose_cn as landpurpose_cn ",
"Bbs_parcel.plotratio as plotratio ",
"Bbs_parcel.postaddress as postaddress ",
"Bbs_parcel.bookarea as bookarea ",
"Bbs_parcel.realarea as realarea ",
"V_enableview_land.fjbm as fjbm"],
Displayfilters: ["v_enableview_land.fjbm = '" + _ discode + "' or v_enableview_land.fjbm is null"]

});

Querybygeometryparameters = new Supermap. Rest. querybygeometryparameters ({
Queryparams: [queryparam],
Geometry: feature. geometry,
Spatialquerymode: Supermap. Rest. spatialquerymode. intersect
});


Supermap iclient space query join external Table query multi-Table field sample code

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.