Changeset 1029


Ignore:
Timestamp:
08/28/12 20:24:59 (5 years ago)
Author:
jjr8
Message:

Working on enhancements to the CreatePointsAlongLines? tool for bbest.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • MGET/Branches/Jason/PythonPackage/src/GeoEco/SpatialAnalysis/Points.py

    r1028 r1029  
    379379                 
    380380            if pointTimeField is not None and elapsedField is not None and elapsedField.lower() == pointTimeField.lower(): 
    381                     raise ValueError(_(u'The Time Field To Create field and the Elapsed Time Field To Create field may not have the same name.')) 
     381                raise ValueError(_(u'The Time Field To Create field and the Elapsed Time Field To Create field may not have the same name.')) 
    382382 
    383383            from GeoEco.Datasets.ArcGIS import ArcGISWorkspace, ArcGISTable 
     
    22422242of the track. The field name is specified by the Distance Travelled 
    22432243Field To Create parameter (under Additional Options). If a temporal 
    2244 value is specified for the Interval Unit parameter, the distance 
     2244unit is specified for the Interval Unit parameter, the distance 
    22452245travelled will be in the units of the underlying coordinate system: 
    22462246either decimal degrees for angular (a.k.a. geographic) coordinate 
    22472247systems, or the linear unit (typically meters) for projected 
    2248 coordinate systems. If a non-temporal value is specified for the 
    2249 Interval Unit, the distance travelled will be in that unit. 
     2248coordinate systems. If a non-temporal unit is specified, the distance 
     2249travelled will be in that unit. 
    22502250 
    22512251Depending on what you specify for other parameters of the tool, 
     
    23302330If you do provide a field, it will be copied to the output points. If 
    23312331you use the FID or OBJECTID field, the corresponding field of the 
    2332 points will be named FID_ or OBJECTID_, to avoid conflicting with the 
     2332points will be named FID\\_ or OBJECTID\\_, to avoid conflicting with the 
    23332333FID or OBJECTID of the points themselves."""), 
    23342334    arcGISDisplayName=_(u'Track ID field'), 
     
    23452345 
    23462346If you do provide a field, it will be copied to the output points. If 
    2347 you use the FID or OBJECTID field, the corresponding field of the 
    2348 points will be named FID_ or OBJECTID_, to avoid conflicting with the 
    2349 FID or OBJECTID of the points themselves. (The FID or OBJECTID field 
    2350 will not be copied when you do not explicitly specify it here.)"""), 
     2347you explicitly use the FID or OBJECTID field, the corresponding field 
     2348of the points will be named FID\\_ or OBJECTID\\_, to avoid 
     2349conflicting with the FID or OBJECTID of the points themselves."""), 
    23512350    arcGISDisplayName=_(u'Order by field'), 
    23522351    arcGISParameterDependencies=[u'inputLines']) 
     
    24722471of the track. 
    24732472 
    2474 If a temporal value is specified for the Interval Unit parameter, the 
     2473If a temporal unit is specified for the Interval Unit parameter, the 
    24752474distance travelled will be in the units of the underlying coordinate 
    24762475system: either decimal degrees for angular (a.k.a. geographic) 
    24772476coordinate systems, or the linear unit (typically meters) for 
    2478 projected coordinate systems. If a non-temporal value is specified for 
    2479 the Interval Unit, the distance travelled will be in that unit. 
     2477projected coordinate systems. If a non-temporal unit is specified, the 
     2478distance travelled will be in that unit. 
    24802479 
    24812480The field will be created with the double-precision floating point 
    24822481data type."""), 
    2483     arcGISDisplayName=_(u'Distance travelled field to create')) 
     2482    arcGISDisplayName=_(u'Distance travelled field to create'), 
     2483    arcGISCategory=_(u'Additional options')) 
    24842484 
    24852485AddArgumentMetadata(ArcGISPoints.CreatePointsAlongLines, u'pointTimeField', 
     
    24912491specified, this parameter is ignored and no field will be 
    24922492created."""), 
    2493     arcGISDisplayName=_(u'Time field to create')) 
     2493    arcGISDisplayName=_(u'Time field to create'), 
     2494    arcGISCategory=_(u'Additional options')) 
    24942495 
    24952496AddArgumentMetadata(ArcGISPoints.CreatePointsAlongLines, u'elapsedField', 
     
    25082509The field will be created with the double-precision floating point 
    25092510data type."""), 
    2510     arcGISDisplayName=_(u'Elapsed time field to create')) 
     2511    arcGISDisplayName=_(u'Elapsed time field to create'), 
     2512    arcGISCategory=_(u'Additional options')) 
    25112513 
    25122514AddArgumentMetadata(ArcGISPoints.CreatePointsAlongLines, u'elapsedUnit', 
     
    25142516    description=_( 
    25152517u"""Unit of the Elapsed Time Field."""), 
    2516     arcGISDisplayName=_(u'Elapsed time unit')) 
     2518    arcGISDisplayName=_(u'Elapsed time unit'), 
     2519    arcGISCategory=_(u'Additional options')) 
    25172520 
    25182521CopyArgumentMetadata(ArcGISPoints.CreateFeatureClassWithPoints, u'overwriteExisting', ArcGISPoints.CreatePointsAlongLines, u'overwriteExisting') 
Note: See TracChangeset for help on using the changeset viewer.