Unfortunately I have no snippets for that.
It should be robust enough to fix "mistakes" such as missing collection/empty collection and the likes.
If you do manage to get through it, a sample would fit nicely here:
http://trac.osgeo.org/mapguide/wiki/maestro/MaestroAPI

Regards, Kenneth Skovhede, GEOGRAF A/S



Greenhough, Jamie skrev:

Thanks Kenneth. I have just begun using the Maestro API. Thanks again for all your work on this.

Using this API to access the layer properties does sound easier than using a layerfactory to generate the LayerDefinition XML.

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.

Am I missing something? Do you have any maestro code snippets that will jumpstart my dev on this?

*From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] *On Behalf Of *Kenneth Skovhede, GEOGRAF A/S
*Sent:* Friday, November 07, 2008 1:59 AM
*To:* MapGuide Users Mail List
*Subject:* Re: [mapguide-users] FeatureSource. PointTypeStyle? LineTypeStyle?

And some providers return the wrong results.
Rather than using the layerfactory method, have you tried the MaestroAPI:
http://trac.osgeo.org/mapguide/wiki/maestro/MaestroAPI

Using the MaestroAPI, you can access the "PointTypeStyle" (and all other properties),
 as a class rather than Xml.

Regards, Kenneth Skovhede, GEOGRAF A/S



Jackie C. Ng skrev:

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:
    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

    [email protected] <mailto:[email protected]>

    http://lists.osgeo.org/mailman/listinfo/mapguide-users

-----
http://themapguyde.blogspot.com
http://www.linkedin.com/in/jackieng
----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
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users
_______________________________________________
mapguide-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users

Reply via email to