ProSnippets Migrating to 2.0 - kataya/arcgis-pro-sdk GitHub Wiki
Language: C#
Subject: Framework
Contributor: ArcGIS Pro SDK Team <[email protected]>
Organization: Esri, http://www.esri.com
Date: 11/24/2020
ArcGIS Pro: 2.7
Visual Studio: 2017, 2019
Find the Visual Basic migration document here: ProSnippets: Migrating to 2.0 Visual Basic
The upgrade from ArcGIS Pro SDK 1.4 to ArcGIS Pro SDK 2.0 is a 'code breaking' change. This means that you have to change, recompile, rebuild, and redistribute any 1.x (SDK 1.4 and earlier) add-ins and configurations so that they work with ArcGIS Pro 2.0. This document lists the most common changes in the config.DAML and various API classes and interfaces.
With 2.0 the ItemFactory pattern changed notably as documented in ProConcepts Content and Items.
In this topic
- Upgrading the Config.daml to Pro SDK 2.0
- ArcGIS.Core.dll
- ArcGIS.Desktop.Core.dll
- ArcGIS.Desktop.Editing.dll
- ArcGIS.Desktop.Framework.dll
- ArcGIS.Desktop.Layouts.dll
- ArcGIS.Desktop.Mapping.dll
- ArcGIS.Desktop.TaskAssistant.dll
- ArcGIS.Desktop.Workflow.dll
All add-ins and configurations require that the "desktopVersion" attribute under the AddInInfo tag in the config.daml file is updated to the 2.0.0 version as shown below:
1.4 and earlier has a 1.x.x desktopVersion attribute under the AddInInfo tag:
<ArcGIS defaultAssembly="....dll" defaultNamespace="..." xmlns="...">
<AddInInfo id="{...}" version="1.0" desktopVersion="1.4.7198">
<Name>...</Name>
<Description>...</Description>
<Image>...</Image>
...
2.0 requires a 2.0.0 (or higher) desktopVersion attribute under the AddInInfo tag:
<ArcGIS defaultAssembly="....dll" defaultNamespace="..." xmlns="...">
<AddInInfo id="{...}" version="1.0" desktopVersion="2.0.0">
<Name>...</Name>
<Description>...</Description>
<Image>...</Image>
...
- ArcGIS.Core.Data.FileSystemConnectionPath
- ArcGIS.Core.Data.FileSystemDatastore
// before:
using (Shapefile shapefile = new Shapefile(new ShapefileConnectionPath(new Uri("path\\to\\folder\\containing\\shapefiles"))))
{
FeatureClass taxLotsFeatureClass = shapefile.OpenTable("TaxLots") as FeatureClass;
FeatureClass manHolesFeatureClass = shapefile.OpenTable("ManHoles.shp") as FeatureClass; // Can use the .shp extension, but its not needed.
Table taxDetailsTableWithoutExtension = shapefile.OpenTable("TaxDetails");
Table taxDetailsTable = shapefile.OpenTable("TaxDetails.dbf");
}
// now:
using (FileSystemDatastore shapefile = new FileSystemDatastore(new FileSystemConnectionPath(new Uri("path\\to\\folder\\containing\\shapefiles"), FileSystemDatastoreType.Shapefile)))
{
FeatureClass taxLotsFeatureClass = shapefile.OpenDataset<FeatureClass>("TaxLots");
FeatureClass manHolesFeatureClass = shapefile.OpenDataset<FeatureClass>("ManHoles.shp"); // Can use the .shp extension, but its not needed.
Table taxDetailsTableWithoutExtension = shapefile.OpenDataset<Table>("TaxDetails");
Table taxDetailsTable = shapefile.OpenDataset<Table>("TaxDetails.dbf");
}
- ArcGIS.Core.Data.DatabaseConnectionFile
string connection = "C:\\Work\\temp.sde";
// before:
Geodatabase sde = new Geodatabase(connection);
// now:
var dbGdbConnection = new DatabaseConnectionFile(new Uri(connection, UriKind.Absolute));
Geodatabase sde = new Geodatabase(dbGdbConnection);
- ArcGIS.Core.Data.Geodatabase.GetEnterpriseDatabaseType
// before:
EnterpriseDatabaseType enterpriseDatabaseType = geodatabase.GetEnterpriseDatabaseType();
// now:
var enterpriseDatabaseType = (geodatabase.GetConnector() as DatabaseConnectionProperties).DBMS;
- ArcGIS.Core.Geometry.CubicBezierBuilder Constructor
ArcGIS.Core.Geometry.Coordinate2D controlPt12D;
ArcGIS.Core.Geometry.Coordinate2D controlPt22D;
ArcGIS.Core.Geometry.SpatialReference spatialReference;
// before:
ArcGIS.Core.Geometry.Coordinate startPt;
ArcGIS.Core.Geometry.Coordinate endPt;
System.Collections.Generic.IEnumerable<ArcGIS.Core.Geometry.Coordinate> coordinates;
var cubicbezierbuilder = new CubicBezierBuilder (startPt, controlPt12D, controlPt22D, endPt, spatialReference);
var cubicbezierbuilder = new CubicBezierBuilder (coordinates, spatialReference);
// now:
ArcGIS.Core.Geometry.Coordinate2D startPt2D;
ArcGIS.Core.Geometry.Coordinate2D endPt2D;
System.Collections.Generic.IEnumerable<ArcGIS.Core.Geometry.Coordinate2D> coordinates;
var cubicbezierbuilder = new CubicBezierBuilder (startPt2D, controlPt12D, controlPt22D, endPt2D, spatialReference);
var cubicbezierbuilder = new CubicBezierBuilder (coordinates, spatialReference);
- ArcGIS.Core.Geometry.CubicBezierBuilder.CreateCubicBezierSegment
ArcGIS.Core.Geometry.Coordinate2D controlPt12D;
ArcGIS.Core.Geometry.Coordinate2D controlPt22D;
ArcGIS.Core.Geometry.SpatialReference spatialReference;
// before:
ArcGIS.Core.Geometry.Coordinate startPt;
ArcGIS.Core.Geometry.Coordinate endPt;
System.Collections.Generic.IEnumerable<ArcGIS.Core.Geometry.Coordinate> coordinates;
ArcGIS.Core.Geometry.CubicBezierBuilder cubicbezierbuilder;
ArcGIS.Core.Geometry.CubicBezierSegment result = cubicbezierbuilder.CreateCubicBezierSegment (startPt, controlPt12D, controlPt22D, endPt, spatialReference);
ArcGIS.Core.Geometry.CubicBezierSegment result = cubicbezierbuilder.CreateCubicBezierSegment (coordinates, spatialReference);
// now:
ArcGIS.Core.Geometry.Coordinate2D startPt2D;
ArcGIS.Core.Geometry.Coordinate2D endPt2D;
System.Collections.Generic.IEnumerable<ArcGIS.Core.Geometry.Coordinate2D> coordinates;
ArcGIS.Core.Geometry.CubicBezierBuilder cubicbezierbuilder;
ArcGIS.Core.Geometry.CubicBezierSegment result = cubicbezierbuilder.CreateCubicBezierSegment (startPt2D, controlPt12D, controlPt22D, endPt2D, spatialReference);
ArcGIS.Core.Geometry.CubicBezierSegment result = cubicbezierbuilder.CreateCubicBezierSegment (coordinates, spatialReference);
- ArcGIS.Core.Geometry.EllipticArcBuilder Constructor
ArcGIS.Core.Geometry.Coordinate2D centerPt2D;
double rotationAngle;
double semiMajorAxis;
double minorMajorRatio;
ArcGIS.Core.Geometry.SpatialReference spatialReference;
double radius;
ArcGIS.Core.Geometry.Coordinate2D interiorPt2D;
ArcGIS.Core.Geometry.esriArcOrientation orientation;
double centralAngle;
double chordLength;
double chordBearing;
ArcGIS.Core.Geometry.MinorOrMajor minorOrMajor;
// before:
ArcGIS.Core.Geometry.esriArcOrientation orientation = 1;
ArcGIS.Core.Geometry.MapPoint fromPt;
ArcGIS.Core.Geometry.MapPoint toPt;
double fromAngle;
var ellipticarcbuilder = new EllipticArcBuilder (centerPt2D, rotationAngle, semiMajorAxis, minorMajorRatio, 1, spatialReference);
var ellipticarcbuilder = new EllipticArcBuilder (centerPt2D, radius, 1, spatialReference);
var ellipticarcbuilder = new EllipticArcBuilder (fromPt, toPt, interiorPt2D);
var ellipticarcbuilder = new EllipticArcBuilder (fromPt, toPt, centerPt2D, orientation, spatialReference);
var ellipticarcbuilder = new EllipticArcBuilder (fromAngle, centralAngle, centerPt2D, radius, spatialReference);
var ellipticarcbuilder = new EllipticArcBuilder (fromPt, chordLength, chordBearing, radius, orientation, minorOrMajor, spatialReference);
// now:
ArcGIS.Core.Geometry.Segment segment1;
ArcGIS.Core.Geometry.Segment segment2;
ArcGIS.Core.Geometry.Coordinate2D hintPoint2D;
ArcGIS.Core.Geometry.MapPoint startPt;
double arcLength;
ArcGIS.Core.Geometry.MapPoint endPt;
double startAngle;
var ellipticarcbuilder = new EllipticArcBuilder (centerPt2D, rotationAngle, semiMajorAxis, minorMajorRatio, orientation, spatialReference);
var ellipticarcbuilder = new EllipticArcBuilder (segment1, segment2, radius, hintPoint2D, spatialReference);
var ellipticarcbuilder = new EllipticArcBuilder (startPt, chordLength, chordBearing, arcLength, orientation, spatialReference);
var ellipticarcbuilder = new EllipticArcBuilder (centerPt2D, radius, orientation, spatialReference);
var ellipticarcbuilder = new EllipticArcBuilder (startPt, endPt, interiorPt2D);
var ellipticarcbuilder = new EllipticArcBuilder (startPt, endPt, centerPt2D, orientation, spatialReference);
var ellipticarcbuilder = new EllipticArcBuilder (startAngle, centralAngle, centerPt2D, radius, spatialReference);
var ellipticarcbuilder = new EllipticArcBuilder (startPt, chordLength, chordBearing, radius, orientation, minorOrMajor, spatialReference);
- ArcGIS.Core.Geometry.EllipticArcBuilder.CreateEllipticArcSegment
double centralAngle;
ArcGIS.Core.Geometry.Coordinate2D centerPt2D;
double radius;
ArcGIS.Core.Geometry.SpatialReference spatialReference;
double chordLength;
double chordBearing;
ArcGIS.Core.Geometry.esriArcOrientation orientation;
ArcGIS.Core.Geometry.MinorOrMajor minorOrMajor;
double rotationAngle;
double semiMajorAxis;
double minorMajorRatio;
ArcGIS.Core.Geometry.Coordinate2D interiorPt2D;
// before:
double fromAngle;
ArcGIS.Core.Geometry.MapPoint fromPt;
ArcGIS.Core.Geometry.MapPoint toPt;
ArcGIS.Core.Geometry.EllipticArcBuilder ellipticarcbuilder;
ArcGIS.Core.Geometry.EllipticArcSegment result = ellipticarcbuilder.CreateEllipticArcSegment (fromAngle, centralAngle, centerPt2D, radius, spatialReference);
ArcGIS.Core.Geometry.EllipticArcSegment result = ellipticarcbuilder.CreateEllipticArcSegment (fromPt, chordLength, chordBearing, radius, orientation, minorOrMajor, spatialReference);
ArcGIS.Core.Geometry.EllipticArcSegment result = ellipticarcbuilder.CreateEllipticArcSegment (centerPt2D, radius, 1, spatialReference);
ArcGIS.Core.Geometry.EllipticArcSegment result = ellipticarcbuilder.CreateEllipticArcSegment (centerPt2D, rotationAngle, semiMajorAxis, minorMajorRatio, 1, spatialReference);
ArcGIS.Core.Geometry.EllipticArcSegment result = ellipticarcbuilder.CreateEllipticArcSegment (fromPt, toPt, centerPt2D, orientation, spatialReference);
ArcGIS.Core.Geometry.EllipticArcSegment result = ellipticarcbuilder.CreateEllipticArcSegment (fromPt, toPt, interiorPt2D, spatialReference);
// now:
double startAngle;
ArcGIS.Core.Geometry.MapPoint startPt;
ArcGIS.Core.Geometry.Segment segment1;
ArcGIS.Core.Geometry.Segment segment2;
ArcGIS.Core.Geometry.Coordinate2D hintPoint2D;
double arcLength;
ArcGIS.Core.Geometry.MapPoint endPt;
ArcGIS.Core.Geometry.EllipticArcBuilder ellipticarcbuilder;
ArcGIS.Core.Geometry.EllipticArcSegment result = ellipticarcbuilder.CreateEllipticArcSegment (startAngle, centralAngle, centerPt2D, radius, spatialReference);
ArcGIS.Core.Geometry.EllipticArcSegment result = ellipticarcbuilder.CreateEllipticArcSegment (startPt, chordLength, chordBearing, radius, orientation, minorOrMajor, spatialReference);
ArcGIS.Core.Geometry.EllipticArcSegment result = ellipticarcbuilder.CreateEllipticArcSegment (centerPt2D, radius, orientation, spatialReference);
ArcGIS.Core.Geometry.EllipticArcSegment result = ellipticarcbuilder.CreateEllipticArcSegment (segment1, segment2, radius, hintPoint2D, spatialReference);
ArcGIS.Core.Geometry.EllipticArcSegment result = ellipticarcbuilder.CreateEllipticArcSegment (startPt, chordLength, chordBearing, arcLength, orientation, spatialReference);
ArcGIS.Core.Geometry.EllipticArcSegment result = ellipticarcbuilder.CreateEllipticArcSegment (centerPt2D, rotationAngle, semiMajorAxis, minorMajorRatio, orientation, spatialReference);
ArcGIS.Core.Geometry.EllipticArcSegment result = ellipticarcbuilder.CreateEllipticArcSegment (startPt, endPt, centerPt2D, orientation, spatialReference);
ArcGIS.Core.Geometry.EllipticArcSegment result = ellipticarcbuilder.CreateEllipticArcSegment (startPt, endPt, interiorPt2D, spatialReference);
- ArcGIS.Core.Geometry.EnvelopeBuilder.CreateEnvelope
ArcGIS.Core.Geometry.SpatialReference spatialReference;
// before:
ArcGIS.Core.Geometry.Coordinate minCoord;
ArcGIS.Core.Geometry.Coordinate maxCoord;
ArcGIS.Core.Geometry.EnvelopeBuilder envelopebuilder;
ArcGIS.Core.Geometry.Envelope result = envelopebuilder.CreateEnvelope (minCoord, maxCoord, spatialReference);
// now:
ArcGIS.Core.Geometry.Coordinate3D minCoord3D;
ArcGIS.Core.Geometry.Coordinate3D maxCoord3D;
ArcGIS.Core.Geometry.Envelope envelope;
ArcGIS.Core.Geometry.EnvelopeBuilder envelopebuilder;
ArcGIS.Core.Geometry.Envelope result = envelopebuilder.CreateEnvelope (minCoord3D, maxCoord3D, spatialReference);
ArcGIS.Core.Geometry.Envelope result = envelopebuilder.CreateEnvelope (spatialReference);
ArcGIS.Core.Geometry.Envelope result = envelopebuilder.CreateEnvelope (envelope, spatialReference);
- ArcGIS.Core.Geometry.GeometryEngine.Area
using geometryengine = ArcGIS.Core.Geometry.GeometryEngine;
ArcGIS.Core.Geometry.Geometry geometry;
// before:
double result = geometryengine.Area (geometry);
// now:
double result = geometryengine.Instance.Area (geometry);
- ArcGIS.Core.Geometry.GeometryEngine.AutoComplete
using geometryengine = ArcGIS.Core.Geometry.GeometryEngine;
ArcGIS.Core.Geometry.Polygon inputPolygon;
ArcGIS.Core.Geometry.Polyline completionLine;
// before:
ArcGIS.Core.Geometry.Polygon result = geometryengine.AutoComplete (inputPolygon, completionLine);
// now:
ArcGIS.Core.Geometry.Polygon result = geometryengine.Instance.AutoComplete (inputPolygon, completionLine);
- ArcGIS.Core.Geometry.GeometryEngine.Boundary
using geometryengine = ArcGIS.Core.Geometry.GeometryEngine;
ArcGIS.Core.Geometry.Geometry geometry;
// before:
ArcGIS.Core.Geometry.Geometry result = geometryengine.Boundary (geometry);
// now:
ArcGIS.Core.Geometry.Geometry result = geometryengine.Instance.Boundary (geometry);
- ArcGIS.Core.Geometry.GeometryEngine.Buffer
using geometryengine = ArcGIS.Core.Geometry.GeometryEngine;
System.Collections.Generic.IEnumerable<ArcGIS.Core.Geometry.Geometry> geometries;
double distance;
ArcGIS.Core.Geometry.Geometry geometry;
// before:
ArcGIS.Core.Geometry.Geometry result = geometryengine.Buffer (geometries, distance);
ArcGIS.Core.Geometry.Geometry result = geometryengine.Buffer (geometry, distance);
// now:
ArcGIS.Core.Geometry.Geometry result = geometryengine.Instance.Buffer (geometries, distance);
ArcGIS.Core.Geometry.Geometry result = geometryengine.Instance.Buffer (geometry, distance);
- ArcGIS.Core.Geometry.GeometryEngine.CalculateNonSimpleMs
using geometryengine = ArcGIS.Core.Geometry.GeometryEngine;
ArcGIS.Core.Geometry.Multipart multipart;
double defaultMValue;
// before:
ArcGIS.Core.Geometry.Multipart result = geometryengine.CalculateNonSimpleMs (multipart, defaultMValue);
// now:
ArcGIS.Core.Geometry.Multipart result = geometryengine.Instance.CalculateNonSimpleMs (multipart, defaultMValue);
- ArcGIS.Core.Geometry.GeometryEngine.CalculateNonSimpleZs
using geometryengine = ArcGIS.Core.Geometry.GeometryEngine;
ArcGIS.Core.Geometry.Multipart multipart;
double defaultZValue;
// before:
ArcGIS.Core.Geometry.Multipart result = geometryengine.CalculateNonSimpleZs (multipart, defaultZValue);
// now:
ArcGIS.Core.Geometry.Multipart result = geometryengine.Instance.CalculateNonSimpleZs (multipart, defaultZValue);
- ArcGIS.Core.Geometry.GeometryEngine.CenterAt
using geometryengine = ArcGIS.Core.Geometry.GeometryEngine;
ArcGIS.Core.Geometry.Envelope envelope;
double x;
double y;
// before:
ArcGIS.Core.Geometry.Envelope result = geometryengine.CenterAt (envelope, x, y);
// now:
ArcGIS.Core.Geometry.Envelope result = geometryengine.Instance.CenterAt (envelope, x, y);
- ArcGIS.Core.Geometry.GeometryEngine.Centroid
using geometryengine = ArcGIS.Core.Geometry.GeometryEngine;
ArcGIS.Core.Geometry.Geometry geometry;
// before:
ArcGIS.Core.Geometry.MapPoint result = geometryengine.Centroid (geometry);
// now:
ArcGIS.Core.Geometry.MapPoint result = geometryengine.Instance.Centroid (geometry);
- ArcGIS.Core.Geometry.GeometryEngine.Clip
using geometryengine = ArcGIS.Core.Geometry.GeometryEngine;
ArcGIS.Core.Geometry.Geometry geometry;
ArcGIS.Core.Geometry.Envelope envelope;
// before:
ArcGIS.Core.Geometry.Geometry result = geometryengine.Clip (geometry, envelope);
// now:
ArcGIS.Core.Geometry.Geometry result = geometryengine.Instance.Clip (geometry, envelope);
- ArcGIS.Core.Geometry.GeometryEngine.Contains
using geometryengine = ArcGIS.Core.Geometry.GeometryEngine;
ArcGIS.Core.Geometry.Geometry geometry1;
ArcGIS.Core.Geometry.Geometry geometry2;
// before:
bool result = geometryengine.Contains (geometry1, geometry2);
// now:
bool result = geometryengine.Instance.Contains (geometry1, geometry2);
- ArcGIS.Core.Geometry.GeometryEngine.ConvexHull
using geometryengine = ArcGIS.Core.Geometry.GeometryEngine;
ArcGIS.Core.Geometry.Geometry geometry;
// before:
ArcGIS.Core.Geometry.Geometry result = geometryengine.ConvexHull (geometry);
// now:
ArcGIS.Core.Geometry.Geometry result = geometryengine.Instance.ConvexHull (geometry);
- ArcGIS.Core.Geometry.GeometryEngine.Crosses
using geometryengine = ArcGIS.Core.Geometry.GeometryEngine;
ArcGIS.Core.Geometry.Geometry geometry1;
ArcGIS.Core.Geometry.Geometry geometry2;
// before:
bool result = geometryengine.Crosses (geometry1, geometry2);
// now:
bool result = geometryengine.Instance.Crosses (geometry1, geometry2);
- ArcGIS.Core.Geometry.GeometryEngine.Cut
using geometryengine = ArcGIS.Core.Geometry.GeometryEngine;
ArcGIS.Core.Geometry.Polyline cutter;
// before:
ArcGIS.Core.Geometry.Geometry geometry;
System.Collections.Generic.IEnumerable<ArcGIS.Core.Geometry.Geometry> result = geometryengine.Cut (geometry, cutter);
// now:
ArcGIS.Core.Geometry.Multipart multipart;
System.Collections.Generic.IEnumerable<ArcGIS.Core.Geometry.Geometry> result = geometryengine.Instance.Cut (multipart, cutter);
- ArcGIS.Core.Geometry.GeometryEngine.DensifyByDeviation
using geometryengine = ArcGIS.Core.Geometry.GeometryEngine;
ArcGIS.Core.Geometry.Geometry geometry;
double maxDeviationMeters;
// before:
ArcGIS.Core.Geometry.Geometry result = geometryengine.DensifyByDeviation (geometry, maxDeviationMeters);
// now:
ArcGIS.Core.Geometry.Geometry result = geometryengine.Instance.DensifyByDeviation (geometry, maxDeviationMeters);
- ArcGIS.Core.Geometry.GeometryEngine.DensifyByLength
using geometryengine = ArcGIS.Core.Geometry.GeometryEngine;
ArcGIS.Core.Geometry.Geometry geometry;
double maxSegmentLength;
// before:
ArcGIS.Core.Geometry.Geometry result = geometryengine.DensifyByLength (geometry, maxSegmentLength);
// now:
ArcGIS.Core.Geometry.Geometry result = geometryengine.Instance.DensifyByLength (geometry, maxSegmentLength);
- ArcGIS.Core.Geometry.GeometryEngine.Difference
using geometryengine = ArcGIS.Core.Geometry.GeometryEngine;
ArcGIS.Core.Geometry.Geometry geometry1;
ArcGIS.Core.Geometry.Geometry geometry2;
// before:
ArcGIS.Core.Geometry.Geometry result = geometryengine.Difference (geometry1, geometry2);
// now:
ArcGIS.Core.Geometry.Geometry result = geometryengine.Instance.Difference (geometry1, geometry2);
- ArcGIS.Core.Geometry.GeometryEngine.Disjoint
using geometryengine = ArcGIS.Core.Geometry.GeometryEngine;
ArcGIS.Core.Geometry.Geometry geometry1;
ArcGIS.Core.Geometry.Geometry geometry2;
// before:
bool result = geometryengine.Disjoint (geometry1, geometry2);
// now:
bool result = geometryengine.Instance.Disjoint (geometry1, geometry2);
- ArcGIS.Core.Geometry.GeometryEngine.Disjoint3D
using geometryengine = ArcGIS.Core.Geometry.GeometryEngine;
ArcGIS.Core.Geometry.Geometry geometry1;
ArcGIS.Core.Geometry.Geometry geometry2;
// before:
bool result = geometryengine.Disjoint3D (geometry1, geometry2);
// now:
bool result = geometryengine.Instance.Disjoint3D (geometry1, geometry2);
- ArcGIS.Core.Geometry.GeometryEngine.Distance
using geometryengine = ArcGIS.Core.Geometry.GeometryEngine;
ArcGIS.Core.Geometry.Geometry geometry1;
ArcGIS.Core.Geometry.Geometry geometry2;
// before:
double result = geometryengine.Distance (geometry1, geometry2);
// now:
double result = geometryengine.Instance.Distance (geometry1, geometry2);
- ArcGIS.Core.Geometry.GeometryEngine.Distance3D
using geometryengine = ArcGIS.Core.Geometry.GeometryEngine;
ArcGIS.Core.Geometry.Geometry geometry1;
ArcGIS.Core.Geometry.Geometry geometry2;
// before:
double result = geometryengine.Distance3D (geometry1, geometry2);
// now:
double result = geometryengine.Instance.Distance3D (geometry1, geometry2);
- ArcGIS.Core.Geometry.GeometryEngine.Equals
using geometryengine = ArcGIS.Core.Geometry.GeometryEngine;
ArcGIS.Core.Geometry.Geometry geometry1;
ArcGIS.Core.Geometry.Geometry geometry2;
// before:
bool result = geometryengine.Equals (geometry1, geometry2);
// now:
bool result = geometryengine.Instance.Equals (geometry1, geometry2);
- ArcGIS.Core.Geometry.GeometryEngine.Expand
using geometryengine = ArcGIS.Core.Geometry.GeometryEngine;
ArcGIS.Core.Geometry.Envelope envelope;
double dx;
double dy;
double dz;
bool asRatio;
// before:
ArcGIS.Core.Geometry.Envelope result = geometryengine.Expand (envelope, dx, dy, dz, asRatio);
ArcGIS.Core.Geometry.Envelope result = geometryengine.Expand (envelope, dx, dy, asRatio);
// now:
ArcGIS.Core.Geometry.Envelope result = geometryengine.Instance.Expand (envelope, dx, dy, dz, asRatio);
ArcGIS.Core.Geometry.Envelope result = geometryengine.Instance.Expand (envelope, dx, dy, asRatio);
- ArcGIS.Core.Geometry.GeometryEngine.ExportToEsriShape
using geometryengine = ArcGIS.Core.Geometry.GeometryEngine;
ArcGIS.Core.Geometry.EsriShapeExportFlags exportFlags;
ArcGIS.Core.Geometry.Geometry geometry;
System.Byte[] buffer;
// before:
int result = geometryengine.ExportToEsriShape (exportFlags, geometry, ref buffer);
System.Byte[] result = geometryengine.ExportToEsriShape (exportFlags, geometry);
// now:
int result = geometryengine.Instance.ExportToEsriShape (exportFlags, geometry, ref buffer);
System.Byte[] result = geometryengine.Instance.ExportToEsriShape (exportFlags, geometry);
- ArcGIS.Core.Geometry.GeometryEngine.ExportToJSON
using geometryengine = ArcGIS.Core.Geometry.GeometryEngine;
ArcGIS.Core.Geometry.JSONExportFlags exportFlags;
ArcGIS.Core.Geometry.Geometry geometry;
// before:
string result = geometryengine.ExportToJSON (exportFlags, geometry);
// now:
string result = geometryengine.Instance.ExportToJSON (exportFlags, geometry);
- ArcGIS.Core.Geometry.GeometryEngine.ExportToWKB
using geometryengine = ArcGIS.Core.Geometry.GeometryEngine;
ArcGIS.Core.Geometry.WKBExportFlags exportFlags;
ArcGIS.Core.Geometry.Geometry geometry;
System.Byte[] buffer;
// before:
int result = geometryengine.ExportToWKB (exportFlags, geometry, ref buffer);
System.Byte[] result = geometryengine.ExportToWKB (exportFlags, geometry);
// now:
int result = geometryengine.Instance.ExportToWKB (exportFlags, geometry, ref buffer);
System.Byte[] result = geometryengine.Instance.ExportToWKB (exportFlags, geometry);
- ArcGIS.Core.Geometry.GeometryEngine.ExportToWKT
using geometryengine = ArcGIS.Core.Geometry.GeometryEngine;
ArcGIS.Core.Geometry.WKTExportFlags exportFlags;
ArcGIS.Core.Geometry.Geometry geometry;
// before:
string result = geometryengine.ExportToWKT (exportFlags, geometry);
// now:
string result = geometryengine.Instance.ExportToWKT (exportFlags, geometry);
- ArcGIS.Core.Geometry.GeometryEngine.Extend
using geometryengine = ArcGIS.Core.Geometry.GeometryEngine;
ArcGIS.Core.Geometry.Polyline polyline;
ArcGIS.Core.Geometry.Polyline extender;
ArcGIS.Core.Geometry.ExtendFlags ExtendFlags;
// before:
ArcGIS.Core.Geometry.Polyline result = geometryengine.Extend (polyline, extender, ExtendFlags);
// now:
ArcGIS.Core.Geometry.Polyline result = geometryengine.Instance.Extend (polyline, extender, ExtendFlags);
- ArcGIS.Core.Geometry.GeometryEngine.Generalize
using geometryengine = ArcGIS.Core.Geometry.GeometryEngine;
ArcGIS.Core.Geometry.Geometry geometry;
double maxDeviation;
// before:
bool removeDegenerateParts = False;
bool preserveCurves = False;
ArcGIS.Core.Geometry.Geometry result = geometryengine.Generalize (geometry, maxDeviation, False, False);
// now:
bool removeDegenerateParts;
bool preserveCurves;
ArcGIS.Core.Geometry.Geometry result = geometryengine.Instance.Generalize (geometry, maxDeviation, removeDegenerateParts, preserveCurves);
- ArcGIS.Core.Geometry.GeometryEngine.GeodesicArea
using geometryengine = ArcGIS.Core.Geometry.GeometryEngine;
ArcGIS.Core.Geometry.Geometry geometry;
// before:
double result = geometryengine.GeodesicArea (geometry);
// now:
double result = geometryengine.Instance.GeodesicArea (geometry);
- ArcGIS.Core.Geometry.GeometryEngine.GeodesicBuffer
using geometryengine = ArcGIS.Core.Geometry.GeometryEngine;
System.Collections.Generic.IEnumerable<ArcGIS.Core.Geometry.Geometry> geometries;
double distance;
ArcGIS.Core.Geometry.Geometry geometry;
// before:
ArcGIS.Core.Geometry.Geometry result = geometryengine.GeodesicBuffer (geometries, distance);
ArcGIS.Core.Geometry.Geometry result = geometryengine.GeodesicBuffer (geometry, distance);
// now:
ArcGIS.Core.Geometry.Geometry result = geometryengine.Instance.GeodesicBuffer (geometries, distance);
ArcGIS.Core.Geometry.Geometry result = geometryengine.Instance.GeodesicBuffer (geometry, distance);
- ArcGIS.Core.Geometry.GeometryEngine.GeodesicDistance
using geometryengine = ArcGIS.Core.Geometry.GeometryEngine;
ArcGIS.Core.Geometry.Geometry geometry1;
ArcGIS.Core.Geometry.Geometry geometry2;
// before:
double result = geometryengine.GeodesicDistance (geometry1, geometry2);
// now:
double result = geometryengine.Instance.GeodesicDistance (geometry1, geometry2);
- ArcGIS.Core.Geometry.GeometryEngine.GeodesicEllipse
using geometryengine = ArcGIS.Core.Geometry.GeometryEngine;
ArcGIS.Core.Geometry.GeodesicEllipseParameter parameter;
ArcGIS.Core.Geometry.SpatialReference spatialReference;
// before:
ArcGIS.Core.Geometry.Geometry result = geometryengine.GeodesicEllipse (parameter, spatialReference);
// now:
ArcGIS.Core.Geometry.Geometry result = geometryengine.Instance.GeodesicEllipse (parameter, spatialReference);
- ArcGIS.Core.Geometry.GeometryEngine.GeodesicLength
using geometryengine = ArcGIS.Core.Geometry.GeometryEngine;
ArcGIS.Core.Geometry.Geometry geometry;
// before:
double result = geometryengine.GeodesicLength (geometry);
// now:
double result = geometryengine.Instance.GeodesicLength (geometry);
- ArcGIS.Core.Geometry.GeometryEngine.GeodesicSector
using geometryengine = ArcGIS.Core.Geometry.GeometryEngine;
ArcGIS.Core.Geometry.GeodesicSectorParameter parameter;
ArcGIS.Core.Geometry.SpatialReference spatialReference;
// before:
ArcGIS.Core.Geometry.Geometry result = geometryengine.GeodesicSector (parameter, spatialReference);
// now:
ArcGIS.Core.Geometry.Geometry result = geometryengine.Instance.GeodesicSector (parameter, spatialReference);
- ArcGIS.Core.Geometry.GeometryEngine.GeodeticDensifyByDeviation
using geometryengine = ArcGIS.Core.Geometry.GeometryEngine;
ArcGIS.Core.Geometry.Geometry geometry;
double maxDeviation;
ArcGIS.Core.Geometry.LinearUnit deviationUnit;
// before:
ArcGIS.Core.Geometry.CurveType curveType;
ArcGIS.Core.Geometry.Geometry result = geometryengine.GeodeticDensifyByDeviation (geometry, maxDeviation, deviationUnit, curveType);
// now:
ArcGIS.Core.Geometry.GeodeticCurveType curveType;
ArcGIS.Core.Geometry.Geometry result = geometryengine.Instance.GeodeticDensifyByDeviation (geometry, maxDeviation, deviationUnit, curveType);
- ArcGIS.Core.Geometry.GeometryEngine.GeodeticDensifyByLength
using geometryengine = ArcGIS.Core.Geometry.GeometryEngine;
ArcGIS.Core.Geometry.Geometry geometry;
double maxSegmentLength;
ArcGIS.Core.Geometry.LinearUnit lengthUnit;
// before:
ArcGIS.Core.Geometry.CurveType curveType;
ArcGIS.Core.Geometry.Geometry result = geometryengine.GeodeticDensifyByLength (geometry, maxSegmentLength, lengthUnit, curveType);
// now:
ArcGIS.Core.Geometry.GeodeticCurveType curveType;
ArcGIS.Core.Geometry.Geometry result = geometryengine.Instance.GeodeticDensifyByLength (geometry, maxSegmentLength, lengthUnit, curveType);
- ArcGIS.Core.Geometry.GeometryEngine.GeodeticMove
using geometryengine = ArcGIS.Core.Geometry.GeometryEngine;
System.Collections.Generic.IEnumerable<ArcGIS.Core.Geometry.MapPoint> points;
ArcGIS.Core.Geometry.SpatialReference spatialReference;
double distance;
ArcGIS.Core.Geometry.LinearUnit unit;
double azimuth;
// before:
ArcGIS.Core.Geometry.CurveType curveType;
System.Collections.Generic.IEnumerable<ArcGIS.Core.Geometry.MapPoint> result = geometryengine.GeodeticMove (points, spatialReference, distance, unit, azimuth, curveType);
// now:
ArcGIS.Core.Geometry.GeodeticCurveType curveType;
System.Collections.Generic.IEnumerable<ArcGIS.Core.Geometry.MapPoint> result = geometryengine.Instance.GeodeticMove (points, spatialReference, distance, unit, azimuth, curveType);
- ArcGIS.Core.Geometry.GeometryEngine.GetEsriShapeSize
using geometryengine = ArcGIS.Core.Geometry.GeometryEngine;
ArcGIS.Core.Geometry.EsriShapeExportFlags exportFlags;
ArcGIS.Core.Geometry.Geometry geometry;
// before:
int result = geometryengine.GetEsriShapeSize (exportFlags, geometry);
// now:
int result = geometryengine.Instance.GetEsriShapeSize (exportFlags, geometry);
- ArcGIS.Core.Geometry.GeometryEngine.GetPredefinedCoordinateSystemList
using geometryengine = ArcGIS.Core.Geometry.GeometryEngine;
ArcGIS.Core.Geometry.CoordinateSystemFilter filter;
// before:
System.Collections.Generic.IReadOnlyList<ArcGIS.Core.Geometry.CoordinateSystemListEntry> result = geometryengine.GetPredefinedCoordinateSystemList (filter);
// now:
System.Collections.Generic.IReadOnlyList<ArcGIS.Core.Geometry.CoordinateSystemListEntry> result = geometryengine.Instance.GetPredefinedCoordinateSystemList (filter);
- ArcGIS.Core.Geometry.GeometryEngine.GetSubCurve
using geometryengine = ArcGIS.Core.Geometry.GeometryEngine;
ArcGIS.Core.Geometry.Multipart multipart;
double fromDistance;
double toDistance;
ArcGIS.Core.Geometry.AsRatioOrLength asRatioOrLength;
// before:
ArcGIS.Core.Geometry.Polyline result = geometryengine.GetSubCurve (multipart, fromDistance, toDistance, asRatioOrLength);
// now:
ArcGIS.Core.Geometry.Polyline result = geometryengine.Instance.GetSubCurve (multipart, fromDistance, toDistance, asRatioOrLength);
- ArcGIS.Core.Geometry.GeometryEngine.GetSubCurve3D
using geometryengine = ArcGIS.Core.Geometry.GeometryEngine;
ArcGIS.Core.Geometry.Multipart multipart;
double fromDistance;
double toDistance;
ArcGIS.Core.Geometry.AsRatioOrLength asRatioOrLength;
// before:
ArcGIS.Core.Geometry.Polyline result = geometryengine.GetSubCurve3D (multipart, fromDistance, toDistance, asRatioOrLength);
// now:
ArcGIS.Core.Geometry.Polyline result = geometryengine.Instance.GetSubCurve3D (multipart, fromDistance, toDistance, asRatioOrLength);
- ArcGIS.Core.Geometry.GeometryEngine.GetWKBSize
using geometryengine = ArcGIS.Core.Geometry.GeometryEngine;
ArcGIS.Core.Geometry.WKBExportFlags exportFlags;
ArcGIS.Core.Geometry.Geometry geometry;
// before:
int result = geometryengine.GetWKBSize (exportFlags, geometry);
// now:
int result = geometryengine.Instance.GetWKBSize (exportFlags, geometry);
- ArcGIS.Core.Geometry.GeometryEngine.ImportFromEsriShape
using geometryengine = ArcGIS.Core.Geometry.GeometryEngine;
ArcGIS.Core.Geometry.EsriShapeImportFlags importFlags;
System.Byte[] buffer;
ArcGIS.Core.Geometry.SpatialReference spatialReference;
// before:
ArcGIS.Core.Geometry.Geometry result = geometryengine.ImportFromEsriShape (importFlags, buffer, spatialReference);
// now:
ArcGIS.Core.Geometry.Geometry result = geometryengine.Instance.ImportFromEsriShape (importFlags, buffer, spatialReference);
- ArcGIS.Core.Geometry.GeometryEngine.ImportFromJSON
using geometryengine = ArcGIS.Core.Geometry.GeometryEngine;
ArcGIS.Core.Geometry.JSONImportFlags importFlags;
string jsonString;
// before:
ArcGIS.Core.Geometry.Geometry result = geometryengine.ImportFromJSON (importFlags, jsonString);
// now:
ArcGIS.Core.Geometry.Geometry result = geometryengine.Instance.ImportFromJSON (importFlags, jsonString);
- ArcGIS.Core.Geometry.GeometryEngine.ImportFromWKB
using geometryengine = ArcGIS.Core.Geometry.GeometryEngine;
ArcGIS.Core.Geometry.WKBImportFlags importFlags;
System.Byte[] buffer;
ArcGIS.Core.Geometry.SpatialReference spatialReference;
// before:
ArcGIS.Core.Geometry.Geometry result = geometryengine.ImportFromWKB (importFlags, buffer, spatialReference);
// now:
ArcGIS.Core.Geometry.Geometry result = geometryengine.Instance.ImportFromWKB (importFlags, buffer, spatialReference);
- ArcGIS.Core.Geometry.GeometryEngine.ImportFromWKT
using geometryengine = ArcGIS.Core.Geometry.GeometryEngine;
ArcGIS.Core.Geometry.WKTImportFlags importFlags;
string wktString;
ArcGIS.Core.Geometry.SpatialReference spatialReference;
// before:
ArcGIS.Core.Geometry.Geometry result = geometryengine.ImportFromWKT (importFlags, wktString, spatialReference);
// now:
ArcGIS.Core.Geometry.Geometry result = geometryengine.Instance.ImportFromWKT (importFlags, wktString, spatialReference);
- ArcGIS.Core.Geometry.GeometryEngine.Intersection
using geometryengine = ArcGIS.Core.Geometry.GeometryEngine;
ArcGIS.Core.Geometry.Geometry geometry1;
ArcGIS.Core.Geometry.Geometry geometry2;
ArcGIS.Core.Geometry.GeometryDimension resultDimension;
// before:
ArcGIS.Core.Geometry.Geometry result = geometryengine.Intersection (geometry1, geometry2, resultDimension);
ArcGIS.Core.Geometry.Geometry result = geometryengine.Intersection (geometry1, geometry2);
// now:
ArcGIS.Core.Geometry.Geometry result = geometryengine.Instance.Intersection (geometry1, geometry2, resultDimension);
ArcGIS.Core.Geometry.Geometry result = geometryengine.Instance.Intersection (geometry1, geometry2);
- ArcGIS.Core.Geometry.GeometryEngine.Intersects
using geometryengine = ArcGIS.Core.Geometry.GeometryEngine;
ArcGIS.Core.Geometry.Geometry geometry1;
ArcGIS.Core.Geometry.Geometry geometry2;
// before:
bool result = geometryengine.Intersects (geometry1, geometry2);
// now:
bool result = geometryengine.Instance.Intersects (geometry1, geometry2);
- ArcGIS.Core.Geometry.GeometryEngine.IsSimpleAsFeature
using geometryengine = ArcGIS.Core.Geometry.GeometryEngine;
ArcGIS.Core.Geometry.Geometry geometry;
// before:
bool forceIsSimple = False;
bool result = geometryengine.IsSimpleAsFeature (geometry, False);
// now:
bool forceIsSimple;
bool result = geometryengine.Instance.IsSimpleAsFeature (geometry, forceIsSimple);
- ArcGIS.Core.Geometry.GeometryEngine.LabelPoint
using geometryengine = ArcGIS.Core.Geometry.GeometryEngine;
ArcGIS.Core.Geometry.Geometry geometry;
// before:
ArcGIS.Core.Geometry.MapPoint result = geometryengine.LabelPoint (geometry);
// now:
ArcGIS.Core.Geometry.MapPoint result = geometryengine.Instance.LabelPoint (geometry);
- ArcGIS.Core.Geometry.GeometryEngine.Length
using geometryengine = ArcGIS.Core.Geometry.GeometryEngine;
ArcGIS.Core.Geometry.Geometry geometry;
// before:
double result = geometryengine.Length (geometry);
// now:
double result = geometryengine.Instance.Length (geometry);
- ArcGIS.Core.Geometry.GeometryEngine.Length3D
using geometryengine = ArcGIS.Core.Geometry.GeometryEngine;
ArcGIS.Core.Geometry.Geometry geometry;
// before:
double result = geometryengine.Length3D (geometry);
// now:
double result = geometryengine.Instance.Length3D (geometry);
- ArcGIS.Core.Geometry.GeometryEngine.Move
using geometryengine = ArcGIS.Core.Geometry.GeometryEngine;
ArcGIS.Core.Geometry.Geometry geometry;
double dx;
double dy;
double dz;
// before:
ArcGIS.Core.Geometry.Geometry result = geometryengine.Move (geometry, dx, dy);
ArcGIS.Core.Geometry.Geometry result = geometryengine.Move (geometry, dx, dy, dz);
// now:
ArcGIS.Core.Geometry.Geometry result = geometryengine.Instance.Move (geometry, dx, dy);
ArcGIS.Core.Geometry.Geometry result = geometryengine.Instance.Move (geometry, dx, dy, dz);
- ArcGIS.Core.Geometry.GeometryEngine.MovePointAlongLine
using geometryengine = ArcGIS.Core.Geometry.GeometryEngine;
ArcGIS.Core.Geometry.Multipart multipart;
double distanceAlong;
bool asRatio;
double offset;
ArcGIS.Core.Geometry.SegmentExtension extension;
// before:
ArcGIS.Core.Geometry.MapPoint result = geometryengine.MovePointAlongLine (multipart, distanceAlong, asRatio, offset, extension);
// now:
ArcGIS.Core.Geometry.MapPoint result = geometryengine.Instance.MovePointAlongLine (multipart, distanceAlong, asRatio, offset, extension);
- ArcGIS.Core.Geometry.GeometryEngine.NearestPoint
using geometryengine = ArcGIS.Core.Geometry.GeometryEngine;
ArcGIS.Core.Geometry.Geometry geometry;
ArcGIS.Core.Geometry.MapPoint point;
// before:
ArcGIS.Core.Geometry.ProximityResult result = geometryengine.NearestPoint (geometry, point);
// now:
ArcGIS.Core.Geometry.ProximityResult result = geometryengine.Instance.NearestPoint (geometry, point);
- ArcGIS.Core.Geometry.GeometryEngine.NearestPoint3D
using geometryengine = ArcGIS.Core.Geometry.GeometryEngine;
ArcGIS.Core.Geometry.Geometry geometry;
ArcGIS.Core.Geometry.MapPoint point;
// before:
ArcGIS.Core.Geometry.ProximityResult result = geometryengine.NearestPoint3D (geometry, point);
// now:
ArcGIS.Core.Geometry.ProximityResult result = geometryengine.Instance.NearestPoint3D (geometry, point);
- ArcGIS.Core.Geometry.GeometryEngine.NearestVertex
using geometryengine = ArcGIS.Core.Geometry.GeometryEngine;
ArcGIS.Core.Geometry.Geometry geometry;
ArcGIS.Core.Geometry.MapPoint point;
// before:
ArcGIS.Core.Geometry.ProximityResult result = geometryengine.NearestVertex (geometry, point);
// now:
ArcGIS.Core.Geometry.ProximityResult result = geometryengine.Instance.NearestVertex (geometry, point);
- ArcGIS.Core.Geometry.GeometryEngine.NormalizeCentralMeridian
using geometryengine = ArcGIS.Core.Geometry.GeometryEngine;
ArcGIS.Core.Geometry.Geometry geometry;
// before:
ArcGIS.Core.Geometry.Geometry result = geometryengine.NormalizeCentralMeridian (geometry);
// now:
ArcGIS.Core.Geometry.Geometry result = geometryengine.Instance.NormalizeCentralMeridian (geometry);
- ArcGIS.Core.Geometry.GeometryEngine.Offset
using geometryengine = ArcGIS.Core.Geometry.GeometryEngine;
ArcGIS.Core.Geometry.Geometry geometry;
double distance;
ArcGIS.Core.Geometry.OffsetType offsetType;
double bevelRatio;
// before:
ArcGIS.Core.Geometry.Geometry result = geometryengine.Offset (geometry, distance, offsetType, bevelRatio);
// now:
ArcGIS.Core.Geometry.Geometry result = geometryengine.Instance.Offset (geometry, distance, offsetType, bevelRatio);
- ArcGIS.Core.Geometry.GeometryEngine.Overlaps
using geometryengine = ArcGIS.Core.Geometry.GeometryEngine;
ArcGIS.Core.Geometry.Geometry geometry1;
ArcGIS.Core.Geometry.Geometry geometry2;
// before:
bool result = geometryengine.Overlaps (geometry1, geometry2);
// now:
bool result = geometryengine.Instance.Overlaps (geometry1, geometry2);
- ArcGIS.Core.Geometry.GeometryEngine.Project
using geometryengine = ArcGIS.Core.Geometry.GeometryEngine;
ArcGIS.Core.Geometry.Geometry geometry;
ArcGIS.Core.Geometry.SpatialReference outputSpatialReference;
// before:
ArcGIS.Core.Geometry.Geometry result = geometryengine.Project (geometry, outputSpatialReference);
// now:
ArcGIS.Core.Geometry.Geometry result = geometryengine.Instance.Project (geometry, outputSpatialReference);
- ArcGIS.Core.Geometry.GeometryEngine.ProjectEx
using geometryengine = ArcGIS.Core.Geometry.GeometryEngine;
ArcGIS.Core.Geometry.Geometry geometry;
ArcGIS.Core.Geometry.ProjectionTransformation projTransformation;
// before:
ArcGIS.Core.Geometry.Geometry result = geometryengine.ProjectEx (geometry, projTransformation);
// now:
ArcGIS.Core.Geometry.Geometry result = geometryengine.Instance.ProjectEx (geometry, projTransformation);
- ArcGIS.Core.Geometry.GeometryEngine.QueryPointAndDistance
using geometryengine = ArcGIS.Core.Geometry.GeometryEngine;
ArcGIS.Core.Geometry.Multipart multipart;
ArcGIS.Core.Geometry.SegmentExtension extension;
ArcGIS.Core.Geometry.MapPoint inPoint;
ArcGIS.Core.Geometry.AsRatioOrLength asRatioOrLength;
System.Double distanceAlongCurve;
System.Double distanceFromCurve;
ArcGIS.Core.Geometry.LeftOrRightSide whichSide;
// before:
ArcGIS.Core.Geometry.MapPoint result = geometryengine.QueryPointAndDistance (multipart, extension, inPoint, asRatioOrLength, out distanceAlongCurve, out distanceFromCurve, out whichSide);
// now:
ArcGIS.Core.Geometry.MapPoint result = geometryengine.Instance.QueryPointAndDistance (multipart, extension, inPoint, asRatioOrLength, out distanceAlongCurve, out distanceFromCurve, out whichSide);
- ArcGIS.Core.Geometry.GeometryEngine.Relate
using geometryengine = ArcGIS.Core.Geometry.GeometryEngine;
ArcGIS.Core.Geometry.Geometry geometry1;
ArcGIS.Core.Geometry.Geometry geometry2;
string relateString;
// before:
bool result = geometryengine.Relate (geometry1, geometry2, relateString);
// now:
bool result = geometryengine.Instance.Relate (geometry1, geometry2, relateString);
- ArcGIS.Core.Geometry.GeometryEngine.ReplaceNaNZs
using geometryengine = ArcGIS.Core.Geometry.GeometryEngine;
double zValue;
// before:
ArcGIS.Core.Geometry.Multipart multipart;
ArcGIS.Core.Geometry.Multipart result = geometryengine.ReplaceNaNZs (multipart, zValue);
// now:
ArcGIS.Core.Geometry.Geometry geometry;
ArcGIS.Core.Geometry.Geometry result = geometryengine.Instance.ReplaceNaNZs (geometry, zValue);
- ArcGIS.Core.Geometry.GeometryEngine.Reshape
using geometryengine = ArcGIS.Core.Geometry.GeometryEngine;
ArcGIS.Core.Geometry.Multipart multipart;
ArcGIS.Core.Geometry.Polyline reshaper;
// before:
ArcGIS.Core.Geometry.Multipart result = geometryengine.Reshape (multipart, reshaper);
// now:
ArcGIS.Core.Geometry.Multipart result = geometryengine.Instance.Reshape (multipart, reshaper);
- ArcGIS.Core.Geometry.GeometryEngine.ReverseOrientation
using geometryengine = ArcGIS.Core.Geometry.GeometryEngine;
ArcGIS.Core.Geometry.Multipart multipart;
// before:
ArcGIS.Core.Geometry.Multipart result = geometryengine.ReverseOrientation (multipart);
// now:
ArcGIS.Core.Geometry.Multipart result = geometryengine.Instance.ReverseOrientation (multipart);
- ArcGIS.Core.Geometry.GeometryEngine.Rotate
using geometryengine = ArcGIS.Core.Geometry.GeometryEngine;
ArcGIS.Core.Geometry.Geometry geometry;
ArcGIS.Core.Geometry.MapPoint origin;
double rotationAngle;
// before:
ArcGIS.Core.Geometry.Geometry result = geometryengine.Rotate (geometry, origin, rotationAngle);
// now:
ArcGIS.Core.Geometry.Geometry result = geometryengine.Instance.Rotate (geometry, origin, rotationAngle);
- ArcGIS.Core.Geometry.GeometryEngine.Scale
using geometryengine = ArcGIS.Core.Geometry.GeometryEngine;
ArcGIS.Core.Geometry.Geometry geometry;
ArcGIS.Core.Geometry.MapPoint origin;
double sx;
double sy;
double sz;
// before:
ArcGIS.Core.Geometry.Geometry result = geometryengine.Scale (geometry, origin, sx, sy, sz);
ArcGIS.Core.Geometry.Geometry result = geometryengine.Scale (geometry, origin, sx, sy);
// now:
ArcGIS.Core.Geometry.Geometry result = geometryengine.Instance.Scale (geometry, origin, sx, sy, sz);
ArcGIS.Core.Geometry.Geometry result = geometryengine.Instance.Scale (geometry, origin, sx, sy);
- ArcGIS.Core.Geometry.GeometryEngine.SetConstantZ
using geometryengine = ArcGIS.Core.Geometry.GeometryEngine;
ArcGIS.Core.Geometry.Multipart multipart;
double zValue;
// before:
ArcGIS.Core.Geometry.Multipart result = geometryengine.SetConstantZ (multipart, zValue);
// now:
ArcGIS.Core.Geometry.Multipart result = geometryengine.Instance.SetConstantZ (multipart, zValue);
- ArcGIS.Core.Geometry.GeometryEngine.ShapePreservingArea
using geometryengine = ArcGIS.Core.Geometry.GeometryEngine;
ArcGIS.Core.Geometry.Geometry geometry;
// before:
double result = geometryengine.ShapePreservingArea (geometry);
// now:
double result = geometryengine.Instance.ShapePreservingArea (geometry);
- ArcGIS.Core.Geometry.GeometryEngine.ShapePreservingLength
using geometryengine = ArcGIS.Core.Geometry.GeometryEngine;
ArcGIS.Core.Geometry.Geometry geometry;
// before:
double result = geometryengine.ShapePreservingLength (geometry);
// now:
double result = geometryengine.Instance.ShapePreservingLength (geometry);
- ArcGIS.Core.Geometry.GeometryEngine.SimplifyAsFeature
using geometryengine = ArcGIS.Core.Geometry.GeometryEngine;
ArcGIS.Core.Geometry.Geometry geometry;
// before:
bool forceSimplify = False;
ArcGIS.Core.Geometry.Geometry result = geometryengine.SimplifyAsFeature (geometry, False);
// now:
bool forceSimplify;
ArcGIS.Core.Geometry.Geometry result = geometryengine.Instance.SimplifyAsFeature (geometry, forceSimplify);
- ArcGIS.Core.Geometry.GeometryEngine.SimplifyPolyline
using geometryengine = ArcGIS.Core.Geometry.GeometryEngine;
ArcGIS.Core.Geometry.Polyline polyline;
ArcGIS.Core.Geometry.SimplifyType simplifyType;
// before:
bool forceSimplify = False;
ArcGIS.Core.Geometry.Polyline result = geometryengine.SimplifyPolyline (polyline, simplifyType, False);
// now:
bool forceSimplify;
ArcGIS.Core.Geometry.Polyline result = geometryengine.Instance.SimplifyPolyline (polyline, simplifyType, forceSimplify);
- ArcGIS.Core.Geometry.GeometryEngine.SymmetricDifference
using geometryengine = ArcGIS.Core.Geometry.GeometryEngine;
ArcGIS.Core.Geometry.Geometry geometry1;
ArcGIS.Core.Geometry.Geometry geometry2;
// before:
ArcGIS.Core.Geometry.Geometry result = geometryengine.SymmetricDifference (geometry1, geometry2);
// now:
ArcGIS.Core.Geometry.Geometry result = geometryengine.Instance.SymmetricDifference (geometry1, geometry2);
- ArcGIS.Core.Geometry.GeometryEngine.Touches
using geometryengine = ArcGIS.Core.Geometry.GeometryEngine;
ArcGIS.Core.Geometry.Geometry geometry1;
ArcGIS.Core.Geometry.Geometry geometry2;
// before:
bool result = geometryengine.Touches (geometry1, geometry2);
// now:
bool result = geometryengine.Instance.Touches (geometry1, geometry2);
- ArcGIS.Core.Geometry.GeometryEngine.Union
using geometryengine = ArcGIS.Core.Geometry.GeometryEngine;
System.Collections.Generic.IEnumerable<ArcGIS.Core.Geometry.Geometry> geometries;
ArcGIS.Core.Geometry.Geometry geometry1;
ArcGIS.Core.Geometry.Geometry geometry2;
// before:
ArcGIS.Core.Geometry.Geometry result = geometryengine.Union (geometries);
ArcGIS.Core.Geometry.Geometry result = geometryengine.Union (geometry1, geometry2);
// now:
ArcGIS.Core.Geometry.Geometry result = geometryengine.Instance.Union (geometries);
ArcGIS.Core.Geometry.Geometry result = geometryengine.Instance.Union (geometry1, geometry2);
- ArcGIS.Core.Geometry.GeometryEngine.Within
using geometryengine = ArcGIS.Core.Geometry.GeometryEngine;
ArcGIS.Core.Geometry.Geometry geometry1;
ArcGIS.Core.Geometry.Geometry geometry2;
// before:
bool result = geometryengine.Within (geometry1, geometry2);
// now:
bool result = geometryengine.Instance.Within (geometry1, geometry2);
- ArcGIS.Core.Geometry.LineBuilder Constructor
ArcGIS.Core.Geometry.SpatialReference spatialReference;
// before:
ArcGIS.Core.Geometry.Coordinate startCoord;
ArcGIS.Core.Geometry.Coordinate endCoord;
var linebuilder = new LineBuilder (startCoord, endCoord, spatialReference);
// now:
ArcGIS.Core.Geometry.Coordinate2D startCoord2D;
ArcGIS.Core.Geometry.Coordinate2D endCoord2D;
ArcGIS.Core.Geometry.Coordinate3D startCoord3D;
ArcGIS.Core.Geometry.Coordinate3D endCoord3D;
var linebuilder = new LineBuilder (startCoord2D, endCoord2D, spatialReference);
var linebuilder = new LineBuilder (startCoord3D, endCoord3D, spatialReference);
- ArcGIS.Core.Geometry.LineBuilder.CreateLineSegment
ArcGIS.Core.Geometry.SpatialReference spatialReference;
// before:
ArcGIS.Core.Geometry.Coordinate startCoord;
ArcGIS.Core.Geometry.Coordinate endCoord;
ArcGIS.Core.Geometry.LineBuilder linebuilder;
ArcGIS.Core.Geometry.LineSegment result = linebuilder.CreateLineSegment (startCoord, endCoord, spatialReference);
// now:
ArcGIS.Core.Geometry.Coordinate2D startCoord2D;
ArcGIS.Core.Geometry.Coordinate2D endCoord2D;
ArcGIS.Core.Geometry.Coordinate3D startCoord3D;
ArcGIS.Core.Geometry.Coordinate3D endCoord3D;
ArcGIS.Core.Geometry.LineBuilder linebuilder;
ArcGIS.Core.Geometry.LineSegment result = linebuilder.CreateLineSegment (startCoord2D, endCoord2D, spatialReference);
ArcGIS.Core.Geometry.LineSegment result = linebuilder.CreateLineSegment (startCoord3D, endCoord3D, spatialReference);
- ArcGIS.Core.Geometry.MapPointBuilder Constructor
double x;
double y;
double z;
ArcGIS.Core.Geometry.SpatialReference spatialReference;
double m;
// before:
bool hasZ = False;
ArcGIS.Core.Geometry.Coordinate coordinate;
bool hasM = False;
var mappointbuilder = new MapPointBuilder (x, y, z, spatialReference, False);
var mappointbuilder = new MapPointBuilder (coordinate, spatialReference);
var mappointbuilder = new MapPointBuilder ();
var mappointbuilder = new MapPointBuilder (x, y, z, m, spatialReference, False, False);
// now:
ArcGIS.Core.Geometry.Coordinate3D coordinate3D;
int id;
var mappointbuilder = new MapPointBuilder (x, y, z, m, spatialReference);
var mappointbuilder = new MapPointBuilder (coordinate3D, spatialReference);
var mappointbuilder = new MapPointBuilder (x, y, z, spatialReference);
var mappointbuilder = new MapPointBuilder (x, y, z, m, id, spatialReference);
- ArcGIS.Core.Geometry.MapPointBuilder.CreateMapPoint
ArcGIS.Core.Geometry.SpatialReference spatialReference;
// before:
ArcGIS.Core.Geometry.Coordinate2D coord2D;
ArcGIS.Core.Geometry.Coordinate coordinate;
ArcGIS.Core.Geometry.MapPointBuilder mappointbuilder;
ArcGIS.Core.Geometry.MapPoint result = mappointbuilder.CreateMapPoint (coord2D, spatialReference);
ArcGIS.Core.Geometry.MapPoint result = mappointbuilder.CreateMapPoint (coordinate, spatialReference);
// now:
ArcGIS.Core.Geometry.Coordinate2D coordinate2D;
ArcGIS.Core.Geometry.Coordinate3D coordinate3D;
ArcGIS.Core.Geometry.MapPointBuilder mappointbuilder;
ArcGIS.Core.Geometry.MapPoint result = mappointbuilder.CreateMapPoint (coordinate2D, spatialReference);
ArcGIS.Core.Geometry.MapPoint result = mappointbuilder.CreateMapPoint (coordinate3D, spatialReference);
- ArcGIS.Core.Geometry.MultipartBuilder.AddPart
// before:
System.Collections.Generic.IEnumerable<ArcGIS.Core.Geometry.Coordinate> coordinates;
ArcGIS.Core.Geometry.MultipartBuilder<T> multipartbuilder;
multipartbuilder.AddPart (coordinates);
// now:
System.Collections.Generic.IEnumerable<ArcGIS.Core.Geometry.Coordinate3D> coordinates;
ArcGIS.Core.Geometry.MultipartBuilder<T> multipartbuilder;
multipartbuilder.AddPart (coordinates);
- ArcGIS.Core.Geometry.MultipartBuilder.InsertPart
int beforePartIndex;
// before:
System.Collections.Generic.IEnumerable<ArcGIS.Core.Geometry.Coordinate> coordinates;
ArcGIS.Core.Geometry.MultipartBuilder<T> multipartbuilder;
multipartbuilder.InsertPart (beforePartIndex, coordinates);
// now:
System.Collections.Generic.IEnumerable<ArcGIS.Core.Geometry.Coordinate3D> coordinates;
ArcGIS.Core.Geometry.MultipartBuilder<T> multipartbuilder;
multipartbuilder.InsertPart (beforePartIndex, coordinates);
- ArcGIS.Core.Geometry.MultipointBuilder Constructor
ArcGIS.Core.Geometry.SpatialReference spatialReference;
// before:
System.Collections.Generic.IEnumerable<ArcGIS.Core.Geometry.Coordinate> coordinates;
var multipointbuilder = new MultipointBuilder (coordinates, spatialReference);
// now:
System.Collections.Generic.IEnumerable<ArcGIS.Core.Geometry.Coordinate3D> coordinates;
var multipointbuilder = new MultipointBuilder (coordinates, spatialReference);
- ArcGIS.Core.Geometry.MultipointBuilder.Add
// before:
ArcGIS.Core.Geometry.Coordinate point;
System.Collections.Generic.IEnumerable<ArcGIS.Core.Geometry.Coordinate> points;
ArcGIS.Core.Geometry.MultipointBuilder multipointbuilder;
multipointbuilder.Add (point);
multipointbuilder.Add (points);
// now:
ArcGIS.Core.Geometry.Coordinate3D point3D;
System.Collections.Generic.IEnumerable<ArcGIS.Core.Geometry.Coordinate3D> points;
ArcGIS.Core.Geometry.MultipointBuilder multipointbuilder;
multipointbuilder.Add (point3D);
multipointbuilder.Add (points);
- ArcGIS.Core.Geometry.MultipointBuilder.CreateMultipoint
ArcGIS.Core.Geometry.SpatialReference spatialReference;
// before:
System.Collections.Generic.IEnumerable<ArcGIS.Core.Geometry.Coordinate> coordinates;
ArcGIS.Core.Geometry.MultipointBuilder multipointbuilder;
ArcGIS.Core.Geometry.Multipoint result = multipointbuilder.CreateMultipoint (coordinates, spatialReference);
// now:
System.Collections.Generic.IEnumerable<ArcGIS.Core.Geometry.Coordinate3D> coordinates;
ArcGIS.Core.Geometry.MultipointBuilder multipointbuilder;
ArcGIS.Core.Geometry.Multipoint result = multipointbuilder.CreateMultipoint (coordinates, spatialReference);
- ArcGIS.Core.Geometry.MultipointBuilder.Insert
int beforePointIndex;
// before:
ArcGIS.Core.Geometry.Coordinate coordinate;
System.Collections.Generic.IEnumerable<ArcGIS.Core.Geometry.Coordinate> coordinates;
ArcGIS.Core.Geometry.MultipointBuilder multipointbuilder;
multipointbuilder.Insert (beforePointIndex, coordinate);
multipointbuilder.Insert (beforePointIndex, coordinates);
// now:
ArcGIS.Core.Geometry.Coordinate3D coordinate3D;
System.Collections.Generic.IEnumerable<ArcGIS.Core.Geometry.Coordinate3D> coordinates;
ArcGIS.Core.Geometry.MultipointBuilder multipointbuilder;
multipointbuilder.Insert (beforePointIndex, coordinate3D);
multipointbuilder.Insert (beforePointIndex, coordinates);
- ArcGIS.Core.Geometry.PolygonBuilder Constructor
ArcGIS.Core.Geometry.SpatialReference spatialReference;
// before:
System.Collections.Generic.IEnumerable<ArcGIS.Core.Geometry.Coordinate> coordinates;
var polygonbuilder = new PolygonBuilder (coordinates, spatialReference);
// now:
System.Collections.Generic.IEnumerable<ArcGIS.Core.Geometry.Coordinate3D> coordinates;
var polygonbuilder = new PolygonBuilder (coordinates, spatialReference);
- ArcGIS.Core.Geometry.PolygonBuilder.CreatePolygon
ArcGIS.Core.Geometry.SpatialReference spatialReference;
// before:
System.Collections.Generic.IEnumerable<ArcGIS.Core.Geometry.Coordinate> coordinates;
ArcGIS.Core.Geometry.PolygonBuilder polygonbuilder;
ArcGIS.Core.Geometry.Polygon result = polygonbuilder.CreatePolygon (coordinates, spatialReference);
// now:
System.Collections.Generic.IEnumerable<ArcGIS.Core.Geometry.Coordinate3D> coordinates;
ArcGIS.Core.Geometry.PolygonBuilder polygonbuilder;
ArcGIS.Core.Geometry.Polygon result = polygonbuilder.CreatePolygon (coordinates, spatialReference);
- ArcGIS.Core.Geometry.PolylineBuilder Constructor
ArcGIS.Core.Geometry.SpatialReference spatialReference;
// before:
System.Collections.Generic.IEnumerable<ArcGIS.Core.Geometry.Coordinate> coordinates;
var polylinebuilder = new PolylineBuilder (coordinates, spatialReference);
// now:
System.Collections.Generic.IEnumerable<ArcGIS.Core.Geometry.Coordinate3D> coordinates;
var polylinebuilder = new PolylineBuilder (coordinates, spatialReference);
- ArcGIS.Core.Geometry.PolylineBuilder.CreatePolyline
ArcGIS.Core.Geometry.SpatialReference spatialReference;
// before:
System.Collections.Generic.IEnumerable<ArcGIS.Core.Geometry.Coordinate> coordinates;
ArcGIS.Core.Geometry.PolylineBuilder polylinebuilder;
ArcGIS.Core.Geometry.Polyline result = polylinebuilder.CreatePolyline (coordinates, spatialReference);
// now:
System.Collections.Generic.IEnumerable<ArcGIS.Core.Geometry.Coordinate3D> coordinates;
ArcGIS.Core.Geometry.PolylineBuilder polylinebuilder;
ArcGIS.Core.Geometry.Polyline result = polylinebuilder.CreatePolyline (coordinates, spatialReference);
- ArcGIS.Desktop.Core.IProjectWindow.SelectedItems
// before:
ArcGIS.Desktop.Core.IProjectWindow iprojectwindow;
System.Collections.Generic.IEnumerable<ArcGIS.Desktop.Core.ProjectItem> result = iprojectwindow.SelectedItems ;
// now:
ArcGIS.Desktop.Core.IProjectWindow iprojectwindow;
System.Collections.Generic.IEnumerable<ArcGIS.Desktop.Core.Item> result = iprojectwindow.SelectedItems ;
- ArcGIS.Desktop.Core.Item.IsContainer
// before:
ArcGIS.Desktop.Core.Item item;
bool result = item.IsContainer ;
// now:
ArcGIS.Desktop.Core.Item item;
bool result = item.IsContainer ;
- ArcGIS.Desktop.Core.ItemFactory.Create
using itemfactory = ArcGIS.Desktop.Core.ItemFactory;
string uri;
ArcGIS.Desktop.Core.ItemType itemType = 0;
// before:
ArcGIS.Desktop.Core.Item result = itemfactory.Create (uri, 0);
// now:
ArcGIS.Desktop.Core.Item result = itemfactory.Instance.Create (uri, 0);
- ArcGIS.Desktop.Core.Project.Current.AddItem
string addFolderPath;
// before:
var theFolderToAdd = ItemFactory.Create(addFolderPath);
await Project.Current.AddAsync(theFolderToAdd);
// now:
var theFolderToAdd = ItemFactory.Instance.Create(addFolderPath);
await QueuedTask.Run(() => Project.Current.AddItem(theFolderToAdd as IProjectItem));
- ArcGIS.Desktop.Core.Project.Current.RemoveItem
// before:
FolderConnectionProjectItem folderToRemove = Project.Current.GetItems<FolderConnectionProjectItem>().FirstOrDefault(myfolder => myfolder.Name.Equals("PlantSpecies"));
if (folderToRemove != null)
await Project.Current.RemoveAsync(folderToRemove);
// now:
FolderConnectionProjectItem folderToRemove = Project.Current.GetItems<FolderConnectionProjectItem>().FirstOrDefault(myfolder => myfolder.Name.Equals("PlantSpecies"));
if (folderToRemove != null)
Project.Current.RemoveItem(folderToRemove as IProjectItem);
- ArcGIS.Desktop.Core.Project.GetItems
// before:
ArcGIS.Desktop.Core.Project project;
System.Collections.Generic.IEnumerable<Item> result = project.GetItems<Item> ();
System.Collections.Generic.IEnumerable<Item> result = await project.GetItemsAsync ();
// now:
ArcGIS.Desktop.Core.Project project;
System.Collections.Generic.IEnumerable<Item> result = project.GetItems<Item> ();
- ArcGIS.Desktop.Core.Project.Items
// before:
ArcGIS.Desktop.Core.Project project;
System.Collections.ObjectModel.ReadOnlyObservableCollection<ArcGIS.Desktop.Core.ProjectItem> result = project.Items ;
// now:
ArcGIS.Desktop.Core.Project project;
System.Collections.ObjectModel.ReadOnlyObservableCollection<ArcGIS.Desktop.Core.Item> result = project.Items ;
- ArcGIS.Desktop.Core.Project.SearchAsync
List<Item> _mxd = new List<Item>();
//Gets all the folder connections in the current project
// before:
var allFoldersItem = Project.Current.GetItems<FolderConnectionProjectItem>();
if (allFoldersItem != null)
{
//iterate through all the FolderConnectionProjectItems found
foreach (var folderItem in allFoldersItem)
{
_mxd.AddRange(await folderItem.SearchAsync(".mxd"));
}
}
// now:
List<Item> _mxd = new List<Item>();
_mxd.AddRange(await Project.Current.SearchAsync(".mxd"));
- ArcGIS.Desktop.Core.Events.ProjectItemsChangedEventArgs.ProjectItem
// before:
ArcGIS.Desktop.Core.Events.ProjectItemsChangedEventArgs projectitemschangedeventargs;
ArcGIS.Desktop.Core.ProjectItem result = projectitemschangedeventargs.ProjectItem ;
// now:
ArcGIS.Desktop.Core.Events.ProjectItemsChangedEventArgs projectitemschangedeventargs;
ArcGIS.Desktop.Core.Item result = projectitemschangedeventargs.ProjectItem ;
- ArcGIS.Desktop.Core.Geoprocessing.Geoprocessing.ShowMessageBox
System.Collections.Generic.IEnumerable<ArcGIS.Desktop.Core.Geoprocessing.IGPMessage> messages;
string content_header;
ArcGIS.Desktop.Core.Geoprocessing.GPMessageBoxStyle style;
string window_title;
string icon_source;
// before:
ArcGIS.Desktop.Core.Geoprocessing.Geoprocessing geoprocessing;
geoprocessing.ShowMessageBox (messages, content_header, style, window_title, icon_source);
// now:
ArcGIS.Desktop.Framework.Contracts.ViewModelBase parentViewModel;
ArcGIS.Desktop.Core.Geoprocessing.Geoprocessing geoprocessing;
geoprocessing.ShowMessageBox (messages, content_header, style, window_title, icon_source, parentViewModel);
- ArcGIS.Desktop.Editing.EditOperation.Planarize
ArcGIS.Desktop.Mapping.Layer sourceLayer;
System.Collections.Generic.IEnumerable<long> sourceOIDs;
// before:
double clusterTolerance;
ArcGIS.Desktop.Editing.EditOperation editoperation;
editoperation.Planarize (sourceLayer, sourceOIDs, clusterTolerance);
// now:
double? clusterTolerance;
ArcGIS.Desktop.Editing.EditOperation editoperation;
editoperation.Planarize (sourceLayer, sourceOIDs, clusterTolerance);
- ArcGIS.Desktop.Editing.Attributes.Attribute.SetOriginalValue
object value;
// before:
ArcGIS.Desktop.Editing.Attributes.Attribute attribute;
attribute.SetOriginalValue (value);
// now:
bool didEditFail = False;
ArcGIS.Desktop.Editing.Attributes.Attribute attribute;
attribute.SetOriginalValue (value, False);
- ArcGIS.Desktop.Editing.Events.TopologyEventArgs Constructor
System.Tuple<stringbooldouble> newUseTopology;
System.Tuple<stringbooldouble> oldUseTopology;
// before:
var topologyeventargs = new TopologyEventArgs (newUseTopology, oldUseTopology);
// now:
ArcGIS.Desktop.Mapping.Map map;
var topologyeventargs = new TopologyEventArgs (map, newUseTopology, oldUseTopology);
- ArcGIS.Desktop.Framework.Controls.EmbeddableControl Constructor
System.Xml.Linq.XElement options;
// before:
var embeddablecontrol = new EmbeddableControl (options);
// now:
bool canChangeOptions;
var embeddablecontrol = new EmbeddableControl (options, canChangeOptions);
- ArcGIS.Desktop.Framework.Controls.EmbeddableControl.Create
string damlID;
// before:
System.Xml.Linq.XElement options;
ArcGIS.Desktop.Framework.Controls.EmbeddableControl embeddablecontrol;
System.Tuple<ArcGIS.Desktop.Framework.Controls.EmbeddableControl,System.Windows.Controls.UserControl> result = embeddablecontrol.Create (damlID, options);
// now:
ArcGIS.Desktop.Framework.Controls.EmbeddableControl embeddablecontrol;
System.Tuple<ArcGIS.Desktop.Framework.Controls.EmbeddableControl,System.Windows.Controls.UserControl> result = embeddablecontrol.Create (damlID);
- ArcGIS.Desktop.Layouts.GroupElement.Elements
// before:
ArcGIS.Desktop.Layouts.GroupElement groupelement;
System.Collections.ObjectModel.ObservableCollection<ArcGIS.Desktop.Layouts.Element> result = groupelement.Elements ;
// now:
ArcGIS.Desktop.Layouts.GroupElement groupelement;
System.Collections.ObjectModel.ReadOnlyObservableCollection<ArcGIS.Desktop.Layouts.Element> result = groupelement.Elements ;
- ArcGIS.Desktop.Layouts.TextProperties Constructor
string text;
string font;
double fontSize;
// before:
var textproperties = new TextProperties (text, font, fontSize);
// now:
string fontStyle;
var textproperties = new TextProperties (text, font, fontSize, fontStyle);
- ArcGIS.Desktop.Mapping.ColorFactory.BlackRGB
using colorfactory = ArcGIS.Desktop.Mapping.ColorFactory;
// before:
ArcGIS.Core.CIM.CIMColor result = colorfactory.BlackRGB ;
// now:
ArcGIS.Core.CIM.CIMColor result = colorfactory.Instance.BlackRGB ;
- ArcGIS.Desktop.Mapping.ColorFactory.BlueRGB
using colorfactory = ArcGIS.Desktop.Mapping.ColorFactory;
// before:
ArcGIS.Core.CIM.CIMColor result = colorfactory.BlueRGB ;
// now:
ArcGIS.Core.CIM.CIMColor result = colorfactory.Instance.BlueRGB ;
- ArcGIS.Desktop.Mapping.ColorFactory.CreateColor
using colorfactory = ArcGIS.Desktop.Mapping.ColorFactory;
System.Drawing.Color color;
System.Windows.Media.Color color;
// before:
ArcGIS.Core.CIM.CIMColor result = colorfactory.CreateColor (color);
// now:
ArcGIS.Core.CIM.CIMColor result = colorfactory.Instance.CreateColor (color);
- ArcGIS.Desktop.Mapping.ColorFactory.CreateRGBColor
using colorfactory = ArcGIS.Desktop.Mapping.ColorFactory;
// before:
System.Single R;
System.Single G;
System.Single B;
System.Single A = 100;
ArcGIS.Core.CIM.CIMColor result = colorfactory.CreateRGBColor (R, G, B, 100);
// now:
double R;
double G;
double B;
double A = 100;
ArcGIS.Core.CIM.CIMColor result = colorfactory.Instance.CreateRGBColor (R, G, B, 100);
- ArcGIS.Desktop.Mapping.ColorFactory.GreenRGB
using colorfactory = ArcGIS.Desktop.Mapping.ColorFactory;
// before:
ArcGIS.Core.CIM.CIMColor result = colorfactory.GreenRGB ;
// now:
ArcGIS.Core.CIM.CIMColor result = colorfactory.Instance.GreenRGB ;
- ArcGIS.Desktop.Mapping.ColorFactory.GreyRGB
using colorfactory = ArcGIS.Desktop.Mapping.ColorFactory;
// before:
ArcGIS.Core.CIM.CIMColor result = colorfactory.GreyRGB ;
// now:
ArcGIS.Core.CIM.CIMColor result = colorfactory.Instance.GreyRGB ;
- ArcGIS.Desktop.Mapping.ColorFactory.RedRGB
using colorfactory = ArcGIS.Desktop.Mapping.ColorFactory;
// before:
ArcGIS.Core.CIM.CIMColor result = colorfactory.RedRGB ;
// now:
ArcGIS.Core.CIM.CIMColor result = colorfactory.Instance.RedRGB ;
- ArcGIS.Desktop.Mapping.ColorFactory.WhiteRGB
using colorfactory = ArcGIS.Desktop.Mapping.ColorFactory;
// before:
ArcGIS.Core.CIM.CIMColor result = colorfactory.WhiteRGB ;
// now:
ArcGIS.Core.CIM.CIMColor result = colorfactory.Instance.WhiteRGB ;
- ArcGIS.Desktop.Mapping.LayerFactory.CanCreateLayerFrom
using layerfactory = ArcGIS.Desktop.Mapping.LayerFactory;
ArcGIS.Desktop.Core.Item item;
// before:
bool result = layerfactory.CanCreateLayerFrom (item);
// now:
bool result = layerfactory.Instance.CanCreateLayerFrom (item);
- ArcGIS.Desktop.Mapping.LayerFactory.CreateFeatureLayer
using layerfactory = ArcGIS.Desktop.Mapping.LayerFactory;
System.Uri dataUri;
ArcGIS.Desktop.Mapping.ILayerContainerEdit mapOrGroupLayer;
ArcGIS.Desktop.Mapping.LayerPosition position = 0;
string layerName = "";
ArcGIS.Desktop.Mapping.RendererDefinition rendererDefinition;
int index;
ArcGIS.Core.CIM.CIMDataConnection dataConnection;
ArcGIS.Core.Data.FeatureClass featureClass;
ArcGIS.Desktop.Core.Item item;
// before:
ArcGIS.Desktop.Mapping.FeatureLayer result = layerfactory.CreateFeatureLayer (dataUri, mapOrGroupLayer, 0, "", rendererDefinition);
ArcGIS.Desktop.Mapping.FeatureLayer result = layerfactory.CreateFeatureLayer (dataUri, mapOrGroupLayer, index, "", rendererDefinition);
ArcGIS.Desktop.Mapping.FeatureLayer result = layerfactory.CreateFeatureLayer (dataConnection, mapOrGroupLayer, 0, "", rendererDefinition);
ArcGIS.Desktop.Mapping.FeatureLayer result = layerfactory.CreateFeatureLayer (dataConnection, mapOrGroupLayer, index, "", rendererDefinition);
ArcGIS.Desktop.Mapping.FeatureLayer result = layerfactory.CreateFeatureLayer (featureClass, mapOrGroupLayer, 0, "", rendererDefinition);
ArcGIS.Desktop.Mapping.FeatureLayer result = layerfactory.CreateFeatureLayer (featureClass, mapOrGroupLayer, index, "", rendererDefinition);
ArcGIS.Desktop.Mapping.FeatureLayer result = layerfactory.CreateFeatureLayer (item, mapOrGroupLayer, 0, "", rendererDefinition);
ArcGIS.Desktop.Mapping.FeatureLayer result = layerfactory.CreateFeatureLayer (item, mapOrGroupLayer, index, "", rendererDefinition);
// now:
ArcGIS.Desktop.Mapping.FeatureLayer result = layerfactory.Instance.CreateFeatureLayer (dataUri, mapOrGroupLayer, 0, "", rendererDefinition);
ArcGIS.Desktop.Mapping.FeatureLayer result = layerfactory.Instance.CreateFeatureLayer (dataUri, mapOrGroupLayer, index, "", rendererDefinition);
ArcGIS.Desktop.Mapping.FeatureLayer result = layerfactory.Instance.CreateFeatureLayer (dataConnection, mapOrGroupLayer, 0, "", rendererDefinition);
ArcGIS.Desktop.Mapping.FeatureLayer result = layerfactory.Instance.CreateFeatureLayer (dataConnection, mapOrGroupLayer, index, "", rendererDefinition);
ArcGIS.Desktop.Mapping.FeatureLayer result = layerfactory.Instance.CreateFeatureLayer (featureClass, mapOrGroupLayer, 0, "", rendererDefinition);
ArcGIS.Desktop.Mapping.FeatureLayer result = layerfactory.Instance.CreateFeatureLayer (featureClass, mapOrGroupLayer, index, "", rendererDefinition);
ArcGIS.Desktop.Mapping.FeatureLayer result = layerfactory.Instance.CreateFeatureLayer (item, mapOrGroupLayer, 0, "", rendererDefinition);
ArcGIS.Desktop.Mapping.FeatureLayer result = layerfactory.Instance.CreateFeatureLayer (item, mapOrGroupLayer, index, "", rendererDefinition);
- ArcGIS.Desktop.Mapping.LayerFactory.CreateGroupLayer
using layerfactory = ArcGIS.Desktop.Mapping.LayerFactory;
ArcGIS.Desktop.Mapping.ILayerContainerEdit container;
int index;
string layerName = "";
// before:
ArcGIS.Desktop.Mapping.GroupLayer result = layerfactory.CreateGroupLayer (container, index, "");
// now:
ArcGIS.Desktop.Mapping.GroupLayer result = layerfactory.Instance.CreateGroupLayer (container, index, "");
- ArcGIS.Desktop.Mapping.LayerFactory.CreateLayer
using layerfactory = ArcGIS.Desktop.Mapping.LayerFactory;
System.Uri dataUri;
ArcGIS.Desktop.Mapping.ILayerContainerEdit mapOrGroupLayer;
ArcGIS.Desktop.Mapping.LayerPosition position = 0;
string layerName = "";
ArcGIS.Core.CIM.CIMDataConnection dataConnection;
int index;
ArcGIS.Desktop.Core.Item item;
// before:
ArcGIS.Desktop.Mapping.Layer result = layerfactory.CreateLayer (dataUri, mapOrGroupLayer, 0, "");
ArcGIS.Desktop.Mapping.Layer result = layerfactory.CreateLayer (dataConnection, mapOrGroupLayer, index, "");
ArcGIS.Desktop.Mapping.Layer result = layerfactory.CreateLayer (dataConnection, mapOrGroupLayer, 0, "");
ArcGIS.Desktop.Mapping.Layer result = layerfactory.CreateLayer (item, mapOrGroupLayer, index, "");
ArcGIS.Desktop.Mapping.Layer result = layerfactory.CreateLayer (item, mapOrGroupLayer, 0, "");
ArcGIS.Desktop.Mapping.Layer result = layerfactory.CreateLayer (dataUri, mapOrGroupLayer, index, "");
// now:
ArcGIS.Desktop.Mapping.Layer result = layerfactory.Instance.CreateLayer (dataUri, mapOrGroupLayer, 0, "");
ArcGIS.Desktop.Mapping.Layer result = layerfactory.Instance.CreateLayer (dataConnection, mapOrGroupLayer, index, "");
ArcGIS.Desktop.Mapping.Layer result = layerfactory.Instance.CreateLayer (dataConnection, mapOrGroupLayer, 0, "");
ArcGIS.Desktop.Mapping.Layer result = layerfactory.Instance.CreateLayer (item, mapOrGroupLayer, index, "");
ArcGIS.Desktop.Mapping.Layer result = layerfactory.Instance.CreateLayer (item, mapOrGroupLayer, 0, "");
ArcGIS.Desktop.Mapping.Layer result = layerfactory.Instance.CreateLayer (dataUri, mapOrGroupLayer, index, "");
- ArcGIS.Desktop.Mapping.MapFactory.CanCreateMapFrom
using mapfactory = ArcGIS.Desktop.Mapping.MapFactory;
ArcGIS.Desktop.Core.Item item;
// before:
bool result = mapfactory.CanCreateMapFrom (item);
// now:
bool result = mapfactory.Instance.CanCreateMapFrom (item);
- ArcGIS.Desktop.Mapping.MapFactory.CreateMap
using mapfactory = ArcGIS.Desktop.Mapping.MapFactory;
string name;
ArcGIS.Core.CIM.MapType mapType = 0;
ArcGIS.Core.CIM.MapViewingMode defaultViewingMode = 0;
ArcGIS.Desktop.Mapping.Basemap basemap = 1;
// before:
ArcGIS.Desktop.Mapping.Map result = mapfactory.CreateMap (name, 0, 0, 1);
// now:
ArcGIS.Desktop.Mapping.Map result = mapfactory.Instance.CreateMap (name, 0, 0, 1);
- ArcGIS.Desktop.Mapping.StandaloneTableFactory.CanCreateStandaloneTableFrom
using standalonetablefactory = ArcGIS.Desktop.Mapping.StandaloneTableFactory;
ArcGIS.Desktop.Core.Item item;
// before:
bool result = standalonetablefactory.CanCreateStandaloneTableFrom (item);
// now:
bool result = standalonetablefactory.Instance.CanCreateStandaloneTableFrom (item);
- ArcGIS.Desktop.Mapping.StandaloneTableFactory.CreateStandaloneTable
using standalonetablefactory = ArcGIS.Desktop.Mapping.StandaloneTableFactory;
ArcGIS.Core.CIM.CIMDataConnection dataConnection;
ArcGIS.Desktop.Mapping.IStandaloneTableContainerEdit container;
string tableName = "";
ArcGIS.Core.Data.Table table;
ArcGIS.Desktop.Core.Item item;
System.Uri tableUri;
// before:
ArcGIS.Desktop.Mapping.StandaloneTable result = standalonetablefactory.CreateStandaloneTable (dataConnection, container, "");
ArcGIS.Desktop.Mapping.StandaloneTable result = standalonetablefactory.CreateStandaloneTable (table, container, "");
ArcGIS.Desktop.Mapping.StandaloneTable result = standalonetablefactory.CreateStandaloneTable (item, container, "");
ArcGIS.Desktop.Mapping.StandaloneTable result = standalonetablefactory.CreateStandaloneTable (tableUri, container, "");
// now:
ArcGIS.Desktop.Mapping.StandaloneTable result = standalonetablefactory.Instance.CreateStandaloneTable (dataConnection, container, "");
ArcGIS.Desktop.Mapping.StandaloneTable result = standalonetablefactory.Instance.CreateStandaloneTable (table, container, "");
ArcGIS.Desktop.Mapping.StandaloneTable result = standalonetablefactory.Instance.CreateStandaloneTable (item, container, "");
ArcGIS.Desktop.Mapping.StandaloneTable result = standalonetablefactory.Instance.CreateStandaloneTable (tableUri, container, "");
- ArcGIS.Desktop.Mapping.StyleHelper.AddStyle
string theCustomStyleToAdd = @"C:\Temp\CustomStyle.stylx";
// before:
await Project.Current.AddStyleAsync(theCustomStyleToAdd);
// now:
await QueuedTask.Run(() => StyleHelper.AddStyle (Project.Current, theCustomStyleToAdd));
- ArcGIS.Desktop.Mapping.StyleHelper.CreateStyle
string styleToCreate = @"C:\Temp\CustomStyle.stylx";
// before:
await Project.Current.AddStyleAsync(styleToCreate);
// now:
await QueuedTask.Run(() => StyleHelper.AddStyle (Project.Current, styleToCreate));
- ArcGIS.Desktop.Mapping.StyleHelper.RemoveStyle
// before:
await Project.Current.RemoveStyleAsync("3D Vehicles");
// now:
await QueuedTask.Run(() => StyleHelper.RemoveStyle (Project.Current, "3D Vehicles"));
- ArcGIS.Desktop.Mapping.SymbolFactory.ConstructFill
using symbolfactory = ArcGIS.Desktop.Mapping.SymbolFactory;
// before:
ArcGIS.Core.CIM.CIMFill result = symbolfactory.ConstructFill ();
// now:
ArcGIS.Core.CIM.CIMFill result = symbolfactory.Instance.ConstructFill ();
- ArcGIS.Desktop.Mapping.SymbolFactory.ConstructHatchFill
using symbolfactory = ArcGIS.Desktop.Mapping.SymbolFactory;
ArcGIS.Core.CIM.CIMColor color;
double angle;
double separation;
// before:
ArcGIS.Core.CIM.CIMFill result = symbolfactory.ConstructHatchFill (color, angle, separation);
// now:
ArcGIS.Core.CIM.CIMFill result = symbolfactory.Instance.ConstructHatchFill (color, angle, separation);
- ArcGIS.Desktop.Mapping.SymbolFactory.ConstructLineSymbol
using symbolfactory = ArcGIS.Desktop.Mapping.SymbolFactory;
ArcGIS.Core.CIM.CIMColor color;
double width;
ArcGIS.Desktop.Mapping.SimpleLineStyle lineStyle;
ArcGIS.Core.CIM.CIMStroke stroke;
// before:
ArcGIS.Core.CIM.CIMLineSymbol result = symbolfactory.ConstructLineSymbol (color, width, lineStyle);
ArcGIS.Core.CIM.CIMLineSymbol result = symbolfactory.ConstructLineSymbol (stroke);
ArcGIS.Core.CIM.CIMLineSymbol result = symbolfactory.ConstructLineSymbol (color, width);
ArcGIS.Core.CIM.CIMLineSymbol result = symbolfactory.ConstructLineSymbol ();
ArcGIS.Core.CIM.CIMLineSymbol result = symbolfactory.ConstructLineSymbol (color);
// now:
ArcGIS.Core.CIM.CIMLineSymbol result = symbolfactory.Instance.ConstructLineSymbol (color, width, lineStyle);
ArcGIS.Core.CIM.CIMLineSymbol result = symbolfactory.Instance.ConstructLineSymbol (stroke);
ArcGIS.Core.CIM.CIMLineSymbol result = symbolfactory.Instance.ConstructLineSymbol (color, width);
ArcGIS.Core.CIM.CIMLineSymbol result = symbolfactory.Instance.ConstructLineSymbol ();
ArcGIS.Core.CIM.CIMLineSymbol result = symbolfactory.Instance.ConstructLineSymbol (color);
- ArcGIS.Desktop.Mapping.SymbolFactory.ConstructMarker
using symbolfactory = ArcGIS.Desktop.Mapping.SymbolFactory;
int characterIndex;
string fontFamily;
string fontStyle;
int size;
ArcGIS.Core.CIM.CIMColor color;
double size;
ArcGIS.Desktop.Mapping.SimpleMarkerStyle markerStyle;
// before:
ArcGIS.Core.CIM.CIMMarker result = symbolfactory.ConstructMarker (characterIndex, fontFamily, fontStyle);
ArcGIS.Core.CIM.CIMMarker result = symbolfactory.ConstructMarker (characterIndex, fontFamily);
ArcGIS.Core.CIM.CIMMarker result = symbolfactory.ConstructMarker (characterIndex, fontFamily, fontStyle, size, color);
ArcGIS.Core.CIM.CIMMarker result = symbolfactory.ConstructMarker (characterIndex, fontFamily, fontStyle, size);
ArcGIS.Core.CIM.CIMMarker result = symbolfactory.ConstructMarker (color);
ArcGIS.Core.CIM.CIMMarker result = symbolfactory.ConstructMarker ();
ArcGIS.Core.CIM.CIMMarker result = symbolfactory.ConstructMarker (color, size, markerStyle);
ArcGIS.Core.CIM.CIMMarker result = symbolfactory.ConstructMarker (color, size);
// now:
ArcGIS.Core.CIM.CIMMarker result = symbolfactory.Instance.ConstructMarker (characterIndex, fontFamily, fontStyle);
ArcGIS.Core.CIM.CIMMarker result = symbolfactory.Instance.ConstructMarker (characterIndex, fontFamily);
ArcGIS.Core.CIM.CIMMarker result = symbolfactory.Instance.ConstructMarker (characterIndex, fontFamily, fontStyle, size, color);
ArcGIS.Core.CIM.CIMMarker result = symbolfactory.Instance.ConstructMarker (characterIndex, fontFamily, fontStyle, size);
ArcGIS.Core.CIM.CIMMarker result = symbolfactory.Instance.ConstructMarker (color);
ArcGIS.Core.CIM.CIMMarker result = symbolfactory.Instance.ConstructMarker ();
ArcGIS.Core.CIM.CIMMarker result = symbolfactory.Instance.ConstructMarker (color, size, markerStyle);
ArcGIS.Core.CIM.CIMMarker result = symbolfactory.Instance.ConstructMarker (color, size);
- ArcGIS.Desktop.Mapping.SymbolFactory.ConstructMarkerFromBitmapSource
using symbolfactory = ArcGIS.Desktop.Mapping.SymbolFactory;
System.Windows.Media.Imaging.BitmapSource bitmapSource;
// before:
ArcGIS.Core.CIM.CIMMarker result = symbolfactory.ConstructMarkerFromBitmapSource (bitmapSource);
// now:
ArcGIS.Core.CIM.CIMMarker result = symbolfactory.Instance.ConstructMarkerFromBitmapSource (bitmapSource);
- ArcGIS.Desktop.Mapping.SymbolFactory.ConstructMarkerFromStream
using symbolfactory = ArcGIS.Desktop.Mapping.SymbolFactory;
System.IO.Stream stream;
// before:
ArcGIS.Core.CIM.CIMMarker result = symbolfactory.ConstructMarkerFromStream (stream);
// now:
ArcGIS.Core.CIM.CIMMarker result = symbolfactory.Instance.ConstructMarkerFromStream (stream);
- ArcGIS.Desktop.Mapping.SymbolFactory.ConstructPointSymbol
using symbolfactory = ArcGIS.Desktop.Mapping.SymbolFactory;
ArcGIS.Core.CIM.CIMColor color;
double size;
ArcGIS.Desktop.Mapping.SimpleMarkerStyle style;
ArcGIS.Core.CIM.CIMMarker marker;
// before:
ArcGIS.Core.CIM.CIMPointSymbol result = symbolfactory.ConstructPointSymbol (color, size, style);
ArcGIS.Core.CIM.CIMPointSymbol result = symbolfactory.ConstructPointSymbol (marker);
ArcGIS.Core.CIM.CIMPointSymbol result = symbolfactory.ConstructPointSymbol (color, size);
ArcGIS.Core.CIM.CIMPointSymbol result = symbolfactory.ConstructPointSymbol ();
ArcGIS.Core.CIM.CIMPointSymbol result = symbolfactory.ConstructPointSymbol (color);
// now:
ArcGIS.Core.CIM.CIMPointSymbol result = symbolfactory.Instance.ConstructPointSymbol (color, size, style);
ArcGIS.Core.CIM.CIMPointSymbol result = symbolfactory.Instance.ConstructPointSymbol (marker);
ArcGIS.Core.CIM.CIMPointSymbol result = symbolfactory.Instance.ConstructPointSymbol (color, size);
ArcGIS.Core.CIM.CIMPointSymbol result = symbolfactory.Instance.ConstructPointSymbol ();
ArcGIS.Core.CIM.CIMPointSymbol result = symbolfactory.Instance.ConstructPointSymbol (color);
- ArcGIS.Desktop.Mapping.SymbolFactory.ConstructPolygonSymbol
using symbolfactory = ArcGIS.Desktop.Mapping.SymbolFactory;
ArcGIS.Core.CIM.CIMColor color;
ArcGIS.Desktop.Mapping.SimpleFillStyle fillStyle;
ArcGIS.Core.CIM.CIMStroke outline;
ArcGIS.Core.CIM.CIMFill fill;
// before:
ArcGIS.Core.CIM.CIMPolygonSymbol result = symbolfactory.ConstructPolygonSymbol (color, fillStyle, outline);
ArcGIS.Core.CIM.CIMPolygonSymbol result = symbolfactory.ConstructPolygonSymbol (fill, outline);
ArcGIS.Core.CIM.CIMPolygonSymbol result = symbolfactory.ConstructPolygonSymbol (color, fillStyle);
ArcGIS.Core.CIM.CIMPolygonSymbol result = symbolfactory.ConstructPolygonSymbol ();
ArcGIS.Core.CIM.CIMPolygonSymbol result = symbolfactory.ConstructPolygonSymbol (color);
// now:
ArcGIS.Core.CIM.CIMPolygonSymbol result = symbolfactory.Instance.ConstructPolygonSymbol (color, fillStyle, outline);
ArcGIS.Core.CIM.CIMPolygonSymbol result = symbolfactory.Instance.ConstructPolygonSymbol (fill, outline);
ArcGIS.Core.CIM.CIMPolygonSymbol result = symbolfactory.Instance.ConstructPolygonSymbol (color, fillStyle);
ArcGIS.Core.CIM.CIMPolygonSymbol result = symbolfactory.Instance.ConstructPolygonSymbol ();
ArcGIS.Core.CIM.CIMPolygonSymbol result = symbolfactory.Instance.ConstructPolygonSymbol (color);
- ArcGIS.Desktop.Mapping.SymbolFactory.ConstructProceduralSymbol
using symbolfactory = ArcGIS.Desktop.Mapping.SymbolFactory;
string rulePackagePath;
ArcGIS.Desktop.Mapping.FeatureLayer featureLayer;
System.Collections.Generic.IEnumerable<ArcGIS.Core.CIM.CIMPrimitiveOverride> overrides;
// before:
ArcGIS.Core.CIM.CIMSymbolReference result = symbolfactory.ConstructProceduralSymbol (rulePackagePath, featureLayer, overrides);
// now:
ArcGIS.Core.CIM.CIMSymbolReference result = symbolfactory.Instance.ConstructProceduralSymbol (rulePackagePath, featureLayer, overrides);
- ArcGIS.Desktop.Mapping.SymbolFactory.ConstructSolidFill
using symbolfactory = ArcGIS.Desktop.Mapping.SymbolFactory;
ArcGIS.Core.CIM.CIMColor color;
// before:
ArcGIS.Core.CIM.CIMFill result = symbolfactory.ConstructSolidFill (color);
// now:
ArcGIS.Core.CIM.CIMFill result = symbolfactory.Instance.ConstructSolidFill (color);
- ArcGIS.Desktop.Mapping.SymbolFactory.ConstructStroke
using symbolfactory = ArcGIS.Desktop.Mapping.SymbolFactory;
ArcGIS.Core.CIM.CIMColor color;
double width;
ArcGIS.Desktop.Mapping.SimpleLineStyle lineStyle;
// before:
ArcGIS.Core.CIM.CIMStroke result = symbolfactory.ConstructStroke (color, width);
ArcGIS.Core.CIM.CIMStroke result = symbolfactory.ConstructStroke (color, width, lineStyle);
ArcGIS.Core.CIM.CIMStroke result = symbolfactory.ConstructStroke ();
ArcGIS.Core.CIM.CIMStroke result = symbolfactory.ConstructStroke (color);
// now:
ArcGIS.Core.CIM.CIMStroke result = symbolfactory.Instance.ConstructStroke (color, width);
ArcGIS.Core.CIM.CIMStroke result = symbolfactory.Instance.ConstructStroke (color, width, lineStyle);
ArcGIS.Core.CIM.CIMStroke result = symbolfactory.Instance.ConstructStroke ();
ArcGIS.Core.CIM.CIMStroke result = symbolfactory.Instance.ConstructStroke (color);
- ArcGIS.Desktop.Mapping.SymbolFactory.ConstructTextSymbol
using symbolfactory = ArcGIS.Desktop.Mapping.SymbolFactory;
ArcGIS.Core.CIM.CIMColor color;
double size;
string fontFamilyName;
string fontStyleName;
ArcGIS.Core.CIM.CIMPolygonSymbol symbol;
// before:
ArcGIS.Core.CIM.CIMTextSymbol result = symbolfactory.ConstructTextSymbol (color);
ArcGIS.Core.CIM.CIMTextSymbol result = symbolfactory.ConstructTextSymbol (color, size, fontFamilyName, fontStyleName);
ArcGIS.Core.CIM.CIMTextSymbol result = symbolfactory.ConstructTextSymbol (symbol, size, fontFamilyName, fontStyleName);
ArcGIS.Core.CIM.CIMTextSymbol result = symbolfactory.ConstructTextSymbol ();
ArcGIS.Core.CIM.CIMTextSymbol result = symbolfactory.ConstructTextSymbol (size);
ArcGIS.Core.CIM.CIMTextSymbol result = symbolfactory.ConstructTextSymbol (color, size);
// now:
ArcGIS.Core.CIM.CIMTextSymbol result = symbolfactory.Instance.ConstructTextSymbol (color);
ArcGIS.Core.CIM.CIMTextSymbol result = symbolfactory.Instance.ConstructTextSymbol (color, size, fontFamilyName, fontStyleName);
ArcGIS.Core.CIM.CIMTextSymbol result = symbolfactory.Instance.ConstructTextSymbol (symbol, size, fontFamilyName, fontStyleName);
ArcGIS.Core.CIM.CIMTextSymbol result = symbolfactory.Instance.ConstructTextSymbol ();
ArcGIS.Core.CIM.CIMTextSymbol result = symbolfactory.Instance.ConstructTextSymbol (size);
ArcGIS.Core.CIM.CIMTextSymbol result = symbolfactory.Instance.ConstructTextSymbol (color, size);
- ArcGIS.Desktop.Mapping.SymbolFactory.DefaultFill
using symbolfactory = ArcGIS.Desktop.Mapping.SymbolFactory;
// before:
ArcGIS.Core.CIM.CIMFill result = symbolfactory.DefaultFill ;
// now:
ArcGIS.Core.CIM.CIMFill result = symbolfactory.Instance.DefaultFill ;
- ArcGIS.Desktop.Mapping.SymbolFactory.DefaultLineSymbol
using symbolfactory = ArcGIS.Desktop.Mapping.SymbolFactory;
// before:
ArcGIS.Core.CIM.CIMLineSymbol result = symbolfactory.DefaultLineSymbol ;
// now:
ArcGIS.Core.CIM.CIMLineSymbol result = symbolfactory.Instance.DefaultLineSymbol ;
- ArcGIS.Desktop.Mapping.SymbolFactory.DefaultMarker
using symbolfactory = ArcGIS.Desktop.Mapping.SymbolFactory;
// before:
ArcGIS.Core.CIM.CIMMarker result = symbolfactory.DefaultMarker ;
// now:
ArcGIS.Core.CIM.CIMMarker result = symbolfactory.Instance.DefaultMarker ;
- ArcGIS.Desktop.Mapping.SymbolFactory.DefaultPointSymbol
using symbolfactory = ArcGIS.Desktop.Mapping.SymbolFactory;
// before:
ArcGIS.Core.CIM.CIMPointSymbol result = symbolfactory.DefaultPointSymbol ;
// now:
ArcGIS.Core.CIM.CIMPointSymbol result = symbolfactory.Instance.DefaultPointSymbol ;
- ArcGIS.Desktop.Mapping.SymbolFactory.DefaultPolygonSymbol
using symbolfactory = ArcGIS.Desktop.Mapping.SymbolFactory;
// before:
ArcGIS.Core.CIM.CIMPolygonSymbol result = symbolfactory.DefaultPolygonSymbol ;
// now:
ArcGIS.Core.CIM.CIMPolygonSymbol result = symbolfactory.Instance.DefaultPolygonSymbol ;
- ArcGIS.Desktop.Mapping.SymbolFactory.DefaultStroke
using symbolfactory = ArcGIS.Desktop.Mapping.SymbolFactory;
// before:
ArcGIS.Core.CIM.CIMStroke result = symbolfactory.DefaultStroke ;
// now:
ArcGIS.Core.CIM.CIMStroke result = symbolfactory.Instance.DefaultStroke ;
- ArcGIS.Desktop.Mapping.SymbolFactory.GetDictionarySymbol
using symbolfactory = ArcGIS.Desktop.Mapping.SymbolFactory;
string dictionaryName;
System.Collections.Generic.Dictionary<stringobject> values;
// before:
ArcGIS.Core.CIM.CIMSymbol result = symbolfactory.GetDictionarySymbol (dictionaryName, values);
// now:
ArcGIS.Core.CIM.CIMSymbol result = symbolfactory.Instance.GetDictionarySymbol (dictionaryName, values);
- ArcGIS.Desktop.TaskAssistant.TaskAssistantModule.CloseTaskAsync
// before:
System.Guid taskGuid;
ArcGIS.Desktop.TaskAssistant.TaskAssistantModule taskassistantmodule;
System.Threading.Tasks.Task result = taskassistantmodule.CloseTaskAsync (taskGuid);
// now:
System.Guid taskItemGuid;
ArcGIS.Desktop.TaskAssistant.TaskAssistantModule taskassistantmodule;
System.Threading.Tasks.Task result = taskassistantmodule.CloseTaskAsync (taskItemGuid);
- ArcGIS.Desktop.TaskAssistant.TaskAssistantModule.ExportTaskAsync
string path;
// before:
System.Guid taskGuid;
ArcGIS.Desktop.TaskAssistant.TaskAssistantModule taskassistantmodule;
System.Threading.Tasks.Task<string> result = taskassistantmodule.ExportTaskAsync (taskGuid, path);
// now:
System.Guid taskItemGuid;
ArcGIS.Desktop.TaskAssistant.TaskAssistantModule taskassistantmodule;
System.Threading.Tasks.Task<string> result = taskassistantmodule.ExportTaskAsync (taskItemGuid, path);
- ArcGIS.Desktop.TaskAssistant.TaskAssistantModule.OpenTaskItemAsync
// before:
System.Guid taskGuid;
ArcGIS.Desktop.TaskAssistant.TaskAssistantModule taskassistantmodule;
System.Threading.Tasks.Task<System.Guid> result = taskassistantmodule.OpenTaskItemAsync (taskGuid);
// now:
System.Guid taskItemGuid;
ArcGIS.Desktop.TaskAssistant.TaskAssistantModule taskassistantmodule;
System.Threading.Tasks.Task<System.Guid> result = taskassistantmodule.OpenTaskItemAsync (taskItemGuid);
- ArcGIS.Desktop.Workflow.WorkflowModule.ConnectAsync
// before:
ArcGIS.Desktop.Workflow.WorkflowModule workflowmodule;
System.Threading.Tasks.Task<ArcGIS.Desktop.Workflow.Models.WorkflowConnectionStatus> result = workflowmodule.ConnectAsync ();
// now:
ArcGIS.Desktop.Workflow.WorkflowModule workflowmodule;
System.Threading.Tasks.Task<ArcGIS.Desktop.Workflow.Models.WorkflowConnection> result = workflowmodule.ConnectAsync ();
- ArcGIS.Desktop.Workflow.Models.JobsManager.CloseJobs
// before:
System.Collections.Generic.IReadOnlyList<int> jobIDs;
ArcGIS.Desktop.Workflow.Models.JobsManager jobsmanager;
System.Collections.Generic.IReadOnlyList<int> result = jobsmanager.CloseJobs (jobIDs);
// now:
System.Collections.Generic.IReadOnlyList<string> jobIDs;
ArcGIS.Desktop.Workflow.Models.JobsManager jobsmanager;
System.Collections.Generic.IReadOnlyList<string> result = jobsmanager.CloseJobs (jobIDs);
- ArcGIS.Desktop.Workflow.Models.JobsManager.DeleteJobs
bool deleteVersion;
bool deleteHistory;
// before:
System.Int32[] jobIDs;
ArcGIS.Desktop.Workflow.Models.JobsManager jobsmanager;
System.Int32[] result = jobsmanager.DeleteJobs (jobIDs, deleteVersion, deleteHistory);
// now:
System.String[] jobIDs;
ArcGIS.Desktop.Workflow.Models.JobsManager jobsmanager;
System.String[] result = jobsmanager.DeleteJobs (jobIDs, deleteVersion, deleteHistory);
- ArcGIS.Desktop.Workflow.Models.JobsManager.DeleteMaps
// before:
System.Int32[] jobIDs;
ArcGIS.Desktop.Workflow.Models.JobsManager jobsmanager;
System.Int32[] result = jobsmanager.DeleteMaps (jobIDs);
// now:
System.String[] jobIDs;
ArcGIS.Desktop.Workflow.Models.JobsManager jobsmanager;
System.String[] result = jobsmanager.DeleteMaps (jobIDs);
- ArcGIS.Desktop.Workflow.Models.JobsManager.DeleteVersions
// before:
System.Int32[] jobIDs;
ArcGIS.Desktop.Workflow.Models.JobsManager jobsmanager;
System.Int32[] result = jobsmanager.DeleteVersions (jobIDs);
// now:
System.String[] jobIDs;
ArcGIS.Desktop.Workflow.Models.JobsManager jobsmanager;
System.String[] result = jobsmanager.DeleteVersions (jobIDs);
- ArcGIS.Desktop.Workflow.Models.JobsManager.GetJob
// before:
string jobID2;
ArcGIS.Desktop.Workflow.Models.JobsManager jobsmanager;
ArcGIS.Desktop.Workflow.Models.JobModels.Job result = jobsmanager.GetJob (jobID2);
// now:
string jobID;
ArcGIS.Desktop.Workflow.Models.JobsManager jobsmanager;
ArcGIS.Desktop.Workflow.Models.JobModels.Job result = jobsmanager.GetJob (jobID);
- ArcGIS.Desktop.Workflow.Models.ConfigItems.JobTypeDescription.ID
// before:
ArcGIS.Desktop.Workflow.Models.ConfigItems.JobTypeDescription jobtypedescription;
int result = jobtypedescription.ID ;
// now:
ArcGIS.Desktop.Workflow.Models.ConfigItems.JobTypeDescription jobtypedescription;
string result = jobtypedescription.ID ;
- ArcGIS.Desktop.Workflow.Models.JobModels.Job.CanCompleteStep
// before:
int stepID = -1;
ArcGIS.Desktop.Workflow.Models.JobModels.Job job;
System.Tuple<bool,string> result = job.CanCompleteStep (-1);
// now:
string stepID;
ArcGIS.Desktop.Workflow.Models.JobModels.Job job;
System.Tuple<bool,string> result = job.CanCompleteStep (stepID);
- ArcGIS.Desktop.Workflow.Models.JobModels.Job.CanExecuteStep
// before:
int stepID = -1;
ArcGIS.Desktop.Workflow.Models.JobModels.Job job;
System.Tuple<bool,string> result = job.CanExecuteStep (-1);
// now:
string stepID;
ArcGIS.Desktop.Workflow.Models.JobModels.Job job;
System.Tuple<bool,string> result = job.CanExecuteStep (stepID);
- ArcGIS.Desktop.Workflow.Models.JobModels.Job.CanSetCurrentStep
// before:
int stepID;
ArcGIS.Desktop.Workflow.Models.JobModels.Job job;
bool result = job.CanSetCurrentStep (stepID);
// now:
string stepID;
ArcGIS.Desktop.Workflow.Models.JobModels.Job job;
bool result = job.CanSetCurrentStep (stepID);
- ArcGIS.Desktop.Workflow.Models.JobModels.Job.CompleteStep
// before:
int stepID = -1;
ArcGIS.Desktop.Workflow.Models.JobModels.Job job;
ArcGIS.Desktop.Workflow.Models.JobModels.WorkflowExecutionResult result = job.CompleteStep (-1);
// now:
string stepID;
ArcGIS.Desktop.Workflow.Models.JobModels.Job job;
ArcGIS.Desktop.Workflow.Models.JobModels.WorkflowExecutionResult result = job.CompleteStep (stepID);
- ArcGIS.Desktop.Workflow.Models.JobModels.Job.ExecuteStep
// before:
int stepID = -1;
ArcGIS.Desktop.Workflow.Models.JobModels.Job job;
ArcGIS.Desktop.Workflow.Models.JobModels.WorkflowExecutionResult result = job.ExecuteStep (-1);
// now:
string stepID;
ArcGIS.Desktop.Workflow.Models.JobModels.Job job;
ArcGIS.Desktop.Workflow.Models.JobModels.WorkflowExecutionResult result = job.ExecuteStep (stepID);
- ArcGIS.Desktop.Workflow.Models.JobModels.Job.FinishSplitExecutionStep
System.Collections.Generic.IReadOnlyList<string> args;
// before:
int stepID;
ArcGIS.Desktop.Workflow.Models.JobModels.Job job;
ArcGIS.Desktop.Workflow.Models.JobModels.WorkflowExecutionResult result = job.FinishSplitExecutionStep (stepID, args);
// now:
string stepID;
ArcGIS.Desktop.Workflow.Models.JobModels.Job job;
ArcGIS.Desktop.Workflow.Models.JobModels.WorkflowExecutionResult result = job.FinishSplitExecutionStep (stepID, args);
- ArcGIS.Desktop.Workflow.Models.JobModels.Job.GetCurrentSteps
// before:
ArcGIS.Desktop.Workflow.Models.JobModels.Job job;
System.Collections.Generic.IReadOnlyList<int> result = job.GetCurrentSteps ();
// now:
ArcGIS.Desktop.Workflow.Models.JobModels.Job job;
System.Collections.Generic.IReadOnlyList<string> result = job.GetCurrentSteps ();
- ArcGIS.Desktop.Workflow.Models.JobModels.Job.ID
// before:
ArcGIS.Desktop.Workflow.Models.JobModels.Job job;
int result = job.ID ;
// now:
ArcGIS.Desktop.Workflow.Models.JobModels.Job job;
string result = job.ID ;
- ArcGIS.Desktop.Workflow.Models.JobModels.Job.ParentJobID
// before:
ArcGIS.Desktop.Workflow.Models.JobModels.Job job;
int result = job.ParentJobID ;
// now:
ArcGIS.Desktop.Workflow.Models.JobModels.Job job;
string result = job.ParentJobID ;
- ArcGIS.Desktop.Workflow.Models.JobModels.Job.SetCurrentStep
// before:
int stepID;
ArcGIS.Desktop.Workflow.Models.JobModels.Job job;
job.SetCurrentStep (stepID);
// now:
string stepID;
ArcGIS.Desktop.Workflow.Models.JobModels.Job job;
job.SetCurrentStep (stepID);
- ArcGIS.Desktop.Workflow.Models.JobModels.JobIdentifier.ID
// before:
ArcGIS.Desktop.Workflow.Models.JobModels.JobIdentifier jobidentifier;
int result = jobidentifier.ID ;
// now:
ArcGIS.Desktop.Workflow.Models.JobModels.JobIdentifier jobidentifier;
string result = jobidentifier.ID ;
- ArcGIS.Desktop.Workflow.Models.Queries.JobQueryRow.JobID
// before:
ArcGIS.Desktop.Workflow.Models.Queries.JobQueryRow jobqueryrow;
int result = jobqueryrow.JobID ;
// now:
ArcGIS.Desktop.Workflow.Models.Queries.JobQueryRow jobqueryrow;
string result = jobqueryrow.JobID ;