[mapguide-users] Creating an ODBC feature source dynamically

sanpet osgeo at fig-tech.com
Fri Dec 10 17:50:37 EST 2010


Hi,

I am trying to create a feature source and layer by dynamically connecting
to Sql Server 2005 via ODBC. 
Everything seems to work fine in the code - the resources are created in teh
folders in MapGuide. However when I click on the layer in the Studio, I get
"Resource Id does not refer to a valid feature source". I am only able to
resolve this by opening the Feature Source, clicking "show Table" and
indicating the DB table and X, Y columns - which makes sense, but I don't
want to do this manually. How do I achive this via the API, i.e. indicate
the table and columns?

Thanks a lot for your help.
Sanpet
-- 
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Creating-an-ODBC-feature-source-dynamically-tp5824885p5824885.html
Sent from the MapGuide Users mailing list archive at Nabble.com.


More information about the mapguide-users mailing list