Re: [mapguide-users] How to Load Runtime map in mapviewerajax

2008-12-01 Thread padmini godavarthi
Hi thanks for u r reply. But i dont want to give path for the map definition like layout.Map.ResourceId = Library://mymap.MapDefinition; i want to create it dynamically in the code .After creating weblayout how to call it in the ajaxviewer sample application. If u know this plz help

Re: [mapguide-users] How to Load Runtime map in mapviewerajax

2008-12-01 Thread Kenneth Skovhede, GEOGRAF A/S
You can't. You can only reference items in the repository. You can create a new MapDefinition with: MaestroAPI.MapDefinition mdef = new MaestroAPI.MapDefinition(); You can then save that under an ID (either Library (permanent) or Session (temporary)), and reference it from a WebLayout. A

[mapguide-users] How to create filled polygon from data file?

2008-12-01 Thread jamesdudden
Hi, Is it possible to create a filled polygon from data? - The data has a centre point (longitute/latitude) and a string of points (longitute/latitude) that make up the shape outline. Would this be done in MGStudio or would it need to be done in code. Any help or advie would be appreciated.

[mapguide-users] XML Parser error for Feature Sources

2008-12-01 Thread cagray
Hi, I have a web application in .NET c# which allows a user to define their own feature sources and set the connection parameters. It is very similar to doing the same through map guide's own interface. However no matter I do to the xml in the code behind I get the error: An exception occurred

Re: [mapguide-users] Search Query and shorter url's

2008-12-01 Thread jamesdudden
Sumedho wrote: I tried the custom search tool but it didnt return any results. There was an error in the search query. I am using .shp files so wondering if something is up with that. I am interested in the ad hoc query command shown in the live application gallery. It says that the

Re: [mapguide-users] How to create filled polygon from data file?

2008-12-01 Thread Zac Spitzer
you could just create a polygon from the points using WKT ie POLYGON (( 10 10, 10 20, 20 20, 20 15, 10 10)) and insert that via some (simple ish) code into a featuresource, either via FDO or much more simply in your favourite database with an insert statement MG Studio is more a XML editor z

Re: [mapguide-users] How to create filled polygon from data file?

2008-12-01 Thread Kenneth Skovhede, GEOGRAF A/S
I'm pretty sure you can't do this through Studio (hapilly corrected). It would be straightforward through code. Simply create the WKT for the polygons like POLYGON(( + points string + )), and insert this with the Fdo Insert/Update command (avalible from the MapGuide API). Regards, Kenneth

Re: [mapguide-users] XML Parser error for Feature Sources

2008-12-01 Thread cagray
Thanks for the reply. Unfortunately that did not solve my problem and I got the same error. Is there anything else I could try? I was not aware you could do this without generating/manipulating the xml. My web tool has to fully control setting up data sources. So the user selects a provider and

Re: [mapguide-users] XML Parser error for Feature Sources

2008-12-01 Thread cagray
The error in the log is: Error: An exception occurred in the XML parser. StackTrace: - MgResourceServiceHandler.ProcessOperation line 80 file d:\build\mapguide_open_source_v2.0\build_30.11\mgdev\server\src\services\resource\ResourceServiceHandler.cpp - MgOpSetResource.Execute line 103 file

[mapguide-users] Reading data resulting from a SQL query

2008-12-01 Thread [EMAIL PROTECTED]
Hi everybody, is it possible to run a SQL query on a DB table for reading its resulting data? Thank you for your help Cheers Carmelo ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] XML Parser error for Feature Sources

2008-12-01 Thread cagray
I tried your example and I always get an error of: Object reference not set to an instance of an object. when I do: fs.Parameter[DefaultFilePath] = C:\my.shp; or other similar attempts for other providers. If I take this line out it creates the resource no problem. Do you know why this would

[mapguide-users] Problem with plot DWF (to Brian Berdel)

2008-12-01 Thread Sergio Nistal Calvo
Hi, and I'm sorry for many mails: Only I have one problem. I have installed the program Autodesk design review, version 9.0.0.96. With this program works for me the plot of DWF of Sheboygan, but not with my data type shp, sbx, sbn, dbf, idx and shx (or with the transformation to sdf with

Re: [mapguide-users] XML Parser error for Feature Sources

2008-12-01 Thread Kenneth Skovhede, GEOGRAF A/S
You have to initialize the parameter collection manually: fs.Parameter = new MaestroAPI.NameValuePairTypeCollection(); (I forgot to mention that). I just tried to download MaestroAPI.chm, and the link works for me:

Re: [mapguide-users] Reading data resulting from a SQL query

2008-12-01 Thread Kenneth Skovhede, GEOGRAF A/S
I think I read something about doing a pass-through query. You might be able to find info on it on the FDO website. For most queries, it is sufficient to pass an FDO filter. From that you can read values as you please:

Re: [mapguide-users] Permanent changes in data

2008-12-01 Thread Kenneth Skovhede, GEOGRAF A/S
You could be affected by this bug: http://trac.osgeo.org/mapguide/ticket/649 Otherwise, try to post a section of the code, maybe someone will spot something obvious. Regards, Kenneth Skovhede, GEOGRAF A/S Stefan Dalakov skrev: Hi all, I am trying to add a feature (permanently) to a data