Changeset 933

Show
Ignore:
Timestamp:
03/07/12 15:44:47 (16 months ago)
Author:
jjr8
Message:

Continuing work on ArcGISPoints.CreateFeatureClassWithPoints?.

Files:
1 modified

Legend:

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

    r931 r933  
    17271727parameter to the field that identifies the track. 
    17281728 
    1729 Also by default, when generating points along the lines, the tool 
    1730 orders the lines by the FID or OBJECTID field in ascending order. If 
    1731 another field should be used, set the Order By Field parameter to that 
     1729By default, when generating points along the lines, the tool orders 
     1730the lines by the FID or OBJECTID field in ascending order. If another 
     1731field should be used, set the Order By Field parameter to that 
    17321732field."""), 
    17331733    arcGISDisplayName=_(u'Input lines')) 
     
    17351735AddArgumentMetadata(ArcGISPoints.CreatePointsAlongLines, u'outputFeatureClass', 
    17361736    typeMetadata=ArcGISFeatureClassTypeMetadata(deleteIfParameterIsTrue=u'overwriteExisting', createParentDirectories=True, mustBeDifferentThanArguments=[u'inputLines']), 
    1737     description=_(u"""Output point feature class to create."""), 
     1737    description=_( 
     1738u"""Output point feature class to create. 
     1739 
     1740If track ID or order by fields are specified, they will be added to 
     1741this feature class. If a temporal unit is specified, a field called 
     1742PointTime will be added to hold the points' dates and times. You may 
     1743also specify additional fields of the lines to copy to this feature 
     1744class (see Additional Options)."""), 
    17381745    direction = u'Output', 
    17391746    arcGISDisplayName=_(u'Output point feature class')) 
     
    17421749    typeMetadata=FloatTypeMetadata(mustBeGreaterThan=0.), 
    17431750    description=_( 
    1744 u"""Interval for generating points. You must also specify the interval 
    1745 unit."""), 
     1751u"""Interval for generating points. This must be a number greater than 
     1752zero. You must also specify the interval unit."""), 
    17461753    arcGISDisplayName=_(u'Interval')) 
    17471754 
    17481755AddArgumentMetadata(ArcGISPoints.CreatePointsAlongLines, u'unit', 
    1749     typeMetadata=FloatTypeMetadata(mustBeGreaterThan=0.), 
     1756    typeMetadata=UnicodeStringTypeMetadata(makeLowercase=True, allowedValues=[u'Days', u'Decimal degrees', u'Feet', u'Kilometers', u'Hours', u'Meters', u'Miles', u'Minutes', u'Nautical miles', u'Seconds', u'Yards']), 
    17501757    description=_( 
    17511758u"""Unit of the interval. The unit may be angular (i.e. decimal 
    17521759degrees), linear (e.g. meters), or temporal (e.g. hours). 
    17531760 
    1754 For an angular unit to be used, the input lines must be in a 
    1755 geographic (unprojected) coordinate system. Points will be placed 
    1756 exactly along the lines at the specified interval. 
     1761If an angular unit is used, the input lines must be in a geographic 
     1762(unprojected) coordinate system. Points will be placed exactly along 
     1763the lines at the specified interval. 
    17571764 
    17581765If a linear unit is used, the input lines may be in a projected or 
     
    17831790be placed more realistically if a projected coordinate system is used. 
    17841791 
    1785 If the lines can only represent dates with no time component (e.g. 
    1786 they are shapefiles), then the time component is assumed to be 
    1787 00:00:00. If a time component is stored in a separate field, you 
    1788 should import the lines into a geodatabase, create a new field that 
    1789 will hold both components (use the DATE data type), and use the 
     1792If the start and end time fields can only represent dates with no time 
     1793component (e.g. the lines are in a shapefile), then the time component 
     1794of these fields is assumed to be 00:00:00. If a time component is 
     1795stored in a separate field (e.g. text such as '12:34:56'), you should 
     1796import the lines into a geodatabase, create a new field that will hold 
     1797both date and time components (use the DATE data type), and use the 
    17901798Calculate Field tool to populate the new field from both components. 
    17911799 
     
    18561864    description=_( 
    18571865u"""This option determines whether points should be generated at the 
    1858 ends or offset from the ends of the tracklines. 
    1859  
    1860 If disabled, the default, the first point on the trackline will be 
    1861 offset from the first vertex of the trackline by one-half of the point 
    1862 interval you specified. Successive points will be placed along the 
    1863 trackline at that interval until the remaining trackline is shorter 
    1864 than the interval. If the total length of the trackline is not evenly 
    1865 divisible by the interval, the distance between the last point and the 
    1866 ending vertex of the trackline will be less than one-half of the 
    1867 interval. This behavior can be overridden by enabling the Distribute 
    1868 Remaining Distance Among All Points option, in which case the 
    1869 remainder distance will be equally distributed between all points, 
    1870 making them all slightly closer together (but equally spaced), and the 
    1871 distance between the first vertex of the trackline and the first point 
    1872 equal to the distance between the last vertex and the last point. 
    1873  
    1874 If enabled, the first point on the trackline will be placed at the 
    1875 first vertex of the trackline. Successive points will be placed along 
    1876 the trackline at that interval until the remaining trackline is 
    1877 shorter than the interval. Then the final point will be placed at the 
    1878 last vertex of the trackline. If the total length of the trackline is 
    1879 not evenly divisible by the interval, the distance between the 
    1880 next-to-last point and the last point (at the ending vertex of the 
    1881 trackline) will be less than the interval. This behavior can be 
    1882 overridden by enabling the Distribute Remaining Distance Among All 
     1866ends of tracks or offset from the ends of them. 
     1867 
     1868If disabled, the default, the first point generated on the track will 
     1869be offset from the first vertex of the first line of the track by 
     1870one-half of the point interval you specified. Successive points will 
     1871be placed along the track at that interval until the remaining track 
     1872is shorter than the interval. If the total length of the track is not 
     1873evenly divisible by the interval, the distance between the last point 
     1874and the ending vertex of the last line in the track will be less than 
     1875one-half of the interval. This behavior can be overridden by enabling 
     1876the Distribute Remaining Distance Among All Points option, in which 
     1877case the remainder distance will be equally distributed between all 
     1878points, making them all slightly closer together (but equally spaced), 
     1879and the distance between the first vertex of the track and the first 
     1880point equal to the distance between the last vertex and the last 
     1881point. 
     1882 
     1883If enabled, the first point on the track will be placed at the first 
     1884vertex of the first line of the track. Successive points will be 
     1885placed along the track at the point interval until the remaining track 
     1886is shorter than the interval. Then the final point will be placed at 
     1887the last vertex of the last line of the track. If the total length of 
     1888the track is not evenly divisible by the interval, the distance 
     1889between the next-to-last point and the last point (at the ending 
     1890vertex of the track) will be less than the interval. This behavior can 
     1891be overridden by enabling the Distribute Remaining Distance Among All 
    18831892Points option, in which case the remainder distance will be equally 
    18841893distributed between all points, making them all slightly closer 
    18851894together (but equally spaced)."""), 
    1886     arcGISDisplayName=_(u'Place points at ends of tracklines'), 
     1895    arcGISDisplayName=_(u'Place points at ends of tracks'), 
    18871896    arcGISCategory=_(u'Additional options')) 
    18881897 
     
    18901899    typeMetadata=BooleanTypeMetadata(), 
    18911900    description=_( 
    1892 u"""Determines how points are distributed on tracklines with lengths 
    1893 that are not evenly divisible by the point interval. Please see the 
    1894 documentation for the previous parameter for more information."""), 
     1901u"""Determines how points are distributed on tracks that are not 
     1902evenly divisible by the point interval. Please see the documentation 
     1903for the Place Points At Ends Of Tracks parameter for more 
     1904information."""), 
    18951905    arcGISDisplayName=_(u'Distribute remaining distance among all points'), 
    18961906    arcGISCategory=_(u'Additional options')) 
     
    19231933    typeMetadata=ListTypeMetadata(elementType=ArcGISFieldTypeMetadata(mustExist=True), minLength=1, canBeNone=True), 
    19241934    description=_( 
    1925 u"""Fields of the lines to copy to the points that appear along 
    1926 them."""), 
     1935u"""Fields of the lines to copy to the points generated in the output 
     1936feature class."""), 
    19271937    arcGISDisplayName=_(u'Line fields to copy to the points'), 
    19281938    arcGISCategory=_(u'Additional options'),