Hi,
I got the Npgsql.NpgsqlException , the detailed information is as follows:
BaseMessage="stack depth limit exceeded"
Code="54001"
This is my scenario, I have a PostgreFeatureLayer, and need to create a thematic map based on user's selection, for example two of the columns are Type and Sub_Type, the values in the Type column could be 0-9, and the values in the Sub_Type column could be 0-5 or 0-10 depending on the value in Type column. The user may want to create a thematic map for Type 3 only.
Here is how I did, I retrieved the data with Type=3 using QueryTools.ExecuteQuery method, as the QueryTool.ExecuteQuery method returns a datatable, so I retrieved the IDs from the datatable, used the FeatureSource.GetFeaturesByIDs() method to retrieve all the features, then created an InMemoryFeatureLayer using the retrieved features, and created thematic map for the InMemeoryFeatureLayer.
The exceptions throws when there are thousands of data at this line of code: postgreLyr.FeatureSource.GetFeaturesByIDs.
Is this the proper way to create a thematic map for a SQL query result?
Thanks
Rose