Hot answers tagged

5

I usually look at http://epsg.io or http://spatialreference.org for all my WKT needs.


3

As I recall, you need to listen to IDocumentEvents. When OpenDocument fires cast the IMxDocument to IDocumentDatasets. For each IDatasetLayer2 in IDocumentDatasets.Datasets: Cast IDatasetLayer2.DataSourceName to IDataSetName. Get (by value) IDatasetName.WorkspaceName. Get (by value) the propertyset from IWorkspaceName.ConnectionProperties. Change ...


3

GDAL has methods for that. From http://www.gdal.org/classOGRSpatialReference.html: "contains methods for converting between this object organization and well known text (WKT) format". ExportToWkt is probably what you need "Convert this SRS into WKT format. Note that the returned WKT string should be freed with OGRFree() or CPLFree() when no longer ...


1

Have you tried: projected coordinate systems: https://developers.arcgis.com/javascript/jshelp/pcs.html geographic coordinate systems: https://developers.arcgis.com/javascript/jshelp/gcs.html


1

So it turns out that to use an Identity Tool you need to pass it the string of the location for the FeatureClass. This was somewhat confusing as the parameters state that it must be an Object. Identity ident = new Identity(); ident.in_features = inputFeatureClassLocation;//String ident.identity_features = ...


1

Red -> Blue -> Green -> Red etc. Just wrap your pPage.BackgroundColor = in if/else if/else something like if (pPage.BackgroundColor.RGB == ic.RGB) { pPage.BackgroundColor = ib; } else if (pPage.BackgroundColor.RGB == ib.RGB) { pPage.BackgroundColor = ig; } else { pPage.BackgroundColor = ic; }


1

If you download the GDAL source, you'll have the source for gdal_translate.cpp. Just peruse the code and duplicate it in C#. The translation is straight-forward.


1

I ended with the same result months before and I could not found a solution using IPrintAndExport. I would recommend to use theIExportdirectly. Please have a look at the following ExportActiveView function in this example in VBA or this post to a different topic with an example in C#. This works without problems in my case. You can simply exchange the ...


1

I found a solution, which works for me: var layer = Map.Layers[MyLayer] as GraphicsLayer; var selectedId = await layer.HitTestAsync(mapView, eventargs.Position); selectedId.IsSelected = true; //Nothing found sets selectedId = null var unitsFound = layer.SelectedGraphics.ToList(); This gives a list of all units found at the point you clicked. But it only ...



Only top voted, non community-wiki answers of a minimum length are eligible