Changeset 933
- Timestamp:
- 03/07/12 15:44:47 (16 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
MGET/Branches/Jason/PythonPackage/src/GeoEco/SpatialAnalysis/Points.py
r931 r933 1727 1727 parameter to the field that identifies the track. 1728 1728 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 anotherfield should be used, set the Order By Field parameter to that1729 By default, when generating points along the lines, the tool orders 1730 the lines by the FID or OBJECTID field in ascending order. If another 1731 field should be used, set the Order By Field parameter to that 1732 1732 field."""), 1733 1733 arcGISDisplayName=_(u'Input lines')) … … 1735 1735 AddArgumentMetadata(ArcGISPoints.CreatePointsAlongLines, u'outputFeatureClass', 1736 1736 typeMetadata=ArcGISFeatureClassTypeMetadata(deleteIfParameterIsTrue=u'overwriteExisting', createParentDirectories=True, mustBeDifferentThanArguments=[u'inputLines']), 1737 description=_(u"""Output point feature class to create."""), 1737 description=_( 1738 u"""Output point feature class to create. 1739 1740 If track ID or order by fields are specified, they will be added to 1741 this feature class. If a temporal unit is specified, a field called 1742 PointTime will be added to hold the points' dates and times. You may 1743 also specify additional fields of the lines to copy to this feature 1744 class (see Additional Options)."""), 1738 1745 direction = u'Output', 1739 1746 arcGISDisplayName=_(u'Output point feature class')) … … 1742 1749 typeMetadata=FloatTypeMetadata(mustBeGreaterThan=0.), 1743 1750 description=_( 1744 u"""Interval for generating points. You must also specify the interval1745 unit."""),1751 u"""Interval for generating points. This must be a number greater than 1752 zero. You must also specify the interval unit."""), 1746 1753 arcGISDisplayName=_(u'Interval')) 1747 1754 1748 1755 AddArgumentMetadata(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']), 1750 1757 description=_( 1751 1758 u"""Unit of the interval. The unit may be angular (i.e. decimal 1752 1759 degrees), linear (e.g. meters), or temporal (e.g. hours). 1753 1760 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 alongthe lines at the specified interval.1761 If an angular unit is used, the input lines must be in a geographic 1762 (unprojected) coordinate system. Points will be placed exactly along 1763 the lines at the specified interval. 1757 1764 1758 1765 If a linear unit is used, the input lines may be in a projected or … … 1783 1790 be placed more realistically if a projected coordinate system is used. 1784 1791 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 1792 If the start and end time fields can only represent dates with no time 1793 component (e.g. the lines are in a shapefile), then the time component 1794 of these fields is assumed to be 00:00:00. If a time component is 1795 stored in a separate field (e.g. text such as '12:34:56'), you should 1796 import the lines into a geodatabase, create a new field that will hold 1797 both date and time components (use the DATE data type), and use the 1790 1798 Calculate Field tool to populate the new field from both components. 1791 1799 … … 1856 1864 description=_( 1857 1865 u"""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 1866 ends of tracks or offset from the ends of them. 1867 1868 If disabled, the default, the first point generated on the track will 1869 be offset from the first vertex of the first line of the track by 1870 one-half of the point interval you specified. Successive points will 1871 be placed along the track at that interval until the remaining track 1872 is shorter than the interval. If the total length of the track is not 1873 evenly divisible by the interval, the distance between the last point 1874 and the ending vertex of the last line in the track will be less than 1875 one-half of the interval. This behavior can be overridden by enabling 1876 the Distribute Remaining Distance Among All Points option, in which 1877 case the remainder distance will be equally distributed between all 1878 points, making them all slightly closer together (but equally spaced), 1879 and the distance between the first vertex of the track and the first 1880 point equal to the distance between the last vertex and the last 1881 point. 1882 1883 If enabled, the first point on the track will be placed at the first 1884 vertex of the first line of the track. Successive points will be 1885 placed along the track at the point interval until the remaining track 1886 is shorter than the interval. Then the final point will be placed at 1887 the last vertex of the last line of the track. If the total length of 1888 the track is not evenly divisible by the interval, the distance 1889 between the next-to-last point and the last point (at the ending 1890 vertex of the track) will be less than the interval. This behavior can 1891 be overridden by enabling the Distribute Remaining Distance Among All 1883 1892 Points option, in which case the remainder distance will be equally 1884 1893 distributed between all points, making them all slightly closer 1885 1894 together (but equally spaced)."""), 1886 arcGISDisplayName=_(u'Place points at ends of track lines'),1895 arcGISDisplayName=_(u'Place points at ends of tracks'), 1887 1896 arcGISCategory=_(u'Additional options')) 1888 1897 … … 1890 1899 typeMetadata=BooleanTypeMetadata(), 1891 1900 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."""), 1901 u"""Determines how points are distributed on tracks that are not 1902 evenly divisible by the point interval. Please see the documentation 1903 for the Place Points At Ends Of Tracks parameter for more 1904 information."""), 1895 1905 arcGISDisplayName=_(u'Distribute remaining distance among all points'), 1896 1906 arcGISCategory=_(u'Additional options')) … … 1923 1933 typeMetadata=ListTypeMetadata(elementType=ArcGISFieldTypeMetadata(mustExist=True), minLength=1, canBeNone=True), 1924 1934 description=_( 1925 u"""Fields of the lines to copy to the points that appear along1926 them."""),1935 u"""Fields of the lines to copy to the points generated in the output 1936 feature class."""), 1927 1937 arcGISDisplayName=_(u'Line fields to copy to the points'), 1928 1938 arcGISCategory=_(u'Additional options'),
