<!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">
Unfortunately I have no snippets for that.<br>
It should be robust enough to fix "mistakes" such as missing
collection/empty collection and the likes.<br>
If you do manage to get through it, a sample would fit nicely here:<br>
<a class="moz-txt-link-freetext" href="http://trac.osgeo.org/mapguide/wiki/maestro/MaestroAPI">http://trac.osgeo.org/mapguide/wiki/maestro/MaestroAPI</a><br>
<br>
<pre class="moz-signature" cols="72">Regards, Kenneth Skovhede, GEOGRAF A/S
</pre>
<br>
<br>
Greenhough, Jamie skrev:
<blockquote
cite="mid:0FB387BEC450E54795983A68276C727C75EB84@SCVANEX5.sierrasys.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html; ">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        color:black;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="Section1">
<p class="MsoNormal"><span
style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);">Thanks
Kenneth. I have just begun using the Maestro API. Thanks
again for all your work on this.<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);">Using
this API to access the layer properties does sound easier
than using a layerfactory to generate the LayerDefinition XML.<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);">So
I think I will need to create the VectorLayerDefinition,
VectorScaleRange, PointTypeStyle, PointSymbolization2DType,
MarkSymbolType, PointTypeStyleType,
and FillType. Then put all these pieces together into a LayerDefinition.<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);">Am
I missing something? Do you have any maestro code snippets that
will jumpstart my dev on this?<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);"><o:p> </o:p></span></p>
<div>
<div
style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0in 0in;">
<p class="MsoNormal"><b><span
style="font-size: 10pt; font-family: "Tahoma","sans-serif"; color: windowtext;">From:</span></b><span
style="font-size: 10pt; font-family: "Tahoma","sans-serif"; color: windowtext;">
<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> Friday, November 07, 2008 1:59 AM<br>
<b>To:</b> MapGuide Users Mail List<br>
<b>Subject:</b> Re: [mapguide-users] FeatureSource. PointTypeStyle?
LineTypeStyle?<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">And some providers return the wrong results.<br>
Rather than using the layerfactory method, have you tried the
MaestroAPI:<br>
<a moz-do-not-send="true"
href="http://trac.osgeo.org/mapguide/wiki/maestro/MaestroAPI">http://trac.osgeo.org/mapguide/wiki/maestro/MaestroAPI</a><br>
<br>
Using the MaestroAPI, you can access the "PointTypeStyle" (and all
other properties),<br>
as a class rather than Xml.<br>
<br>
<o:p></o:p></p>
<pre>Regards, Kenneth Skovhede, GEOGRAF A/S<o:p></o:p></pre>
<p class="MsoNormal"><br>
<br>
Jackie C. Ng skrev: <o:p></o:p></p>
<pre>Look at the class definition of the feature source it (the layer) is<o:p></o:p></pre>
<pre>referencing. More specifically, look at the geometry property and see what<o:p></o:p></pre>
<pre>geometry types it supports. This will correspond with what styles you can<o:p></o:p></pre>
<pre>have in your layer.<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>- Jackie<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Greenhough, Jamie wrote:<o:p></o:p></pre>
<pre> <o:p></o:p></pre>
<blockquote style="margin-top: 5pt; margin-bottom: 5pt;">
<pre>I'm trying to programmatically add shape files as a FeatureSource, and<o:p></o:p></pre>
<pre>then use a .NET layer factory (ported from PHP) to add a LayerDefinition<o:p></o:p></pre>
<pre>to the MapGuide repository.<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre> <o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>I can add the shape files and create a MapGuide FeatureSource just<o:p></o:p></pre>
<pre>great.<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre> <o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>I'm stuck with how to determine if the FeatureSource contains Line or<o:p></o:p></pre>
<pre>Point data. Specifically the <PointTypeStyle> and <LineTypeStyle> nodes<o:p></o:p></pre>
<pre>in the LayerDefinition.xml.<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre> <o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Does anyone have experience with this?<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre> <o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Thanks!<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre> <o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Jamie Greenhough | IT Consultant<o:p></o:p></pre>
<pre>Sierra Systems<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre> <o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre><o:p> </o:p></pre>
<pre><o:p> </o:p></pre>
<pre>----Notice Regarding Confidentiality----<o:p></o:p></pre>
<pre>This email, including any and all attachments, (this "Email") is intended<o:p></o:p></pre>
<pre>only for the party to whom it is addressed and may contain information<o:p></o:p></pre>
<pre>that is confidential or privileged. Sierra Systems Group Inc. and its<o:p></o:p></pre>
<pre>affiliates accept no responsibility for any loss or damage suffered by any<o:p></o:p></pre>
<pre>person resulting from any unauthorized use of or reliance upon this Email. <o:p></o:p></pre>
<pre>If you are not the intended recipient, you are hereby notified that any<o:p></o:p></pre>
<pre>dissemination, copying or other use of this Email is prohibited. Please<o:p></o:p></pre>
<pre>notify us of the error in communication by return email and destroy all<o:p></o:p></pre>
<pre>copies of this Email. Thank you.<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>mapguide-users mailing list<o:p></o:p></pre>
<pre><a moz-do-not-send="true"
href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a><o:p></o:p></pre>
<pre><a moz-do-not-send="true"
href="http://lists.osgeo.org/mailman/listinfo/mapguide-users">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a><o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre><o:p> </o:p></pre>
<pre> <o:p></o:p></pre>
</blockquote>
<pre><o:p> </o:p></pre>
<pre><o:p> </o:p></pre>
<pre>-----<o:p></o:p></pre>
<pre><a moz-do-not-send="true" href="http://themapguyde.blogspot.com">http://themapguyde.blogspot.com</a><o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre><a moz-do-not-send="true"
href="http://www.linkedin.com/in/jackieng">http://www.linkedin.com/in/jackieng</a><o:p></o:p></pre>
<pre> <o:p></o:p></pre>
</div>
<p>----Notice Regarding Confidentiality----<br>
This email, including any and all attachments, (this "Email") is
intended only for the party to whom it is addressed and may contain
information that is confidential or privileged. Sierra Systems Group
Inc. and its affiliates accept no responsibility for any loss or damage
suffered by any person resulting from any unauthorized use of or
reliance upon this Email. If you are not the intended recipient, you
are hereby notified that any dissemination, copying or other use of
this Email is prohibited. Please notify us of the error in
communication by return email and destroy all copies of this Email.
Thank you.</p>
<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>