Tag Info

New answers tagged

1

Niko, I had similar problems, when I try to run a standalone QGis App. Important is that you call QApplication at first and then set context path for QGIS with QgsApplication::setPrefixPath("/usr", true); (in LINUX) before you call. QgsApplication::initQgis(); A program initialisation that works for me looks like this. #include ...


0

Edit 3/25/15 per discussion below: Take out the PageExtent function, and get the tagRECT bounds from the frame to export, the output resolution, and the screen resolution (bound * (300/96)). This should work to export your page layout: Imports ESRI.ArcGIS.Carto Imports ESRI.ArcGIS.esriSystem Imports ESRI.ArcGIS.Geometry Imports ESRI.ArcGIS.Output Imports ...


1

There is a better way to iterate through layers, look at Map.Layers(UID,True) as IEnumLayers... this limits your layer types (IFeatureLayer, IRasterLayer..) and looks in your group layers. UID pUID = new UIDClass(); pUID.Value = "{40A9E885-5533-11d0-98BE-00805F7CED21}"; // IFeatureLayers IEnumLayer pMapLayers = ArcMap.Document.FocusMap.get_Layers(pUID, ...


2

Except for the geomatics fundamentals, GIS development is like almost any other application development domain. You need the core courses you mention, plus, Web Programming and Computer Graphics, from your list. Other common basics should include Mathematics and Statistics. You do not state what Geomatics courses, if any, you have at your disposal. Since ...


1

With a little modification, I got this to work. Thank you very much for your help. This is important to note that this is for feature layers only, not tables. IMap map; IMxDocument mxDocument; mxDocument = (IMxDocument)ArcMap.Application.Document; map = mxDocument.FocusMap; mxDocument.ActiveView.Refresh(); ...


2

I use this code and it works......... private void OUT(string line) { IMap Map; IMxDocument mxDocument; IApplication App = ArcMap.Application; mxDocument = (IMxDocument)(App.Document); Map = mxDocument.FocusMap; var pDelLayerLine = (IFeatureLayer)Map.get_Layer(0); ...


0

The snippet I mentioned in my comment, http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#/d/000100000026000000.htm, is pulling in the ExportFormat value through the function argument. When the function is called from a different method it is providing that value (e.g. "PDF" or "JPG"), which you are not using the function arguments. ...



Top 50 recent answers are included