[mapguide-users] MsSQL FeatureSource problem

mates reklamama at centrum.sk
Wed Jun 20 17:32:08 EDT 2007


I imported two shapefiles to MsSQL DB 
Now i want to create a layer using one of the shapefiles from DB

I create a feature source document

Header

<?xml version="1.0" encoding="utf-8"?>
<ResourceDocumentHeader
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xsi:noNamespaceSchemaLocation="ResourceDocumentHeader-1.0.0.xsd">
 <General>
  <IconName>FeatureSource</IconName>
 </General>
 <Security xsi:noNamespaceSchemaLocation="ResourceSecurity-1.0.0.xsd">
  <Inherited>true</Inherited>
 </Security>
</ResourceDocumentHeader>

and Conten

<?xml version="1.0" encoding="utf-8"?>
<FeatureSource xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xsi:noNamespaceSchemaLocation="FeatureSource-1.0.0.xsd">
        <Provider>King.MsSqlSpatial.0.1.3</Provider>
 <Parameter>
               <Name>Username</Name>
               <Value>unittest</Value>
        </Parameter>
         <Parameter>
               <Name>Password</Name>
               <Value>uni</Value>
        </Parameter>
 <Parameter>
               <Name>DSN</Name>
               <Value>mssql</Value>
        </Parameter>
         <Parameter>
               <Name>TableSchema</Name>
               <Value>DBO</Value>
        </Parameter>
         <Parameter>
               <Name>KingFdoClass</Name>
               <Value>FDOCLASS</Value>
        </Parameter>
</FeatureSource>

Now i have a problem. How can i select the one of the shapefiles in DB, to
the layer?
Im using webstudio. I create a layer (File -> New -> Layer), and then i
select the created FeatureSource , but i thing something is wrong. :( The
prewiev also doesnt work.

Here is a screen
http://img254.imageshack.us/my.php?image=mg1gp9.jpg
    
Sorry for my bad english ;)

Mates

-- 
View this message in context: http://www.nabble.com/MsSQL-FeatureSource-problem-tf3955153s16610.html#a11222627
Sent from the MapGuide Users mailing list archive at Nabble.com.



More information about the mapguide-users mailing list