<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Yes, exactly. But it does require the "serverconfig.ini" file, and the
correct version of the MgApi binaries.<br>
<br>
You can use the IServerConnection interface, and then change the
connection depending on your access needs:<br>
<br>
<tt>ServerConnectionI con;<br>
if (servername == "localhost") //Perhaps check for LAN?<br>
con = new LocalNativeConnection(...);<br>
else<br>
con = new HttpServerConnection(...);<br>
<br>
LayerDefinition layer = con.GetLayerDefinition(...);<br>
</tt>
<pre class="moz-signature" cols="72">Regards, Kenneth Skovhede, GEOGRAF A/S
</pre>
<br>
<br>
Maksim Sestic skrev:
<blockquote cite="mid:000601c8d777$825381d0$0601a8c0@max2" type="cite">
<meta http-equiv="Content-Type" content="text/html; ">
<meta content="MSHTML 6.00.6000.16674" name="GENERATOR">
<div dir="ltr" align="left"><span class="125491710-26062008"><font
color="#0000ff" face="Verdana" size="2">Hi Kenneth,</font></span></div>
<div dir="ltr" align="left"><span class="125491710-26062008"></span> </div>
<div dir="ltr" align="left"><span class="125491710-26062008"><font
color="#0000ff" face="Verdana" size="2">Thanks for the clarification,
I didn't get the concept of Maesto API LocalNativeConnection in first
place. The assumption is - if I develop a managed server-side component
relying on Meastro API LocalNativeConnection, then it would use the
headerless loopback connection to MG repository (aside from managed
object (de)serialization)? </font></span></div>
<div dir="ltr" align="left"><span class="125491710-26062008"></span> </div>
<div dir="ltr" align="left"><span class="125491710-26062008"><font
color="#0000ff" face="Verdana" size="2">Regards,</font></span></div>
<div dir="ltr" align="left"><span class="125491710-26062008"><font
color="#0000ff" face="Verdana" size="2">Maksim Sestic</font></span></div>
<br>
<div class="OutlookMessageHeader" dir="ltr" align="left" lang="en-us">
<hr tabindex="-1"><font face="Tahoma" size="2"><b>From:</b>
<a class="moz-txt-link-abbreviated" href="mailto:mapguide-users-bounces@lists.osgeo.org">mapguide-users-bounces@lists.osgeo.org</a>
[<a class="moz-txt-link-freetext" href="mailto:mapguide-users-bounces@lists.osgeo.org">mailto:mapguide-users-bounces@lists.osgeo.org</a>] <b>On Behalf Of </b>Kenneth
Skovhede, GEOGRAF A/S<br>
<b>Sent:</b> Thursday, June 26, 2008 12:07<br>
<b>To:</b> MapGuide Users Mail List<br>
<b>Subject:</b> Re: [mapguide-users] Silverlight/Moonlight Viewer<br>
</font><br>
</div>
There are. If you create a MgResourceService object, you are talking to
the repository.<br>
And MaestroAPI uses this (with a LocalNativeConnection) to talk to the
MapGuide server.<br>
<br>
I have not followed it all the way, but I think that the
MgResourceService is about as close <br>
as it gets, to the repository content. <br>
<br>
Alternatively, you can use DBXml and read the database directly, but
that is a recipie for trouble.<br>
<br>
<pre class="moz-signature" cols="72">Regards, Kenneth Skovhede, GEOGRAF A/S
</pre>
<br>
<br>
Maksim Sestic skrev:
<blockquote cite="mid:000b01c8d770$5cb98430$0601a8c0@max2" type="cite">
<meta content="MSHTML 6.00.6000.16674" name="GENERATOR">
<div dir="ltr" align="left"><span class="375393109-26062008"><font
color="#0000ff" face="Verdana" size="2">I agree, the thing is that
there's no MG managed wrappers we can leverage to talk to the
repository manager directly. If we had one, we could start from that
point on. Could we use Meastro API for repository objects
serialization/deserialization in managed fashion then?</font></span></div>
<div dir="ltr" align="left"><span class="375393109-26062008"></span> </div>
<div dir="ltr" align="left"><span class="375393109-26062008"><font
color="#0000ff" face="Verdana" size="2">Regards,</font></span></div>
<div dir="ltr" align="left"><span class="375393109-26062008"><font
color="#0000ff" face="Verdana" size="2">Maksim Sestic</font></span></div>
<br>
<div class="OutlookMessageHeader" dir="ltr" align="left"
lang="en-us">
<hr tabindex="-1"> <font face="Tahoma" size="2"><b>From:</b> <a
moz-do-not-send="true" class="moz-txt-link-abbreviated"
href="mailto:mapguide-users-bounces@lists.osgeo.org">mapguide-users-bounces@lists.osgeo.org</a>
[<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="mailto:mapguide-users-bounces@lists.osgeo.org">mailto:mapguide-users-bounces@lists.osgeo.org</a>]
<b>On Behalf Of </b>Kenneth Skovhede, GEOGRAF A/S<br>
<b>Sent:</b> Thursday, June 26, 2008 11:30<br>
<b>To:</b> MapGuide Users Mail List<br>
<b>Subject:</b> Re: [mapguide-users] Silverlight/Moonlight Viewer<br>
</font><br>
</div>
Yes, the http roundtrip time is a beast.<br>
<br>
I think the server is (partly) divided, with one part being a
repository manager.<br>
You can already retrieve resources with calls, and coordinate data with
another.<br>
The MgApi interacts directly with the server, it is still serialized,
but binary.<br>
The MgApi uses the loopback connection, but does not use a webserver,
and has no http headers.<br>
<br>
So you can still do it, but I agree that it would make sense to divide
the different parts more rigidly.<br>
<pre class="moz-signature" cols="72">Regards, Kenneth Skovhede, GEOGRAF A/S
</pre>
<br>
<br>
Maksim Sestic skrev:
<blockquote cite="mid:005a01c8d769$b9efaf50$0601a8c0@max2"
type="cite">
<meta content="MSHTML 6.00.6000.16674" name="GENERATOR">
<div dir="ltr" align="left"><span class="859042108-26062008"><font
color="#0000ff" face="Verdana" size="2">Hi Kenneth,</font></span></div>
<div dir="ltr" align="left"><span class="859042108-26062008"></span> </div>
<div dir="ltr" align="left"><span class="859042108-26062008"><font
color="#0000ff" face="Verdana" size="2">I guess that someone :-) needs
to build a tier-neutral repository viewer first, then leverage it's API
via Silverlight/Moonlight. Presumably using .NET. Currently, the engine
is called MapGuide Server :-) but it's kernel is server-tier oriented
and any external communication with it goes via Http on mandatory base.
It would be perfect if we had respository manager as a separate API -
representing the actual core. Then, a web-tier API (another component)
leverages repository API to talk over Http with thin clients. So
developers might pick if they want to use either web-tier approach
(i.e. JavaScript) or want to talk via SOAP/linking to the repository
manager directly.</font></span></div>
<div dir="ltr" align="left"><span class="859042108-26062008"></span> </div>
<div dir="ltr" align="left"><span class="859042108-26062008"><font
color="#0000ff" face="Verdana" size="2">Don't know actually... just a
couple of thoughts from my side.</font></span></div>
<div dir="ltr" align="left"><span class="859042108-26062008"></span> </div>
<div dir="ltr" align="left"><font face="Verdana"><font size="2"><font
color="#0000ff"><span class="859042108-26062008">Regards,</span></font></font></font></div>
<div dir="ltr" align="left"><font face="Verdana"><font size="2"><font
color="#0000ff"><span class="859042108-26062008">Maksim Sestic</span></font></font></font></div>
<br>
<div class="OutlookMessageHeader" dir="ltr" align="left"
lang="en-us">
<hr tabindex="-1"> <font face="Tahoma" size="2"><b>From:</b> <a
class="moz-txt-link-abbreviated"
href="mailto:mapguide-users-bounces@lists.osgeo.org"
moz-do-not-send="true">mapguide-users-bounces@lists.osgeo.org</a> [<a
class="moz-txt-link-freetext"
href="mailto:mapguide-users-bounces@lists.osgeo.org"
moz-do-not-send="true">mailto:mapguide-users-bounces@lists.osgeo.org</a>]
<b>On Behalf Of </b>Kenneth Skovhede, GEOGRAF A/S<br>
<b>Sent:</b> Thursday, June 26, 2008 10:04<br>
<b>To:</b> MapGuide Users Mail List<br>
<b>Subject:</b> Re: [mapguide-users] Silverlight/Moonlight Viewer<br>
</font><br>
</div>
Silverlight uses GDI+, which also supports hardware acceleration.<br>
I would prefer Silverlight over Java because it intergrates better with
the html DOM (IMO).<br>
<br>
As for codebase, the current viewers are based on Javascript, and they
are limited to <br>
manipulating pre-rendered images.<br>
<br>
The DWF viewer is some of it, but it is still ActiveX based.<br>
I suppose one could make plugins for all browsers, but it still
difficult <br>
to persuade regular web users to install it.<br>
<br>
Since Silverlight/Moonlight is more likely to be installed already,<br>
and backed by Microsoft, it will probably be easier.<br>
<br>
Flash is another option, but it is terribly hard to work with (IMO).<br>
<pre class="moz-signature" cols="72">Regards, Kenneth Skovhede, GEOGRAF A/S
</pre>
<br>
<br>
Carl Jokl skrev:
<blockquote cite="mid:18128249.post@talk.nabble.com" type="cite">
<pre wrap="">I think that there could potentially be a number of alternatives to using an
Active X based viewer. I could see potential also for both Flash or Java to
create a viewer too. One problem with the Active X viewer in relation to the
clients of the company I work for is the security / administrative problem
for our clients. Organisations internet security policies could interfere
with deployment of an Active X control. I would think though that the same
issue would apply to a Java based viewer too. Silverlight might work better
in this regard.
One of the reasons I find the Java option interesting is the availability of
JOGL essentially allowing a Applet or Web Start application to be able to
take advantage of Hardware accelerated graphics. I don't know if any
alternative viewers have been worked on. If much of MapGuide is open source
would that include the viewer? If so it might be possible to start from the
existing viewer source code and port it to another platform.
Kenneth Skovhede, GEOGRAF A/S wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Has anyone started or is considering starting development of a viewer in
Silverlight/Moonlight?
Such a viewer should be able to achieve performance that is comparable
to the MapGuide 6.5 viewer,
without the need for an ActiveX plugin.
--
Regards, Kenneth Skovhede, GEOGRAF A/S
_______________________________________________
mapguide-users mailing list
<a class="moz-txt-link-abbreviated"
href="mailto:mapguide-users@lists.osgeo.org" moz-do-not-send="true">mapguide-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext"
href="http://lists.osgeo.org/mailman/listinfo/mapguide-users"
moz-do-not-send="true">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a>
</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
</blockquote>
<br>
<br>
__________ NOD32 3219 (20080625) Information __________<br>
<br>
This message was checked by NOD32 antivirus system.<br>
<a href="http://www.eset.com" moz-do-not-send="true">http://www.eset.com</a><br>
<pre wrap=""><hr size="4" width="90%">
_______________________________________________
mapguide-users mailing list
<a class="moz-txt-link-abbreviated"
href="mailto:mapguide-users@lists.osgeo.org" moz-do-not-send="true">mapguide-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext"
href="http://lists.osgeo.org/mailman/listinfo/mapguide-users"
moz-do-not-send="true">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a>
</pre>
</blockquote>
<br>
<br>
__________ NOD32 3219 (20080625) Information __________<br>
<br>
This message was checked by NOD32 antivirus system.<br>
<a href="http://www.eset.com" moz-do-not-send="true">http://www.eset.com</a><br>
<pre wrap=""><hr size="4" width="90%">
_______________________________________________
mapguide-users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated"
href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://lists.osgeo.org/mailman/listinfo/mapguide-users">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a>
</pre>
</blockquote>
<br>
<br>
__________ NOD32 3219 (20080625) Information __________<br>
<br>
This message was checked by NOD32 antivirus system.<br>
<a moz-do-not-send="true" href="http://www.eset.com">http://www.eset.com</a><br>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
mapguide-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapguide-users">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a>
</pre>
</blockquote>
</body>
</html>