You are here: Using SOAP > v2006 services > Tutorials and samples > C#.NET code examples v2006

S A M P L E S

C#.NET code examples v2006

This page contains C#.NET code examples for ArcWeb service objects and methods. The samples apply to desktop and Web applications. For objects that are both inputs or outputs (for example, MapArea), the examples only show inputs. See ArcWeb services overview for quick links to overviews, method descriptions, and notes for each service. See Object descriptions for detailed descriptions of objects. Code examples are also available in ColdFusion MX, Java, SOAP, and VB.NET.

Methods

Account Info

Content Finder

Place Finder Sample

Utility

Address Finder

Data Manager

Report

Wireless Location

Address Manager

Map Image

Route Finder

 

Authentication

Place Finder

Spatial Query

 

Objects

AccountInfoOptions

DeviceLocationOptions

LayerLegend

RowData

AccountSummary

DeviceStatus

LineDesc

ScaleBarDesc

AccountUsage

DeviceStopInfo

MapArea

SearchOptions

Address

DeviceStopOptions

MapFusionOptions

SegmentDesc

AddressFields

DeviceTripInfo

MapImageInfo

ServiceInfo

AddressFinderInfo

DeviceTripOptions

MapImageOptions

ServiceSummary

AddressFinderOptions

DistanceInfo

MapImageSize

ServiceUsage

AddressInfo

Ellipse

MapLegend

SimplePoint

AdminOptions

Envelope

MarkerDesc

Site

AttributeDesc

Feature

MobileDevice

SpatialBuffer

Circle

FeatureIDInfo

OrderBy

SpatialQueryInfo

CircleDesc

FeatureInfo

PixelCoord

SpatialQueryOptions

CircularArc

FeatureResultSet

PlaceFinderInfo

StandardGeography

ContentFinderRecord

FeatureSearchOptions

PlaceFinderOptions

StringSet

ContentFinderRecordID

FeatureUpdateOptions

Point

ThematicColors

ContentFinderResultSet

FieldDesc

PolygonDesc

ThematicData

ContentFinderSearchOptions

FieldInfo

ReportInfo

ThematicOptions

CoordSys

GeocodeCandidate

ReportOptions

ThematicReportOptions

CustomReportVariables

GeocodeInfo

ResultSet

ThematicVariableInfo

CustomVariableInfo

GeocodeOptions

ResultSetRange

UsageInfo

DataFile

GeographyIDOptions

RouteDisplayOptions

User

DataFileInfo

Geometry

RouteFinderOptions

UserUsage

DataSourceInfo

KeyValue

RouteInfo

 

DataSourceUsage

LabelDesc

RouteOptions

 

DateTimeRange

Layer

RouteStop

 

DeviceLocationInfo

LayerInfo

RouteSummary

 

 

AccountInfoOptions

AccountInfoOptions myAccountInfoOptions = new AccountInfoOptions();
myAccountInfoOptions.adminOptions = myAdminOptions;
string[] myReturnDataSources = new string[]{"ArcWeb:ESRI.Gazetteer.World", "ArcWeb:TA.Address.US"};
myAccountInfoOptions.returnDataSources = myReturnDataSources;
myAccountInfoOptions.returnDetailedInfo = true;
string[] myReturnServices = new string[]{"MapImage", "AddressFinder"};
myAccountInfoOptions.returnServices = myReturnServices;

 

AccountSummary

AccountSummary myAccountSummary = myAccountInfo.getUsage(myAccountInfoOptions, myDateTimeRange, token);
myAccountSummary.groupUsage = myAccountUsage;
myAccountSummary.usageByUser = myUserUsage;
Response.Write("<br>Group's Usage = " + myAccountSummary.groupUsage.ToString());

 

AccountUsage

AccountUsage myAccountUsage = myUserUsage.accountUsage;
Response.Write("<br>Daily Usage = " + myAccountUsage.averageDailyCreditUsage.ToString());
Response.Write("<br>Credits Remaining = " + myAccountUsage.creditsRemaining.ToString());
Response.Write("<br>Credits Used = " + myAccountUsage.creditsUsed.ToString());

 

Address

Address myAddress = new Address();
myAddress.city = "Redlands";
myAddress.country = "US";
myAddress.houseNumber = "380";
myAddress.intersection = "Redlands Blvd.";
myAddress.postalCode = "92373";
myAddress.stateProvince = "CA";
myAddress.street = "New York Street";

 

AddressFields

AddressFields myAddressFields = new AddressFields();
myAddressFields.city = "CITY";
myAddressFields.country = "COUNTRY";
myAddressFields.houseNumber = "HOUSE #";
myAddressFields.postalCode = "ZIP";
myAddressFields.stateProvince = "STATE";
myAddressFields.street = "STREET ADDRESS";

 

AddressFinderInfo

AddressFinderInfo[] myAddressFinderInfoArray = myAddressFinder.getInfo(myDataSourcesArray, token);
AddressFinderInfo addressFinderInfo = new AddressFinderInfo();
for(int i = 0; i < myAddressFinderInfoArray.Length; i++)
{
Response.Write("<br>Data Source = " + myAddressFinderInfoArray[i].dataSource);
Response.Write("<br>Supports extended postal code? = " + addressFinderInfo.extendedPostalCode);
Response.Write("<br>Is this a partial Address ? " + addressFinderInfo.partialAddress);
}

 

AddressFinderOptions

AddressFinderOptions myAddressFinderOptions = new AddressFinderOptions();
myAddressFinderOptions.dataSource = "ArcWeb:TA.Streets.US";
myAddressFinderOptions.extendedPostalCode = false;
myAddressFinderOptions.partialAddress = true;
myAddressFinderOptions.snapType = "house";

 

AddressInfo

AddressManager myAddressManager = new AddressManager();
AddressInfo[] myAddressInfoArray = myAddressManager.findAddressesByPoint(myPointArray, myAddressFinderOptions, token);
for(int i = 0; i < myAddressInfoArray.Length; i++)
{
Response.Write("<br>Address Street = " + myAddressInfoArray[i].address.street);
Response.Write("<br>Address City = " + myAddressInfoArray[i].address.city);
Response.Write("<br>Error Message = " + myAddressInfoArray[i].errorMessage);
}

 

AdminOptions

AdminOptions myAdminOptions = new AdminOptions();
myAdminOptions.returnGroupUsage = true;
string[] myReturnUsersList = new string[]{"username", "username 2"};
myAdminOptions.returnUsers = myReturnUsersList;

 

AttributeDesc

AttributeDesc[] myAttributeDescArray = myContentFinder.getAvailableAttributes("DataFile", token);
for(int i = 0; i < myAttributeDescArray.Length; i++)
{
Response.Write("<br>Attribute = " + myAttributeDescArray[i].name);
Response.Write("<br>Short Description =" + myAttributeDescArray[i].shortDesc);
}

 

Circle

Circle myCircle = new Circle();
myCircle.center = myPoint;
myCircle.radius = 2;
myCircle.radiusUnits = "miles";
myCircle.trueCircle = false;

 

CircleDesc

CircleDesc myCircleDesc = new CircleDesc();
myCircleDesc.antialiasing = "true";
myCircleDesc.boundaryColor = "255,0,0";
myCircleDesc.boundaryTransparency = 1.0;
myCircleDesc.boundaryType = "dash";
myCircleDesc.circle = myCircle;
myCircleDesc.fillColor = "0,200,0";
myCircleDesc.fillTransparency = 0.5;
myCircleDesc.overlapLabels = "false";
myCircleDesc.thickness = 2;

 

CircularArc

CircularArc myCircularArc = new CircularArc();
myCircularArc.center = myPoint;
myCircularArc.endAngle = 90;
myCircularArc.innerRadius = 2;
myCircularArc.outerRadius = 2.1;
myCircularArc.radiusUnits = "km";
myCircularArc.startAngle = 0;
myCircularArc.trueCircle = false;

 

ContentFinderRecord

ContentFinderRecord[] myContentFinderRecordArray = myContentFinder.getDependentContent(myContentFinderRecordID,token);
ContentFinderRecord myContentFinderRecord = new ContentFinderRecord();
for (int i = 0; i < myContentFinderRecordArray.Length; i++)
{
DateTime myDateTime = new DateTime(1970,1,1,0,0,0);
myContentFinderRecord = myContentFinderRecordArray[i];
Response.Write("<br>Record name = " + myContentFinderRecord.id.name);
myDateTime = myDateTime.AddSeconds(myContentFinderRecord.contentLastUpdated);
Response.Write("<br>Was last updated = " + myDateTime.ToLocalTime().ToString());
}

 

ContentFinderRecordID

ContentFinderRecordID myContentFinderRecordID = new ContentFinderRecordID();
myContentFinderRecordID.contentType = "DataSource";
myContentFinderRecordID.name = "ContentName";
myContentFinderRecordID.service = "PlaceFinder";

 

ContentFinderResultSet

ContentFinderResultSet myContentFinderResultSet = myContentFinder.searchRecords(myContentFinderSearchOptions, token);
Response.Write("<br> Number of Records = " + myContentFinderResultSet.totalCount);

 

ContentFinderSearchOptions

ContentFinderSearchOptions myContentFinderSearchOptions = new ContentFinderSearchOptions();
myContentFinderSearchOptions.contentType = "DataFile";
myContentFinderSearchOptions.dataScale = 20000;
= 1;
myContentFinderSearchOptions.extent = myEnvelope;
myContentFinderSearchOptions.orderBy = "title";
myContentFinderSearchOptions.orderDescending = false;
myContentFinderSearchOptions.ownerType = "user";
myContentFinderSearchOptions.resultSetRange = myResultSetRange;
AttributeDesc[] myAttributeDescArray = myContentFinder.getAvailableAttributes("DataFile", token);
String[] myReturnAttributes = new String[myAttributeDescArray.Length];
for(int i = 1; i < myAttributeDescArray.Length; i++)
{
myReturnAttributes[i] = myAttributeDescArray[i].name;
}
myContentFinderSearchOptions.returnAttributes = myReturnAttributes;
myContentFinderSearchOptions.returnContentProperties = true;
myContentFinderSearchOptions.service = " AddressManager ";
myContentFinderSearchOptions.spatialOperator = "overlaps";
myContentFinderSearchOptions.whereClause = "title = 'ESRI'";

 

CoordSys

CoordSys myCoordSys = new CoordSys();
myCoordSys.projection = "4326";

 

CustomReportVariables

CustomReportVariables myCustomReportVariables = new CustomReportVariables();
myCustomReportVariables.variableDataSource = "ArcWeb:ESRI.DemographicAndIncome.US";
Report myReport = new Report();
CustomVariableInfo[] myCustomVariableInfoArray = myReport.getCustomVariables("ArcWeb:ESRI.DemographicAndIncome.US", token);
string[] myVariableNamesArray = new string[myCustomVariableInfoArray.Length];
for(int i = 0; i < myCustomVariableInfoArray.Length; i++)
{
myVariableNamesArray[i]= myCustomVariableInfoArray[i].fieldDesc.name;
}
myCustomReportVariables.variableNames = myVariableNamesArray;

 

CustomVariableInfo

CustomVariableInfo[] myCustomVariableInfoArray = myReport.getCustomVariables("ArcWeb:ESRI.DemographicAndIncome.US", token);
for (int i = 0; i < myCustomVariableInfoArray.Length ; i++)
{
Response.Write("<br>Database = " + customVariableInfo[i].database);
Response.Write("<br>Field Desc = " + customVariableInfo[i].GetType.ToString);
}

 

DataFile

DataFile myDataFile = new DataFile();
myDataFile.addressFields = myAddressFields;
myDataFile.attributes = myKeyValueArray;
myDataFile.coordSys = myCoordSys;
myDataFile.fieldInfo = myFieldinfoArray;
myDataFile.geometryType = 3;
myDataFile.name = "MyDataFile";

 

DataFileInfo

DataFileInfo myDataFileInfo = myDataManager.getDataFilesInfo(myStringArray, token);
Response.Write("<br> Datafile Name: " + myDataFileInfo.dataFile.name);
Response.Write("<br> Date Created: " + myDataFileInfo.dateCreated);
Response.Write("<br> Feature Count: " + myDataFileInfo.featureCount);
esponse.Write("<br> Last Modified: " + myDataFileInfo.lastModified);

 

DataSourceInfo

DataSourceInfo myDataSourceInfo = myDataSourceInfoArray[0];
Response.Write("<br>Data Source name = " + myDataSourceInfo.name);
Response.Write("<br>Summary = " + myDataSourceInfo.summary);
Response.Write("<br>Supports ArcXML? = " + myDataSourceInfo.supportsArcXML.ToString());
Response.Write("<br>Supports WMS? = " + myDataSourceInfo.supportsWMS.ToString());
Response.Write("<br>Title = " + myDataSourceInfo.title);

 

DataSourceUsage

DataSourceUsage myDataSourceUsage = myDataSourceUsageArray[0];
myDataSourceUsage.usage = myUsageInfo;
Response.Write("<br>Data Source name = " + myDataSourceUsage.name);
Response.Write("<br>Data Source title = " + myDataSourceUsage.title);

 

DateTimeRange

DateTimeRange myDateTimeRange = new DateTimeRange();
myDateTimeRange.end = 1113912000;
myDateTimeRange.start = 1113901200;

 

DeviceLocationInfo

DeviceLocationInfo[] myDeviceLocationInfoArray = myWirelessLocation.getDeviceLocation(myMobileDeviceArray, myDeviceLocationOptions, token);
for(int i = 0; i < myDeviceLocationInfoArray.Length; i++){
Response.Write("<br>Accuracy = " + myDeviceLocationInfoArray[i].accuracy);
Response.Write("<br>Error Message = " + myDeviceLocationInfoArray[i].errorMessage);
Response.Write("<br>X value of Point = " + myDeviceLocationInfoArray[i].point.x);
Response.Write("<br>Y value of Point = " + myDeviceLocationInfoArray[i].point.y);
Response.Write("<br>Radius = " + myDeviceLocationInfoArray[i].radius);
Response.Write("<br>Radius = " + myDeviceLocationInfoArray[i].timeStamp);

 

DeviceLocationOptions

DeviceLocationOptions myDeviceLocationOptions = new DeviceLocationOptions();
myDeviceLocationOptions.accuracy = "low";
myDeviceLocationOptions.radiusUnits = "meters";

 

DeviceStatus

DeviceStatus[] myDeviceStatusArray = myWirelessLocation.getDeviceStatus(myMobileDeviceArray, token);
for(int i = 0; i < myDeviceStatusArray.Length; i++)
{
Response.Write("<br>Error Message = " + myDeviceStatusArray[i].errorMessage);
Response.Write("<br>Status = " + myDeviceStatusArray[i].status);
}

 

DeviceStopInfo

DeviceStopInfo[] myDeviceStopInfoArray = myWirelessLocation.getDeviceStops(myDeviceStopOptions, token);
for(int i = 0; i < myDeviceStopInfoArray.Length; i++)
{
Response.Write("<br>UNIX time start = " + myDeviceStopInfoArray[i].dateTimeRange.start);
Response.Write("<br>UNIX time send = " + myDeviceStopInfoArray[i].dateTimeRange.end);
Response.Write("<br>Point x value = " + myDeviceStopInfoArray[i].point.x);
Response.Write("<br>Point y value = " + myDeviceStopInfoArray[i].point.y);
}

 

DeviceStopOptions

DeviceStopOptions myDeviceStopOptions = new DeviceStopOptions();
myDeviceStopOptions.dataFileName = "dataFileName";
myDeviceStopOptions.dateTimeRange = myDateTimeRange;
myDeviceStopOptions.maxRadius = 2;
myDeviceStopOptions.minDuration = 10;
myDeviceStopOptions.radiusUnits = "km";

 

DeviceTripInfo

DeviceTripInfo myDeviceTripInfo = myWirelessLocation.getTripInfo(myDeviceTripOptions, token);
Response.Write("<br>Distance = " + myDeviceTripInfo.distance);
Response.Write("<br>Speed = " + myDeviceTripInfo.speed);

 

DeviceTripOptions

DeviceTripOptions myDeviceTripOptions = new DeviceTripOptions();
myDeviceTripOptions.dataFileName = "dataFileName";
myDeviceTripOptions.dateTimeRange = myDateTimeRange;
myDeviceTripOptions.returnAngle = false;
myDeviceTripOptions.returnDistance = false;
myDeviceTripOptions.returnPath = false;
myDeviceTripOptions.returnSpeed = false;
myDeviceTripOptions.units = "miles";

 

DistanceInfo

DistanceInfo myDistanceInfo = myUtility.getDistance(myPoint1,myPoint2,"km",100,true,token);
Response.Write("<br>Distance = " + myDistanceInfo.distance.ToString());
Response.Write("<br>Geometry = " + myDistanceInfo.geometry.ToString());

 

Ellipse

Ellipse myEllipse = new Ellipse();
myEllipse.axisUnits = "km";
myEllipse.center = myPoint;
myEllipse.majorAxis = 100;
myEllipse.minorAxis = 50;
myEllipse.rotation = 20;
myEllipse.trueEllipse = false;

 

Envelope

Envelope myEnvelope = new Envelope();
myEnvelope.maxX = -114;
myEnvelope.maxY = 36;
myEnvelope.minX = -120;
myEnvelope.minY = 32;
myEnvelope.coordSys = myCoordSys;

 

Feature

Feature myFeature = new Feature();
myFeature.fieldValues = myKeyValueArray;
myFeature.geometry = myGeometry;

 

FeatureIDInfo

FeatureIDInfo[] myFeatureIDInfoArray = myDataManager.addFeatures("MyDataFile", myFeatureArray, false, token);
for (int i = 0; i < myFeatureIDInfoArray.Length; i++)
{
Response.Write("<br> Error Message : " + myfeatureIDInfoArray[i].errorMessage);
Response.Write("<br> Feature ID : " + myfeatureIDInfoArray[i].id);
}

 

FeatureInfo

FeatureResultSet myFeatureResultSet = myDataManager.findFeatures("MyDataFile", myFeatureSearchOptions, token);
FeatureInfo[] myFeatureInfoArray = myFeatureResultSet.features;
for (int i = 0;i < myFeatureInfoArray.Length; i++ )
{
Response.Write("<br> Feature ID : " + myFeatureInfoArray[i].id);
Response.Write("<br> Geocode Status : " + myFeatureInfoArray[i].geocodeStatus);
Response.Write("<br> Geocode Database : " + myFeatureInfoArray[i].geocodeDataSource);
}

 

FeatureResultSet

FeatureResultSet myFeatureResultSet = myDataManager.findFeatures("MyDataFile", myFeatureSearchOptions, token);
FeatureInfo[] myFeatureInfoArray = myFeatureResultSet.features;
for (int i = 0; i < myFeatureInfoArray.Length; i++)
{
Response.Write("<br> Feature ID : " + myFeatureInfoArray[i].id);
}
Response.Write("<br> Total number of features : " + myFeatureResultSet.totalCount);

 

FeatureSearchOptions

FeatureSearchOptions myFeatureSearchOptions = new FeatureSearchOptions();
myFeatureSearchOptions.intersectGeometry = myGeometry;
myFeatureSearchOptions.returnGeometry = true;
myFeatureSearchOptions.searchOptions = mySerachOptions;
myFeatureSearchOptions.spatialBuffer = mySpatialBuffer;

 

FeatureUpdateOptions

FeatureUpdateOptions myFeatureUpdateOptions = new FeatureUpdateOptions();
myFeatureUpdateOptions.fieldValues = myKeyValueArray;
myFeatureUpdateOptions.geometry = myGeometry;

 

FieldDesc

FieldDesc[] myFieldDescArray = myResultSet.fields;
for (int i = 0; i < myFieldDescArray.Length; i++)
{
Response.Write("<br>Field = " + myFieldDescArray[i].name);
}

 

FieldInfo

FieldInfo myFieldinfo = new FieldInfo();
myFieldinfo.isIndexed = true;
myFieldinfo.label = "owner";
myFieldinfo.name = "owner_id";
myFieldinfo.type = 3;

 

GeocodeCandidate

GeocodeCandidate[] myGeocodeCandidateArray = myGeocodeInfo.candidates;
for(int i = 0; i < myGeocodeCandidateArray.Length; i++)
{
Response.Write("<br>City = " + myGeocodeCandidateArray[i].address.city);
Response.Write("<br>Description = " + myGeocodeCandidateArray[i].desc1);
Response.Write("<br>Match Score (1 being best match) = " + myGeocodeCandidateArray[i].score);
Response.Write("<br>Type of Place = " + myGeocodeCandidateArray[i].type);
}

 

GeocodeInfo

GeocodeInfo myGeocodeInfo = myPlaceFinder.findPlace("redlands", myPlaceFinderOptions, token);
GeocodeCandidate[] myGeocodeCandidateArray = myGeocodeInfo.candidates;
Response.Write("<br>Description of a candidate = " + myGeocodeCandidateArray[0].desc1);
Response.Write("<br>No match error messsage = " + myGeocodeInfo.errorMessage);
Response.Write("<br>Match type = " + myGeocodeInfo.matchType);
Response.Write("<br>Numbr of results that met the search Criteria = " + myGeocodeInfo.totalCount);

 

GeocodeOptions

GeocodeOptions myGeocodeOptions = new GeocodeOptions();
myGeocodeOptions.dataSource = "ArcWeb:NT.Streets.US";
myGeocodeOptions.extendedPostalCode = false;
myGeocodeOptions.formatAddressFields = false;
myGeocodeOptions.partialAddress = true;

 

GeographyIDOptions

GeographyIDOptions myGeographyIDOptions = new GeographyIDOptions();
myGeographyIDOptions.geographyIDFilter = "blockGroup";
myGeographyIDOptions.keyword = "Redlands";
myGeographyIDOptions.outputGeographyLevel = "blockGroup";
myGeographyIDOptions.resultSetRange = myResultSetRange;

 

Geometry

Geometry myGeometry = new Geometry();
SimplePoint mySimplePoint1 = new SimplePoint();
SimplePoint mySimplePoint2 = new SimplePoint();
SimplePoint[] mySimplePointArray = new SimplePoint[2];
mySimplePoint1.x = -117.199577;
mySimplePoint1.y = 34.048364;
mySimplePoint2.x = -117.179577;
mySimplePoint2.y = 34.018364;
mySimplePointArray[0]= mySimplePoint1;
mySimplePointArray[1]= mySimplePoint2;
myGeometry.points = mySimplePointArray;
int[] myParts = new int[1];
myParts[0] = 0;
myGeometry.parts = myParts;
myGeometry.type = 2;
myGeometry.coordSys = myCoordSys;

 

KeyValue

KeyValue myKeyValue = new KeyValue();
myKeyValue.key = "US";
myKeyValue.value = "United States";

 

LabelDesc

LabelDesc myLabelDesc = new LabelDesc();
myLabelDesc.angle = 0;
myLabelDesc.antialiasing = "false";
myLabelDesc.blockoutColor = "0,200,0";
yLabelDesc.caps = "true";
yLabelDesc.font = "Arial";
myLabelDesc.fontColor = "255,0,0";
myLabelDesc.fontSize = 10;
myLabelDesc.fontStyle = "underline";
myLabelDesc.glowing = true;
myLabelDesc.hAlignment = "center";
myLabelDesc.interval = 8;
myLabelDesc.outlineColor = "255,0,0";
myLabelDesc.overlapLabels = "true";
myLabelDesc.transparency = 1.0;
myLabelDesc.vAlignment = "center";

 

Layer

Layer myLayer = new Layer();
myLayer.name = "U.S. States";
myLayer.visibility = "on";

 

LayerInfo

MapImageInfo myMapImageInfo = myMapImage.getBestMap(myMapImageOptions, 10, token);
LayerInfo[] myLayerInfoArray = myMapImageInfo.layers;
for(int i = 0; i < myLayerInfoArray.Length; i++)
{
Response.Write("<br>Layer name :" + myLayerInfoArray[i].name);
Response.Write("<br>)Visibility :" + myLayerInfoArray[i].visibility);
}

 

LayerLegend

MapImageInfo myMapImageInfo = myMapImage.getBestMap(myMapImageOptions, 10, token);
LayerInfo[] myLayerInfoArray = myMapImageInfo.layers;
for(int i = 0; i < myLayerInfoArray.Length; i++)
{
LayerLegend[] myLayerLegendArray = myLayerInfoArray[i].legends;
for(int j = 0; j < myLayerLegendArray.Length; j++)
{
Response.Write("<br>Layer Class name :" + myLayerLegendArray[j].layerClassName);
Response.Write("<br>Symbol URL :" + myLayerLegendArray[j].symbolURL);
}
}

 

LineDesc

LineDesc myLineDesc = new LineDesc();
myLineDesc.antialiasing = "false";
myLineDesc.color = "255,0,0";
myLineDesc.endType = "round";
myLineDesc.geometry = myGeometry;
myLineDesc.jointType = "bevel";
myLineDesc.lineType = "dash";
myLineDesc.overlapLabels = "false";
myLineDesc.thickness = 2;
myLineDesc.transparency = 1.0;

 

MapArea

MapArea myMapArea = new MapArea();
myMapArea.center = myPoint;
myMapArea.extent = myEnvelope;
myMapArea.scale = 10000;

 

MapFusionOptions

MapFusionOptions myMapFusionOptions = new MapFusionOptions();
myMapFusionOptions.mapURL = "http://arcweb.esri.com/v2006/images/home/home_map.gif";
myMapFusionOptions.transparency = 0.1;

 

MapImageInfo

MapImageInfo myMapImageInfo = myMapImage.getBestMap(myMapImageOptions, 10, token);
Response.Write("<br> Map URL : " + myMapImageInfo.mapURL);
Response.Write("<br> Legend URL : " + myMapImageInfo.legendURL)

 

MapImageOptions

MapImageOptions myMapImageOptions = new MapImageOptions();
myMapImageOptions.backgroundColor = "0,0,0";
myMapImageOptions.circles = myCircleDescArray;
myMapImageOptions.dataSource = "ArcWeb:TA.Streets.NA";
myMapImageOptions.displayLayers = myLayerArray;
myMapImageOptions.lines = myLineDescArray;
myMapImageOptions.mapImageFormat = "png";
myMapImageOptions.mapImageSize = myMapImageSize;
myMapImageOptions.mapLegend = myMapLegend;
myMapImageOptions.markers = myMarkerDescArray;
myMapImageOptions.outputCoordSys = myCoordSys;
myMapImageOptions.polygons = myPolygonDescArray;
myMapImageOptions.returnLayers = true;
myMapImageOptions.scaleBars = myScaleBarDescArray;
myMapImageOptions.styleSheet = "tangerine";

 

MapImageSize

MapImageSize myMapImageSize = new MapImageSize();
myMapImageSize.height = 300;
myMapImageSize.width = 500;

 

MapLegend

MapLegend myMapLegend = new MapLegend();
myMapLegend.antialiasing = "false";
myMapLegend.autoextend = false;
myMapLegend.backgroundColor = "0,0,0";
myMapLegend.columns = 2;
myMapLegend.font = "Arial";
myMapLegend.height = 300;
myMapLegend.layerFontSize = 11;
myMapLegend.splitText = "(cont)";
myMapLegend.swatchHeight = 18;
myMapLegend.swatchWidth = 22;
myMapLegend.title = "Legend for this map";
myMapLegend.titleFontSize = 10;
myMapLegend.valueFontSize = 9;
myMapLegend.width = 150;

 

MarkerDesc

MarkerDesc myMarkerDesc = new MarkerDesc();
myMarkerDesc.color = "255,0,0";
myMarkerDesc.iconDataSource = "ArcWeb:ESRI.Simple.Icons";
myMarkerDesc.label = "MyStore";
myMarkerDesc.labelDesc = myLabelDesc;
myMarkerDesc.location = myPoint;
myMarkerDesc.name = "circle";
myMarkerDesc.size = 10;

 

MobileDevice

MobileDevice myMobileDevice = new MobileDevice();
myMobileDevice.dataSource = "ArcWeb:ESRI.LocationTest.NA";
myMobileDevice.phoneNumber = "9095804684";

 

OrderBy

OrderBy myOrderBy = new OrderBy();
myOrderBy.descending = true;
myOrderBy.field = " NAME";

 

PixelCoord

PixelCoord myPixelCoord = new PixelCoord();
myPixelCoord.x = 100;
myPixelCoord.y = 50;

 

PlaceFinderInfo

PlaceFinderInfo[] myPlaceFinderInfoArray = myPlaceFinder.getInfo(myDataSourcesArray, token);
for (int i = 0; i < myPlaceFinderInfoArray.Length; i++)
{
KeyValue[] countryCodesArray = myPlaceFinderInfoArray[i].getCountryCodes();
Response.Write("<br> Country key= " + countryCodesArray[0].key);
Response.Write("<br> Country value= " + countryCodesArray[0].value);
Response.Write("<br> dataSource = " + myPlaceFinderInfoArray[i].dataSource);
}

 

PlaceFinderOptions

PlaceFinderOptions myPlaceFinderOptions = new PlaceFinderOptions();
myPlaceFinderOptions.dataSource = "ArcWeb:ESRI.Gazetteer.World";
myPlaceFinderOptions.filterCountry = "US";
myPlaceFinderOptions.filterExtent = myEnvelope;
myPlaceFinderOptions.filterType = "A,B,C";
myPlaceFinderOptions.resultSetRange = myResultSetRange;
myPlaceFinderOptions.searchType = "exactMatch";

 

Point

Point myPoint = new Point();
myPoint.coordSys = myCoordSys;
myPoint.x = -117.194589;
myPoint.y = 34.057058;

 

PolygonDesc

PolygonDesc myPolygonDesc = new PolygonDesc();
myPolygonDesc.antialiasing = "false";
myPolygonDesc.boundary = "true";
myPolygonDesc.boundaryColor = "0,0,0";
myPolygonDesc.boundaryJointType = "bevel";
myPolygonDesc.boundaryTransparency = 1.0;
myPolygonDesc.boundaryType = "dash";
myPolygonDesc.boundaryWidth = 1;
myPolygonDesc.fillColor = "0,200,0";
myPolygonDesc.fillInterval = 4;
myPolygonDesc.fillTransparency = 0.5;
myPolygonDesc.fillType = "diagcross";
myPolygonDesc.geometry = myGeometry;
myPolygonDesc.overlapLabels = "true";

 

ReportInfo

ReportInfo myReportInfo = myReport.getCustomSiteReport(mySite, myReportOptionsArray, myCustomReportVariablesArray, token);
Response.Write("<br>Datasource = " + myReportInfo.dataSource);
Response.Write("<br>Report Format = " + myReportInfo.reportFormat);
Response.Write("<br>Report URL = " + myReportInfo.reportURL);

 

ReportOptions

ReportOptions myReportOptions = new ReportOptions();
myReportOptions.dataSource = "ArcWeb:ESRI.DemographicAndIncome.US";
myReportOptions.reportFormat = "pdf";
KeyValue[] myKeyValueArray = myReport.getReportHeaderKeys("getStandardGeographyReport", token);
myReportOptions.reportHeader = myKeyValueArray;

 

ResultSet

ResultSet myResultSet = new ResultSet();
Response.Write("<br>Total rows returned = " + myResultSet.totalCount);

 

ResultSetRange

ResultSetRange myResultSetRange = new ResultSetRange();
myResultSetRange.count = 20;
myResultSetRange.startIndex = 10;

 

RouteDisplayOptions

RouteDisplayOptions myRouteDisplayOptions = new RouteDisplayOptions();
myRouteDisplayOptions.color = "255,0,0";
myRouteDisplayOptions.thickness = 4;
myRouteDisplayOptions.transparency = 0.5;

 

RouteFinderOptions

RouteFinderOptions myRouteFinderOptions = new RouteFinderOptions();
myRouteFinderOptions.avoidTraffic = true;
myRouteFinderOptions.dataSource = "ArcWeb:TA.Streets.NA";
myRouteFinderOptions.language = "english";
myRouteFinderOptions.returnDirections = true;
myRouteFinderOptions.returnGeometry = true;
myRouteFinderOptions.returnMap = true;
myRouteFinderOptions.returnTurnByTurnMaps = false;
myRouteFinderOptions.routeDisplayOptions = myRouteDisplayOptions;
myRouteFinderOptions.routeMapOptions = myMapImageOptions;
myRouteFinderOptions.routeOptions = myRouteOptions;
myRouteFinderOptions.trafficDataSource = "ArcWEB:TC.Traffic.US";
myRouteFinderOptions.trafficSeverity = 3;
myRouteFinderOptions.turnByTurnMapOptions = myMapImageOptions;
myRouteFinderOptions.units = "km";

 

RouteInfo

RouteInfo myRouteInfo = myRouteFinder.findRoute(myRouteStopArray, myRouteFinderOptions, token);
Response.Write("<br> The map URL :" + myRouteInfo.routeMap.mapURL);
Response.Write("<br> Total distance from the Route Summary :" + myRouteInfo.totalDesc.totalDistance);
Response.Write("<br> Total time from the Route Summary :" + myRouteInfo.totalDesc.totalTime);

 

RouteOptions

RouteOptions myRouteOptions = new RouteOptions();
myRouteOptions.filterExtent = myEnvelope;
myRouteOptions.hwyPref = 1;
myRouteOptions.optimizeStops = true;
myRouteOptions.precision = 0.0;
myRouteOptions.returnExtents = true;
myRouteOptions.routeBarriers = myPointArray;
myRouteOptions.routeType = "quickest";

 

RouteStop

RouteStop myRouteStop = new RouteStop();
myRouteStop.desc = "gas station";
myRouteStop.point = myPoint;

 

RouteSummary

RouteInfo myRouteInfo = myRouteFinder.findRoute(myRouteStopArray, myRouteFinderOptions, token);
RouteSummary myRouteSummary = myRouteInfo.totalDesc;
Response.Write("<br> Total Distance in " + myRouteSummary.distanceUnits + " :" + myRouteSummary.totalDistance);
Response.Write("<br> Total Time :" + myRouteSummary.totalTime);

 

RowData

RowData[] myRowData = myResultSet.rows;
for(int i = 0; i < myRowData.Length; i++ )
{
string[] fields = myRowData.fieldValues;
for (int j = 0; j < fields.Length; j++)
{
Response.Write("<br>FieldValue = " + fields[j]);
}
}

 

ScaleBarDesc

ScaleBarDesc myScaleBarDesc = new ScaleBarDesc();
myScaleBarDesc.barColor = "255,0,0";
myScaleBarDesc.barLength = 40;
myScaleBarDesc.barPixelLocation = myPixelCoord;
myScaleBarDesc.barUnits = "km";
myScaleBarDesc.barWidth = 6;
myScaleBarDesc.font = "Arial";
myScaleBarDesc.fontColor = "0,200,0";
myScaleBarDesc.fontSize = 10;

 

SearchOptions

SearchOptions mySearchOptions = new SearchOptions();
mySearchOptions.orderByList = myOrderByArray;
mySearchOptions.resultSetRange = myResultSetRange;
string[] myReturnFields = new string[2];
myReturnFields[0] = "NAME";
myReturnFields[0] = "CFCC";
mySearchOptions.returnFields = myReturnFields;
mySearchOptions.whereClause = "CFCC='D31'";

 

SegmentDesc

RouteInfo myRouteInfo = myRouteFinder.findRoute(myRouteStopArray, myRouteFinderOptions, token);
SegmentDesc[] mySegmentDescArray = myRouteInfo.segmentDescs;
for(int i = 0; i < mySegmentDescArray.Length; i++)
{
Response.Write("<br> Descriptive Directions :" + mySegmentDescArray[i].descriptiveDirections);
Response.Write("<br> Descriptive Distance :" + mySegmentDescArray[i].descriptiveDistance);
Response.Write("<br> Distance :" + mySegmentDescArray[i].numericDistance);
Response.Write("<br> Time :" + mySegmentDescArray[i].numericTime);
}

 

ServiceInfo

ServiceInfo myServiceInfo = myServiceInfoArray[0];
myServiceInfo.dataSourcesInfo = myDataSourceInfoArray;
Response.Write("<br>Service Description = " + myServiceInfo.desc);
Response.Write("<br>Service Name = " + myServiceInfo.name);
Response.Write("<br>WSDL = " + myServiceInfo.wsdl);
DataSourceInfo[] myDataSourceInfoArray = myServiceInfo.dataSourcesInfo;

 

ServiceSummary

ServiceSummary myServiceSummary = myServiceSummaryArray[0];
ServiceInfo[] myServiceInfoArray = myServiceSummary.servicesInfo;
User myUser = myServiceSummary.user;
Response.Write("Username = " + myUser.username);

 

ServiceUsage

ServiceUsage myServiceUsage = myServiceUsageArray[0];
myServiceUsage.dataSourcesUsage = myDataSourcesUsageArray;
myServiceUsage.usage = myUsageInfo;
Response.Write("<br>Email Address = " + myServiceUsage.name);
DataSourceUsage[] myDataSourceUsageArray = myServiceUsage.dataSourcesUsage;

 

SimplePoint

SimplePoint mySimplePoint = new SimplePoint();
mySimplePoint.x = -117.634589;
mySimplePoint.y = 33.890873;

 

Site

Site mySite = new Site();
mySite.calcType = "solid";
mySite.ringRadii(0) = 2.0;
mySite.ringRadii(1) = 4.0;
mySite.ringRadii(ringRadiiArray);
mySite.ringUnits = "km";
mySite.siteLocation = myPoint;
mySite.siteName = "sitename";

 

SpatialBuffer

SpatialBuffer mySpatialBuffer = new SpatialBuffer();
mySpatialBuffer.bufferDistance = 2;
mySpatialBuffer.bufferUnits = "miles";

 

SpatialQueryInfo

foreach (SpatialQueryInfo spatialQueryInfo in mySpatialQueryInfo)
{
Response.Write("<br>Data Source = " + spatialQueryInfo.dataSource);
foreach (FieldDesc fieldDesc in spatialQueryInfo.availableFields)
{
Response.Write("<br>Field = " + fieldDesc.name);
Response.Write("<br>Field = " + fieldDesc.shortDesc);
}
Response.Write("<br>");
}

 

SpatialQueryOptions

SpatialQueryOptions mySpatialQueryOptions = new SpatialQueryOptions();
mySpatialQueryOptions.dataSource = "ArcWeb:TA.POI.US";
mySpatialQueryOptions.distanceUnits = "km";
mySpatialQueryOptions.returnDistance = true;
mySpatialQueryOptions.returnGeometry = true;
mySpatialQueryOptions.searchOptions = mySearchOptions;
mySpatialQueryOptions.spatialBuffer = mySpatialBuffer;

 

StandardGeography

StandardGeography myStandardGeography = new StandardGeography();
ResultSet myResultSet = myReport.getGeographyIDs(myGeographyIDOptions, token);
FieldDesc[] myFieldDescArray = myResultSet.fields;
string[] myGeographyIDs = new string[myFieldDescArray.Length];
for(int i = 0; i < myFieldDescArray.Length; i++)
myGeographyIDs[i] = myFieldDescArray[i].name;
}
myStandardGeography.geographyIDs = myGeographyIDs;
myStandardGeography.geographyLevel = "county";

 

StringSet

StringSet myStringSet = myDataManager.getUniqueValues("MyDataFile", "owner_id", myResultSetRange, token);
Response.Write("<br> An element of the strings array : " + myStringSet.strings[0]);
Response.Write("<br> Total count : " + myStringSet.totalCount);

 

ThematicColors

ThematicColors myThematicColors = new ThematicColors();
string[] colorsArray = {"255,0,0", "0,0,255", "0,255,0"};
myThematicColors.classColors = colorsArray;
myThematicColors.colorPalette = "green";

 

ThematicData

ThematicData myThematicData = new ThematicData();
myThematicData.data = myKeyValueArray;
myThematicData.precision = 2;
myThematicData.sign = "dollar";

 

ThematicOptions

ThematicOptions myThematicOptions = new ThematicOptions();
myThematicOptions.classificationMethod = "equalInterval";
String[] myClassLabelsArray = {"less than 10", "10 to 25", "greater than 25"};
myThematicOptions.classLabels = myClassLabelsArray;
myThematicOptions.numClasses = 3;
myThematicOptions.thematicOnlyLegend = false;

 

ThematicReportOptions

ThematicReportOptions myThematicReportOptions = new ThematicReportOptions();
myThematicReportOptions.classificationMethod = "equalInterval";
myThematicReportOptions.colorPalette = "coolToWarm";
myThematicReportOptions.geographyLevel = "county";
myThematicReportOptions.numClasses = 2;

 

ThematicVariableInfo

ThematicVariableInfo[] myThematicVariableInfoArray = getThematicVariables(myDatabase, myTable, token);
ThematicVariableInfo myThematicVariableInfo = myThematicVariableInfoArray[0];
Response.Write("<br>Database = " + myThematicVariableInfo.database);
Response.Write("<br>Short Desc = " + myThematicVariableInfo.shortDesc);
Response.Write("<br>Table = " + myThematicVariableInfo.table);
Response.Write("<br>Variable = " + myThematicVariableInfo.variable);

 

UsageInfo

UsageInfo myUsageInfo = myDataSourceUsage.usage;
Response.Write("<br>Credits used = " + myUsageInfo.creditsUsed.ToString());
Response.Write("<br>Date last used = " + myUsageInfo.dateLastUsed.ToString());
Response.Write("<br>Number of requests = " + myUsageInfo.numRequests.ToString());

 

User

User myUser = myUserUsage.user;
Response.Write("<br>Email Address = " + myUser.emailAddress);
Response.Write("<br>Full name = " + myUser.firstName + " " + myUser.lastName);
Response.Write("<br>Active? = " + myUser.isActive.ToString());
Response.Write("<br>Admin? = " + myUser.isAdmin);
Response.Write("<br>Username = " + myUser.username);

 

UserUsage

UserUsage myUserUsage = myUserUsageArray[0];
myUserUsage.accountUsage = myAccountUsage;
myUserUsage.servicesUsage = myServicesUsage;
myUserUsage.user = myUser;
Response.Write("Account Usage = " + myUserUsage.accountUsage.ToString());
Response.Write("Services Usage = " + myUserUsage.servicesUsage.ToString());
ServiceUsage[] myServiceUsageArray = myUserUsage.servicesUsage;

Account Info methods

getServices

AccountInfo myAccountInfo = new AccountInfo();
ServiceSummary[] myServiceSummaryArray = myAccountInfo.getServices(myAccountInfoOptions, token);

 

getUsage

AccountInfo myAccountInfo = new AccountInfo();
AccountSummary myAccountSummary = myAccountInfo.getUsage(myAccountInfoOptions, myDateTimeRange, token);
UserUsage[] myUserUsageArray = myAccountSummary.usageByUser;

 

getVersion

AccountInfo myAccountInfo = new AccountInfo();
UserInfo myUserInfo = new UserInfo();
myUserInfo = myAccountInfo.getUserInfo(token);

Address Finder methods

findAddressByPoint

AddressFinder myAddressFinder = new AddressFinder();
Address myAddress = myAddressFinder.findAddressByPoint(myPoint, myAddressFinderOptions, token);

 

findLocationByAddress

AddressFinder myAddressFinder = new AddressFinder();
GeocodeInfo myGeocodeInfo = myAddressFinder.findLocationByAddress(myAddress, myAddressFinderOptions, token);

 

findLocationByIP

AddressFinder myAddressFinder = new AddressFinder();
GeocodeInfo myGeocodeInfo = myAddressFinder.findLocationByAddress("200.133.175.16", myAddressFinderOptions, token);

 

findLocationByPhoneNumber

AddressFinder myAddressFinder = new AddressFinder();
GeocodeInfo myGeocodeInfo = myAddressFinder.findLocationByPhoneNumber("9097932853", myAddressFinderOptions, token);

 

getInfo

AddressFinder myAddressFinder = new AddressFinder();
string[] myDataSourcesArray = {"ArcWeb:NT.Address.US", "ArcWeb:TA.Address.US"};
AddressFinderInfo[] myAddressFinderInfoArray = myAddressFinder.getInfo(myDataSourcesArray, token);

 

getVersion

AddressFinder myAddressFinder = new AddressFinder();
string myVersion = myAddressFinder.getVersion();

Address Manager methods

findAddressesByPoint

AddressManager myAddressManager = new AddressManager();
Address myAddress = myAddressManager.findAddressesByPoint(myPointArray, myAddressFinderOptions, token);

 

findLocationsByAddress

AddressManager myAddressManager = new AddressManager();
GeocodeInfo[] myGeocodeInfoArray = myAddressManager.findLocationsByAddress(myAddressArray, myAddressFinderOptions, token);

 

findLocationsByIP

AddressManager myAddressManager = new AddressManager();
string[] myIPAddressArray = {"200.133.175.161", "201.123.131.204"};
GeocodeInfo[] myGeocodeInfoArray = myAddressManager.findLocationsByIP(myIPAddressArray, myAddressFinderOptions, token);

 

findLocationsByPhoneNumber

AddressManager myAddressManager = new AddressManager();
string[] myPhoneNumberArray = {"9097939342", "9097932853"};
GeocodeInfo[] myGeocodeInfoArray = myAddressManager.findLocationsByPhoneNumber(myPhoneNumberArray, myAddressFinderOptions, token);

 

getInfo

AddressManager myAddressManager = new AddressManager();
string[] myDataSourceArray = {"ArcWeb:NT.Streets.US ", "ArcWeb:TA.Streets.CA "};
AddressFinderInfo[] myAddressFinderInfoArray = myAddressManager.getInfo(myDataSourceArray, token);

 

getVersion

AddressManager myAddressManager = new AddressManager();
string version = myAddressManager.getVersion();

Authentication methods

getCustomExpirationToken

Authentication myAuthentication = new Authentication();
string myCustomExpirationToken = myAuthentication.getCustomExpirationToken("username", "password", 500);

 

getToken

Authentication myAuthentication = new Authentication();
string myToken = myAuthentication.getToken("username", "password");

 

getVersion

Authentication myAuthentication = new Authentication();
string myVersion = myAuthentication.getVersion();

 

validateToken

Authentication myAuthentication = new Authentication();
int minutesLeft = myAuthentication.validateToken(token);

Content Finder methods

getAvailableAttributes

ContentFinder myContentFinder = new ContentFinder();
AttributeDesc[] attributeDescArray = myContentFinder.getAvailableAttributes("DataFile", token);

 

getAvailableServices

ContentFinder myContentFinder = new ContentFinder();
string[] myAvailableServices = myContentFinder.getAvailableServices(token);

 

getDependentContent

ContentFinder myContentFinder = new ContentFinder();
Dim myContentFinderRecordArray = ContentFinderRecord() = myContentFinder.getDependentContent(myContentFinderRecordID, token)

 

getRecord

ContentFinder myContentFinder = new ContentFinder();
ContentFinderRecord myContentFinderRecord = myContentFinder.getRecord(myContentFinderRecordID, token);

 

getSubContent

ContentFinder myContentFinder = new ContentFinder();
ContentFinderRecord() myContentFinderRecordArray = myContentFinder.getSubContent(myContentFinderRecordID, token);

 

getUniqueValues

ContentFinder myContentFinder = new ContentFinder();
String() myUniqueValues = myContentFinder.getUniqueValues("DataSource", "title", token);

 

getVersion

ContentFinder myContentFinder = new ContentFinder();
string version = myContentFinder.getVersion();

 

searchRecords

ContentFinder myContentFinder = new ContentFinder();
ContentFinderResultSet myContentFinderResultSet = myContentFinder.searchRecords(myContentFinderSearchOptions, token);

Data Manager methods

addFeatures

DataManager myDataManager = new DataManager();
FeatureIDInfo[] myFeatureIDInfoArray = myDataManager.addFeatures("MyDataFile", myFeaturesArray, false, token);

 

createDataFile

DataManager myDataManager = new DataManager();
myDataManager.createDataFile(myDataFile, token);

 

deleteDataFile

DataManager myDataManager = new DataManager();
myDataManager.deleteDataFile("MyDataFile", token);

 

deleteFeatures

DataManager myDataManager = new DataManager();
myDataManager.deleteFeatures("MyDataFile", myFeatureIDArray, token);

 

findFeatures

DataManager myDataManager = new DataManager();
FeatureResultSet myFeatureResultSet = myDataManager.findFeatures("MyDataFile", myFeatureSearchOptions, token);

 

geocodeFeatures

DataManager myDataManager = new DataManager();
GeocodeInfo[] myGeocodeInfoArray = myDataManager.geocodeFeatures("MyDataFile", myFeatureIDsArray, myGeocodeOptions, token);

 

getAvailableDataFileAttributes

DataManager myDataManager = new DataManager();
AttributeDesc[] myAttributeDescArray = myDataManager.getAvailableDataFileAttributes(token);

 

getDataFilesInfo

DataManager myDataManager = new DataManager();
DataFileInfo[] myDataFileInfoArray = myDataManager.getDataFilesInfo(myStringArray, token);

 

getUniqueValues

DataManager myDataManager = new DataManager();
StringSet myStringSet = myDataManager.getUniqueValues("MyDataFile", "owner_id", myResultSetRange, token);

 

getVersion

DataManager myDataManager = new DataManager();
String version = myDataManager.getVersion();

 

renameField

DataManager myDataManager = new DataManager();
myDataManager.renameField("MyDataFile", "owner_id", "owner", token);

 

updateDataFile

DataManager myDataManager = new DataManager();
myDataManager.updateDataFile("MyDataFile", myDataFile, token);

 

updateFeatures

DataManager myDataManager = new DataManager();
myDataManager.updateFeatures("MyDataFile", myFeatureUpdateOptions, myFeatureIDsArray, token);

Map Image methods

convertMapCoordsToPixelCoords

MapImage myMapImage = new MapImage();
PixelCoord[] myPixelCoordArray = myMapImage.convertMapCoordsToPixelCoords(myMapArea, myMapImageSize, myPointArray, token);

 

convertPixelCoordsToMapCoords

MapImage myMapImage = new MapImage();
Point myPointArray = myMapImage.convertPixelCoordsToMapCoords(myMapArea, myMapImageSize, myPixelCoordinateArray, token);

 

getBestMap

MapImage myMapImage = new MapImage();
MapImageInfo myMapImageInfo = myMapImage.getBestMap(myMapImageOptions, 100, token);

 

getBestMapArea

MapImage myMapImage = new MapImage();
MapArea myMapArea = myMapImage.getBestMapArea(myMapImageOptions, 100, token);

 

getCustomThematicMap

MapImage myMapImage = new MapImage();
MapImageInfo myMapImageInfo = myMapImage.getCustomThematicMap(myMapArea, myMapImageOptions, myThematicData, myThematicOptions, myThematicColors, token);

 

getESRIThematicMap

MapImage myMapImage = new MapImage();
MapImageInfo myMapImageInfo = myMapImage.getESRIThematicMap(myMapArea, myMapImageOptions, AVGHHINC, myThematicOptions, myThematicColors, token);

 

getFusedMapImage

MapImage myMapImage = new MapImage();
string myFusedMapImage = myMapImage.getFusedMapImage(myMapFusionOptionsArray, "png", token);

 

getMaps

MapImage myMapImage = new MapImage();
MapImageInfo myMapImageInfoArray = myMapImage.getMaps(myMapAreaArray, myMapImageOptionsArray, token);

 

getMarkerNames

MapImage myMapImage = new MapImage();
string[] markerNamesArray = myMapImage.getMarkerNames("ArcWeb:ESRI.Raster.Icons", token);

 

getSavedMap

MapImage myMapImage = new MapImage();
MapImageInfo myMapImageInfo = myMapImage.getSavedMap("savedMapID", token);

 

getThematicFields

MapImage myMapImage = new MapImage();
String[] thematicFIelds = myMapImage.getThematicFields("ArcWeb:ESRI.ZipCodes.US", token);

 

getValueMap

MapImage myMapImage = new MapImage();
MapImageInfo myMapImageInfo = myMapImage.getValueMap(myMapArea, myMapImageOptions, myThematicData, myKeyValueArray, myThematicOptions, token);

 

getVersion

MapImage myMapImage = new MapImage();
String version = myMapImage.getVersion();

 

saveMap

MapImage myMapImage = new MapImage();
String myMap = myMapImage.saveMap(myMapArea, myMapImageOptions, token);

Place Finder methods

findPlace

PlaceFinder myPlaceFinder = new PlaceFinder();
GeocodeInfo myGeocodeInfo = myPlaceFinder.findPlace("redlands", myPlaceFinderOptions, token);

 

getInfo

PlaceFinder myPlaceFinder = new PlaceFinder;
string[] myDataSourceArray = {"ArcWeb:ESRI.Gazetteer.World", "ArcWeb:TA.PostalPlaces.US"};
PlaceFinderInfo[] myPlaceFinderInfoArray = myPlaceFinder.getInfo(myDataSourceArray, token);

 

getVersion

PlaceFinder myPlaceFinder = new PlaceFinder;
string version = myPlaceFinder.getVersion();

Place Finder Sample methods

findPlace

PlaceFinderSample myPlaceFinderSample = new PlaceFinderSample();
GeocodeInfo myGeocodeInfo = myPlaceFinderSample.findPlace("redlands", myPlaceFinderOptions);

 

getInfo

PlaceFinderSample myPlaceFinderSample = new PlaceFinderSample();
PlaceFinderInfo myPlaceFinderInfo = myPlaceFinderSample.getInfo();

 

getVersion

PlaceFinderSample myPlaceFinderSample = new PlaceFinderSample();
string version = myPlaceFinderSample.getVersion();

Report methods

createPDFDocument

Report myReport = new Report();
string[] myAvailableTemplateNamesArray = myReport.getAvailableTemplateNames(token);
string templateName = myAvailableTemplateNamesArray[0];
string myPDFDocument = myReport.createPDFDocument(templateName, myKeyValueArray, token);

 

getAvailableTemplateName

Report myReport = new Report();
string[] myAvailableTemplateNamesArray = myReport.getAvailableTemplateNames(token);

 

getCustomSiteReport

Report myReport = new Report();
ReportInfo myReportInfo = myReport.getCustomSiteReport(mySite, myReportOptionsArray, myCustomReportVariablesArray, token);

 

getCustomStandardGeographyReport

Report myReport = new Report();
ReportInfo myReportInfo = myReport.getCustomStandardGeographyReport(myStandardGeographyArray, myReportOptions, myCustomReportVariablesArray, token);

 

getCustomVariables

Report myReport = new Report();
CustomVariableInfo[] myCustomVariableInfoArray = myReport.getCustomVariable("ArcWeb:ESRI.DemographicAndIncome.US", token)

 

getDatabases

Report myReport = new Report();
string[] myDatabasesArray = myReport.getDatabases(token);

 

getGeographyIDs

Report myReport = new Report();
ResultSet myResultSet = myReport.getGeographyIDs(myGeographyIDOptions, token);

 

getReportHeaderKeys

Report myReport = new Report();
KeyValue[] myKeyValueArray = myReport.getReportHeaderKeys("getStandardGeographyReport", token);

 

getSiteReports

Report myReport = new Report();
ReportInfo[] myReportInfoArray = myReport.getSiteReports(mySite, myReportOptionsArray, true, token);

 

getStandardGeographyReport

Report myReport = new Report();
ReportInfo myReportinfo = myReport.getStandardGeographyReport(myStandardGeographyArray, myReportOptions, token);

 

getTables

Report myReport = new Report();
string[] myDatabasesArray = myReport.getDatabases(token);
string database = myDatabasesArray[0];
string[] myTablesArray = myReport.getTables(database, token);

 

getThematicMapReport

Report myReport = new Report();
string[] myDatabasesArray = myReport.getDatabases(token);
string database = myDatabasesArray[0];
string[] myTablesArray = myReport.getTables(database, token);
string table = myTablesArray[0];
ThematicVariableInfo[] myThematicVariableInfoArray = myReport.getThematicVariables(database, table, token);
ThematicVariableInfo thematicVariableInfo = myThematicVariableInfoArray[0];
string thematicVariable = thematicVariableInfo.variable;
ReportInfo myReportInfo = myReport.getThematicMapReport(mySiteArray, myReportOptions, myThematicReportOptions, thematicVariable, token);

 

getThematicVariables

Report myReport = new Report();
string[] myDatabasesArray = myReport.getDatabases(token);
string database = myDatabasesArray[0];
string[] myTablesArray = myReport.getTables(database, token);
string table = myTablesArray[0];
ThematicVariableInfo[] myThematicVariableInfoArray = myReport.getThematicVariables(database, table, token);

 

getVersion

Report myReport = new Report();
string myVersion = myReport.getVersion();

 

searchThematicVariables

Report myReport = new Report();
string[] myDatabasesArray = myReport.getDatabases(token);
string database = myDatabasesArray[0];
string[] myTablesArray = myReport.getTables(database, token);
string table = myTablesArray[0];
ThematicVariableInfo[] myThematicVariableInfoArray = myReport.getThematicVariables(database, table, token);
ThematicVariableInfo thematicVariableInfo = myThematicVariableInfoArray[0];
string keyword = thematicVariableInfo.shortDesc;
ThematicVariableInfo[] myThematicVariableInfoArray = myReport.searchThematicVariables(keyword, token);

Route Finder methods

findRoute

RouteFinder myRouteFinder = new RouteFinder();
RouteInfo myRouteInfo = myRouteFinder.findRoute(myRouteStopArray, myRouteFinderOptions, token);

 

getLanguages

RouteFinder myRouteFinder = new RouteFinder();
string[] languages = myRouteFinder.getLanguages(token);

 

getVersion

RouteFinder myRouteFinder = new RouteFinder();
string version = myRouteFinder.getVersion();

Spatial Query methods

findFeaturesByExtent

SpatialQuery mySpatialQuery = new SpatialQuery();
ResultSet myResultSet = mySpatialQuery.findFeaturesByExtent(myExtent, mySpatialQueryOptions, token);

 

findFeaturesByGeometry

SpatialQuery mySpatialQuery = new SpatialQuery();
ResultSet myResultSet2 = mySpatialQuery.findFeaturesByGeometry(myGeometry, mySpatialQueryOptions, token);

 

findFeaturesByPoint

SpatialQuery mySpatialQuery = new SpatialQuery();
ResultSet myResultSet3 = mySpatialQuery.findFeaturesByPoint(myPoint, mySpatialQueryOptions, token);

 

getAvailableFieldNames

SpatialQuery mySpatialQuery = new SpatialQuery();
string[] myDataSourcesArray = {"ArcWeb:ESRI.Airports.World","ArcWeb:FEMA.Flood.US"};
SpatialQueryInfo[] mySpatialQueryInfo = mySpatialQuery.getAvailableFieldNames(myDataSourcesArray, token);

 

getVersion

SpatialQuery mySpatialQuery = new SpatialQuery();
string version = mySpatialQuery.getVersion();

Utility methods

convertCircleToGeometry

Utility myUtility = new Utility();
Geometry myGeometry = myUtility.convertCircleToGeometry(myCircle,5,token);

 

convertCircularArcToGeometry

Utility myUtility = new Utility();
Geometry myGeometry = myUtility.convertCircularArcToGeometry(myCircularArc,5,token);

 

convertEllipseToGeometry

Utility myUtility = new Utility();
Geometry myGeometry = myUtility.convertEllipseToGeometry(myEllipse,5,token);

 

getBestProjection

Utility myUtility = new Utility();
Envelope myEnvelope = myUtility.getBestProjection(myEnvelope,token);

 

getDataCollectionDate

Utility myUtility = new Utility();
String myDataCollectionDate = myUtility.getDataCollectionDate("ArcWeb:GlobeXplorer.DOQQ.US",myEnvelope,myMapImageSize,token);

 

getDistance

Utility myUtility = new Utility();
DistanceInfo myDistanceInfo = myUtility.getDistance(myPoint1,myPoint2,"km",100,true,token);

 

getDriveTime

Utility myUtility = new Utility();
Geometry myDriveTime = myUtility.getDriveTime("ArcWeb:TA.Streets.NA",myPoint,20,"km",token);

 

getSupportedProjections

Utility myUtility = new Utility();
keyValue[] myKeyValueArray = myUtility.getSupportedProjections("all",token);

 

getVersion

Utility myUtility = new Utility();
String myVersion = myUtility.getVersion();

 

projectExtent

 Utility myUtility = new Utility();
Envelope myProjectedExtent = myUtility.projectExtent(myEnvelope,myCoordSys,token);

 

projectGeometry

Utility myUtility = new Utility();
Geometry myProjectedGeometry = myUtility.projectGeometry(myGeometry,myCoordSys,token);

 

projectPoint

 Utility myUtility = new Utility();
Point myProjectedPoint = myUtility.projectPoint(myPoint,myCoordSys,token);

Wireless Location methods

getDeviceLocation

WirelessLocation myWirelessLocation = new WirelessLocation();
DeviceLocationInfo[] myDeviceLocationInfoArray = myWirelessLocation.getDeviceLocation(myMobileDeviceArray, myDeviceLocationOptions, token);

 

getDeviceStatus

WirelessLocation myWirelessLocation = new WirelessLocation();
DeviceStatus[] myDeviceStatusArray = myWirelessLocation.getDeviceStatus(myMobileDeviceArray, token);

 

getDeviceStops

WirelessLocation myWirelessLocation = new WirelessLocation();
DeviceStopInfo[] myDeviceStopInfoArray = myWirelessLocation.getDeviceStops(myDeviceStopOptions, token);

 

getTripInfo

WirelessLocation myWirelessLocation = new WirelessLocation();
DeviceTripInfo myDeviceTripInfo = myWirelessLocation.getTripInfo(myDeviceTripOptions, token);

 

getVersion

WirelessLocation myWirelessLocation = new WirelessLocation();
String version = myWirelessLocation.getVersion();

 

sendSMS

WirelessLocation myWirelessLocation = new WirelessLocation();
String[] mySMSArray = myWirelessLocation.sendSMS(myMobileDeviceArray,"This message can have a max of  160 ASCII characters", token);

 


Visit the Feedback page to give comments or suggestions about the ArcWeb Developer's Guide.

ArcWeb site | ArcWeb support | support.esri.com

Copyright © ESRI