Lee, Which oracle FDO are you using (SL King or Autodesk)?
There are different parameters for each. I can send through some c# .net code I cam currently using for both if you would like. Mark -----Original Message----- From: mapguide-users-boun...@lists.osgeo.org [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Lee Sent: Wednesday, 24 November 2010 12:27 PM To: mapguide-users@lists.osgeo.org Subject: [mapguide-users] Re: Create feature source Thanks Jackie, yes I do have an oracle connection set and running the resource identifier is Library://New Feature source.FeatureSource. Replacing sdfresid with Library://New Feature source.FeatureSource I need to add other code for parameters, create schemas etc cant seem to find an example of how to configure oracle feature source: // Create the Feature Source (SDF) MgFeatureSchema sdfSchema = this.CreateFilterSchema(); MgCreateSdfParams sdfParams = new MgCreateSdfParams("MAPCS", map.GetMapSRS(), sdfSchema); featureService.CreateFeatureSource(sdfResId, sdfParams); // Create the Layer MgResourceIdentifier layerResId = new MgResourceIdentifier("Session:" + GetParameter(this.args, "SESSION") + "//Filter.LayerDefinition"); String layerDefinition = File.ReadAllText(GetQueryXmlTemplatePath()); layerDefinition = layerDefinition.Replace("%s", sdfResId.ToString()); MgByteReader reader = new MgByteReader(layerDefinition, "text/xml"); resourceService.SetResource(layerResId, reader, null); layer = new MgLayer(layerResId, resourceService); layer.SetName("_QuerySpatialFilter"); layer.SetLegendLabel("_QuerySpatialFilter"); layer.SetDisplayInLegend(false); layer.SetSelectable(false); Any help greatly appreciated. Lee -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Create-feature-source-tp5768882p5 769051.html Sent from the MapGuide Users mailing list archive at Nabble.com. _______________________________________________ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users --------------------------------------------------------------------- To report this email as spam, please forward to s...@mailcontrol.com --------------------------------------------------------------------- ************************************************************************* This e-mail (including any attachments) may contain confidential or privileged information and is intended for the sole use of the person(s) to whom it is addressed. If you are not the intended recipient, or the person responsible for delivering this message to the intended recipient, please notify the sender of the message or send an e-mail to mailto:help.d...@ergon.com.au immediately, and delete all copies. Any unauthorised review, use, alteration, disclosure or distribution of this e-mail by an unintended recipient is prohibited. Ergon Energy accepts no responsibility for the content of any e-mail sent by an employee which is of a personal nature. Ergon Energy Corporation Limited ABN 50 087 646 062 ************************************************************************* _______________________________________________ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users