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
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
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.
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
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
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
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
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
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
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
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
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
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:
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:
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
15 matches
Mail list logo