[mapguide-users] FeatureSource. PointTypeStyle? LineTypeStyle?
Kenneth Skovhede, GEOGRAF A/S
ks at geograf.dk
Fri Nov 7 03:58:37 EST 2008
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
>> mapguide-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>>
>>
>>
>
>
> -----
> http://themapguyde.blogspot.com
>
> http://www.linkedin.com/in/jackieng
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20081107/5d6cbecb/attachment.html
More information about the mapguide-users
mailing list