Selection and sequencing of ifeatureclass selection results

Source: Internet
Author: User

The selection results for Ifeatureclass have recently been selected again, and the results of the re-selection are sorted by two attributes. The first selection is made by Ifeatureclass.select method, and the result of the selection is stored with the Iselectionset type variable SELECTIONSET1. Then you need to select the features in the SelectionSet1 again and sort the selection results, This is the problem: when you use the Iselectionset.search method for query selection and sorting, if you add a sort word (order by xxx) after the Iqueryfilter.whereclause selection statement, you get an error: The SQL command did not end correctly.

Questions: Iselectionset.search method selection does not support sorting by attributes

reason: not clear, suspect AE is not supported or own method is incorrect

Workaround: The second query result selectionset1.select is stored through the Iselectionset variable SelectionSet2, and the data in SelectionSet2 is sorted by attribute value using the Itablesort interface. The code is as follows:

  

Selection and sequencing of ifeatureclass selection results

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.