I have a project. These is a part using QueryTool.Execute(sql), but it's not return the true value.
This is my project: mediafire.com/?lmljmzzynx0
Ben, please correct for me! Thanks!
I have a project. These is a part using QueryTool.Execute(sql), but it's not return the true value.
This is my project: mediafire.com/?lmljmzzynx0
Ben, please correct for me! Thanks!
This is your sample: Select CNTRY_NAME,POP_CNTRY from CNTRY02 Where POP_CNTRY > 100000000 Order by POP_CNTRY
but I change it to: Select CNTRY_NAME,POP_CNTRY from CNTRY02 Where CNTRY_NAME like "%an%"
it do not return any value. Why? I think it's the true sql query.
Another question. How to execute sql query from 2 table? Can you give me an exp about it?
Truong,
Thanks for reporting and I confirmed that’s a bug. We converted the query language to UPPERCASE internally so when you input “%an%”, in fact it is translated to “%AN%”. We will solve it in the future release and thanks again for pointing it out.
Ben.
Ben,
Please solve it as soon as possible!
Another question, I can query from 2 table? How?
Truong,
In shapeFileFeatureSource, you can only query the current table using SQL. You can use CustomColumnFetch event to merge the 2 tables visually but SQL query is not available for that case.
We will solve the Upper Case issue in the upcoming version, by the way.
Thanks,
Ben
Posted By Ben on 03-20-2009 03:11 AM
Truong,
Thanks for reporting and I confirmed that’s a bug. We converted the query language to UPPERCASE internally so when you input “%an%”, in fact it is translated to “%AN%”. We will solve it in the future release and thanks again for pointing it out.
Ben.
Ben,
When have new version to fix it?
Truong,
I’m not very sure on the release date, that specific bug has been fixed but some features of the new version is not completed. I think we can have the new release sometime in April maybe.
Thanks,
Ben
Ben,
This bug make my map run not right. I expect the the new version as soon as posible. Can this bug fix by code?
Truong,
I think so. You can create your own class by inheriting ShapeFileFeatureSource and overwrite the ExecuteQueryCore method. In that method, you can call OLEDB to connect to the database and execute the input SQL query in a correct way.
Thanks,
Ben
Ben,
Do have Map Suite Web Edition have a new version?
I expect it much!
Truong,
Sorry for the wait. I think there might have a new release early next month. Hope that's not too late.
Thanks,
Ben
Sad, I must report on 20-04-2009.
Can you give me a version to fix SQLQuery bug?
Truong,
We will send a temp dll to you tomorrow with this bug fixed, please have a try then. Note that it is just a temporary assembly and may bring some new bugs.
Thanks,
Ben
Ben,
Thank you very much!
You are welcome, Let me know if anything else I can help.
Ben
After I add new MapSuiteCore.dll, I get an error:
Could not load file or assembly ‘NetTopologySuite,Version=1.7.2.19489, Culture=neutral, PublicKeyToken=f580a05016ebada1’ or one of its dependencies. The located assembly’s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
What should I do?
Truong,
It seems that the NetTopologySuite.dll doesn’t exist in the same folder with MapSuiteCore.dll, please make sure it’s there and have another try.
Thanks,
Ben
I added NetTopologySuite.dll in my project, but i also get that error!
Truong,
My fault, I forgot to let you know we also need the GeoAPI.dll in the same folder. The NTS has been upgraded to a newer version, have a try if you want, the old version still works.
Thanks,
Ben
602-NTS.zip (169 KB)
Ben,
Thanks you! That’s working!
Truong