[fusion-dev] map query in Fusion 2

Simon Pelicon simon at sl-king.com
Tue Apr 21 03:39:28 EDT 2009


Hi!
Using map.query in Fusion 1.1 does not require geometry parameter as Fusion 2.0. (i use Mapguide Open Source 2.0.2)
Using map.query with Fusion 2.0 without options.geometry returns error:

Invalid argument(s):

	[1] = ""

The AGF text is invalid because it failed to parse into a valid geometry object.</h2>

Invalid argument(s):

	[1] = ""

The AGF text is invalid because it failed to parse into a valid geometry object.

Exception occurred in method MgParseAwkt.ParseAwkt at line 89 in file d:\build\mapguide_open_source_v2.0\build_30.11\mgdev\common\geometry\Parse/ParseAwkt.cpp

If i add geometry to other parameters works ok.

options.geometry = 'POLYGON((6129642 4676854,6776931 4676854,6776931 5042345,6129642 5042345,6129642 4676854))';
options.filter = 'KAPACITET <= 100';
options.layers = 'Bakarnikabal';
options.maxFeatures = 10;
map.query(options); 


How should i use query function in Fusion 2.0?



Thanks!

Simon







More information about the fusion-dev mailing list