+ Reply to Thread
Results 1 to 3 of 3

Thread: What kind of data type for 'input features' in tools?

  1. #1
    Insu Hong
    Join Date
    May 2012
    Posts
    40
    Points
    0
    Answers Provided
    0


    0

    Default What kind of data type for 'input features' in tools?

    Hello,

    I have a difficulty with ArcObject .net.

    Code:
    PointsToLine P2Line = new PointsToLine();
    
    P2Line.Input_Features = something;

    I tried to make a line from two points. So I created P2Line for that, but I failed to input a list of point features.

    I tried Array of strings which are name of layers, and Array of FeatureClasses, and List of Layer names and FeatureClasses, but all of them failed.


    How can I input list of point features properly?

    I'm completely new on ArcObject. I'm just researcher who try to use it, not developer. So it would be appreciate to explain easily as possible.


    Thanks!

  2. #2
    Edgar Bejarano
    Join Date
    Feb 2011
    Posts
    49
    Points
    25
    Answers Provided
    5


    0

    Default Re: What kind of data type for 'input features' in tools?

    Hello,

    The Input Features parameter (or property of the PointsToLine class) takes a string value representing a featureclass or shapefile on disc,
    e.g. @"C:\MyShapefiles\myPoints.shp" or @"C:\MyGeodatabases\myGeodatabase.gdb\myPointsFC

    You should be able to also specify an object (ArcObjects), like objects of type IFeatureLayer, IDataset, IFeatureClass. I am not sure if you can specify a geometry bag (IGeometryBag type object) or geometry collection (IGeometryCollection type object) or feature cursor (IFeatureCursor type object) but it may be possible. If you get an exception upon specifying all of those, one at a time, of course, then that may not be possible.

    Using ArcObjects as tool input
    http://help.arcgis.com/en/sdk/10.0/a...000041n000000/

  3. #3
    Insu Hong
    Join Date
    May 2012
    Posts
    40
    Points
    0
    Answers Provided
    0


    0

    Default Re: What kind of data type for 'input features' in tools?

    Thanks.

    Then how do I input multiple shape files?

    For example, if I want to intersect with two features, base.shp and area.shp ?

    Quote Originally Posted by edga6340 View Post
    Hello,

    The Input Features parameter (or property of the PointsToLine class) takes a string value representing a featureclass or shapefile on disc,
    e.g. @"C:\MyShapefiles\myPoints.shp" or @"C:\MyGeodatabases\myGeodatabase.gdb\myPointsFC

    You should be able to also specify an object (ArcObjects), like objects of type IFeatureLayer, IDataset, IFeatureClass. I am not sure if you can specify a geometry bag (IGeometryBag type object) or geometry collection (IGeometryCollection type object) or feature cursor (IFeatureCursor type object) but it may be possible. If you get an exception upon specifying all of those, one at a time, of course, then that may not be possible.

    Using ArcObjects as tool input
    http://help.arcgis.com/en/sdk/10.0/a...000041n000000/

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts