[mapguide-users] Create feature source from FeatureReader

Kenneth, GEOGRAF A/S ks at geograf.dk
Sun Jan 6 08:01:35 EST 2008


I cannot guess what you wan't to do, because you mix the terms.

This is the basic structure in MapGuide:
Data Source (eg, MsSQL) -> FeatureSource (a connection to the 
datasource, created in Studio) -> LayerDefinition (styling of a table in 
the FeatureSource, created in Studio) -> MapDefinition (a collection of 
layers, created in studio) -> WebLayout (toolbar setup and others, 
created in Studio)

So, you cannot copy MsSql into the session repository.
You can manually run through all features in the database, and create 
and SDF with the data, but this might be extremely slow.

Usually, the desired result is some subset of the data in the MsSQL 
database.
This subset, can be retrieved using a Filter, placed on the 
LayerDefinition (equvalent to a SQL WHERE statement).

For further information on how to create/use filters, and how to create 
a LayerDefinition in the session repo, consult the PDF version of the 
Developers Guide (it should be installed along with MapGuide Open Source).

If you get stuck in the dev guide, please referer to the step that you 
got stuck at.

Regards, Kenneth, GEOGRAF A/S



mates skrev:
> How can i make a copy of a layer??
>
> Primary is the layer stored in a MsSQL DB.
>
> Is it possible to copy it to a session repository ?? 
>   


More information about the mapguide-users mailing list