Select to view content in your preferred language

Layer to GML Conversion..

2897
2
09-14-2010 08:02 AM
MuneerMajid
Regular Contributor
Hi all,

I have been trying this lately, but without any luck so far.. I need to export a layer in my SDE database to a GML File.. I am trying to use the 'Quick Export' Tool available under the Data Interoperability Toolbox for this purpose.. When I am doing this manually through Catalog I have not encountered any problem as such.. However, the same doesnt seem to work when doing it through my code..

Here is a very basic code chunk for this..
Geoprocessor m_GP = new Geoprocessor();
                        m_GP.AddToolbox("C:/Program Files/ArcGIS/ArcToolbox/Toolboxes/Data Interoperability Tools.tbx");
                        QuickExport m_QE = new QuickExport();
                        m_QE.Input = "Database Connections/genesis.sde/NE.TELCO/NE.EQUIPMENT";
                        m_QE.Output = "GMLSF, D:/GMLEXP/test.gml";
                        m_GP.OverwriteOutput = true;
                        m_GP.Execute(m_QE, null);

I have tried various input parameters etc nothing seems to actually work.. The code runs through the m_GP.Execute line without any error as such & in a flash.. Hence I can notice that there is no processing in this case.. The D:/GMLEXP Folder remains empty ..

Anyhow would really appreciate if some one can come up with any hints over this..

Regards,
Muneer..
0 Kudos
2 Replies
JeffReinhart
Esri Contributor
Muneer,

Your issues appears to be not checking out the extension in your script.  I have attached a link to AOInitialize for license Extension codes.

http://help.arcgis.com/en/sdk/10.0/vba_desktop/componenthelp/index.html#/esriLicenseExtensionCode_Co...

Thanks,
Jeff
0 Kudos
AndrewJones
Deactivated User
Muneer,

Your issues appears to be not checking out the extension in your script.  I have attached a link to AOInitialize for license Extension codes.

http://help.arcgis.com/en/sdk/10.0/vba_desktop/componenthelp/index.html#/esriLicenseExtensionCode_Co...

Thanks,
Jeff


Jeff,

I am doing the same as OP but we don't have a licence for Data Interop.  I have read however that GMLSF export (which is all we need) is possible WITHOUT a license (http://support.esri.com/en/knowledgebase/techarticles/detail/32381) but using the IAOInitialize to check out the extension fails (obviously!).  I am doing this within a Utility COM Object on AGS Standard.

Any clues about how to get this working?
0 Kudos