<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=us-ascii" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
And some providers return the wrong results.<br>
Rather than using the layerfactory method, have you tried the
MaestroAPI:<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>
Using the MaestroAPI, you can access the "PointTypeStyle" (and all
other properties),<br>
as a class rather than Xml.<br>
<pre class="moz-signature" cols="72">Regards, Kenneth Skovhede, GEOGRAF A/S
</pre>
<br>
<br>
Jackie C. Ng skrev:
<blockquote cite="mid:20372411.post@talk.nabble.com" type="cite">
<pre wrap="">Look at the class definition of the feature source it (the layer) is
referencing. More specifically, look at the geometry property and see what
geometry types it supports. This will correspond with what styles you can
have in your layer.
- Jackie
Greenhough, Jamie wrote:
</pre>
<blockquote type="cite">
<pre wrap="">I'm trying to programmatically add shape files as a FeatureSource, and
then use a .NET layer factory (ported from PHP) to add a LayerDefinition
to the MapGuide repository.
I can add the shape files and create a MapGuide FeatureSource just
great.
I'm stuck with how to determine if the FeatureSource contains Line or
Point data. Specifically the <PointTypeStyle> and <LineTypeStyle> nodes
in the LayerDefinition.xml.
Does anyone have experience with this?
Thanks!
Jamie Greenhough | IT Consultant
Sierra Systems
----Notice Regarding Confidentiality----
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.
_______________________________________________
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>
<pre wrap=""><!---->
-----
<a class="moz-txt-link-freetext" href="http://themapguyde.blogspot.com">http://themapguyde.blogspot.com</a>
<a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/jackieng">http://www.linkedin.com/in/jackieng</a>
</pre>
</blockquote>
</body>
</html>