repo_id stringlengths 21 96 | file_path stringlengths 31 155 | content stringlengths 1 92.9M | __index_level_0__ int64 0 0 |
|---|---|---|---|
rapidsai_public_repos/cuspatial/cpp/tests | rapidsai_public_repos/cuspatial/cpp/tests/distance/point_linestring_distance_test.cu | /*
* Copyright (c) 2022-2023, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <cuspatial_test/vector_equality.hpp>
#include <cuspatial/distance.cuh>
#include <cuspatial/error.hpp>
#include <cuspatial/geometry/vec_2d.hpp>
#include <cuspatial/iterator_factory.cuh>
#include <cuspatial/range/multilinestring_range.cuh>
#include <cuspatial/range/multipoint_range.cuh>
#include <rmm/device_vector.hpp>
#include <thrust/host_vector.h>
#include <thrust/iterator/constant_iterator.h>
#include <thrust/iterator/counting_iterator.h>
#include <type_traits>
namespace cuspatial {
namespace test {
template <typename T>
struct PairwisePointLinestringDistanceTest : public ::testing::Test {};
// float and double are logically the same but would require separate tests due to precision.
using TestTypes = ::testing::Types<float, double>;
TYPED_TEST_CASE(PairwisePointLinestringDistanceTest, TestTypes);
TYPED_TEST(PairwisePointLinestringDistanceTest, Empty)
{
using T = TypeParam;
using CartVec = std::vector<vec_2d<T>>;
std::vector<int> point_geometry_offsets{0};
CartVec points{};
std::vector<int> linestring_geometry_offsets{0};
std::vector<int> linestring_part_offsets{0};
CartVec linestring_points{};
rmm::device_vector<int> d_point_geometries(point_geometry_offsets);
rmm::device_vector<vec_2d<T>> d_points(points);
rmm::device_vector<int> d_linestring_geometries(linestring_geometry_offsets);
rmm::device_vector<int> d_linestring_parts(linestring_part_offsets);
rmm::device_vector<vec_2d<T>> d_linestring_points(linestring_points);
auto multipoints = make_multipoint_range(d_point_geometries, d_points);
auto multilinestrings =
make_multilinestring_range(d_linestring_geometries, d_linestring_parts, d_linestring_points);
rmm::device_vector<T> got{};
thrust::host_vector<T> expect{};
auto ret = pairwise_point_linestring_distance(multipoints, multilinestrings, got.begin());
CUSPATIAL_EXPECT_VECTORS_EQUIVALENT(expect, got);
EXPECT_EQ(ret, got.end());
}
TYPED_TEST(PairwisePointLinestringDistanceTest, OnePairFromVectorSingleComponent)
{
using T = TypeParam;
using CartVec = std::vector<vec_2d<T>>;
std::vector<int> point_geometry_offsets{0, 1};
CartVec points{{0, 0}};
std::vector<int> linestring_geometry_offsets{0, 1};
std::vector<int> linestring_part_offsets{0, 3};
CartVec linestring_points{{1, 1}, {2, 2}, {3, 3}};
thrust::host_vector<T> expect(std::vector<T>{std::sqrt(T{2.0})});
rmm::device_vector<int> d_point_geometries(point_geometry_offsets);
rmm::device_vector<vec_2d<T>> d_points(points);
rmm::device_vector<int> d_linestring_geometries(linestring_geometry_offsets);
rmm::device_vector<int> d_linestring_parts(linestring_part_offsets);
rmm::device_vector<vec_2d<T>> d_linestring_points(linestring_points);
auto multipoints = make_multipoint_range(
d_point_geometries.size() - 1, d_point_geometries.begin(), d_points.size(), d_points.begin());
auto multilinestrings = make_multilinestring_range(d_linestring_geometries.size() - 1,
d_linestring_geometries.begin(),
d_linestring_parts.size() - 1,
d_linestring_parts.begin(),
d_linestring_points.size(),
d_linestring_points.begin());
rmm::device_vector<T> got(points.size());
auto ret = pairwise_point_linestring_distance(multipoints, multilinestrings, got.begin());
CUSPATIAL_EXPECT_VECTORS_EQUIVALENT(expect, got);
EXPECT_EQ(ret, got.end());
}
TYPED_TEST(PairwisePointLinestringDistanceTest, OnePairFromCountingIteratorSingleComponent)
{
using T = TypeParam;
using CartVec = std::vector<vec_2d<T>>;
std::size_t constexpr num_pairs = 1;
CartVec points{{0, 0}};
std::vector<int> linestring_part_offsets{0, 2};
CartVec linestring_points{{1.0, 0.0}, {0.0, 1.0}};
thrust::host_vector<T> expect(std::vector<T>{std::sqrt(T{2.0}) / 2});
auto d_point_geometries = thrust::make_counting_iterator(0);
rmm::device_vector<vec_2d<T>> d_points(points);
auto d_linestring_geometries = thrust::make_counting_iterator(0);
rmm::device_vector<int> d_linestring_parts(linestring_part_offsets);
rmm::device_vector<vec_2d<T>> d_linestring_points(linestring_points);
auto multipoints =
make_multipoint_range(num_pairs, d_point_geometries, d_points.size(), d_points.begin());
auto multilinestrings = make_multilinestring_range(num_pairs,
d_linestring_geometries,
d_linestring_parts.size() - 1,
d_linestring_parts.begin(),
d_linestring_points.size(),
d_linestring_points.begin());
rmm::device_vector<T> got(num_pairs);
auto ret = pairwise_point_linestring_distance(multipoints, multilinestrings, got.begin());
CUSPATIAL_EXPECT_VECTORS_EQUIVALENT(expect, got);
EXPECT_EQ(ret, got.end());
}
TYPED_TEST(PairwisePointLinestringDistanceTest, TwoPairFromVectorSingleComponent)
{
using T = TypeParam;
using CartVec = std::vector<vec_2d<T>>;
std::vector<int> point_geometry_offsets{0, 1, 2};
CartVec points{{0, 0}, {0, 0}};
std::vector<int> linestring_geometry_offsets{0, 1, 2};
std::vector<int> linestring_part_offsets{0, 3, 6};
CartVec linestring_points{{1, 1}, {2, 2}, {3, 3}, {-1, -1}, {-2, -2}, {-3, -3}};
thrust::host_vector<T> expect(std::vector<T>{std::sqrt(T{2.0}), std::sqrt(T{2.0})});
rmm::device_vector<int> d_point_geometries(point_geometry_offsets);
rmm::device_vector<vec_2d<T>> d_points(points);
rmm::device_vector<int> d_linestring_geometries(linestring_geometry_offsets);
rmm::device_vector<int> d_linestring_parts(linestring_part_offsets);
rmm::device_vector<vec_2d<T>> d_linestring_points(linestring_points);
auto multipoints = make_multipoint_range(
d_point_geometries.size() - 1, d_point_geometries.begin(), d_points.size(), d_points.begin());
auto multilinestrings = make_multilinestring_range(d_linestring_geometries.size() - 1,
d_linestring_geometries.begin(),
d_linestring_parts.size() - 1,
d_linestring_parts.begin(),
d_linestring_points.size(),
d_linestring_points.begin());
rmm::device_vector<T> got(points.size());
auto ret = pairwise_point_linestring_distance(multipoints, multilinestrings, got.begin());
CUSPATIAL_EXPECT_VECTORS_EQUIVALENT(expect, got);
EXPECT_EQ(ret, got.end());
}
template <typename T>
struct times_three_functor {
T __device__ operator()(T i) { return i * 3; }
};
TYPED_TEST(PairwisePointLinestringDistanceTest, ManyPairsFromIteratorsSingleComponent)
{
using T = TypeParam;
auto const num_pairs = 100;
auto const num_linestring_points = num_pairs * 3;
auto linestring_points_x = thrust::make_counting_iterator(T{0.0});
auto linestring_points_y = thrust::make_constant_iterator(T{1.0});
auto linestring_points = make_vec_2d_iterator(linestring_points_x, linestring_points_y);
auto offsets =
cuspatial::detail::make_counting_transform_iterator(0, times_three_functor<int32_t>{});
auto linestring_geometries = thrust::make_counting_iterator(0);
auto points_x =
cuspatial::detail::make_counting_transform_iterator(T{0.0}, times_three_functor<T>{});
auto points_y = thrust::make_constant_iterator(T{0.0});
auto points = make_vec_2d_iterator(points_x, points_y);
auto point_geometries = thrust::make_counting_iterator(0);
auto multipoints = make_multipoint_range(num_pairs, point_geometries, num_pairs, points);
auto multilinestrings = make_multilinestring_range(
num_pairs, linestring_geometries, num_pairs, offsets, num_linestring_points, linestring_points);
std::vector<T> expect(num_pairs, T{1.0});
rmm::device_vector<T> got(num_pairs);
auto ret = pairwise_point_linestring_distance(multipoints, multilinestrings, got.begin());
CUSPATIAL_EXPECT_VECTORS_EQUIVALENT(expect, got);
EXPECT_EQ(ret, got.end());
}
TYPED_TEST(PairwisePointLinestringDistanceTest, OnePartFiftyPairsCompareWithShapely)
{
using T = TypeParam;
using CartVec = std::vector<vec_2d<T>>;
// All point coordinates are confined in [-1e9, 0] interval
auto d_points_x = rmm::device_vector<T>(std::vector<T>{
-561549155.2815765, -539635297.7968571, -749785291.9823582, -505256232.2383667,
-946988876.2831948, -662300741.9693683, -603237481.1662251, -125581339.4351779,
-517833167.6852695, -957160196.2622645, -491585807.73353755, -345450303.82460994,
-487395641.79169536, -735699507.1257033, -948019350.519085, -421003493.70237565,
-614443644.8464075, -91784671.00703202, -358379636.97942185, -716600896.394933,
-344246357.45209974, -954628165.511387, -585389868.7519523, -942712185.6486846,
-918383957.1706945, -894335076.9398956, -199429182.6890826, -308066036.9332076,
-68539892.81333561, -47428714.27856632, -860697716.8271636, -649546547.8989385,
-861397168.6094841, -254088440.42574397, -922519680.0380477, -971662526.6980333,
-549662841.5967332, -315022158.10620314, -621043135.2056639, -752210211.5984685,
-795704940.2086449, -346633871.30775416, -256629810.47606537, -816036577.7906327,
-352357002.88786775, -369130482.495009, -261037800.80460483, -996942546.6529481,
-916557372.6650971, -470793334.3911819});
auto d_points_y = rmm::device_vector<T>(std::vector<T>{
-739351480.2301654, -20887279.805103853, -777641495.0417496, -125601344.62234807,
-920272855.235259, -979386805.0183806, -532400563.0878669, -890451846.152133,
-189264617.43542865, -716724991.9062672, -112862367.28799225, -437346182.85413873,
-10050108.356858267, -756947856.81533, -201662709.30643314, -170076205.5474354,
-347998961.0882306, -747977546.543758, -450349384.1171753, -596418684.4693943,
-890311812.3973312, -181592857.0650911, -102687386.99020985, -228778684.4019939,
-347707985.5682359, -146089663.45215645, -576531773.4037402, -44916711.39299691,
-663829461.7550983, -862331153.6802458, -205683639.49777836, -706774022.2667997,
-805347167.0543085, -94244793.56957604, -888483038.4109963, -22626853.80827789,
-987307795.9680042, -907735202.344958, -75385732.90465944, -580412876.6046127,
-237450679.54106826, -181080163.82408464, -431973802.7579398, -818515080.5689257,
-815538168.7101089, -805543247.7590245, -213668210.4341381, -734828450.688499,
-718181825.0574478, -646533731.4391378});
// All point coordinates are confined in [0, 1e9] interval
auto d_linestring_points_x = rmm::device_vector<T>(
std::vector<T>{409740620.3189557, 136924984.5824146, 380403413.55319613, 870222466.1573819,
635018282.0970114, 525659618.01626, 571907477.7659363, 275007048.105586,
830765437.1530899, 659134318.1404505, 800981068.470331, 680105033.0209961,
409178513.8582775, 615319073.4289713, 328002044.8817617, 96745319.26689473,
246669282.40088674, 653482696.9295893, 189692008.0585241, 221621266.0554327,
511285142.46078247, 746304565.6457752, 151485481.01357278, 429159960.53841984,
938717939.99254, 57965845.38754873, 108834370.85326725, 594750407.8840696,
434994108.54894835, 56391721.360846415, 645661801.503712, 504821682.21993315,
209292586.5335849, 991198852.3629916, 938279813.1757035, 157868646.28264025,
192523013.1309204, 976120611.6006007, 143168293.4606015, 60348568.63084976,
181462906.4053826, 509151158.3184885, 279075603.0482738, 353938665.3946575,
683153524.9396951, 952756047.2879049, 677047896.6536566, 232576679.48775858,
925263588.8144358, 900946919.20675, 393430839.26884806, 177532669.9589867,
139099616.62440377, 753673190.3084364, 536599057.9678925, 217279045.11663502,
97054374.5361881, 534574220.50445724, 386604340.3392309, 879773316.2370002,
848032517.1589513, 638089254.7692642, 411005671.4264876, 108179694.60664795,
532956641.9580039, 821611105.193786, 776236296.6507373, 232549086.2229122,
142101776.38994443, 451643918.847285, 350002116.262242, 229208547.96908158,
646267608.4942452, 789155145.5078769, 883865809.2755675, 226221484.01556912,
793587065.0798844, 54967582.37802618, 187138679.50805324, 775590407.9474832,
135989009.40060416, 780614917.2842969, 454631779.6033516, 936928711.1147215,
583296498.5783049, 41124718.30773839, 2612098.6261324864, 533287411.5273525,
599126810.7859919, 385408444.91818047, 650852421.3350519, 918333432.9809265,
41455862.876842834, 893536323.9715917, 930233356.6986674, 82076970.25425225,
921394413.2421083, 531871141.19711286, 812913039.2377981, 61778947.21104521,
150507958.42193225, 894230228.012308, 699267079.8411367, 378043880.1254338,
566516979.8955611, 439431893.5233404, 828847798.6196955, 664400011.6943698,
875783995.1035005, 852148423.9637662, 147581346.26651093, 162904664.51064795,
620158731.8762205, 578412532.4345315, 613931731.6926718, 397905750.1289512,
674105283.0624243, 691243372.6658074, 370822640.1277301, 909036.3036469707,
949239285.9062591, 963122476.4149648, 421535309.9500861, 711629736.7364626,
199261861.3102121, 874851707.9150648, 749167264.8429024, 456000942.25790817,
675640479.8157237, 965917249.7607529, 26628655.839953054, 764316890.7849469,
902779618.5114611, 451457408.4987492, 790995118.6806517, 973566429.7698244,
290217518.080605, 3804982.336973961, 15589726.230492985, 192295745.74101478,
553017580.5420407, 69666843.10205656, 401190849.0547859, 235092974.15243518,
196141450.5531844, 161761722.11740464, 728059691.1791501, 784625776.5375279,
333201303.33409643, 240273600.7783876});
auto d_linestring_points_y = rmm::device_vector<T>(
std::vector<T>{427088748.262282, 15846326.456916582, 263715067.57081458, 744521879.19594,
572770812.5565724, 691186865.4068167, 336337240.689984, 787686206.7076751,
147487131.60595277, 84428241.31664456, 506921603.98541343, 193217645.2628232,
718535416.0410438, 90325588.48195876, 234506697.7554477, 850832804.3524027,
503598932.3183143, 962972968.0657562, 113138659.1840286, 336655731.1768273,
671618509.8323002, 858648173.8207241, 507617389.6212197, 515313326.084698,
491995133.5594163, 490624417.4986565, 620579501.7069384, 465909962.54382086,
312139650.71542287, 732445999.3335835, 999079375.4649274, 634807865.7394242,
212942895.61936525, 105492654.61970109, 686161246.238137, 839961597.175528,
824799270.3078759, 394023691.49011356, 894475911.9159102, 22452373.71468395,
883781875.3838649, 183451947.0224278, 940364735.2695354, 564815551.2642368,
203299616.9138765, 590083349.1478146, 500123660.0675716, 261576815.05937818,
419357654.0144578, 789278512.782339, 984928672.3111312, 206622832.8934326,
422073349.62365746, 426511779.26089364, 929811834.6504029, 694638504.9669654,
598958469.9031045, 637417308.2679808, 769572394.6288227, 879155002.1181698,
588687325.6835386, 757505254.7010162, 669195230.5654877, 452009740.5227253,
637837010.3060563, 668640848.2901171, 744941096.5359102, 425691025.0965489,
500664385.30749345, 675284105.7840127, 940718458.5428201, 396721894.66349375,
319201869.6257737, 617319544.2840747, 979660334.0198653, 554680943.7365212,
116769752.13308178, 278644063.3398319, 414669044.9874066, 759139950.8286334,
222638345.06086627, 911569572.8776335, 3739644.187957747, 455188819.3986085,
426177019.23666626, 677555098.262449, 462423923.1447131, 436326652.64049494,
119091589.96316288, 205891298.3275461, 177200062.0255138, 168525449.77325585,
984524410.4859962, 285100127.40400785, 340670092.2047182, 18182814.87563117,
78958640.30545191, 633971422.6006465, 814560194.5223289, 63861631.53716002,
556467184.4507445, 172789265.41557, 928439950.9482422, 809733911.8071963,
917311909.3598588, 606668843.36556, 809359300.8301904, 321459748.2580165,
842158368.8928964, 407998743.0353185, 626388442.3813977, 125264282.61080475,
511955140.65405303, 109662861.1176253, 865816459.5888377, 472872432.24885875,
414422826.37450093, 392141641.5915819, 804799056.8789232, 63461043.991374254,
730373213.8349088, 366324066.52896893, 886705692.0330912, 445545117.1188059,
462584973.93963146, 379183376.5660725, 830193863.8858793, 732573393.1503409,
932616236.1341246, 619437904.6852235, 663523018.0059164, 736936521.9745129,
296362801.44101405, 983012880.341103, 34357531.17606649, 148685139.51044032,
972635905.237423, 841390202.4023547, 128629767.16073488, 394167494.25139624,
325307611.81316274, 832766758.5649326, 57757175.60589072, 382309069.6748021,
354860973.2555975, 353267590.8484059, 871415919.5619106, 308110516.7161067,
781431191.6862057, 94534109.24270672});
auto expect =
std::vector<T>{1028683552.5484606, 1281367568.6299243, 1728531284.434097, 1183181212.148498,
1720208610.9127815, 1739388743.8832421, 1022476436.0970014, 1425259138.1953902,
890950954.4746181, 1722982654.7872393, 772903352.8770543, 1372896620.4566827,
1076690699.4901886, 1114072375.6856866, 1510822159.994183, 783256901.0141131,
1671079606.6047292, 991863758.0669209, 1143882472.7015646, 1753683481.815972,
1732763066.3699694, 1237341019.767269, 945133564.5748928, 1328400986.2592182,
1700853690.6191084, 1039987633.4181526, 866705395.0630785, 764248258.2826442,
1128498689.8016698, 1152582463.5701518, 1485887458.976279, 1029968634.4905895,
1967269282.7638612, 353227756.882895, 2139019958.7739916, 1545056807.1308582,
1757886517.1483865, 1138201205.2776566, 1157084200.2992508, 990839153.0335766,
1656925277.2401264, 843982796.3074187, 1365288526.7371252, 1704852375.309083,
1424632154.129706, 1642663437.0646927, 440103049.49988014, 1607161773.8117433,
1520123653.1998143, 1027033461.3751863};
auto num_pairs = d_points_x.size();
auto num_linestring_points = d_linestring_points_x.size();
auto point_geometries = thrust::make_counting_iterator(0);
auto points = make_vec_2d_iterator(d_points_x.begin(), d_points_y.begin());
auto linestring_geometries = thrust::make_counting_iterator(0);
auto linestring_parts =
cuspatial::detail::make_counting_transform_iterator(0, times_three_functor<int32_t>{});
auto linestring_points =
make_vec_2d_iterator(d_linestring_points_x.begin(), d_linestring_points_y.begin());
auto multipoints = make_multipoint_range(num_pairs, point_geometries, num_pairs, points);
auto multilinestrings = make_multilinestring_range(num_pairs,
linestring_geometries,
num_pairs,
linestring_parts,
num_linestring_points,
linestring_points);
rmm::device_vector<T> got(d_points_x.size());
auto ret = pairwise_point_linestring_distance(multipoints, multilinestrings, got.begin());
CUSPATIAL_EXPECT_VECTORS_EQUIVALENT(expect, got);
EXPECT_EQ(ret, got.end());
}
TYPED_TEST(PairwisePointLinestringDistanceTest, OnePairMultiPointMultiLinestring)
{
using T = TypeParam;
using CartVec = std::vector<vec_2d<T>>;
std::vector<int> point_geometry_offsets{0, 3};
CartVec points{{0, 1}, {2, 3}, {4, 5}};
std::vector<int> linestring_geometry_offsets{0, 3};
std::vector<int> linestring_part_offsets{0, 3, 6, 8};
CartVec linestring_points{
{0, -1}, {-2, -3}, {-4, -5}, {-5, -6}, {7, 8}, {8, 9}, {9, 10}, {10, 11}};
thrust::host_vector<T> expect(std::vector<T>{0.32539568672798425});
rmm::device_vector<int> d_point_geometries(point_geometry_offsets);
rmm::device_vector<vec_2d<T>> d_points(points);
rmm::device_vector<int> d_linestring_geometries(linestring_geometry_offsets);
rmm::device_vector<int> d_linestring_parts(linestring_part_offsets);
rmm::device_vector<vec_2d<T>> d_linestring_points(linestring_points);
auto multipoints = make_multipoint_range(
d_point_geometries.size() - 1, d_point_geometries.begin(), d_points.size(), d_points.begin());
auto multilinestrings = make_multilinestring_range(d_linestring_geometries.size() - 1,
d_linestring_geometries.begin(),
d_linestring_parts.size() - 1,
d_linestring_parts.begin(),
d_linestring_points.size(),
d_linestring_points.begin());
rmm::device_vector<T> got(point_geometry_offsets.size() - 1);
auto ret = pairwise_point_linestring_distance(multipoints, multilinestrings, got.begin());
CUSPATIAL_EXPECT_VECTORS_EQUIVALENT(expect, got);
EXPECT_EQ(ret, got.end());
}
TYPED_TEST(PairwisePointLinestringDistanceTest, ThreePairMultiPointMultiLinestring)
{
using T = TypeParam;
using CartVec = std::vector<vec_2d<T>>;
std::vector<int> point_geometry_offsets{0, 1, 3, 5};
CartVec points{{0, 1}, {2, 3}, {4, 5}, {6, 7}, {8, 9}};
std::vector<int> linestring_geometry_offsets{0, 2, 3, 5};
std::vector<int> linestring_part_offsets{0, 2, 4, 6, 8};
CartVec linestring_points{
{0, -1}, {-2, -3}, {-4, -5}, {-5, -6}, {7, 8}, {8, 9}, {9, 10}, {10, 11}};
thrust::host_vector<T> expect(std::vector<T>{2.0, 4.242640687119285, 1.4142135623730951});
rmm::device_vector<int> d_point_geometries(point_geometry_offsets);
rmm::device_vector<vec_2d<T>> d_points(points);
rmm::device_vector<int> d_linestring_geometries(linestring_geometry_offsets);
rmm::device_vector<int> d_linestring_parts(linestring_part_offsets);
rmm::device_vector<vec_2d<T>> d_linestring_points(linestring_points);
auto multipoints = make_multipoint_range(
d_point_geometries.size() - 1, d_point_geometries.begin(), d_points.size(), d_points.begin());
auto multilinestrings = make_multilinestring_range(d_linestring_geometries.size() - 1,
d_linestring_geometries.begin(),
d_linestring_parts.size() - 1,
d_linestring_parts.begin(),
d_linestring_points.size(),
d_linestring_points.begin());
rmm::device_vector<T> got(point_geometry_offsets.size() - 1);
auto ret = pairwise_point_linestring_distance(multipoints, multilinestrings, got.begin());
CUSPATIAL_EXPECT_VECTORS_EQUIVALENT(expect, got);
EXPECT_EQ(ret, got.end());
}
} // namespace test
} // namespace cuspatial
| 0 |
rapidsai_public_repos/cuspatial/cpp/tests | rapidsai_public_repos/cuspatial/cpp/tests/distance/haversine_test.cpp | /*
* Copyright (c) 2020-2023, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <cuspatial/distance.hpp>
#include <cuspatial/error.hpp>
#include <cudf_test/base_fixture.hpp>
#include <cudf_test/column_utilities.hpp>
#include <cudf_test/column_wrapper.hpp>
#include <cudf_test/type_lists.hpp>
#include <thrust/iterator/constant_iterator.h>
#include <thrust/iterator/counting_iterator.h>
#include <type_traits>
using namespace cudf::test;
constexpr cudf::test::debug_output_level verbosity{cudf::test::debug_output_level::ALL_ERRORS};
template <typename T>
struct HaversineTest : public BaseFixture {};
// float and double are logically the same but would require separate tests due to precision.
using TestTypes = Types<double>;
TYPED_TEST_CASE(HaversineTest, TestTypes);
TYPED_TEST(HaversineTest, Empty)
{
using T = TypeParam;
auto a_lon = fixed_width_column_wrapper<T>({});
auto a_lat = fixed_width_column_wrapper<T>({});
auto b_lon = fixed_width_column_wrapper<T>({});
auto b_lat = fixed_width_column_wrapper<T>({});
auto expected = fixed_width_column_wrapper<T>({});
auto actual = cuspatial::haversine_distance(a_lon, a_lat, b_lon, b_lat);
CUDF_TEST_EXPECT_COLUMNS_EQUAL(expected, actual->view(), verbosity);
}
TYPED_TEST(HaversineTest, Zero)
{
using T = TypeParam;
auto a_lon = fixed_width_column_wrapper<T>({0});
auto a_lat = fixed_width_column_wrapper<T>({0});
auto b_lon = fixed_width_column_wrapper<T>({0});
auto b_lat = fixed_width_column_wrapper<T>({0});
auto expected = fixed_width_column_wrapper<T>({0});
auto actual = cuspatial::haversine_distance(a_lon, a_lat, b_lon, b_lat);
CUDF_TEST_EXPECT_COLUMNS_EQUAL(expected, actual->view(), verbosity);
}
TYPED_TEST(HaversineTest, EquivalentPoints)
{
using T = TypeParam;
auto a_lon = fixed_width_column_wrapper<T>({-180, 180});
auto a_lat = fixed_width_column_wrapper<T>({0, 30});
auto b_lon = fixed_width_column_wrapper<T>({180, -180});
auto b_lat = fixed_width_column_wrapper<T>({0, 30});
auto expected = fixed_width_column_wrapper<T>({1.5604449514735574e-12, 1.3513849691832763e-12});
auto actual = cuspatial::haversine_distance(a_lon, a_lat, b_lon, b_lat);
CUDF_TEST_EXPECT_COLUMNS_EQUAL(expected, actual->view(), verbosity);
}
TYPED_TEST(HaversineTest, MismatchSize)
{
using T = TypeParam;
auto a_lon = fixed_width_column_wrapper<T>({0});
auto a_lat = fixed_width_column_wrapper<T>({0, 1});
auto b_lon = fixed_width_column_wrapper<T>({0});
auto b_lat = fixed_width_column_wrapper<T>({0});
EXPECT_THROW(cuspatial::haversine_distance(a_lon, a_lat, b_lon, b_lat), cuspatial::logic_error);
}
template <typename T>
struct HaversineUnsupportedTypesTest : public BaseFixture {};
using UnsupportedTypes = RemoveIf<ContainedIn<Types<float, double>>, NumericTypes>;
TYPED_TEST_CASE(HaversineUnsupportedTypesTest, UnsupportedTypes);
TYPED_TEST(HaversineUnsupportedTypesTest, MismatchSize)
{
using T = TypeParam;
auto a_lon = fixed_width_column_wrapper<T>({0});
auto a_lat = fixed_width_column_wrapper<T>({0});
auto b_lon = fixed_width_column_wrapper<T>({0});
auto b_lat = fixed_width_column_wrapper<T>({0});
EXPECT_THROW(cuspatial::haversine_distance(a_lon, a_lat, b_lon, b_lat), cuspatial::logic_error);
}
template <typename T>
struct HaversineUnsupportedChronoTypesTest : public BaseFixture {};
TYPED_TEST_CASE(HaversineUnsupportedChronoTypesTest, ChronoTypes);
TYPED_TEST(HaversineUnsupportedChronoTypesTest, MismatchSize)
{
using T = TypeParam;
using R = typename T::rep;
auto a_lon = fixed_width_column_wrapper<T, R>({R{0}});
auto a_lat = fixed_width_column_wrapper<T, R>({R{0}});
auto b_lon = fixed_width_column_wrapper<T, R>({R{0}});
auto b_lat = fixed_width_column_wrapper<T, R>({R{0}});
EXPECT_THROW(cuspatial::haversine_distance(a_lon, a_lat, b_lon, b_lat), cuspatial::logic_error);
}
| 0 |
rapidsai_public_repos/cuspatial/cpp/tests | rapidsai_public_repos/cuspatial/cpp/tests/distance/point_distance_test.cu | /*
* Copyright (c) 2022-2023, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <cuspatial_test/random.cuh>
#include <cuspatial_test/vector_equality.hpp>
#include <cuspatial/distance.cuh>
#include <cuspatial/error.hpp>
#include <cuspatial/geometry/vec_2d.hpp>
#include <cuspatial/iterator_factory.cuh>
#include <cuspatial/range/multipoint_range.cuh>
#include <rmm/cuda_stream_view.hpp>
#include <rmm/device_uvector.hpp>
#include <rmm/device_vector.hpp>
#include <rmm/exec_policy.hpp>
#include <thrust/generate.h>
#include <thrust/host_vector.h>
#include <thrust/iterator/counting_iterator.h>
#include <thrust/iterator/transform_iterator.h>
#include <thrust/iterator/zip_iterator.h>
#include <thrust/random/linear_congruential_engine.h>
#include <thrust/random/normal_distribution.h>
#include <thrust/transform.h>
#include <thrust/tuple.h>
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <numeric>
using cuspatial::multipoint_range;
using cuspatial::vec_2d;
/**
* @brief Generate `num_points` points on device
*/
template <typename T>
struct PairwisePointDistanceTest : public ::testing::Test {
rmm::device_vector<vec_2d<T>> generate_random_points(
std::size_t num_points,
std::size_t seed,
rmm::cuda_stream_view stream = rmm::cuda_stream_default)
{
auto engine = cuspatial::test::deterministic_engine(0);
auto uniform = cuspatial::test::make_normal_dist<T>(0.0, 1.0);
auto pgen = cuspatial::test::point_generator(
vec_2d<T>{0.0, 0.0}, vec_2d<T>{1.0, 1.0}, engine, engine, uniform, uniform);
rmm::device_vector<vec_2d<T>> points(num_points);
auto counting_iter = thrust::make_counting_iterator(seed);
thrust::transform(
rmm::exec_policy(stream), counting_iter, counting_iter + num_points, points.begin(), pgen);
return points;
}
/**
* @brief Generate `num_multipoints` multipoint, returns offset and point vectors on device
*/
std::pair<rmm::device_vector<std::size_t>, rmm::device_vector<vec_2d<T>>>
generate_random_multipoints(std::size_t num_multipoints,
std::size_t max_points_per_multipoint,
std::size_t seed,
rmm::cuda_stream_view stream = rmm::cuda_stream_default)
{
std::vector<std::size_t> offset(num_multipoints + 1, 0);
std::generate_n(offset.begin() + 1, num_multipoints, [max_points_per_multipoint]() {
return std::rand() % max_points_per_multipoint;
});
std::inclusive_scan(offset.begin(), offset.end(), offset.begin());
std::size_t num_points = offset.back();
auto points = generate_random_points(num_points, seed, stream);
return {offset, points};
}
};
/**
* @brief Computes point distances on host
*
* @note Implicitly copies input vectors to host
*/
template <typename Cart2DVec>
auto compute_point_distance_host(Cart2DVec const& point1, Cart2DVec const& point2)
{
using Cart2D = typename Cart2DVec::value_type;
using T = typename Cart2D::value_type;
thrust::host_vector<Cart2D> h_point1(point1);
thrust::host_vector<Cart2D> h_point2(point2);
auto pair_iter =
thrust::make_zip_iterator(thrust::make_tuple(h_point1.begin(), h_point2.begin()));
auto result_iter = thrust::make_transform_iterator(pair_iter, [](auto p) {
auto p0 = thrust::get<0>(p);
auto p1 = thrust::get<1>(p);
return std::sqrt(dot(p0 - p1, p0 - p1));
});
return thrust::host_vector<T>(result_iter, result_iter + point1.size());
}
/**
* @brief Computes multipoint distances on host.
*
* @note Implicitly copies input vectors to host.
* @note This function also tests the compatibility of `multipoint_range` on host.
*/
template <typename OffsetVec, typename Cart2DVec>
auto compute_multipoint_distance_host(OffsetVec const& lhs_offset,
Cart2DVec const& lhs_points,
OffsetVec const& rhs_offset,
Cart2DVec const& rhs_points)
{
using Cart2D = typename Cart2DVec::value_type;
using IndexType = typename OffsetVec::value_type;
using T = typename Cart2D::value_type;
auto num_results = lhs_offset.size() - 1;
thrust::host_vector<IndexType> h_offset1(lhs_offset);
thrust::host_vector<Cart2D> h_point1(lhs_points);
thrust::host_vector<IndexType> h_offset2(rhs_offset);
thrust::host_vector<Cart2D> h_point2(rhs_points);
auto h_multipoint_array1 =
multipoint_range{h_offset1.begin(), h_offset1.end(), h_point1.begin(), h_point1.end()};
auto h_multipoint_array2 =
multipoint_range{h_offset2.begin(), h_offset2.end(), h_point2.begin(), h_point2.end()};
std::vector<T> result(num_results, 0);
std::transform(h_multipoint_array1.multipoint_begin(),
h_multipoint_array1.multipoint_end(),
h_multipoint_array2.multipoint_begin(),
result.begin(),
[](auto const& mp1, auto const& mp2) {
T min_distance_squared = std::numeric_limits<T>::max();
for (vec_2d<T> const& p1 : mp1)
for (vec_2d<T> const& p2 : mp2) {
T distance_squared = dot((p1 - p2), (p1 - p2));
min_distance_squared = min(min_distance_squared, distance_squared);
}
return std::sqrt(min_distance_squared);
});
return result;
}
using TestTypes = ::testing::Types<float, double>;
TYPED_TEST_CASE(PairwisePointDistanceTest, TestTypes);
TYPED_TEST(PairwisePointDistanceTest, Empty)
{
using T = TypeParam;
using Cart2D = vec_2d<T>;
using Cart2DVec = std::vector<Cart2D>;
rmm::device_vector<int32_t> multipoint_geom1(std::vector<int32_t>{0});
rmm::device_vector<Cart2D> points1{};
rmm::device_vector<int32_t> multipoint_geom2(std::vector<int32_t>{0});
rmm::device_vector<Cart2D> points2{};
rmm::device_vector<T> expected{};
rmm::device_vector<T> got(points1.size());
auto multipoint_1 =
multipoint_range<decltype(multipoint_geom1.begin()), decltype(points1.begin())>{
multipoint_geom1.begin(), multipoint_geom1.end(), points1.begin(), points1.end()};
auto multipoint_2 = multipoint_range{
multipoint_geom2.begin(), multipoint_geom2.end(), points2.begin(), points2.end()};
auto ret_it = pairwise_point_distance(multipoint_1, multipoint_2, got.begin());
CUSPATIAL_EXPECT_VECTORS_EQUIVALENT(expected, got);
EXPECT_EQ(expected.size(), std::distance(got.begin(), ret_it));
}
TYPED_TEST(PairwisePointDistanceTest, OnePairSingleComponent)
{
using T = TypeParam;
using Cart2D = vec_2d<T>;
using Cart2DVec = std::vector<Cart2D>;
std::size_t constexpr num_pairs = 1;
auto multipoint_geom1 = thrust::make_counting_iterator(0);
rmm::device_vector<Cart2D> points1{Cart2DVec{{1.0, 1.0}}};
auto multipoint_geom2 = thrust::make_counting_iterator(0);
rmm::device_vector<Cart2D> points2{Cart2DVec{{0.0, 0.0}}};
rmm::device_vector<T> expected{std::vector<T>{std::sqrt(T{2.0})}};
rmm::device_vector<T> got(points1.size());
auto multipoint_1 = multipoint_range<thrust::counting_iterator<int>, decltype(points1.begin())>{
multipoint_geom1, multipoint_geom1 + num_pairs + 1, points1.begin(), points1.end()};
auto multipoint_2 = multipoint_range{
multipoint_geom2, multipoint_geom2 + num_pairs + 1, points2.begin(), points2.end()};
auto ret_it = pairwise_point_distance(multipoint_1, multipoint_2, got.begin());
CUSPATIAL_EXPECT_VECTORS_EQUIVALENT(expected, got);
EXPECT_EQ(expected.size(), std::distance(got.begin(), ret_it));
}
TYPED_TEST(PairwisePointDistanceTest, SingleComponentManyRandom)
{
using T = TypeParam;
using Cart2D = vec_2d<T>;
using Cart2DVec = std::vector<Cart2D>;
std::size_t constexpr num_pairs = 1000;
auto multipoint_geom1 = thrust::make_counting_iterator(0);
auto points1 = this->generate_random_points(num_pairs, 0);
auto multipoint_geom2 = thrust::make_counting_iterator(0);
auto points2 = this->generate_random_points(num_pairs, num_pairs);
auto expected = compute_point_distance_host(points1, points2);
rmm::device_vector<T> got(points1.size());
auto multipoint_1 =
make_multipoint_range(num_pairs, multipoint_geom1, points1.size(), points1.begin());
auto multipoint_2 =
make_multipoint_range(num_pairs, multipoint_geom2, points2.size(), points2.begin());
auto ret_it = pairwise_point_distance(multipoint_1, multipoint_2, got.begin());
thrust::host_vector<T> hgot(got);
CUSPATIAL_EXPECT_VECTORS_EQUIVALENT(hgot, expected);
EXPECT_EQ(expected.size(), std::distance(got.begin(), ret_it));
}
TYPED_TEST(PairwisePointDistanceTest, SingleComponentCompareWithShapely)
{
using T = TypeParam;
using Cart2D = vec_2d<T>;
using Cart2DVec = std::vector<Cart2D>;
std::vector<T> x1{
-12.309831056315302, -7.927059559371418, -49.95705839647165, -1.0512464476733485,
-89.39777525663895, -32.460148393873666, -20.64749623324501, 74.88373211296442,
-3.566633537053898, -91.4320392524529, 1.68283845329249, 30.90993923507801,
2.5208716416609267, -47.13990142514067, -89.60387010381702, 15.799301259524867,
-22.8887289692815, 81.6430657985936, 28.324072604115624, -43.3201792789866,
31.15072850958005, -90.9256331022774, -17.077973750390452, -88.54243712973691,
-83.67679143413889, -78.86701538797912, 60.11416346218348, 38.38679261335849,
86.29202143733288, 90.51425714428673, -72.13954336543273, -29.909309579787713,
-72.27943372189681, 49.182311914851205, -84.50393600760954, -94.33250533960667,
-9.932568319346647, 36.99556837875937, -24.20862704113279, -50.442042319693705,
-59.14098804172897, 30.673225738449172, 48.67403790478693, -63.207315558126545,
29.52859942242645, 26.173903500998197, 47.79243983907904, -99.38850933058964,
-83.31147453301942, 5.8413331217636255, -47.87029604603307, 95.82254403897923,
-55.52829900834991, 74.87973107553039, -84.05457104705182, -95.87736100367613,
-6.480112617573386, -78.09036923042659, 62.14707651291427, -43.34499838125344,
77.42752654240155, 12.530763429172254, 97.98997832862835, -51.389571363066,
59.66745813871337, 65.98475889051292, 30.40020778235388, -49.595509308751595,
9.930123176564942, -19.283736893878867, -78.06236247946624, 63.68142858698178,
79.46252260195803, 54.24426311960122, 30.458402886352822, 70.7820673095687,
-15.306354680748024, 91.01665772140062, -32.765892351019666, -72.46623073604916,
58.863272100444334, -41.35480445335994, -61.06943341086172, 81.15104128608479,
-77.69660768219927, 95.47462923834442, -97.46155919360085, -81.54704046899158,
84.9228534190681, -16.082575320922533, 52.509864091786355, 63.78396723518307,
13.605239448412032, -63.70301611378514, -63.10763374202178, -61.108649551804895,
57.266357913172385, -46.96569013769979, -43.636365011489566, -29.306746287827558};
std::vector<T> y1{
-18.051875936208862, -72.61500308351708, -23.919317289360777, 74.04449323147637,
27.003656419402276, 5.131923603252009, 14.381495553187262, -44.998590378882795,
66.15308743061799, 31.82686362809011, 60.19621369406618, 36.02100660419922,
-18.164297228344505, 23.06381468579426, -34.39959102364766, -80.65093614662105,
-50.66614351982265, 30.696539385917852, -62.06159838829518, -55.67574678891346,
2.2570284921564987, 49.260913129155036, -69.70290379728544, -14.168007892316037,
87.743587998508, -88.40683092249026, -78.23312582934655, 18.950081576813904,
-13.001178290210335, -88.72165572783072, 29.13236030074242, 0.9643364439866353,
-58.14148269328302, 98.23977047259831, 87.65596263514071, -68.42627074347195,
-61.49539737381592, 95.22412232012014, -71.3663413078797, -87.93028627383005,
-63.70741871892348, 1.83023166369769, -44.184879390345245, -29.212266921068498,
36.63070498793903, 90.55120945758097, 35.40957933073132, -53.484664102448285,
85.05271776288717, 80.18938384135001, -21.313832146230382, -64.49346600820266,
-72.18007667511924, 50.73463806168728, 7.319811593578507, -56.54419097667299,
-80.58912509276239, 6.9148441008914485, -22.67913193215382, 75.95466324740005,
69.60650343179027, 27.61785095385285, -17.798865714702472, -78.36406107867042,
6.59132839160077, 64.32222103875719, 55.24725933014744, -53.49018275541756,
-71.57964472201111, -9.671216230543001, -29.999576747551593, -54.15829040618368,
29.253521698849028, 57.83102910157538, 76.77316185511351, -54.755703196886174,
58.71741301597688, -89.00648352439477, -62.572264098389354, 55.118081589496626,
-72.80219811987917, 56.12298345685937, -9.073644079329679, 87.3857422229443,
16.65929971566098, -91.77505633845232, -99.4775802747735, 6.657482305470497,
19.82536215719839, -22.918311016363912, 30.170484267010387, 83.6666865961853,
-91.70882742463144, 78.70726479431833, 86.04667133973348, -83.58460594914955,
84.27888264842167, 6.374228239422575, 62.58260784755962, -87.64421055779096};
std::vector<T> x2{
-69.89840831561355, 78.8460456024616, 39.85341596822734, -24.391223974913235,
13.303395979112231, -12.113621295331923, 65.76955972393912, 32.88000233887396,
75.15679902070009, 70.42968479275325, -70.48373074669782, -67.41906709787041,
24.0317463752441, 15.6825064869063, 22.786346338534358, -20.418849974209763,
34.82105661248487, 38.24867453316148, -25.835471974453984, -99.8181927392706,
89.84785718125181, 92.62449528299297, -15.692938009982782, 42.32594734729251,
-60.14762773795758, 74.97034158301297, 49.83345296858048, -8.799811548418369,
35.12809596314472, 93.18344995215058, -94.67426883200939, 52.863378156989384,
80.55592370229223, -9.708518300250157, 58.19902373613033, 94.71328595396487,
-41.956496383879006, -99.23900353260521, -96.8820547539014, -61.540850851797046,
10.60351610840815, -86.06663137958869, -19.76183018904282, -52.98140516951296,
-60.77170988936312, -67.64765557651907, 45.61193823583003, 56.92515530750559,
-33.35973933318071, -51.94527984432248, -14.582250347543601, -96.83073470861669,
-47.25698648583708, 48.904375839188006, 14.554162511314495, 38.237373081363344,
-32.7325518620032, 57.537241341535015, -70.50257367880944, -83.11435173667108,
1.3843207970826832, -61.35647094743536, 43.70708320820875, -81.93488230360825,
-53.098660448910465, 70.16656087048054, 0.7197864636628637, 92.59459361315123,
-77.37226816319428, -32.66885376463454, 34.32370196646004, 71.72963476414482,
1.5234779242439433, 3.0626652169396085, -1.600973288116736, -1.875116500268692,
24.115900341387686, -6.818007491235834, -37.57206985691543, 46.48919986671669,
99.81587509298548, 26.961573147884856, -57.411420876126954, -78.90146907605978,
37.2322492476274, 67.99231943510561, 64.95985406157519, -21.195261701977287,
78.89518238318205, -95.50952525706322, 76.75637507677297, -63.30961059551444,
88.07294705390709, 12.963110252847354, -59.3400766172247, 18.016669829562915,
0.024732013514316975, -47.68463698812436, -16.12846919710843, 57.85570255646779};
std::vector<T> y2{
96.98573446222625, -58.675433421313485, -15.58533007526851, -14.697644147821276,
85.96236693008059, 38.92770099339309, 19.791693980620906, 27.483461653596166,
53.91447892576453, 75.83100042363395, 17.73746513670771, 51.50105094020323,
33.83904611309756, -9.59805189545494, 27.567402061211244, 33.72816965802343,
48.98821930718205, -14.861794980690213, 0.13287706149869294, 35.05682115680253,
88.14369170856402, -20.655621067301244, -36.15962607484525, 23.463908856814932,
95.93206680397306, 10.936188747304243, -76.64604957338365, -44.27118733203363,
-17.066191002518682, 51.827990165726675, -55.472330987826744, 82.31391457552668,
-99.25207116240846, -8.9622361202783, -14.764596152666753, 35.51101965248979,
-7.515215371057382, -12.734669471901016, -76.18168200736743, -58.82174033449078,
-64.55998759489724, -66.29491004534883, 96.90488209719925, -42.97997451919843,
-31.865981559056365, -96.36343702487376, -84.20827193890962, 26.79428452012931,
62.912038904465774, -87.227673692568, 11.2934368901489, -65.442146916886,
85.68799018964843, 61.94678236143925, 83.46238187197174, 21.333768673112008,
61.8718601660381, -35.70805034839669, 68.43167377857928, -18.400251392936294,
25.277688476279536, -74.94714347783905, 2.391028130810602, -78.06742777647494,
73.16329191776757, -5.425513550228256, -17.11543472509981, -21.571671681683625,
60.95981137578463, -87.30779120172515, 46.07464276698177, -26.735186694206213,
77.34113840661823, -10.89097657623882, -7.483005212073712, -24.163324686785494,
66.03877277717585, 46.514678630068175, 86.52324722682492, 23.88758093704468,
32.70460360118328, 47.3873043949026, -40.72743971179719, 96.60257606822059,
-93.1284937647867, -70.26297209791194, 94.52718104748459, 68.27804048047095,
-74.27404656785302, -21.16650114972075, -34.93847763736745, 66.55335171298651,
-88.44856487882186, -23.53818606503958, -29.02780534888051, -29.346481830318815,
74.28318391238213, -38.37789665677865, 56.28623833724116, -81.09317815145866};
std::vector<T> expected{
128.64717656028176, 87.88562670763609, 90.19632281028372, 91.76013021796666,
118.4215357030851, 39.44788631062081, 86.58624490836462, 83.77327247860025,
79.6690804001798, 167.7366440763836, 83.73027552297903, 99.54006861093508,
56.276686562837135, 70.80573751073386, 128.34122090714868, 119.97639069191793,
115.15820154183437, 62.91768450568626, 82.47065566268454, 106.88509910638807,
104.02822613477268, 196.4153033352887, 33.57186030542483, 136.17156536458378,
24.91330426477482, 183.12555244130633, 10.402491013960068, 78.8891909881514,
51.325155608916646, 140.57498906651185, 87.55436962189877, 116.056329846112,
158.26789618636312, 122.3127143880106, 175.65336769339257, 215.7342613973661,
62.764576137605516, 173.82450721651924, 72.83278521088664, 31.152704497923047,
69.74971493014701, 135.16371248533227, 156.8113160405468, 17.14989841904493,
113.33993969348232, 209.1400727201678, 119.63772368951071, 175.72328059917774,
54.63868144260578, 177.1094683844075, 46.59751045319419, 192.6556145241176,
158.08460123131488, 28.29189388239395, 124.5848038188644, 155.08622923365692,
144.85966618486546, 142.16736573734084, 160.92578604203126, 102.39361006963875,
88.02052587541618, 126.40767969785988, 57.91601260573419, 30.546751247397513,
130.95046326396607, 69.87298439379285, 78.21308650467851, 145.7285720718672,
158.70858501146054, 78.78197209323828, 135.71261679147338, 28.579717281106852,
91.58009372078648, 85.68704702725647, 90.14934991196503, 78.83501748640491,
40.09634022929284, 167.14546691120552, 149.17295612658907, 122.98674172809133,
113.17597316247064, 68.87263271597341, 31.86446035391618, 160.31767244865998,
158.94024585517036, 34.900531808173085, 253.01889830507722, 86.25213267010419,
94.2922665997649, 79.44626620532313, 69.47712008431841, 128.24056985459816,
74.53904203761351, 127.79603731531678, 115.13613538697125, 95.93013225849919,
58.10781125509778, 44.75789949605465, 28.21929483784659, 87.40828630126103};
auto p1_geom = thrust::make_counting_iterator(0);
auto p2_geom = thrust::make_counting_iterator(0);
rmm::device_vector<T> dx1(x1), dy1(y1), dx2(x2), dy2(y2);
rmm::device_vector<T> got(dx1.size());
auto p1_begin = cuspatial::make_vec_2d_iterator(dx1.begin(), dy1.begin());
auto p2_begin = cuspatial::make_vec_2d_iterator(dx2.begin(), dy2.begin());
auto multipoints_1 = make_multipoint_range(dx1.size(), p1_geom, dx1.size(), p1_begin);
auto multipoints_2 = make_multipoint_range(dx2.size(), p2_geom, dx2.size(), p2_begin);
auto ret_it = pairwise_point_distance(multipoints_1, multipoints_2, got.begin());
thrust::host_vector<T> hgot(got);
CUSPATIAL_EXPECT_VECTORS_EQUIVALENT(hgot, expected);
EXPECT_EQ(expected.size(), std::distance(got.begin(), ret_it));
}
TYPED_TEST(PairwisePointDistanceTest, MultiComponentSinglePair)
{
using T = TypeParam;
using Cart2D = vec_2d<T>;
using Cart2DVec = std::vector<Cart2D>;
rmm::device_vector<int32_t> multipoint_geom1(std::vector<int32_t>{0, 3});
rmm::device_vector<Cart2D> points1(Cart2DVec{{1.0, 1.0}, {2.5, 1.5}, {-0.1, -0.7}});
rmm::device_vector<int32_t> multipoint_geom2(std::vector<int32_t>{0, 2});
rmm::device_vector<Cart2D> points2(Cart2DVec{{1.8, 1.3}, {0.3, 0.6}});
rmm::device_vector<T> expected{std::vector<T>{T{0.7280109889280517}}};
rmm::device_vector<T> got(multipoint_geom1.size() - 1);
auto multipoint_1 = multipoint_range{
multipoint_geom1.begin(), multipoint_geom1.end(), points1.begin(), points1.end()};
auto multipoint_2 = multipoint_range{
multipoint_geom2.begin(), multipoint_geom2.end(), points2.begin(), points2.end()};
auto ret_it = pairwise_point_distance(multipoint_1, multipoint_2, got.begin());
CUSPATIAL_EXPECT_VECTORS_EQUIVALENT(expected, got);
EXPECT_EQ(expected.size(), std::distance(got.begin(), ret_it));
}
TYPED_TEST(PairwisePointDistanceTest, MultiComponentRandom)
{
using T = TypeParam;
using Cart2D = vec_2d<T>;
using Cart2DVec = std::vector<Cart2D>;
std::size_t constexpr num_pairs = 1000;
std::size_t constexpr max_points_per_multipoint = 10;
auto [mp0_offset, mp0_points] =
this->generate_random_multipoints(num_pairs, max_points_per_multipoint, 0);
auto [mp1_offset, mp1_points] =
this->generate_random_multipoints(num_pairs, max_points_per_multipoint, num_pairs);
auto expected = compute_multipoint_distance_host(mp0_offset, mp0_points, mp1_offset, mp1_points);
auto got = rmm::device_vector<T>(num_pairs);
auto multipoint_1 =
multipoint_range{mp0_offset.begin(), mp0_offset.end(), mp0_points.begin(), mp0_points.end()};
auto multipoint_2 =
multipoint_range{mp1_offset.begin(), mp1_offset.end(), mp1_points.begin(), mp1_points.end()};
auto ret_it = pairwise_point_distance(multipoint_1, multipoint_2, got.begin());
CUSPATIAL_EXPECT_VECTORS_EQUIVALENT(expected, got);
EXPECT_EQ(expected.size(), std::distance(got.begin(), ret_it));
}
| 0 |
rapidsai_public_repos/cuspatial/cpp/tests | rapidsai_public_repos/cuspatial/cpp/tests/distance/point_linestring_distance_test.cpp | /*
* Copyright (c) 2022-2023, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <cuspatial_test/geometry_fixtures.hpp>
#include <cuspatial/distance.hpp>
#include <cuspatial/error.hpp>
#include <optional>
using namespace cuspatial;
using namespace cuspatial::test;
using namespace cudf;
using namespace cudf::test;
template <typename T>
struct PairwisePointLineStringDistanceTest : public EmptyGeometryColumnFixture<T> {};
using TestTypes = ::testing::Types<float, double>;
TYPED_TEST_CASE(PairwisePointLineStringDistanceTest, TestTypes);
TYPED_TEST(PairwisePointLineStringDistanceTest, SingleToSingleEmpty)
{
auto got = pairwise_point_linestring_distance(this->empty_point(), this->empty_linestring());
auto expect = fixed_width_column_wrapper<TypeParam>{};
CUDF_TEST_EXPECT_COLUMNS_EQUIVALENT(expect, *got);
}
TYPED_TEST(PairwisePointLineStringDistanceTest, SingleToMultiEmpty)
{
auto got = pairwise_point_linestring_distance(this->empty_point(), this->empty_multilinestring());
auto expect = fixed_width_column_wrapper<TypeParam>{};
CUDF_TEST_EXPECT_COLUMNS_EQUIVALENT(expect, *got);
}
TYPED_TEST(PairwisePointLineStringDistanceTest, MultiToSingleEmpty)
{
auto got = pairwise_point_linestring_distance(this->empty_multipoint(), this->empty_linestring());
auto expect = fixed_width_column_wrapper<TypeParam>{};
CUDF_TEST_EXPECT_COLUMNS_EQUIVALENT(expect, *got);
}
TYPED_TEST(PairwisePointLineStringDistanceTest, MultiToMultiEmpty)
{
auto got =
pairwise_point_linestring_distance(this->empty_multipoint(), this->empty_multilinestring());
auto expect = fixed_width_column_wrapper<TypeParam>{};
CUDF_TEST_EXPECT_COLUMNS_EQUIVALENT(expect, *got);
}
struct PairwisePointLineStringDistanceFailOnSizeTest : public EmptyAndOneGeometryColumnFixture {};
TEST_F(PairwisePointLineStringDistanceFailOnSizeTest, SizeMismatch)
{
EXPECT_THROW(pairwise_point_linestring_distance(this->empty_point(), this->one_linestring()),
cuspatial::logic_error);
}
TEST_F(PairwisePointLineStringDistanceFailOnSizeTest, SizeMismatch2)
{
EXPECT_THROW(pairwise_point_linestring_distance(this->one_point(), this->empty_multilinestring()),
cuspatial::logic_error);
}
struct PairwisePointLineStringDistanceFailOnTypeTest
: public EmptyGeometryColumnFixtureMultipleTypes {};
TEST_F(PairwisePointLineStringDistanceFailOnTypeTest, CoordinateTypeMismatch)
{
EXPECT_THROW(
pairwise_point_linestring_distance(EmptyGeometryColumnBase<float>::empty_point(),
EmptyGeometryColumnBase<double>::empty_linestring()),
cuspatial::logic_error);
}
TEST_F(PairwisePointLineStringDistanceFailOnTypeTest, GeometryTypeMismatch)
{
EXPECT_THROW(pairwise_point_linestring_distance(EmptyGeometryColumnBase<float>::empty_point(),
EmptyGeometryColumnBase<float>::empty_polygon()),
cuspatial::logic_error);
}
| 0 |
rapidsai_public_repos/cuspatial/cpp/tests | rapidsai_public_repos/cuspatial/cpp/tests/distance/point_polygon_distance_test.cu | /*
* Copyright (c) 2023, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <cuspatial_test/vector_equality.hpp>
#include <cuspatial_test/vector_factories.cuh>
#include <cuspatial/distance.cuh>
#include <cuspatial/geometry/vec_2d.hpp>
#include <cuspatial/iterator_factory.cuh>
#include <cuspatial/range/range.cuh>
#include <rmm/cuda_stream_view.hpp>
#include <rmm/exec_policy.hpp>
#include <rmm/mr/device/device_memory_resource.hpp>
#include <initializer_list>
using namespace cuspatial;
using namespace cuspatial::test;
double constexpr PI = 3.14159265358979323846;
template <typename T>
struct PairwisePointPolygonDistanceTest : public ::testing::Test {
rmm::cuda_stream_view stream() { return rmm::cuda_stream_default; }
rmm::mr::device_memory_resource* mr() { return rmm::mr::get_current_device_resource(); }
void run_single(std::initializer_list<std::initializer_list<vec_2d<T>>> multipoints,
std::initializer_list<std::size_t> multipolygon_geometry_offsets,
std::initializer_list<std::size_t> multipolygon_part_offsets,
std::initializer_list<std::size_t> multipolygon_ring_offsets,
std::initializer_list<vec_2d<T>> multipolygon_coordinates,
std::initializer_list<T> expected)
{
std::vector<vec_2d<T>> multipolygon_coordinates_vec(multipolygon_coordinates);
return this->run_single(multipoints,
multipolygon_geometry_offsets,
multipolygon_part_offsets,
multipolygon_ring_offsets,
multipolygon_coordinates_vec,
expected);
}
void run_single(std::initializer_list<std::initializer_list<vec_2d<T>>> multipoints,
std::initializer_list<std::size_t> multipolygon_geometry_offsets,
std::initializer_list<std::size_t> multipolygon_part_offsets,
std::initializer_list<std::size_t> multipolygon_ring_offsets,
std::vector<vec_2d<T>> const& multipolygon_coordinates,
std::initializer_list<T> expected)
{
auto d_multipoints = make_multipoint_array(multipoints);
auto d_multipolygons = make_multipolygon_array(
range{multipolygon_geometry_offsets.begin(), multipolygon_geometry_offsets.end()},
range{multipolygon_part_offsets.begin(), multipolygon_part_offsets.end()},
range{multipolygon_ring_offsets.begin(), multipolygon_ring_offsets.end()},
range{multipolygon_coordinates.begin(), multipolygon_coordinates.end()});
auto got = rmm::device_uvector<T>(d_multipoints.size(), stream());
auto ret = pairwise_point_polygon_distance(
d_multipoints.range(), d_multipolygons.range(), got.begin(), stream());
auto d_expected = make_device_vector(expected);
CUSPATIAL_EXPECT_VECTORS_EQUIVALENT(got, d_expected);
EXPECT_EQ(ret, got.end());
}
};
using TestTypes = ::testing::Types<float, double>;
TYPED_TEST_CASE(PairwisePointPolygonDistanceTest, TestTypes);
// Inputs are empty columns
TYPED_TEST(PairwisePointPolygonDistanceTest, ZeroPairs)
{
using T = TypeParam;
using P = vec_2d<T>;
CUSPATIAL_RUN_TEST(this->run_single,
std::initializer_list<std::initializer_list<P>>{},
{0},
{0},
{0},
std::initializer_list<P>{},
std::initializer_list<T>{});
}
// Point in 1 ring polygon.
// POINT (0 0)
// POLYGON ((-1 -1, 1, -1, 1 1, -1 1, -1 -1))
TYPED_TEST(PairwisePointPolygonDistanceTest, OnePairOnePolygonOneRing)
{
using T = TypeParam;
using P = vec_2d<T>;
CUSPATIAL_RUN_TEST(this->run_single,
{{P{0, 0}}},
{0, 1},
{0, 1},
{0, 5},
{P{-1, -1}, P{1, -1}, P{1, 1}, P{-1, 1}, P{-1, -1}},
{0.0});
}
// Point outside 1 ring polygon.
// POINT (0 2)
// POLYGON ((-1 -1, 1 -1, 1 1, -1 1, -1 -1))
TYPED_TEST(PairwisePointPolygonDistanceTest, OnePairOnePolygonOneRing2)
{
using T = TypeParam;
using P = vec_2d<T>;
CUSPATIAL_RUN_TEST(this->run_single,
{{P{0, 2}}},
{0, 1},
{0, 1},
{0, 5},
{P{-1, -1}, P{1, -1}, P{1, 1}, P{-1, 1}, P{-1, -1}},
{1.0});
}
// Point in the hole. Polygon has two rings. Point in the hole.
// POINT (0 0)
// POLYGON ((-2 -2, 2 -2, 2 2, -2 2, -2 -2), (-1 -1, 1 -1, 1 1, -1 1, -1 -1))
TYPED_TEST(PairwisePointPolygonDistanceTest, OnePairOnePolygonTwoRings)
{
using T = TypeParam;
using P = vec_2d<T>;
CUSPATIAL_RUN_TEST(this->run_single,
{{P{0, 0}}},
{0, 1},
{0, 2},
{0, 5, 10},
{
P{-2, -2},
P{2, -2},
P{2, 2},
P{-2, 2},
P{-2, -2},
P{-1, -1},
P{1, -1},
P{1, 1},
P{-1, 1},
P{-1, -1},
},
{1.0});
}
// Point in polygon. Polygon has two rings. Point outside of polygon.
// POINT (1.5 0)
// POLYGON ((-2 -2, 2 -2, 2 2, -2 2, -2 -2), (-1 -1, 1 -1, 1 1, -1 1, -1 -1))
TYPED_TEST(PairwisePointPolygonDistanceTest, OnePairOnePolygonTwoRings2)
{
using T = TypeParam;
using P = vec_2d<T>;
CUSPATIAL_RUN_TEST(this->run_single,
{{P{1.5, 0}}},
{0, 1},
{0, 2},
{0, 5, 10},
{
P{-2, -2},
P{2, -2},
P{2, 2},
P{-2, 2},
P{-2, -2},
P{-1, -1},
P{1, -1},
P{1, 1},
P{-1, 1},
P{-1, -1},
},
{0.0});
}
// Point outside of polygon. Polygon has two rings. Point outside of polygon.
// POINT (3 0)
// POLYGON ((-2 -2, 2 -2, 2 2, -2 2, -2 -2), (-1 -1, 1 -1, 1 1, -1 1, -1 -1))
TYPED_TEST(PairwisePointPolygonDistanceTest, OnePairOnePolygonTwoRings3)
{
using T = TypeParam;
using P = vec_2d<T>;
CUSPATIAL_RUN_TEST(this->run_single,
{{P{3, 0}}},
{0, 1},
{0, 2},
{0, 5, 10},
{
P{-2, -2},
P{2, -2},
P{2, 2},
P{-2, 2},
P{-2, -2},
P{-1, -1},
P{1, -1},
P{1, 1},
P{-1, 1},
P{-1, -1},
},
{1.0});
}
// 1 Multipolygon with 2 Polygons. Point intersects with second polygon
// POINT (1 1)
// MULTIPOLYGON (((-2 -2, 0 -2, 0 0, -2 0, -2 -2)), ((0 0, 2 0, 2 2, 0 2, 0 0)))
TYPED_TEST(PairwisePointPolygonDistanceTest, OnePairTwoPolygonOneRing)
{
using T = TypeParam;
using P = vec_2d<T>;
CUSPATIAL_RUN_TEST(this->run_single,
{{P{1, 1}}},
{0, 2},
{0, 1, 2},
{0, 5, 10},
{
P{-2, -2},
P{0, -2},
P{0, 0},
P{-2, 0},
P{-2, -2},
P{0, 0},
P{2, 0},
P{2, 2},
P{0, 2},
P{0, 0},
},
{0.0});
}
// 1 Multipolygon with 2 Polygons. Point intersects with first polygon.
// POINT (-1 -1)
// MULTIPOLYGON (((-2 -2, 0 -2, 0 0, -2 0, -2 -2)), ((0 0, 2 0, 2 2, 0 2, 0 0)))
TYPED_TEST(PairwisePointPolygonDistanceTest, OnePairTwoPolygonOneRing2)
{
using T = TypeParam;
using P = vec_2d<T>;
CUSPATIAL_RUN_TEST(this->run_single,
{{P{-1, -1}}},
{0, 2},
{0, 1, 2},
{0, 5, 10},
{
P{-2, -2},
P{0, -2},
P{0, 0},
P{-2, 0},
P{-2, -2},
P{0, 0},
P{2, 0},
P{2, 2},
P{0, 2},
P{0, 0},
},
{0.0});
}
// 1 Multipolygon with 2 Polygons. Point does not intersect. Closer to first polygon.
// POINT (-1 0.5)
// MULTIPOLYGON (((-2 -2, 0 -2, 0 0, -2 0, -2 -2)), ((0 0, 2 0, 2 2, 0 2, 0 0)))
TYPED_TEST(PairwisePointPolygonDistanceTest, OnePairTwoPolygonOneRing3)
{
using T = TypeParam;
using P = vec_2d<T>;
CUSPATIAL_RUN_TEST(this->run_single,
{{P{-1, 0.5}}},
{0, 2},
{0, 1, 2},
{0, 5, 10},
{
P{-2, -2},
P{0, -2},
P{0, 0},
P{-2, 0},
P{-2, -2},
P{0, 0},
P{2, 0},
P{2, 2},
P{0, 2},
P{0, 0},
},
{0.5});
}
// 1 Multipolygon with 2 Polygons. Point does not intersect. Closer to second polygon.
// POINT (-0.3, 1)
// MULTIPOLYGON (((-2 -2, 0 -2, 0 0, -2 0, -2 -2)), ((0 0, 2 0, 2 2, 0 2, 0 0)))
TYPED_TEST(PairwisePointPolygonDistanceTest, OnePairTwoPolygonOneRing4)
{
using T = TypeParam;
using P = vec_2d<T>;
CUSPATIAL_RUN_TEST(this->run_single,
{{P{-0.3, 1}}},
{0, 2},
{0, 1, 2},
{0, 5, 10},
{
P{-2, -2},
P{0, -2},
P{0, 0},
P{-2, 0},
P{-2, -2},
P{0, 0},
P{2, 0},
P{2, 2},
P{0, 2},
P{0, 0},
},
{0.3});
}
// Two Pairs.
// POINT (-0.6 -0.6)
// POLYGON ((-1 -1, 0 0, 0 1, -1 -1))
//
// POINT (0 0)
// POLYGON ((1 1, 1 0, 2 2, 1 1))
TYPED_TEST(PairwisePointPolygonDistanceTest, TwoPairOnePolygonOneRing)
{
using T = TypeParam;
using P = vec_2d<T>;
CUSPATIAL_RUN_TEST(this->run_single,
{{P{-0.6, -0.6}}, {P{0, 0}}},
{0, 1, 2},
{0, 1, 2},
{0, 4, 8},
{
P{-1, -1},
P{0, 0},
P{0, 1},
P{-1, -1},
P{1, 1},
P{1, 0},
P{2, 2},
P{1, 1},
},
{0.0, 1.0});
}
// Two Pairs, each polygon has two rings.
// POINT (2.5, 3)
// POLYGON ((0 0, 3 0, 3 3, 0 3, 0 0), (1 1, 2 1, 2 2, 1 2, 1 1))
//
// POINT (-1.75, -1.5)
// POLYGON ((0 0, -3 0, -3 -3, 0 0), (-1 -1, -2 -1, -2 -2, -1 -1))
TYPED_TEST(PairwisePointPolygonDistanceTest, TwoPairTwoPolygonTwoRing)
{
using T = TypeParam;
using P = vec_2d<T>;
CUSPATIAL_RUN_TEST(this->run_single,
{{P{2.5, 3}}, {P{-1.75, -1.5}}},
{0, 1, 2},
{0, 2, 4},
{0, 5, 10, 14, 18},
{
P{0, 0},
P{3, 0},
P{3, 3},
P{0, 3},
P{0, 0},
P{1, 1},
P{2, 1},
P{2, 2},
P{1, 2},
P{1, 1},
P{0, 0},
P{-3, 0},
P{-3, -3},
P{0, 0},
P{-1, -1},
P{-2, -1},
P{-2, -2},
P{-1, -1},
},
{0.0, 0.17677669529663687});
}
// Three Polygons
// POINT (1 1)
// POLYGON ((0 1, -1 -1, 1 -1, 0 1), (0 0.5, 0.5 -0.5, -0.5 -0.5, 0 0.5))
//
// POINT (2 2)
// POLYGON ((1 1, 1 2, 2 1, 1 1))
//
// POINT (1.5 0)
// POLYGON (
// (-3 -3, 3 -3, 3 3, -3 3, -3 -3),
// (-2 -2, -1 -2, -1 2, -2 2, -2 -2),
// (2 2, 2 -2, 1 -2, 1 2, 2 2)
// )
TYPED_TEST(PairwisePointPolygonDistanceTest, ThreePolygons)
{
using T = TypeParam;
using P = vec_2d<T>;
CUSPATIAL_RUN_TEST(this->run_single,
{{P{1, 1}}, {P{2, 2}}, {P{1.5, 0}}},
{0, 1, 2, 3},
{0, 2, 3, 6},
{0, 4, 8, 12, 17, 22, 27},
{// POLYGON ((0 1, -1 -1, 1 -1, 0 1), (0 0.5, 0.5 -0.5, -0.5 -0.5, 0 0.5))
P{0, 1},
P{-1, -1},
P{1, -1},
P{0, 1},
P{0, 0.5},
P{0.5, -0.5},
P{-0.5, -0.5},
P{0, 0.5},
// POLYGON ((1 1, 1 2, 2 1, 1 1))
P{1, 1},
P{1, 2},
P{2, 1},
P{1, 1},
// POLYGON (
// (-3 -3, 3 -3, 3 3, -3 3, -3 -3),
// (-2 -2, -1 -2, -1 2, -2 2, -2 -2),
// (2 2, 2 -2, 1 -2, 1 2, 2 2)
// )
P{-3, -3},
P{3, -3},
P{3, 3},
P{-3, 3},
P{-3, -3},
P{-2, -2},
P{-1, -2},
P{-1, 2},
P{-2, 2},
P{-2, -2},
P{2, 2},
P{2, -2},
P{1, -2},
P{1, 2},
P{2, 2}},
{0.894427190999916, 0.7071067811865476, 0.5});
}
// Multipoint tests: 1 multipoint - 1 polygon. No Intersection.
TYPED_TEST(PairwisePointPolygonDistanceTest, OnePairMultiPointOnePolygon)
{
using T = TypeParam;
using P = vec_2d<T>;
CUSPATIAL_RUN_TEST(this->run_single,
{{P{0, 3}, P{2, 0}}},
{0, 1},
{0, 1},
{0, 5},
{P{0, 1}, P{-1, -1}, P{1, -1}, P{0, 1}},
{1.3416407864998738});
}
// Multipoint tests: 1 multipoint - 1 polygon. Intesects.
TYPED_TEST(PairwisePointPolygonDistanceTest, OnePairMultiPointOnePolygon2)
{
using T = TypeParam;
using P = vec_2d<T>;
CUSPATIAL_RUN_TEST(this->run_single,
{{P{0, 3}, P{0, 0}}},
{0, 1},
{0, 1},
{0, 5},
{P{0, 1}, P{-1, -1}, P{1, -1}, P{0, 1}},
{0.0});
}
// Multipoint tests: 2 multipoints - 2 polygons.
TYPED_TEST(PairwisePointPolygonDistanceTest, TwoPairMultiPointOnePolygon)
{
using T = TypeParam;
using P = vec_2d<T>;
CUSPATIAL_RUN_TEST(
this->run_single,
{{P{0, 2}, P{3, 0}}, {P{1, 1}, P{-1, -1}}},
{0, 1, 2},
{0, 1, 2},
{0, 5, 9},
{P{-1, -1}, P{1, -1}, P{1, 1}, P{-1, 1}, P{-1, -1}, P{-1, 1}, P{1, 1}, P{0, -1}, P{-1, 1}},
{1.0, 0.0});
}
// Multipoint tests: 2 multipoints - 2 polygons.
TYPED_TEST(PairwisePointPolygonDistanceTest, TwoPairMultiPointOnePolygon2)
{
using T = TypeParam;
using P = vec_2d<T>;
CUSPATIAL_RUN_TEST(this->run_single,
{{P{0, 2}}, {P{2, 3}, P{2, 1}}},
{0, 1, 2},
{0, 1, 2},
{0, 4, 8},
{P{0, 0}, P{2, 0}, P{1, 2}, P{0, 0}, P{2, 0}, P{3, 2}, P{1, 2}, P{2, 0}},
{T{0.894427190999916}, 0.0});
}
// Large distance test
TYPED_TEST(PairwisePointPolygonDistanceTest, DistanceTestManyVertex)
{
using T = TypeParam;
using P = vec_2d<T>;
std::size_t num_vertex = 2000;
P centroid{0.0, 0.0};
T radius = 1.0;
std::vector<P> polygon;
auto it = detail::make_counting_transform_iterator(0, [](auto i) {
T theta = i / (2 * PI);
return P{cos(theta), sin(theta)};
});
std::copy(it, it + num_vertex, std::back_inserter(polygon));
CUSPATIAL_RUN_TEST(
this->run_single, {{P{0.0, 0.0}}}, {0, 1}, {0, 1}, {0, num_vertex + 1}, polygon, {0.0});
}
| 0 |
rapidsai_public_repos/cuspatial/cpp/tests | rapidsai_public_repos/cuspatial/cpp/tests/distance/linestring_distance_test_medium.cu | /*
* Copyright (c) 2022-2023, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <cuspatial_test/vector_equality.hpp>
#include <cuspatial_test/vector_factories.cuh>
#include <cuspatial/distance.cuh>
#include <cuspatial/error.hpp>
#include <cuspatial/geometry/vec_2d.hpp>
#include <cuspatial/iterator_factory.cuh>
#include <cuspatial/range/multilinestring_range.cuh>
#include <rmm/device_vector.hpp>
#include <thrust/iterator/constant_iterator.h>
#include <thrust/iterator/counting_iterator.h>
#include <type_traits>
using namespace cuspatial;
using namespace cuspatial::test;
template <typename T>
struct PairwiseLinestringDistanceTestMedium : public ::testing::Test {};
// float and double are logically the same but would require separate tests due to precision.
using TestTypes = ::testing::Types<float, double>;
TYPED_TEST_CASE(PairwiseLinestringDistanceTestMedium, TestTypes);
TYPED_TEST(PairwiseLinestringDistanceTestMedium, RandomDataset100)
{
using T = TypeParam;
auto constexpr num_pairs = 100;
auto linestring1_offsets = make_device_vector<int32_t>(
{0, 4, 8, 11, 13, 16, 19, 22, 25, 28, 32, 36, 40, 44, 48, 51, 54,
57, 61, 63, 65, 67, 71, 74, 78, 82, 85, 87, 89, 92, 96, 99, 101, 104,
108, 112, 115, 119, 123, 127, 130, 132, 135, 137, 141, 145, 147, 150, 153, 155, 158,
160, 164, 167, 170, 173, 176, 179, 182, 184, 188, 192, 194, 198, 202, 206, 209, 212,
215, 217, 220, 222, 226, 228, 230, 233, 237, 239, 243, 247, 250, 252, 254, 257, 259,
263, 266, 269, 273, 276, 280, 283, 286, 290, 294, 298, 300, 302, 306, 308, 311});
auto linestring1_points_xy = make_device_vector<T>({41658.902315589876,
14694.11814724456,
46600.70359801489,
8771.431887804214,
47079.510547637154,
10199.68027155776,
51498.48049880379,
17049.62665643919,
-27429.917796286478,
-33240.8339287343,
-21764.269974046114,
-37974.45515744517,
-14460.71813363161,
-31333.481529957502,
-18226.13032712476,
-30181.03842467982,
-22556.235212018168,
41094.0501840996,
-16375.655690574613,
42992.319790050366,
-20082.724633593425,
33759.13529113619,
26809.34874258138,
-44038.61029577575,
26656.809525288947,
-43753.338844714024,
37540.565197328295,
15638.266868017672,
36984.75276605113,
17679.849722737585,
41981.578395349155,
13344.429419617965,
24973.02375952172,
58735.45872458056,
19250.902968701903,
57585.91906288884,
20165.256326220195,
59003.13030366512,
-30532.18325215106,
-37453.38802730886,
-32135.262234862337,
-36689.9824564741,
-22826.652288925623,
-33888.1663960553,
-17439.962727300197,
57339.487213868444,
-19359.179053658157,
51513.83286101961,
-20575.92273561565,
46633.76851694451,
9500.159032106982,
9451.145716270374,
6568.682357949907,
6486.956110744754,
4981.961021893829,
4957.81628227334,
-21889.03381442112,
29939.875040449275,
-23236.68404277722,
29478.765053663003,
-20541.236096645694,
29043.078772533325,
-20778.38844417717,
35716.735488752434,
-57875.32424881095,
-59612.15306180189,
-51612.57611847265,
-59294.38873712498,
-47437.091112564274,
-59127.907287882874,
-50197.81791907972,
-55907.11718469079,
-56989.35149478826,
-12026.40853005452,
-50735.07273259827,
-15241.391847088236,
-53459.1335853405,
-10462.08756300849,
-47317.19439336836,
-12371.368617841707,
-6829.050709717398,
37044.87138428305,
-2732.682737868703,
33021.25289675412,
-5966.9880402461695,
34610.915204761666,
385.7819993385874,
40011.84905629743,
-36083.360810904385,
25902.54295777333,
-41081.45575117335,
25768.144614748064,
-35733.010967268594,
20564.043901966274,
-36247.474479077006,
22714.109069724822,
-46951.78590147328,
12875.546088919305,
-47262.641809761204,
13893.756714962012,
-47684.95897589372,
13490.506594342487,
38981.49756281363,
14727.611347924598,
35164.86749845841,
10689.244931054465,
35579.262138939965,
17538.521291377492,
59176.59704717483,
23982.713915777626,
58533.33560306961,
24390.498281955253,
58725.469004504834,
24762.865678427796,
54054.39482381586,
-45064.46593058627,
48926.88038791325,
-37966.64921236699,
51732.8876978247,
-46059.58460159569,
53489.896558495035,
-49120.96511713206,
-44876.184453934664,
-44360.42961138337,
-47637.45499043422,
-45008.80023662591,
-58724.07892996805,
2094.812598127086,
-54674.126544740386,
2085.895936089219,
60635.37331725002,
2573.1373108541593,
62105.58031557918,
1104.7361987014294,
-5514.764938002292,
3308.886287290079,
-6644.854901584,
698.8137866817374,
-10776.990254158663,
5393.567671690889,
-10887.375444705547,
5707.221420960841,
-16308.6192426665,
55013.396940812236,
-17943.665926700574,
55544.470228068916,
-18590.60450856736,
57224.00315655217,
-54635.44517293027,
34758.586091369114,
-54223.234081035494,
31679.59372669221,
-55991.88318145398,
33674.127549160745,
-55476.50649203067,
33712.78136073219,
-16828.926382989048,
-31333.200170105112,
-20874.261277556023,
-29605.973372869845,
-21556.654292334166,
-35481.31451239508,
-21941.300770415983,
-35017.537957551656,
19602.183464230096,
63130.3997634869,
20124.423199257864,
56201.98002258745,
22857.521915468602,
59459.34956278938,
-40252.218652315016,
27897.179108036376,
-40615.87902328277,
34867.09647977925,
-13227.295520406573,
49218.47853186974,
-13394.780584665317,
41205.40159441225,
-41859.97648749311,
34123.82321041233,
-41313.45210522428,
29333.279117753587,
-38298.22583610271,
29621.64904140896,
19267.410152329292,
50324.3631913836,
11889.896156569695,
49593.72552280869,
13200.16827668008,
49929.12541850021,
19386.646807861616,
55527.05140347529,
-60021.453586243275,
55909.86001855173,
-56555.20891834299,
47223.27157870629,
-58162.220568779645,
46241.01648214377,
-21564.27114522246,
-43556.091011791155,
-26413.185516939815,
-37643.13228249952,
-8121.46414404954,
-56220.36407542113,
-2680.751998537391,
-62305.120350499754,
-2222.8256113393886,
-61076.48504318068,
-43496.28457602764,
-17972.088889636892,
-48670.608599013554,
-21976.442708667066,
-51456.69654638918,
-19176.50505543119,
-52025.6273644588,
-18904.22729632036,
-49836.99743938117,
-19263.800263562145,
-46727.06695784684,
-12538.24458831298,
-37385.58991765429,
-9827.528489899312,
-37794.42212261821,
-10414.915634760691,
36860.87308416238,
23911.34358298873,
42873.67992713083,
23596.14312044066,
39313.39701688439,
17829.62627312683,
11431.213542784448,
43915.88050116565,
7647.058473635509,
50879.02714367026,
11107.49195048625,
49993.15637259206,
11643.093760750395,
52166.07547584346,
-45871.68320713149,
8607.802738756523,
-45986.98076235849,
2245.0909069522613,
-46085.965532968825,
3368.0297663885935,
-46181.67123182361,
3239.560649157949,
25363.379368344074,
-10327.329631677007,
17717.231571577973,
-14227.688657963068,
24580.31394401792,
-20651.84812237891,
29134.693387320112,
-20154.540583292346,
43080.7529227066,
-53708.2135814389,
42441.16001053327,
-53731.92238527414,
47976.84240392968,
-46216.28781449849,
-11900.910297907809,
29882.832150688133,
-13187.917157702086,
31025.252493533244,
-9792.284371446513,
26838.581081892436,
-11269.14276649128,
27429.718875382947,
-5660.728920526542,
24574.667692997973,
11253.80330805089,
-25008.651718108995,
10466.359767099839,
-25641.114108769514,
-53252.1312259309,
-20391.068111358632,
-47799.02030720808,
-22136.879760045675,
-51379.57629207311,
-22500.143694694954,
-54427.60141284903,
-22433.79562519107,
-42057.65623242821,
-21445.145056313435,
-42664.076601666646,
-12631.148780933434,
-45804.81458842004,
-5175.118656235392,
-45478.89283457703,
-4974.014748854219,
47075.997568824576,
27174.33433031141,
53844.0068681668,
26125.565202999907,
-22445.721811471412,
5947.414031173117,
-20797.59708432936,
4231.314002562816,
-22012.560374600253,
5514.803686442698,
-25647.96389715412,
-10242.011092887318,
-24850.718783507502,
-5594.456938161081,
-23637.972304660132,
-8240.143243956536,
34882.04958914149,
29690.35080922088,
26678.65752711494,
28639.788268322274,
-45859.8782408588,
-40730.76985862218,
-51933.96309224814,
-45679.557409096116,
-52099.29330373669,
-45875.37994370673,
34549.11186911959,
4411.4930198940565,
28645.239864180556,
254.8442404411453,
29729.362290067365,
51400.29090932576,
27092.22625228292,
57412.291246702465,
27270.331741995822,
61044.43950242366,
27375.014737974416,
60938.90864558535,
51556.57410969483,
-6739.644077840145,
52515.470545460434,
-8987.498835679566,
46638.54343817407,
-5237.371348479321,
11226.929260803649,
48448.32078503046,
12712.496694281563,
40259.71525300039,
8563.557289261611,
36673.04699761284,
-45375.67258113653,
36335.05760810802,
-44857.41642126795,
36616.26156028952,
-51428.472725871936,
35645.440993282224,
11948.653896420248,
-24706.94842684488,
20671.682144587314,
-21833.197922278516,
19203.379064891342,
-20118.5370559781,
54438.42614275502,
-29144.161044259497,
57867.96483019572,
-28841.39017934311,
54260.19148082872,
-33361.50604871394,
-43454.69314619985,
50273.6558612583,
-49657.47783440756,
53577.41459418893,
-48847.36106727273,
62172.47019181349,
-12962.581910456334,
56440.56024064429,
-11078.09318399874,
51644.12024048194,
33050.658148590956,
-58920.77248277155,
33853.16958578488,
-58722.31903774217,
30155.859199122297,
-61546.90999392407,
28350.944868052207,
-61763.752766007725,
-19670.72089334298,
22684.517798921064,
-19640.1421625446,
22687.978622624778,
-15653.90150936818,
17615.43390847237,
-5820.125752277603,
17014.434363396143,
60491.9147275399,
-44454.646506475365,
61673.61389764642,
-40670.4296948947,
3010.22884329714,
9528.274005783183,
7247.472877158092,
15124.702546599536,
4851.4337295382575,
11243.865962023567,
4824.133938941079,
11227.68978808053,
23504.266167053705,
33179.85253067702,
22480.863815579512,
28906.810162650283,
24342.637759549954,
28007.697772657713,
24137.50967310437,
27353.98686292031,
-34053.41026040829,
-64265.88574718186,
-32110.577393759428,
-63130.20151200131,
-33924.15109989719,
-65536.0,
-31672.687599811205,
-64581.179304206045,
959.7215557354066,
24452.397751976227,
312.56653151161856,
23231.56579123238,
-44.98033879071096,
23394.965100601486,
296.376589694366,
-6558.590930642116,
3994.3950419367184,
-3700.7274032742203,
7696.985767894743,
-3191.0326641728143,
-6387.18605725986,
19774.367993523556,
-8051.394792809615,
27694.462346775483,
-10110.413864642014,
29492.85073406865,
-19847.050217164695,
-14028.154415987468,
-14080.09841584025,
-18353.14544453502,
-22849.163678809855,
-36813.45891756001,
-28963.47174786276,
-36692.297960659314,
-31847.193110264172,
-35588.66043701308,
7105.9171509791195,
-39033.80716796027,
11460.775360755784,
-40282.86309943496,
58942.469515078075,
6787.262920580673,
58886.86547401938,
5863.573743095374,
58740.01428115593,
222.51042578771012,
61283.97291509698,
3999.5819537617244,
-63061.08699755168,
-2575.8629341373526,
-65536.0,
-9285.81901768746,
-50035.37045591002,
20537.513037427605,
-50081.11003362366,
20464.263706784554,
62116.35229456691,
45745.60016019519,
61865.80519887989,
40883.516880131516,
62647.124391193276,
40468.27973749191,
56654.5141685885,
16862.303937885663,
63070.85134584749,
23300.195766204517,
61230.41706849119,
19510.84090013759,
60415.518333547,
11527.62347437564,
55656.31580105885,
30108.422086075327,
46134.25777282618,
32185.644483843284,
968.041379812712,
-30593.64787082193,
5360.019466310152,
-31328.665492243064,
3662.5289196361346,
-23533.58815929447,
5459.910428930167,
-18274.379953033775,
53419.848320399906,
-64165.83874253259,
54341.74882672624,
-65536.0,
56149.34611529181,
-65536.0,
63518.943955564784,
-65536.0,
63041.55390377034,
-52961.48936175517,
55648.26343059204,
-54114.30757859672,
56045.45020144504,
-51233.966551424906,
-14313.208636322757,
54248.41327512142,
-14485.732740432964,
55940.25897158489,
-13268.3777837889,
49763.46359174742,
-13231.945672727452,
44703.96058500886,
-5885.21758056189,
52829.13296404347,
-5131.159534487515,
52609.69351861534,
-9074.90834159211,
43460.75312509922,
-43855.71514428074,
9158.508068670606,
-48053.80969115072,
9979.665281410318,
40831.07071986032,
11222.362498340124,
43149.63435633618,
13070.612773966097,
47679.105915171785,
14130.01460673544,
48400.939321371276,
14714.801284683483,
-9650.464759378563,
-57391.84915603173,
-7249.958103471297,
-58226.95924387508,
-5082.082168062301,
-58745.47381533096,
-63939.909793905674,
15155.582389704374,
-63781.97553502955,
15037.11344237593,
-65311.39108408277,
15343.059647357972,
-5848.2556516926925,
-31139.67098988675,
317.32328031093675,
-36811.17803062407,
-812.6531797336165,
-36621.07177150081,
-3364.6381580844895,
-34954.03004912029,
-52564.38671359332,
-3600.7938606276584,
-58093.41581969953,
-4872.609255570671,
-59668.83618647987,
-5828.29321364815,
14353.60218457671,
-5228.363965939694,
13841.579397954565,
-4650.89050636443,
9137.396816561348,
1036.6629270363055,
8610.296312929777,
6139.780821150885,
-7055.315970087351,
46568.89864530167,
-549.2613965357859,
40189.53608848613,
2300.4279681102403,
49413.6690830616,
55435.82976249409,
28866.760874538086,
55192.80876167619,
27631.122043076637,
50532.24048212488,
31651.373637217555,
-49374.35589090375,
51743.92736162846,
-47508.15225702733,
50894.0772057776,
-50682.16982805728,
54730.606260802306,
-50920.08172662605,
53139.583948321655,
45260.20728762291,
4527.564954490968,
48517.03233951705,
12189.838122257905,
46124.822155460206,
10814.215470535108,
54828.216215604654,
14090.173961864257,
44771.72815631704,
-38155.22830457595,
40575.91154447274,
-40869.613927092214,
40875.303023973545,
-38550.35052437827,
45065.28856600735,
-39694.9360220942,
15683.489154164097,
43498.596550403585,
23392.984508151996,
49508.0115361974,
31539.806796075267,
17528.07416632102,
31791.109097684202,
18452.718659632777,
-23000.113733128106,
5502.854897138503,
-18094.479708501316,
-1477.9959109331921,
-11357.201200332272,
984.4075834326218,
-9345.838925153008,
1497.5246961748412,
-55479.287132797836,
16890.74546327388,
-52287.397277835524,
11323.02179734331,
10818.487974743519,
7195.558456095547,
9714.158308423997,
5524.004040319631,
3850.7591574230764,
12912.134627293335});
auto linestring2_offsets = make_device_vector<int32_t>(
{0, 2, 4, 6, 8, 10, 13, 15, 17, 20, 23, 25, 29, 33, 35, 37, 41,
45, 47, 51, 53, 56, 59, 63, 66, 69, 71, 73, 76, 79, 82, 84, 86, 89,
93, 96, 98, 100, 103, 105, 107, 109, 113, 116, 119, 123, 126, 129, 133, 137, 139,
143, 147, 149, 151, 154, 156, 159, 163, 166, 168, 170, 174, 178, 181, 183, 187, 191,
195, 197, 200, 203, 205, 209, 213, 216, 220, 224, 226, 229, 233, 236, 239, 241, 245,
248, 250, 252, 254, 256, 258, 260, 262, 264, 267, 269, 271, 275, 279, 281, 283});
auto linestring2_points_xy = make_device_vector<T>({24046.170375947084,
27878.56737867571,
20614.007047185743,
26489.74880629428,
48381.39607717942,
-8366.313156569413,
53346.77764665915,
-2066.3869793077383,
4365.496374409238,
-59857.47177852941,
1671.0269165650761,
-54931.9723439855,
60135.10576713836,
38267.53117681052,
58117.0215375236,
36251.55819542643,
-51494.78094358275,
-35492.093406511354,
-59291.16312346822,
-30996.522241808714,
17527.070262173787,
-8086.285571402303,
16140.128075758206,
-8722.081551830386,
21178.29035078248,
-10309.220371703479,
-46247.99797412497,
-61650.13799282254,
-41770.15815787812,
-57748.869143045675,
52439.4128584852,
36589.77853063609,
50908.38296602024,
42382.411142883866,
64834.271974236326,
-42009.03475077734,
61946.67345113476,
-43330.160502115265,
62022.52832061858,
-43384.801359486424,
34288.18665219756,
54315.73045932353,
28300.340620382718,
51572.7217483208,
27656.378043110635,
49660.694514521245,
30794.000810035635,
-17613.940599695612,
32431.166581550326,
-25461.00124870416,
33756.666022670746,
2930.21018621228,
29664.709989066603,
7242.93476191668,
28856.873418914183,
7089.2529879860085,
36401.141148038514,
7935.493948240266,
17079.944290857253,
-16918.249798314413,
13233.118633426348,
-14646.772596539959,
18010.65672629887,
-15149.208298184116,
21733.55299266447,
-14858.399234970673,
-17589.12911703354,
8582.92848550067,
-13615.42999872126,
9399.867477813053,
-16962.899142052956,
65388.53291753703,
-14652.153991738582,
60708.706373685935,
21114.93723313787,
-47038.67484287539,
12910.922082281972,
-44436.974813653,
3453.1479188972626,
-46995.81345855274,
9769.675794028683,
-49609.90494990711,
1835.0514383492991,
48347.77610172224,
7756.834125617577,
44246.251316360154,
7640.602544577206,
47019.96704512191,
13341.58730161298,
42963.21484589453,
-28356.501919974988,
-63963.528608225024,
-28174.220475611586,
-65536.0,
46825.329124044074,
9787.392704550977,
44931.59733150601,
13439.672239478117,
38981.41926874932,
14496.797392844519,
47795.98186123269,
10148.60153259868,
-11635.295606788517,
-22651.800929712503,
-9497.235815058624,
-16649.619216575462,
62099.48615805716,
4650.1450472288125,
65535.0,
5266.110859827297,
65535.0,
3936.628491570741,
-21737.429366590455,
-53166.445914731725,
-29042.47786349059,
-49617.99069091295,
-31559.31294702657,
-47231.27985078154,
50336.084698268794,
8788.390044775617,
54641.49898855221,
17752.918413051135,
54523.92417903646,
17785.48180855107,
59810.65384878393,
10113.020826958591,
26109.768995279854,
-26392.86781490936,
33260.44533620665,
-31199.62771961264,
32718.50253715998,
-23532.925723013777,
-17046.478062460723,
57219.46266513846,
-13637.902612846676,
60642.27166155047,
-4048.4940472536837,
61672.0437816363,
-1295.089691202047,
-41852.75719372246,
-7280.143953298165,
-43849.18942821618,
23307.510964401692,
-717.0576789254337,
21057.78812228635,
-2232.2731039226383,
61422.584748784095,
-22610.261973542678,
64125.26236976497,
-19523.462020800576,
63035.70068773205,
-18869.673007678663,
13293.405087485866,
-2103.483618004,
8301.321717837485,
-10147.547174846575,
5998.566973034347,
-16730.549997477177,
56807.6229253363,
-27317.888774417457,
57284.20136469141,
-27086.391416319588,
50134.09712451558,
-22462.000404223618,
62815.690002302246,
64266.97812828068,
65535.0,
65181.25034103983,
18587.476388271883,
-15484.952003835955,
12698.56647818971,
-18101.653694566507,
-11373.280290722301,
17916.24799952947,
-8161.778140116089,
24701.144709586413,
-8351.822845788342,
16320.106016260504,
47561.334575670524,
-61771.384861674625,
48323.03876944549,
-52782.31111036583,
47791.130474422665,
-51611.64259346673,
51987.019421589604,
-58989.588758878,
-19455.18463768006,
-7478.666862188162,
-23739.805394183597,
-11380.37022343936,
-22568.658462124997,
-12709.082125210938,
23024.079178510918,
5900.72118584835,
28644.583218064923,
6395.841589041828,
7298.377778265756,
-55978.826431399255,
3625.7721728530732,
-55062.60168794985,
-21594.37878249857,
37912.85012154847,
-22515.531339327168,
38262.034642766,
-20627.42673352121,
34956.5884614418,
6099.222612896439,
-35145.05363149654,
8638.445704296702,
-35939.357720932756,
32011.353490737194,
20628.088617133108,
33208.75937007324,
11686.499722223638,
926.164443453119,
-24627.362833606363,
5399.2313731423565,
-31482.750775167715,
28186.645319993637,
31249.7777028766,
28427.65541715838,
40956.78233333402,
28433.54857881469,
41382.55735505147,
28309.21054975733,
40949.902974637465,
49744.365575383126,
-10.964158675378712,
41951.7110218391,
4770.269588717389,
40709.44234829844,
3198.097209205037,
59428.37014680178,
14411.554889602106,
60774.58995358354,
11842.033811629492,
57864.97505832654,
9460.225339476907,
-12909.579379351642,
55717.70516195832,
-14169.062767062256,
53617.874969892895,
-9472.376817936885,
54665.959995777615,
-8594.555656534549,
53988.3093805043,
43445.5342784347,
41378.23077159966,
44146.51386658679,
40781.74245924522,
44254.395924099306,
40657.70325237871,
56695.86940969313,
-29453.542015459017,
57328.3459955809,
-28477.80164078998,
59869.09421652202,
-33718.83540943996,
-48476.01256692005,
-29773.72523753837,
-40572.476190618385,
-31506.14700839999,
-41372.611441455665,
-31968.71507990374,
-38102.79223698782,
-34365.65716442856,
-34160.875071055634,
52633.69733453568,
-31851.944660451976,
50296.82323369251,
-33560.36758089234,
51932.64482266117,
-38956.59298786371,
51395.3773978117,
47875.729875354155,
-42824.239844062744,
47054.15007723312,
-48565.279343794704,
-15763.28154735428,
-29759.144315022422,
-15022.415565328583,
-28573.755091528295,
-15505.259361620036,
-29102.584349813173,
-19433.918706189022,
-26602.17892560728,
21039.330729276393,
-28092.517122859063,
25459.011149795857,
-30812.128281190624,
24228.2200937306,
-32209.51925460922,
24172.896324114823,
-31934.77114210906,
37641.61613795927,
-16784.00232362718,
40093.808079273986,
-16102.651271585919,
-64986.04229495289,
35908.33715749516,
-65536.0,
30399.598745360658,
28865.9861058433,
34047.384049482804,
31404.205373670076,
28209.48536627418,
32824.92139989007,
31638.569927646782,
44076.96662980942,
-43893.614732363516,
42816.334617183755,
-49376.46085597309,
-2337.065372176352,
34161.781762612896,
-2454.820165021252,
34097.1586408793,
-21.24489065693888,
25069.348380772386,
25862.23076924747,
18388.771898399136,
19792.249382429145,
19068.829437310942,
19725.81703503653,
19711.266488167785,
13486.339170409647,
24161.905632044534,
-14132.32043340936,
44472.64135889089,
-13264.825037065333,
43720.18641032237,
-19408.894071066446,
48340.64725467226,
61758.285121524066,
6192.966639155318,
61694.84484358259,
6203.925100411371,
61864.79059036865,
50177.877934877455,
65535.0,
47460.44816783662,
-6015.210967517021,
-12024.648545975433,
-625.9021770409745,
-4535.826811613984,
-1591.306712085287,
-3650.5896577858566,
3500.835626990062,
-5506.66998864992,
52952.65614611846,
29128.118385679612,
47855.49296434603,
33226.99065949976,
45493.81677973004,
23780.999647643548,
43215.72762748768,
28153.639507364693,
-62101.353403045774,
78.10279978545441,
-61218.466272761565,
5285.053409188442,
-61234.41962391241,
5290.62055375181,
21279.822206688157,
60345.148716865806,
28494.696527078828,
59151.976112230004,
23243.054165080714,
-50613.88913731222,
22547.3541411588,
-43699.717849091336,
15981.433995230766,
-39309.64770588452,
25826.998040730832,
-39663.51573174535,
-57172.87410962715,
20706.3739822825,
-54766.5759124097,
21403.946896398676,
-52573.1116877078,
22086.225322397677,
-49403.2785052861,
26273.919710552575,
-7186.542641911306,
-61710.11359807797,
-6831.412373191683,
-60698.66473027073,
-5756.376457916045,
-62824.68291452278,
3071.2106591016236,
-61261.88209984583,
-40420.610893629855,
18127.01517363607,
-48596.10517985245,
19695.781188654408,
31670.60357638674,
-41486.82735240817,
28210.377929556533,
-41060.330490692075,
23561.64629790607,
-45516.04807930786,
-7393.259429801445,
40633.40566135118,
-7262.980859354975,
41663.87208196797,
-14498.642533421951,
38449.17335973677,
-34278.03300122521,
-56644.6926276484,
-27990.859726387403,
-63116.90663080004,
-35069.67232490826,
37361.362547205834,
-37033.13416444959,
30364.58784041123,
-37012.08647477349,
30681.304342515174,
-40242.36130845048,
28855.462978012318,
32002.517735259913,
-21987.243717104902,
30237.44459095604,
-27379.028811674485,
31104.766970006913,
-27074.127128785443,
25197.350474127827,
-33362.541325203565,
-41345.515497687134,
-58053.93959030788,
-42036.75176539078,
-61657.50738405434,
-37844.484580749326,
-63873.143833855625,
-63374.289355131164,
37016.129171396096,
-63381.35611551266,
33524.920248630624,
-62896.82969782667,
33784.191693610635,
-65536.0,
39523.342546361375,
19624.504208243205,
-58150.579505434085,
26889.54650881527,
-57528.51151392309,
27539.646814152253,
-56378.35863513876,
26048.399472263092,
-54132.85083611531,
56254.770257432174,
45463.00317181047,
56748.84925441912,
43746.11772809386,
9885.400008618206,
23991.38982378789,
11165.624242290589,
24328.329001705166,
14734.845074957582,
24658.683567616314,
64190.81654132414,
-9205.219837602555,
61300.439943480895,
-12202.040491158052,
65535.0,
-8368.457799985794,
65535.0,
-3823.856228930549,
39049.40622870173,
-25743.589685013503,
35265.00781139653,
-24495.380332734436,
35113.170257716505,
-24633.63627818454,
-39954.000140931545,
-58013.64463594009,
-35513.47414803935,
-65536.0,
-34441.82917511126,
-65536.0,
34088.60614329163,
43594.20653120625,
28700.380052950874,
42070.82051457739,
-36862.33271057148,
8307.234739860229,
-32859.01583612004,
10956.658157004455,
-31191.871795637373,
15817.792373324339,
-32003.331177652333,
20551.44779746299,
-13107.83700891627,
42872.525866358264,
-14688.500860708387,
38601.73767513557,
-18245.151473017104,
33305.31165731295,
-32525.725628515836,
21915.76596169251,
-33993.91682329715,
22187.083798396245,
-20285.86810731778,
8878.050464641972,
-20033.131856054162,
7329.012948283676,
27300.596012974405,
-8923.000585077694,
26442.988504072695,
-5957.730299055878,
51574.33506953686,
42988.068045101856,
48117.52341383863,
41995.973894229064,
-21268.443508450517,
606.5265997462848,
-24169.969300778987,
4584.574914234327,
-333.7059961781342,
-15000.66037914269,
1154.802032476863,
-23481.51835062977,
14199.246880886509,
-34169.010785194405,
20052.224683135122,
-27270.698407036958,
9983.515767545046,
-47272.24666691125,
11151.159484611626,
-45805.26551921326,
-56914.308516713114,
37722.89763812795,
-54641.0075204614,
42314.87487608766,
-59020.748909382295,
39496.29702855225,
44354.7875333885,
53499.2552621721,
45229.63048249438,
47617.793038744414,
17233.635105441615,
38604.48437014686,
22050.24381358763,
44812.19238923583,
-28857.15840988976,
-49424.475982191696,
-27129.837207157525,
-45186.618133268355,
-27069.304704059105,
-45232.76215178083,
-23631.070550460405,
-54597.0418612454,
-10729.591221458599,
-12119.938636133666,
-8664.132241471627,
-15205.054401436506,
-12718.241381101057,
-17599.196968326814,
-14303.205344482918,
-18083.072472929212,
55134.27218389536,
56421.5370066538,
55223.4192757591,
56480.56370818126,
35717.66938371734,
-59201.01835964643,
35472.01653855634,
-59182.15595508969});
auto expected = make_device_vector<T>(
{22000.86425379464, 66907.56415814416, 91319.97744223749, 85968.18301126428,
102672.3263797747, 65694.82522031936, 23155.596407172834, 69965.78080466804,
74404.84663547449, 50401.990020141246, 86674.09733792665, 78620.63597017915,
50270.741668061564, 21742.759144551062, 57053.338441131185, 59274.33513507705,
48859.389221588026, 81538.69583988942, 102451.30976584884, 48907.78040391256,
2541.1783777563724, 54018.73837654963, 80019.79050636332, 99125.18435170795,
86909.77084040688, 100366.96181026987, 68313.25509221756, 97214.36651018754,
60564.99623503783, 79060.78098596593, 120581.50538980225, 42683.374059987655,
72540.83585301196, 97288.29179292868, 13733.85425546725, 15638.255020170804,
99285.77366088502, 36490.14927299419, 22055.190136582223, 59756.41455959068,
55999.06431045312, 34499.301972964764, 40783.02779733117, 110287.1568555378,
66432.78557813511, 13775.437319014114, 84497.96964551898, 25978.924986056714,
62408.80191071194, 93243.74615580632, 52325.4457234104, 79966.38779743231,
12679.929187884523, 73553.57489706302, 73768.1449667809, 32163.1673140078,
76843.7399743497, 62642.67444253966, 7647.299340786608, 70644.00936419012,
75372.8193039762, 67974.71683210952, 38255.30745023753, 86968.76019213336,
134523.96397533367, 64474.156010664876, 59565.33783639761, 80474.25882097102,
38173.63396698884, 47219.681710204335, 80438.60559838371, 107397.04958322046,
38840.989826087316, 92404.38320717831, 142972.7142246719, 120743.00851595176,
88624.62602444092, 80480.41611758419, 96883.04928998687, 39384.08522694212,
93051.51572055934, 106136.58472613667, 35435.02384720026, 7045.002778172422,
61903.57835829537, 82540.74978755743, 43930.005897185314, 38805.25027105973,
110525.61810095713, 30289.12339639058, 55190.61741153193, 65184.895015007314,
113100.29945781764, 105574.82641833455, 85774.24359854191, 2878.1066075084723,
85871.70969639975, 12523.482980018343, 116504.46834362095, 69644.48579719076});
auto got = rmm::device_vector<T>(expected.size());
auto linestring1_points_it = make_vec_2d_iterator(linestring1_points_xy.begin());
auto linestring2_points_it = make_vec_2d_iterator(linestring2_points_xy.begin());
auto mlinestrings1 = make_multilinestring_range(num_pairs,
thrust::make_counting_iterator(0),
linestring1_offsets.size() - 1,
linestring1_offsets.begin(),
linestring1_points_xy.size() / 2,
linestring1_points_it);
auto mlinestrings2 = make_multilinestring_range(num_pairs,
thrust::make_counting_iterator(0),
linestring2_offsets.size() - 1,
linestring2_offsets.begin(),
linestring2_points_xy.size() / 2,
linestring2_points_it);
auto ret = pairwise_linestring_distance(mlinestrings1, mlinestrings2, got.begin());
if constexpr (std::is_same_v<T, double>)
CUSPATIAL_EXPECT_VECTORS_EQUIVALENT(got, expected);
else
// allow error up to machine epsilon scaled by the max range of input coordinates
CUSPATIAL_EXPECT_VECTORS_EQUIVALENT(
got, expected, 65536.0f * 2 * std::numeric_limits<float>::epsilon());
EXPECT_EQ(expected.size(), std::distance(got.begin(), ret));
}
| 0 |
rapidsai_public_repos/cuspatial/cpp/tests | rapidsai_public_repos/cuspatial/cpp/tests/distance/point_distance_test.cpp | /*
* Copyright (c) 2022-2023, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <cuspatial_test/geometry_fixtures.hpp>
#include <cuspatial/distance.hpp>
#include <cuspatial/error.hpp>
#include <optional>
using namespace cuspatial;
using namespace cuspatial::test;
using namespace cudf;
using namespace cudf::test;
template <typename T>
struct PairwisePointDistanceTest : public EmptyGeometryColumnFixture<T> {};
using TestTypes = ::testing::Types<float, double>;
TYPED_TEST_CASE(PairwisePointDistanceTest, TestTypes);
TYPED_TEST(PairwisePointDistanceTest, SingleToSingleEmpty)
{
auto got = pairwise_point_distance(this->empty_point(), this->empty_point());
auto expect = fixed_width_column_wrapper<TypeParam>{};
CUDF_TEST_EXPECT_COLUMNS_EQUIVALENT(expect, *got);
}
TYPED_TEST(PairwisePointDistanceTest, SingleToMultiEmpty)
{
auto got = pairwise_point_distance(this->empty_point(), this->empty_multipoint());
auto expect = fixed_width_column_wrapper<TypeParam>{};
CUDF_TEST_EXPECT_COLUMNS_EQUIVALENT(expect, *got);
}
TYPED_TEST(PairwisePointDistanceTest, MultiToSingleEmpty)
{
auto got = pairwise_point_distance(this->empty_point(), this->empty_multipoint());
auto expect = fixed_width_column_wrapper<TypeParam>{};
CUDF_TEST_EXPECT_COLUMNS_EQUIVALENT(expect, *got);
}
TYPED_TEST(PairwisePointDistanceTest, MultiToMultiEmpty)
{
auto got = pairwise_point_distance(this->empty_multipoint(), this->empty_multipoint());
auto expect = fixed_width_column_wrapper<TypeParam>{};
CUDF_TEST_EXPECT_COLUMNS_EQUIVALENT(expect, *got);
}
struct PairwisePointDistanceFailOnSizeTest : public EmptyAndOneGeometryColumnFixture {};
TEST_F(PairwisePointDistanceFailOnSizeTest, SizeMismatch)
{
EXPECT_THROW(pairwise_point_distance(this->empty_point(), this->one_point()),
cuspatial::logic_error);
}
TEST_F(PairwisePointDistanceFailOnSizeTest, SizeMismatch2)
{
EXPECT_THROW(pairwise_point_distance(this->one_point(), this->empty_multipoint()),
cuspatial::logic_error);
}
struct PairwisePointDistanceFailOnTypeTest : public EmptyGeometryColumnFixtureMultipleTypes {};
TEST_F(PairwisePointDistanceFailOnTypeTest, CoordinateTypeMismatch)
{
EXPECT_THROW(pairwise_point_distance(EmptyGeometryColumnBase<float>::empty_point(),
EmptyGeometryColumnBase<double>::empty_point()),
cuspatial::logic_error);
}
TEST_F(PairwisePointDistanceFailOnTypeTest, GeometryTypeMismatch)
{
EXPECT_THROW(pairwise_point_distance(EmptyGeometryColumnBase<float>::empty_point(),
EmptyGeometryColumnBase<float>::empty_polygon()),
cuspatial::logic_error);
}
| 0 |
rapidsai_public_repos/cuspatial/cpp/tests | rapidsai_public_repos/cuspatial/cpp/tests/distance/linestring_polygon_distance_test.cu | /*
* Copyright (c) 2023, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <cuspatial_test/base_fixture.hpp>
#include <cuspatial_test/vector_equality.hpp>
#include <cuspatial_test/vector_factories.cuh>
#include <cuspatial/distance.cuh>
#include <cuspatial/geometry/vec_2d.hpp>
#include <cuspatial/iterator_factory.cuh>
#include <cuspatial/range/range.cuh>
#include <rmm/cuda_stream_view.hpp>
#include <rmm/exec_policy.hpp>
#include <rmm/mr/device/device_memory_resource.hpp>
#include <initializer_list>
using namespace cuspatial;
using namespace cuspatial::test;
template <typename T>
struct PairwiseLinestringPolygonDistanceTest : public BaseFixture {
rmm::cuda_stream_view stream() { return rmm::cuda_stream_default; }
rmm::mr::device_memory_resource* mr() { return rmm::mr::get_current_device_resource(); }
void run_single(std::initializer_list<std::size_t> multilinestring_geometry_offsets,
std::initializer_list<std::size_t> multilinestring_part_offsets,
std::initializer_list<vec_2d<T>> multilinestring_coordinates,
std::initializer_list<std::size_t> multipolygon_geometry_offsets,
std::initializer_list<std::size_t> multipolygon_part_offsets,
std::initializer_list<std::size_t> multipolygon_ring_offsets,
std::initializer_list<vec_2d<T>> multipolygon_coordinates,
std::initializer_list<T> expected)
{
auto multilinestrings = make_multilinestring_array(
multilinestring_geometry_offsets, multilinestring_part_offsets, multilinestring_coordinates);
auto multipolygons = make_multipolygon_array(multipolygon_geometry_offsets,
multipolygon_part_offsets,
multipolygon_ring_offsets,
multipolygon_coordinates);
auto got = rmm::device_uvector<T>(multilinestrings.size(), stream());
auto ret = pairwise_linestring_polygon_distance(
multilinestrings.range(), multipolygons.range(), got.begin(), stream());
auto d_expected = make_device_vector(expected);
CUSPATIAL_EXPECT_VECTORS_EQUIVALENT(got, d_expected);
EXPECT_EQ(ret, got.end());
}
};
using TestTypes = ::testing::Types<float, double>;
TYPED_TEST_CASE(PairwiseLinestringPolygonDistanceTest, TestTypes);
// Inputs are empty columns
TYPED_TEST(PairwiseLinestringPolygonDistanceTest, ZeroPairs)
{
using T = TypeParam;
using P = vec_2d<T>;
CUSPATIAL_RUN_TEST(this->run_single,
{0},
{0},
std::initializer_list<P>{},
{0},
{0},
{0},
std::initializer_list<P>{},
{});
}
// One Pair Test matrix:
// 1. One pair, one part multilinestring, one part, one ring multipolygon (111)
// 2. One pair, one part multilinestring, one part, two ring multipolygon (112)
// 3. One pair, one part multilinestring, two part, two ring multipolygon (122)
// 4. One pair, two part multilinestring, two part, two ring multipolygon (222)
// For each of the above, test the following:
// 1. Disjoint
// 2. Contains
// 3. Crosses
TYPED_TEST(PairwiseLinestringPolygonDistanceTest, OnePair111Disjoint)
{
using T = TypeParam;
using P = vec_2d<T>;
CUSPATIAL_RUN_TEST(this->run_single,
{0, 1},
{0, 4},
{P{0, 0}, P{1, 1}, P{2, 2}, P{3, 3}},
{0, 1},
{0, 1},
{0, 4},
{P{-1, -1}, P{-2, -2}, P{-2, -1}, P{-1, -1}},
{std::sqrt(T{2})});
}
TYPED_TEST(PairwiseLinestringPolygonDistanceTest, OnePair111Contains)
{
using T = TypeParam;
using P = vec_2d<T>;
CUSPATIAL_RUN_TEST(
this->run_single,
{0, 1},
{0, 4},
{P{0, 0}, P{1, 1}, P{2, 2}, P{3, 3}},
{0, 1},
{0, 1},
{0, 5},
{P{-1, -1}, P{5, -1}, P{5, 5}, P{-1, 5}, P{-1, -1}}, // Polygon contains linestring
{0});
}
TYPED_TEST(PairwiseLinestringPolygonDistanceTest, OnePair111Crosses)
{
using T = TypeParam;
using P = vec_2d<T>;
CUSPATIAL_RUN_TEST(this->run_single,
{0, 1},
{0, 4},
{P{0, 0}, P{1, 1}, P{2, 2}, P{3, 3}},
{0, 1},
{0, 1},
{0, 4},
{P{-1, 0}, P{1, 0}, P{0, 1}, P{-1, 0}},
{0});
}
TYPED_TEST(PairwiseLinestringPolygonDistanceTest, OnePair112Contains)
{
using T = TypeParam;
using P = vec_2d<T>;
CUSPATIAL_RUN_TEST(this->run_single,
{0, 1},
{0, 4},
{P{0, 0}, P{1, 1}, P{2, 2}, P{3, 3}},
{0, 1},
{0, 2},
{0, 5, 9},
{P{-1, -1},
P{5, -1},
P{5, 5},
P{-1, 5},
P{-1, -1},
P{0, 0},
P{0, -1},
P{-1, -1},
P{-1, 0},
P{0, 0}},
{0});
}
TYPED_TEST(PairwiseLinestringPolygonDistanceTest, OnePair112Disjoint)
{
using T = TypeParam;
using P = vec_2d<T>;
CUSPATIAL_RUN_TEST(this->run_single,
{0, 1},
{0, 4},
{P{0, 0}, P{1, 1}, P{2, 2}, P{2, 3}},
{0, 1},
{0, 2},
{0, 5, 10},
{P{-1, -1},
P{-4, -1},
P{-4, -4},
P{-1, -4},
P{-1, -1},
P{-2, -2},
P{-3, -2},
P{-3, -3},
P{-2, -3},
P{-2, -2}},
{std::sqrt(T{2})});
}
TYPED_TEST(PairwiseLinestringPolygonDistanceTest, OnePair112Crosses)
{
using T = TypeParam;
using P = vec_2d<T>;
CUSPATIAL_RUN_TEST(
this->run_single,
{0, 1},
{0, 4},
{P{0, 0}, P{1, 1}, P{2, 2}, P{2, 3}},
{0, 1},
{0, 2},
{0, 4, 8},
{P{-1, -1}, P{-2, -2}, P{-2, -1}, P{-1, -1}, P{0, 1}, P{2, 1}, P{2, 0}, P{0, 1}},
{0.0});
}
TYPED_TEST(PairwiseLinestringPolygonDistanceTest, OnePair122Disjoint)
{
using T = TypeParam;
using P = vec_2d<T>;
CUSPATIAL_RUN_TEST(
this->run_single,
{0, 1},
{0, 4},
{P{0, 0}, P{1, 1}, P{2, 2}, P{3, 3}},
{0, 2},
{0, 1, 2},
{0, 4, 9},
{P{-1, -1}, P{-2, -2}, P{-2, -1}, P{-1, -1}, P{3, 4}, P{3, 5}, P{4, 5}, P{4, 4}, P{3, 4}},
{1.0});
}
TYPED_TEST(PairwiseLinestringPolygonDistanceTest, OnePair122Contains)
{
using T = TypeParam;
using P = vec_2d<T>;
CUSPATIAL_RUN_TEST(this->run_single,
{0, 1},
{0, 4},
{P{0, 0}, P{1, 1}, P{2, 2}, P{3, 3}},
{0, 2},
{0, 1, 2},
{0, 4, 9},
{
P{-1, -1},
P{-2, -2},
P{-2, -1},
P{-1, -1},
P{-1, -1},
P{5, -1},
P{5, 5},
P{-1, 5},
P{-1, -1} // includes the multilinestring
},
{0});
}
TYPED_TEST(PairwiseLinestringPolygonDistanceTest, OnePair122Crosses)
{
using T = TypeParam;
using P = vec_2d<T>;
CUSPATIAL_RUN_TEST(
this->run_single,
{0, 1},
{0, 4},
{P{0, 0}, P{1, 1}, P{2, 2}, P{3, 3}},
{0, 2},
{0, 1, 2},
{0, 4, 8},
{P{-1, -1}, P{-2, -2}, P{-2, -1}, P{-1, -1}, P{0, 1}, P{2, 1}, P{2, 0}, P{0, 1}},
{0});
}
TYPED_TEST(PairwiseLinestringPolygonDistanceTest, OnePair222Disjoint)
{
using T = TypeParam;
using P = vec_2d<T>;
CUSPATIAL_RUN_TEST(
this->run_single,
{0, 2},
{0, 2, 4},
{P{1, 1}, P{0, 0}, P{4, 6}, P{4, 7}},
{0, 2},
{0, 1, 2},
{0, 4, 9},
{P{-1, -1}, P{-2, -2}, P{-2, -1}, P{-1, -1}, P{3, 4}, P{3, 5}, P{4, 5}, P{4, 4}, P{3, 4}},
{1.0});
}
TYPED_TEST(PairwiseLinestringPolygonDistanceTest, OnePair222Contains)
{
using T = TypeParam;
using P = vec_2d<T>;
CUSPATIAL_RUN_TEST(this->run_single,
{0, 2},
{0, 2, 4},
{P{1, 1}, P{0, 0}, P{6, 6}, P{6, 7}},
{0, 2},
{0, 1, 2},
{0, 4, 9},
{
P{-1, -1},
P{-2, -2},
P{-2, -1},
P{-1, -1},
P{-1, -1},
P{5, -1},
P{5, 5},
P{-1, 5},
P{-1, -1} // includes the multilinestring
},
{0});
}
TYPED_TEST(PairwiseLinestringPolygonDistanceTest, OnePair222Crosses)
{
using T = TypeParam;
using P = vec_2d<T>;
CUSPATIAL_RUN_TEST(
this->run_single,
{0, 2},
{0, 2, 4},
{P{0, 0}, P{1, 1}, P{-1, 0}, P{0, -1}},
{0, 2},
{0, 1, 2},
{0, 4, 8},
{P{-1, -1}, P{-2, -2}, P{-2, -1}, P{-1, -1}, P{0, 1}, P{2, 1}, P{2, 0}, P{0, 1}},
{0});
}
TYPED_TEST(PairwiseLinestringPolygonDistanceTest, TwoPairs)
{
using T = TypeParam;
using P = vec_2d<T>;
CUSPATIAL_RUN_TEST(this->run_single,
{0, 1, 2},
{0, 4, 7},
{P{0, 0}, P{1, 1}, P{2, 2}, P{3, 3}, P{10, 10}, P{11, 11}, P{12, 12}},
{0, 1, 2},
{0, 1, 2},
{0, 4, 9},
{P{-1, -1},
P{-2, -2},
P{-2, -1},
P{-1, -1},
P{-10, -10},
P{-10, -11},
P{-11, -11},
P{-11, -10},
P{-10, -10}},
{std::sqrt(T{2}), 20 * std::sqrt(T{2})});
}
TYPED_TEST(PairwiseLinestringPolygonDistanceTest, TwoPairs2)
{
using T = TypeParam;
using P = vec_2d<T>;
CUSPATIAL_RUN_TEST(
this->run_single,
{0, 1, 3},
{0, 4, 7, 9},
{P{0, 0}, P{1, 1}, P{2, 2}, P{3, 3}, P{10, 10}, P{11, 11}, P{12, 12}, P{20, 20}, P{20, 21}},
{0, 1, 3},
{0, 1, 2, 3},
{0, 4, 9, 13},
{P{-1, -1},
P{-2, -2},
P{-2, -1},
P{-1, -1},
P{-10, -10},
P{-10, -11},
P{-11, -11},
P{-11, -10},
P{-10, -10},
P{20, -10},
P{20, -20},
P{30, -20},
P{20, -10}},
{std::sqrt(T{2}), 10 * std::sqrt(T{5})});
}
TYPED_TEST(PairwiseLinestringPolygonDistanceTest, TwoPairsCrosses)
{
using T = TypeParam;
using P = vec_2d<T>;
CUSPATIAL_RUN_TEST(this->run_single,
{0, 1, 2},
{0, 4, 6},
{P{0, 0}, P{1, 1}, P{2, 2}, P{3, 3}, P{5, 5}, P{20, 20}},
{0, 1, 2},
{0, 1, 3},
{0, 4, 8, 12},
{P{-1, -1},
P{-2, -2},
P{-2, -1},
P{-1, -1},
P{0, 0},
P{20, 0},
P{0, 20},
P{0, 0},
P{5, 5},
P{15, 5},
P{5, 15},
P{5, 5}},
{std::sqrt(T{2}), 0.0});
}
// Empty Geometries Tests
/// Empty MultiLinestring vs Non-empty multipolygons
TYPED_TEST(PairwiseLinestringPolygonDistanceTest, ThreePairEmptyMultiLinestring)
{
using T = TypeParam;
using P = vec_2d<T>;
CUSPATIAL_RUN_TEST(this->run_single,
{0, 1, 1, 2},
{0, 4, 7},
{P{0, 0}, P{1, 1}, P{2, 2}, P{3, 3}, P{10, 10}, P{11, 11}, P{12, 12}},
{0, 1, 2, 3},
{0, 1, 2, 3},
{0, 4, 9, 14},
{P{-1, -1},
P{-2, -2},
P{-2, -1},
P{-1, -1},
P{-20, -20},
P{-20, -21},
P{-21, -21},
P{-21, -20},
P{-20, -20},
P{-10, -10},
P{-10, -11},
P{-11, -11},
P{-11, -10},
P{-10, -10}},
{std::sqrt(T{2}), std::numeric_limits<T>::quiet_NaN(), 20 * std::sqrt(T{2})});
}
/// Non-empty MultiLinestring vs Empty multipolygons
TYPED_TEST(PairwiseLinestringPolygonDistanceTest, ThreePairEmptyMultiPolygon)
{
using T = TypeParam;
using P = vec_2d<T>;
CUSPATIAL_RUN_TEST(this->run_single,
{0, 1, 2, 3},
{0, 4, 7, 10},
{P{0, 0},
P{1, 1},
P{2, 2},
P{3, 3},
P{20, 20},
P{21, 21},
P{22, 22},
P{10, 10},
P{11, 11},
P{12, 12}},
{0, 1, 1, 2},
{0, 1, 2},
{0, 4, 9},
{P{-1, -1},
P{-2, -2},
P{-2, -1},
P{-1, -1},
P{-10, -10},
P{-10, -11},
P{-11, -11},
P{-11, -10},
P{-10, -10}},
{std::sqrt(T{2}), std::numeric_limits<T>::quiet_NaN(), 20 * std::sqrt(T{2})});
}
/// FIXME: Empty MultiLinestring vs Empty multipolygons
/// This example fails at distance util, where point-polyogn intersection kernel doesn't handle
/// empty multipoint/multipolygons.
TYPED_TEST(PairwiseLinestringPolygonDistanceTest,
DISABLED_ThreePairEmptyMultiLineStringEmptyMultiPolygon)
{
using T = TypeParam;
using P = vec_2d<T>;
CUSPATIAL_RUN_TEST(this->run_single,
{0, 1, 1, 3},
{0, 4, 7},
{P{0, 0}, P{1, 1}, P{2, 2}, P{3, 3}, P{10, 10}, P{11, 11}, P{12, 12}},
{0, 1, 1, 2},
{0, 1, 2, 3},
{0, 4, 9, 14},
{P{-1, -1},
P{-2, -2},
P{-2, -1},
P{-1, -1},
P{-10, -10},
P{-10, -11},
P{-11, -11},
P{-11, -10},
P{-10, -10}},
{std::sqrt(T{2}), std::numeric_limits<T>::quiet_NaN(), 20 * std::sqrt(T{2})});
}
| 0 |
rapidsai_public_repos/cuspatial/cpp/tests | rapidsai_public_repos/cuspatial/cpp/tests/distance/linestring_distance_test.cpp | /*
* Copyright (c) 2022-2023, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <cuspatial_test/geometry_fixtures.hpp>
#include <cuspatial/distance.hpp>
#include <cuspatial/error.hpp>
#include <optional>
using namespace cuspatial;
using namespace cuspatial::test;
using namespace cudf;
using namespace cudf::test;
template <typename T>
struct PairwiseLineStringDistanceTest : public EmptyGeometryColumnFixture<T> {};
using TestTypes = ::testing::Types<float, double>;
TYPED_TEST_CASE(PairwiseLineStringDistanceTest, TestTypes);
TYPED_TEST(PairwiseLineStringDistanceTest, SingleToSingleEmpty)
{
auto got = pairwise_linestring_distance(this->empty_linestring(), this->empty_linestring());
auto expect = fixed_width_column_wrapper<TypeParam>{};
CUDF_TEST_EXPECT_COLUMNS_EQUIVALENT(expect, *got);
}
TYPED_TEST(PairwiseLineStringDistanceTest, SingleToMultiEmpty)
{
auto got = pairwise_linestring_distance(this->empty_linestring(), this->empty_multilinestring());
auto expect = fixed_width_column_wrapper<TypeParam>{};
CUDF_TEST_EXPECT_COLUMNS_EQUIVALENT(expect, *got);
}
TYPED_TEST(PairwiseLineStringDistanceTest, MultiToSingleEmpty)
{
auto got = pairwise_linestring_distance(this->empty_multilinestring(), this->empty_linestring());
auto expect = fixed_width_column_wrapper<TypeParam>{};
CUDF_TEST_EXPECT_COLUMNS_EQUIVALENT(expect, *got);
}
TYPED_TEST(PairwiseLineStringDistanceTest, MultiToMultiEmpty)
{
auto got =
pairwise_linestring_distance(this->empty_multilinestring(), this->empty_multilinestring());
auto expect = fixed_width_column_wrapper<TypeParam>{};
CUDF_TEST_EXPECT_COLUMNS_EQUIVALENT(expect, *got);
}
struct PairwiseLineStringDistanceFailOnSizeTest : public EmptyAndOneGeometryColumnFixture {};
TEST_F(PairwiseLineStringDistanceFailOnSizeTest, SizeMismatch)
{
EXPECT_THROW(pairwise_linestring_distance(this->empty_linestring(), this->one_linestring()),
cuspatial::logic_error);
}
TEST_F(PairwiseLineStringDistanceFailOnSizeTest, SizeMismatch2)
{
EXPECT_THROW(pairwise_linestring_distance(this->one_linestring(), this->empty_multilinestring()),
cuspatial::logic_error);
}
struct PairwiseLineStringDistanceFailOnTypeTest : public EmptyGeometryColumnFixtureMultipleTypes {};
TEST_F(PairwiseLineStringDistanceFailOnTypeTest, CoordinateTypeMismatch)
{
EXPECT_THROW(pairwise_linestring_distance(EmptyGeometryColumnBase<float>::empty_linestring(),
EmptyGeometryColumnBase<double>::empty_linestring()),
cuspatial::logic_error);
}
TEST_F(PairwiseLineStringDistanceFailOnTypeTest, GeometryTypeMismatch)
{
EXPECT_THROW(pairwise_linestring_distance(EmptyGeometryColumnBase<float>::empty_linestring(),
EmptyGeometryColumnBase<float>::empty_polygon()),
cuspatial::logic_error);
}
| 0 |
rapidsai_public_repos/cuspatial/cpp/tests | rapidsai_public_repos/cuspatial/cpp/tests/distance/linestring_polygon_distance_test.cpp | /*
* Copyright (c) 2023, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <cuspatial_test/column_factories.hpp>
#include <cuspatial_test/geometry_fixtures.hpp>
#include <cuspatial_test/vector_equality.hpp>
#include <cuspatial/column/geometry_column_view.hpp>
#include <cuspatial/distance.hpp>
#include <cuspatial/error.hpp>
#include <cuspatial/geometry/vec_2d.hpp>
#include <cuspatial/types.hpp>
#include <cudf_test/column_utilities.hpp>
#include <cudf_test/column_wrapper.hpp>
#include <cudf/utilities/default_stream.hpp>
#include <rmm/cuda_stream_view.hpp>
#include <initializer_list>
#include <memory>
using namespace cuspatial;
using namespace cuspatial::test;
using namespace cudf;
using namespace cudf::test;
template <typename T>
struct PairwiseLinestringPolygonDistanceTest : EmptyGeometryColumnFixture<T> {
void run_single(geometry_column_view linestrings,
geometry_column_view polygons,
std::initializer_list<T> expected)
{
auto got = pairwise_linestring_polygon_distance(linestrings, polygons);
CUDF_TEST_EXPECT_COLUMNS_EQUIVALENT(*got, fixed_width_column_wrapper<T>(expected));
}
};
struct PairwiseLinestringPolygonDistanceFailOnSizeTest : EmptyAndOneGeometryColumnFixture {};
struct PairwiseLinestringPolygonDistanceFailOnTypeTest : EmptyGeometryColumnFixtureMultipleTypes {};
using TestTypes = ::testing::Types<float, double>;
TYPED_TEST_CASE(PairwiseLinestringPolygonDistanceTest, TestTypes);
TYPED_TEST(PairwiseLinestringPolygonDistanceTest, SingleToSingleEmpty)
{
CUSPATIAL_RUN_TEST(this->run_single, this->empty_linestring(), this->empty_polygon(), {});
};
TYPED_TEST(PairwiseLinestringPolygonDistanceTest, SingleToMultiEmpty)
{
CUSPATIAL_RUN_TEST(this->run_single, this->empty_linestring(), this->empty_multipolygon(), {});
};
TYPED_TEST(PairwiseLinestringPolygonDistanceTest, MultiToSingleEmpty)
{
CUSPATIAL_RUN_TEST(this->run_single, this->empty_multilinestring(), this->empty_polygon(), {});
};
TYPED_TEST(PairwiseLinestringPolygonDistanceTest, MultiToMultiEmpty)
{
CUSPATIAL_RUN_TEST(
this->run_single, this->empty_multilinestring(), this->empty_multipolygon(), {});
};
TEST_F(PairwiseLinestringPolygonDistanceFailOnSizeTest, SizeMismatch)
{
EXPECT_THROW(pairwise_linestring_polygon_distance(this->empty_linestring(), this->one_polygon()),
cuspatial::logic_error);
};
TEST_F(PairwiseLinestringPolygonDistanceFailOnTypeTest, CoordinateTypeMismatch)
{
EXPECT_THROW(
pairwise_linestring_polygon_distance(EmptyGeometryColumnBase<float>::empty_linestring(),
EmptyGeometryColumnBase<double>::empty_polygon()),
cuspatial::logic_error);
};
TEST_F(PairwiseLinestringPolygonDistanceFailOnTypeTest, WrongGeometryType)
{
EXPECT_THROW(
pairwise_linestring_polygon_distance(EmptyGeometryColumnBase<float>::empty_point(),
EmptyGeometryColumnBase<float>::empty_polygon()),
cuspatial::logic_error);
};
| 0 |
rapidsai_public_repos/cuspatial/cpp/tests | rapidsai_public_repos/cuspatial/cpp/tests/find/find_and_combine_segments_test.cu | /*
* Copyright (c) 2022, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <cuspatial_test/base_fixture.hpp>
#include <cuspatial_test/vector_equality.hpp>
#include <cuspatial_test/vector_factories.cuh>
#include <cuspatial/detail/find/find_and_combine_segment.cuh>
#include <cuspatial/geometry/segment.cuh>
#include <cuspatial/geometry/vec_2d.hpp>
#include <cuspatial/range/range.cuh>
#include <rmm/cuda_stream_view.hpp>
#include <rmm/device_vector.hpp>
using namespace cuspatial;
using namespace cuspatial::detail;
using namespace cuspatial::test;
template <typename OffsetArray, typename CoordinateArray>
class multisegment_array {
public:
multisegment_array(OffsetArray offsets, CoordinateArray coordinates)
: _offsets(offsets), _coordinates(coordinates)
{
}
auto offsets_range() { return range(_offsets.begin(), _offsets.end()); }
auto coordinates_range() { return range(_coordinates.begin(), _coordinates.end()); }
auto release() { return std::pair{std::move(_offsets), std::move(_coordinates)}; }
protected:
OffsetArray _offsets;
CoordinateArray _coordinates;
};
template <typename OffsetArray, typename CoordinateArray>
multisegment_array(OffsetArray, CoordinateArray)
-> multisegment_array<OffsetArray, CoordinateArray>;
template <typename IndexType, typename T>
auto make_segment_array(std::initializer_list<IndexType> offsets,
std::initializer_list<segment<T>> segments)
{
auto d_offsets = make_device_vector(offsets);
auto d_coords = make_device_vector(segments);
return multisegment_array{d_offsets, d_coords};
}
template <typename T>
struct FindAndCombineSegmentsTest : public BaseFixture {
rmm::cuda_stream_view stream() { return rmm::cuda_stream_default; }
template <typename MultiSegmentArray>
void run_single_test(MultiSegmentArray segments,
std::initializer_list<uint8_t> expected_flags,
std::initializer_list<segment<T>> expected_segment)
{
auto d_expected = make_device_vector(expected_flags);
auto d_expected_segments = make_device_vector(expected_segment);
auto flags = rmm::device_vector<uint8_t>(d_expected.size());
find_and_combine_segment(
segments.offsets_range(), segments.coordinates_range(), flags.begin(), this->stream());
auto [_, merged_segments] = segments.release();
expect_vec_2d_pair_equivalent(d_expected_segments, merged_segments);
CUSPATIAL_EXPECT_VECTORS_EQUIVALENT(d_expected, flags);
}
};
using TestTypes = ::testing::Types<float, double>;
TYPED_TEST_CASE(FindAndCombineSegmentsTest, TestTypes);
TYPED_TEST(FindAndCombineSegmentsTest, Simple1)
{
using T = TypeParam;
using index_t = std::size_t;
using P = vec_2d<T>;
using S = segment<T>;
auto segments = make_segment_array<index_t, T>(
{0, 3},
{S{P{0.0, 0.0}, P{0.0, 0.5}}, S{P{0.0, 0.25}, P{0.0, 0.75}}, S{P{0.0, 0.5}, P{0.0, 1.0}}});
CUSPATIAL_RUN_TEST(
this->run_single_test,
segments,
{0, 1, 1},
{S{P{0.0, 0.0}, P{0.0, 1.0}}, S{P{0.0, 0.25}, P{0.0, 0.75}}, S{P{0.0, 0.5}, P{0.0, 1.0}}});
}
TYPED_TEST(FindAndCombineSegmentsTest, Simple2)
{
using T = TypeParam;
using index_t = std::size_t;
using P = vec_2d<T>;
using S = segment<T>;
auto segments = make_segment_array<index_t, T>(
{0, 3},
{S{P{0.0, 0.0}, P{0.5, 0.0}}, S{P{0.25, 0.0}, P{0.75, 0.0}}, S{P{0.5, 0.0}, P{1.0, 0.0}}});
CUSPATIAL_RUN_TEST(
this->run_single_test,
segments,
{0, 1, 1},
{S{P{0.0, 0.0}, P{1.0, 0.0}}, S{P{0.25, 0.0}, P{0.75, 0.0}}, S{P{0.5, 0.0}, P{1.0, 0.0}}});
}
TYPED_TEST(FindAndCombineSegmentsTest, Simple3)
{
using T = TypeParam;
using index_t = std::size_t;
using P = vec_2d<T>;
using S = segment<T>;
auto segments = make_segment_array<index_t, T>(
{0, 3},
{S{P{0.0, 0.0}, P{0.5, 0.5}}, S{P{0.25, 0.25}, P{0.75, 0.75}}, S{P{0.5, 0.5}, P{1.0, 1.0}}});
CUSPATIAL_RUN_TEST(
this->run_single_test,
segments,
{0, 1, 1},
{S{P{0.0, 0.0}, P{1.0, 1.0}}, S{P{0.25, 0.25}, P{0.75, 0.75}}, S{P{0.5, 0.5}, P{1.0, 1.0}}});
}
TYPED_TEST(FindAndCombineSegmentsTest, Touching1)
{
using T = TypeParam;
using index_t = std::size_t;
using P = vec_2d<T>;
using S = segment<T>;
auto segments = make_segment_array<index_t, T>(
{0, 2}, {S{P{0.0, 0.0}, P{0.0, 0.5}}, S{P{0.0, 0.5}, P{0.0, 1.0}}});
CUSPATIAL_RUN_TEST(this->run_single_test,
segments,
{0, 1},
{S{P{0.0, 0.0}, P{0.0, 1.0}}, S{P{0.0, 0.5}, P{0.0, 1.0}}});
}
TYPED_TEST(FindAndCombineSegmentsTest, Touching2)
{
using T = TypeParam;
using index_t = std::size_t;
using P = vec_2d<T>;
using S = segment<T>;
auto segments = make_segment_array<index_t, T>(
{0, 2}, {S{P{0.0, 0.0}, P{0.5, 0.0}}, S{P{0.5, 0.0}, P{1.0, 0.0}}});
CUSPATIAL_RUN_TEST(this->run_single_test,
segments,
{0, 1},
{S{P{0.0, 0.0}, P{1.0, 0.0}}, S{P{0.5, 0.0}, P{1.0, 0.0}}});
}
TYPED_TEST(FindAndCombineSegmentsTest, Touching3)
{
using T = TypeParam;
using index_t = std::size_t;
using P = vec_2d<T>;
using S = segment<T>;
auto segments = make_segment_array<index_t, T>(
{0, 2}, {S{P{0.0, 0.0}, P{0.5, 0.5}}, S{P{0.5, 0.5}, P{1.0, 1.0}}});
CUSPATIAL_RUN_TEST(this->run_single_test,
segments,
{0, 1},
{S{P{0.0, 0.0}, P{1.0, 1.0}}, S{P{0.5, 0.5}, P{1.0, 1.0}}});
}
TYPED_TEST(FindAndCombineSegmentsTest, contains1)
{
using T = TypeParam;
using index_t = std::size_t;
using P = vec_2d<T>;
using S = segment<T>;
auto segments = make_segment_array<index_t, T>(
{0, 2}, {S{P{0.0, 0.0}, P{1.0, 1.0}}, S{P{0.25, 0.25}, P{0.75, 0.75}}});
CUSPATIAL_RUN_TEST(this->run_single_test,
segments,
{0, 1},
{S{P{0.0, 0.0}, P{1.0, 1.0}}, S{P{0.25, 0.25}, P{0.75, 0.75}}});
}
TYPED_TEST(FindAndCombineSegmentsTest, contains2)
{
using T = TypeParam;
using index_t = std::size_t;
using P = vec_2d<T>;
using S = segment<T>;
auto segments = make_segment_array<index_t, T>(
{0, 2}, {S{P{0.0, 0.0}, P{0.0, 1.0}}, S{P{0.0, 0.25}, P{0.0, 0.75}}});
CUSPATIAL_RUN_TEST(this->run_single_test,
segments,
{0, 1},
{S{P{0.0, 0.0}, P{0.0, 1.0}}, S{P{0.0, 0.25}, P{0.0, 0.75}}});
}
TYPED_TEST(FindAndCombineSegmentsTest, contains3)
{
using T = TypeParam;
using index_t = std::size_t;
using P = vec_2d<T>;
using S = segment<T>;
auto segments = make_segment_array<index_t, T>(
{0, 2}, {S{P{0.0, 0.0}, P{1.0, 0.0}}, S{P{0.25, 0.0}, P{0.75, 0.0}}});
CUSPATIAL_RUN_TEST(this->run_single_test,
segments,
{0, 1},
{S{P{0.0, 0.0}, P{1.0, 0.0}}, S{P{0.25, 0.0}, P{0.75, 0.0}}});
}
TYPED_TEST(FindAndCombineSegmentsTest, nooverlap1)
{
using T = TypeParam;
using index_t = std::size_t;
using P = vec_2d<T>;
using S = segment<T>;
auto segments = make_segment_array<index_t, T>(
{0, 2}, {S{P{0.0, 0.0}, P{1.0, 0.0}}, S{P{0.0, 1.0}, P{0.0, 2.0}}});
CUSPATIAL_RUN_TEST(this->run_single_test,
segments,
{0, 0},
{S{P{0.0, 0.0}, P{1.0, 0.0}}, S{P{0.0, 1.0}, P{0.0, 2.0}}});
}
TYPED_TEST(FindAndCombineSegmentsTest, nooverlap2)
{
using T = TypeParam;
using index_t = std::size_t;
using P = vec_2d<T>;
using S = segment<T>;
auto segments = make_segment_array<index_t, T>(
{0, 2}, {S{P{0.0, 0.0}, P{1.0, 1.0}}, S{P{2.0, 2.0}, P{3.0, 3.0}}});
CUSPATIAL_RUN_TEST(this->run_single_test,
segments,
{0, 0},
{S{P{0.0, 0.0}, P{1.0, 1.0}}, S{P{2.0, 2.0}, P{3.0, 3.0}}});
}
TYPED_TEST(FindAndCombineSegmentsTest, nooverlap3)
{
using T = TypeParam;
using index_t = std::size_t;
using P = vec_2d<T>;
using S = segment<T>;
auto segments = make_segment_array<index_t, T>(
{0, 2}, {S{P{0.0, 0.0}, P{1.0, 1.0}}, S{P{0.0, 1.0}, P{1.0, 0.0}}});
CUSPATIAL_RUN_TEST(this->run_single_test,
segments,
{0, 0},
{S{P{0.0, 1.0}, P{1.0, 0.0}}, S{P{0.0, 0.0}, P{1.0, 1.0}}});
}
TYPED_TEST(FindAndCombineSegmentsTest, twospaces)
{
using T = TypeParam;
using index_t = std::size_t;
using P = vec_2d<T>;
using S = segment<T>;
auto segments = make_segment_array<index_t, T>({0, 2, 4},
{S{P{0.0, 0.0}, P{1.0, 1.0}},
S{P{1.0, 1.0}, P{2.0, 2.0}},
S{P{1.0, 1.0}, P{0.0, 0.0}},
S{P{2.0, 2.0}, P{1.0, 1.0}}});
CUSPATIAL_RUN_TEST(this->run_single_test,
segments,
{0, 1, 0, 1},
{S{P{0.0, 0.0}, P{2.0, 2.0}},
S{P{1.0, 1.0}, P{2.0, 2.0}},
S{P{0.0, 0.0}, P{2.0, 2.0}},
S{P{2.0, 2.0}, P{1.0, 1.0}}});
}
TYPED_TEST(FindAndCombineSegmentsTest, twospaces_non_contiguous_segments_with_empty)
{
using T = TypeParam;
using index_t = std::size_t;
using P = vec_2d<T>;
using S = segment<T>;
auto segments = make_segment_array<index_t, T>({0, 4, 4},
{S{P{1.0, 1.0}, P{2.0, 2.0}},
S{P{3.0, 3.0}, P{4.0, 4.0}},
S{P{0.0, 0.0}, P{1.0, 1.0}},
S{P{2.0, 2.0}, P{3.0, 3.0}}});
CUSPATIAL_RUN_TEST(this->run_single_test,
segments,
{0, 1, 1, 1},
{S{P{0.0, 0.0}, P{4.0, 4.0}},
S{P{1.0, 1.0}, P{2.0, 2.0}},
S{P{2.0, 2.0}, P{3.0, 3.0}},
S{P{3.0, 3.0}, P{4.0, 4.0}}});
}
TYPED_TEST(FindAndCombineSegmentsTest, onespace_non_contiguous_segments_overlaps)
{
using T = TypeParam;
using index_t = std::size_t;
using P = vec_2d<T>;
using S = segment<T>;
auto segments = make_segment_array<index_t, T>(
{0, 3},
{S{P{1.0, 1.0}, P{2.0, 2.0}}, S{P{4.0, 4.0}, P{5.0, 5.0}}, S{P{-1.0, -1.0}, P{4.0, 4.0}}});
CUSPATIAL_RUN_TEST(
this->run_single_test,
segments,
{0, 1, 1},
{S{P{-1.0, -1.0}, P{5.0, 5.0}}, S{P{1.0, 1.0}, P{2.0, 2.0}}, S{P{4.0, 4.0}, P{5.0, 5.0}}});
}
| 0 |
rapidsai_public_repos/cuspatial/cpp/tests | rapidsai_public_repos/cuspatial/cpp/tests/find/find_points_on_segments_test.cu | /*
* Copyright (c) 2022, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <cuspatial_test/base_fixture.hpp>
#include <cuspatial_test/vector_equality.hpp>
#include <cuspatial_test/vector_factories.cuh>
#include <rmm/cuda_stream_view.hpp>
#include <rmm/device_vector.hpp>
#include <cuspatial/detail/find/find_points_on_segments.cuh>
#include <cuspatial/geometry/vec_2d.hpp>
#include <cuspatial/range/range.cuh>
#include <initializer_list>
using namespace cuspatial;
using namespace cuspatial::detail;
using namespace cuspatial::test;
template <typename T>
struct FindPointOnSegmentTest : public BaseFixture {
rmm::cuda_stream_view stream() { return rmm::cuda_stream_default; }
template <typename IndexType>
void run_single(std::initializer_list<std::initializer_list<vec_2d<T>>> multipoints,
std::initializer_list<IndexType> segment_offsets,
std::initializer_list<segment<T>> segments,
std::initializer_list<uint8_t> expected_flags)
{
auto d_multipoints = make_multipoint_array(multipoints);
auto d_segment_offsets = make_device_vector<IndexType>(segment_offsets);
auto d_segments = make_device_vector<segment<T>>(segments);
rmm::device_vector<uint8_t> d_flags(d_multipoints.range().num_points());
find_points_on_segments(d_multipoints.range(),
range(d_segment_offsets.begin(), d_segment_offsets.end()),
range(d_segments.begin(), d_segments.end()),
d_flags.begin(),
this->stream());
CUSPATIAL_EXPECT_VECTORS_EQUIVALENT(d_flags, std::vector<uint8_t>(expected_flags));
}
};
using TestTypes = ::testing::Types<float, double>;
TYPED_TEST_CASE(FindPointOnSegmentTest, TestTypes);
TYPED_TEST(FindPointOnSegmentTest, VerticalSegment1)
{
using T = TypeParam;
using index_t = std::size_t;
using P = vec_2d<T>;
using S = segment<T>;
CUSPATIAL_RUN_TEST(this->template run_single<index_t>,
{{P{0.0, 0.0}, P{1.0, 0.0}}},
{0, 1},
{S{P{1.0, 1.0}, P{1.0, -1.0}}},
{0, 1});
}
TYPED_TEST(FindPointOnSegmentTest, VerticalSegment2)
{
using T = TypeParam;
using index_t = std::size_t;
using P = vec_2d<T>;
using S = segment<T>;
CUSPATIAL_RUN_TEST(this->template run_single<index_t>,
{{P{0.0, 0.0}, P{2.0, 0.0}}},
{0, 1},
{S{P{1.0, 1.0}, P{1.0, -1.0}}},
{0, 0});
}
TYPED_TEST(FindPointOnSegmentTest, VerticalSegment3)
{
using T = TypeParam;
using index_t = std::size_t;
using P = vec_2d<T>;
using S = segment<T>;
CUSPATIAL_RUN_TEST(this->template run_single<index_t>,
{{P{1.0, 0.0}, P{2.0, 0.0}}},
{0, 1},
{S{P{1.0, 1.0}, P{1.0, -1.0}}},
{1, 0});
}
TYPED_TEST(FindPointOnSegmentTest, VerticalSegment4)
{
using T = TypeParam;
using index_t = std::size_t;
using P = vec_2d<T>;
using S = segment<T>;
CUSPATIAL_RUN_TEST(this->template run_single<index_t>,
{{P{1.0, 0.0}, P{1.0, 0.5}}},
{0, 1},
{S{P{1.0, 1.0}, P{1.0, -1.0}}},
{1, 1});
}
TYPED_TEST(FindPointOnSegmentTest, DiagnalSegment1)
{
using T = TypeParam;
using index_t = std::size_t;
using P = vec_2d<T>;
using S = segment<T>;
CUSPATIAL_RUN_TEST(this->template run_single<index_t>,
{{P{0.0, 0.0}, P{1.0, 1.0}}},
{0, 1},
{S{P{2.0, 0.0}, P{0.0, 2.0}}},
{0, 1});
}
TYPED_TEST(FindPointOnSegmentTest, DiagnalSegment2)
{
using T = TypeParam;
using index_t = std::size_t;
using P = vec_2d<T>;
using S = segment<T>;
CUSPATIAL_RUN_TEST(this->template run_single<index_t>,
{{P{0.0, 0.0}, P{1.0, 0.0}}},
{0, 1},
{S{P{2.0, 0.0}, P{0.0, 2.0}}},
{0, 0});
}
TYPED_TEST(FindPointOnSegmentTest, DiagnalSegment3)
{
using T = TypeParam;
using index_t = std::size_t;
using P = vec_2d<T>;
using S = segment<T>;
CUSPATIAL_RUN_TEST(this->template run_single<index_t>,
{{P{1.0, 1.0}, P{1.0, 0.0}}},
{0, 1},
{S{P{2.0, 0.0}, P{0.0, 2.0}}},
{1, 0});
}
TYPED_TEST(FindPointOnSegmentTest, DiagnalSegment4)
{
using T = TypeParam;
using index_t = std::size_t;
using P = vec_2d<T>;
using S = segment<T>;
CUSPATIAL_RUN_TEST(this->template run_single<index_t>,
{{P{1.0, 1.0}, P{1.5, 0.5}}},
{0, 1},
{S{P{2.0, 0.0}, P{0.0, 2.0}}},
{1, 1});
}
TYPED_TEST(FindPointOnSegmentTest, HorizontalSegment1)
{
using T = TypeParam;
using index_t = std::size_t;
using P = vec_2d<T>;
using S = segment<T>;
CUSPATIAL_RUN_TEST(this->template run_single<index_t>,
{{P{0.0, 0.0}, P{1.0, 1.0}}},
{0, 1},
{S{P{0.0, 1.0}, P{1.0, 1.0}}},
{0, 1});
}
TYPED_TEST(FindPointOnSegmentTest, HorizontalSegment2)
{
using T = TypeParam;
using index_t = std::size_t;
using P = vec_2d<T>;
using S = segment<T>;
CUSPATIAL_RUN_TEST(this->template run_single<index_t>,
{{P{0.0, 0.0}, P{2.0, 1.0}}},
{0, 1},
{S{P{0.0, 1.0}, P{1.0, 1.0}}},
{0, 0});
}
TYPED_TEST(FindPointOnSegmentTest, HorizontalSegment3)
{
using T = TypeParam;
using index_t = std::size_t;
using P = vec_2d<T>;
using S = segment<T>;
CUSPATIAL_RUN_TEST(this->template run_single<index_t>,
{{P{0.5, 1.0}, P{2.0, 1.0}}},
{0, 1},
{S{P{0.0, 1.0}, P{1.0, 1.0}}},
{1, 0});
}
TYPED_TEST(FindPointOnSegmentTest, HorizontalSegment4)
{
using T = TypeParam;
using index_t = std::size_t;
using P = vec_2d<T>;
using S = segment<T>;
CUSPATIAL_RUN_TEST(this->template run_single<index_t>,
{{P{0.5, 1.0}, P{0.75, 1.0}}},
{0, 1},
{S{P{0.0, 1.0}, P{2.0, 1.0}}},
{1, 1});
}
TYPED_TEST(FindPointOnSegmentTest, OnVertex)
{
using T = TypeParam;
using index_t = std::size_t;
using P = vec_2d<T>;
using S = segment<T>;
CUSPATIAL_RUN_TEST(this->template run_single<index_t>,
{{P{0.0, 0.0}, P{1.0, 1.0}}},
{0, 1},
{S{P{1.0, 1.0}, P{1.0, 0.0}}},
{0, 1});
}
TYPED_TEST(FindPointOnSegmentTest, NoPointOnSegment1)
{
using T = TypeParam;
using index_t = std::size_t;
using P = vec_2d<T>;
using S = segment<T>;
CUSPATIAL_RUN_TEST(this->template run_single<index_t>,
{{P{0.0, 0.0}, P{1.0, 1.0}}},
{0, 1},
{S{P{0.0, 0.5}, P{1.0, 0.0}}},
{0, 0});
}
TYPED_TEST(FindPointOnSegmentTest, NoPointOnSegment2)
{
using T = TypeParam;
using index_t = std::size_t;
using P = vec_2d<T>;
using S = segment<T>;
CUSPATIAL_RUN_TEST(this->template run_single<index_t>,
{{P{0.0, 0.0}, P{1.0, 1.0}}},
{0, 1},
{S{P{2.0, 2.0}, P{3.0, 3.0}}},
{0, 0});
}
TYPED_TEST(FindPointOnSegmentTest, TwoPairs)
{
using T = TypeParam;
using index_t = std::size_t;
using P = vec_2d<T>;
using S = segment<T>;
CUSPATIAL_RUN_TEST(this->template run_single<index_t>,
{{P{0.0, 0.0}, P{1.0, 1.0}}, {P{2.0, 2.0}}},
{0, 1, 2},
{S{P{2.0, 2.0}, P{3.0, 3.0}}, S{P{1.0, 3.0}, P{3.0, 1.0}}},
{0, 0, 1});
}
| 0 |
rapidsai_public_repos/cuspatial/cpp/tests | rapidsai_public_repos/cuspatial/cpp/tests/find/find_duplicate_points_test.cu | /*
* Copyright (c) 2022, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <cuspatial_test/base_fixture.hpp>
#include <cuspatial_test/vector_equality.hpp>
#include <cuspatial_test/vector_factories.cuh>
#include <rmm/cuda_stream_view.hpp>
#include <rmm/device_vector.hpp>
#include <cuspatial/detail/find/find_duplicate_points.cuh>
#include <cuspatial/geometry/vec_2d.hpp>
using namespace cuspatial;
using namespace cuspatial::detail;
using namespace cuspatial::test;
template <typename T>
struct FindDuplicatePointsTest : public BaseFixture {
rmm::cuda_stream_view stream() { return rmm::cuda_stream_default; }
};
using TestTypes = ::testing::Types<float, double>;
TYPED_TEST_CASE(FindDuplicatePointsTest, TestTypes);
TYPED_TEST(FindDuplicatePointsTest, simple)
{
using T = TypeParam;
using P = vec_2d<T>;
auto multipoints = make_multipoint_array({{P{0.0, 0.0}, P{1.0, 0.0}, P{0.0, 0.0}}});
rmm::device_vector<uint8_t> flags(multipoints.range().num_points());
std::vector<uint8_t> expected_flags{0, 0, 1};
find_duplicate_points(multipoints.range(), flags.begin(), this->stream());
CUSPATIAL_EXPECT_VECTORS_EQUIVALENT(flags, expected_flags);
}
TYPED_TEST(FindDuplicatePointsTest, empty)
{
using T = TypeParam;
using P = vec_2d<T>;
auto multipoints = make_multipoint_array<T>({});
rmm::device_vector<uint8_t> flags(multipoints.range().num_points());
std::vector<uint8_t> expected_flags{};
find_duplicate_points(multipoints.range(), flags.begin(), this->stream());
CUSPATIAL_EXPECT_VECTORS_EQUIVALENT(flags, expected_flags);
}
TYPED_TEST(FindDuplicatePointsTest, multi)
{
using T = TypeParam;
using P = vec_2d<T>;
auto multipoints = make_multipoint_array<T>(
{{P{0.0, 0.0}, P{1.0, 0.0}, P{0.0, 0.0}, P{0.0, 0.0}, P{1.0, 0.0}, P{2.0, 0.0}},
{P{5.0, 5.0}, P{5.0, 5.0}},
{P{0.0, 0.0}}});
rmm::device_vector<uint8_t> flags(multipoints.range().num_points());
std::vector<uint8_t> expected_flags{0, 0, 1, 1, 1, 0, 0, 1, 0};
find_duplicate_points(multipoints.range(), flags.begin(), this->stream());
CUSPATIAL_EXPECT_VECTORS_EQUIVALENT(flags, expected_flags);
}
| 0 |
rapidsai_public_repos/cuspatial/cpp/tests | rapidsai_public_repos/cuspatial/cpp/tests/points_in_range/points_in_range_test.cu | /*
* Copyright (c) 2022-2023, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <cuspatial_test/vector_equality.hpp>
#include <cuspatial/error.hpp>
#include <cuspatial/geometry/vec_2d.hpp>
#include <cuspatial/points_in_range.cuh>
#include <limits>
#include <rmm/cuda_stream_view.hpp>
#include <rmm/device_uvector.hpp>
#include <rmm/device_vector.hpp>
#include <type_traits>
#include <gtest/gtest.h>
template <typename T>
using Vec = cuspatial::vec_2d<T>;
template <typename T>
using VecVec = std::vector<Vec<T>>;
template <typename T>
using DeviceVecVec = rmm::device_vector<Vec<T>>;
template <typename T>
struct SpatialRangeTest : public testing::Test {
void spatial_range_test(Vec<T> const& v1,
Vec<T> const& v2,
DeviceVecVec<T> const& points,
DeviceVecVec<T> const& expected_points)
{
auto result_size = cuspatial::count_points_in_range(v1, v2, points.begin(), points.end());
EXPECT_EQ(result_size, expected_points.size());
auto result_points = DeviceVecVec<T>(result_size);
cuspatial::copy_points_in_range(v1, v2, points.begin(), points.end(), result_points.begin());
CUSPATIAL_EXPECT_VECTORS_EQUIVALENT(expected_points, result_points);
}
};
using TestTypes = ::testing::Types<float, double>;
TYPED_TEST_CASE(SpatialRangeTest, TestTypes);
TYPED_TEST(SpatialRangeTest, Empty)
{
using T = TypeParam;
auto points = DeviceVecVec<T>{};
auto expected_points = DeviceVecVec<T>{};
CUSPATIAL_RUN_TEST(
this->spatial_range_test, Vec<T>{1.5, 1.5}, Vec<T>{5.5, 5.5}, points, expected_points);
}
TYPED_TEST(SpatialRangeTest, SimpleTest)
{
using T = TypeParam;
auto points = DeviceVecVec<T>(VecVec<T>({{1.0, 0.0},
{2.0, 1.0},
{3.0, 2.0},
{5.0, 3.0},
{7.0, 1.0},
{1.0, 3.0},
{2.0, 5.0},
{3.0, 6.0},
{6.0, 5.0},
{0.0, 4.0},
{3.0, 7.0},
{6.0, 4.0}}));
auto expected_points = DeviceVecVec<T>(VecVec<T>({{3.0, 2.0}, {5.0, 3.0}, {2.0, 5.0}}));
CUSPATIAL_RUN_TEST(
this->spatial_range_test, Vec<T>{1.5, 1.5}, Vec<T>{5.5, 5.5}, points, expected_points);
}
// Test that ranges with min/max reversed still work
TYPED_TEST(SpatialRangeTest, ReversedRange)
{
using T = TypeParam;
auto points = DeviceVecVec<T>(VecVec<T>({{1.0, 0.0},
{2.0, 1.0},
{3.0, 2.0},
{5.0, 3.0},
{7.0, 1.0},
{1.0, 3.0},
{2.0, 5.0},
{3.0, 6.0},
{6.0, 5.0},
{0.0, 4.0},
{3.0, 7.0},
{6.0, 4.0}}));
auto expected_points = DeviceVecVec<T>(VecVec<T>({{3.0, 2.0}, {5.0, 3.0}, {2.0, 5.0}}));
CUSPATIAL_RUN_TEST(
this->spatial_range_test, Vec<T>{5.5, 5.5}, Vec<T>{1.5, 1.5}, points, expected_points);
}
TYPED_TEST(SpatialRangeTest, AllPointsInRange)
{
using T = TypeParam;
auto points = DeviceVecVec<T>(VecVec<T>({{1.0, 0.0},
{2.0, 1.0},
{3.0, 2.0},
{5.0, 3.0},
{7.0, 1.0},
{1.0, 3.0},
{2.0, 5.0},
{3.0, 6.0},
{6.0, 5.0},
{0.0, 4.0},
{3.0, 7.0},
{6.0, 4.0}}));
auto expected_points = DeviceVecVec<T>(VecVec<T>({{1.0, 0.0},
{2.0, 1.0},
{3.0, 2.0},
{5.0, 3.0},
{7.0, 1.0},
{1.0, 3.0},
{2.0, 5.0},
{3.0, 6.0},
{6.0, 5.0},
{0.0, 4.0},
{3.0, 7.0},
{6.0, 4.0}}));
CUSPATIAL_RUN_TEST(
this->spatial_range_test, Vec<T>{-10.0, -10.0}, Vec<T>{10.0, 10.0}, points, expected_points);
}
TYPED_TEST(SpatialRangeTest, PointsOnOrNearEdges)
{
using T = TypeParam;
Vec<T> v1 = {0.0, 0.0};
Vec<T> v2 = {1.0, 1.0};
auto eps = std::numeric_limits<T>::epsilon();
auto v_eps = Vec<T>{eps, eps};
auto on_ll = v1;
auto on_ul = Vec<T>{v1.x, v2.y};
auto on_lr = Vec<T>{v2.x, v1.y};
auto on_ur = v2;
auto on_left = Vec<T>{v1.x, 0.5};
auto on_right = Vec<T>{v2.x, 0.5};
auto on_bottom = Vec<T>{0.5, v1.y};
auto on_top = Vec<T>{0.5, v2.y};
auto in_ll = on_ll + v_eps;
auto in_ul = on_ul + Vec<T>{eps, -eps};
auto in_lr = on_lr + Vec<T>{-eps, eps};
auto in_ur = on_ur - v_eps;
auto in_left = on_left + v_eps;
auto in_right = on_right - v_eps;
auto in_bottom = on_bottom + v_eps;
auto in_top = on_top - v_eps;
auto out_ll = on_ll - v_eps;
auto out_ul = on_ul + Vec<T>{-eps, eps};
auto out_lr = on_lr + Vec<T>{eps, -eps};
auto out_ur = on_ur + v_eps;
auto out_left = on_left - v_eps;
auto out_right = on_right + v_eps;
auto out_bottom = on_bottom - v_eps;
auto out_top = on_top + v_eps;
auto points = DeviceVecVec<T>(
VecVec<T>({on_ll, on_ul, on_lr, on_ur, on_left, on_right, on_bottom, on_top,
in_ll, in_ul, in_lr, in_ur, in_left, in_right, in_bottom, in_top,
out_ll, out_ul, out_lr, out_ur, out_left, out_right, out_bottom, out_top}));
auto expected_points =
DeviceVecVec<T>(VecVec<T>({in_ll, in_ul, in_lr, in_ur, in_left, in_right, in_bottom, in_top}));
CUSPATIAL_RUN_TEST(this->spatial_range_test, v1, v2, points, expected_points);
}
| 0 |
rapidsai_public_repos/cuspatial/cpp/tests | rapidsai_public_repos/cuspatial/cpp/tests/points_in_range/points_in_range_test.cpp | /*
* Copyright (c) 2020-2023, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <cuspatial/error.hpp>
#include <cuspatial/points_in_range.hpp>
#include <cudf/table/table.hpp>
#include <cudf_test/base_fixture.hpp>
#include <cudf_test/column_utilities.hpp>
#include <cudf_test/column_wrapper.hpp>
#include <cudf_test/cudf_gtest.hpp>
#include <cudf_test/type_lists.hpp>
#include <type_traits>
constexpr cudf::test::debug_output_level verbosity{cudf::test::debug_output_level::ALL_ERRORS};
template <typename T>
struct SpatialRangeTest : public cudf::test::BaseFixture {};
using TestTypes = cudf::test::Types<float, double>;
struct SpatialWindowErrorTest : public cudf::test::BaseFixture {};
TEST_F(SpatialWindowErrorTest, TypeMismatch)
{
auto points_x = cudf::test::fixed_width_column_wrapper<float>({1.0, 2.0, 3.0});
auto points_y = cudf::test::fixed_width_column_wrapper<double>({0.0, 1.0, 2.0});
EXPECT_THROW(auto result = cuspatial::points_in_range(1.5, 5.5, 1.5, 5.5, points_x, points_y),
cuspatial::logic_error);
}
TEST_F(SpatialWindowErrorTest, SizeMismatch)
{
auto points_x = cudf::test::fixed_width_column_wrapper<double>({1.0, 2.0, 3.0});
auto points_y = cudf::test::fixed_width_column_wrapper<double>({0.0});
EXPECT_THROW(auto result = cuspatial::points_in_range(1.5, 5.5, 1.5, 5.5, points_x, points_y),
cuspatial::logic_error);
}
struct IsFloat {
template <class T>
using Call = std::is_floating_point<T>;
};
using NonFloatTypes = cudf::test::RemoveIf<IsFloat, cudf::test::NumericTypes>;
template <typename T>
struct SpatialWindowUnsupportedTypesTest : public cudf::test::BaseFixture {};
TYPED_TEST_CASE(SpatialWindowUnsupportedTypesTest, NonFloatTypes);
TYPED_TEST(SpatialWindowUnsupportedTypesTest, ShouldThrow)
{
auto points_x = cudf::test::fixed_width_column_wrapper<TypeParam>({1.0, 2.0, 3.0});
auto points_y = cudf::test::fixed_width_column_wrapper<TypeParam>({0.0, 1.0, 2.0});
EXPECT_THROW(auto result = cuspatial::points_in_range(1.5, 5.5, 1.5, 5.5, points_x, points_y),
cuspatial::logic_error);
}
template <typename T>
struct SpatialWindowUnsupportedChronoTypesTest : public cudf::test::BaseFixture {};
TYPED_TEST_CASE(SpatialWindowUnsupportedChronoTypesTest, cudf::test::ChronoTypes);
TYPED_TEST(SpatialWindowUnsupportedChronoTypesTest, ShouldThrow)
{
using T = TypeParam;
using R = typename T::rep;
auto points_x = cudf::test::fixed_width_column_wrapper<T, R>({R{1}, R{2}, R{3}});
auto points_y = cudf::test::fixed_width_column_wrapper<T, R>({R{0}, R{1}, R{2}});
EXPECT_THROW(auto result = cuspatial::points_in_range(1.5, 5.5, 1.5, 5.5, points_x, points_y),
cuspatial::logic_error);
}
| 0 |
rapidsai_public_repos/cuspatial/cpp/tests | rapidsai_public_repos/cuspatial/cpp/tests/equality/pairwise_multipoint_equals_count_test.cu | /*
* Copyright (c) 2023, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <cuspatial_test/base_fixture.hpp>
#include <cuspatial_test/vector_equality.hpp>
#include <cuspatial_test/vector_factories.cuh>
#include <cuspatial/constants.hpp>
#include <cuspatial/error.hpp>
#include <cuspatial/geometry/vec_2d.hpp>
#include <cuspatial/pairwise_multipoint_equals_count.cuh>
using namespace cuspatial;
using namespace cuspatial::test;
template <typename T>
struct PairwiseMultipointEqualsCountTest : public BaseFixture {
void run_single(std::initializer_list<std::initializer_list<vec_2d<T>>> lhs_coordinates,
std::initializer_list<std::initializer_list<vec_2d<T>>> rhs_coordinates,
std::initializer_list<uint32_t> expected)
{
auto larray = make_multipoint_array(lhs_coordinates);
auto rarray = make_multipoint_array(rhs_coordinates);
auto lhs = larray.range();
auto rhs = rarray.range();
auto got = rmm::device_uvector<uint32_t>(lhs.size(), stream());
auto ret = pairwise_multipoint_equals_count(lhs, rhs, got.begin(), stream());
auto d_expected = make_device_vector(expected);
CUSPATIAL_EXPECT_VECTORS_EQUIVALENT(got, d_expected);
EXPECT_EQ(ret, got.end());
}
};
using TestTypes = ::testing::Types<float, double>;
TYPED_TEST_CASE(PairwiseMultipointEqualsCountTest, TestTypes);
TYPED_TEST(PairwiseMultipointEqualsCountTest, EmptyInput)
{
using T = TypeParam;
using P = vec_2d<T>;
CUSPATIAL_RUN_TEST(this->run_single,
std::initializer_list<std::initializer_list<P>>{},
std::initializer_list<std::initializer_list<P>>{},
{});
}
TYPED_TEST(PairwiseMultipointEqualsCountTest, ExampleOne)
{
CUSPATIAL_RUN_TEST(this->run_single, {{{0, 0}}}, {{{0, 0}, {1, 1}, {2, 2}, {3, 3}}}, {1});
}
TYPED_TEST(PairwiseMultipointEqualsCountTest, ExampleTwo)
{
CUSPATIAL_RUN_TEST(this->run_single, {{{0, 0}, {1, 1}, {2, 2}, {3, 3}}}, {{{0, 0}}}, {1});
}
TYPED_TEST(PairwiseMultipointEqualsCountTest, ExampleThree)
{
CUSPATIAL_RUN_TEST(this->run_single,
{{{3, 3}, {3, 3}, {0, 0}}, {{0, 0}, {1, 1}, {2, 2}}, {{0, 0}}},
{{{0, 0}, {2, 2}, {1, 1}}, {{2, 2}, {0, 0}, {1, 1}}, {{1, 1}}},
{1, 3, 0});
}
TYPED_TEST(PairwiseMultipointEqualsCountTest, OneOneEqual)
{
CUSPATIAL_RUN_TEST(this->run_single, {{{0, 0}}}, {{{0, 0}}}, {1});
}
TYPED_TEST(PairwiseMultipointEqualsCountTest, OneOneNotEqual)
{
CUSPATIAL_RUN_TEST(this->run_single, {{{0, 0}}}, {{{1, 0}}}, {0});
}
TYPED_TEST(PairwiseMultipointEqualsCountTest, OnePairWithTwoEachEqual)
{
CUSPATIAL_RUN_TEST(this->run_single, {{{0, 0}, {1, 1}}}, {{{1, 1}, {0, 0}}}, {2});
}
TYPED_TEST(PairwiseMultipointEqualsCountTest, OnePairithTwoNotEqual)
{
CUSPATIAL_RUN_TEST(this->run_single, {{{0, 0}, {2, 1}}}, {{{1, 1}, {0, 0}}}, {1});
}
TYPED_TEST(PairwiseMultipointEqualsCountTest, OnePairThreeOneEqual)
{
CUSPATIAL_RUN_TEST(this->run_single, {{{0, 0}, {1, 1}, {2, 2}}}, {{{1, 1}, {1, 1}, {1, 1}}}, {1});
}
TYPED_TEST(PairwiseMultipointEqualsCountTest, OnePairFourOneEqual)
{
CUSPATIAL_RUN_TEST(
this->run_single, {{{0, 0}, {1, 1}, {1, 1}, {2, 2}}}, {{{1, 1}, {1, 1}, {1, 1}}}, {2});
}
TYPED_TEST(PairwiseMultipointEqualsCountTest, OnePair)
{
CUSPATIAL_RUN_TEST(this->run_single, {{{0, 0}, {1, 1}, {2, 2}}}, {{{-1, -1}}}, {0});
}
TYPED_TEST(PairwiseMultipointEqualsCountTest, OneThreeEqual)
{
CUSPATIAL_RUN_TEST(this->run_single, {{{1, 1}}}, {{{0, 0}, {1, 1}, {0, 0}}}, {1});
}
TYPED_TEST(PairwiseMultipointEqualsCountTest, OneThreeNotEqual)
{
CUSPATIAL_RUN_TEST(this->run_single, {{{1, 1}}}, {{{0, 0}, {0, 0}, {1, 1}}}, {1});
}
TYPED_TEST(PairwiseMultipointEqualsCountTest, ThreeThreeEqualMiddle)
{
CUSPATIAL_RUN_TEST(
this->run_single, {{{0, 0}, {1, 1}, {2, 2}}}, {{{-1, -1}, {1, 1}, {-1, -1}}}, {1});
}
TYPED_TEST(PairwiseMultipointEqualsCountTest, ThreeThreeNotEqualMiddle)
{
CUSPATIAL_RUN_TEST(
this->run_single, {{{0, 0}, {1, 1}, {2, 2}}}, {{{0, 0}, {-1, -1}, {2, 2}}}, {2});
}
TYPED_TEST(PairwiseMultipointEqualsCountTest, ThreeThreeNeedRhsMultipoints)
{
CUSPATIAL_RUN_TEST(this->run_single,
{
{{0, 0}},
{{1, 1}},
{{2, 2}},
},
{{{0, 0}, {1, 1}}, {{2, 2}, {3, 3}}, {{0, 0}, {1, 1}}},
{1, 0, 0});
}
| 0 |
rapidsai_public_repos/cuspatial/cpp/tests | rapidsai_public_repos/cuspatial/cpp/tests/equality/pairwise_multipoint_equals_count_test.cpp | /*
* Copyright (c) 2023, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <cudf/utilities/default_stream.hpp>
#include <cuspatial_test/column_factories.hpp>
#include <cuspatial/error.hpp>
#include <cuspatial/pairwise_multipoint_equals_count.hpp>
#include <cudf_test/base_fixture.hpp>
#include <cudf_test/column_utilities.hpp>
#include <cudf_test/column_wrapper.hpp>
#include <cudf_test/cudf_gtest.hpp>
#include <cudf_test/type_lists.hpp>
#include <rmm/cuda_stream_view.hpp>
#include <type_traits>
using namespace cuspatial;
using namespace cuspatial::test;
using namespace cudf::test;
constexpr cudf::test::debug_output_level verbosity{cudf::test::debug_output_level::ALL_ERRORS};
template <typename T>
struct PairwiseMultipointEqualsCountTestTyped : public BaseFixture {
rmm::cuda_stream_view stream() { return cudf::get_default_stream(); }
};
struct PairwiseMultipointEqualsCountTestUntyped : public BaseFixture {
rmm::cuda_stream_view stream() { return cudf::get_default_stream(); }
};
// float and double are logically the same but would require separate tests due to precision.
using TestTypes = Types<double>;
TYPED_TEST_CASE(PairwiseMultipointEqualsCountTestTyped, TestTypes);
TYPED_TEST(PairwiseMultipointEqualsCountTestTyped, Empty)
{
using T = TypeParam;
auto [ptype, lhs] = make_point_column<T>(std::initializer_list<T>{}, this->stream());
auto [pytpe, rhs] = make_point_column<T>(std::initializer_list<T>{}, this->stream());
auto lhs_gcv = geometry_column_view(lhs->view(), ptype, geometry_type_id::POINT);
auto rhs_gcv = geometry_column_view(rhs->view(), ptype, geometry_type_id::POINT);
auto output = cuspatial::pairwise_multipoint_equals_count(lhs_gcv, rhs_gcv);
auto expected = fixed_width_column_wrapper<uint32_t>({});
expect_columns_equivalent(expected, output->view(), verbosity);
}
TYPED_TEST(PairwiseMultipointEqualsCountTestTyped, InvalidLength)
{
using T = TypeParam;
auto [ptype, lhs] = make_point_column<T>({0, 1}, {0.0, 0.0}, this->stream());
auto [pytpe, rhs] = make_point_column<T>({0, 1, 2}, {1.0, 1.0, 0.0, 0.0}, this->stream());
auto lhs_gcv = geometry_column_view(lhs->view(), ptype, geometry_type_id::POINT);
auto rhs_gcv = geometry_column_view(rhs->view(), ptype, geometry_type_id::POINT);
EXPECT_THROW(auto output = cuspatial::pairwise_multipoint_equals_count(lhs_gcv, rhs_gcv),
cuspatial::logic_error);
}
TEST_F(PairwiseMultipointEqualsCountTestUntyped, InvalidTypes)
{
auto [ptype, lhs] = make_point_column<float>(std::initializer_list<float>{}, this->stream());
auto [pytpe, rhs] = make_point_column<double>(std::initializer_list<double>{}, this->stream());
auto lhs_gcv = geometry_column_view(lhs->view(), ptype, geometry_type_id::POINT);
auto rhs_gcv = geometry_column_view(rhs->view(), ptype, geometry_type_id::POINT);
EXPECT_THROW(auto output = cuspatial::pairwise_multipoint_equals_count(lhs_gcv, rhs_gcv),
cuspatial::logic_error);
}
| 0 |
rapidsai_public_repos/cuspatial/cpp | rapidsai_public_repos/cuspatial/cpp/scripts/run-clang-format.py | # Copyright (c) 2019-2020, NVIDIA CORPORATION.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
from __future__ import print_function
import sys
import re
import os
import subprocess
import argparse
import tempfile
EXPECTED_VERSION = "16.0.6"
VERSION_REGEX = re.compile(r"clang-format version ([0-9.]+)")
# NOTE: populate this list with more top-level dirs as we add more of them to the cuspatial repo
DEFAULT_DIRS = ["cpp/include",
"cpp/src",
"cpp/tests",
"cpp/benchmarks"]
def parse_args():
argparser = argparse.ArgumentParser("Runs clang-format on a project")
argparser.add_argument("-dstdir", type=str, default=None,
help="Directory to store the temporary outputs of"
" clang-format. If nothing is passed for this, then"
" a temporary dir will be created using `mkdtemp`")
argparser.add_argument("-exe", type=str, default="clang-format",
help="Path to clang-format exe")
argparser.add_argument("-inplace", default=False, action="store_true",
help="Replace the source files itself.")
argparser.add_argument("-regex", type=str,
default=r"[.](cu|cuh|h|hpp|cpp)$",
help="Regex string to filter in sources")
argparser.add_argument("-ignore", type=str, default=r"cannylab/bh[.]cu$",
help="Regex used to ignore files from matched list")
argparser.add_argument("-v", dest="verbose", action="store_true",
help="Print verbose messages")
argparser.add_argument("dirs", type=str, nargs="*",
help="List of dirs where to find sources")
args = argparser.parse_args()
args.regex_compiled = re.compile(args.regex)
args.ignore_compiled = re.compile(args.ignore)
if args.dstdir is None:
args.dstdir = tempfile.mkdtemp()
ret = subprocess.check_output("%s --version" % args.exe, shell=True)
ret = ret.decode("utf-8")
version = VERSION_REGEX.match(ret)
if version is None:
raise Exception("Failed to figure out clang-format version!")
version = version.group(1)
if version != EXPECTED_VERSION:
raise Exception("clang-format exe must be v%s found '%s'" % \
(EXPECTED_VERSION, version))
if len(args.dirs) == 0:
args.dirs = DEFAULT_DIRS
return args
def list_all_src_files(file_regex, ignore_regex, srcdirs, dstdir, inplace):
allFiles = []
for srcdir in srcdirs:
for root, dirs, files in os.walk(srcdir):
for f in files:
if re.search(file_regex, f):
src = os.path.join(root, f)
if re.search(ignore_regex, src):
continue
if inplace:
_dir = root
else:
_dir = os.path.join(dstdir, root)
dst = os.path.join(_dir, f)
allFiles.append((src, dst))
return allFiles
def run_clang_format(src, dst, exe, verbose):
dstdir = os.path.dirname(dst)
if not os.path.exists(dstdir):
os.makedirs(dstdir)
# run the clang format command itself
if src == dst:
cmd = "%s -i %s" % (exe, src)
else:
cmd = "%s %s > %s" % (exe, src, dst)
try:
subprocess.check_call(cmd, shell=True)
except subprocess.CalledProcessError:
print("Failed to run clang-format! Maybe your env is not proper?")
raise
# run the diff to check if there are any formatting issues
cmd = "diff -q %s %s >/dev/null" % (src, dst)
try:
subprocess.check_call(cmd, shell=True)
if verbose:
print("%s passed" % os.path.basename(src))
except subprocess.CalledProcessError:
print("%s failed! 'diff %s %s' will show formatting violations!" % \
(os.path.basename(src), src, dst))
return False
return True
def main():
args = parse_args()
# Attempt to making sure that we run this script from root of repo always
if not os.path.exists(".git"):
print("Error!! This needs to always be run from the root of repo")
sys.exit(-1)
all_files = list_all_src_files(args.regex_compiled, args.ignore_compiled,
args.dirs, args.dstdir, args.inplace)
# actual format checker
status = True
for src, dst in all_files:
if not run_clang_format(src, dst, args.exe, args.verbose):
status = False
if not status:
print("clang-format failed! You have 2 options:")
print(" 1. Look at formatting differences above and fix them manually")
print(" 2. Or run the below command to bulk-fix all these at once")
print("Bulk-fix command: ")
print(" python cpp/scripts/run-clang-format.py %s -inplace" % \
" ".join(sys.argv[1:]))
sys.exit(-1)
return
if __name__ == "__main__":
main()
| 0 |
rapidsai_public_repos/cuspatial/cpp | rapidsai_public_repos/cuspatial/cpp/benchmarks/CMakeLists.txt | #=============================================================================
# Copyright (c) 2019-2021, NVIDIA CORPORATION.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#=============================================================================
###################################################################################################
# - compiler function -----------------------------------------------------------------------------
# Use an OBJECT library so we only compile common source files only once
add_library(cuspatial_benchmark_common OBJECT
synchronization/synchronization.cpp)
target_compile_features(cuspatial_benchmark_common PUBLIC cxx_std_17 cuda_std_17)
target_link_libraries(cuspatial_benchmark_common
PUBLIC benchmark::benchmark
cudf::cudftestutil
ranger::ranger
cuspatial)
target_compile_options(cuspatial_benchmark_common
PUBLIC "$<$<COMPILE_LANGUAGE:CXX>:${CUSPATIAL_CXX_FLAGS}>"
"$<$<COMPILE_LANGUAGE:CUDA>:${CUSPATIAL_CUDA_FLAGS}>")
target_include_directories(cuspatial_benchmark_common
PUBLIC "$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>"
"$<BUILD_INTERFACE:${CUSPATIAL_SOURCE_DIR}>"
"$<BUILD_INTERFACE:${CUSPATIAL_SOURCE_DIR}/src>")
function(ConfigureBench CMAKE_BENCH_NAME)
add_executable(${CMAKE_BENCH_NAME} ${ARGN})
set_target_properties(${CMAKE_BENCH_NAME}
PROPERTIES RUNTIME_OUTPUT_DIRECTORY "$<BUILD_INTERFACE:${CUSPATIAL_BINARY_DIR}/benchmarks>"
INSTALL_RPATH "\$ORIGIN/../../../lib"
)
target_link_libraries(${CMAKE_BENCH_NAME} PRIVATE benchmark::benchmark_main cuspatial_benchmark_common)
install(
TARGETS ${CMAKE_BENCH_NAME}
COMPONENT benchmark
DESTINATION bin/benchmarks/libcuspatial
EXCLUDE_FROM_ALL
)
endfunction()
# This function takes in a benchmark name and benchmark source for nvbench benchmarks and handles
# setting all of the associated properties and linking to build the benchmark
function(ConfigureNVBench CMAKE_BENCH_NAME)
add_executable(${CMAKE_BENCH_NAME} ${ARGN})
set_target_properties(
${CMAKE_BENCH_NAME}
PROPERTIES RUNTIME_OUTPUT_DIRECTORY "$<BUILD_INTERFACE:${CUSPATIAL_BINARY_DIR}/benchmarks>"
INSTALL_RPATH "\$ORIGIN/../../../lib"
)
target_link_libraries(
${CMAKE_BENCH_NAME} PRIVATE cuspatial_benchmark_common nvbench::main
)
install(
TARGETS ${CMAKE_BENCH_NAME}
COMPONENT benchmark
DESTINATION bin/benchmarks/libcuspatial
EXCLUDE_FROM_ALL
)
endfunction()
###################################################################################################
### benchmark sources #############################################################################
###################################################################################################
ConfigureBench(HAUSDORFF_BENCH
distance/hausdorff_benchmark.cpp)
ConfigureNVBench(POINT_POLYGON_DISTANCES_BENCH
distance/pairwise_point_polygon_distance.cu)
ConfigureNVBench(LINESTRING_DISTANCES_BENCH
distance/pairwise_linestring_distance.cu)
ConfigureNVBench(LINESTRING_POLYGON_DISTANCES_BENCH
distance/pairwise_linestring_polygon_distance.cu)
ConfigureNVBench(QUADTREE_ON_POINTS_BENCH
indexing/quadtree_on_points.cu)
ConfigureNVBench(POINT_IN_POLYGON_BENCH
point_in_polygon/point_in_polygon.cu)
ConfigureNVBench(POINTS_IN_RANGE_BENCH
points_in_range/points_in_range.cu)
ConfigureNVBench(FLOATING_POINT_EQUALITY_BENCH
utility/floating_point_equality.cu)
| 0 |
rapidsai_public_repos/cuspatial/cpp/benchmarks | rapidsai_public_repos/cuspatial/cpp/benchmarks/point_in_polygon/point_in_polygon.cu | /*
* Copyright (c) 2022, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <benchmarks/fixture/rmm_pool_raii.hpp>
#include <nvbench/nvbench.cuh>
#include <cuspatial_test/geometry_generator.cuh>
#include <cuspatial/geometry/vec_2d.hpp>
#include <cuspatial/point_in_polygon.cuh>
#include <rmm/device_vector.hpp>
#include <rmm/exec_policy.hpp>
#include <thrust/iterator/counting_iterator.h>
#include <memory>
#include <numeric>
using namespace cuspatial;
auto constexpr radius = 10.0;
auto constexpr num_polygons = 31ul;
auto constexpr num_rings_per_polygon = 1ul; // only 1 ring for now
template <typename T>
void point_in_polygon_benchmark(nvbench::state& state, nvbench::type_list<T>)
{
// TODO: to be replaced by nvbench fixture once it's ready
cuspatial::rmm_pool_raii rmm_pool;
rmm::cuda_stream_view stream(rmm::cuda_stream_default);
auto const minXY = vec_2d<T>{-radius * 2, -radius * 2};
auto const maxXY = vec_2d<T>{radius * 2, radius * 2};
auto const num_test_points{state.get_int64("NumTestPoints")},
num_sides_per_ring{state.get_int64("NumSidesPerRing")};
auto const num_rings = num_polygons * num_rings_per_polygon;
auto const num_polygon_points =
num_rings * (num_sides_per_ring + 1); // +1 for the overlapping start and end point of the ring
auto point_gen_param = test::multipoint_generator_parameter<T>{
static_cast<std::size_t>(num_test_points), 1, minXY, maxXY};
auto poly_gen_param =
test::multipolygon_generator_parameter<T>{static_cast<std::size_t>(num_polygons),
1,
0,
static_cast<std::size_t>(num_sides_per_ring),
vec_2d<T>{0, 0},
radius};
auto test_points = test::generate_multipoint_array<T>(point_gen_param, stream);
auto test_polygons = test::generate_multipolygon_array<T>(poly_gen_param, stream);
auto [_, points] = test_points.release();
auto [__, part_offset_array, ring_offset_array, poly_coords] = test_polygons.release();
auto points_range = make_multipoint_range(
num_test_points, thrust::make_counting_iterator(0), points.size(), points.begin());
auto polys_range = make_multipolygon_range(num_polygons,
thrust::make_counting_iterator(0),
part_offset_array.size() - 1,
part_offset_array.begin(),
ring_offset_array.size() - 1,
ring_offset_array.begin(),
poly_coords.size(),
poly_coords.begin());
rmm::device_vector<int32_t> result(num_test_points);
state.add_element_count(num_polygon_points, "NumPolygonPoints");
state.add_global_memory_reads<T>(num_test_points * 2, "TotalMemoryReads");
state.add_global_memory_reads<T>(num_polygon_points);
state.add_global_memory_reads<int32_t>(num_rings);
state.add_global_memory_reads<int32_t>(num_polygons);
state.add_global_memory_writes<int32_t>(num_test_points, "TotalMemoryWrites");
state.exec(nvbench::exec_tag::sync,
[points_range, polys_range, &result, stream](nvbench::launch& launch) {
point_in_polygon(points_range, polys_range, result.begin(), stream);
});
}
using floating_point_types = nvbench::type_list<float, double>;
NVBENCH_BENCH_TYPES(point_in_polygon_benchmark, NVBENCH_TYPE_AXES(floating_point_types))
.set_type_axes_names({"CoordsType"})
.add_int64_axis("NumTestPoints", {1'000, 100'000, 10'000'000})
.add_int64_axis("NumSidesPerRing", {4, 10, 100});
| 0 |
rapidsai_public_repos/cuspatial/cpp/benchmarks | rapidsai_public_repos/cuspatial/cpp/benchmarks/synchronization/synchronization.cpp | /*
* Copyright (c) 2019-2020, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "synchronization.hpp"
#include <cuspatial/error.hpp>
#include <rmm/cuda_stream_view.hpp>
#include <rmm/device_buffer.hpp>
cuda_event_timer::cuda_event_timer(benchmark::State& state,
bool flush_l2_cache,
rmm::cuda_stream_view stream)
: stream(stream), p_state(&state)
{
// flush all of L2$
if (flush_l2_cache) {
int current_device = 0;
CUSPATIAL_CUDA_TRY(cudaGetDevice(¤t_device));
int l2_cache_bytes = 0;
CUSPATIAL_CUDA_TRY(
cudaDeviceGetAttribute(&l2_cache_bytes, cudaDevAttrL2CacheSize, current_device));
if (l2_cache_bytes > 0) {
const int memset_value = 0;
rmm::device_buffer l2_cache_buffer(l2_cache_bytes, stream);
CUSPATIAL_CUDA_TRY(
cudaMemsetAsync(l2_cache_buffer.data(), memset_value, l2_cache_bytes, stream.value()));
}
}
CUSPATIAL_CUDA_TRY(cudaEventCreate(&start));
CUSPATIAL_CUDA_TRY(cudaEventCreate(&stop));
CUSPATIAL_CUDA_TRY(cudaEventRecord(start, stream.value()));
}
cuda_event_timer::~cuda_event_timer()
{
CUSPATIAL_CUDA_TRY(cudaEventRecord(stop, stream.value()));
CUSPATIAL_CUDA_TRY(cudaEventSynchronize(stop));
float milliseconds = 0.0f;
CUSPATIAL_CUDA_TRY(cudaEventElapsedTime(&milliseconds, start, stop));
p_state->SetIterationTime(milliseconds / (1000.0f));
CUSPATIAL_CUDA_TRY(cudaEventDestroy(start));
CUSPATIAL_CUDA_TRY(cudaEventDestroy(stop));
}
| 0 |
rapidsai_public_repos/cuspatial/cpp/benchmarks | rapidsai_public_repos/cuspatial/cpp/benchmarks/synchronization/synchronization.hpp | /*
* Copyright (c) 2019-2020, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* @file synchronization.hpp
* @brief This is the header file for `cuda_event_timer`.
**/
/**
* @brief This class serves as a wrapper for using `cudaEvent_t` as the user
* defined timer within the framework of google benchmark
* (https://github.com/google/benchmark).
*
* It is built on top of the idea of Resource acquisition is initialization
* (RAII). In the following we show a minimal example of how to use this class.
#include <benchmark/benchmark.h>
static void sample_cuda_benchmark(benchmark::State& state) {
for (auto _ : state){
rmm::cuda_stream_view stream{}; // default stream, could be another stream
// Create (Construct) an object of this class. You HAVE to pass in the
// benchmark::State object you are using. It measures the time from its
// creation to its destruction that is spent on the specified CUDA stream.
// It also clears the L2 cache by cudaMemset'ing a device buffer that is of
// the size of the L2 cache (if flush_l2_cache is set to true and there is
// an L2 cache on the current device).
cuda_event_timer raii(state, true, stream); // flush_l2_cache = true
// Now perform the operations that is to be benchmarked
sample_kernel<<<1, 256, 0, stream.value()>>>(); // Possibly launching a CUDA kernel
}
}
// Register the function as a benchmark. You will need to set the `UseManualTime()`
// flag in order to use the timer embedded in this class.
BENCHMARK(sample_cuda_benchmark)->UseManualTime();
**/
#ifndef CUDF_BENCH_SYNCHRONIZATION_H
#define CUDF_BENCH_SYNCHRONIZATION_H
// Google Benchmark library
#include <benchmark/benchmark.h>
#include <cudf/types.hpp>
#include <rmm/cuda_stream_view.hpp>
#include <driver_types.h>
class cuda_event_timer {
public:
/**
* @brief This c'tor clears the L2$ by cudaMemset'ing a buffer of L2$ size
* and starts the timer.
*
* @param[in,out] state This is the benchmark::State whose timer we are going
* to update.
* @param[in] flush_l2_cache_ whether or not to flush the L2 cache before
* every iteration.
* @param[in] stream_ The CUDA stream we are measuring time on.
**/
cuda_event_timer(benchmark::State& state,
bool flush_l2_cache,
rmm::cuda_stream_view stream = rmm::cuda_stream_default);
// The user must provide a benchmark::State object to set
// the timer so we disable the default c'tor.
cuda_event_timer() = delete;
// The d'tor stops the timer and performs a synchronization.
// Time of the benchmark::State object provided to the c'tor
// will be set to the value given by `cudaEventElapsedTime`.
~cuda_event_timer();
private:
cudaEvent_t start;
cudaEvent_t stop;
rmm::cuda_stream_view stream;
benchmark::State* p_state;
};
#endif
| 0 |
rapidsai_public_repos/cuspatial/cpp/benchmarks | rapidsai_public_repos/cuspatial/cpp/benchmarks/distance/pairwise_linestring_polygon_distance.cu | /*
* Copyright (c) 2023, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <benchmarks/fixture/rmm_pool_raii.hpp>
#include <nvbench/nvbench.cuh>
#include <cuspatial_test/geometry_generator.cuh>
#include <cuspatial/distance.cuh>
#include <rmm/cuda_stream_view.hpp>
using namespace cuspatial;
template <typename T>
void pairwise_linestring_polygon_distance_benchmark(nvbench::state& state, nvbench::type_list<T>)
{
// TODO: to be replaced by nvbench fixture once it's ready
cuspatial::rmm_pool_raii rmm_pool;
rmm::cuda_stream_view stream = rmm::cuda_stream_default;
auto const num_pairs{static_cast<std::size_t>(state.get_int64("NumPairs"))};
auto const num_linestrings_per_multilinestring{
static_cast<std::size_t>(state.get_int64("NumLineStringPerMultiLineString"))};
auto const num_segments_per_linestring{
static_cast<std::size_t>(state.get_int64("NumSegmentsPerLineString"))};
auto const num_polygon_per_multipolygon{
static_cast<std::size_t>(state.get_int64("NumPolygonPerMultiPolygon"))};
auto const num_ring_per_polygon{static_cast<std::size_t>(state.get_int64("NumRingsPerPolygon"))};
auto const num_points_per_ring{static_cast<std::size_t>(state.get_int64("NumPointsPerRing"))};
auto params1 = test::multilinestring_generator_parameter<T>{
num_pairs, num_linestrings_per_multilinestring, num_segments_per_linestring, 1.0, {0., 0.}};
auto params2 = test::multipolygon_generator_parameter<T>{num_pairs,
num_polygon_per_multipolygon,
num_ring_per_polygon - 1,
num_points_per_ring - 1,
{10000, 10000},
1};
auto lines = generate_multilinestring_array(params1, stream);
auto polys = generate_multipolygon_array(params2, stream);
auto lines_range = lines.range();
auto poly_range = polys.range();
auto output = rmm::device_uvector<T>(num_pairs, stream);
auto out_it = output.begin();
auto const total_points = lines_range.num_points() + poly_range.num_points();
state.add_element_count(num_pairs, "NumPairs");
state.add_element_count(total_points, "NumPoints");
state.add_global_memory_reads<T>(total_points * 2, "CoordinatesDataSize");
state.add_global_memory_reads<int32_t>(params1.num_multilinestrings + params1.num_linestrings() +
params2.num_multipolygons + params2.num_polygons() +
params2.num_rings() + 5,
"OffsetsDataSize");
state.add_global_memory_writes<T>(num_pairs);
state.exec(nvbench::exec_tag::sync,
[&lines_range, &poly_range, &out_it](nvbench::launch& launch) {
pairwise_linestring_polygon_distance(lines_range, poly_range, out_it);
});
}
using floating_point_types = nvbench::type_list<float, double>;
NVBENCH_BENCH_TYPES(pairwise_linestring_polygon_distance_benchmark,
NVBENCH_TYPE_AXES(floating_point_types))
.set_type_axes_names({"CoordsType"})
.add_int64_axis("NumPairs", {100'00})
.add_int64_axis("NumLineStringPerMultiLineString", {10, 100, 1'000})
.add_int64_axis("NumSegmentsPerLineString", {100})
.add_int64_axis("NumPolygonPerMultiPolygon", {100})
.add_int64_axis("NumRingsPerPolygon", {10})
.add_int64_axis("NumPointsPerRing", {100});
| 0 |
rapidsai_public_repos/cuspatial/cpp/benchmarks | rapidsai_public_repos/cuspatial/cpp/benchmarks/distance/pairwise_linestring_distance.cu | /*
* Copyright (c) 2022-2023, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <benchmarks/fixture/rmm_pool_raii.hpp>
#include <nvbench/nvbench.cuh>
#include <cuspatial_test/geometry_generator.cuh>
#include <cuspatial/distance.cuh>
#include <rmm/cuda_stream_view.hpp>
using namespace cuspatial;
template <typename T>
void pairwise_linestring_distance_benchmark(nvbench::state& state, nvbench::type_list<T>)
{
// TODO: to be replaced by nvbench fixture once it's ready
cuspatial::rmm_pool_raii rmm_pool;
rmm::cuda_stream_view stream = rmm::cuda_stream_default;
auto const num_pairs{static_cast<std::size_t>(state.get_int64("NumPairs"))};
auto const num_linestrings_per_multilinestring{
static_cast<std::size_t>(state.get_int64("NumLineStringsPerMultiLineString"))};
auto const num_segments_per_linestring{
static_cast<std::size_t>(state.get_int64("NumSegmentsPerLineString"))};
auto params1 = test::multilinestring_generator_parameter<T>{
num_pairs, num_linestrings_per_multilinestring, num_segments_per_linestring, 1.0, {0., 0.}};
auto params2 = test::multilinestring_generator_parameter<T>{num_pairs,
num_linestrings_per_multilinestring,
num_segments_per_linestring,
1.0,
{100000., 100000.}};
auto ls1 = generate_multilinestring_array(params1, stream);
auto ls2 = generate_multilinestring_array(params2, stream);
auto ls1range = ls1.range();
auto ls2range = ls2.range();
auto output = rmm::device_uvector<T>(num_pairs, stream);
auto out_it = output.begin();
auto const total_points = params1.num_points() + params2.num_points();
state.add_element_count(num_pairs, "NumPairs");
state.add_element_count(total_points, "NumPoints");
state.add_global_memory_reads<T>(total_points * 2, "CoordinatesDataSize");
state.add_global_memory_reads<int32_t>(params1.num_multilinestrings +
params2.num_multilinestrings +
params1.num_linestrings() + params2.num_linestrings(),
"OffsetsDataSize");
state.add_global_memory_writes<T>(num_pairs);
state.exec(nvbench::exec_tag::sync, [&ls1range, &ls2range, &out_it](nvbench::launch& launch) {
pairwise_linestring_distance(ls1range, ls2range, out_it);
});
}
using floating_point_types = nvbench::type_list<float, double>;
NVBENCH_BENCH_TYPES(pairwise_linestring_distance_benchmark, NVBENCH_TYPE_AXES(floating_point_types))
.set_type_axes_names({"CoordsType"})
.add_int64_axis("NumPairs", {1'000, 10'000, 100'000})
.add_int64_axis("NumLineStringsPerMultiLineString", {1'000, 10'000, 100'000})
.add_int64_axis("NumSegmentsPerLineString", {10, 100, 1'000});
| 0 |
rapidsai_public_repos/cuspatial/cpp/benchmarks | rapidsai_public_repos/cuspatial/cpp/benchmarks/distance/pairwise_point_polygon_distance.cu | /*
* Copyright (c) 2023, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <benchmarks/fixture/rmm_pool_raii.hpp>
#include <nvbench/nvbench.cuh>
#include <cuspatial_test/geometry_generator.cuh>
#include <cuspatial/distance.cuh>
#include <cuspatial/geometry/vec_2d.hpp>
#include <rmm/cuda_stream_view.hpp>
#include <rmm/exec_policy.hpp>
using namespace cuspatial;
using namespace cuspatial::test;
template <typename T>
void pairwise_point_polygon_distance_benchmark(nvbench::state& state, nvbench::type_list<T>)
{
// TODO: to be replaced by nvbench fixture once it's ready
cuspatial::rmm_pool_raii rmm_pool;
rmm::cuda_stream_view stream{rmm::cuda_stream_default};
auto const num_pairs{static_cast<std::size_t>(state.get_int64("num_pairs"))};
auto const num_polygons_per_multipolygon{
static_cast<std::size_t>(state.get_int64("num_polygons_per_multipolygon"))};
auto const num_holes_per_polygon{
static_cast<std::size_t>(state.get_int64("num_holes_per_polygon"))};
auto const num_edges_per_ring{static_cast<std::size_t>(state.get_int64("num_edges_per_ring"))};
auto const num_points_per_multipoint{
static_cast<std::size_t>(state.get_int64("num_points_per_multipoint"))};
auto mpoly_generator_param = multipolygon_generator_parameter<T>{
num_pairs, num_polygons_per_multipolygon, num_holes_per_polygon, num_edges_per_ring};
auto mpoint_generator_param = multipoint_generator_parameter<T>{
num_pairs, num_points_per_multipoint, vec_2d<T>{-1, -1}, vec_2d<T>{0, 0}};
auto multipolygons = generate_multipolygon_array<T>(mpoly_generator_param, stream);
auto multipoints = generate_multipoint_array<T>(mpoint_generator_param, stream);
auto distances = rmm::device_vector<T>(num_pairs);
auto out_it = distances.begin();
auto mpoly_view = multipolygons.range();
auto mpoint_view = multipoints.range();
state.add_element_count(num_pairs, "NumPairs");
state.add_element_count(mpoly_generator_param.num_polygons(), "NumPolygons");
state.add_element_count(mpoly_generator_param.num_rings(), "NumRings");
state.add_element_count(mpoly_generator_param.num_coords(), "NumPoints (in mpoly)");
state.add_element_count(static_cast<std::size_t>(mpoly_generator_param.num_coords() *
mpoly_generator_param.num_rings() *
mpoly_generator_param.num_polygons()),
"Multipolygon Complexity");
state.add_element_count(mpoint_generator_param.num_points(), "NumPoints (in multipoints)");
state.add_global_memory_reads<T>(
mpoly_generator_param.num_coords() + mpoint_generator_param.num_points(),
"CoordinatesReadSize");
state.add_global_memory_reads<std::size_t>(
(mpoly_generator_param.num_rings() + 1) + (mpoly_generator_param.num_polygons() + 1) +
(mpoly_generator_param.num_multipolygons + 1) + (mpoint_generator_param.num_multipoints + 1),
"OffsetsDataSize");
state.add_global_memory_writes<T>(num_pairs);
state.exec(nvbench::exec_tag::sync,
[&mpoly_view, &mpoint_view, &out_it, &stream](nvbench::launch& launch) {
pairwise_point_polygon_distance(mpoint_view, mpoly_view, out_it, stream);
});
}
using floating_point_types = nvbench::type_list<float, double>;
// Benchmark scalability with simple multipolygon (3 sides, 0 hole, 1 poly)
NVBENCH_BENCH_TYPES(pairwise_point_polygon_distance_benchmark,
NVBENCH_TYPE_AXES(floating_point_types))
.set_type_axes_names({"CoordsType"})
.add_int64_axis("num_pairs", {1, 1'00, 10'000, 1'000'000, 100'000'000})
.add_int64_axis("num_polygons_per_multipolygon", {1})
.add_int64_axis("num_holes_per_polygon", {0})
.add_int64_axis("num_edges_per_ring", {3})
.add_int64_axis("num_points_per_multipoint", {1})
.set_name("point_polygon_distance_benchmark_simple_polygon");
// Benchmark scalability with complex multipolygon (100 sides, 10 holes, 3 polys)
NVBENCH_BENCH_TYPES(pairwise_point_polygon_distance_benchmark,
NVBENCH_TYPE_AXES(floating_point_types))
.set_type_axes_names({"CoordsType"})
.add_int64_axis("num_pairs", {1'000, 10'000, 100'000, 1'000'000})
.add_int64_axis("num_polygons_per_multipolygon", {2})
.add_int64_axis("num_holes_per_polygon", {3})
.add_int64_axis("num_edges_per_ring", {50})
.add_int64_axis("num_points_per_multipoint", {1})
.set_name("point_polygon_distance_benchmark_complex_polygon");
// // Benchmark impact of rings (100K pairs, 1 polygon, 3 sides)
NVBENCH_BENCH_TYPES(pairwise_point_polygon_distance_benchmark,
NVBENCH_TYPE_AXES(floating_point_types))
.set_type_axes_names({"CoordsType"})
.add_int64_axis("num_pairs", {10'000})
.add_int64_axis("num_polygons_per_multipolygon", {1})
.add_int64_axis("num_holes_per_polygon", {0, 10, 100, 1000})
.add_int64_axis("num_edges_per_ring", {3})
.add_int64_axis("num_points_per_multipoint", {1})
.set_name("point_polygon_distance_benchmark_ring_numbers");
// Benchmark impact of rings (1M pairs, 1 polygon, 0 holes, 3 sides)
NVBENCH_BENCH_TYPES(pairwise_point_polygon_distance_benchmark,
NVBENCH_TYPE_AXES(floating_point_types))
.set_type_axes_names({"CoordsType"})
.add_int64_axis("num_pairs", {100})
.add_int64_axis("num_polygons_per_multipolygon", {1})
.add_int64_axis("num_holes_per_polygon", {0})
.add_int64_axis("num_edges_per_ring", {3})
.add_int64_axis("num_points_per_multipoint", {50, 5'00, 5'000, 50'000, 500'000})
.set_name("point_polygon_distance_benchmark_points_in_multipoint");
| 0 |
rapidsai_public_repos/cuspatial/cpp/benchmarks | rapidsai_public_repos/cuspatial/cpp/benchmarks/distance/hausdorff_benchmark.cpp | /*
* Copyright (c) 2020-2023, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <cuspatial/distance.hpp>
#include <benchmarks/fixture/benchmark_fixture.hpp>
#include <benchmarks/synchronization/synchronization.hpp>
#include <cudf/detail/iterator.cuh>
#include <cudf_test/column_wrapper.hpp>
#include <thrust/iterator/constant_iterator.h>
static void BM_hausdorff(benchmark::State& state)
{
int32_t num_spaces = state.range(0) - 1;
int32_t num_points_per_space = state.range(1) - 1;
int32_t num_points = num_points_per_space * num_spaces;
auto zero_iter = thrust::make_constant_iterator(0);
auto space_offset_iter = cudf::detail::make_counting_transform_iterator(
0, [num_points_per_space](int32_t idx) { return idx * num_points_per_space; });
auto xs = cudf::test::fixed_width_column_wrapper<double>(zero_iter, zero_iter + num_points);
auto ys = cudf::test::fixed_width_column_wrapper<double>(zero_iter, zero_iter + num_points);
auto space_offsets = cudf::test::fixed_width_column_wrapper<int32_t>(
space_offset_iter, space_offset_iter + num_spaces);
for (auto _ : state) {
cuda_event_timer raii(state, true);
cuspatial::directed_hausdorff_distance(xs, ys, space_offsets);
}
state.SetItemsProcessed(state.iterations() * num_points * num_points);
}
class HausdorffBenchmark : public cuspatial::benchmark {
virtual void SetUp(const ::benchmark::State& state) override
{
mr = std::make_shared<rmm::mr::cuda_memory_resource>();
rmm::mr::set_current_device_resource(mr.get()); // set default resource to cuda
}
};
#define DUMMY_BM_BENCHMARK_DEFINE(name) \
BENCHMARK_DEFINE_F(HausdorffBenchmark, name)(::benchmark::State & state) \
{ \
BM_hausdorff(state); \
} \
BENCHMARK_REGISTER_F(HausdorffBenchmark, name) \
->Ranges({{1 << 5, 1 << 13}, {1 << 2, 1 << 7}}) \
->UseManualTime() \
->Unit(benchmark::kMillisecond);
DUMMY_BM_BENCHMARK_DEFINE(hausdorff);
| 0 |
rapidsai_public_repos/cuspatial/cpp/benchmarks | rapidsai_public_repos/cuspatial/cpp/benchmarks/utility/floating_point_equality.cu | /*
* Copyright (c) 2022, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <benchmarks/fixture/rmm_pool_raii.hpp>
#include <cuspatial_test/random.cuh>
#include <cuspatial/detail/utility/floating_point.cuh>
#include <cuspatial/error.hpp>
#include <rmm/device_vector.hpp>
#include <rmm/exec_policy.hpp>
#include <nvbench/nvbench.cuh>
#include <thrust/tabulate.h>
#include <memory>
#include <type_traits>
using namespace cuspatial;
/**
* @brief Helper to generate floats
*
* @p begin and @p end must be iterators to device-accessible memory
*
* @tparam FloatsIter The type of the iterator to the output floats container
* @param begin The start of the sequence of floats to generate
* @param end The end of the sequence of floats to generate
*/
template <class FloatsIter>
void generate_floats(FloatsIter begin, FloatsIter end)
{
using T = typename std::iterator_traits<FloatsIter>::value_type;
auto engine_x = cuspatial::test::deterministic_engine(std::distance(begin, end));
auto lo = std::numeric_limits<T>::min();
auto hi = std::numeric_limits<T>::max();
auto x_dist = cuspatial::test::make_uniform_dist(lo, hi);
auto x_gen = cuspatial::test::value_generator{lo, hi, engine_x, x_dist};
thrust::tabulate(
rmm::exec_policy(), begin, end, [x_gen] __device__(size_t n) mutable { return x_gen(n); });
}
template <typename Float>
struct eq_comp {
using element_t = Float;
bool __device__ operator()(Float lhs, Float rhs)
{
// return lhs == rhs;
return detail::float_equal(lhs, rhs);
}
};
template <typename T>
void floating_point_equivalence_benchmark(nvbench::state& state, nvbench::type_list<T>)
{
// TODO: to be replaced by nvbench fixture once it's ready
cuspatial::rmm_pool_raii rmm_pool;
int64_t const num_floats{state.get_int64("NumFloats")};
rmm::device_vector<T> floats(num_floats);
rmm::device_vector<bool> results(num_floats);
generate_floats(floats.begin(), floats.end());
CUSPATIAL_CUDA_TRY(cudaDeviceSynchronize());
state.add_element_count(num_floats);
state.exec(nvbench::exec_tag::sync, [&](nvbench::launch& launch) {
auto stream = rmm::cuda_stream_view(launch.get_stream());
thrust::transform(floats.begin(), floats.begin(), floats.end(), results.begin(), eq_comp<T>{});
});
}
using floating_point_type = nvbench::type_list<float, double>;
NVBENCH_BENCH_TYPES(floating_point_equivalence_benchmark, NVBENCH_TYPE_AXES(floating_point_type))
.set_type_axes_names({"FloatingPointType"})
.add_int64_axis("NumFloats", {100'000, 1'000'000, 10'000'000, 100'000'000});
| 0 |
rapidsai_public_repos/cuspatial/cpp/benchmarks | rapidsai_public_repos/cuspatial/cpp/benchmarks/fixture/rmm_pool_raii.hpp | /*
* Copyright (c) 2022, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <rmm/mr/device/cuda_memory_resource.hpp>
#include <rmm/mr/device/owning_wrapper.hpp>
#include <rmm/mr/device/per_device_resource.hpp>
#include <rmm/mr/device/pool_memory_resource.hpp>
namespace cuspatial {
/**
* @brief An RAII class setting up RMM memory pool for `nvbench` benchmarks
*
* This is a temporary solution before templated fixtures tests are supported
* in `nvbench`. Similarly to `cuspatial::benchmark`, creating this RAII object in
* each benchmark will ensure that the RAPIDS Memory Manager pool mode is used
* in benchmarks, which eliminates memory allocation / deallocation performance
* overhead from the benchmark.
*
* Example:
*
* void my_benchmark(nvbench::state& state) {
* cuspatial::rmm_pool_raii pool_raii;
* state.exec([](nvbench::launch& launch) {
* // benchmark stuff
* });
* }
*
* NVBENCH_BENCH(my_benchmark);
*/
class rmm_pool_raii {
private:
// memory resource factory helpers
inline auto make_cuda() { return std::make_shared<rmm::mr::cuda_memory_resource>(); }
inline auto make_pool()
{
return rmm::mr::make_owning_wrapper<rmm::mr::pool_memory_resource>(make_cuda());
}
public:
rmm_pool_raii()
{
mr = make_pool();
rmm::mr::set_current_device_resource(mr.get()); // set default resource to pool
}
~rmm_pool_raii()
{
rmm::mr::set_current_device_resource(nullptr);
mr.reset();
}
private:
std::shared_ptr<rmm::mr::device_memory_resource> mr;
};
} // namespace cuspatial
| 0 |
rapidsai_public_repos/cuspatial/cpp/benchmarks | rapidsai_public_repos/cuspatial/cpp/benchmarks/fixture/benchmark_fixture.hpp | /*
* Copyright (c) 2019-2021, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <benchmark/benchmark.h>
#include <rmm/mr/device/cuda_memory_resource.hpp>
#include <rmm/mr/device/owning_wrapper.hpp>
#include <rmm/mr/device/per_device_resource.hpp>
#include <rmm/mr/device/pool_memory_resource.hpp>
namespace cuspatial {
namespace {
// memory resource factory helpers
inline auto make_cuda() { return std::make_shared<rmm::mr::cuda_memory_resource>(); }
inline auto make_pool()
{
return rmm::mr::make_owning_wrapper<rmm::mr::pool_memory_resource>(make_cuda());
}
} // namespace
/**
* @brief Google Benchmark fixture for libcuspatial benchmarks
*
* libcuspatial benchmarks should use a fixture derived from this fixture class to
* ensure that the RAPIDS Memory Manager pool mode is used in benchmarks, which
* eliminates memory allocation / deallocation performance overhead from the
* benchmark.
*
* The SetUp and TearDown methods of this fixture initialize RMM into pool mode
* and finalize it, respectively. These methods are called automatically by
* Google Benchmark
*
* Example:
*
* template <class T>
* class my_benchmark : public cuspatial::benchmark {
* public:
* using TypeParam = T;
* };
*
* Then:
*
* BENCHMARK_TEMPLATE_DEFINE_F(my_benchmark, my_test_name, int)
* (::benchmark::State& state) {
* for (auto _ : state) {
* // benchmark stuff
* }
* }
*
* BENCHMARK_REGISTER_F(my_benchmark, my_test_name)->Range(128, 512);
*/
class benchmark : public ::benchmark::Fixture {
public:
virtual void SetUp(const ::benchmark::State& state)
{
mr = make_pool();
rmm::mr::set_current_device_resource(mr.get()); // set default resource to pool
}
virtual void TearDown(const ::benchmark::State& state)
{
// reset default resource to the initial resource
rmm::mr::set_current_device_resource(nullptr);
}
// eliminate partial override warnings (see benchmark/benchmark.h)
virtual void SetUp(::benchmark::State& st) { SetUp(const_cast<const ::benchmark::State&>(st)); }
virtual void TearDown(::benchmark::State& st)
{
TearDown(const_cast<const ::benchmark::State&>(st));
}
std::shared_ptr<rmm::mr::device_memory_resource> mr;
};
}; // namespace cuspatial
| 0 |
rapidsai_public_repos/cuspatial/cpp/benchmarks | rapidsai_public_repos/cuspatial/cpp/benchmarks/points_in_range/points_in_range.cu | /*
* Copyright (c) 2022, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <benchmarks/fixture/rmm_pool_raii.hpp>
#include <cuspatial_test/random.cuh>
#include <cuspatial/error.hpp>
#include <cuspatial/geometry/vec_2d.hpp>
#include <cuspatial/iterator_factory.cuh>
#include <cuspatial/points_in_range.cuh>
#include <rmm/device_uvector.hpp>
#include <rmm/exec_policy.hpp>
#include <nvbench/nvbench.cuh>
#include <thrust/iterator/counting_iterator.h>
#include <thrust/random/linear_congruential_engine.h>
#include <thrust/random/normal_distribution.h>
#include <thrust/random/uniform_int_distribution.h>
#include <thrust/tabulate.h>
#include <memory>
using cuspatial::vec_2d;
/**
* @brief Helper to generate random points within a range
*
* @p begin and @p end must be iterators to device-accessible memory
*
* @tparam PointsIter The type of the iterator to the output points container
* @tparam T The floating point type for the coordinates
* @param begin The start of the sequence of points to generate
* @param end The end of the sequence of points to generate
*
* @param range the lower left range corner
* @param range the upper right range corner
*
*/
template <class PointsIter, typename T>
void generate_points(PointsIter begin, PointsIter end, vec_2d<T> range_min, vec_2d<T> range_max)
{
auto engine_x = cuspatial::test::deterministic_engine(std::distance(begin, end));
auto engine_y = cuspatial::test::deterministic_engine(2 * std::distance(begin, end));
auto x_dist = cuspatial::test::make_uniform_dist(range_min.x, range_max.x);
auto y_dist = cuspatial::test::make_uniform_dist(range_min.y, range_max.y);
auto x_gen = cuspatial::test::value_generator{range_min.x, range_max.x, engine_x, x_dist};
auto y_gen = cuspatial::test::value_generator{range_min.y, range_max.y, engine_y, y_dist};
thrust::tabulate(rmm::exec_policy(), begin, end, [x_gen, y_gen] __device__(size_t n) mutable {
return vec_2d<T>{x_gen(n), y_gen(n)};
});
}
template <typename T>
void points_in_range_benchmark(nvbench::state& state, nvbench::type_list<T>)
{
// TODO: to be replaced by nvbench fixture once it's ready
cuspatial::rmm_pool_raii rmm_pool;
auto const num_points{state.get_int64("NumPoints")};
auto range_min = vec_2d<T>{-100, -100};
auto range_max = vec_2d<T>{100, 100};
auto generate_min = vec_2d<T>{-200, -200};
auto generate_max = vec_2d<T>{200, 200};
auto points = rmm::device_uvector<cuspatial::vec_2d<T>>(num_points, rmm::cuda_stream_default);
generate_points(points.begin(), points.end(), generate_min, generate_max);
CUSPATIAL_CUDA_TRY(cudaDeviceSynchronize());
state.add_element_count(num_points);
state.exec(nvbench::exec_tag::sync, [&](nvbench::launch& launch) {
auto stream = rmm::cuda_stream_view(launch.get_stream());
auto num_points_in =
cuspatial::count_points_in_range(range_min, range_max, points.begin(), points.end(), stream);
auto result_points = rmm::device_uvector<cuspatial::vec_2d<T>>(num_points_in, stream);
cuspatial::copy_points_in_range(
range_min, range_max, points.begin(), points.end(), result_points.begin(), stream);
});
}
using floating_point_types = nvbench::type_list<float, double>;
NVBENCH_BENCH_TYPES(points_in_range_benchmark, NVBENCH_TYPE_AXES(floating_point_types))
.set_type_axes_names({"CoordsType"})
.add_int64_axis("NumPoints", {100'000, 1'000'000, 10'000'000, 100'000'000});
| 0 |
rapidsai_public_repos/cuspatial/cpp/benchmarks | rapidsai_public_repos/cuspatial/cpp/benchmarks/indexing/quadtree_on_points.cu | /*
* Copyright (c) 2022, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <cuspatial/geometry/vec_2d.hpp>
#include <cuspatial/point_quadtree.cuh>
#include <benchmarks/fixture/rmm_pool_raii.hpp>
#include <nvbench/nvbench.cuh>
#include <rmm/cuda_stream_view.hpp>
#include <rmm/device_vector.hpp>
#include <rmm/exec_policy.hpp>
#include <thrust/host_vector.h>
using namespace cuspatial;
template <typename T>
auto generate_rects(T const size)
{
auto const phi = static_cast<T>((1 + std::sqrt(5)) * .5);
vec_2d<T> tl{T{0}, T{0}};
vec_2d<T> br{size, size};
vec_2d<T> area = br - tl;
std::size_t num_points = 0;
std::vector<std::tuple<std::size_t, vec_2d<T>, vec_2d<T>>> rects{};
do {
switch (rects.size() % 4) {
case 0: br.x = tl.x - (tl.x - br.x) / phi; break;
case 1: br.y = tl.y - (tl.y - br.y) / phi; break;
case 2: tl.x = tl.x + (br.x - tl.x) / phi; break;
case 3: tl.y = tl.y + (br.y - tl.y) / phi; break;
}
area = br - tl;
auto num_points_in_rect = static_cast<std::size_t>(std::sqrt(area.x * area.y * 1'000'000));
rects.push_back(std::make_tuple(num_points_in_rect, tl, br));
num_points += num_points_in_rect;
} while (area.x > 1 && area.y > 1);
return std::make_pair(num_points, std::move(rects));
}
/**
* @brief Generate a random point within a window of [minXY, maxXY]
*/
template <typename T>
vec_2d<T> random_point(vec_2d<T> minXY, vec_2d<T> maxXY)
{
auto x = minXY.x + (maxXY.x - minXY.x) * rand() / static_cast<T>(RAND_MAX);
auto y = minXY.y + (maxXY.y - minXY.y) * rand() / static_cast<T>(RAND_MAX);
return vec_2d<T>{x, y};
}
template <typename T>
std::pair<std::size_t, std::vector<vec_2d<T>>> generate_points(T const size)
{
auto const [total_points, rects] = generate_rects(size);
std::size_t point_offset{0};
std::vector<vec_2d<T>> h_points(total_points);
for (auto const& rect : rects) {
auto const num_points_in_rect = std::get<0>(rect);
auto const tl = std::get<1>(rect);
auto const br = std::get<2>(rect);
auto points_begin = h_points.begin() + point_offset;
auto points_end = points_begin + num_points_in_rect;
std::generate(points_begin, points_end, [&]() { return random_point<T>(tl, br); });
point_offset += num_points_in_rect;
}
return {total_points, h_points};
}
template <typename T>
void quadtree_on_points_benchmark(nvbench::state& state, nvbench::type_list<T>)
{
auto const [total_points, h_points] =
generate_points(static_cast<T>(state.get_float64("Bounding box size")));
auto const max_size = static_cast<int32_t>(total_points / std::pow(4, 4));
rmm::device_vector<vec_2d<T>> d_points(h_points);
auto const vertex_1_itr = thrust::min_element(
thrust::device, d_points.begin(), d_points.end(), [] __device__(auto const& a, auto const& b) {
return a.x <= b.x && a.y <= b.y;
});
auto const vertex_1 = h_points[thrust::distance(d_points.begin(), vertex_1_itr)];
auto const vertex_2_itr = thrust::max_element(
thrust::device, d_points.begin(), d_points.end(), [] __device__(auto const& a, auto const& b) {
return a.x >= b.x && a.y >= b.y;
});
auto const vertex_2 = h_points[thrust::distance(d_points.begin(), vertex_2_itr)];
// TODO: to be replaced by nvbench fixture once it's ready
cuspatial::rmm_pool_raii rmm_pool;
state.add_element_count(max_size, "Split threshold");
state.add_element_count(total_points, "Total Points");
state.exec(nvbench::exec_tag::sync,
[&d_points, &vertex_1, &vertex_2, max_size](nvbench::launch& launch) {
quadtree_on_points(
d_points.begin(), d_points.end(), vertex_1, vertex_2, T{-1}, int8_t{15}, max_size);
});
}
using floating_point_types = nvbench::type_list<float, double>;
NVBENCH_BENCH_TYPES(quadtree_on_points_benchmark, NVBENCH_TYPE_AXES(floating_point_types))
.set_type_axes_names({"FP type"})
.add_float64_axis("Bounding box size", {1'000, 10'000, 100'000});
| 0 |
rapidsai_public_repos/cuspatial/cpp | rapidsai_public_repos/cuspatial/cpp/cmake/config.json | {
"parse": {
"additional_commands": {
"CPMFindPackage": {
"kwargs": {
"NAME": 1,
"GITHUB_REPOSITORY": "?",
"GIT_TAG": "?",
"VERSION": "?",
"GIT_SHALLOW": "?",
"OPTIONS": "*",
"FIND_PACKAGE_ARGUMENTS": "*"
}
},
"ConfigureTest": {
"flags": ["TEST_NAME", "TEST_SRC"]
},
"ConfigureBench": {
"flags": ["BENCH_NAME", "BENCH_SRC"]
}
}
},
"format": {
"line_width": 100,
"tab_size": 2,
"command_case": "unchanged",
"max_lines_hwrap": 1,
"max_pargs_hwrap": 999
},
"lint": {
"disabled_codes": ["C0301"],
"function_pattern": "[0-9A-z_]+",
"macro_pattern": "[0-9A-z_]+",
"global_var_pattern": "[A-z][0-9A-z_]+",
"internal_var_pattern": "_[A-z][0-9A-z_]+",
"local_var_pattern": "[A-z][A-z0-9_]+",
"private_var_pattern": "_[0-9A-z_]+",
"public_var_pattern": "[A-z][0-9A-z_]+",
"argument_var_pattern": "[A-z][A-z0-9_]+",
"keyword_pattern": "[A-z][0-9A-z_]+"
}
}
| 0 |
rapidsai_public_repos/cuspatial/cpp/cmake | rapidsai_public_repos/cuspatial/cpp/cmake/Modules/ConfigureCUDA.cmake | #=============================================================================
# Copyright (c) 2021, NVIDIA CORPORATION.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#=============================================================================
if(CMAKE_COMPILER_IS_GNUCXX)
list(APPEND CUSPATIAL_CXX_FLAGS -Wall -Werror -Wno-unknown-pragmas -Wno-error=deprecated-declarations)
if(CUSPATIAL_BUILD_TESTS OR CUSPATIAL_BUILD_BENCHMARKS)
# Suppress parentheses warning which causes gmock to fail
list(APPEND CUSPATIAL_CUDA_FLAGS -Xcompiler=-Wno-parentheses)
endif()
endif(CMAKE_COMPILER_IS_GNUCXX)
list(APPEND CUSPATIAL_CUDA_FLAGS --expt-extended-lambda --expt-relaxed-constexpr)
# set warnings as errors
if(CMAKE_CUDA_COMPILER_VERSION VERSION_GREATER_EQUAL 11.2.0)
list(APPEND CUSPATIAL_CUDA_FLAGS -Werror=all-warnings)
endif()
list(APPEND CUSPATIAL_CUDA_FLAGS -Xcompiler=-Wall,-Werror,-Wno-error=deprecated-declarations)
# Produce smallest binary size
list(APPEND CUSPATIAL_CUDA_FLAGS -Xfatbin=-compress-all)
if(DISABLE_DEPRECATION_WARNING)
list(APPEND CUSPATIAL_CXX_FLAGS -Wno-deprecated-declarations)
list(APPEND CUSPATIAL_CUDA_FLAGS -Xcompiler=-Wno-deprecated-declarations)
endif()
# Option to enable line info in CUDA device compilation to allow introspection when profiling / memchecking
if(CUDA_ENABLE_LINEINFO)
list(APPEND CUSPATIAL_CUDA_FLAGS -lineinfo)
endif()
# Debug options
if(CMAKE_BUILD_TYPE MATCHES Debug)
message(STATUS "CUSPATIAL: Building with debugging flags")
list(APPEND CUSPATIAL_CUDA_FLAGS -G -Xcompiler=-rdynamic)
endif()
| 0 |
rapidsai_public_repos/cuspatial/cpp/cmake | rapidsai_public_repos/cuspatial/cpp/cmake/thirdparty/get_cudf.cmake | #=============================================================================
# Copyright (c) 2021-2023, NVIDIA CORPORATION.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#=============================================================================
function(find_and_configure_cudf)
if(TARGET cudf::cudf)
return()
endif()
set(oneValueArgs VERSION GIT_REPO GIT_TAG USE_CUDF_STATIC EXCLUDE_FROM_ALL PER_THREAD_DEFAULT_STREAM)
cmake_parse_arguments(PKG "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN})
set(global_targets cudf::cudf)
set(cudf_components "")
if(BUILD_TESTS OR BUILD_BENCHMARKS)
list(APPEND global_targets cudf::cudftestutil)
set(cudf_components COMPONENTS testing)
endif()
set(BUILD_SHARED ON)
if(${PKG_USE_CUDF_STATIC})
set(BUILD_SHARED OFF)
endif()
rapids_cpm_find(cudf ${PKG_VERSION} ${cudf_components}
GLOBAL_TARGETS ${global_targets}
BUILD_EXPORT_SET cuspatial-exports
INSTALL_EXPORT_SET cuspatial-exports
CPM_ARGS
GIT_REPOSITORY ${PKG_GIT_REPO}
GIT_TAG ${PKG_GIT_TAG}
GIT_SHALLOW TRUE
SOURCE_SUBDIR cpp
EXCLUDE_FROM_ALL ${PKG_EXCLUDE_FROM_ALL}
OPTIONS "BUILD_TESTS OFF"
"BUILD_BENCHMARKS OFF"
"BUILD_SHARED_LIBS ${BUILD_SHARED}"
"CUDF_BUILD_TESTUTIL ${BUILD_TESTS}"
"CUDF_BUILD_STREAMS_TEST_UTIL ${BUILD_TESTS}"
"CUDF_USE_PER_THREAD_DEFAULT_STREAM ${PKG_PER_THREAD_DEFAULT_STREAM}"
)
if(TARGET cudf)
set_property(TARGET cudf PROPERTY SYSTEM TRUE)
endif()
endfunction()
set(CUSPATIAL_MIN_VERSION_cudf "${CUSPATIAL_VERSION_MAJOR}.${CUSPATIAL_VERSION_MINOR}")
if(NOT DEFINED CUSPATIAL_CUDF_GIT_REPO)
set(CUSPATIAL_CUDF_GIT_REPO https://github.com/rapidsai/cudf.git)
endif()
if(NOT DEFINED CUSPATIAL_CUDF_GIT_TAG)
set(CUSPATIAL_CUDF_GIT_TAG branch-${CUSPATIAL_MIN_VERSION_cudf})
endif()
find_and_configure_cudf(VERSION ${CUSPATIAL_MIN_VERSION_cudf}.00
GIT_REPO ${CUSPATIAL_CUDF_GIT_REPO}
GIT_TAG ${CUSPATIAL_CUDF_GIT_TAG}
USE_CUDF_STATIC ${CUSPATIAL_USE_CUDF_STATIC}
EXCLUDE_FROM_ALL ${CUSPATIAL_EXCLUDE_CUDF_FROM_ALL}
PER_THREAD_DEFAULT_STREAM ${PER_THREAD_DEFAULT_STREAM})
| 0 |
rapidsai_public_repos/cuspatial/cpp/cmake | rapidsai_public_repos/cuspatial/cpp/cmake/thirdparty/get_gtest.cmake | # =============================================================================
# Copyright (c) 2023, NVIDIA CORPORATION.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
# in compliance with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software distributed under the License
# is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
# or implied. See the License for the specific language governing permissions and limitations under
# the License.
# =============================================================================
# This function finds gtest and sets any additional necessary environment variables.
function(find_and_configure_gtest)
include(${rapids-cmake-dir}/cpm/gtest.cmake)
# Find or install GoogleTest
rapids_cpm_gtest(BUILD_EXPORT_SET cuspatial-testing-exports INSTALL_EXPORT_SET cuspatial-testing-exports)
if(GTest_ADDED)
rapids_export(
BUILD GTest
VERSION ${GTest_VERSION}
EXPORT_SET GTestTargets
GLOBAL_TARGETS gtest gmock gtest_main gmock_main
NAMESPACE GTest::
)
include("${rapids-cmake-dir}/export/find_package_root.cmake")
rapids_export_find_package_root(
BUILD GTest [=[${CMAKE_CURRENT_LIST_DIR}]=] cuspatial-testing-exports
)
endif()
endfunction()
find_and_configure_gtest()
| 0 |
rapidsai_public_repos/cuspatial/cpp/cmake | rapidsai_public_repos/cuspatial/cpp/cmake/thirdparty/get_ranger.cmake | #=============================================================================
# Copyright (c) 2023, NVIDIA CORPORATION.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#=============================================================================
function(find_and_configure_ranger)
if(TARGET ranger::ranger)
return()
endif()
set(global_targets ranger::ranger)
set(find_package_args "")
rapids_cpm_find(
ranger 00.01.00
GLOBAL_TARGETS "${global_targets}"
BUILD_EXPORT_SET cuspatial-exports
INSTALL_EXPORT_SET cuspatial-exports
CPM_ARGS
GIT_REPOSITORY https://github.com/harrism/ranger.git
GIT_TAG main
GIT_SHALLOW TRUE
OPTIONS "BUILD_TESTS OFF"
FIND_PACKAGE_ARGUMENTS "${find_package_args}"
)
endfunction()
find_and_configure_ranger()
| 0 |
rapidsai_public_repos/cuspatial/cpp/src | rapidsai_public_repos/cuspatial/cpp/src/bounding_boxes/linestring_bounding_boxes.cu | /*
* Copyright (c) 2020-2022, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <cuspatial/bounding_boxes.cuh>
#include <cuspatial/error.hpp>
#include <cuspatial/iterator_factory.cuh>
#include <cudf/column/column_factories.hpp>
#include <cudf/column/column_view.hpp>
#include <cudf/copying.hpp>
#include <cudf/table/table.hpp>
#include <cudf/types.hpp>
#include <rmm/cuda_stream_view.hpp>
#include <rmm/exec_policy.hpp>
#include <thrust/iterator/zip_iterator.h>
#include <memory>
#include <utility>
namespace cuspatial {
namespace {
template <typename T>
std::unique_ptr<cudf::table> compute_linestring_bounding_boxes(
cudf::column_view const& linestring_offsets,
cudf::column_view const& x,
cudf::column_view const& y,
T expansion_radius,
rmm::cuda_stream_view stream,
rmm::mr::device_memory_resource* mr)
{
auto num_linestrings = linestring_offsets.size() > 0 ? linestring_offsets.size() - 1 : 0;
auto type = cudf::data_type{cudf::type_to_id<T>()};
std::vector<std::unique_ptr<cudf::column>> cols{};
cols.reserve(4);
cols.push_back(
cudf::make_numeric_column(type, num_linestrings, cudf::mask_state::UNALLOCATED, stream, mr));
cols.push_back(
cudf::make_numeric_column(type, num_linestrings, cudf::mask_state::UNALLOCATED, stream, mr));
cols.push_back(
cudf::make_numeric_column(type, num_linestrings, cudf::mask_state::UNALLOCATED, stream, mr));
cols.push_back(
cudf::make_numeric_column(type, num_linestrings, cudf::mask_state::UNALLOCATED, stream, mr));
auto vertices_begin = cuspatial::make_vec_2d_iterator(x.begin<T>(), y.begin<T>());
auto bounding_boxes_begin =
cuspatial::make_box_output_iterator(cols.at(0)->mutable_view().begin<T>(),
cols.at(1)->mutable_view().begin<T>(),
cols.at(2)->mutable_view().begin<T>(),
cols.at(3)->mutable_view().begin<T>());
linestring_bounding_boxes(linestring_offsets.begin<cudf::size_type>(),
linestring_offsets.end<cudf::size_type>(),
vertices_begin,
vertices_begin + x.size(),
bounding_boxes_begin,
expansion_radius,
stream);
return std::make_unique<cudf::table>(std::move(cols));
}
struct dispatch_compute_linestring_bounding_boxes {
template <typename T, typename... Args>
inline std::enable_if_t<!std::is_floating_point<T>::value, std::unique_ptr<cudf::table>>
operator()(Args&&...)
{
CUSPATIAL_FAIL("Only floating-point types are supported");
}
template <typename T>
inline std::enable_if_t<std::is_floating_point<T>::value, std::unique_ptr<cudf::table>>
operator()(cudf::column_view const& linestring_offsets,
cudf::column_view const& x,
cudf::column_view const& y,
double expansion_radius,
rmm::cuda_stream_view stream,
rmm::mr::device_memory_resource* mr)
{
return compute_linestring_bounding_boxes<T>(
linestring_offsets, x, y, static_cast<T>(expansion_radius), stream, mr);
}
};
} // namespace
namespace detail {
std::unique_ptr<cudf::table> linestring_bounding_boxes(cudf::column_view const& linestring_offsets,
cudf::column_view const& x,
cudf::column_view const& y,
double expansion_radius,
rmm::cuda_stream_view stream,
rmm::mr::device_memory_resource* mr)
{
return cudf::type_dispatcher(x.type(),
dispatch_compute_linestring_bounding_boxes{},
linestring_offsets,
x,
y,
expansion_radius,
rmm::cuda_stream_default,
mr);
}
} // namespace detail
std::unique_ptr<cudf::table> linestring_bounding_boxes(cudf::column_view const& linestring_offsets,
cudf::column_view const& x,
cudf::column_view const& y,
double expansion_radius,
rmm::mr::device_memory_resource* mr)
{
auto num_linestrings = linestring_offsets.size() > 0 ? linestring_offsets.size() - 1 : 0;
CUSPATIAL_EXPECTS(x.type() == y.type(), "Data type mismatch");
CUSPATIAL_EXPECTS(x.size() == y.size(), "x and y must be the same size");
CUSPATIAL_EXPECTS(linestring_offsets.type().id() == cudf::type_id::INT32,
"Invalid linestring_offsets type");
CUSPATIAL_EXPECTS(expansion_radius >= 0, "expansion radius must be greater or equal than 0");
CUSPATIAL_EXPECTS(x.size() >= 2 * num_linestrings,
"all linestrings must have at least 2 vertices");
if (linestring_offsets.is_empty() || x.is_empty() || y.is_empty()) {
std::vector<std::unique_ptr<cudf::column>> cols{};
cols.reserve(4);
cols.push_back(cudf::empty_like(x));
cols.push_back(cudf::empty_like(y));
cols.push_back(cudf::empty_like(x));
cols.push_back(cudf::empty_like(y));
return std::make_unique<cudf::table>(std::move(cols));
}
return detail::linestring_bounding_boxes(
linestring_offsets, x, y, expansion_radius, rmm::cuda_stream_default, mr);
}
} // namespace cuspatial
| 0 |
rapidsai_public_repos/cuspatial/cpp/src | rapidsai_public_repos/cuspatial/cpp/src/bounding_boxes/polygon_bounding_boxes.cu | /*
* Copyright (c) 2020-2023, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <cuspatial/error.hpp>
#include <cuspatial/bounding_boxes.cuh>
#include <cuspatial/iterator_factory.cuh>
#include <cudf/column/column_factories.hpp>
#include <cudf/column/column_view.hpp>
#include <cudf/copying.hpp>
#include <cudf/table/table.hpp>
#include <cudf/types.hpp>
#include <cudf/utilities/type_dispatcher.hpp>
#include <rmm/cuda_stream_view.hpp>
#include <rmm/exec_policy.hpp>
#include <thrust/iterator/zip_iterator.h>
#include <memory>
#include <vector>
namespace cuspatial {
namespace {
template <typename T>
std::unique_ptr<cudf::table> compute_polygon_bounding_boxes(cudf::column_view const& poly_offsets,
cudf::column_view const& ring_offsets,
cudf::column_view const& x,
cudf::column_view const& y,
T expansion_radius,
rmm::cuda_stream_view stream,
rmm::mr::device_memory_resource* mr)
{
auto num_polygons = poly_offsets.size() > 0 ? poly_offsets.size() - 1 : 0;
auto type = cudf::data_type{cudf::type_to_id<T>()};
std::vector<std::unique_ptr<cudf::column>> cols{};
cols.reserve(4);
cols.push_back(
cudf::make_numeric_column(type, num_polygons, cudf::mask_state::UNALLOCATED, stream, mr));
cols.push_back(
cudf::make_numeric_column(type, num_polygons, cudf::mask_state::UNALLOCATED, stream, mr));
cols.push_back(
cudf::make_numeric_column(type, num_polygons, cudf::mask_state::UNALLOCATED, stream, mr));
cols.push_back(
cudf::make_numeric_column(type, num_polygons, cudf::mask_state::UNALLOCATED, stream, mr));
auto vertices_begin = cuspatial::make_vec_2d_iterator(x.begin<T>(), y.begin<T>());
auto bounding_boxes_begin =
cuspatial::make_box_output_iterator(cols.at(0)->mutable_view().begin<T>(),
cols.at(1)->mutable_view().begin<T>(),
cols.at(2)->mutable_view().begin<T>(),
cols.at(3)->mutable_view().begin<T>());
cuspatial::polygon_bounding_boxes(poly_offsets.begin<cudf::size_type>(),
poly_offsets.end<cudf::size_type>(),
ring_offsets.begin<cudf::size_type>(),
ring_offsets.end<cudf::size_type>(),
vertices_begin,
vertices_begin + x.size(),
bounding_boxes_begin,
expansion_radius,
stream);
return std::make_unique<cudf::table>(std::move(cols));
}
struct dispatch_compute_polygon_bounding_boxes {
template <typename T, typename... Args>
inline std::enable_if_t<!std::is_floating_point<T>::value, std::unique_ptr<cudf::table>>
operator()(Args&&...)
{
CUSPATIAL_FAIL("Only floating-point types are supported");
}
template <typename T>
inline std::enable_if_t<std::is_floating_point<T>::value, std::unique_ptr<cudf::table>>
operator()(cudf::column_view const& poly_offsets,
cudf::column_view const& ring_offsets,
cudf::column_view const& x,
cudf::column_view const& y,
T expansion_radius,
rmm::cuda_stream_view stream,
rmm::mr::device_memory_resource* mr)
{
return compute_polygon_bounding_boxes<T>(
poly_offsets, ring_offsets, x, y, expansion_radius, stream, mr);
}
};
} // namespace
namespace detail {
std::unique_ptr<cudf::table> polygon_bounding_boxes(cudf::column_view const& poly_offsets,
cudf::column_view const& ring_offsets,
cudf::column_view const& x,
cudf::column_view const& y,
double expansion_radius,
rmm::cuda_stream_view stream,
rmm::mr::device_memory_resource* mr)
{
return cudf::type_dispatcher(x.type(),
dispatch_compute_polygon_bounding_boxes{},
poly_offsets,
ring_offsets,
x,
y,
expansion_radius,
stream,
mr);
}
} // namespace detail
std::unique_ptr<cudf::table> polygon_bounding_boxes(cudf::column_view const& poly_offsets,
cudf::column_view const& ring_offsets,
cudf::column_view const& x,
cudf::column_view const& y,
double expansion_radius,
rmm::mr::device_memory_resource* mr)
{
auto num_polys = poly_offsets.size() > 0 ? poly_offsets.size() - 1 : 0;
auto num_rings = ring_offsets.size() > 0 ? ring_offsets.size() - 1 : 0;
CUSPATIAL_EXPECTS(x.type() == y.type(), "Data type mismatch");
CUSPATIAL_EXPECTS(poly_offsets.type().id() == cudf::type_id::INT32, "Invalid poly_offsets type");
CUSPATIAL_EXPECTS(ring_offsets.type().id() == cudf::type_id::INT32, "Invalid ring_offsets type");
CUSPATIAL_EXPECTS(x.size() == y.size(), "x and y must be the same size");
if (num_polys == 0) {
std::vector<std::unique_ptr<cudf::column>> cols{};
cols.reserve(4);
cols.push_back(cudf::empty_like(x));
cols.push_back(cudf::empty_like(y));
cols.push_back(cudf::empty_like(x));
cols.push_back(cudf::empty_like(y));
return std::make_unique<cudf::table>(std::move(cols));
}
return detail::polygon_bounding_boxes(
poly_offsets, ring_offsets, x, y, expansion_radius, rmm::cuda_stream_default, mr);
}
} // namespace cuspatial
| 0 |
rapidsai_public_repos/cuspatial/cpp/src | rapidsai_public_repos/cuspatial/cpp/src/projection/sinusoidal_projection.cu | /*
* Copyright (c) 2019-2023, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <cuspatial/error.hpp>
#include <cuspatial/geometry/vec_2d.hpp>
#include <cuspatial/iterator_factory.cuh>
#include <cuspatial/projection.cuh>
#include <cudf/column/column.hpp>
#include <cudf/column/column_device_view.cuh>
#include <cudf/column/column_factories.hpp>
#include <cudf/utilities/type_dispatcher.hpp>
#include <rmm/cuda_stream_view.hpp>
#include <rmm/exec_policy.hpp>
#include <thrust/iterator/zip_iterator.h>
#include <thrust/pair.h>
#include <thrust/transform.h>
#include <thrust/tuple.h>
#include <type_traits>
#include <utility>
namespace {
using pair_of_columns = std::pair<std::unique_ptr<cudf::column>, std::unique_ptr<cudf::column>>;
struct dispatch_sinusoidal_projection {
template <typename T, typename... Args>
std::enable_if_t<not std::is_floating_point<T>::value, pair_of_columns> operator()(Args&&...)
{
CUSPATIAL_FAIL("Non-floating point operation is not supported");
}
template <typename T>
std::enable_if_t<std::is_floating_point<T>::value, pair_of_columns> operator()(
T origin_lon,
T origin_lat,
cudf::column_view const& input_lon,
cudf::column_view const& input_lat,
rmm::cuda_stream_view stream,
rmm::mr::device_memory_resource* mr)
{
auto size = input_lon.size();
auto type = cudf::data_type{cudf::type_to_id<T>()};
auto output_x =
cudf::make_fixed_width_column(type, size, cudf::mask_state::UNALLOCATED, stream, mr);
auto output_y =
cudf::make_fixed_width_column(type, size, cudf::mask_state::UNALLOCATED, stream, mr);
auto lonlat_begin = cuspatial::make_vec_2d_iterator(input_lon.begin<T>(), input_lat.begin<T>());
auto output_zip = cuspatial::make_vec_2d_output_iterator(output_x->mutable_view().begin<T>(),
output_y->mutable_view().begin<T>());
auto origin = cuspatial::vec_2d<T>{origin_lon, origin_lat};
cuspatial::sinusoidal_projection(
lonlat_begin, lonlat_begin + input_lon.size(), output_zip, origin, stream);
return std::make_pair(std::move(output_x), std::move(output_y));
}
};
} // namespace
namespace cuspatial {
namespace detail {
pair_of_columns sinusoidal_projection(double origin_lon,
double origin_lat,
cudf::column_view const& input_lon,
cudf::column_view const& input_lat,
rmm::cuda_stream_view stream,
rmm::mr::device_memory_resource* mr)
{
CUSPATIAL_EXPECTS(
origin_lon >= -180 && origin_lon <= 180 && origin_lat >= -90 && origin_lat <= 90,
"origin must have valid longitude [-180, 180] and latitude [-90, 90]");
CUSPATIAL_EXPECTS(input_lon.size() == input_lat.size(), "inputs must have the same length");
CUSPATIAL_EXPECTS(input_lon.type() == input_lat.type(), "inputs must have the same type");
CUSPATIAL_EXPECTS(not input_lon.has_nulls() && not input_lat.has_nulls(),
"input cannot contain nulls");
return cudf::type_dispatcher(input_lon.type(),
dispatch_sinusoidal_projection(),
origin_lon,
origin_lat,
input_lon,
input_lat,
stream,
mr);
}
} // namespace detail
pair_of_columns sinusoidal_projection(double origin_lon,
double origin_lat,
cudf::column_view const& input_lon,
cudf::column_view const& input_lat,
rmm::mr::device_memory_resource* mr)
{
return detail::sinusoidal_projection(
origin_lon, origin_lat, input_lon, input_lat, rmm::cuda_stream_default, mr);
}
} // namespace cuspatial
| 0 |
rapidsai_public_repos/cuspatial/cpp/src | rapidsai_public_repos/cuspatial/cpp/src/intersection/linestring_intersection.cu | /*
* Copyright (c) 2023, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "../utility/multi_geometry_dispatch.hpp"
#include <cuspatial/column/geometry_column_view.hpp>
#include <cuspatial/error.hpp>
#include <cuspatial/geometry/vec_2d.hpp>
#include <cuspatial/intersection.cuh>
#include <cuspatial/intersection.hpp>
#include <cuspatial/iterator_factory.cuh>
#include <cuspatial/range/multilinestring_range.cuh>
#include <cuspatial/types.hpp>
#include <cudf/column/column_factories.hpp>
#include <cudf/column/column_view.hpp>
#include <cudf/copying.hpp>
#include <cudf/lists/lists_column_view.hpp>
#include <cudf/types.hpp>
#include <cudf/utilities/type_dispatcher.hpp>
#include <rmm/cuda_stream_view.hpp>
#include <rmm/exec_policy.hpp>
#include <memory>
#include <type_traits>
namespace cuspatial {
namespace detail {
std::unique_ptr<cudf::column> even_sequence(cudf::size_type size,
rmm::cuda_stream_view stream,
rmm::mr::device_memory_resource* mr)
{
auto res = cudf::make_numeric_column(cudf::data_type{cudf::type_to_id<cudf::size_type>()},
size,
cudf::mask_state::UNALLOCATED,
stream,
mr);
thrust::sequence(rmm::exec_policy(stream),
res->mutable_view().begin<cudf::size_type>(),
res->mutable_view().end<cudf::size_type>(),
0,
2);
return res;
}
template <collection_type_id lhs_type, collection_type_id rhs_type>
struct pairwise_linestring_intersection_launch {
template <typename T>
std::enable_if_t<std::is_floating_point<T>::value, linestring_intersection_column_result>
operator()(geometry_column_view const& multilinestrings1,
geometry_column_view const& multilinestrings2,
rmm::cuda_stream_view stream,
rmm::mr::device_memory_resource* mr)
{
using index_t = cudf::size_type;
auto multilinestrings_range1 =
make_multilinestring_range<lhs_type, T, index_t>(multilinestrings1);
auto multilinestrings_range2 =
make_multilinestring_range<rhs_type, T, index_t>(multilinestrings2);
auto intersection_results = pairwise_linestring_intersection<T, index_t>(
multilinestrings_range1, multilinestrings_range2, mr, stream);
auto num_points = intersection_results.points_coords->size();
auto points_offsets = even_sequence(num_points + 1, stream, mr);
auto points_xy = std::make_unique<cudf::column>(cudf::data_type(cudf::type_to_id<T>()),
2 * num_points,
intersection_results.points_coords->release(),
rmm::device_buffer{},
0);
auto points =
cudf::make_lists_column(num_points, std::move(points_offsets), std::move(points_xy), 0, {});
auto num_segments = intersection_results.segments_coords->size();
auto segment_offsets = even_sequence(num_segments + 1, stream, mr);
auto num_segment_points = 2 * num_segments;
auto segment_coord_offsets = even_sequence(num_segment_points + 1, stream, mr);
auto num_segment_coords = 2 * num_segment_points;
auto segments_xy =
std::make_unique<cudf::column>(cudf::data_type(cudf::type_to_id<T>()),
num_segment_coords,
intersection_results.segments_coords->release(),
rmm::device_buffer{},
0);
auto segments =
cudf::make_lists_column(num_segments,
std::move(segment_offsets),
cudf::make_lists_column(num_segment_points,
std::move(segment_coord_offsets),
std::move(segments_xy),
0,
{},
stream,
mr),
0,
{},
stream,
mr);
return linestring_intersection_column_result{
std::make_unique<cudf::column>(
std::move(*intersection_results.geometry_collection_offset.release()),
rmm::device_buffer{},
0),
std::make_unique<cudf::column>(
std::move(*intersection_results.types_buffer.release()), rmm::device_buffer{}, 0),
std::make_unique<cudf::column>(
std::move(*intersection_results.offset_buffer.release()), rmm::device_buffer{}, 0),
std::move(points),
std::move(segments),
std::make_unique<cudf::column>(
std::move(*intersection_results.lhs_linestring_id.release()), rmm::device_buffer{}, 0),
std::make_unique<cudf::column>(
std::move(*intersection_results.lhs_segment_id.release()), rmm::device_buffer{}, 0),
std::make_unique<cudf::column>(
std::move(*intersection_results.rhs_linestring_id.release()), rmm::device_buffer{}, 0),
std::make_unique<cudf::column>(
std::move(*intersection_results.rhs_segment_id.release()), rmm::device_buffer{}, 0)};
}
template <typename T, typename... Args>
std::enable_if_t<not std::is_floating_point<T>::value, linestring_intersection_column_result>
operator()(Args&&...)
{
CUSPATIAL_FAIL("Linestring intersections only supports floating point coordinates.");
}
};
template <collection_type_id lhs_type, collection_type_id rhs_type>
struct pairwise_linestring_intersection {
linestring_intersection_column_result operator()(geometry_column_view const& linestrings1,
geometry_column_view const& linestrings2,
rmm::cuda_stream_view stream,
rmm::mr::device_memory_resource* mr)
{
CUSPATIAL_EXPECTS(linestrings1.coordinate_type() == linestrings2.coordinate_type(),
"Input linestring coordinates must be the same type.");
CUSPATIAL_EXPECTS(linestrings1.size() == linestrings2.size(),
"Input geometry array size mismatches.");
return cudf::type_dispatcher(linestrings1.coordinate_type(),
pairwise_linestring_intersection_launch<lhs_type, rhs_type>{},
linestrings1,
linestrings2,
stream,
mr);
}
};
} // namespace detail
linestring_intersection_column_result pairwise_linestring_intersection(
geometry_column_view const& lhs,
geometry_column_view const& rhs,
rmm::mr::device_memory_resource* mr)
{
CUSPATIAL_EXPECTS(lhs.geometry_type() == geometry_type_id::LINESTRING &&
rhs.geometry_type() == geometry_type_id::LINESTRING,
"Input must be linestring columns.");
return multi_geometry_double_dispatch<detail::pairwise_linestring_intersection>(
lhs.collection_type(), rhs.collection_type(), lhs, rhs, rmm::cuda_stream_default, mr);
}
} // namespace cuspatial
| 0 |
rapidsai_public_repos/cuspatial/cpp/src | rapidsai_public_repos/cuspatial/cpp/src/nearest_points/point_linestring_nearest_points.cu | /*
* Copyright (c) 2022-2023, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "../utility/double_boolean_dispatch.hpp"
#include "../utility/iterator.hpp"
#include <cuspatial/geometry/vec_2d.hpp>
#include <cuspatial/iterator_factory.cuh>
#include <cuspatial/nearest_points.cuh>
#include <cuspatial/nearest_points.hpp>
#include <cudf/column/column_factories.hpp>
#include <cudf/column/column_view.hpp>
#include <cudf/reshape.hpp>
#include <cudf/types.hpp>
#include <cudf/utilities/span.hpp>
#include <cudf/utilities/type_dispatcher.hpp>
#include <rmm/cuda_stream_view.hpp>
#include <thrust/iterator/counting_iterator.h>
#include <thrust/iterator/discard_iterator.h>
#include <optional>
#include <utility>
namespace cuspatial {
namespace detail {
namespace {
template <bool is_multi_point, bool is_multi_linestring>
struct pairwise_point_linestring_nearest_points_impl {
using SizeType = cudf::device_span<cudf::size_type>::size_type;
template <typename T, CUDF_ENABLE_IF(std::is_floating_point_v<T>)>
point_linestring_nearest_points_result operator()(
cudf::size_type num_pairs,
std::optional<cudf::device_span<cudf::size_type const>> multipoint_geometry_offsets,
cudf::column_view points_xy,
std::optional<cudf::device_span<cudf::size_type const>> multilinestring_geometry_offsets,
cudf::device_span<cudf::size_type const> linestring_offsets,
cudf::column_view linestring_points_xy,
rmm::cuda_stream_view stream,
rmm::mr::device_memory_resource* mr)
{
auto num_points = static_cast<SizeType>(points_xy.size() / 2);
auto num_linestring_points = static_cast<SizeType>(linestring_points_xy.size() / 2);
auto point_geometry_it =
get_geometry_iterator_functor<is_multi_point>{}(multipoint_geometry_offsets);
auto points_it = make_vec_2d_iterator(points_xy.begin<T>());
auto linestring_geometry_it =
get_geometry_iterator_functor<is_multi_linestring>{}(multilinestring_geometry_offsets);
auto linestring_points_it = make_vec_2d_iterator(linestring_points_xy.begin<T>());
auto segment_idx =
cudf::make_numeric_column(cudf::data_type{cudf::type_to_id<cudf::size_type>()},
num_pairs,
cudf::mask_state::UNALLOCATED,
stream,
mr);
auto nearest_points_xy = cudf::make_numeric_column(cudf::data_type{cudf::type_to_id<T>()},
num_pairs * 2,
cudf::mask_state::UNALLOCATED,
stream,
mr);
auto nearest_points_it =
make_vec_2d_output_iterator(nearest_points_xy->mutable_view().begin<T>());
if constexpr (!is_multi_point && !is_multi_linestring) {
auto output_its = thrust::make_zip_iterator(
thrust::make_tuple(thrust::make_discard_iterator(),
thrust::make_discard_iterator(),
segment_idx->mutable_view().begin<cudf::size_type>(),
nearest_points_it));
pairwise_point_linestring_nearest_points(point_geometry_it,
point_geometry_it + num_pairs + 1,
points_it,
points_it + num_points,
linestring_geometry_it,
linestring_offsets.begin(),
linestring_offsets.end(),
linestring_points_it,
linestring_points_it + num_linestring_points,
output_its,
stream);
return point_linestring_nearest_points_result{
std::nullopt, std::nullopt, std::move(segment_idx), std::move(nearest_points_xy)};
} else if constexpr (is_multi_point && !is_multi_linestring) {
auto nearest_point_idx =
cudf::make_numeric_column(cudf::data_type{cudf::type_to_id<cudf::size_type>()},
num_pairs,
cudf::mask_state::UNALLOCATED,
stream,
mr);
auto output_its = thrust::make_zip_iterator(
thrust::make_tuple(nearest_point_idx->mutable_view().begin<cudf::size_type>(),
thrust::make_discard_iterator(),
segment_idx->mutable_view().begin<cudf::size_type>(),
nearest_points_it));
pairwise_point_linestring_nearest_points(point_geometry_it,
point_geometry_it + num_pairs + 1,
points_it,
points_it + num_points,
linestring_geometry_it,
linestring_offsets.begin(),
linestring_offsets.end(),
linestring_points_it,
linestring_points_it + num_linestring_points,
output_its,
stream);
return point_linestring_nearest_points_result{std::move(nearest_point_idx),
std::nullopt,
std::move(segment_idx),
std::move(nearest_points_xy)};
} else if constexpr (!is_multi_point && is_multi_linestring) {
auto nearest_linestring_idx =
cudf::make_numeric_column(cudf::data_type{cudf::type_to_id<cudf::size_type>()},
num_pairs,
cudf::mask_state::UNALLOCATED,
stream,
mr);
auto output_its = thrust::make_zip_iterator(
thrust::make_tuple(thrust::make_discard_iterator(),
nearest_linestring_idx->mutable_view().begin<cudf::size_type>(),
segment_idx->mutable_view().begin<cudf::size_type>(),
nearest_points_it));
pairwise_point_linestring_nearest_points(point_geometry_it,
point_geometry_it + num_pairs + 1,
points_it,
points_it + num_points,
linestring_geometry_it,
linestring_offsets.begin(),
linestring_offsets.end(),
linestring_points_it,
linestring_points_it + num_linestring_points,
output_its,
stream);
return point_linestring_nearest_points_result{std::nullopt,
std::move(nearest_linestring_idx),
std::move(segment_idx),
std::move(nearest_points_xy)};
} else {
auto nearest_point_idx =
cudf::make_numeric_column(cudf::data_type{cudf::type_to_id<cudf::size_type>()},
num_pairs,
cudf::mask_state::UNALLOCATED,
stream,
mr);
auto nearest_linestring_idx =
cudf::make_numeric_column(cudf::data_type{cudf::type_to_id<cudf::size_type>()},
num_pairs,
cudf::mask_state::UNALLOCATED,
stream,
mr);
auto output_its = thrust::make_zip_iterator(
thrust::make_tuple(nearest_point_idx->mutable_view().begin<cudf::size_type>(),
nearest_linestring_idx->mutable_view().begin<cudf::size_type>(),
segment_idx->mutable_view().begin<cudf::size_type>(),
nearest_points_it));
pairwise_point_linestring_nearest_points(point_geometry_it,
point_geometry_it + num_pairs + 1,
points_it,
points_it + num_points,
linestring_geometry_it,
linestring_offsets.begin(),
linestring_offsets.end(),
linestring_points_it,
linestring_points_it + num_linestring_points,
output_its,
stream);
return point_linestring_nearest_points_result{std::move(nearest_point_idx),
std::move(nearest_linestring_idx),
std::move(segment_idx),
std::move(nearest_points_xy)};
}
}
template <typename T, CUDF_ENABLE_IF(!std::is_floating_point_v<T>), typename... Args>
point_linestring_nearest_points_result operator()(Args&&...)
{
CUSPATIAL_FAIL("Input coordinates for nearest point must be floating point types.");
}
};
} // namespace
template <bool is_multi_point, bool is_multi_linestring>
struct pairwise_point_linestring_nearest_points_functor {
point_linestring_nearest_points_result operator()(
std::optional<cudf::device_span<cudf::size_type const>> multipoint_geometry_offsets,
cudf::column_view points_xy,
std::optional<cudf::device_span<cudf::size_type const>> multilinestring_geometry_offsets,
cudf::device_span<cudf::size_type const> linestring_part_offsets,
cudf::column_view linestring_points_xy,
rmm::cuda_stream_view stream,
rmm::mr::device_memory_resource* mr)
{
CUSPATIAL_EXPECTS(points_xy.size() % 2 == 0 && linestring_points_xy.size() % 2 == 0,
"Points array must contain even number of coordinates.");
auto num_lhs =
is_multi_point ? multipoint_geometry_offsets.value().size() : (points_xy.size() / 2 + 1);
auto num_rhs = is_multi_linestring ? multilinestring_geometry_offsets.value().size()
: linestring_part_offsets.size();
CUSPATIAL_EXPECTS(num_lhs == num_rhs,
"Mismatch number of (multi)points and (multi)linestrings.");
CUSPATIAL_EXPECTS(points_xy.type() == linestring_points_xy.type(),
"Points and linestring coordinates must have the same type.");
CUSPATIAL_EXPECTS(!(points_xy.has_nulls() || linestring_points_xy.has_nulls()),
"All inputs must not have nulls.");
return cudf::type_dispatcher(
points_xy.type(),
pairwise_point_linestring_nearest_points_impl<is_multi_point, is_multi_linestring>{},
num_rhs - 1,
multipoint_geometry_offsets,
points_xy,
multilinestring_geometry_offsets,
linestring_part_offsets,
linestring_points_xy,
stream,
mr);
}
};
} // namespace detail
point_linestring_nearest_points_result pairwise_point_linestring_nearest_points(
std::optional<cudf::device_span<cudf::size_type const>> multipoint_geometry_offsets,
cudf::column_view points_xy,
std::optional<cudf::device_span<cudf::size_type const>> multilinestring_geometry_offsets,
cudf::device_span<cudf::size_type const> linestring_part_offsets,
cudf::column_view linestring_points_xy,
rmm::mr::device_memory_resource* mr)
{
return double_boolean_dispatch<detail::pairwise_point_linestring_nearest_points_functor>(
multipoint_geometry_offsets.has_value(),
multilinestring_geometry_offsets.has_value(),
multipoint_geometry_offsets,
points_xy,
multilinestring_geometry_offsets,
linestring_part_offsets,
linestring_points_xy,
rmm::cuda_stream_default,
mr);
}
} // namespace cuspatial
| 0 |
rapidsai_public_repos/cuspatial/cpp/src | rapidsai_public_repos/cuspatial/cpp/src/point_in_polygon/point_in_polygon.cu | /*
* Copyright (c) 2020-2023, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <cuspatial/error.hpp>
#include <cuspatial/geometry/vec_2d.hpp>
#include <cuspatial/iterator_factory.cuh>
#include <cuspatial/point_in_polygon.cuh>
#include <cuspatial/range/multipoint_range.cuh>
#include <cuspatial/range/multipolygon_range.cuh>
#include <cudf/column/column.hpp>
#include <cudf/column/column_factories.hpp>
#include <cudf/column/column_view.hpp>
#include <cudf/utilities/type_dispatcher.hpp>
#include <rmm/cuda_stream_view.hpp>
#include <rmm/mr/device/device_memory_resource.hpp>
#include <memory>
#include <type_traits>
namespace {
struct point_in_polygon_functor {
template <typename T>
static constexpr bool is_supported()
{
return std::is_floating_point<T>::value;
}
template <typename T, std::enable_if_t<!is_supported<T>()>* = nullptr, typename... Args>
std::unique_ptr<cudf::column> operator()(Args&&...)
{
CUSPATIAL_FAIL("Non-floating point operation is not supported");
}
template <typename T, std::enable_if_t<is_supported<T>()>* = nullptr>
std::unique_ptr<cudf::column> operator()(cudf::column_view const& test_points_x,
cudf::column_view const& test_points_y,
cudf::column_view const& poly_offsets,
cudf::column_view const& poly_ring_offsets,
cudf::column_view const& poly_points_x,
cudf::column_view const& poly_points_y,
bool pairwise,
rmm::cuda_stream_view stream,
rmm::mr::device_memory_resource* mr)
{
auto size = test_points_x.size();
auto tid = pairwise ? cudf::type_to_id<uint8_t>() : cudf::type_to_id<int32_t>();
auto type = cudf::data_type{tid};
auto results =
cudf::make_fixed_width_column(type, size, cudf::mask_state::UNALLOCATED, stream, mr);
if (results->size() == 0) { return results; }
auto points_begin =
cuspatial::make_vec_2d_iterator(test_points_x.begin<T>(), test_points_y.begin<T>());
auto polygon_offsets_begin = poly_offsets.begin<cudf::size_type>();
auto ring_offsets_begin = poly_ring_offsets.begin<cudf::size_type>();
auto polygon_points_begin =
cuspatial::make_vec_2d_iterator(poly_points_x.begin<T>(), poly_points_y.begin<T>());
auto multipoints_range =
make_multipoint_range(size, thrust::make_counting_iterator(0), size, points_begin);
auto polygon_size = poly_offsets.size() - 1;
auto multipolygon_range = make_multipolygon_range(polygon_size,
thrust::make_counting_iterator(0),
polygon_size,
polygon_offsets_begin,
poly_ring_offsets.size() - 1,
ring_offsets_begin,
poly_points_x.size(),
polygon_points_begin);
if (pairwise) {
auto results_begin = results->mutable_view().begin<uint8_t>();
cuspatial::pairwise_point_in_polygon(
multipoints_range, multipolygon_range, results_begin, stream);
} else {
auto results_begin = results->mutable_view().begin<int32_t>();
cuspatial::point_in_polygon(multipoints_range, multipolygon_range, results_begin, stream);
}
return results;
}
};
} // anonymous namespace
namespace cuspatial {
namespace detail {
std::unique_ptr<cudf::column> point_in_polygon(cudf::column_view const& test_points_x,
cudf::column_view const& test_points_y,
cudf::column_view const& poly_offsets,
cudf::column_view const& poly_ring_offsets,
cudf::column_view const& poly_points_x,
cudf::column_view const& poly_points_y,
bool pairwise,
rmm::cuda_stream_view stream,
rmm::mr::device_memory_resource* mr)
{
CUSPATIAL_EXPECTS(
test_points_x.size() == test_points_y.size() and poly_points_x.size() == poly_points_y.size(),
"All points must have both x and y values");
CUSPATIAL_EXPECTS(test_points_x.type() == test_points_y.type() and
test_points_x.type() == poly_points_x.type() and
test_points_x.type() == poly_points_y.type(),
"All points much have the same type for both x and y");
CUSPATIAL_EXPECTS(not test_points_x.has_nulls() && not test_points_y.has_nulls(),
"Test points must not contain nulls");
CUSPATIAL_EXPECTS(not poly_points_x.has_nulls() && not poly_points_y.has_nulls(),
"Polygon points must not contain nulls");
if (pairwise) {
CUSPATIAL_EXPECTS(test_points_x.size() == std::max(poly_offsets.size() - 1, 0),
"Must pass in the same number of points as polygons.");
}
return cudf::type_dispatcher(test_points_x.type(),
point_in_polygon_functor(),
test_points_x,
test_points_y,
poly_offsets,
poly_ring_offsets,
poly_points_x,
poly_points_y,
pairwise,
stream,
mr);
}
} // namespace detail
std::unique_ptr<cudf::column> point_in_polygon(cudf::column_view const& test_points_x,
cudf::column_view const& test_points_y,
cudf::column_view const& poly_offsets,
cudf::column_view const& poly_ring_offsets,
cudf::column_view const& poly_points_x,
cudf::column_view const& poly_points_y,
rmm::mr::device_memory_resource* mr)
{
return cuspatial::detail::point_in_polygon(test_points_x,
test_points_y,
poly_offsets,
poly_ring_offsets,
poly_points_x,
poly_points_y,
false,
rmm::cuda_stream_default,
mr);
}
std::unique_ptr<cudf::column> pairwise_point_in_polygon(cudf::column_view const& test_points_x,
cudf::column_view const& test_points_y,
cudf::column_view const& poly_offsets,
cudf::column_view const& poly_ring_offsets,
cudf::column_view const& poly_points_x,
cudf::column_view const& poly_points_y,
rmm::mr::device_memory_resource* mr)
{
return cuspatial::detail::point_in_polygon(test_points_x,
test_points_y,
poly_offsets,
poly_ring_offsets,
poly_points_x,
poly_points_y,
true,
rmm::cuda_stream_default,
mr);
}
} // namespace cuspatial
| 0 |
rapidsai_public_repos/cuspatial/cpp/src | rapidsai_public_repos/cuspatial/cpp/src/trajectory/derive_trajectories.cu | /*
* Copyright (c) 2020-2022, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <cuspatial/error.hpp>
#include <cuspatial/iterator_factory.cuh>
#include <cuspatial/trajectory.cuh>
#include <cudf/column/column_factories.hpp>
#include <cudf/copying.hpp>
#include <cudf/table/table.hpp>
#include <cudf/utilities/type_dispatcher.hpp>
#include <rmm/cuda_stream_view.hpp>
#include <rmm/exec_policy.hpp>
#include <memory>
#include <vector>
namespace cuspatial {
namespace detail {
struct derive_trajectories_dispatch {
template <
typename T,
typename Timestamp,
std::enable_if_t<std::is_floating_point_v<T> and cudf::is_timestamp<Timestamp>()>* = nullptr>
std::pair<std::unique_ptr<cudf::table>, std::unique_ptr<cudf::column>> operator()(
cudf::column_view const& object_id,
cudf::column_view const& x,
cudf::column_view const& y,
cudf::column_view const& timestamp,
rmm::cuda_stream_view stream,
rmm::mr::device_memory_resource* mr)
{
auto cols = std::vector<std::unique_ptr<cudf::column>>{};
cols.reserve(4);
cols.push_back(cudf::allocate_like(object_id, cudf::mask_allocation_policy::NEVER, stream, mr));
cols.push_back(cudf::allocate_like(x, cudf::mask_allocation_policy::NEVER, stream, mr));
cols.push_back(cudf::allocate_like(y, cudf::mask_allocation_policy::NEVER, stream, mr));
cols.push_back(cudf::allocate_like(timestamp, cudf::mask_allocation_policy::NEVER, stream, mr));
auto points_begin = thrust::make_zip_iterator(x.begin<T>(), y.begin<T>());
auto points_out_begin = thrust::make_zip_iterator(cols[1]->mutable_view().begin<T>(),
cols[2]->mutable_view().begin<T>());
auto offsets = derive_trajectories(object_id.begin<std::int32_t>(),
object_id.end<std::int32_t>(),
points_begin,
timestamp.begin<Timestamp>(),
cols[0]->mutable_view().begin<std::int32_t>(),
points_out_begin,
cols[3]->mutable_view().begin<Timestamp>(),
stream,
mr);
auto result_table = std::make_unique<cudf::table>(std::move(cols));
auto num_trajectories = offsets->size();
auto offsets_column = std::make_unique<cudf::column>(cudf::data_type{cudf::type_id::INT32},
num_trajectories,
offsets->release(),
rmm::device_buffer{},
0);
return {std::move(result_table), std::move(offsets_column)};
}
template <typename T,
typename Timestamp,
std::enable_if_t<not(std::is_floating_point_v<T> and
cudf::is_timestamp<Timestamp>())>* = nullptr>
std::pair<std::unique_ptr<cudf::table>, std::unique_ptr<cudf::column>> operator()(...)
{
CUSPATIAL_FAIL("Unsupported data type");
}
};
std::pair<std::unique_ptr<cudf::table>, std::unique_ptr<cudf::column>> derive_trajectories(
cudf::column_view const& object_id,
cudf::column_view const& x,
cudf::column_view const& y,
cudf::column_view const& timestamp,
rmm::cuda_stream_view stream,
rmm::mr::device_memory_resource* mr)
{
return cudf::double_type_dispatcher(x.type(),
timestamp.type(),
derive_trajectories_dispatch{},
object_id,
x,
y,
timestamp,
stream,
mr);
}
} // namespace detail
std::pair<std::unique_ptr<cudf::table>, std::unique_ptr<cudf::column>> derive_trajectories(
cudf::column_view const& object_id,
cudf::column_view const& x,
cudf::column_view const& y,
cudf::column_view const& timestamp,
rmm::mr::device_memory_resource* mr)
{
CUSPATIAL_EXPECTS(
x.size() == y.size() && x.size() == object_id.size() && x.size() == timestamp.size(),
"Data size mismatch");
CUSPATIAL_EXPECTS(x.type().id() == y.type().id(), "Data type mismatch");
CUSPATIAL_EXPECTS(object_id.type().id() == cudf::type_to_id<cudf::size_type>(),
"Invalid object_id type");
CUSPATIAL_EXPECTS(cudf::is_timestamp(timestamp.type()), "Invalid timestamp datatype");
CUSPATIAL_EXPECTS(
!(x.has_nulls() || y.has_nulls() || object_id.has_nulls() || timestamp.has_nulls()),
"NULL support unimplemented");
if (object_id.is_empty() || x.is_empty() || y.is_empty() || timestamp.is_empty()) {
std::vector<std::unique_ptr<cudf::column>> cols{};
cols.reserve(4);
cols.push_back(cudf::empty_like(object_id));
cols.push_back(cudf::empty_like(x));
cols.push_back(cudf::empty_like(y));
cols.push_back(cudf::empty_like(timestamp));
return std::make_pair(std::make_unique<cudf::table>(std::move(cols)),
cudf::make_empty_column(cudf::data_type{cudf::type_id::INT32}));
}
return detail::derive_trajectories(object_id, x, y, timestamp, rmm::cuda_stream_default, mr);
}
} // namespace cuspatial
| 0 |
rapidsai_public_repos/cuspatial/cpp/src | rapidsai_public_repos/cuspatial/cpp/src/trajectory/trajectory_bounding_boxes.cu | /*
* Copyright (c) 2020-2022, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <cuspatial/bounding_boxes.cuh>
#include <cuspatial/error.hpp>
#include <cuspatial/iterator_factory.cuh>
#include <cudf/column/column_device_view.cuh>
#include <cudf/column/column_factories.hpp>
#include <cudf/column/column_view.hpp>
#include <cudf/copying.hpp>
#include <cudf/table/table.hpp>
#include <cudf/utilities/traits.hpp>
#include <cudf/utilities/type_dispatcher.hpp>
#include <rmm/cuda_stream_view.hpp>
#include <thrust/iterator/zip_iterator.h>
#include <type_traits>
#include <vector>
namespace cuspatial {
namespace {
struct dispatch_element {
template <typename T>
std::enable_if_t<std::is_floating_point<T>::value, std::unique_ptr<cudf::table>> operator()(
cudf::size_type num_trajectories,
cudf::column_view const& object_id,
cudf::column_view const& x,
cudf::column_view const& y,
rmm::cuda_stream_view stream,
rmm::mr::device_memory_resource* mr)
{
// Construct output columns
auto type = cudf::data_type{cudf::type_to_id<T>()};
std::vector<std::unique_ptr<cudf::column>> cols{};
cols.reserve(4);
// allocate bbox_x1 output column
cols.push_back(
cudf::make_numeric_column(type, num_trajectories, cudf::mask_state::UNALLOCATED, stream, mr));
// allocate bbox_y1 output column
cols.push_back(
cudf::make_numeric_column(type, num_trajectories, cudf::mask_state::UNALLOCATED, stream, mr));
// allocate bbox_x2 output column
cols.push_back(
cudf::make_numeric_column(type, num_trajectories, cudf::mask_state::UNALLOCATED, stream, mr));
// allocate bbox_y2 output column
cols.push_back(
cudf::make_numeric_column(type, num_trajectories, cudf::mask_state::UNALLOCATED, stream, mr));
auto points_begin = cuspatial::make_vec_2d_iterator(x.begin<T>(), y.begin<T>());
auto bounding_boxes_begin =
cuspatial::make_box_output_iterator(cols.at(0)->mutable_view().begin<T>(),
cols.at(1)->mutable_view().begin<T>(),
cols.at(2)->mutable_view().begin<T>(),
cols.at(3)->mutable_view().begin<T>());
point_bounding_boxes(object_id.begin<cudf::size_type>(),
object_id.end<cudf::size_type>(),
points_begin,
bounding_boxes_begin,
T{0},
stream);
// check for errors
CUSPATIAL_CHECK_CUDA(stream.value());
return std::make_unique<cudf::table>(std::move(cols));
}
template <typename Element, typename... Args>
std::enable_if_t<not std::is_floating_point<Element>::value, std::unique_ptr<cudf::table>>
operator()(Args&&...)
{
CUSPATIAL_FAIL("X and Y must be floating point types");
}
};
} // namespace
namespace detail {
std::unique_ptr<cudf::table> trajectory_bounding_boxes(cudf::size_type num_trajectories,
cudf::column_view const& object_id,
cudf::column_view const& x,
cudf::column_view const& y,
rmm::cuda_stream_view stream,
rmm::mr::device_memory_resource* mr)
{
return cudf::type_dispatcher(
x.type(), dispatch_element{}, num_trajectories, object_id, x, y, stream, mr);
}
} // namespace detail
std::unique_ptr<cudf::table> trajectory_bounding_boxes(cudf::size_type num_trajectories,
cudf::column_view const& object_id,
cudf::column_view const& x,
cudf::column_view const& y,
rmm::mr::device_memory_resource* mr)
{
CUSPATIAL_EXPECTS(object_id.size() == x.size() && x.size() == y.size(), "Data size mismatch");
CUSPATIAL_EXPECTS(x.type().id() == y.type().id(), "Data type mismatch");
CUSPATIAL_EXPECTS(object_id.type().id() == cudf::type_to_id<cudf::size_type>(),
"Invalid object_id type");
CUSPATIAL_EXPECTS(!(x.has_nulls() || y.has_nulls() || object_id.has_nulls()),
"NULL support unimplemented");
if (num_trajectories == 0 || object_id.is_empty() || x.is_empty() || y.is_empty()) {
std::vector<std::unique_ptr<cudf::column>> cols{};
cols.reserve(4);
cols.push_back(cudf::empty_like(x));
cols.push_back(cudf::empty_like(y));
cols.push_back(cudf::empty_like(x));
cols.push_back(cudf::empty_like(y));
return std::make_unique<cudf::table>(std::move(cols));
}
return detail::trajectory_bounding_boxes(
num_trajectories, object_id, x, y, rmm::cuda_stream_default, mr);
}
} // namespace cuspatial
| 0 |
rapidsai_public_repos/cuspatial/cpp/src | rapidsai_public_repos/cuspatial/cpp/src/trajectory/trajectory_distances_and_speeds.cu | /*
* Copyright (c) 2020, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <cuspatial/error.hpp>
#include <cuspatial/iterator_factory.cuh>
#include <cuspatial/trajectory.cuh>
#include <cuspatial/trajectory.hpp>
#include <cudf/column/column_device_view.cuh>
#include <cudf/column/column_factories.hpp>
#include <cudf/column/column_view.hpp>
#include <cudf/copying.hpp>
#include <cudf/table/table.hpp>
#include <cudf/utilities/traits.hpp>
#include <cudf/utilities/type_dispatcher.hpp>
#include <rmm/cuda_stream_view.hpp>
#include <rmm/exec_policy.hpp>
#include <thrust/adjacent_difference.h>
#include <thrust/functional.h>
#include <thrust/iterator/constant_iterator.h>
#include <thrust/iterator/counting_iterator.h>
#include <thrust/iterator/discard_iterator.h>
#include <thrust/iterator/transform_iterator.h>
#include <thrust/iterator/zip_iterator.h>
#include <thrust/reduce.h>
#include <thrust/tuple.h>
namespace cuspatial {
namespace {
template <typename T>
struct dispatch_timestamp {
template <typename Timestamp>
std::enable_if_t<cudf::is_timestamp<Timestamp>(), std::unique_ptr<cudf::table>> operator()(
cudf::size_type num_trajectories,
cudf::column_view const& object_id,
cudf::column_view const& x,
cudf::column_view const& y,
cudf::column_view const& timestamp,
rmm::cuda_stream_view stream,
rmm::mr::device_memory_resource* mr)
{
// Construct output columns
auto type = cudf::data_type{cudf::type_to_id<T>()};
std::vector<std::unique_ptr<cudf::column>> cols{};
cols.reserve(2);
// allocate distance output column
cols.push_back(
cudf::make_numeric_column(type, num_trajectories, cudf::mask_state::UNALLOCATED, stream, mr));
// allocate speed output column
cols.push_back(
cudf::make_numeric_column(type, num_trajectories, cudf::mask_state::UNALLOCATED, stream, mr));
auto points_begin = cuspatial::make_vec_2d_iterator(x.begin<T>(), y.begin<T>());
trajectory_distances_and_speeds(
num_trajectories,
object_id.begin<cudf::size_type>(),
object_id.end<cudf::size_type>(),
points_begin,
timestamp.begin<Timestamp>(),
thrust::make_zip_iterator(cols.at(0)->mutable_view().begin<T>(),
cols.at(1)->mutable_view().begin<T>()),
stream);
// check for errors
CUSPATIAL_CHECK_CUDA(stream.value());
return std::make_unique<cudf::table>(std::move(cols));
}
template <typename Timestamp, typename... Args>
std::enable_if_t<not cudf::is_timestamp<Timestamp>(), std::unique_ptr<cudf::table>> operator()(
Args&&...)
{
CUSPATIAL_FAIL("Timestamp must be a timestamp type");
}
};
struct dispatch_element {
template <typename Element>
std::enable_if_t<std::is_floating_point<Element>::value, std::unique_ptr<cudf::table>> operator()(
cudf::size_type num_trajectories,
cudf::column_view const& object_id,
cudf::column_view const& x,
cudf::column_view const& y,
cudf::column_view const& timestamp,
rmm::cuda_stream_view stream,
rmm::mr::device_memory_resource* mr)
{
return cudf::type_dispatcher(timestamp.type(),
dispatch_timestamp<Element>{},
num_trajectories,
object_id,
x,
y,
timestamp,
stream,
mr);
}
template <typename Element, typename... Args>
std::enable_if_t<not std::is_floating_point<Element>::value, std::unique_ptr<cudf::table>>
operator()(Args&&...)
{
CUSPATIAL_FAIL("X and Y must be floating point types");
}
};
} // namespace
namespace detail {
std::unique_ptr<cudf::table> trajectory_distances_and_speeds(cudf::size_type num_trajectories,
cudf::column_view const& object_id,
cudf::column_view const& x,
cudf::column_view const& y,
cudf::column_view const& timestamp,
rmm::cuda_stream_view stream,
rmm::mr::device_memory_resource* mr)
{
return cudf::type_dispatcher(
x.type(), dispatch_element{}, num_trajectories, object_id, x, y, timestamp, stream, mr);
}
} // namespace detail
std::unique_ptr<cudf::table> trajectory_distances_and_speeds(cudf::size_type num_trajectories,
cudf::column_view const& object_id,
cudf::column_view const& x,
cudf::column_view const& y,
cudf::column_view const& timestamp,
rmm::mr::device_memory_resource* mr)
{
CUSPATIAL_EXPECTS(
x.size() == y.size() && x.size() == object_id.size() && x.size() == timestamp.size(),
"Data size mismatch");
CUSPATIAL_EXPECTS(x.type().id() == y.type().id(), "Data type mismatch");
CUSPATIAL_EXPECTS(object_id.type().id() == cudf::type_to_id<cudf::size_type>(),
"Invalid object_id type");
CUSPATIAL_EXPECTS(cudf::is_timestamp(timestamp.type()), "Invalid timestamp datatype");
CUSPATIAL_EXPECTS(
!(x.has_nulls() || y.has_nulls() || timestamp.has_nulls() || object_id.has_nulls()),
"NULL support unimplemented");
if (num_trajectories == 0 || x.is_empty() || y.is_empty() || object_id.is_empty() ||
timestamp.is_empty()) {
std::vector<std::unique_ptr<cudf::column>> cols{};
cols.reserve(2);
cols.push_back(cudf::make_empty_column(cudf::data_type{cudf::type_id::FLOAT64}));
cols.push_back(cudf::make_empty_column(cudf::data_type{cudf::type_id::FLOAT64}));
return std::make_unique<cudf::table>(std::move(cols));
}
return detail::trajectory_distances_and_speeds(
num_trajectories, object_id, x, y, timestamp, rmm::cuda_stream_default, mr);
}
} // namespace cuspatial
| 0 |
rapidsai_public_repos/cuspatial/cpp/src | rapidsai_public_repos/cuspatial/cpp/src/join/quadtree_bbox_filtering.cu | /*
* Copyright (c) 2020-2022, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <cuspatial/iterator_factory.cuh>
#include <cuspatial/spatial_join.cuh>
#include <cuspatial/error.hpp>
#include <cuspatial/iterator_factory.cuh>
#include <cuspatial/spatial_join.hpp>
#include <cudf/column/column.hpp>
#include <cudf/column/column_factories.hpp>
#include <cudf/table/table.hpp>
#include <cudf/utilities/type_dispatcher.hpp>
#include <rmm/cuda_stream_view.hpp>
#include <rmm/device_uvector.hpp>
#include <rmm/exec_policy.hpp>
#include <tuple>
namespace cuspatial {
namespace {
struct dispatch_quadtree_bounding_box_join {
template <typename T, std::enable_if_t<std::is_floating_point<T>::value>* = nullptr>
inline std::unique_ptr<cudf::table> operator()(cudf::table_view const& quadtree,
cudf::table_view const& bbox,
double x_min,
double y_min,
double scale,
int8_t max_depth,
rmm::mr::device_memory_resource* mr,
rmm::cuda_stream_view stream)
{
auto bbox_min = cuspatial::make_vec_2d_iterator(bbox.column(0).template begin<T>(),
bbox.column(1).template begin<T>());
auto bbox_max = cuspatial::make_vec_2d_iterator(bbox.column(2).template begin<T>(),
bbox.column(3).template begin<T>());
auto bbox_itr = cuspatial::make_box_iterator(bbox_min, bbox_max);
auto quadtree_ref = point_quadtree_ref(quadtree.column(0).begin<uint32_t>(), // keys
quadtree.column(0).end<uint32_t>(),
quadtree.column(1).begin<uint8_t>(), // levels
quadtree.column(2).begin<bool>(), // is_internal_node
quadtree.column(3).begin<uint32_t>(), // lengths
quadtree.column(4).begin<uint32_t>()); // offsets
auto [bbox_offset, quad_offset] = join_quadtree_and_bounding_boxes(
quadtree_ref,
bbox_itr,
bbox_itr + bbox.num_rows(),
cuspatial::vec_2d<T>{static_cast<T>(x_min), static_cast<T>(y_min)},
static_cast<T>(scale),
max_depth,
stream,
mr);
std::vector<std::unique_ptr<cudf::column>> cols{};
cols.push_back(std::make_unique<cudf::column>(std::move(bbox_offset), rmm::device_buffer{}, 0));
cols.push_back(std::make_unique<cudf::column>(std::move(quad_offset), rmm::device_buffer{}, 0));
return std::make_unique<cudf::table>(std::move(cols));
}
template <typename T,
std::enable_if_t<!std::is_floating_point<T>::value>* = nullptr,
typename... Args>
inline std::unique_ptr<cudf::table> operator()(Args&&...)
{
CUSPATIAL_FAIL("Only floating-point types are supported");
}
};
} // namespace
std::unique_ptr<cudf::table> join_quadtree_and_bounding_boxes(cudf::table_view const& quadtree,
cudf::table_view const& bbox,
double x_min,
double x_max,
double y_min,
double y_max,
double scale,
int8_t max_depth,
rmm::mr::device_memory_resource* mr)
{
CUSPATIAL_EXPECTS(quadtree.num_columns() == 5, "quadtree table must have 5 columns");
CUSPATIAL_EXPECTS(bbox.num_columns() == 4, "bbox table must have 4 columns");
CUSPATIAL_EXPECTS(scale > 0, "scale must be positive");
CUSPATIAL_EXPECTS(x_min < x_max && y_min < y_max,
"invalid bounding box (x_min, x_max, y_min, y_max)");
CUSPATIAL_EXPECTS(max_depth > 0 && max_depth < 16,
"maximum depth must be positive and less than 16");
if (quadtree.num_rows() == 0 || bbox.num_rows() == 0) {
std::vector<std::unique_ptr<cudf::column>> cols{};
cols.reserve(2);
cols.push_back(cudf::make_empty_column(cudf::data_type{cudf::type_id::UINT32}));
cols.push_back(cudf::make_empty_column(cudf::data_type{cudf::type_id::UINT32}));
return std::make_unique<cudf::table>(std::move(cols));
}
return cudf::type_dispatcher(bbox.column(0).type(),
dispatch_quadtree_bounding_box_join{},
quadtree,
bbox,
x_min,
y_min,
scale,
max_depth,
mr,
rmm::cuda_stream_default);
}
} // namespace cuspatial
| 0 |
rapidsai_public_repos/cuspatial/cpp/src | rapidsai_public_repos/cuspatial/cpp/src/join/quadtree_point_in_polygon.cu | /*
* Copyright (c) 2020-2023, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "rmm/device_buffer.hpp"
#include <cuspatial/iterator_factory.cuh>
#include <cuspatial/range/multipoint_range.cuh>
#include <cuspatial/range/multipolygon_range.cuh>
#include <cuspatial/spatial_join.cuh>
#include <cuspatial/detail/utility/validation.hpp>
#include <cuspatial/error.hpp>
#include <cudf/column/column_factories.hpp>
#include <cudf/column/column_view.hpp>
#include <cudf/table/table.hpp>
#include <cudf/table/table_view.hpp>
#include <rmm/cuda_stream_view.hpp>
namespace cuspatial {
namespace detail {
namespace {
struct compute_quadtree_point_in_polygon {
template <typename T, typename... Args>
std::enable_if_t<!std::is_floating_point<T>::value, std::unique_ptr<cudf::table>> operator()(
Args&&...)
{
CUDF_FAIL("Non-floating point operation is not supported");
}
template <typename T>
std::enable_if_t<std::is_floating_point<T>::value, std::unique_ptr<cudf::table>> operator()(
cudf::table_view const& poly_quad_pairs,
cudf::table_view const& quadtree,
cudf::column_view const& point_indices,
cudf::column_view const& point_x,
cudf::column_view const& point_y,
cudf::column_view const& poly_offsets,
cudf::column_view const& ring_offsets,
cudf::column_view const& poly_points_x,
cudf::column_view const& poly_points_y,
rmm::cuda_stream_view stream,
rmm::mr::device_memory_resource* mr)
{
auto poly_indices = poly_quad_pairs.column(0);
auto quad_indices = poly_quad_pairs.column(1);
auto quadtree_ref = point_quadtree_ref(quadtree.column(0).begin<uint32_t>(), // keys
quadtree.column(0).end<uint32_t>(),
quadtree.column(1).begin<uint8_t>(), // levels
quadtree.column(2).begin<bool>(), // is_internal_node
quadtree.column(3).begin<uint32_t>(), // lengths
quadtree.column(4).begin<uint32_t>()); // offsets
auto multipolygons =
multipolygon_range(thrust::make_counting_iterator(0),
thrust::make_counting_iterator(poly_offsets.size()),
poly_offsets.begin<uint32_t>(),
poly_offsets.end<uint32_t>(),
ring_offsets.begin<uint32_t>(),
ring_offsets.end<uint32_t>(),
make_vec_2d_iterator(poly_points_x.begin<T>(), poly_points_y.begin<T>()),
make_vec_2d_iterator(poly_points_x.end<T>(), poly_points_y.end<T>()));
auto [poly_idx, point_idx] =
quadtree_point_in_polygon(poly_indices.begin<uint32_t>(),
poly_indices.end<uint32_t>(),
quad_indices.begin<uint32_t>(),
quadtree_ref,
point_indices.begin<uint32_t>(),
point_indices.end<uint32_t>(),
make_vec_2d_iterator(point_x.begin<T>(), point_y.begin<T>()),
multipolygons,
stream,
mr);
// Allocate output columns for the number of pairs that intersected
auto num_intersections = poly_idx.size();
auto poly_idx_col = std::make_unique<cudf::column>(cudf::data_type{cudf::type_id::UINT32},
num_intersections,
poly_idx.release(),
rmm::device_buffer{},
0);
auto point_idx_col = std::make_unique<cudf::column>(cudf::data_type{cudf::type_id::UINT32},
num_intersections,
point_idx.release(),
rmm::device_buffer{},
0);
std::vector<std::unique_ptr<cudf::column>> cols{};
cols.reserve(2);
cols.push_back(std::move(poly_idx_col));
cols.push_back(std::move(point_idx_col));
return std::make_unique<cudf::table>(std::move(cols));
}
};
} // namespace
std::unique_ptr<cudf::table> quadtree_point_in_polygon(cudf::table_view const& poly_quad_pairs,
cudf::table_view const& quadtree,
cudf::column_view const& point_indices,
cudf::column_view const& point_x,
cudf::column_view const& point_y,
cudf::column_view const& poly_offsets,
cudf::column_view const& ring_offsets,
cudf::column_view const& poly_points_x,
cudf::column_view const& poly_points_y,
rmm::cuda_stream_view stream,
rmm::mr::device_memory_resource* mr)
{
return cudf::type_dispatcher(point_x.type(),
compute_quadtree_point_in_polygon{},
poly_quad_pairs,
quadtree,
point_indices,
point_x,
point_y,
poly_offsets,
ring_offsets,
poly_points_x,
poly_points_y,
stream,
mr);
}
} // namespace detail
std::unique_ptr<cudf::table> quadtree_point_in_polygon(cudf::table_view const& poly_quad_pairs,
cudf::table_view const& quadtree,
cudf::column_view const& point_indices,
cudf::column_view const& point_x,
cudf::column_view const& point_y,
cudf::column_view const& poly_offsets,
cudf::column_view const& ring_offsets,
cudf::column_view const& poly_points_x,
cudf::column_view const& poly_points_y,
rmm::mr::device_memory_resource* mr)
{
CUSPATIAL_EXPECTS(poly_quad_pairs.num_columns() == 2,
"a quadrant-polygon table must have 2 columns");
CUSPATIAL_EXPECTS(quadtree.num_columns() == 5, "a quadtree table must have 5 columns");
CUSPATIAL_EXPECTS(point_indices.size() == point_x.size() && point_x.size() == point_y.size(),
"number of points must be the same for both x and y columns");
CUSPATIAL_EXPECTS(poly_points_x.size() == poly_points_y.size(),
"numbers of vertices must be the same for both x and y columns");
CUSPATIAL_EXPECTS(poly_points_x.type() == poly_points_y.type(),
"polygon columns must have the same data type");
CUSPATIAL_EXPECTS(point_x.type() == point_y.type(), "point columns must have the same data type");
CUSPATIAL_EXPECTS(point_x.type() == poly_points_x.type(),
"points and polygons must have the same data type");
CUSPATIAL_EXPECTS(poly_offsets.type() == ring_offsets.type(),
"offset columns must have the same data type");
if (poly_quad_pairs.num_rows() == 0 || quadtree.num_rows() == 0 || point_indices.size() == 0 ||
poly_offsets.size() == 0) {
std::vector<std::unique_ptr<cudf::column>> cols{};
cols.reserve(2);
cols.push_back(cudf::make_empty_column(cudf::data_type{cudf::type_id::UINT32}));
cols.push_back(cudf::make_empty_column(cudf::data_type{cudf::type_id::UINT32}));
return std::make_unique<cudf::table>(std::move(cols));
}
return detail::quadtree_point_in_polygon(poly_quad_pairs,
quadtree,
point_indices,
point_x,
point_y,
poly_offsets,
ring_offsets,
poly_points_x,
poly_points_y,
rmm::cuda_stream_default,
mr);
}
} // namespace cuspatial
| 0 |
rapidsai_public_repos/cuspatial/cpp/src | rapidsai_public_repos/cuspatial/cpp/src/join/quadtree_point_to_nearest_linestring.cu | /*
* Copyright (c) 2020-2023, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <cuspatial/detail/utility/validation.hpp>
#include <cuspatial/error.hpp>
#include <cuspatial/iterator_factory.cuh>
#include <cuspatial/range/multilinestring_range.cuh>
#include <cuspatial/spatial_join.cuh>
#include <cudf/column/column_factories.hpp>
#include <cudf/column/column_view.hpp>
#include <cudf/table/table.hpp>
#include <cudf/table/table_view.hpp>
#include <rmm/cuda_stream_view.hpp>
#include <rmm/device_uvector.hpp>
#include <rmm/exec_policy.hpp>
#include <limits>
#include <memory>
namespace cuspatial {
namespace detail {
struct compute_quadtree_point_to_nearest_linestring {
template <typename T, typename... Args>
std::enable_if_t<!std::is_floating_point<T>::value, std::unique_ptr<cudf::table>> operator()(
Args&&...)
{
CUDF_FAIL("Non-floating point operation is not supported");
}
template <typename T>
std::enable_if_t<std::is_floating_point<T>::value, std::unique_ptr<cudf::table>> operator()(
cudf::table_view const& linestring_quad_pairs,
cudf::table_view const& quadtree,
cudf::column_view const& point_indices,
cudf::column_view const& point_x,
cudf::column_view const& point_y,
cudf::column_view const& linestring_offsets,
cudf::column_view const& linestring_points_x,
cudf::column_view const& linestring_points_y,
rmm::cuda_stream_view stream,
rmm::mr::device_memory_resource* mr)
{
auto linestring_indices = linestring_quad_pairs.column(0);
auto quad_indices = linestring_quad_pairs.column(1);
auto quadtree_ref = point_quadtree_ref(quadtree.column(0).begin<uint32_t>(), // keys
quadtree.column(0).end<uint32_t>(),
quadtree.column(1).begin<uint8_t>(), // levels
quadtree.column(2).begin<bool>(), // is_internal_node
quadtree.column(3).begin<uint32_t>(), // lengths
quadtree.column(4).begin<uint32_t>()); // offsets
auto linestrings = multilinestring_range(
thrust::make_counting_iterator(0),
thrust::make_counting_iterator(linestring_offsets.size()),
linestring_offsets.begin<uint32_t>(),
linestring_offsets.end<uint32_t>(),
make_vec_2d_iterator(linestring_points_x.begin<T>(), linestring_points_y.begin<T>()),
make_vec_2d_iterator(linestring_points_x.end<T>(), linestring_points_y.end<T>()));
auto [point_idxs, linestring_idxs, distances] = cuspatial::quadtree_point_to_nearest_linestring(
linestring_indices.begin<uint32_t>(),
linestring_indices.end<uint32_t>(),
quad_indices.begin<uint32_t>(),
quadtree_ref,
point_indices.begin<uint32_t>(),
point_indices.end<uint32_t>(),
make_vec_2d_iterator(point_x.begin<T>(), point_y.begin<T>()),
linestrings,
stream,
mr);
auto num_distances = distances.size();
auto point_idx_col = std::make_unique<cudf::column>(cudf::data_type{cudf::type_id::UINT32},
num_distances,
point_idxs.release(),
rmm::device_buffer{},
0);
auto linestring_idx_col = std::make_unique<cudf::column>(cudf::data_type{cudf::type_id::UINT32},
num_distances,
linestring_idxs.release(),
rmm::device_buffer{},
0);
auto distance_col = std::make_unique<cudf::column>(
point_x.type(), num_distances, distances.release(), rmm::device_buffer{}, 0);
std::vector<std::unique_ptr<cudf::column>> cols{};
cols.reserve(3);
cols.emplace_back(std::move(point_idx_col));
cols.emplace_back(std::move(linestring_idx_col));
cols.emplace_back(std::move(distance_col));
return std::make_unique<cudf::table>(std::move(cols));
}
};
std::unique_ptr<cudf::table> quadtree_point_to_nearest_linestring(
cudf::table_view const& linestring_quad_pairs,
cudf::table_view const& quadtree,
cudf::column_view const& point_indices,
cudf::column_view const& point_x,
cudf::column_view const& point_y,
cudf::column_view const& linestring_offsets,
cudf::column_view const& linestring_points_x,
cudf::column_view const& linestring_points_y,
rmm::cuda_stream_view stream,
rmm::mr::device_memory_resource* mr)
{
return cudf::type_dispatcher(point_x.type(),
compute_quadtree_point_to_nearest_linestring{},
linestring_quad_pairs,
quadtree,
point_indices,
point_x,
point_y,
linestring_offsets,
linestring_points_x,
linestring_points_y,
stream,
mr);
}
} // namespace detail
std::unique_ptr<cudf::table> quadtree_point_to_nearest_linestring(
cudf::table_view const& linestring_quad_pairs,
cudf::table_view const& quadtree,
cudf::column_view const& point_indices,
cudf::column_view const& point_x,
cudf::column_view const& point_y,
cudf::column_view const& linestring_offsets,
cudf::column_view const& linestring_points_x,
cudf::column_view const& linestring_points_y,
rmm::mr::device_memory_resource* mr)
{
CUSPATIAL_EXPECTS(linestring_quad_pairs.num_columns() == 2,
"a quadrant-linestring table must have 2 columns");
CUSPATIAL_EXPECTS(quadtree.num_columns() == 5, "a quadtree table must have 5 columns");
CUSPATIAL_EXPECTS(point_indices.size() == point_x.size() && point_x.size() == point_y.size(),
"number of points must be the same for both x and y columns");
CUSPATIAL_EXPECTS(linestring_points_x.size() == linestring_points_y.size(),
"numbers of vertices must be the same for both x and y columns");
CUSPATIAL_EXPECTS(linestring_points_x.type() == linestring_points_y.type(),
"linestring columns must have the same data type");
CUSPATIAL_EXPECTS(point_x.type() == point_y.type(), "point columns must have the same data type");
CUSPATIAL_EXPECTS(point_x.type() == linestring_points_x.type(),
"points and linestrings must have the same data type");
if (linestring_quad_pairs.num_rows() == 0 || quadtree.num_rows() == 0 ||
point_indices.size() == 0 || linestring_offsets.size() == 0) {
std::vector<std::unique_ptr<cudf::column>> cols{};
cols.reserve(3);
cols.push_back(cudf::make_empty_column(cudf::data_type{cudf::type_id::UINT32}));
cols.push_back(cudf::make_empty_column(cudf::data_type{cudf::type_id::UINT32}));
cols.push_back(cudf::make_empty_column(point_x.type()));
return std::make_unique<cudf::table>(std::move(cols));
}
return detail::quadtree_point_to_nearest_linestring(linestring_quad_pairs,
quadtree,
point_indices,
point_x,
point_y,
linestring_offsets,
linestring_points_x,
linestring_points_y,
rmm::cuda_stream_default,
mr);
}
} // namespace cuspatial
| 0 |
rapidsai_public_repos/cuspatial/cpp/src | rapidsai_public_repos/cuspatial/cpp/src/distance/point_linestring_distance.cu | /*
* Copyright (c) 2022-2023, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "utility/multi_geometry_dispatch.hpp"
#include <cuspatial/column/geometry_column_view.hpp>
#include <cuspatial/distance.cuh>
#include <cuspatial/error.hpp>
#include <cuspatial/range/multilinestring_range.cuh>
#include <cuspatial/range/multipoint_range.cuh>
#include <cuspatial/traits.hpp>
#include <cuspatial/types.hpp>
#include <cudf/column/column.hpp>
#include <cudf/column/column_factories.hpp>
#include <cudf/column/column_view.hpp>
#include <cudf/utilities/type_dispatcher.hpp>
#include <rmm/cuda_stream_view.hpp>
#include <memory>
#include <type_traits>
namespace cuspatial {
namespace detail {
namespace {
template <collection_type_id is_multi_point, collection_type_id is_multi_linestring>
struct pairwise_point_linestring_distance_impl {
using SizeType = cudf::device_span<cudf::size_type const>::size_type;
template <typename T, CUSPATIAL_ENABLE_IF(std::is_floating_point_v<T>)>
std::unique_ptr<cudf::column> operator()(geometry_column_view const& multipoints,
geometry_column_view const& multilinestrings,
rmm::cuda_stream_view stream,
rmm::mr::device_memory_resource* mr)
{
auto size = multipoints.size();
auto distances = cudf::make_numeric_column(
cudf::data_type{cudf::type_to_id<T>()}, size, cudf::mask_state::UNALLOCATED, stream, mr);
auto lhs = make_multipoint_range<is_multi_point, T, cudf::size_type>(multipoints);
auto rhs =
make_multilinestring_range<is_multi_linestring, T, cudf::size_type>(multilinestrings);
cuspatial::pairwise_point_linestring_distance(
lhs, rhs, distances->mutable_view().begin<T>(), stream);
return distances;
}
template <typename T, CUSPATIAL_ENABLE_IF(!std::is_floating_point_v<T>), typename... Args>
std::unique_ptr<cudf::column> operator()(Args&&...)
{
CUSPATIAL_FAIL("Point-linestring distance API only supports floating point coordinates.");
}
};
} // namespace
template <collection_type_id is_multi_point, collection_type_id is_multi_linestring>
struct pairwise_point_linestring_distance_functor {
std::unique_ptr<cudf::column> operator()(geometry_column_view const& multipoints,
geometry_column_view const& multilinestrings,
rmm::cuda_stream_view stream,
rmm::mr::device_memory_resource* mr)
{
CUSPATIAL_EXPECTS(multipoints.geometry_type() == geometry_type_id::POINT &&
multilinestrings.geometry_type() == geometry_type_id::LINESTRING,
"Unexpected input geometry types.");
CUSPATIAL_EXPECTS(multipoints.coordinate_type() == multilinestrings.coordinate_type(),
"Inputs must have the same coordinate type.");
CUSPATIAL_EXPECTS(multipoints.size() == multilinestrings.size(),
"Inputs should have the same number of geometries.");
return cudf::type_dispatcher(
multipoints.coordinate_type(),
pairwise_point_linestring_distance_impl<is_multi_point, is_multi_linestring>{},
multipoints,
multilinestrings,
stream,
mr);
}
};
} // namespace detail
std::unique_ptr<cudf::column> pairwise_point_linestring_distance(
geometry_column_view const& multipoints,
geometry_column_view const& multilinestrings,
rmm::mr::device_memory_resource* mr)
{
return multi_geometry_double_dispatch<detail::pairwise_point_linestring_distance_functor>(
multipoints.collection_type(),
multilinestrings.collection_type(),
multipoints,
multilinestrings,
rmm::cuda_stream_default,
mr);
}
} // namespace cuspatial
| 0 |
rapidsai_public_repos/cuspatial/cpp/src | rapidsai_public_repos/cuspatial/cpp/src/distance/point_polygon_distance.cu | /*
* Copyright (c) 2023, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "../utility/multi_geometry_dispatch.hpp"
#include <cudf/column/column.hpp>
#include <cudf/column/column_device_view.cuh>
#include <cudf/column/column_factories.hpp>
#include <cudf/column/column_view.hpp>
#include <cudf/copying.hpp>
#include <cudf/types.hpp>
#include <cudf/utilities/traits.hpp>
#include <cudf/utilities/type_dispatcher.hpp>
#include <rmm/cuda_stream_view.hpp>
#include <cuspatial/column/geometry_column_view.hpp>
#include <cuspatial/distance.cuh>
#include <cuspatial/error.hpp>
#include <cuspatial/iterator_factory.cuh>
#include <cuspatial/range/multipoint_range.cuh>
#include <cuspatial/range/multipolygon_range.cuh>
#include <cuspatial/types.hpp>
#include <thrust/iterator/counting_iterator.h>
#include <memory>
#include <type_traits>
namespace cuspatial {
namespace detail {
namespace {
template <collection_type_id is_multi_point, collection_type_id is_multi_polygon>
struct pairwise_point_polygon_distance_impl {
using SizeType = cudf::device_span<cudf::size_type const>::size_type;
template <typename T, CUDF_ENABLE_IF(std::is_floating_point_v<T>)>
std::unique_ptr<cudf::column> operator()(geometry_column_view const& multipoints,
geometry_column_view const& multipolygons,
rmm::cuda_stream_view stream,
rmm::mr::device_memory_resource* mr)
{
auto multipoints_range = make_multipoint_range<is_multi_point, T, cudf::size_type>(multipoints);
auto multipolygons_range =
make_multipolygon_range<is_multi_polygon, T, cudf::size_type>(multipolygons);
auto output = cudf::make_numeric_column(
multipoints.coordinate_type(), multipoints.size(), cudf::mask_state::UNALLOCATED, stream, mr);
cuspatial::pairwise_point_polygon_distance(
multipoints_range, multipolygons_range, output->mutable_view().begin<T>(), stream);
return output;
}
template <typename T, CUDF_ENABLE_IF(!std::is_floating_point_v<T>), typename... Args>
std::unique_ptr<cudf::column> operator()(Args&&...)
{
CUSPATIAL_FAIL("Point-polygon distance API only supports floating point coordinates.");
}
};
} // namespace
template <collection_type_id is_multi_point, collection_type_id is_multi_polygon>
struct pairwise_point_polygon_distance {
std::unique_ptr<cudf::column> operator()(geometry_column_view const& multipoints,
geometry_column_view const& multipolygons,
rmm::cuda_stream_view stream,
rmm::mr::device_memory_resource* mr)
{
return cudf::type_dispatcher(
multipoints.coordinate_type(),
pairwise_point_polygon_distance_impl<is_multi_point, is_multi_polygon>{},
multipoints,
multipolygons,
stream,
mr);
}
};
} // namespace detail
std::unique_ptr<cudf::column> pairwise_point_polygon_distance(
geometry_column_view const& multipoints,
geometry_column_view const& multipolygons,
rmm::mr::device_memory_resource* mr)
{
CUSPATIAL_EXPECTS(multipoints.geometry_type() == geometry_type_id::POINT &&
multipolygons.geometry_type() == geometry_type_id::POLYGON,
"Unexpected input geometry types.");
CUSPATIAL_EXPECTS(multipoints.coordinate_type() == multipolygons.coordinate_type(),
"Input geometries must have the same coordinate data types.");
return multi_geometry_double_dispatch<detail::pairwise_point_polygon_distance>(
multipoints.collection_type(),
multipolygons.collection_type(),
multipoints,
multipolygons,
rmm::cuda_stream_default,
mr);
}
} // namespace cuspatial
| 0 |
rapidsai_public_repos/cuspatial/cpp/src | rapidsai_public_repos/cuspatial/cpp/src/distance/haversine.cu | /*
* Copyright (c) 2020-2023, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <cuspatial/constants.hpp>
#include <cuspatial/distance.cuh>
#include <cuspatial/error.hpp>
#include <cuspatial/iterator_factory.cuh>
#include <cudf/column/column.hpp>
#include <cudf/column/column_view.hpp>
#include <cudf/copying.hpp>
#include <cudf/types.hpp>
#include <cudf/utilities/type_dispatcher.hpp>
#include <rmm/cuda_stream_view.hpp>
#include <rmm/mr/device/device_memory_resource.hpp>
#include <memory>
#include <type_traits>
namespace {
struct haversine_functor {
template <typename T, typename... Args>
std::enable_if_t<not std::is_floating_point<T>::value, std::unique_ptr<cudf::column>> operator()(
Args&&...)
{
CUSPATIAL_FAIL("haversine_distance supports only floating-point types.");
}
template <typename T>
std::enable_if_t<std::is_floating_point<T>::value, std::unique_ptr<cudf::column>> operator()(
cudf::column_view const& a_lon,
cudf::column_view const& a_lat,
cudf::column_view const& b_lon,
cudf::column_view const& b_lat,
T radius,
rmm::cuda_stream_view stream,
rmm::mr::device_memory_resource* mr)
{
if (a_lon.is_empty()) { return cudf::empty_like(a_lon); }
auto mask_policy = cudf::mask_allocation_policy::NEVER;
auto result = cudf::allocate_like(a_lon, a_lon.size(), mask_policy, stream, mr);
auto lonlat_a = cuspatial::make_vec_2d_iterator(a_lon.begin<T>(), a_lat.begin<T>());
auto lonlat_b = cuspatial::make_vec_2d_iterator(b_lon.begin<T>(), b_lat.begin<T>());
cuspatial::haversine_distance(lonlat_a,
lonlat_a + a_lon.size(),
lonlat_b,
static_cast<cudf::mutable_column_view>(*result).begin<T>(),
T{radius},
stream);
return result;
}
};
} // anonymous namespace
namespace cuspatial {
namespace detail {
std::unique_ptr<cudf::column> haversine_distance(cudf::column_view const& a_lon,
cudf::column_view const& a_lat,
cudf::column_view const& b_lon,
cudf::column_view const& b_lat,
double radius,
rmm::cuda_stream_view stream,
rmm::mr::device_memory_resource* mr)
{
CUSPATIAL_EXPECTS(radius > 0, "radius must be positive.");
CUSPATIAL_EXPECTS(not a_lon.has_nulls() and not a_lat.has_nulls() and not b_lon.has_nulls() and
not b_lat.has_nulls(),
"coordinates must not contain nulls.");
CUSPATIAL_EXPECTS(
a_lat.type() == a_lon.type() and b_lon.type() == a_lon.type() and b_lat.type() == a_lon.type(),
"coordinates must have the same type.");
CUSPATIAL_EXPECTS(
a_lat.size() == a_lon.size() and b_lon.size() == a_lon.size() and b_lat.size() == a_lon.size(),
"coordinates must have the same size.");
return cudf::type_dispatcher(
a_lon.type(), haversine_functor{}, a_lon, a_lat, b_lon, b_lat, radius, stream, mr);
}
} // namespace detail
std::unique_ptr<cudf::column> haversine_distance(cudf::column_view const& a_lon,
cudf::column_view const& a_lat,
cudf::column_view const& b_lon,
cudf::column_view const& b_lat,
double radius,
rmm::mr::device_memory_resource* mr)
{
return cuspatial::detail::haversine_distance(
a_lon, a_lat, b_lon, b_lat, radius, rmm::cuda_stream_default, mr);
}
} // namespace cuspatial
| 0 |
rapidsai_public_repos/cuspatial/cpp/src | rapidsai_public_repos/cuspatial/cpp/src/distance/linestring_polygon_distance.cu | /*
* Copyright (c) 2023, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "../utility/multi_geometry_dispatch.hpp"
#include <cudf/column/column.hpp>
#include <cudf/column/column_device_view.cuh>
#include <cudf/column/column_factories.hpp>
#include <cudf/column/column_view.hpp>
#include <cudf/copying.hpp>
#include <cudf/types.hpp>
#include <cudf/utilities/traits.hpp>
#include <cudf/utilities/type_dispatcher.hpp>
#include <rmm/cuda_stream_view.hpp>
#include <cuspatial/column/geometry_column_view.hpp>
#include <cuspatial/distance.cuh>
#include <cuspatial/error.hpp>
#include <cuspatial/iterator_factory.cuh>
#include <cuspatial/range/multilinestring_range.cuh>
#include <cuspatial/range/multipolygon_range.cuh>
#include <cuspatial/types.hpp>
#include <thrust/iterator/counting_iterator.h>
#include <memory>
#include <type_traits>
namespace cuspatial {
namespace detail {
namespace {
template <collection_type_id is_multi_linestring, collection_type_id is_multi_polygon>
struct pairwise_linestring_polygon_distance_impl {
using SizeType = cudf::device_span<cudf::size_type const>::size_type;
template <typename T, CUDF_ENABLE_IF(std::is_floating_point_v<T>)>
std::unique_ptr<cudf::column> operator()(geometry_column_view const& multilinestrings,
geometry_column_view const& multipolygons,
rmm::cuda_stream_view stream,
rmm::mr::device_memory_resource* mr)
{
auto multilinestrings_range =
make_multilinestring_range<is_multi_linestring, T, cudf::size_type>(multilinestrings);
auto multipolygons_range =
make_multipolygon_range<is_multi_polygon, T, cudf::size_type>(multipolygons);
auto output = cudf::make_numeric_column(multilinestrings.coordinate_type(),
multilinestrings.size(),
cudf::mask_state::UNALLOCATED,
stream,
mr);
cuspatial::pairwise_linestring_polygon_distance(
multilinestrings_range, multipolygons_range, output->mutable_view().begin<T>(), stream);
return output;
}
template <typename T, CUDF_ENABLE_IF(!std::is_floating_point_v<T>), typename... Args>
std::unique_ptr<cudf::column> operator()(Args&&...)
{
CUSPATIAL_FAIL("linestring-polygon distance API only supports floating point coordinates.");
}
};
} // namespace
template <collection_type_id is_multi_linestring, collection_type_id is_multi_polygon>
struct pairwise_linestring_polygon_distance {
std::unique_ptr<cudf::column> operator()(geometry_column_view const& multilinestrings,
geometry_column_view const& multipolygons,
rmm::cuda_stream_view stream,
rmm::mr::device_memory_resource* mr)
{
CUSPATIAL_EXPECTS(multilinestrings.geometry_type() == geometry_type_id::LINESTRING &&
multipolygons.geometry_type() == geometry_type_id::POLYGON,
"Unexpected input geometry types.");
CUSPATIAL_EXPECTS(multilinestrings.coordinate_type() == multipolygons.coordinate_type(),
"Inputs must have the same coordinate type.");
CUSPATIAL_EXPECTS(multilinestrings.size() == multipolygons.size(),
"Inputs must have the same number of rows.");
return cudf::type_dispatcher(
multilinestrings.coordinate_type(),
pairwise_linestring_polygon_distance_impl<is_multi_linestring, is_multi_polygon>{},
multilinestrings,
multipolygons,
stream,
mr);
}
};
} // namespace detail
std::unique_ptr<cudf::column> pairwise_linestring_polygon_distance(
geometry_column_view const& multilinestrings,
geometry_column_view const& multipolygons,
rmm::mr::device_memory_resource* mr)
{
return multi_geometry_double_dispatch<detail::pairwise_linestring_polygon_distance>(
multilinestrings.collection_type(),
multipolygons.collection_type(),
multilinestrings,
multipolygons,
rmm::cuda_stream_default,
mr);
}
} // namespace cuspatial
| 0 |
rapidsai_public_repos/cuspatial/cpp/src | rapidsai_public_repos/cuspatial/cpp/src/distance/polygon_distance.cu | /*
* Copyright (c) 2023, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "../utility/multi_geometry_dispatch.hpp"
#include <cudf/column/column.hpp>
#include <cudf/column/column_factories.hpp>
#include <cudf/column/column_view.hpp>
#include <cudf/copying.hpp>
#include <cudf/types.hpp>
#include <cudf/utilities/traits.hpp>
#include <cudf/utilities/type_dispatcher.hpp>
#include <rmm/cuda_stream_view.hpp>
#include <cuspatial/column/geometry_column_view.hpp>
#include <cuspatial/distance.cuh>
#include <cuspatial/error.hpp>
#include <cuspatial/iterator_factory.cuh>
#include <cuspatial/range/multipolygon_range.cuh>
#include <cuspatial/types.hpp>
#include <thrust/iterator/counting_iterator.h>
#include <memory>
#include <type_traits>
namespace cuspatial {
namespace detail {
namespace {
template <collection_type_id is_multi_polygon_lhs, collection_type_id is_multi_polygon_rhs>
struct pairwise_polygon_distance_impl {
using SizeType = cudf::device_span<cudf::size_type const>::size_type;
template <typename T, CUDF_ENABLE_IF(std::is_floating_point_v<T>)>
std::unique_ptr<cudf::column> operator()(geometry_column_view const& lhs,
geometry_column_view const& rhs,
rmm::cuda_stream_view stream,
rmm::mr::device_memory_resource* mr)
{
auto lhs_range = make_multipolygon_range<is_multi_polygon_lhs, T, cudf::size_type>(lhs);
auto rhs_range = make_multipolygon_range<is_multi_polygon_rhs, T, cudf::size_type>(rhs);
auto output = cudf::make_numeric_column(
lhs.coordinate_type(), lhs.size(), cudf::mask_state::UNALLOCATED, stream, mr);
cuspatial::pairwise_polygon_distance(
lhs_range, rhs_range, output->mutable_view().begin<T>(), stream);
return output;
}
template <typename T, CUDF_ENABLE_IF(!std::is_floating_point_v<T>), typename... Args>
std::unique_ptr<cudf::column> operator()(Args&&...)
{
CUSPATIAL_FAIL("polygon distance API only supports floating point coordinates.");
}
};
} // namespace
template <collection_type_id is_multi_polygon_lhs, collection_type_id is_multi_polygon_rhs>
struct pairwise_polygon_distance {
std::unique_ptr<cudf::column> operator()(geometry_column_view const& lhs,
geometry_column_view const& rhs,
rmm::cuda_stream_view stream,
rmm::mr::device_memory_resource* mr)
{
CUSPATIAL_EXPECTS(lhs.geometry_type() == geometry_type_id::POLYGON &&
rhs.geometry_type() == geometry_type_id::POLYGON,
"Unexpected input geometry types.");
CUSPATIAL_EXPECTS(lhs.coordinate_type() == rhs.coordinate_type(),
"Input geometries must have the same coordinate data types.");
CUSPATIAL_EXPECTS(lhs.size() == rhs.size(),
"Input geometries must have the same number of polygons.");
return cudf::type_dispatcher(
lhs.coordinate_type(),
pairwise_polygon_distance_impl<is_multi_polygon_lhs, is_multi_polygon_rhs>{},
lhs,
rhs,
stream,
mr);
}
};
} // namespace detail
std::unique_ptr<cudf::column> pairwise_polygon_distance(geometry_column_view const& lhs,
geometry_column_view const& rhs,
rmm::mr::device_memory_resource* mr)
{
return multi_geometry_double_dispatch<detail::pairwise_polygon_distance>(
lhs.collection_type(), rhs.collection_type(), lhs, rhs, rmm::cuda_stream_default, mr);
}
} // namespace cuspatial
| 0 |
rapidsai_public_repos/cuspatial/cpp/src | rapidsai_public_repos/cuspatial/cpp/src/distance/hausdorff.cu | /*
* Copyright (c) 2019-2023, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required point_b_y applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <cuspatial/distance.cuh>
#include <cuspatial/error.hpp>
#include <cuspatial/iterator_factory.cuh>
#include <cudf/column/column.hpp>
#include <cudf/column/column_device_view.cuh>
#include <cudf/column/column_factories.hpp>
#include <cudf/column/column_view.hpp>
#include <cudf/detail/copy.hpp>
#include <cudf/detail/utilities/device_atomics.cuh>
#include <cudf/table/table_view.hpp>
#include <cudf/types.hpp>
#include <cudf/utilities/error.hpp>
#include <cudf/utilities/span.hpp>
#include <cudf/utilities/type_dispatcher.hpp>
#include <rmm/cuda_stream_view.hpp>
#include <rmm/exec_policy.hpp>
#include <thrust/binary_search.h>
#include <thrust/distance.h>
#include <thrust/fill.h>
#include <thrust/iterator/counting_iterator.h>
#include <thrust/sequence.h>
#include <memory>
#include <type_traits>
namespace {
/**
* @brief Split `col` into equal size chunks, each has `size`.
*
* @note only applicable to fixed width type.
* @note only applicable to columns of `size*size`.
*/
template <typename T>
std::vector<cudf::column_view> split_by_size(cudf::column_view const& col, cudf::size_type size)
{
std::vector<cudf::column_view> res;
cudf::size_type num_splits = col.size() / size;
std::transform(thrust::counting_iterator(0),
thrust::counting_iterator(num_splits),
std::back_inserter(res),
[size, num_splits, &col](int i) {
return cudf::column_view(
col.type(), size, col.data<T>(), nullptr, 0, size * i, {});
});
return res;
}
struct hausdorff_functor {
template <typename T, typename... Args>
std::enable_if_t<not std::is_floating_point<T>::value,
std::pair<std::unique_ptr<cudf::column>, cudf::table_view>>
operator()(Args&&...)
{
CUSPATIAL_FAIL("Non-floating point operation is not supported");
}
template <typename T>
std::enable_if_t<std::is_floating_point<T>::value,
std::pair<std::unique_ptr<cudf::column>, cudf::table_view>>
operator()(cudf::column_view const& xs,
cudf::column_view const& ys,
cudf::column_view const& space_offsets,
rmm::cuda_stream_view stream,
rmm::mr::device_memory_resource* mr)
{
auto const num_points = static_cast<uint32_t>(xs.size());
auto const num_spaces = static_cast<uint32_t>(space_offsets.size());
CUSPATIAL_EXPECTS(num_spaces < (1 << 15), "Total number of spaces must be less than 2^16");
auto const num_results = num_spaces * num_spaces;
auto tid = cudf::type_to_id<T>();
auto result = cudf::make_fixed_width_column(
cudf::data_type{tid}, num_results, cudf::mask_state::UNALLOCATED, stream, mr);
if (result->size() == 0) { return {std::move(result), cudf::table_view{}}; }
auto const result_view = result->mutable_view();
auto points_iter = cuspatial::make_vec_2d_iterator(xs.begin<T>(), ys.begin<T>());
auto space_offsets_iter = space_offsets.begin<cudf::size_type>();
cuspatial::directed_hausdorff_distance(points_iter,
points_iter + num_points,
space_offsets_iter,
space_offsets_iter + num_spaces,
result_view.begin<T>(),
stream);
return {std::move(result), cudf::table_view(split_by_size<T>(result->view(), num_spaces))};
}
};
} // namespace
namespace cuspatial {
std::pair<std::unique_ptr<cudf::column>, cudf::table_view> directed_hausdorff_distance(
cudf::column_view const& xs,
cudf::column_view const& ys,
cudf::column_view const& space_offsets,
rmm::mr::device_memory_resource* mr)
{
CUSPATIAL_EXPECTS(xs.type() == ys.type(), "Inputs `xs` and `ys` must have same type.");
CUSPATIAL_EXPECTS(xs.size() == ys.size(), "Inputs `xs` and `ys` must have same length.");
CUSPATIAL_EXPECTS(not xs.has_nulls() and not ys.has_nulls() and not space_offsets.has_nulls(),
"Inputs must not have nulls.");
return cudf::type_dispatcher(
xs.type(), hausdorff_functor(), xs, ys, space_offsets, rmm::cuda_stream_default, mr);
}
} // namespace cuspatial
| 0 |
rapidsai_public_repos/cuspatial/cpp/src | rapidsai_public_repos/cuspatial/cpp/src/distance/point_distance.cu | /*
* Copyright (c) 2022-2023, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "../utility/multi_geometry_dispatch.hpp"
#include <cuspatial/column/geometry_column_view.hpp>
#include <cuspatial/distance.cuh>
#include <cuspatial/error.hpp>
#include <cuspatial/range/multipoint_range.cuh>
#include <cuspatial/types.hpp>
#include <cudf/column/column_factories.hpp>
#include <cudf/column/column_view.hpp>
#include <cudf/utilities/type_dispatcher.hpp>
#include <rmm/cuda_stream_view.hpp>
#include <memory>
#include <type_traits>
namespace cuspatial {
namespace detail {
template <collection_type_id lhs_is_multipoint, collection_type_id rhs_is_multipoint>
struct pairwise_point_distance_impl {
template <typename T>
std::enable_if_t<std::is_floating_point<T>::value, std::unique_ptr<cudf::column>> operator()(
geometry_column_view const& multipoints1,
geometry_column_view const& multipoints2,
rmm::cuda_stream_view stream,
rmm::mr::device_memory_resource* mr)
{
auto size = multipoints1.size();
auto distances = cudf::make_numeric_column(
cudf::data_type{cudf::type_to_id<T>()}, size, cudf::mask_state::UNALLOCATED, stream, mr);
auto lhs = make_multipoint_range<lhs_is_multipoint, T, cudf::size_type>(multipoints1);
auto rhs = make_multipoint_range<rhs_is_multipoint, T, cudf::size_type>(multipoints2);
pairwise_point_distance(lhs, rhs, distances->mutable_view().begin<T>(), stream);
return distances;
}
template <typename T, typename... Args>
std::enable_if_t<not std::is_floating_point<T>::value, std::unique_ptr<cudf::column>> operator()(
Args&&...)
{
CUSPATIAL_FAIL("Point distances only supports floating point coordinates.");
}
};
template <collection_type_id lhs_is_multipoint, collection_type_id rhs_is_multipoint>
struct pairwise_point_distance_functor {
std::unique_ptr<cudf::column> operator()(geometry_column_view const& multipoints1,
geometry_column_view const& multipoints2,
rmm::cuda_stream_view stream,
rmm::mr::device_memory_resource* mr)
{
CUSPATIAL_EXPECTS(multipoints1.geometry_type() == geometry_type_id::POINT &&
multipoints2.geometry_type() == geometry_type_id::POINT,
"Unexpected input geometry types.");
CUSPATIAL_EXPECTS(multipoints1.coordinate_type() == multipoints2.coordinate_type(),
"Input coordinates must have the same floating point type.");
CUSPATIAL_EXPECTS(multipoints1.size() == multipoints2.size(),
"Inputs should have the same number of geometries.");
return cudf::type_dispatcher(
multipoints1.coordinate_type(),
pairwise_point_distance_impl<lhs_is_multipoint, rhs_is_multipoint>{},
multipoints1,
multipoints2,
stream,
mr);
}
};
} // namespace detail
std::unique_ptr<cudf::column> pairwise_point_distance(geometry_column_view const& multipoints1,
geometry_column_view const& multipoints2,
rmm::mr::device_memory_resource* mr)
{
return multi_geometry_double_dispatch<detail::pairwise_point_distance_functor>(
multipoints1.collection_type(),
multipoints2.collection_type(),
multipoints1,
multipoints2,
rmm::cuda_stream_default,
mr);
}
} // namespace cuspatial
| 0 |
rapidsai_public_repos/cuspatial/cpp/src | rapidsai_public_repos/cuspatial/cpp/src/distance/linestring_distance.cu | /*
* Copyright (c) 2022-2023, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "../utility/multi_geometry_dispatch.hpp"
#include <cuspatial/column/geometry_column_view.hpp>
#include <cuspatial/distance.cuh>
#include <cuspatial/error.hpp>
#include <cuspatial/range/multilinestring_range.cuh>
#include <cuspatial/traits.hpp>
#include <cuspatial/types.hpp>
#include <cudf/column/column_factories.hpp>
#include <cudf/column/column_view.hpp>
#include <cudf/utilities/type_dispatcher.hpp>
#include <rmm/cuda_stream_view.hpp>
#include <memory>
#include <type_traits>
namespace cuspatial {
namespace detail {
template <collection_type_id lhs_is_multilinestring, collection_type_id rhs_is_multilinestring>
struct pairwise_linestring_distance_launch {
using SizeType = cudf::device_span<cudf::size_type const>::size_type;
template <typename T, CUSPATIAL_ENABLE_IF(std::is_floating_point_v<T>)>
std::unique_ptr<cudf::column> operator()(geometry_column_view const& multilinestrings1,
geometry_column_view const& multilinestrings2,
rmm::cuda_stream_view stream,
rmm::mr::device_memory_resource* mr)
{
auto size = multilinestrings1.size();
auto distances = cudf::make_numeric_column(
cudf::data_type{cudf::type_to_id<T>()}, size, cudf::mask_state::UNALLOCATED, stream, mr);
auto lhs =
make_multilinestring_range<lhs_is_multilinestring, T, cudf::size_type>(multilinestrings1);
auto rhs =
make_multilinestring_range<rhs_is_multilinestring, T, cudf::size_type>(multilinestrings2);
pairwise_linestring_distance(lhs, rhs, distances->mutable_view().begin<T>(), stream);
return distances;
}
template <typename T, CUSPATIAL_ENABLE_IF(!std::is_floating_point_v<T>), typename... Args>
std::unique_ptr<cudf::column> operator()(Args&&...)
{
CUSPATIAL_FAIL("Linestring distance API only supports floating point coordinates.");
}
};
template <collection_type_id lhs_is_multilinestring, collection_type_id rhs_is_multilinestring>
struct pairwise_linestring_distance_functor {
std::unique_ptr<cudf::column> operator()(geometry_column_view const& multilinestrings1,
geometry_column_view const& multilinestrings2,
rmm::cuda_stream_view stream,
rmm::mr::device_memory_resource* mr)
{
CUSPATIAL_EXPECTS(multilinestrings1.geometry_type() == geometry_type_id::LINESTRING &&
multilinestrings2.geometry_type() == geometry_type_id::LINESTRING,
"Unexpected input geometry types.");
CUSPATIAL_EXPECTS(multilinestrings1.coordinate_type() == multilinestrings2.coordinate_type(),
"Inputs must have the same coordinate type.");
CUSPATIAL_EXPECTS(multilinestrings1.size() == multilinestrings2.size(),
"Inputs should have the same number of geometries.");
return cudf::type_dispatcher(
multilinestrings1.coordinate_type(),
pairwise_linestring_distance_launch<lhs_is_multilinestring, rhs_is_multilinestring>{},
multilinestrings1,
multilinestrings2,
stream,
mr);
}
};
} // namespace detail
std::unique_ptr<cudf::column> pairwise_linestring_distance(
geometry_column_view const& multilinestrings1,
geometry_column_view const& multilinestrings2,
rmm::mr::device_memory_resource* mr)
{
return multi_geometry_double_dispatch<detail::pairwise_linestring_distance_functor>(
multilinestrings1.collection_type(),
multilinestrings2.collection_type(),
multilinestrings1,
multilinestrings2,
rmm::cuda_stream_default,
mr);
}
} // namespace cuspatial
| 0 |
rapidsai_public_repos/cuspatial/cpp/src | rapidsai_public_repos/cuspatial/cpp/src/utility/iterator.hpp | /*
* Copyright (c) 2022, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#pragma once
#include <cudf/types.hpp>
#include <cudf/utilities/span.hpp>
#include <optional>
namespace cuspatial {
namespace detail {
/**
* @brief Returns the iterator to the offsets of the geometries
*
* The libcuspatial header only API accepts only multi-geometry types. This
* function returns the iterator to the offsets of the geometries for both
* single and multi-geometry types for the column API. If the input is a
* single geometry type, a counting iterator is returned to indicate that each
* multi-geometry input to the header only API contains only 1 geometry.
*
* @tparam has_value boolean to indicate whether the input contains a geometry
* offset vector.
*/
template <bool has_value>
struct get_geometry_iterator_functor;
template <>
struct get_geometry_iterator_functor<true> {
auto operator()(std::optional<cudf::device_span<cudf::size_type const>> opt)
{
return opt.value().begin();
}
};
template <>
struct get_geometry_iterator_functor<false> {
auto operator()(std::optional<cudf::device_span<cudf::size_type const>>)
{
return thrust::make_counting_iterator(0);
}
};
} // namespace detail
} // namespace cuspatial
| 0 |
rapidsai_public_repos/cuspatial/cpp/src | rapidsai_public_repos/cuspatial/cpp/src/utility/double_boolean_dispatch.hpp |
/*
* Copyright (c) 2022, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#pragma once
#include <utility>
namespace cuspatial {
/**
* @brief Invokes an `operator()` template with the instantiation based on the specified
* `opt1` and `opt2` value.
* This dispatcher effectively converts the runtime information of two boolean variables
* to compile time. This is useful when an API accepts an `std::optional` argument,
* but further in the code path a function requires these information at compile time.
*
* @tparam Functor The functor object whose `operator()` is invoked
* @tparam Args Variadic parameter type
* @param opt1 The first boolean value to convert to compile time
* @param opt2 The second boolean value to convert to compile time
* @param args The parameter pack of arguments forwarded to the `operator()`
* invocation
* @return Whatever returned by the callable's `operator()`
*/
template <template <bool is_multi_1, bool is_multi_2> class Functor, typename... Args>
auto double_boolean_dispatch(bool opt1, bool opt2, Args&&... args)
{
if (opt1 && opt2) {
return Functor<true, true>{}(std::forward<Args>(args)...);
} else if (!opt1 && opt2) {
return Functor<false, true>{}(std::forward<Args>(args)...);
} else if (opt1 && !opt2) {
return Functor<true, false>{}(std::forward<Args>(args)...);
} else {
return Functor<false, false>{}(std::forward<Args>(args)...);
}
}
} // namespace cuspatial
| 0 |
rapidsai_public_repos/cuspatial/cpp/src | rapidsai_public_repos/cuspatial/cpp/src/utility/multi_geometry_dispatch.hpp | /*
* Copyright (c) 2023, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#pragma once
#include <cuspatial/types.hpp>
#include <utility>
namespace cuspatial {
using T = collection_type_id;
/**
* @brief Invokes an `operator()` template with the instantiation based on the specified
* `lhs_type` and `rhs_type` value.
*
* This dispatcher effectively converts the runtime information of `collection_type_id` variables
* to compile time.
*
* @tparam Functor The functor object whose `operator()` is invoked
* @tparam Args Variadic parameter type
* @param lhs_type The collection type of lhs
* @param rhs_type The collection type of lhs
* @param args The parameter pack of arguments forwarded to the `operator()`
* invocation
* @return Whatever is returned by the callable's invoked Functor `operator()`
*/
template <template <T, T> class Functor, typename... Args>
auto multi_geometry_double_dispatch(T lhs_type, T rhs_type, Args&&... args)
{
if (lhs_type == T::SINGLE && rhs_type == T::SINGLE) {
return Functor<T::SINGLE, T::SINGLE>{}(std::forward<Args>(args)...);
} else if (lhs_type == T::SINGLE && rhs_type == T::MULTI) {
return Functor<T::SINGLE, T::MULTI>{}(std::forward<Args>(args)...);
} else if (lhs_type == T::MULTI && rhs_type == T::SINGLE) {
return Functor<T::MULTI, T::SINGLE>{}(std::forward<Args>(args)...);
} else {
return Functor<T::MULTI, T::MULTI>{}(std::forward<Args>(args)...);
}
}
} // namespace cuspatial
| 0 |
rapidsai_public_repos/cuspatial/cpp/src | rapidsai_public_repos/cuspatial/cpp/src/utility/size_from_offsets.cuh | /*
* Copyright (c) 2020-2021, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#pragma once
namespace cuspatial {
namespace detail {
template <typename OffsetIterator>
struct size_from_offsets_functor {
uint32_t const num_offsets;
uint32_t const num_elements;
OffsetIterator const offsets;
uint32_t inline __device__ operator()(uint64_t const group_idx)
{
auto const group_idx_next = group_idx + 1;
auto const group_begin = *(offsets + group_idx);
auto const group_end =
group_idx_next >= num_offsets ? num_elements : *(offsets + group_idx_next);
return group_end - group_begin;
}
};
} // namespace detail
} // namespace cuspatial
| 0 |
rapidsai_public_repos/cuspatial/cpp/src | rapidsai_public_repos/cuspatial/cpp/src/utility/scatter_output_iterator.cuh | /*
* Copyright (c) 2020-2021, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <thrust/detail/use_default.h>
#include <thrust/distance.h>
#include <thrust/iterator/counting_iterator.h>
#include <thrust/iterator/iterator_adaptor.h>
#include <thrust/iterator/iterator_facade.h>
#pragma once
namespace cuspatial {
namespace detail {
/** @brief scatters outputs to a given index, according to `scatter_map`.
*
* The destination index is obtained by dereferencing the scatter map at an offset equal to the
* distance between `begin` and `out` (the logical offset of the output iterator).
*
* If the scatter index is negative, the assignment is a no-op.
* If the scatter index is non-negative, the assignment is "redirected" to `begin + scatter_idx`
*
**/
template <typename OutputIterator, typename ScatterIterator>
class scatter_output_iterator_proxy {
public:
__host__ __device__ scatter_output_iterator_proxy(const OutputIterator& begin,
const OutputIterator& out,
const ScatterIterator& scatter_map)
: begin(begin), out(out), scatter_map(scatter_map)
{
}
template <typename T>
__host__ __device__ scatter_output_iterator_proxy operator=(const T& element)
{
auto const scatter_idx = static_cast<uint32_t>(*(scatter_map + thrust::distance(begin, out)));
if (scatter_idx != static_cast<uint32_t>(-1)) {
// forward assignments if and only if the scatter map indicates to do so.
*(begin + scatter_idx) = element;
}
return *this;
}
private:
OutputIterator begin;
OutputIterator out;
ScatterIterator scatter_map;
};
template <typename OutputIterator, typename ScatterIterator>
class scatter_output_iterator;
template <typename OutputIterator, typename ScatterIterator>
struct scatter_output_iterator_base {
typedef thrust::iterator_adaptor<scatter_output_iterator<OutputIterator, ScatterIterator>,
OutputIterator,
thrust::use_default,
thrust::use_default,
thrust::use_default,
scatter_output_iterator_proxy<OutputIterator, ScatterIterator>>
type;
};
/**
* @brief An output iterator capable of filtering and/or rearranging outputs.
*
* Example:
* ```
* auto count_iter = thrust::make_counting_iterator<int32_t>(0);
* auto scatter_map = thrust::make_transform_iterator(
* count_iter, [] (int32_t idx) { return idx % 2 == 0 ? -1 : idx / 2; });
*
* auto out = std::ostream_iterator<char>(std::cout);
* auto out_filtered = make_scatter_output_iterator(
* std::ostream_iterator<char>(std::cout),
* scatter_map
* );
*
* assign_a_through_z(out); // abcdefghijklmnopqrstuvwxyz
* assign_a_through_z(out_filtered); // bdfhjlnprtvxz
* ```
*
*/
template <typename OutputIterator, typename ScatterIterator>
class scatter_output_iterator
: public scatter_output_iterator_base<OutputIterator, ScatterIterator>::type {
public:
typedef typename scatter_output_iterator_base<OutputIterator, ScatterIterator>::type super_t;
friend class thrust::iterator_core_access;
__host__ __device__ scatter_output_iterator(OutputIterator const& out,
ScatterIterator const& scatter_map)
: super_t(out), begin(out), scatter_map(scatter_map)
{
}
private:
__host__ __device__ typename super_t::reference dereference() const
{
return scatter_output_iterator_proxy<OutputIterator, ScatterIterator>(
begin, this->base_reference(), scatter_map);
}
OutputIterator begin;
ScatterIterator scatter_map;
};
template <typename OutputIterator, typename ScatterIterator>
scatter_output_iterator<OutputIterator, ScatterIterator> __host__ __device__
make_scatter_output_iterator(OutputIterator out, ScatterIterator scatter_map)
{
return scatter_output_iterator<OutputIterator, ScatterIterator>(out, scatter_map);
}
} // namespace detail
} // namespace cuspatial
| 0 |
rapidsai_public_repos/cuspatial/cpp/src | rapidsai_public_repos/cuspatial/cpp/src/column/geometry_column_view.cpp | /*
* Copyright (c) 2023, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <cuspatial/column/geometry_column_view.hpp>
#include <cuspatial/error.hpp>
#include <cuspatial/types.hpp>
#include <cudf/column/column_view.hpp>
#include <cudf/lists/lists_column_view.hpp>
#include <cudf/types.hpp>
namespace cuspatial {
namespace {
/**
* @brief Retrieve the leaf column type of the LIST column.
* @internal
*
* @param column The LIST column to retrieve leaf column type.
* @return cudf type of the leaf column
*/
cudf::data_type leaf_data_type(cudf::column_view const& column)
{
if (column.type() != cudf::data_type{cudf::type_id::LIST}) return column.type();
return leaf_data_type(column.child(cudf::lists_column_view::child_column_index));
}
} // namespace
geometry_column_view::geometry_column_view(cudf::column_view const& column,
collection_type_id collection_type,
geometry_type_id geometry_type)
: cudf::lists_column_view(column),
_collection_type(collection_type),
_geometry_type(geometry_type)
{
}
cudf::data_type geometry_column_view::coordinate_type() const { return leaf_data_type(child()); }
} // namespace cuspatial
| 0 |
rapidsai_public_repos/cuspatial/cpp/src | rapidsai_public_repos/cuspatial/cpp/src/points_in_range/points_in_range.cu | /*
* Copyright (c) 2020-2023, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <cuspatial/error.hpp>
#include <cuspatial/iterator_factory.cuh>
#include <cuspatial/points_in_range.cuh>
#include <cudf/column/column.hpp>
#include <cudf/column/column_view.hpp>
#include <cudf/copying.hpp>
#include <cudf/detail/copy.hpp>
#include <cudf/table/table.hpp>
#include <rmm/cuda_stream_view.hpp>
#include <memory>
#include <type_traits>
namespace {
// Type-dispatch functor that creates the spatial range filter of the correct type.
// Only floating point types are supported.
struct points_in_range_dispatch {
template <typename T, std::enable_if_t<std::is_floating_point<T>::value>* = nullptr>
std::unique_ptr<cudf::table> operator()(double range_min_x,
double range_max_x,
double range_min_y,
double range_max_y,
cudf::column_view const& x,
cudf::column_view const& y,
rmm::cuda_stream_view stream,
rmm::mr::device_memory_resource* mr)
{
auto points_begin = cuspatial::make_vec_2d_iterator(x.begin<T>(), y.begin<T>());
auto range_min = cuspatial::vec_2d<T>{static_cast<T>(range_min_x), static_cast<T>(range_min_y)};
auto range_max = cuspatial::vec_2d<T>{static_cast<T>(range_max_x), static_cast<T>(range_max_y)};
auto output_size = cuspatial::count_points_in_range(
range_min, range_max, points_begin, points_begin + x.size(), stream);
std::vector<std::unique_ptr<cudf::column>> cols{};
cols.reserve(2);
auto mask_policy = cudf::mask_allocation_policy::NEVER;
cols.push_back(cudf::detail::allocate_like(x, output_size, mask_policy, stream, mr));
cols.push_back(cudf::detail::allocate_like(y, output_size, mask_policy, stream, mr));
auto& output_x = cols[0];
auto& output_y = cols[1];
auto output_zip = cuspatial::make_vec_2d_output_iterator(output_x->mutable_view().begin<T>(),
output_y->mutable_view().begin<T>());
cuspatial::copy_points_in_range(
range_min, range_max, points_begin, points_begin + x.size(), output_zip, stream);
return std::make_unique<cudf::table>(std::move(cols));
}
template <typename T,
std::enable_if_t<not std::is_floating_point<T>::value>* = nullptr,
typename... Args>
std::unique_ptr<cudf::table> operator()(Args&&...)
{
CUSPATIAL_FAIL("Only floating-point types supported");
}
};
} // namespace
namespace cuspatial {
namespace detail {
/*
* Return all points (x,y) that fall within a query range (x1,y1,x2,y2)
* see query.hpp
*
* Detail version that takes a stream.
*/
std::unique_ptr<cudf::table> points_in_range(double range_min_x,
double range_max_x,
double range_min_y,
double range_max_y,
cudf::column_view const& x,
cudf::column_view const& y,
rmm::cuda_stream_view stream,
rmm::mr::device_memory_resource* mr)
{
CUSPATIAL_EXPECTS(x.type() == y.type(), "Type mismatch between x and y arrays");
CUSPATIAL_EXPECTS(x.size() == y.size(), "Size mismatch between x and y arrays");
CUSPATIAL_EXPECTS(not(x.has_nulls() || y.has_nulls()), "NULL point data not supported");
return cudf::type_dispatcher(x.type(),
points_in_range_dispatch(),
range_min_x,
range_max_x,
range_min_y,
range_max_y,
x,
y,
stream,
mr);
}
} // namespace detail
/*
* Return all points (x,y) that fall within a query range (x1,y1,x2,y2)
* see query.hpp
*/
std::unique_ptr<cudf::table> points_in_range(double range_min_x,
double range_max_x,
double range_min_y,
double range_max_y,
cudf::column_view const& x,
cudf::column_view const& y,
rmm::mr::device_memory_resource* mr)
{
return detail::points_in_range(
range_min_x, range_max_x, range_min_y, range_max_y, x, y, rmm::cuda_stream_default, mr);
}
} // namespace cuspatial
| 0 |
rapidsai_public_repos/cuspatial/cpp/src | rapidsai_public_repos/cuspatial/cpp/src/equality/pairwise_multipoint_equals_count.cu | /*
* Copyright (c) 2023, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "utility/multi_geometry_dispatch.hpp"
#include <cuspatial/column/geometry_column_view.hpp>
#include <cuspatial/error.hpp>
#include <cuspatial/pairwise_multipoint_equals_count.cuh>
#include <cuspatial/range/multipoint_range.cuh>
#include <cuspatial/types.hpp>
#include <cudf/column/column_factories.hpp>
#include <rmm/cuda_stream_view.hpp>
#include <rmm/exec_policy.hpp>
#include <thrust/iterator/zip_iterator.h>
#include <thrust/pair.h>
#include <thrust/transform.h>
#include <thrust/tuple.h>
#include <type_traits>
#include <utility>
namespace cuspatial {
namespace detail {
namespace {
template <collection_type_id is_multi_point_lhs, collection_type_id is_multi_point_rhs>
struct pairwise_multipoint_equals_count_impl {
using SizeType = cudf::device_span<cudf::size_type const>::size_type;
template <typename T, CUDF_ENABLE_IF(std::is_floating_point_v<T>)>
std::unique_ptr<cudf::column> operator()(geometry_column_view const& lhs,
geometry_column_view const& rhs,
rmm::cuda_stream_view stream,
rmm::mr::device_memory_resource* mr)
{
auto size = lhs.size(); // lhs is a buffer of xy coords
auto type = cudf::data_type(cudf::type_to_id<uint32_t>());
auto result =
cudf::make_fixed_width_column(type, size, cudf::mask_state::UNALLOCATED, stream, mr);
auto lhs_range = make_multipoint_range<is_multi_point_lhs, T, cudf::size_type>(lhs);
auto rhs_range = make_multipoint_range<is_multi_point_rhs, T, cudf::size_type>(rhs);
cuspatial::pairwise_multipoint_equals_count(
lhs_range, rhs_range, result->mutable_view().begin<uint32_t>(), stream);
return result;
}
template <typename T, CUDF_ENABLE_IF(!std::is_floating_point_v<T>), typename... Args>
std::unique_ptr<cudf::column> operator()(Args&&...)
{
CUSPATIAL_FAIL("pairwise_multipoint_equals_count only supports floating point types.");
}
};
} // namespace
template <collection_type_id is_multi_point_lhs, collection_type_id is_multi_point_rhs>
struct pairwise_multipoint_equals_count {
std::unique_ptr<cudf::column> operator()(geometry_column_view lhs,
geometry_column_view rhs,
rmm::cuda_stream_view stream,
rmm::mr::device_memory_resource* mr)
{
return cudf::type_dispatcher(
lhs.coordinate_type(),
pairwise_multipoint_equals_count_impl<is_multi_point_lhs, is_multi_point_rhs>{},
lhs,
rhs,
stream,
mr);
}
};
} // namespace detail
std::unique_ptr<cudf::column> pairwise_multipoint_equals_count(geometry_column_view const& lhs,
geometry_column_view const& rhs,
rmm::mr::device_memory_resource* mr)
{
CUSPATIAL_EXPECTS(lhs.geometry_type() == geometry_type_id::POINT &&
rhs.geometry_type() == geometry_type_id::POINT,
"pairwise_multipoint_equals_count only supports POINT geometries"
"for both lhs and rhs");
CUSPATIAL_EXPECTS(lhs.coordinate_type() == rhs.coordinate_type(),
"Input geometries must have the same coordinate data types.");
CUSPATIAL_EXPECTS(lhs.size() == rhs.size(),
"Input geometries must have the same number of multipoints.");
return multi_geometry_double_dispatch<detail::pairwise_multipoint_equals_count>(
lhs.collection_type(), rhs.collection_type(), lhs, rhs, rmm::cuda_stream_default, mr);
}
} // namespace cuspatial
| 0 |
rapidsai_public_repos/cuspatial/cpp/src | rapidsai_public_repos/cuspatial/cpp/src/indexing/point_quadtree.cu | /*
* Copyright (c) 2020-2021, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <cuspatial/error.hpp>
#include <cuspatial/geometry/vec_2d.hpp>
#include <cuspatial/iterator_factory.cuh>
#include <cuspatial/point_quadtree.cuh>
#include <cuspatial/point_quadtree.hpp>
#include <cudf/column/column_factories.hpp>
#include <cudf/table/table.hpp>
#include <rmm/cuda_stream_view.hpp>
#include <rmm/device_uvector.hpp>
#include <rmm/exec_policy.hpp>
#include <memory>
/*
* quadtree indexing on points using the bottom-up algorithm described at ref.
* http://www.adms-conf.org/2019-camera-ready/zhang_adms19.pdf
* extra care on minmizing peak device memory usage by deallocating memory as
* early as possible
*/
namespace cuspatial {
namespace detail {
namespace {
/*
* Construct a quad tree from the input (unsorted) x/y points. The bounding box
* defined by the x_min, y_min, x_max, and y_max parameters is used to compute
* keys in a one-dimensional Z-order curve (i.e. Morton codes) for each point.
*
* The keys are sorted and used to construct a quadtree from the "bottom" level,
* ascending to the root.
*/
struct dispatch_construct_quadtree {
template <typename T,
std::enable_if_t<!std::is_floating_point<T>::value>* = nullptr,
typename... Args>
inline std::pair<std::unique_ptr<cudf::column>, std::unique_ptr<cudf::table>> operator()(
Args&&...)
{
CUSPATIAL_FAIL("Only floating-point types are supported");
}
template <typename T, std::enable_if_t<std::is_floating_point<T>::value>* = nullptr>
inline std::pair<std::unique_ptr<cudf::column>, std::unique_ptr<cudf::table>> operator()(
cudf::column_view const& x,
cudf::column_view const& y,
double x_min,
double x_max,
double y_min,
double y_max,
double scale,
int8_t max_depth,
cudf::size_type max_size,
rmm::cuda_stream_view stream,
rmm::mr::device_memory_resource* mr)
{
auto points = cuspatial::make_vec_2d_iterator(x.begin<T>(), y.begin<T>());
auto [point_indices, tree] =
quadtree_on_points(points,
points + x.size(),
vec_2d<T>{static_cast<T>(x_min), static_cast<T>(y_min)},
vec_2d<T>{static_cast<T>(x_max), static_cast<T>(y_max)},
static_cast<T>(scale),
max_depth,
max_size,
stream,
mr);
auto size = static_cast<cudf::size_type>(tree.key.size());
std::vector<std::unique_ptr<cudf::column>> cols{};
cols.push_back(std::make_unique<cudf::column>(
cudf::data_type{cudf::type_id::UINT32}, size, tree.key.release(), rmm::device_buffer{}, 0));
cols.push_back(std::make_unique<cudf::column>(
cudf::data_type{cudf::type_id::UINT8}, size, tree.level.release(), rmm::device_buffer{}, 0));
cols.push_back(std::make_unique<cudf::column>(cudf::data_type{cudf::type_id::BOOL8},
size,
tree.internal_node_flag.release(),
rmm::device_buffer{},
0));
cols.push_back(std::make_unique<cudf::column>(cudf::data_type{cudf::type_id::UINT32},
size,
tree.length.release(),
rmm::device_buffer{},
0));
cols.push_back(std::make_unique<cudf::column>(cudf::data_type{cudf::type_id::UINT32},
size,
tree.offset.release(),
rmm::device_buffer{},
0));
return std::make_pair(std::make_unique<cudf::column>(cudf::data_type{cudf::type_id::UINT32},
x.size(),
point_indices.release(),
rmm::device_buffer{},
0),
std::make_unique<cudf::table>(std::move(cols)));
}
};
} // namespace
std::pair<std::unique_ptr<cudf::column>, std::unique_ptr<cudf::table>> quadtree_on_points(
cudf::column_view const& x,
cudf::column_view const& y,
double x_min,
double x_max,
double y_min,
double y_max,
double scale,
int8_t max_depth,
cudf::size_type max_size,
rmm::cuda_stream_view stream,
rmm::mr::device_memory_resource* mr)
{
return cudf::type_dispatcher(x.type(),
dispatch_construct_quadtree{},
x,
y,
x_min,
x_max,
y_min,
y_max,
scale,
max_depth,
max_size,
stream,
mr);
}
} // namespace detail
std::pair<std::unique_ptr<cudf::column>, std::unique_ptr<cudf::table>> quadtree_on_points(
cudf::column_view const& x,
cudf::column_view const& y,
double x_min,
double x_max,
double y_min,
double y_max,
double scale,
int8_t max_depth,
cudf::size_type max_size,
rmm::mr::device_memory_resource* mr)
{
CUSPATIAL_EXPECTS(x.size() == y.size(), "x and y columns must have the same length");
if (x.is_empty() || y.is_empty()) {
std::vector<std::unique_ptr<cudf::column>> cols{};
cols.push_back(cudf::make_empty_column(cudf::type_id::UINT32));
cols.push_back(cudf::make_empty_column(cudf::type_id::UINT8));
cols.push_back(cudf::make_empty_column(cudf::type_id::BOOL8));
cols.push_back(cudf::make_empty_column(cudf::type_id::UINT32));
cols.push_back(cudf::make_empty_column(cudf::type_id::UINT32));
return std::make_pair(cudf::make_empty_column(cudf::type_id::UINT32),
std::make_unique<cudf::table>(std::move(cols)));
}
return detail::quadtree_on_points(
x, y, x_min, x_max, y_min, y_max, scale, max_depth, max_size, rmm::cuda_stream_default, mr);
}
} // namespace cuspatial
| 0 |
rapidsai_public_repos/cuspatial/cpp | rapidsai_public_repos/cuspatial/cpp/doxygen/DoxygenLayout.xml | <doxygenlayout version="1.0">
<!-- Generated by doxygen 1.8.13 -->
<!-- Navigation index tabs for HTML output -->
<navindex>
<tab type="mainpage" visible="yes" title=""/>
<tab type="pages" visible="yes" title="" intro=""/>
<tab type="user" url="@ref DEVELOPER_GUIDE" title="Developer Guide"/>
<tab type="modules" visible="yes" title="" intro=""/>
<tab type="namespaces" visible="yes" title="">
<tab type="namespacelist" visible="yes" title="" intro=""/>
<tab type="namespacemembers" visible="yes" title="" intro=""/>
</tab>
<tab type="classes" visible="yes" title="">
<tab type="classlist" visible="yes" title="" intro=""/>
<tab type="classindex" visible="$ALPHABETICAL_INDEX" title=""/>
<tab type="hierarchy" visible="yes" title="" intro=""/>
<tab type="classmembers" visible="yes" title="" intro=""/>
</tab>
<tab type="files" visible="yes" title="">
<tab type="filelist" visible="yes" title="" intro=""/>
<tab type="globals" visible="yes" title="" intro=""/>
</tab>
<tab type="examples" visible="yes" title="" intro=""/>
</navindex>
<!-- Layout definition for a class page -->
<class>
<briefdescription visible="yes"/>
<includes visible="$SHOW_INCLUDE_FILES"/>
<inheritancegraph visible="$CLASS_GRAPH"/>
<collaborationgraph visible="$COLLABORATION_GRAPH"/>
<memberdecl>
<nestedclasses visible="yes" title=""/>
<publictypes title=""/>
<services title=""/>
<interfaces title=""/>
<publicslots title=""/>
<signals title=""/>
<publicmethods title=""/>
<publicstaticmethods title=""/>
<publicattributes title=""/>
<publicstaticattributes title=""/>
<protectedtypes title=""/>
<protectedslots title=""/>
<protectedmethods title=""/>
<protectedstaticmethods title=""/>
<protectedattributes title=""/>
<protectedstaticattributes title=""/>
<packagetypes title=""/>
<packagemethods title=""/>
<packagestaticmethods title=""/>
<packageattributes title=""/>
<packagestaticattributes title=""/>
<properties title=""/>
<events title=""/>
<privatetypes title=""/>
<privateslots title=""/>
<privatemethods title=""/>
<privatestaticmethods title=""/>
<privateattributes title=""/>
<privatestaticattributes title=""/>
<friends title=""/>
<related title="" subtitle=""/>
<membergroups visible="yes"/>
</memberdecl>
<detaileddescription title=""/>
<memberdef>
<inlineclasses title=""/>
<typedefs title=""/>
<enums title=""/>
<services title=""/>
<interfaces title=""/>
<constructors title=""/>
<functions title=""/>
<related title=""/>
<variables title=""/>
<properties title=""/>
<events title=""/>
</memberdef>
<allmemberslink visible="yes"/>
<usedfiles visible="$SHOW_USED_FILES"/>
<authorsection visible="yes"/>
</class>
<!-- Layout definition for a namespace page -->
<namespace>
<briefdescription visible="yes"/>
<memberdecl>
<nestednamespaces visible="yes" title=""/>
<constantgroups visible="yes" title=""/>
<classes visible="yes" title=""/>
<typedefs title=""/>
<enums title=""/>
<functions title=""/>
<variables title=""/>
<membergroups visible="yes"/>
</memberdecl>
<detaileddescription title=""/>
<memberdef>
<inlineclasses title=""/>
<typedefs title=""/>
<enums title=""/>
<functions title=""/>
<variables title=""/>
</memberdef>
<authorsection visible="yes"/>
</namespace>
<!-- Layout definition for a file page -->
<file>
<briefdescription visible="yes"/>
<includes visible="$SHOW_INCLUDE_FILES"/>
<includegraph visible="$INCLUDE_GRAPH"/>
<includedbygraph visible="$INCLUDED_BY_GRAPH"/>
<sourcelink visible="yes"/>
<memberdecl>
<classes visible="yes" title=""/>
<namespaces visible="yes" title=""/>
<constantgroups visible="yes" title=""/>
<defines title=""/>
<typedefs title=""/>
<enums title=""/>
<functions title=""/>
<variables title=""/>
<membergroups visible="yes"/>
</memberdecl>
<detaileddescription title=""/>
<memberdef>
<inlineclasses title=""/>
<defines title=""/>
<typedefs title=""/>
<enums title=""/>
<functions title=""/>
<variables title=""/>
</memberdef>
<authorsection/>
</file>
<!-- Layout definition for a group page -->
<group>
<briefdescription visible="yes"/>
<groupgraph visible="$GROUP_GRAPHS"/>
<memberdecl>
<nestedgroups visible="yes" title=""/>
<dirs visible="yes" title=""/>
<files visible="yes" title=""/>
<namespaces visible="yes" title=""/>
<classes visible="yes" title=""/>
<defines title=""/>
<typedefs title=""/>
<enums title=""/>
<enumvalues title=""/>
<functions title=""/>
<variables title=""/>
<signals title=""/>
<publicslots title=""/>
<protectedslots title=""/>
<privateslots title=""/>
<events title=""/>
<properties title=""/>
<friends title=""/>
<membergroups visible="yes"/>
</memberdecl>
<detaileddescription title=""/>
<memberdef>
<pagedocs/>
<inlineclasses title=""/>
<defines title=""/>
<typedefs title=""/>
<enums title=""/>
<enumvalues title=""/>
<functions title=""/>
<variables title=""/>
<signals title=""/>
<publicslots title=""/>
<protectedslots title=""/>
<privateslots title=""/>
<events title=""/>
<properties title=""/>
<friends title=""/>
</memberdef>
<authorsection visible="yes"/>
</group>
<!-- Layout definition for a directory page -->
<directory>
<briefdescription visible="yes"/>
<directorygraph visible="yes"/>
<memberdecl>
<dirs visible="yes"/>
<files visible="yes"/>
</memberdecl>
<detaileddescription title=""/>
</directory>
</doxygenlayout>
| 0 |
rapidsai_public_repos/cuspatial/cpp | rapidsai_public_repos/cuspatial/cpp/doxygen/modify_fences.sh | #!/bin/bash
# Copyright (c) 2022, NVIDIA CORPORATION.
# This script modifies the GitHub Markdown style code fences in our MD files
# into the PHP style that Doxygen supports, allowing us to display code
# properly both on the GitHub GUI and in published Doxygen documentation.
sed 's/```c++/```{.cpp}/g' "$@"
| 0 |
rapidsai_public_repos/cuspatial/cpp | rapidsai_public_repos/cuspatial/cpp/doxygen/main_page.md | libcuspatial is a GPU-accelerated C++ library for spatial data analysis including distance and
trajectory computations, spatial data indexing and spatial join operations. libcuspatial is
the high-performance backend for the cuSpatial Python library.
libcuspatial has two interfaces. The generic header-only C++ API represents data as arrays
of structures (e.g. 2D points). The header-only API uses iterators for input and output, and is
similar in style to the C++ Standard Template Library (STL) and Thrust. All cuSpatial algorithms
are implemented in this API.
The libcuspatial "column-based API" is a C++ API based on data types from libcudf,
[the CUDA Dataframe library C++ API](https://docs.rapids.ai/api/libcudf/nightly/index.html). The
column-based API represents spatial data as cuDF tables of type-erased columns, and layers on top
of the header-only API.
## Useful Links
- [cuSpatial Github Repository](https://github.com/rapidsai/cuspatial)
- [cuSpatial C++ Developer Guide](DEVELOPER_GUIDE.html)
- [cuSpatial Python API Documentation](https://docs.rapids.ai/api/cuspatial/stable/)
- [cuSpatial Python Developer Guide](https://docs.rapids.ai/api/cuspatial/stable/developer_guide/index.html)]
- [RAPIDS Home Page](https://rapids.ai)
| 0 |
rapidsai_public_repos/cuspatial/cpp | rapidsai_public_repos/cuspatial/cpp/doxygen/Doxyfile | # Doxyfile 1.8.18
# This file describes the settings to be used by the documentation system
# doxygen (www.doxygen.org) for a project.
#
# All text after a double hash (##) is considered a comment and is placed in
# front of the TAG it is preceding.
#
# All text after a single hash (#) is considered a comment and will be ignored.
# The format is:
# TAG = value [value, ...]
# For lists, items can also be appended using:
# TAG += value [value, ...]
# Values that contain spaces should be placed between quotes (\" \").
#---------------------------------------------------------------------------
# Project related configuration options
#---------------------------------------------------------------------------
# This tag specifies the encoding used for all characters in the configuration
# file that follow. The default is UTF-8 which is also the encoding used for all
# text before the first occurrence of this tag. Doxygen uses libiconv (or the
# iconv built into libc) for the transcoding. See
# https://www.gnu.org/software/libiconv/ for the list of possible encodings.
# The default value is: UTF-8.
DOXYFILE_ENCODING = UTF-8
# The PROJECT_NAME tag is a single word (or a sequence of words surrounded by
# double-quotes, unless you are using Doxywizard) that should identify the
# project for which the documentation is generated. This name is used in the
# title of most generated pages and in a few other places.
# The default value is: My Project.
PROJECT_NAME = "libcuspatial"
# The PROJECT_NUMBER tag can be used to enter a project or revision number. This
# could be handy for archiving the generated documentation or if some version
# control system is used.
PROJECT_NUMBER = 23.12.00
# Using the PROJECT_BRIEF tag one can provide an optional one line description
# for a project that appears at the top of each page and should give viewer a
# quick idea about the purpose of the project. Keep the description short.
PROJECT_BRIEF =
# With the PROJECT_LOGO tag one can specify a logo or an icon that is included
# in the documentation. The maximum height of the logo should not exceed 55
# pixels and the maximum width should not exceed 200 pixels. Doxygen will copy
# the logo to the output directory.
PROJECT_LOGO =
# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) path
# into which the generated documentation will be written. If a relative path is
# entered, it will be relative to the location where doxygen was started. If
# left blank the current directory will be used.
OUTPUT_DIRECTORY =
# If the CREATE_SUBDIRS tag is set to YES then doxygen will create 4096 sub-
# directories (in 2 levels) under the output directory of each output format and
# will distribute the generated files over these directories. Enabling this
# option can be useful when feeding doxygen a huge amount of source files, where
# putting all generated files in the same directory would otherwise causes
# performance problems for the file system.
# The default value is: NO.
CREATE_SUBDIRS = NO
# If the ALLOW_UNICODE_NAMES tag is set to YES, doxygen will allow non-ASCII
# characters to appear in the names of generated files. If set to NO, non-ASCII
# characters will be escaped, for example _xE3_x81_x84 will be used for Unicode
# U+3044.
# The default value is: NO.
ALLOW_UNICODE_NAMES = NO
# The OUTPUT_LANGUAGE tag is used to specify the language in which all
# documentation generated by doxygen is written. Doxygen will use this
# information to generate all constant output in the proper language.
# Possible values are: Afrikaans, Arabic, Armenian, Brazilian, Catalan, Chinese,
# Chinese-Traditional, Croatian, Czech, Danish, Dutch, English (United States),
# Esperanto, Farsi (Persian), Finnish, French, German, Greek, Hungarian,
# Indonesian, Italian, Japanese, Japanese-en (Japanese with English messages),
# Korean, Korean-en (Korean with English messages), Latvian, Lithuanian,
# Macedonian, Norwegian, Persian (Farsi), Polish, Portuguese, Romanian, Russian,
# Serbian, Serbian-Cyrillic, Slovak, Slovene, Spanish, Swedish, Turkish,
# Ukrainian and Vietnamese.
# The default value is: English.
OUTPUT_LANGUAGE = English
# The OUTPUT_TEXT_DIRECTION tag is used to specify the direction in which all
# documentation generated by doxygen is written. Doxygen will use this
# information to generate all generated output in the proper direction.
# Possible values are: None, LTR, RTL and Context.
# The default value is: None.
OUTPUT_TEXT_DIRECTION = None
# If the BRIEF_MEMBER_DESC tag is set to YES, doxygen will include brief member
# descriptions after the members that are listed in the file and class
# documentation (similar to Javadoc). Set to NO to disable this.
# The default value is: YES.
BRIEF_MEMBER_DESC = YES
# If the REPEAT_BRIEF tag is set to YES, doxygen will prepend the brief
# description of a member or function before the detailed description
#
# Note: If both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the
# brief descriptions will be completely suppressed.
# The default value is: YES.
REPEAT_BRIEF = YES
# This tag implements a quasi-intelligent brief description abbreviator that is
# used to form the text in various listings. Each string in this list, if found
# as the leading text of the brief description, will be stripped from the text
# and the result, after processing the whole list, is used as the annotated
# text. Otherwise, the brief description is used as-is. If left blank, the
# following values are used ($name is automatically replaced with the name of
# the entity):The $name class, The $name widget, The $name file, is, provides,
# specifies, contains, represents, a, an and the.
ABBREVIATE_BRIEF =
# If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then
# doxygen will generate a detailed section even if there is only a brief
# description.
# The default value is: NO.
ALWAYS_DETAILED_SEC = NO
# If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all
# inherited members of a class in the documentation of that class as if those
# members were ordinary class members. Constructors, destructors and assignment
# operators of the base classes will not be shown.
# The default value is: NO.
INLINE_INHERITED_MEMB = NO
# If the FULL_PATH_NAMES tag is set to YES, doxygen will prepend the full path
# before files name in the file list and in the header files. If set to NO the
# shortest path that makes the file name unique will be used
# The default value is: YES.
FULL_PATH_NAMES = NO
# The STRIP_FROM_PATH tag can be used to strip a user-defined part of the path.
# Stripping is only done if one of the specified strings matches the left-hand
# part of the path. The tag can be used to show relative paths in the file list.
# If left blank the directory from which doxygen is run is used as the path to
# strip.
#
# Note that you can specify absolute paths here, but also relative paths, which
# will be relative from the directory where doxygen is started.
# This tag requires that the tag FULL_PATH_NAMES is set to YES.
STRIP_FROM_PATH =
# The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of the
# path mentioned in the documentation of a class, which tells the reader which
# header file to include in order to use a class. If left blank only the name of
# the header file containing the class definition is used. Otherwise one should
# specify the list of include paths that are normally passed to the compiler
# using the -I flag.
STRIP_FROM_INC_PATH =
# If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter (but
# less readable) file names. This can be useful is your file systems doesn't
# support long names like on DOS, Mac, or CD-ROM.
# The default value is: NO.
SHORT_NAMES = NO
# If the JAVADOC_AUTOBRIEF tag is set to YES then doxygen will interpret the
# first line (until the first dot) of a Javadoc-style comment as the brief
# description. If set to NO, the Javadoc-style will behave just like regular Qt-
# style comments (thus requiring an explicit @brief command for a brief
# description.)
# The default value is: NO.
JAVADOC_AUTOBRIEF = NO
# If the JAVADOC_BANNER tag is set to YES then doxygen will interpret a line
# such as
# /***************
# as being the beginning of a Javadoc-style comment "banner". If set to NO, the
# Javadoc-style will behave just like regular comments and it will not be
# interpreted by doxygen.
# The default value is: NO.
JAVADOC_BANNER = NO
# If the QT_AUTOBRIEF tag is set to YES then doxygen will interpret the first
# line (until the first dot) of a Qt-style comment as the brief description. If
# set to NO, the Qt-style will behave just like regular Qt-style comments (thus
# requiring an explicit \brief command for a brief description.)
# The default value is: NO.
QT_AUTOBRIEF = NO
# The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make doxygen treat a
# multi-line C++ special comment block (i.e. a block of //! or /// comments) as
# a brief description. This used to be the default behavior. The new default is
# to treat a multi-line C++ comment block as a detailed description. Set this
# tag to YES if you prefer the old behavior instead.
#
# Note that setting this tag to YES also means that rational rose comments are
# not recognized any more.
# The default value is: NO.
MULTILINE_CPP_IS_BRIEF = NO
# If the INHERIT_DOCS tag is set to YES then an undocumented member inherits the
# documentation from any documented member that it re-implements.
# The default value is: YES.
INHERIT_DOCS = YES
# If the SEPARATE_MEMBER_PAGES tag is set to YES then doxygen will produce a new
# page for each member. If set to NO, the documentation of a member will be part
# of the file/class/namespace that contains it.
# The default value is: NO.
SEPARATE_MEMBER_PAGES = NO
# The TAB_SIZE tag can be used to set the number of spaces in a tab. Doxygen
# uses this value to replace tabs by spaces in code fragments.
# Minimum value: 1, maximum value: 16, default value: 4.
TAB_SIZE = 4
# This tag can be used to specify a number of aliases that act as commands in
# the documentation. An alias has the form:
# name=value
# For example adding
# "sideeffect=@par Side Effects:\n"
# will allow you to put the command \sideeffect (or @sideeffect) in the
# documentation, which will result in a user-defined paragraph with heading
# "Side Effects:". You can put \n's in the value part of an alias to insert
# newlines (in the resulting output). You can put ^^ in the value part of an
# alias to insert a newline as if a physical newline was in the original file.
# When you need a literal { or } or , in the value part of an alias you have to
# escape them by means of a backslash (\), this can lead to conflicts with the
# commands \{ and \} for these it is advised to use the version @{ and @} or use
# a double escape (\\{ and \\})
ALIASES =
# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C sources
# only. Doxygen will then generate output that is more tailored for C. For
# instance, some of the names that are used will be different. The list of all
# members will be omitted, etc.
# The default value is: NO.
OPTIMIZE_OUTPUT_FOR_C = NO
# Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java or
# Python sources only. Doxygen will then generate output that is more tailored
# for that language. For instance, namespaces will be presented as packages,
# qualified scopes will look different, etc.
# The default value is: NO.
OPTIMIZE_OUTPUT_JAVA = NO
# Set the OPTIMIZE_FOR_FORTRAN tag to YES if your project consists of Fortran
# sources. Doxygen will then generate output that is tailored for Fortran.
# The default value is: NO.
OPTIMIZE_FOR_FORTRAN = NO
# Set the OPTIMIZE_OUTPUT_VHDL tag to YES if your project consists of VHDL
# sources. Doxygen will then generate output that is tailored for VHDL.
# The default value is: NO.
OPTIMIZE_OUTPUT_VHDL = NO
# Set the OPTIMIZE_OUTPUT_SLICE tag to YES if your project consists of Slice
# sources only. Doxygen will then generate output that is more tailored for that
# language. For instance, namespaces will be presented as modules, types will be
# separated into more groups, etc.
# The default value is: NO.
OPTIMIZE_OUTPUT_SLICE = NO
# Doxygen selects the parser to use depending on the extension of the files it
# parses. With this tag you can assign which parser to use for a given
# extension. Doxygen has a built-in mapping, but you can override or extend it
# using this tag. The format is ext=language, where ext is a file extension, and
# language is one of the parsers supported by doxygen: IDL, Java, JavaScript,
# Csharp (C#), C, C++, D, PHP, md (Markdown), Objective-C, Python, Slice, VHDL,
# Fortran (fixed format Fortran: FortranFixed, free formatted Fortran:
# FortranFree, unknown formatted Fortran: Fortran. In the later case the parser
# tries to guess whether the code is fixed or free formatted code, this is the
# default for Fortran type files). For instance to make doxygen treat .inc files
# as Fortran files (default is PHP), and .f files as C (default is Fortran),
# use: inc=Fortran f=C.
#
# Note: For files without extension you can use no_extension as a placeholder.
#
# Note that for custom extensions you also need to set FILE_PATTERNS otherwise
# the files are not read by doxygen.
EXTENSION_MAPPING = cu=C++ \
cuh=C++
# If the MARKDOWN_SUPPORT tag is enabled then doxygen pre-processes all comments
# according to the Markdown format, which allows for more readable
# documentation. See https://daringfireball.net/projects/markdown/ for details.
# The output of markdown processing is further processed by doxygen, so you can
# mix doxygen, HTML, and XML commands with Markdown formatting. Disable only in
# case of backward compatibilities issues.
# The default value is: YES.
MARKDOWN_SUPPORT = YES
# When the TOC_INCLUDE_HEADINGS tag is set to a non-zero value, all headings up
# to that level are automatically included in the table of contents, even if
# they do not have an id attribute.
# Note: This feature currently applies only to Markdown headings.
# Minimum value: 0, maximum value: 99, default value: 5.
# This tag requires that the tag MARKDOWN_SUPPORT is set to YES.
TOC_INCLUDE_HEADINGS = 5
# When enabled doxygen tries to link words that correspond to documented
# classes, or namespaces to their corresponding documentation. Such a link can
# be prevented in individual cases by putting a % sign in front of the word or
# globally by setting AUTOLINK_SUPPORT to NO.
# The default value is: YES.
AUTOLINK_SUPPORT = YES
# If you use STL classes (i.e. std::string, std::vector, etc.) but do not want
# to include (a tag file for) the STL sources as input, then you should set this
# tag to YES in order to let doxygen match functions declarations and
# definitions whose arguments contain STL classes (e.g. func(std::string);
# versus func(std::string) {}). This also make the inheritance and collaboration
# diagrams that involve STL classes more complete and accurate.
# The default value is: NO.
BUILTIN_STL_SUPPORT = NO
# If you use Microsoft's C++/CLI language, you should set this option to YES to
# enable parsing support.
# The default value is: NO.
CPP_CLI_SUPPORT = NO
# Set the SIP_SUPPORT tag to YES if your project consists of sip (see:
# https://www.riverbankcomputing.com/software/sip/intro) sources only. Doxygen
# will parse them like normal C++ but will assume all classes use public instead
# of private inheritance when no explicit protection keyword is present.
# The default value is: NO.
SIP_SUPPORT = NO
# For Microsoft's IDL there are propget and propput attributes to indicate
# getter and setter methods for a property. Setting this option to YES will make
# doxygen to replace the get and set methods by a property in the documentation.
# This will only work if the methods are indeed getting or setting a simple
# type. If this is not the case, or you want to show the methods anyway, you
# should set this option to NO.
# The default value is: YES.
IDL_PROPERTY_SUPPORT = YES
# If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC
# tag is set to YES then doxygen will reuse the documentation of the first
# member in the group (if any) for the other members of the group. By default
# all members of a group must be documented explicitly.
# The default value is: NO.
DISTRIBUTE_GROUP_DOC = NO
# If one adds a struct or class to a group and this option is enabled, then also
# any nested class or struct is added to the same group. By default this option
# is disabled and one has to add nested compounds explicitly via \ingroup.
# The default value is: NO.
GROUP_NESTED_COMPOUNDS = NO
# Set the SUBGROUPING tag to YES to allow class member groups of the same type
# (for instance a group of public functions) to be put as a subgroup of that
# type (e.g. under the Public Functions section). Set it to NO to prevent
# subgrouping. Alternatively, this can be done per class using the
# \nosubgrouping command.
# The default value is: YES.
SUBGROUPING = YES
# When the INLINE_GROUPED_CLASSES tag is set to YES, classes, structs and unions
# are shown inside the group in which they are included (e.g. using \ingroup)
# instead of on a separate page (for HTML and Man pages) or section (for LaTeX
# and RTF).
#
# Note that this feature does not work in combination with
# SEPARATE_MEMBER_PAGES.
# The default value is: NO.
INLINE_GROUPED_CLASSES = NO
# When the INLINE_SIMPLE_STRUCTS tag is set to YES, structs, classes, and unions
# with only public data fields or simple typedef fields will be shown inline in
# the documentation of the scope in which they are defined (i.e. file,
# namespace, or group documentation), provided this scope is documented. If set
# to NO, structs, classes, and unions are shown on a separate page (for HTML and
# Man pages) or section (for LaTeX and RTF).
# The default value is: NO.
INLINE_SIMPLE_STRUCTS = NO
# When TYPEDEF_HIDES_STRUCT tag is enabled, a typedef of a struct, union, or
# enum is documented as struct, union, or enum with the name of the typedef. So
# typedef struct TypeS {} TypeT, will appear in the documentation as a struct
# with name TypeT. When disabled the typedef will appear as a member of a file,
# namespace, or class. And the struct will be named TypeS. This can typically be
# useful for C code in case the coding convention dictates that all compound
# types are typedef'ed and only the typedef is referenced, never the tag name.
# The default value is: NO.
TYPEDEF_HIDES_STRUCT = NO
# The size of the symbol lookup cache can be set using LOOKUP_CACHE_SIZE. This
# cache is used to resolve symbols given their name and scope. Since this can be
# an expensive process and often the same symbol appears multiple times in the
# code, doxygen keeps a cache of pre-resolved symbols. If the cache is too small
# doxygen will become slower. If the cache is too large, memory is wasted. The
# cache size is given by this formula: 2^(16+LOOKUP_CACHE_SIZE). The valid range
# is 0..9, the default is 0, corresponding to a cache size of 2^16=65536
# symbols. At the end of a run doxygen will report the cache usage and suggest
# the optimal cache size from a speed point of view.
# Minimum value: 0, maximum value: 9, default value: 0.
LOOKUP_CACHE_SIZE = 0
#---------------------------------------------------------------------------
# Build related configuration options
#---------------------------------------------------------------------------
# If the EXTRACT_ALL tag is set to YES, doxygen will assume all entities in
# documentation are documented, even if no documentation was available. Private
# class members and static file members will be hidden unless the
# EXTRACT_PRIVATE respectively EXTRACT_STATIC tags are set to YES.
# Note: This will also disable the warnings about undocumented members that are
# normally produced when WARNINGS is set to YES.
# The default value is: NO.
EXTRACT_ALL = NO
# If the EXTRACT_PRIVATE tag is set to YES, all private members of a class will
# be included in the documentation.
# The default value is: NO.
EXTRACT_PRIVATE = NO
# If the EXTRACT_PRIV_VIRTUAL tag is set to YES, documented private virtual
# methods of a class will be included in the documentation.
# The default value is: NO.
EXTRACT_PRIV_VIRTUAL = NO
# If the EXTRACT_PACKAGE tag is set to YES, all members with package or internal
# scope will be included in the documentation.
# The default value is: NO.
EXTRACT_PACKAGE = NO
# If the EXTRACT_STATIC tag is set to YES, all static members of a file will be
# included in the documentation.
# The default value is: NO.
EXTRACT_STATIC = NO
# If the EXTRACT_LOCAL_CLASSES tag is set to YES, classes (and structs) defined
# locally in source files will be included in the documentation. If set to NO,
# only classes defined in header files are included. Does not have any effect
# for Java sources.
# The default value is: YES.
EXTRACT_LOCAL_CLASSES = YES
# This flag is only useful for Objective-C code. If set to YES, local methods,
# which are defined in the implementation section but not in the interface are
# included in the documentation. If set to NO, only methods in the interface are
# included.
# The default value is: NO.
EXTRACT_LOCAL_METHODS = NO
# If this flag is set to YES, the members of anonymous namespaces will be
# extracted and appear in the documentation as a namespace called
# 'anonymous_namespace{file}', where file will be replaced with the base name of
# the file that contains the anonymous namespace. By default anonymous namespace
# are hidden.
# The default value is: NO.
EXTRACT_ANON_NSPACES = NO
# If the HIDE_UNDOC_MEMBERS tag is set to YES, doxygen will hide all
# undocumented members inside documented classes or files. If set to NO these
# members will be included in the various overviews, but no documentation
# section is generated. This option has no effect if EXTRACT_ALL is enabled.
# The default value is: NO.
HIDE_UNDOC_MEMBERS = NO
# If the HIDE_UNDOC_CLASSES tag is set to YES, doxygen will hide all
# undocumented classes that are normally visible in the class hierarchy. If set
# to NO, these classes will be included in the various overviews. This option
# has no effect if EXTRACT_ALL is enabled.
# The default value is: NO.
HIDE_UNDOC_CLASSES = NO
# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, doxygen will hide all friend
# declarations. If set to NO, these declarations will be included in the
# documentation.
# The default value is: NO.
HIDE_FRIEND_COMPOUNDS = NO
# If the HIDE_IN_BODY_DOCS tag is set to YES, doxygen will hide any
# documentation blocks found inside the body of a function. If set to NO, these
# blocks will be appended to the function's detailed documentation block.
# The default value is: NO.
HIDE_IN_BODY_DOCS = NO
# The INTERNAL_DOCS tag determines if documentation that is typed after a
# \internal command is included. If the tag is set to NO then the documentation
# will be excluded. Set it to YES to include the internal documentation.
# The default value is: NO.
INTERNAL_DOCS = NO
# If the CASE_SENSE_NAMES tag is set to NO then doxygen will only generate file
# names in lower-case letters. If set to YES, upper-case letters are also
# allowed. This is useful if you have classes or files whose names only differ
# in case and if your file system supports case sensitive file names. Windows
# (including Cygwin) ands Mac users are advised to set this option to NO.
# The default value is: system dependent.
CASE_SENSE_NAMES = YES
# If the HIDE_SCOPE_NAMES tag is set to NO then doxygen will show members with
# their full class and namespace scopes in the documentation. If set to YES, the
# scope will be hidden.
# The default value is: NO.
HIDE_SCOPE_NAMES = NO
# If the HIDE_COMPOUND_REFERENCE tag is set to NO (default) then doxygen will
# append additional text to a page's title, such as Class Reference. If set to
# YES the compound reference will be hidden.
# The default value is: NO.
HIDE_COMPOUND_REFERENCE= NO
# If the SHOW_INCLUDE_FILES tag is set to YES then doxygen will put a list of
# the files that are included by a file in the documentation of that file.
# The default value is: YES.
SHOW_INCLUDE_FILES = YES
# If the SHOW_GROUPED_MEMB_INC tag is set to YES then Doxygen will add for each
# grouped member an include statement to the documentation, telling the reader
# which file to include in order to use the member.
# The default value is: NO.
SHOW_GROUPED_MEMB_INC = NO
# If the FORCE_LOCAL_INCLUDES tag is set to YES then doxygen will list include
# files with double quotes in the documentation rather than with sharp brackets.
# The default value is: NO.
FORCE_LOCAL_INCLUDES = NO
# If the INLINE_INFO tag is set to YES then a tag [inline] is inserted in the
# documentation for inline members.
# The default value is: YES.
INLINE_INFO = YES
# If the SORT_MEMBER_DOCS tag is set to YES then doxygen will sort the
# (detailed) documentation of file and class members alphabetically by member
# name. If set to NO, the members will appear in declaration order.
# The default value is: YES.
SORT_MEMBER_DOCS = YES
# If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the brief
# descriptions of file, namespace and class members alphabetically by member
# name. If set to NO, the members will appear in declaration order. Note that
# this will also influence the order of the classes in the class list.
# The default value is: NO.
SORT_BRIEF_DOCS = NO
# If the SORT_MEMBERS_CTORS_1ST tag is set to YES then doxygen will sort the
# (brief and detailed) documentation of class members so that constructors and
# destructors are listed first. If set to NO the constructors will appear in the
# respective orders defined by SORT_BRIEF_DOCS and SORT_MEMBER_DOCS.
# Note: If SORT_BRIEF_DOCS is set to NO this option is ignored for sorting brief
# member documentation.
# Note: If SORT_MEMBER_DOCS is set to NO this option is ignored for sorting
# detailed member documentation.
# The default value is: NO.
SORT_MEMBERS_CTORS_1ST = NO
# If the SORT_GROUP_NAMES tag is set to YES then doxygen will sort the hierarchy
# of group names into alphabetical order. If set to NO the group names will
# appear in their defined order.
# The default value is: NO.
SORT_GROUP_NAMES = NO
# If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be sorted by
# fully-qualified names, including namespaces. If set to NO, the class list will
# be sorted only by class name, not including the namespace part.
# Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES.
# Note: This option applies only to the class list, not to the alphabetical
# list.
# The default value is: NO.
SORT_BY_SCOPE_NAME = NO
# If the STRICT_PROTO_MATCHING option is enabled and doxygen fails to do proper
# type resolution of all parameters of a function it will reject a match between
# the prototype and the implementation of a member function even if there is
# only one candidate or it is obvious which candidate to choose by doing a
# simple string match. By disabling STRICT_PROTO_MATCHING doxygen will still
# accept a match between prototype and implementation in such cases.
# The default value is: NO.
STRICT_PROTO_MATCHING = NO
# The GENERATE_TODOLIST tag can be used to enable (YES) or disable (NO) the todo
# list. This list is created by putting \todo commands in the documentation.
# The default value is: YES.
GENERATE_TODOLIST = YES
# The GENERATE_TESTLIST tag can be used to enable (YES) or disable (NO) the test
# list. This list is created by putting \test commands in the documentation.
# The default value is: YES.
GENERATE_TESTLIST = YES
# The GENERATE_BUGLIST tag can be used to enable (YES) or disable (NO) the bug
# list. This list is created by putting \bug commands in the documentation.
# The default value is: YES.
GENERATE_BUGLIST = YES
# The GENERATE_DEPRECATEDLIST tag can be used to enable (YES) or disable (NO)
# the deprecated list. This list is created by putting \deprecated commands in
# the documentation.
# The default value is: YES.
GENERATE_DEPRECATEDLIST= YES
# The ENABLED_SECTIONS tag can be used to enable conditional documentation
# sections, marked by \if <section_label> ... \endif and \cond <section_label>
# ... \endcond blocks.
ENABLED_SECTIONS =
# The MAX_INITIALIZER_LINES tag determines the maximum number of lines that the
# initial value of a variable or macro / define can have for it to appear in the
# documentation. If the initializer consists of more lines than specified here
# it will be hidden. Use a value of 0 to hide initializers completely. The
# appearance of the value of individual variables and macros / defines can be
# controlled using \showinitializer or \hideinitializer command in the
# documentation regardless of this setting.
# Minimum value: 0, maximum value: 10000, default value: 30.
MAX_INITIALIZER_LINES = 30
# Set the SHOW_USED_FILES tag to NO to disable the list of files generated at
# the bottom of the documentation of classes and structs. If set to YES, the
# list will mention the files that were used to generate the documentation.
# The default value is: YES.
SHOW_USED_FILES = YES
# Set the SHOW_FILES tag to NO to disable the generation of the Files page. This
# will remove the Files entry from the Quick Index and from the Folder Tree View
# (if specified).
# The default value is: YES.
SHOW_FILES = YES
# Set the SHOW_NAMESPACES tag to NO to disable the generation of the Namespaces
# page. This will remove the Namespaces entry from the Quick Index and from the
# Folder Tree View (if specified).
# The default value is: YES.
SHOW_NAMESPACES = YES
# The FILE_VERSION_FILTER tag can be used to specify a program or script that
# doxygen should invoke to get the current version for each file (typically from
# the version control system). Doxygen will invoke the program by executing (via
# popen()) the command command input-file, where command is the value of the
# FILE_VERSION_FILTER tag, and input-file is the name of an input file provided
# by doxygen. Whatever the program writes to standard output is used as the file
# version. For an example see the documentation.
FILE_VERSION_FILTER =
# The LAYOUT_FILE tag can be used to specify a layout file which will be parsed
# by doxygen. The layout file controls the global structure of the generated
# output files in an output format independent way. To create the layout file
# that represents doxygen's defaults, run doxygen with the -l option. You can
# optionally specify a file name after the option, if omitted DoxygenLayout.xml
# will be used as the name of the layout file.
#
# Note that if you run doxygen from a directory containing a file called
# DoxygenLayout.xml, doxygen will parse it automatically even if the LAYOUT_FILE
# tag is left empty.
LAYOUT_FILE = DoxygenLayout.xml
# The CITE_BIB_FILES tag can be used to specify one or more bib files containing
# the reference definitions. This must be a list of .bib files. The .bib
# extension is automatically appended if omitted. This requires the bibtex tool
# to be installed. See also https://en.wikipedia.org/wiki/BibTeX for more info.
# For LaTeX the style of the bibliography can be controlled using
# LATEX_BIB_STYLE. To use this feature you need bibtex and perl available in the
# search path. See also \cite for info how to create references.
CITE_BIB_FILES =
#---------------------------------------------------------------------------
# Configuration options related to warning and progress messages
#---------------------------------------------------------------------------
# The QUIET tag can be used to turn on/off the messages that are generated to
# standard output by doxygen. If QUIET is set to YES this implies that the
# messages are off.
# The default value is: NO.
QUIET = NO
# The WARNINGS tag can be used to turn on/off the warning messages that are
# generated to standard error (stderr) by doxygen. If WARNINGS is set to YES
# this implies that the warnings are on.
#
# Tip: Turn warnings on while writing the documentation.
# The default value is: YES.
WARNINGS = YES
# If the WARN_IF_UNDOCUMENTED tag is set to YES then doxygen will generate
# warnings for undocumented members. If EXTRACT_ALL is set to YES then this flag
# will automatically be disabled.
# The default value is: YES.
WARN_IF_UNDOCUMENTED = YES
# If the WARN_IF_DOC_ERROR tag is set to YES, doxygen will generate warnings for
# potential errors in the documentation, such as not documenting some parameters
# in a documented function, or documenting parameters that don't exist or using
# markup commands wrongly.
# The default value is: YES.
WARN_IF_DOC_ERROR = YES
# This WARN_NO_PARAMDOC option can be enabled to get warnings for functions that
# are documented, but have no documentation for their parameters or return
# value. If set to NO, doxygen will only warn about wrong or incomplete
# parameter documentation, but not about the absence of documentation. If
# EXTRACT_ALL is set to YES then this flag will automatically be disabled.
# The default value is: NO.
WARN_NO_PARAMDOC = YES
# If the WARN_AS_ERROR tag is set to YES then doxygen will immediately stop when
# a warning is encountered.
# The default value is: NO.
WARN_AS_ERROR = NO
# The WARN_FORMAT tag determines the format of the warning messages that doxygen
# can produce. The string should contain the $file, $line, and $text tags, which
# will be replaced by the file and line number from which the warning originated
# and the warning text. Optionally the format may contain $version, which will
# be replaced by the version of the file (if it could be obtained via
# FILE_VERSION_FILTER)
# The default value is: $file:$line: $text.
WARN_FORMAT = "$file:$line: $text"
# The WARN_LOGFILE tag can be used to specify a file to which warning and error
# messages should be written. If left blank the output is written to standard
# error (stderr).
WARN_LOGFILE =
#---------------------------------------------------------------------------
# Configuration options related to the input files
#---------------------------------------------------------------------------
# The INPUT tag is used to specify the files and/or directories that contain
# documented source files. You may enter file names like myfile.cpp or
# directories like /usr/src/myproject. Separate the files or directories with
# spaces. See also FILE_PATTERNS and EXTENSION_MAPPING
# Note: If this tag is empty the current directory is searched.
INPUT = main_page.md \
developer_guide/BENCHMARKING.md \
developer_guide/DOCUMENTATION.md \
developer_guide/DEVELOPER_GUIDE.md \
developer_guide/TESTING.md \
developer_guide/HEADER_ONLY_API_GUIDE.md \
../include
# This tag can be used to specify the character encoding of the source files
# that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses
# libiconv (or the iconv built into libc) for the transcoding. See the libiconv
# documentation (see: https://www.gnu.org/software/libiconv/) for the list of
# possible encodings.
# The default value is: UTF-8.
INPUT_ENCODING = UTF-8
# If the value of the INPUT tag contains directories, you can use the
# FILE_PATTERNS tag to specify one or more wildcard patterns (like *.cpp and
# *.h) to filter out the source-files in the directories.
#
# Note that for custom extensions or not directly supported extensions you also
# need to set EXTENSION_MAPPING for the extension otherwise the files are not
# read by doxygen.
#
# If left blank the following patterns are tested:*.c, *.cc, *.cxx, *.cpp,
# *.c++, *.java, *.ii, *.ixx, *.ipp, *.i++, *.inl, *.idl, *.ddl, *.odl, *.h,
# *.hh, *.hxx, *.hpp, *.h++, *.cs, *.d, *.php, *.php4, *.php5, *.phtml, *.inc,
# *.m, *.markdown, *.md, *.mm, *.dox (to be provided as doxygen C comment),
# *.doc (to be provided as doxygen C comment), *.txt (to be provided as doxygen
# C comment), *.py, *.pyw, *.f90, *.f95, *.f03, *.f08, *.f18, *.f, *.for, *.vhd,
# *.vhdl, *.ucf, *.qsf and *.ice.
FILE_PATTERNS = *.cpp \
*.hpp \
*.h \
*.c \
*.cu \
*.cuh
# The RECURSIVE tag can be used to specify whether or not subdirectories should
# be searched for input files as well.
# The default value is: NO.
RECURSIVE = YES
# The EXCLUDE tag can be used to specify files and/or directories that should be
# excluded from the INPUT source files. This way you can easily exclude a
# subdirectory from a directory tree whose root is specified with the INPUT tag.
#
# Note that relative paths are relative to the directory from which doxygen is
# run.
EXCLUDE =
# The EXCLUDE_SYMLINKS tag can be used to select whether or not files or
# directories that are symbolic links (a Unix file system feature) are excluded
# from the input.
# The default value is: NO.
EXCLUDE_SYMLINKS = NO
# If the value of the INPUT tag contains directories, you can use the
# EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude
# certain files from those directories.
#
# Note that the wildcards are matched against the file with absolute path, so to
# exclude all test directories for example use the pattern */test/*
EXCLUDE_PATTERNS = */detail/* \
*/nvtx/*
# The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names
# (namespaces, classes, functions, etc.) that should be excluded from the
# output. The symbol name can be a fully qualified name, a word, or if the
# wildcard * is used, a substring. Examples: ANamespace, AClass,
# AClass::ANamespace, ANamespace::*Test
#
# Note that the wildcards are matched against the file with absolute path, so to
# exclude all test directories use the pattern */test/*
EXCLUDE_SYMBOLS = org::apache
# The EXAMPLE_PATH tag can be used to specify one or more files or directories
# that contain example code fragments that are included (see the \include
# command).
EXAMPLE_PATH =
# If the value of the EXAMPLE_PATH tag contains directories, you can use the
# EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp and
# *.h) to filter out the source-files in the directories. If left blank all
# files are included.
EXAMPLE_PATTERNS =
# If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be
# searched for input files to be used with the \include or \dontinclude commands
# irrespective of the value of the RECURSIVE tag.
# The default value is: NO.
EXAMPLE_RECURSIVE = NO
# The IMAGE_PATH tag can be used to specify one or more files or directories
# that contain images that are to be included in the documentation (see the
# \image command).
IMAGE_PATH =
# The INPUT_FILTER tag can be used to specify a program that doxygen should
# invoke to filter for each input file. Doxygen will invoke the filter program
# by executing (via popen()) the command:
#
# <filter> <input-file>
#
# where <filter> is the value of the INPUT_FILTER tag, and <input-file> is the
# name of an input file. Doxygen will then use the output that the filter
# program writes to standard output. If FILTER_PATTERNS is specified, this tag
# will be ignored.
#
# Note that the filter must not add or remove lines; it is applied before the
# code is scanned, but not when the output code is generated. If lines are added
# or removed, the anchors will not be placed correctly.
#
# Note that for custom extensions or not directly supported extensions you also
# need to set EXTENSION_MAPPING for the extension otherwise the files are not
# properly processed by doxygen.
INPUT_FILTER =
# The FILTER_PATTERNS tag can be used to specify filters on a per file pattern
# basis. Doxygen will compare the file name with each pattern and apply the
# filter if there is a match. The filters are a list of the form: pattern=filter
# (like *.cpp=my_cpp_filter). See INPUT_FILTER for further information on how
# filters are used. If the FILTER_PATTERNS tag is empty or if none of the
# patterns match the file name, INPUT_FILTER is applied.
#
# Note that for custom extensions or not directly supported extensions you also
# need to set EXTENSION_MAPPING for the extension otherwise the files are not
# properly processed by doxygen.
FILTER_PATTERNS = *.md=./modify_fences.sh
# If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using
# INPUT_FILTER) will also be used to filter the input files that are used for
# producing the source files to browse (i.e. when SOURCE_BROWSER is set to YES).
# The default value is: NO.
FILTER_SOURCE_FILES = NO
# The FILTER_SOURCE_PATTERNS tag can be used to specify source filters per file
# pattern. A pattern will override the setting for FILTER_PATTERN (if any) and
# it is also possible to disable source filtering for a specific pattern using
# *.ext= (so without naming a filter).
# This tag requires that the tag FILTER_SOURCE_FILES is set to YES.
FILTER_SOURCE_PATTERNS =
# If the USE_MDFILE_AS_MAINPAGE tag refers to the name of a markdown file that
# is part of the input, its contents will be placed on the main page
# (index.html). This can be useful if you have a project on for instance GitHub
# and want to reuse the introduction page also for the doxygen output.
USE_MDFILE_AS_MAINPAGE = main_page.md
#---------------------------------------------------------------------------
# Configuration options related to source browsing
#---------------------------------------------------------------------------
# If the SOURCE_BROWSER tag is set to YES then a list of source files will be
# generated. Documented entities will be cross-referenced with these sources.
#
# Note: To get rid of all source code in the generated output, make sure that
# also VERBATIM_HEADERS is set to NO.
# The default value is: NO.
SOURCE_BROWSER = YES
# Setting the INLINE_SOURCES tag to YES will include the body of functions,
# classes and enums directly into the documentation.
# The default value is: NO.
INLINE_SOURCES = NO
# Setting the STRIP_CODE_COMMENTS tag to YES will instruct doxygen to hide any
# special comment blocks from generated source code fragments. Normal C, C++ and
# Fortran comments will always remain visible.
# The default value is: YES.
STRIP_CODE_COMMENTS = YES
# If the REFERENCED_BY_RELATION tag is set to YES then for each documented
# entity all documented functions referencing it will be listed.
# The default value is: NO.
REFERENCED_BY_RELATION = NO
# If the REFERENCES_RELATION tag is set to YES then for each documented function
# all documented entities called/used by that function will be listed.
# The default value is: NO.
REFERENCES_RELATION = NO
# If the REFERENCES_LINK_SOURCE tag is set to YES and SOURCE_BROWSER tag is set
# to YES then the hyperlinks from functions in REFERENCES_RELATION and
# REFERENCED_BY_RELATION lists will link to the source code. Otherwise they will
# link to the documentation.
# The default value is: YES.
REFERENCES_LINK_SOURCE = YES
# If SOURCE_TOOLTIPS is enabled (the default) then hovering a hyperlink in the
# source code will show a tooltip with additional information such as prototype,
# brief description and links to the definition and documentation. Since this
# will make the HTML file larger and loading of large files a bit slower, you
# can opt to disable this feature.
# The default value is: YES.
# This tag requires that the tag SOURCE_BROWSER is set to YES.
SOURCE_TOOLTIPS = YES
# If the USE_HTAGS tag is set to YES then the references to source code will
# point to the HTML generated by the htags(1) tool instead of doxygen built-in
# source browser. The htags tool is part of GNU's global source tagging system
# (see https://www.gnu.org/software/global/global.html). You will need version
# 4.8.6 or higher.
#
# To use it do the following:
# - Install the latest version of global
# - Enable SOURCE_BROWSER and USE_HTAGS in the configuration file
# - Make sure the INPUT points to the root of the source tree
# - Run doxygen as normal
#
# Doxygen will invoke htags (and that will in turn invoke gtags), so these
# tools must be available from the command line (i.e. in the search path).
#
# The result: instead of the source browser generated by doxygen, the links to
# source code will now point to the output of htags.
# The default value is: NO.
# This tag requires that the tag SOURCE_BROWSER is set to YES.
USE_HTAGS = NO
# If the VERBATIM_HEADERS tag is set the YES then doxygen will generate a
# verbatim copy of the header file for each class for which an include is
# specified. Set to NO to disable this.
# See also: Section \class.
# The default value is: YES.
VERBATIM_HEADERS = YES
#---------------------------------------------------------------------------
# Configuration options related to the alphabetical class index
#---------------------------------------------------------------------------
# If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index of all
# compounds will be generated. Enable this if the project contains a lot of
# classes, structs, unions or interfaces.
# The default value is: YES.
ALPHABETICAL_INDEX = YES
# The COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns in
# which the alphabetical index list will be split.
# Minimum value: 1, maximum value: 20, default value: 5.
# This tag requires that the tag ALPHABETICAL_INDEX is set to YES.
COLS_IN_ALPHA_INDEX = 5
# In case all classes in a project start with a common prefix, all classes will
# be put under the same header in the alphabetical index. The IGNORE_PREFIX tag
# can be used to specify a prefix (or a list of prefixes) that should be ignored
# while generating the index headers.
# This tag requires that the tag ALPHABETICAL_INDEX is set to YES.
IGNORE_PREFIX =
#---------------------------------------------------------------------------
# Configuration options related to the HTML output
#---------------------------------------------------------------------------
# If the GENERATE_HTML tag is set to YES, doxygen will generate HTML output
# The default value is: YES.
GENERATE_HTML = YES
# The HTML_OUTPUT tag is used to specify where the HTML docs will be put. If a
# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of
# it.
# The default directory is: html.
# This tag requires that the tag GENERATE_HTML is set to YES.
HTML_OUTPUT = html
# The HTML_FILE_EXTENSION tag can be used to specify the file extension for each
# generated HTML page (for example: .htm, .php, .asp).
# The default value is: .html.
# This tag requires that the tag GENERATE_HTML is set to YES.
HTML_FILE_EXTENSION = .html
# The HTML_HEADER tag can be used to specify a user-defined HTML header file for
# each generated HTML page. If the tag is left blank doxygen will generate a
# standard header.
#
# To get valid HTML the header file that includes any scripts and style sheets
# that doxygen needs, which is dependent on the configuration options used (e.g.
# the setting GENERATE_TREEVIEW). It is highly recommended to start with a
# default header using
# doxygen -w html new_header.html new_footer.html new_stylesheet.css
# YourConfigFile
# and then modify the file new_header.html. See also section "Doxygen usage"
# for information on how to generate the default header that doxygen normally
# uses.
# Note: The header is subject to change so you typically have to regenerate the
# default header when upgrading to a newer version of doxygen. For a description
# of the possible markers and block names see the documentation.
# This tag requires that the tag GENERATE_HTML is set to YES.
HTML_HEADER = header.html
# The HTML_FOOTER tag can be used to specify a user-defined HTML footer for each
# generated HTML page. If the tag is left blank doxygen will generate a standard
# footer. See HTML_HEADER for more information on how to generate a default
# footer and what special commands can be used inside the footer. See also
# section "Doxygen usage" for information on how to generate the default footer
# that doxygen normally uses.
# This tag requires that the tag GENERATE_HTML is set to YES.
HTML_FOOTER =
# The HTML_STYLESHEET tag can be used to specify a user-defined cascading style
# sheet that is used by each HTML page. It can be used to fine-tune the look of
# the HTML output. If left blank doxygen will generate a default style sheet.
# See also section "Doxygen usage" for information on how to generate the style
# sheet that doxygen normally uses.
# Note: It is recommended to use HTML_EXTRA_STYLESHEET instead of this tag, as
# it is more robust and this tag (HTML_STYLESHEET) will in the future become
# obsolete.
# This tag requires that the tag GENERATE_HTML is set to YES.
HTML_STYLESHEET =
# The HTML_EXTRA_STYLESHEET tag can be used to specify additional user-defined
# cascading style sheets that are included after the standard style sheets
# created by doxygen. Using this option one can overrule certain style aspects.
# This is preferred over using HTML_STYLESHEET since it does not replace the
# standard style sheet and is therefore more robust against future updates.
# Doxygen will copy the style sheet files to the output directory.
# Note: The order of the extra style sheet files is of importance (e.g. the last
# style sheet in the list overrules the setting of the previous ones in the
# list). For an example see the documentation.
# This tag requires that the tag GENERATE_HTML is set to YES.
HTML_EXTRA_STYLESHEET =
# The HTML_EXTRA_FILES tag can be used to specify one or more extra images or
# other source files which should be copied to the HTML output directory. Note
# that these files will be copied to the base HTML output directory. Use the
# $relpath^ marker in the HTML_HEADER and/or HTML_FOOTER files to load these
# files. In the HTML_STYLESHEET file, use the file name only. Also note that the
# files will be copied as-is; there are no commands or markers available.
# This tag requires that the tag GENERATE_HTML is set to YES.
HTML_EXTRA_FILES =
# The HTML_COLORSTYLE_HUE tag controls the color of the HTML output. Doxygen
# will adjust the colors in the style sheet and background images according to
# this color. Hue is specified as an angle on a colorwheel, see
# https://en.wikipedia.org/wiki/Hue for more information. For instance the value
# 0 represents red, 60 is yellow, 120 is green, 180 is cyan, 240 is blue, 300
# purple, and 360 is red again.
# Minimum value: 0, maximum value: 359, default value: 220.
# This tag requires that the tag GENERATE_HTML is set to YES.
HTML_COLORSTYLE_HUE = 266
# The HTML_COLORSTYLE_SAT tag controls the purity (or saturation) of the colors
# in the HTML output. For a value of 0 the output will use grayscales only. A
# value of 255 will produce the most vivid colors.
# Minimum value: 0, maximum value: 255, default value: 100.
# This tag requires that the tag GENERATE_HTML is set to YES.
HTML_COLORSTYLE_SAT = 255
# The HTML_COLORSTYLE_GAMMA tag controls the gamma correction applied to the
# luminance component of the colors in the HTML output. Values below 100
# gradually make the output lighter, whereas values above 100 make the output
# darker. The value divided by 100 is the actual gamma applied, so 80 represents
# a gamma of 0.8, The value 220 represents a gamma of 2.2, and 100 does not
# change the gamma.
# Minimum value: 40, maximum value: 240, default value: 80.
# This tag requires that the tag GENERATE_HTML is set to YES.
HTML_COLORSTYLE_GAMMA = 52
# If the HTML_TIMESTAMP tag is set to YES then the footer of each generated HTML
# page will contain the date and time when the page was generated. Setting this
# to YES can help to show when doxygen was last run and thus if the
# documentation is up to date.
# The default value is: NO.
# This tag requires that the tag GENERATE_HTML is set to YES.
HTML_TIMESTAMP = NO
# If the HTML_DYNAMIC_MENUS tag is set to YES then the generated HTML
# documentation will contain a main index with vertical navigation menus that
# are dynamically created via JavaScript. If disabled, the navigation index will
# consists of multiple levels of tabs that are statically embedded in every HTML
# page. Disable this option to support browsers that do not have JavaScript,
# like the Qt help browser.
# The default value is: YES.
# This tag requires that the tag GENERATE_HTML is set to YES.
HTML_DYNAMIC_MENUS = YES
# If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML
# documentation will contain sections that can be hidden and shown after the
# page has loaded.
# The default value is: NO.
# This tag requires that the tag GENERATE_HTML is set to YES.
HTML_DYNAMIC_SECTIONS = NO
# With HTML_INDEX_NUM_ENTRIES one can control the preferred number of entries
# shown in the various tree structured indices initially; the user can expand
# and collapse entries dynamically later on. Doxygen will expand the tree to
# such a level that at most the specified number of entries are visible (unless
# a fully collapsed tree already exceeds this amount). So setting the number of
# entries 1 will produce a full collapsed tree by default. 0 is a special value
# representing an infinite number of entries and will result in a full expanded
# tree by default.
# Minimum value: 0, maximum value: 9999, default value: 100.
# This tag requires that the tag GENERATE_HTML is set to YES.
HTML_INDEX_NUM_ENTRIES = 100
# If the GENERATE_DOCSET tag is set to YES, additional index files will be
# generated that can be used as input for Apple's Xcode 3 integrated development
# environment (see: https://developer.apple.com/xcode/), introduced with OSX
# 10.5 (Leopard). To create a documentation set, doxygen will generate a
# Makefile in the HTML output directory. Running make will produce the docset in
# that directory and running make install will install the docset in
# ~/Library/Developer/Shared/Documentation/DocSets so that Xcode will find it at
# startup. See https://developer.apple.com/library/archive/featuredarticles/Doxy
# genXcode/_index.html for more information.
# The default value is: NO.
# This tag requires that the tag GENERATE_HTML is set to YES.
GENERATE_DOCSET = NO
# This tag determines the name of the docset feed. A documentation feed provides
# an umbrella under which multiple documentation sets from a single provider
# (such as a company or product suite) can be grouped.
# The default value is: Doxygen generated docs.
# This tag requires that the tag GENERATE_DOCSET is set to YES.
DOCSET_FEEDNAME = "Doxygen generated docs"
# This tag specifies a string that should uniquely identify the documentation
# set bundle. This should be a reverse domain-name style string, e.g.
# com.mycompany.MyDocSet. Doxygen will append .docset to the name.
# The default value is: org.doxygen.Project.
# This tag requires that the tag GENERATE_DOCSET is set to YES.
DOCSET_BUNDLE_ID = org.doxygen.Project
# The DOCSET_PUBLISHER_ID tag specifies a string that should uniquely identify
# the documentation publisher. This should be a reverse domain-name style
# string, e.g. com.mycompany.MyDocSet.documentation.
# The default value is: org.doxygen.Publisher.
# This tag requires that the tag GENERATE_DOCSET is set to YES.
DOCSET_PUBLISHER_ID = org.doxygen.Publisher
# The DOCSET_PUBLISHER_NAME tag identifies the documentation publisher.
# The default value is: Publisher.
# This tag requires that the tag GENERATE_DOCSET is set to YES.
DOCSET_PUBLISHER_NAME = Publisher
# If the GENERATE_HTMLHELP tag is set to YES then doxygen generates three
# additional HTML index files: index.hhp, index.hhc, and index.hhk. The
# index.hhp is a project file that can be read by Microsoft's HTML Help Workshop
# (see: https://www.microsoft.com/en-us/download/details.aspx?id=21138) on
# Windows.
#
# The HTML Help Workshop contains a compiler that can convert all HTML output
# generated by doxygen into a single compiled HTML file (.chm). Compiled HTML
# files are now used as the Windows 98 help format, and will replace the old
# Windows help format (.hlp) on all Windows platforms in the future. Compressed
# HTML files also contain an index, a table of contents, and you can search for
# words in the documentation. The HTML workshop also contains a viewer for
# compressed HTML files.
# The default value is: NO.
# This tag requires that the tag GENERATE_HTML is set to YES.
GENERATE_HTMLHELP = NO
# The CHM_FILE tag can be used to specify the file name of the resulting .chm
# file. You can add a path in front of the file if the result should not be
# written to the html output directory.
# This tag requires that the tag GENERATE_HTMLHELP is set to YES.
CHM_FILE =
# The HHC_LOCATION tag can be used to specify the location (absolute path
# including file name) of the HTML help compiler (hhc.exe). If non-empty,
# doxygen will try to run the HTML help compiler on the generated index.hhp.
# The file has to be specified with full path.
# This tag requires that the tag GENERATE_HTMLHELP is set to YES.
HHC_LOCATION =
# The GENERATE_CHI flag controls if a separate .chi index file is generated
# (YES) or that it should be included in the master .chm file (NO).
# The default value is: NO.
# This tag requires that the tag GENERATE_HTMLHELP is set to YES.
GENERATE_CHI = NO
# The CHM_INDEX_ENCODING is used to encode HtmlHelp index (hhk), content (hhc)
# and project file content.
# This tag requires that the tag GENERATE_HTMLHELP is set to YES.
CHM_INDEX_ENCODING =
# The BINARY_TOC flag controls whether a binary table of contents is generated
# (YES) or a normal table of contents (NO) in the .chm file. Furthermore it
# enables the Previous and Next buttons.
# The default value is: NO.
# This tag requires that the tag GENERATE_HTMLHELP is set to YES.
BINARY_TOC = NO
# The TOC_EXPAND flag can be set to YES to add extra items for group members to
# the table of contents of the HTML help documentation and to the tree view.
# The default value is: NO.
# This tag requires that the tag GENERATE_HTMLHELP is set to YES.
TOC_EXPAND = NO
# If the GENERATE_QHP tag is set to YES and both QHP_NAMESPACE and
# QHP_VIRTUAL_FOLDER are set, an additional index file will be generated that
# can be used as input for Qt's qhelpgenerator to generate a Qt Compressed Help
# (.qch) of the generated HTML documentation.
# The default value is: NO.
# This tag requires that the tag GENERATE_HTML is set to YES.
GENERATE_QHP = NO
# If the QHG_LOCATION tag is specified, the QCH_FILE tag can be used to specify
# the file name of the resulting .qch file. The path specified is relative to
# the HTML output folder.
# This tag requires that the tag GENERATE_QHP is set to YES.
QCH_FILE =
# The QHP_NAMESPACE tag specifies the namespace to use when generating Qt Help
# Project output. For more information please see Qt Help Project / Namespace
# (see: https://doc.qt.io/archives/qt-4.8/qthelpproject.html#namespace).
# The default value is: org.doxygen.Project.
# This tag requires that the tag GENERATE_QHP is set to YES.
QHP_NAMESPACE = org.doxygen.Project
# The QHP_VIRTUAL_FOLDER tag specifies the namespace to use when generating Qt
# Help Project output. For more information please see Qt Help Project / Virtual
# Folders (see: https://doc.qt.io/archives/qt-4.8/qthelpproject.html#virtual-
# folders).
# The default value is: doc.
# This tag requires that the tag GENERATE_QHP is set to YES.
QHP_VIRTUAL_FOLDER = doc
# If the QHP_CUST_FILTER_NAME tag is set, it specifies the name of a custom
# filter to add. For more information please see Qt Help Project / Custom
# Filters (see: https://doc.qt.io/archives/qt-4.8/qthelpproject.html#custom-
# filters).
# This tag requires that the tag GENERATE_QHP is set to YES.
QHP_CUST_FILTER_NAME =
# The QHP_CUST_FILTER_ATTRS tag specifies the list of the attributes of the
# custom filter to add. For more information please see Qt Help Project / Custom
# Filters (see: https://doc.qt.io/archives/qt-4.8/qthelpproject.html#custom-
# filters).
# This tag requires that the tag GENERATE_QHP is set to YES.
QHP_CUST_FILTER_ATTRS =
# The QHP_SECT_FILTER_ATTRS tag specifies the list of the attributes this
# project's filter section matches. Qt Help Project / Filter Attributes (see:
# https://doc.qt.io/archives/qt-4.8/qthelpproject.html#filter-attributes).
# This tag requires that the tag GENERATE_QHP is set to YES.
QHP_SECT_FILTER_ATTRS =
# The QHG_LOCATION tag can be used to specify the location of Qt's
# qhelpgenerator. If non-empty doxygen will try to run qhelpgenerator on the
# generated .qhp file.
# This tag requires that the tag GENERATE_QHP is set to YES.
QHG_LOCATION =
# If the GENERATE_ECLIPSEHELP tag is set to YES, additional index files will be
# generated, together with the HTML files, they form an Eclipse help plugin. To
# install this plugin and make it available under the help contents menu in
# Eclipse, the contents of the directory containing the HTML and XML files needs
# to be copied into the plugins directory of eclipse. The name of the directory
# within the plugins directory should be the same as the ECLIPSE_DOC_ID value.
# After copying Eclipse needs to be restarted before the help appears.
# The default value is: NO.
# This tag requires that the tag GENERATE_HTML is set to YES.
GENERATE_ECLIPSEHELP = NO
# A unique identifier for the Eclipse help plugin. When installing the plugin
# the directory name containing the HTML and XML files should also have this
# name. Each documentation set should have its own identifier.
# The default value is: org.doxygen.Project.
# This tag requires that the tag GENERATE_ECLIPSEHELP is set to YES.
ECLIPSE_DOC_ID = org.doxygen.Project
# If you want full control over the layout of the generated HTML pages it might
# be necessary to disable the index and replace it with your own. The
# DISABLE_INDEX tag can be used to turn on/off the condensed index (tabs) at top
# of each HTML page. A value of NO enables the index and the value YES disables
# it. Since the tabs in the index contain the same information as the navigation
# tree, you can set this option to YES if you also set GENERATE_TREEVIEW to YES.
# The default value is: NO.
# This tag requires that the tag GENERATE_HTML is set to YES.
DISABLE_INDEX = NO
# The GENERATE_TREEVIEW tag is used to specify whether a tree-like index
# structure should be generated to display hierarchical information. If the tag
# value is set to YES, a side panel will be generated containing a tree-like
# index structure (just like the one that is generated for HTML Help). For this
# to work a browser that supports JavaScript, DHTML, CSS and frames is required
# (i.e. any modern browser). Windows users are probably better off using the
# HTML help feature. Via custom style sheets (see HTML_EXTRA_STYLESHEET) one can
# further fine-tune the look of the index. As an example, the default style
# sheet generated by doxygen has an example that shows how to put an image at
# the root of the tree instead of the PROJECT_NAME. Since the tree basically has
# the same information as the tab index, you could consider setting
# DISABLE_INDEX to YES when enabling this option.
# The default value is: NO.
# This tag requires that the tag GENERATE_HTML is set to YES.
GENERATE_TREEVIEW = NO
# The ENUM_VALUES_PER_LINE tag can be used to set the number of enum values that
# doxygen will group on one line in the generated HTML documentation.
#
# Note that a value of 0 will completely suppress the enum values from appearing
# in the overview section.
# Minimum value: 0, maximum value: 20, default value: 4.
# This tag requires that the tag GENERATE_HTML is set to YES.
ENUM_VALUES_PER_LINE = 4
# If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be used
# to set the initial width (in pixels) of the frame in which the tree is shown.
# Minimum value: 0, maximum value: 1500, default value: 250.
# This tag requires that the tag GENERATE_HTML is set to YES.
TREEVIEW_WIDTH = 250
# If the EXT_LINKS_IN_WINDOW option is set to YES, doxygen will open links to
# external symbols imported via tag files in a separate window.
# The default value is: NO.
# This tag requires that the tag GENERATE_HTML is set to YES.
EXT_LINKS_IN_WINDOW = NO
# If the HTML_FORMULA_FORMAT option is set to svg, doxygen will use the pdf2svg
# tool (see https://github.com/dawbarton/pdf2svg) or inkscape (see
# https://inkscape.org) to generate formulas as SVG images instead of PNGs for
# the HTML output. These images will generally look nicer at scaled resolutions.
# Possible values are: png The default and svg Looks nicer but requires the
# pdf2svg tool.
# The default value is: png.
# This tag requires that the tag GENERATE_HTML is set to YES.
HTML_FORMULA_FORMAT = png
# Use this tag to change the font size of LaTeX formulas included as images in
# the HTML documentation. When you change the font size after a successful
# doxygen run you need to manually remove any form_*.png images from the HTML
# output directory to force them to be regenerated.
# Minimum value: 8, maximum value: 50, default value: 10.
# This tag requires that the tag GENERATE_HTML is set to YES.
FORMULA_FONTSIZE = 10
# Use the FORMULA_TRANSPARENT tag to determine whether or not the images
# generated for formulas are transparent PNGs. Transparent PNGs are not
# supported properly for IE 6.0, but are supported on all modern browsers.
#
# Note that when changing this option you need to delete any form_*.png files in
# the HTML output directory before the changes have effect.
# The default value is: YES.
# This tag requires that the tag GENERATE_HTML is set to YES.
FORMULA_TRANSPARENT = YES
# The FORMULA_MACROFILE can contain LaTeX \newcommand and \renewcommand commands
# to create new LaTeX commands to be used in formulas as building blocks. See
# the section "Including formulas" for details.
FORMULA_MACROFILE =
# Enable the USE_MATHJAX option to render LaTeX formulas using MathJax (see
# https://www.mathjax.org) which uses client side JavaScript for the rendering
# instead of using pre-rendered bitmaps. Use this if you do not have LaTeX
# installed or if you want to formulas look prettier in the HTML output. When
# enabled you may also need to install MathJax separately and configure the path
# to it using the MATHJAX_RELPATH option.
# The default value is: NO.
# This tag requires that the tag GENERATE_HTML is set to YES.
USE_MATHJAX = NO
# When MathJax is enabled you can set the default output format to be used for
# the MathJax output. See the MathJax site (see:
# http://docs.mathjax.org/en/latest/output.html) for more details.
# Possible values are: HTML-CSS (which is slower, but has the best
# compatibility), NativeMML (i.e. MathML) and SVG.
# The default value is: HTML-CSS.
# This tag requires that the tag USE_MATHJAX is set to YES.
MATHJAX_FORMAT = HTML-CSS
# When MathJax is enabled you need to specify the location relative to the HTML
# output directory using the MATHJAX_RELPATH option. The destination directory
# should contain the MathJax.js script. For instance, if the mathjax directory
# is located at the same level as the HTML output directory, then
# MATHJAX_RELPATH should be ../mathjax. The default value points to the MathJax
# Content Delivery Network so you can quickly see the result without installing
# MathJax. However, it is strongly recommended to install a local copy of
# MathJax from https://www.mathjax.org before deployment.
# The default value is: https://cdn.jsdelivr.net/npm/mathjax@2.
# This tag requires that the tag USE_MATHJAX is set to YES.
MATHJAX_RELPATH = http://cdn.mathjax.org/mathjax/latest
# The MATHJAX_EXTENSIONS tag can be used to specify one or more MathJax
# extension names that should be enabled during MathJax rendering. For example
# MATHJAX_EXTENSIONS = TeX/AMSmath TeX/AMSsymbols
# This tag requires that the tag USE_MATHJAX is set to YES.
MATHJAX_EXTENSIONS =
# The MATHJAX_CODEFILE tag can be used to specify a file with javascript pieces
# of code that will be used on startup of the MathJax code. See the MathJax site
# (see: http://docs.mathjax.org/en/latest/output.html) for more details. For an
# example see the documentation.
# This tag requires that the tag USE_MATHJAX is set to YES.
MATHJAX_CODEFILE =
# When the SEARCHENGINE tag is enabled doxygen will generate a search box for
# the HTML output. The underlying search engine uses javascript and DHTML and
# should work on any modern browser. Note that when using HTML help
# (GENERATE_HTMLHELP), Qt help (GENERATE_QHP), or docsets (GENERATE_DOCSET)
# there is already a search function so this one should typically be disabled.
# For large projects the javascript based search engine can be slow, then
# enabling SERVER_BASED_SEARCH may provide a better solution. It is possible to
# search using the keyboard; to jump to the search box use <access key> + S
# (what the <access key> is depends on the OS and browser, but it is typically
# <CTRL>, <ALT>/<option>, or both). Inside the search box use the <cursor down
# key> to jump into the search results window, the results can be navigated
# using the <cursor keys>. Press <Enter> to select an item or <escape> to cancel
# the search. The filter options can be selected when the cursor is inside the
# search box by pressing <Shift>+<cursor down>. Also here use the <cursor keys>
# to select a filter and <Enter> or <escape> to activate or cancel the filter
# option.
# The default value is: YES.
# This tag requires that the tag GENERATE_HTML is set to YES.
SEARCHENGINE = YES
# When the SERVER_BASED_SEARCH tag is enabled the search engine will be
# implemented using a web server instead of a web client using JavaScript. There
# are two flavors of web server based searching depending on the EXTERNAL_SEARCH
# setting. When disabled, doxygen will generate a PHP script for searching and
# an index file used by the script. When EXTERNAL_SEARCH is enabled the indexing
# and searching needs to be provided by external tools. See the section
# "External Indexing and Searching" for details.
# The default value is: NO.
# This tag requires that the tag SEARCHENGINE is set to YES.
SERVER_BASED_SEARCH = NO
# When EXTERNAL_SEARCH tag is enabled doxygen will no longer generate the PHP
# script for searching. Instead the search results are written to an XML file
# which needs to be processed by an external indexer. Doxygen will invoke an
# external search engine pointed to by the SEARCHENGINE_URL option to obtain the
# search results.
#
# Doxygen ships with an example indexer (doxyindexer) and search engine
# (doxysearch.cgi) which are based on the open source search engine library
# Xapian (see: https://xapian.org/).
#
# See the section "External Indexing and Searching" for details.
# The default value is: NO.
# This tag requires that the tag SEARCHENGINE is set to YES.
EXTERNAL_SEARCH = NO
# The SEARCHENGINE_URL should point to a search engine hosted by a web server
# which will return the search results when EXTERNAL_SEARCH is enabled.
#
# Doxygen ships with an example indexer (doxyindexer) and search engine
# (doxysearch.cgi) which are based on the open source search engine library
# Xapian (see: https://xapian.org/). See the section "External Indexing and
# Searching" for details.
# This tag requires that the tag SEARCHENGINE is set to YES.
SEARCHENGINE_URL =
# When SERVER_BASED_SEARCH and EXTERNAL_SEARCH are both enabled the unindexed
# search data is written to a file for indexing by an external tool. With the
# SEARCHDATA_FILE tag the name of this file can be specified.
# The default file is: searchdata.xml.
# This tag requires that the tag SEARCHENGINE is set to YES.
SEARCHDATA_FILE = searchdata.xml
# When SERVER_BASED_SEARCH and EXTERNAL_SEARCH are both enabled the
# EXTERNAL_SEARCH_ID tag can be used as an identifier for the project. This is
# useful in combination with EXTRA_SEARCH_MAPPINGS to search through multiple
# projects and redirect the results back to the right project.
# This tag requires that the tag SEARCHENGINE is set to YES.
EXTERNAL_SEARCH_ID =
# The EXTRA_SEARCH_MAPPINGS tag can be used to enable searching through doxygen
# projects other than the one defined by this configuration file, but that are
# all added to the same external search index. Each project needs to have a
# unique id set via EXTERNAL_SEARCH_ID. The search mapping then maps the id of
# to a relative location where the documentation can be found. The format is:
# EXTRA_SEARCH_MAPPINGS = tagname1=loc1 tagname2=loc2 ...
# This tag requires that the tag SEARCHENGINE is set to YES.
EXTRA_SEARCH_MAPPINGS =
#---------------------------------------------------------------------------
# Configuration options related to the LaTeX output
#---------------------------------------------------------------------------
# If the GENERATE_LATEX tag is set to YES, doxygen will generate LaTeX output.
# The default value is: YES.
GENERATE_LATEX = NO
# The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put. If a
# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of
# it.
# The default directory is: latex.
# This tag requires that the tag GENERATE_LATEX is set to YES.
LATEX_OUTPUT = latex
# The LATEX_CMD_NAME tag can be used to specify the LaTeX command name to be
# invoked.
#
# Note that when not enabling USE_PDFLATEX the default is latex when enabling
# USE_PDFLATEX the default is pdflatex and when in the later case latex is
# chosen this is overwritten by pdflatex. For specific output languages the
# default can have been set differently, this depends on the implementation of
# the output language.
# This tag requires that the tag GENERATE_LATEX is set to YES.
LATEX_CMD_NAME = latex
# The MAKEINDEX_CMD_NAME tag can be used to specify the command name to generate
# index for LaTeX.
# Note: This tag is used in the Makefile / make.bat.
# See also: LATEX_MAKEINDEX_CMD for the part in the generated output file
# (.tex).
# The default file is: makeindex.
# This tag requires that the tag GENERATE_LATEX is set to YES.
MAKEINDEX_CMD_NAME = makeindex
# The LATEX_MAKEINDEX_CMD tag can be used to specify the command name to
# generate index for LaTeX. In case there is no backslash (\) as first character
# it will be automatically added in the LaTeX code.
# Note: This tag is used in the generated output file (.tex).
# See also: MAKEINDEX_CMD_NAME for the part in the Makefile / make.bat.
# The default value is: makeindex.
# This tag requires that the tag GENERATE_LATEX is set to YES.
LATEX_MAKEINDEX_CMD = makeindex
# If the COMPACT_LATEX tag is set to YES, doxygen generates more compact LaTeX
# documents. This may be useful for small projects and may help to save some
# trees in general.
# The default value is: NO.
# This tag requires that the tag GENERATE_LATEX is set to YES.
COMPACT_LATEX = NO
# The PAPER_TYPE tag can be used to set the paper type that is used by the
# printer.
# Possible values are: a4 (210 x 297 mm), letter (8.5 x 11 inches), legal (8.5 x
# 14 inches) and executive (7.25 x 10.5 inches).
# The default value is: a4.
# This tag requires that the tag GENERATE_LATEX is set to YES.
PAPER_TYPE = a4
# The EXTRA_PACKAGES tag can be used to specify one or more LaTeX package names
# that should be included in the LaTeX output. The package can be specified just
# by its name or with the correct syntax as to be used with the LaTeX
# \usepackage command. To get the times font for instance you can specify :
# EXTRA_PACKAGES=times or EXTRA_PACKAGES={times}
# To use the option intlimits with the amsmath package you can specify:
# EXTRA_PACKAGES=[intlimits]{amsmath}
# If left blank no extra packages will be included.
# This tag requires that the tag GENERATE_LATEX is set to YES.
EXTRA_PACKAGES =
# The LATEX_HEADER tag can be used to specify a personal LaTeX header for the
# generated LaTeX document. The header should contain everything until the first
# chapter. If it is left blank doxygen will generate a standard header. See
# section "Doxygen usage" for information on how to let doxygen write the
# default header to a separate file.
#
# Note: Only use a user-defined header if you know what you are doing! The
# following commands have a special meaning inside the header: $title,
# $datetime, $date, $doxygenversion, $projectname, $projectnumber,
# $projectbrief, $projectlogo. Doxygen will replace $title with the empty
# string, for the replacement values of the other commands the user is referred
# to HTML_HEADER.
# This tag requires that the tag GENERATE_LATEX is set to YES.
LATEX_HEADER =
# The LATEX_FOOTER tag can be used to specify a personal LaTeX footer for the
# generated LaTeX document. The footer should contain everything after the last
# chapter. If it is left blank doxygen will generate a standard footer. See
# LATEX_HEADER for more information on how to generate a default footer and what
# special commands can be used inside the footer.
#
# Note: Only use a user-defined footer if you know what you are doing!
# This tag requires that the tag GENERATE_LATEX is set to YES.
LATEX_FOOTER =
# The LATEX_EXTRA_STYLESHEET tag can be used to specify additional user-defined
# LaTeX style sheets that are included after the standard style sheets created
# by doxygen. Using this option one can overrule certain style aspects. Doxygen
# will copy the style sheet files to the output directory.
# Note: The order of the extra style sheet files is of importance (e.g. the last
# style sheet in the list overrules the setting of the previous ones in the
# list).
# This tag requires that the tag GENERATE_LATEX is set to YES.
LATEX_EXTRA_STYLESHEET =
# The LATEX_EXTRA_FILES tag can be used to specify one or more extra images or
# other source files which should be copied to the LATEX_OUTPUT output
# directory. Note that the files will be copied as-is; there are no commands or
# markers available.
# This tag requires that the tag GENERATE_LATEX is set to YES.
LATEX_EXTRA_FILES =
# If the PDF_HYPERLINKS tag is set to YES, the LaTeX that is generated is
# prepared for conversion to PDF (using ps2pdf or pdflatex). The PDF file will
# contain links (just like the HTML output) instead of page references. This
# makes the output suitable for online browsing using a PDF viewer.
# The default value is: YES.
# This tag requires that the tag GENERATE_LATEX is set to YES.
PDF_HYPERLINKS = YES
# If the USE_PDFLATEX tag is set to YES, doxygen will use pdflatex to generate
# the PDF file directly from the LaTeX files. Set this option to YES, to get a
# higher quality PDF documentation.
# The default value is: YES.
# This tag requires that the tag GENERATE_LATEX is set to YES.
USE_PDFLATEX = YES
# If the LATEX_BATCHMODE tag is set to YES, doxygen will add the \batchmode
# command to the generated LaTeX files. This will instruct LaTeX to keep running
# if errors occur, instead of asking the user for help. This option is also used
# when generating formulas in HTML.
# The default value is: NO.
# This tag requires that the tag GENERATE_LATEX is set to YES.
LATEX_BATCHMODE = NO
# If the LATEX_HIDE_INDICES tag is set to YES then doxygen will not include the
# index chapters (such as File Index, Compound Index, etc.) in the output.
# The default value is: NO.
# This tag requires that the tag GENERATE_LATEX is set to YES.
LATEX_HIDE_INDICES = NO
# If the LATEX_SOURCE_CODE tag is set to YES then doxygen will include source
# code with syntax highlighting in the LaTeX output.
#
# Note that which sources are shown also depends on other settings such as
# SOURCE_BROWSER.
# The default value is: NO.
# This tag requires that the tag GENERATE_LATEX is set to YES.
LATEX_SOURCE_CODE = NO
# The LATEX_BIB_STYLE tag can be used to specify the style to use for the
# bibliography, e.g. plainnat, or ieeetr. See
# https://en.wikipedia.org/wiki/BibTeX and \cite for more info.
# The default value is: plain.
# This tag requires that the tag GENERATE_LATEX is set to YES.
LATEX_BIB_STYLE = plain
# If the LATEX_TIMESTAMP tag is set to YES then the footer of each generated
# page will contain the date and time when the page was generated. Setting this
# to NO can help when comparing the output of multiple runs.
# The default value is: NO.
# This tag requires that the tag GENERATE_LATEX is set to YES.
LATEX_TIMESTAMP = NO
# The LATEX_EMOJI_DIRECTORY tag is used to specify the (relative or absolute)
# path from which the emoji images will be read. If a relative path is entered,
# it will be relative to the LATEX_OUTPUT directory. If left blank the
# LATEX_OUTPUT directory will be used.
# This tag requires that the tag GENERATE_LATEX is set to YES.
LATEX_EMOJI_DIRECTORY =
#---------------------------------------------------------------------------
# Configuration options related to the RTF output
#---------------------------------------------------------------------------
# If the GENERATE_RTF tag is set to YES, doxygen will generate RTF output. The
# RTF output is optimized for Word 97 and may not look too pretty with other RTF
# readers/editors.
# The default value is: NO.
GENERATE_RTF = NO
# The RTF_OUTPUT tag is used to specify where the RTF docs will be put. If a
# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of
# it.
# The default directory is: rtf.
# This tag requires that the tag GENERATE_RTF is set to YES.
RTF_OUTPUT = rtf
# If the COMPACT_RTF tag is set to YES, doxygen generates more compact RTF
# documents. This may be useful for small projects and may help to save some
# trees in general.
# The default value is: NO.
# This tag requires that the tag GENERATE_RTF is set to YES.
COMPACT_RTF = NO
# If the RTF_HYPERLINKS tag is set to YES, the RTF that is generated will
# contain hyperlink fields. The RTF file will contain links (just like the HTML
# output) instead of page references. This makes the output suitable for online
# browsing using Word or some other Word compatible readers that support those
# fields.
#
# Note: WordPad (write) and others do not support links.
# The default value is: NO.
# This tag requires that the tag GENERATE_RTF is set to YES.
RTF_HYPERLINKS = NO
# Load stylesheet definitions from file. Syntax is similar to doxygen's
# configuration file, i.e. a series of assignments. You only have to provide
# replacements, missing definitions are set to their default value.
#
# See also section "Doxygen usage" for information on how to generate the
# default style sheet that doxygen normally uses.
# This tag requires that the tag GENERATE_RTF is set to YES.
RTF_STYLESHEET_FILE =
# Set optional variables used in the generation of an RTF document. Syntax is
# similar to doxygen's configuration file. A template extensions file can be
# generated using doxygen -e rtf extensionFile.
# This tag requires that the tag GENERATE_RTF is set to YES.
RTF_EXTENSIONS_FILE =
# If the RTF_SOURCE_CODE tag is set to YES then doxygen will include source code
# with syntax highlighting in the RTF output.
#
# Note that which sources are shown also depends on other settings such as
# SOURCE_BROWSER.
# The default value is: NO.
# This tag requires that the tag GENERATE_RTF is set to YES.
RTF_SOURCE_CODE = NO
#---------------------------------------------------------------------------
# Configuration options related to the man page output
#---------------------------------------------------------------------------
# If the GENERATE_MAN tag is set to YES, doxygen will generate man pages for
# classes and files.
# The default value is: NO.
GENERATE_MAN = NO
# The MAN_OUTPUT tag is used to specify where the man pages will be put. If a
# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of
# it. A directory man3 will be created inside the directory specified by
# MAN_OUTPUT.
# The default directory is: man.
# This tag requires that the tag GENERATE_MAN is set to YES.
MAN_OUTPUT = man
# The MAN_EXTENSION tag determines the extension that is added to the generated
# man pages. In case the manual section does not start with a number, the number
# 3 is prepended. The dot (.) at the beginning of the MAN_EXTENSION tag is
# optional.
# The default value is: .3.
# This tag requires that the tag GENERATE_MAN is set to YES.
MAN_EXTENSION = .3
# The MAN_SUBDIR tag determines the name of the directory created within
# MAN_OUTPUT in which the man pages are placed. If defaults to man followed by
# MAN_EXTENSION with the initial . removed.
# This tag requires that the tag GENERATE_MAN is set to YES.
MAN_SUBDIR =
# If the MAN_LINKS tag is set to YES and doxygen generates man output, then it
# will generate one additional man file for each entity documented in the real
# man page(s). These additional files only source the real man page, but without
# them the man command would be unable to find the correct page.
# The default value is: NO.
# This tag requires that the tag GENERATE_MAN is set to YES.
MAN_LINKS = NO
#---------------------------------------------------------------------------
# Configuration options related to the XML output
#---------------------------------------------------------------------------
# If the GENERATE_XML tag is set to YES, doxygen will generate an XML file that
# captures the structure of the code including all documentation.
# The default value is: NO.
GENERATE_XML = NO
# The XML_OUTPUT tag is used to specify where the XML pages will be put. If a
# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of
# it.
# The default directory is: xml.
# This tag requires that the tag GENERATE_XML is set to YES.
XML_OUTPUT = xml
# If the XML_PROGRAMLISTING tag is set to YES, doxygen will dump the program
# listings (including syntax highlighting and cross-referencing information) to
# the XML output. Note that enabling this will significantly increase the size
# of the XML output.
# The default value is: YES.
# This tag requires that the tag GENERATE_XML is set to YES.
XML_PROGRAMLISTING = YES
# If the XML_NS_MEMB_FILE_SCOPE tag is set to YES, doxygen will include
# namespace members in file scope as well, matching the HTML output.
# The default value is: NO.
# This tag requires that the tag GENERATE_XML is set to YES.
XML_NS_MEMB_FILE_SCOPE = NO
#---------------------------------------------------------------------------
# Configuration options related to the DOCBOOK output
#---------------------------------------------------------------------------
# If the GENERATE_DOCBOOK tag is set to YES, doxygen will generate Docbook files
# that can be used to generate PDF.
# The default value is: NO.
GENERATE_DOCBOOK = NO
# The DOCBOOK_OUTPUT tag is used to specify where the Docbook pages will be put.
# If a relative path is entered the value of OUTPUT_DIRECTORY will be put in
# front of it.
# The default directory is: docbook.
# This tag requires that the tag GENERATE_DOCBOOK is set to YES.
DOCBOOK_OUTPUT = docbook
# If the DOCBOOK_PROGRAMLISTING tag is set to YES, doxygen will include the
# program listings (including syntax highlighting and cross-referencing
# information) to the DOCBOOK output. Note that enabling this will significantly
# increase the size of the DOCBOOK output.
# The default value is: NO.
# This tag requires that the tag GENERATE_DOCBOOK is set to YES.
DOCBOOK_PROGRAMLISTING = NO
#---------------------------------------------------------------------------
# Configuration options for the AutoGen Definitions output
#---------------------------------------------------------------------------
# If the GENERATE_AUTOGEN_DEF tag is set to YES, doxygen will generate an
# AutoGen Definitions (see http://autogen.sourceforge.net/) file that captures
# the structure of the code including all documentation. Note that this feature
# is still experimental and incomplete at the moment.
# The default value is: NO.
GENERATE_AUTOGEN_DEF = NO
#---------------------------------------------------------------------------
# Configuration options related to the Perl module output
#---------------------------------------------------------------------------
# If the GENERATE_PERLMOD tag is set to YES, doxygen will generate a Perl module
# file that captures the structure of the code including all documentation.
#
# Note that this feature is still experimental and incomplete at the moment.
# The default value is: NO.
GENERATE_PERLMOD = NO
# If the PERLMOD_LATEX tag is set to YES, doxygen will generate the necessary
# Makefile rules, Perl scripts and LaTeX code to be able to generate PDF and DVI
# output from the Perl module output.
# The default value is: NO.
# This tag requires that the tag GENERATE_PERLMOD is set to YES.
PERLMOD_LATEX = NO
# If the PERLMOD_PRETTY tag is set to YES, the Perl module output will be nicely
# formatted so it can be parsed by a human reader. This is useful if you want to
# understand what is going on. On the other hand, if this tag is set to NO, the
# size of the Perl module output will be much smaller and Perl will parse it
# just the same.
# The default value is: YES.
# This tag requires that the tag GENERATE_PERLMOD is set to YES.
PERLMOD_PRETTY = YES
# The names of the make variables in the generated doxyrules.make file are
# prefixed with the string contained in PERLMOD_MAKEVAR_PREFIX. This is useful
# so different doxyrules.make files included by the same Makefile don't
# overwrite each other's variables.
# This tag requires that the tag GENERATE_PERLMOD is set to YES.
PERLMOD_MAKEVAR_PREFIX =
#---------------------------------------------------------------------------
# Configuration options related to the preprocessor
#---------------------------------------------------------------------------
# If the ENABLE_PREPROCESSING tag is set to YES, doxygen will evaluate all
# C-preprocessor directives found in the sources and include files.
# The default value is: YES.
ENABLE_PREPROCESSING = YES
# If the MACRO_EXPANSION tag is set to YES, doxygen will expand all macro names
# in the source code. If set to NO, only conditional compilation will be
# performed. Macro expansion can be done in a controlled way by setting
# EXPAND_ONLY_PREDEF to YES.
# The default value is: NO.
# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
MACRO_EXPANSION = YES
# If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES then
# the macro expansion is limited to the macros specified with the PREDEFINED and
# EXPAND_AS_DEFINED tags.
# The default value is: NO.
# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
EXPAND_ONLY_PREDEF = YES
# If the SEARCH_INCLUDES tag is set to YES, the include files in the
# INCLUDE_PATH will be searched if a #include is found.
# The default value is: YES.
# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
SEARCH_INCLUDES = YES
# The INCLUDE_PATH tag can be used to specify one or more directories that
# contain include files that are not input files but should be processed by the
# preprocessor.
# This tag requires that the tag SEARCH_INCLUDES is set to YES.
INCLUDE_PATH =
# You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard
# patterns (like *.h and *.hpp) to filter out the header-files in the
# directories. If left blank, the patterns specified with FILE_PATTERNS will be
# used.
# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
INCLUDE_FILE_PATTERNS =
# The PREDEFINED tag can be used to specify one or more macro names that are
# defined before the preprocessor is started (similar to the -D option of e.g.
# gcc). The argument of the tag is a list of macros of the form: name or
# name=definition (no spaces). If the definition and the "=" are omitted, "=1"
# is assumed. To prevent a macro definition from being undefined via #undef or
# recursively expanded use the := operator instead of the = operator.
# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
PREDEFINED = __device__= \
__host__=
# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then this
# tag can be used to specify a list of macro names that should be expanded. The
# macro definition that is found in the sources will be used. Use the PREDEFINED
# tag if you want to use a different macro definition that overrules the
# definition found in the source code.
# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
EXPAND_AS_DEFINED =
# If the SKIP_FUNCTION_MACROS tag is set to YES then doxygen's preprocessor will
# remove all references to function-like macros that are alone on a line, have
# an all uppercase name, and do not end with a semicolon. Such function macros
# are typically used for boiler-plate code, and will confuse the parser if not
# removed.
# The default value is: YES.
# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
SKIP_FUNCTION_MACROS = YES
#---------------------------------------------------------------------------
# Configuration options related to external references
#---------------------------------------------------------------------------
# The TAGFILES tag can be used to specify one or more tag files. For each tag
# file the location of the external documentation should be added. The format of
# a tag file without this location is as follows:
# TAGFILES = file1 file2 ...
# Adding location for the tag files is done as follows:
# TAGFILES = file1=loc1 "file2 = loc2" ...
# where loc1 and loc2 can be relative or absolute paths or URLs. See the
# section "Linking to external documentation" for more information about the use
# of tag files.
# Note: Each tag file must have a unique name (where the name does NOT include
# the path). If a tag file is not located in the directory in which doxygen is
# run, you must also specify the path to the tagfile here.
TAGFILES = rmm.tag=https://docs.rapids.ai/api/librmm/23.12 "libcudf.tag=https://docs.rapids.ai/api/libcudf/23.12"
# When a file name is specified after GENERATE_TAGFILE, doxygen will create a
# tag file that is based on the input files it reads. See section "Linking to
# external documentation" for more information about the usage of tag files.
GENERATE_TAGFILE =
# If the ALLEXTERNALS tag is set to YES, all external class will be listed in
# the class index. If set to NO, only the inherited external classes will be
# listed.
# The default value is: NO.
ALLEXTERNALS = NO
# If the EXTERNAL_GROUPS tag is set to YES, all external groups will be listed
# in the modules index. If set to NO, only the current project's groups will be
# listed.
# The default value is: YES.
EXTERNAL_GROUPS = YES
# If the EXTERNAL_PAGES tag is set to YES, all external pages will be listed in
# the related pages index. If set to NO, only the current project's pages will
# be listed.
# The default value is: YES.
EXTERNAL_PAGES = YES
#---------------------------------------------------------------------------
# Configuration options related to the dot tool
#---------------------------------------------------------------------------
# If the CLASS_DIAGRAMS tag is set to YES, doxygen will generate a class diagram
# (in HTML and LaTeX) for classes with base or super classes. Setting the tag to
# NO turns the diagrams off. Note that this option also works with HAVE_DOT
# disabled, but it is recommended to install and use dot, since it yields more
# powerful graphs.
# The default value is: YES.
CLASS_DIAGRAMS = YES
# You can include diagrams made with dia in doxygen documentation. Doxygen will
# then run dia to produce the diagram and insert it in the documentation. The
# DIA_PATH tag allows you to specify the directory where the dia binary resides.
# If left empty dia is assumed to be found in the default search path.
DIA_PATH =
# If set to YES the inheritance and collaboration graphs will hide inheritance
# and usage relations if the target is undocumented or is not a class.
# The default value is: YES.
HIDE_UNDOC_RELATIONS = YES
# If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is
# available from the path. This tool is part of Graphviz (see:
# http://www.graphviz.org/), a graph visualization toolkit from AT&T and Lucent
# Bell Labs. The other options in this section have no effect if this option is
# set to NO
# The default value is: NO.
HAVE_DOT = NO
# The DOT_NUM_THREADS specifies the number of dot invocations doxygen is allowed
# to run in parallel. When set to 0 doxygen will base this on the number of
# processors available in the system. You can set it explicitly to a value
# larger than 0 to get control over the balance between CPU load and processing
# speed.
# Minimum value: 0, maximum value: 32, default value: 0.
# This tag requires that the tag HAVE_DOT is set to YES.
DOT_NUM_THREADS = 0
# When you want a differently looking font in the dot files that doxygen
# generates you can specify the font name using DOT_FONTNAME. You need to make
# sure dot is able to find the font, which can be done by putting it in a
# standard location or by setting the DOTFONTPATH environment variable or by
# setting DOT_FONTPATH to the directory containing the font.
# The default value is: Helvetica.
# This tag requires that the tag HAVE_DOT is set to YES.
DOT_FONTNAME = Helvetica
# The DOT_FONTSIZE tag can be used to set the size (in points) of the font of
# dot graphs.
# Minimum value: 4, maximum value: 24, default value: 10.
# This tag requires that the tag HAVE_DOT is set to YES.
DOT_FONTSIZE = 10
# By default doxygen will tell dot to use the default font as specified with
# DOT_FONTNAME. If you specify a different font using DOT_FONTNAME you can set
# the path where dot can find it using this tag.
# This tag requires that the tag HAVE_DOT is set to YES.
DOT_FONTPATH =
# If the CLASS_GRAPH tag is set to YES then doxygen will generate a graph for
# each documented class showing the direct and indirect inheritance relations.
# Setting this tag to YES will force the CLASS_DIAGRAMS tag to NO.
# The default value is: YES.
# This tag requires that the tag HAVE_DOT is set to YES.
CLASS_GRAPH = YES
# If the COLLABORATION_GRAPH tag is set to YES then doxygen will generate a
# graph for each documented class showing the direct and indirect implementation
# dependencies (inheritance, containment, and class references variables) of the
# class with other documented classes.
# The default value is: YES.
# This tag requires that the tag HAVE_DOT is set to YES.
COLLABORATION_GRAPH = YES
# If the GROUP_GRAPHS tag is set to YES then doxygen will generate a graph for
# groups, showing the direct groups dependencies.
# The default value is: YES.
# This tag requires that the tag HAVE_DOT is set to YES.
GROUP_GRAPHS = YES
# If the UML_LOOK tag is set to YES, doxygen will generate inheritance and
# collaboration diagrams in a style similar to the OMG's Unified Modeling
# Language.
# The default value is: NO.
# This tag requires that the tag HAVE_DOT is set to YES.
UML_LOOK = NO
# If the UML_LOOK tag is enabled, the fields and methods are shown inside the
# class node. If there are many fields or methods and many nodes the graph may
# become too big to be useful. The UML_LIMIT_NUM_FIELDS threshold limits the
# number of items for each type to make the size more manageable. Set this to 0
# for no limit. Note that the threshold may be exceeded by 50% before the limit
# is enforced. So when you set the threshold to 10, up to 15 fields may appear,
# but if the number exceeds 15, the total amount of fields shown is limited to
# 10.
# Minimum value: 0, maximum value: 100, default value: 10.
# This tag requires that the tag HAVE_DOT is set to YES.
UML_LIMIT_NUM_FIELDS = 10
# If the TEMPLATE_RELATIONS tag is set to YES then the inheritance and
# collaboration graphs will show the relations between templates and their
# instances.
# The default value is: NO.
# This tag requires that the tag HAVE_DOT is set to YES.
TEMPLATE_RELATIONS = NO
# If the INCLUDE_GRAPH, ENABLE_PREPROCESSING and SEARCH_INCLUDES tags are set to
# YES then doxygen will generate a graph for each documented file showing the
# direct and indirect include dependencies of the file with other documented
# files.
# The default value is: YES.
# This tag requires that the tag HAVE_DOT is set to YES.
INCLUDE_GRAPH = YES
# If the INCLUDED_BY_GRAPH, ENABLE_PREPROCESSING and SEARCH_INCLUDES tags are
# set to YES then doxygen will generate a graph for each documented file showing
# the direct and indirect include dependencies of the file with other documented
# files.
# The default value is: YES.
# This tag requires that the tag HAVE_DOT is set to YES.
INCLUDED_BY_GRAPH = YES
# If the CALL_GRAPH tag is set to YES then doxygen will generate a call
# dependency graph for every global function or class method.
#
# Note that enabling this option will significantly increase the time of a run.
# So in most cases it will be better to enable call graphs for selected
# functions only using the \callgraph command. Disabling a call graph can be
# accomplished by means of the command \hidecallgraph.
# The default value is: NO.
# This tag requires that the tag HAVE_DOT is set to YES.
CALL_GRAPH = NO
# If the CALLER_GRAPH tag is set to YES then doxygen will generate a caller
# dependency graph for every global function or class method.
#
# Note that enabling this option will significantly increase the time of a run.
# So in most cases it will be better to enable caller graphs for selected
# functions only using the \callergraph command. Disabling a caller graph can be
# accomplished by means of the command \hidecallergraph.
# The default value is: NO.
# This tag requires that the tag HAVE_DOT is set to YES.
CALLER_GRAPH = NO
# If the GRAPHICAL_HIERARCHY tag is set to YES then doxygen will graphical
# hierarchy of all classes instead of a textual one.
# The default value is: YES.
# This tag requires that the tag HAVE_DOT is set to YES.
GRAPHICAL_HIERARCHY = YES
# If the DIRECTORY_GRAPH tag is set to YES then doxygen will show the
# dependencies a directory has on other directories in a graphical way. The
# dependency relations are determined by the #include relations between the
# files in the directories.
# The default value is: YES.
# This tag requires that the tag HAVE_DOT is set to YES.
DIRECTORY_GRAPH = YES
# The DOT_IMAGE_FORMAT tag can be used to set the image format of the images
# generated by dot. For an explanation of the image formats see the section
# output formats in the documentation of the dot tool (Graphviz (see:
# http://www.graphviz.org/)).
# Note: If you choose svg you need to set HTML_FILE_EXTENSION to xhtml in order
# to make the SVG files visible in IE 9+ (other browsers do not have this
# requirement).
# Possible values are: png, jpg, gif, svg, png:gd, png:gd:gd, png:cairo,
# png:cairo:gd, png:cairo:cairo, png:cairo:gdiplus, png:gdiplus and
# png:gdiplus:gdiplus.
# The default value is: png.
# This tag requires that the tag HAVE_DOT is set to YES.
DOT_IMAGE_FORMAT = png
# If DOT_IMAGE_FORMAT is set to svg, then this option can be set to YES to
# enable generation of interactive SVG images that allow zooming and panning.
#
# Note that this requires a modern browser other than Internet Explorer. Tested
# and working are Firefox, Chrome, Safari, and Opera.
# Note: For IE 9+ you need to set HTML_FILE_EXTENSION to xhtml in order to make
# the SVG files visible. Older versions of IE do not have SVG support.
# The default value is: NO.
# This tag requires that the tag HAVE_DOT is set to YES.
INTERACTIVE_SVG = NO
# The DOT_PATH tag can be used to specify the path where the dot tool can be
# found. If left blank, it is assumed the dot tool can be found in the path.
# This tag requires that the tag HAVE_DOT is set to YES.
DOT_PATH =
# The DOTFILE_DIRS tag can be used to specify one or more directories that
# contain dot files that are included in the documentation (see the \dotfile
# command).
# This tag requires that the tag HAVE_DOT is set to YES.
DOTFILE_DIRS =
# The MSCFILE_DIRS tag can be used to specify one or more directories that
# contain msc files that are included in the documentation (see the \mscfile
# command).
MSCFILE_DIRS =
# The DIAFILE_DIRS tag can be used to specify one or more directories that
# contain dia files that are included in the documentation (see the \diafile
# command).
DIAFILE_DIRS =
# When using plantuml, the PLANTUML_JAR_PATH tag should be used to specify the
# path where java can find the plantuml.jar file. If left blank, it is assumed
# PlantUML is not used or called during a preprocessing step. Doxygen will
# generate a warning when it encounters a \startuml command in this case and
# will not generate output for the diagram.
PLANTUML_JAR_PATH =
# When using plantuml, the PLANTUML_CFG_FILE tag can be used to specify a
# configuration file for plantuml.
PLANTUML_CFG_FILE =
# When using plantuml, the specified paths are searched for files specified by
# the !include statement in a plantuml block.
PLANTUML_INCLUDE_PATH =
# The DOT_GRAPH_MAX_NODES tag can be used to set the maximum number of nodes
# that will be shown in the graph. If the number of nodes in a graph becomes
# larger than this value, doxygen will truncate the graph, which is visualized
# by representing a node as a red box. Note that doxygen if the number of direct
# children of the root node in a graph is already larger than
# DOT_GRAPH_MAX_NODES then the graph will not be shown at all. Also note that
# the size of a graph can be further restricted by MAX_DOT_GRAPH_DEPTH.
# Minimum value: 0, maximum value: 10000, default value: 50.
# This tag requires that the tag HAVE_DOT is set to YES.
DOT_GRAPH_MAX_NODES = 50
# The MAX_DOT_GRAPH_DEPTH tag can be used to set the maximum depth of the graphs
# generated by dot. A depth value of 3 means that only nodes reachable from the
# root by following a path via at most 3 edges will be shown. Nodes that lay
# further from the root node will be omitted. Note that setting this option to 1
# or 2 may greatly reduce the computation time needed for large code bases. Also
# note that the size of a graph can be further restricted by
# DOT_GRAPH_MAX_NODES. Using a depth of 0 means no depth restriction.
# Minimum value: 0, maximum value: 1000, default value: 0.
# This tag requires that the tag HAVE_DOT is set to YES.
MAX_DOT_GRAPH_DEPTH = 0
# Set the DOT_TRANSPARENT tag to YES to generate images with a transparent
# background. This is disabled by default, because dot on Windows does not seem
# to support this out of the box.
#
# Warning: Depending on the platform used, enabling this option may lead to
# badly anti-aliased labels on the edges of a graph (i.e. they become hard to
# read).
# The default value is: NO.
# This tag requires that the tag HAVE_DOT is set to YES.
DOT_TRANSPARENT = NO
# Set the DOT_MULTI_TARGETS tag to YES to allow dot to generate multiple output
# files in one run (i.e. multiple -o and -T options on the command line). This
# makes dot run faster, but since only newer versions of dot (>1.8.10) support
# this, this feature is disabled by default.
# The default value is: NO.
# This tag requires that the tag HAVE_DOT is set to YES.
DOT_MULTI_TARGETS = NO
# If the GENERATE_LEGEND tag is set to YES doxygen will generate a legend page
# explaining the meaning of the various boxes and arrows in the dot generated
# graphs.
# The default value is: YES.
# This tag requires that the tag HAVE_DOT is set to YES.
GENERATE_LEGEND = YES
# If the DOT_CLEANUP tag is set to YES, doxygen will remove the intermediate dot
# files that are used to generate the various graphs.
# The default value is: YES.
# This tag requires that the tag HAVE_DOT is set to YES.
DOT_CLEANUP = YES
| 0 |
rapidsai_public_repos/cuspatial/cpp | rapidsai_public_repos/cuspatial/cpp/doxygen/header.html | <!-- HTML header for doxygen 1.8.20-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen $doxygenversion"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<!--BEGIN PROJECT_NAME--><title>$projectname: $title</title><!--END PROJECT_NAME-->
<!--BEGIN !PROJECT_NAME--><title>$title</title><!--END !PROJECT_NAME-->
<link href="$relpath^tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="$relpath^jquery.js"></script>
<script type="text/javascript" src="$relpath^dynsections.js"></script>
$treeview
$search
$mathjax
<link href="$relpath^$stylesheet" rel="stylesheet" type="text/css" />
$extrastylesheet
<!-- RAPIDS CUSTOM JS & CSS: START, Please add these two lines back after every version upgrade -->
<script defer src="https://docs.rapids.ai/assets/js/custom.js"></script>
<link rel="stylesheet" href="https://docs.rapids.ai/assets/css/custom.css">
<!-- RAPIDS CUSTOM JS & CSS: END -->
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<!--BEGIN TITLEAREA-->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<!--BEGIN PROJECT_LOGO-->
<td id="projectlogo"><img alt="Logo" src="$relpath^$projectlogo"/></td>
<!--END PROJECT_LOGO-->
<!--BEGIN PROJECT_NAME-->
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">$projectname
<!--BEGIN PROJECT_NUMBER--> <span id="projectnumber">$projectnumber</span><!--END PROJECT_NUMBER-->
</div>
<!--BEGIN PROJECT_BRIEF--><div id="projectbrief">$projectbrief</div><!--END PROJECT_BRIEF-->
</td>
<!--END PROJECT_NAME-->
<!--BEGIN !PROJECT_NAME-->
<!--BEGIN PROJECT_BRIEF-->
<td style="padding-left: 0.5em;">
<div id="projectbrief">$projectbrief</div>
</td>
<!--END PROJECT_BRIEF-->
<!--END !PROJECT_NAME-->
<!--BEGIN DISABLE_INDEX-->
<!--BEGIN SEARCHENGINE-->
<td>$searchbox</td>
<!--END SEARCHENGINE-->
<!--END DISABLE_INDEX-->
</tr>
</tbody>
</table>
</div>
<!--END TITLEAREA-->
<!-- end header part -->
| 0 |
rapidsai_public_repos/cuspatial/cpp/doxygen | rapidsai_public_repos/cuspatial/cpp/doxygen/developer_guide/HEADER_ONLY_API_GUIDE.md | # cuSpatial C++ header-only API Guide
The original cuSpatial C++ API (libcuspatial) was designed to depend on RAPIDS libcudf and use
its core data types, especially `cudf::column`. For users who do not also use libcudf or other
RAPIDS APIS, depending on libcudf could be a big barrier to adoption of libcuspatial. libcudf is
a very large library and building it takes a lot of time.
Therefore, the core of cuSpatial is now implemented in a standalone C++ API that does not depend on
libcudf. This is a header-only template API with an iterator- and range-based interface. This has a
number of advantages.
1. With a header-only API, users can include and build exactly what they use.
2. With a templated API, the API can be flexible to support a variety of basic data types, such
as float and double for positional data, and different integer sizes for indices.
3. By templating on iterator types, cuSpatial algorithms can be fused with transformations of the
input data, by using "fancy" iterators. Examples include transform iterators and counting
iterators.
4. Memory resources only need to be part of APIs that allocate temporary intermediate storage.
Output storage is allocated outside the API and an output iterator is passed as an argument.
The main disadvantages of this type of API are
1. Header-only APIs can increase compilation time for code that depends on them.
2. Some users (especially the cuSpatial Python API) may prefer a cuDF-based API.
The good news is that maintaining the existing libcudf-based C++ API as a layer above the header-
only libcuspatial API avoids problem 1 and problem 2 for users of the column-based API.
## Example API
Following is an example iterator-based API for `cuspatial::haversine_distance`. (See below for
discussion of API documentation.)
```c++
template <class LonLatItA,
class LonLatItB,
class OutputIt,
class Location = typename std::iterator_traits<LonLatItA>::value_type,
class T = typename Location::value_type>
OutputIt haversine_distance(LonLatItA a_lonlat_first,
LonLatItA a_lonlat_last,
LonLatItB b_lonlat_first,
OutputIt distance_first,
T const radius = EARTH_RADIUS_KM,
rmm::cuda_stream_view stream = rmm::cuda_stream_default);
```
There are a few key points to notice.
1. The API is very similar to STL algorithms such as `std::transform`.
2. All array inputs and outputs are iterator type templates.
3. Longitude/Latitude data is passed as array of structures, using the `cuspatial::vec_2d`
type (include/cuspatial/vec_2d.hpp). This is enforced using a `static_assert` in the function
body (discussed later).
4. The `Location` type is a template that is by default equal to the `value_type` of the input
iterators.
5. The floating point type is a template (`T`) that is by default equal to the `value_type` of
`Location`.
6. The iterator types for the two input ranges (A and B) are distinct templates. This is crucial
to enable composition of fancy iterators that may be different types for A and B.
7. The size of the input and output ranges in the example API are equal, so the start and end of
only the A range is provided (`a_lonlat_first` and `a_lonlat_last`). This mirrors STL APIs.
8. This API returns an iterator to the element past the last element written to the output. This
is inspired by `std::transform`, even though as with `transform`, many uses of
`haversine_distance` will not need this returned iterator.
9. All APIs that run CUDA device code (including Thrust algorithms) or allocate memory take a CUDA
stream on which to execute the device code and allocate memory.
## Example Documentation
Following is the (Doxygen) documentation for the above `cuspatial::haversine_distance`.
/**
* @brief Compute haversine distances between points in set A to the corresponding points in set B.
*
* Computes N haversine distances, where N is `std::distance(a_lonlat_first, a_lonlat_last)`.
* The distance for each `a_lonlat[i]` and `b_lonlat[i]` point pair is assigned to
* `distance_first[i]`. `distance_first` must be an iterator to output storage allocated for N
* distances.
*
* Computed distances will have the same units as `radius`.
*
* https://en.wikipedia.org/wiki/Haversine_formula
*
* @param[in] a_lonlat_first: beginning of range of (longitude, latitude) locations in set A
* @param[in] a_lonlat_last: end of range of (longitude, latitude) locations in set A
* @param[in] b_lonlat_first: beginning of range of (longitude, latitude) locations in set B
* @param[out] distance_first: beginning of output range of haversine distances
* @param[in] radius: radius of the sphere on which the points reside. default: 6371.0
* (approximate radius of Earth in km)
* @param[in] stream: The CUDA stream on which to perform computations and allocate memory.
*
* @tparam LonLatItA Iterator to input location set A. Must meet the requirements of
* [LegacyRandomAccessIterator][LinkLRAI] and be device-accessible.
* @tparam LonLatItB Iterator to input location set B. Must meet the requirements of
* [LegacyRandomAccessIterator][LinkLRAI] and be device-accessible.
* @tparam OutputIt Output iterator. Must meet the requirements of
* [LegacyRandomAccessIterator][LinkLRAI] and be device-accessible.
* @tparam Location The `value_type` of `LonLatItA` and `LonLatItB`. Must be `cuspatial::vec_2d<T>`.
* @tparam T The underlying coordinate type. Must be a floating-point type.
*
* @pre `a_lonlat_first` may equal `distance_first`, but the range `[a_lonlat_first, a_lonlat_last)`
* shall not overlap the range `[distance_first, distance_first + (a_lonlat_last - a_lonlat_last))
* otherwise.
* @pre `b_lonlat_first` may equal `distance_first`, but the range `[b_lonlat_first, b_lonlat_last)`
* shall not overlap the range `[distance_first, distance_first + (b_lonlat_last - b_lonlat_last))
* otherwise.
* @pre All iterators must have the same `Location` type, with the same underlying floating-point
* coordinate type (e.g. `cuspatial::vec_2d<float>`).
*
* @return Output iterator to the element past the last distance computed.
*
* [LinkLRAI]: https://en.cppreference.com/w/cpp/named_req/RandomAccessIterator
* "LegacyRandomAccessIterator"
*/
Key points:
1. Precisely and succinctly documents what the API computes, and provides references.
2. All parameters and all template parameters are documented.
3. States the C++ standard iterator concepts that must be implemented, and that iterators must be
device-accessible.
4. Documents requirements as preconditions using `@pre`.
5. Uses preconditions to explicitly document what input ranges are allowed to overlap.
6. Documents the units of any inputs or outputs that have them.
## cuSpatial libcudf-based C++ API (legacy API)
This is the existing API, unchanged by refactoring. Here is the existing
`cuspatial::haversine_distance`:
```c++
template <class LonLatItA,
class LonLatItB,
class OutputIt,
class T = typename cuspatial::iterator_vec_base_type<LonLatItA>>
OutputIt haversine_distance(LonLatItA a_lonlat_first,
LonLatItA a_lonlat_last,
LonLatItB b_lonlat_first,
OutputIt distance_first,
T const radius = EARTH_RADIUS_KM,
rmm::cuda_stream_view stream = rmm::cuda_stream_default);
```
key points:
1. All input data are `cudf::column_view`. This is a type-erased container so determining the
type of data must be done at run time.
2. All inputs are arrays of scalars. Longitude and latitude are separate.
3. The output is a returned `unique_ptr<cudf::column>`.
4. The output is allocated inside the function using the passed memory resource.
5. The public API does not take a stream. There is a `detail` version of the API that takes a
stream. This follows libcudf, and may change in the future.
## File Structure
libcuspatial APIs should be defined in a header file in the `cpp/include/cuspatial/` directory.
The API header should be named after the API. In the example, `haversine.hpp` defines the `cuspatial::haversine_distance` API.
The implementation must also be in a header, but should be in the `cuspatial/detail` directory. The
implementation should be included from the API definition file, at the end of the file. Example:
```c++
... // declaration of API above this point
#include <cuspatial/detail/haversine.hpp>
```
## Namespaces
Public APIs are in the `cuspatial` namespace. Note that both the header-only API and the libcudf-
based API can live in the same namespace, because they are non-ambiguous (very different
parameters).
Implementation of the header-only API should be in a `cuspatial::detail` namespace.
## Implementation
The main implementation should be in detail headers.
### Header-only API Implementation
Because it is a statically typed API, the header-only implementation can be much simpler than the
libcudf-based API, which requires run-time type dispatching. In the case of `haversine_distance`,
it is a simple matter of a few static asserts and dynamic expectation checks, followed by a call to
`thrust::transform` with a custom transform functor.
```c++
template <class LonLatItA, class LonLatItB, class OutputIt, class T>
OutputIt haversine_distance(LonLatItA a_lonlat_first,
LonLatItA a_lonlat_last,
LonLatItB b_lonlat_first,
OutputIt distance_first,
T const radius,
rmm::cuda_stream_view stream)
{
static_assert(is_same<vec_2d<T>,
cuspatial::iterator_value_type<LonLatItA>,
cuspatial::iterator_value_type<LonLatItB>>(),
"Inputs must be cuspatial::vec_2d");
static_assert(
is_same_floating_point<T,
typename cuspatial::iterator_vec_base_type<LonLatItA>,
typename cuspatial::iterator_value_type<OutputIt>>(),
"All iterator types and radius must have the same floating-point coordinate value type.");
CUSPATIAL_EXPECTS(radius > 0, "radius must be positive.");
return thrust::transform(rmm::exec_policy(stream),
a_lonlat_first,
a_lonlat_last,
b_lonlat_first,
distance_first,
detail::haversine_distance_functor<T>(radius));
}
```
Note that we `static_assert` that the types of the iterator inputs match documented expectations.
We also do a runtime check that the radius is positive. Finally we just call `thrust::transform`,
passing it an instance of `haversine_distance_functor`, which is a function of two `vec_2d<T>`
inputs that implements the Haversine distance formula.
### libcudf-based API Implementation
The substance of the refactoring is making the libcudf-based API a wrapper around the header-only
API. This mostly involves replacing business logic implementation in the type-dispatched functor
with a call to the header-only API. We also need to convert disjoint latitude and longitude inputs
into `vec_2d<T>` structs. This is easily done using the `cuspatial::make_vec_2d_iterator` utility
provided in `type_utils.hpp`.
So, to refactor the libcudf-based API, we remove the following code.
```c++
auto input_tuple = thrust::make_tuple(thrust::make_constant_iterator(static_cast<T>(radius)),
a_lon.begin<T>(),
a_lat.begin<T>(),
b_lon.begin<T>(),
b_lat.begin<T>());
auto input_iter = thrust::make_zip_iterator(input_tuple);
thrust::transform(rmm::exec_policy(stream),
input_iter,
input_iter + result->size(),
result->mutable_view().begin<T>(),
[] __device__(auto inputs) {
return calculate_haversine_distance(thrust::get<0>(inputs),
thrust::get<1>(inputs),
thrust::get<2>(inputs),
thrust::get<3>(inputs),
thrust::get<4>(inputs));
});
```
And replace it with the following code.
```c++
auto lonlat_a = cuspatial::make_vec_2d_iterator(a_lon.begin<T>(), a_lat.begin<T>());
auto lonlat_b = cuspatial::make_vec_2d_iterator(b_lon.begin<T>(), b_lat.begin<T>());
cuspatial::haversine_distance(lonlat_a,
lonlat_a + a_lon.size(),
lonlat_b,
static_cast<cudf::mutable_column_view>(*result).begin<T>(),
T{radius},
stream);
```
## Testing
Existing libcudf-based API tests can mostly be left alone. New tests should be added to exercise
the header-only API separately in case the libcudf-based API is removed.
Note that tests, like the header-only API, should not depend on libcudf or libcudf_test. The
cuDF-based API made the mistake of depending on libcudf_test, which results in breakages
of cuSpatial sometimes when libcudf_test changes.
| 0 |
rapidsai_public_repos/cuspatial/cpp/doxygen | rapidsai_public_repos/cuspatial/cpp/doxygen/developer_guide/DOCUMENTATION.md | # libcuspatial C++ Documentation Guide
These guidelines apply to documenting all libcuspatial C++ source files using doxygen style
formatting although only public APIs and classes are actually
[published](https://docs.rapids.ai/api/libcuspatial/stable/index.html).
## Copyright License
The following is the license header comment that should appear at the beginning of every C++
source file.
/*
* Copyright (c) 2022, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
The comment should start with `/*` and not `/**` so it is not processed by doxygen.
Also, here are the rules for the copyright year.
- A new file should have the year in which it was created
- A modified file should span the year it was created and the year it was modified (e.g.
`2019-2021`)
Changing the copyright year may not be necessary if no content has changed (e.g. reformatting only).
## Doxygen
The [doxygen tool](https://www.doxygen.nl/manual/index.html) is used to generate HTML pages from the
C++ comments in the source code. Doxygen recognizes and parses block comments and performs
specialized output formatting when it encounters
[doxygen commands](https://www.doxygen.nl/manual/commands.html).
There are almost 200 commands (also called tags in this document) that doxygen recognizes in comment
blocks. This document provides guidance on which commands/tags to use and how to use them in the
libcuspatial C++ source code.
The doxygen process can be customized using options in the [Doxyfile](../doxygen/Doxyfile).
Here are some of the custom options in the Doxyfile for libcuspatial.
| Option | Setting | Description |
| ------ | ------- | ----------- |
| PROJECT_NAME | libcuspatial | Title used on the main page |
| PROJECT_NUMBER | 22.10.00 | Version number |
| EXTENSION_MAPPING | cu=C++ cuh=C++ | Process `cu` and `cuh` as C++ |
| INPUT | main_page.md ../include | Embedded markdown files and source code directories to process |
| FILE_PATTERNS | *.cpp *.hpp *.h *.c *.cu *.cuh | File extensions to process |
| EXCLUDE_PATTERNS | */detail/* */nvtx/* | Wildcard pattern to exclude paths / filenames |
| TAGFILES | rmm.tag=https://docs.rapids.ai/api/librmm/22.10 "libcudf.tag=https://docs.rapids.ai/api/libcudf/22.10" | Links to external documentation tagfiles. Versions are updated automatically at each release |
| PREDEFINED | __device__= \ __host__= | Predefined macros. Helps with CUDA declaration specifiers. |
## Block Comments
Use the following style for block comments describing functions, classes and other types, groups,
and files.
/**
* description text and
* doxygen tags go here
*/
Doxygen comment blocks start with `/**` and end with `*/` only, and with nothing else on those
lines. Do not add dashes `-----` or extra asterisks `*****` to the first and last lines of a doxygen
block. The block must be placed immediately before the source code line to which it refers. The
block may be indented to line up vertically with the item it documents as appropriate. See the
[Example](#the-example) section below.
Each line in the comment block between the `/**` and `*/` lines should start with a space followed
by an asterisk. Any text on these lines, including tag declarations, should start after a single
space after the asterisk.
## Tag/Command names
Use @ to prefix doxygen commands (e.g. \@brief, \@code, etc.)
## Markdown
The doxygen tool supports a limited set of markdown format in the comment block including links,
tables, lists, etc. In some cases a trade-off may be required for readability in the source text
file versus the readability in the doxygen formatted web pages. For example, there are some
limitations on readability with '%' character and pipe character '|' within a markdown table.
Avoid using direct HTML tags. Although doxygen supports markdown and markdown supports HTML tags,
the HTML support for doxygen's markdown is also limited.
## The Example
The following example covers most of the doxygen block comment and tag styles for documenting C++
code in libcuspatial.
/**
* @file source_file.cpp
* @brief Description of source file contents
*
* Longer description of the source file contents.
*/
/**
* @brief One sentence description of the class.
*
* @ingroup optional_predefined_group_id
*
* Longer, more detailed description of the class.
*
* @tparam T Short description of each template parameter
* @tparam U Short description of each template parameter
*/
template <typename T, typename U>
class example_class {
void get_my_int(); ///< Simple members can be documented like this
void set_my_int( int value ); ///< Try to use descriptive member names
/**
* @brief Short, one sentence description of the member function.
*
* A more detailed description of what this function does and what
* its logic does.
*
* @code
* example_class<int> inst;
* inst.set_my_int(5);
* int output = inst.complicated_function(1,dptr,fptr);
* @endcode
*
* @param[in] first This parameter is an input parameter to the function
* @param[in,out] second This parameter is used both as an input and output
* @param[out] third This parameter is an output of the function
*
* @return The result of the complex function
*/
T complicated_function(int first, double* second, float* third)
{
// Do not use doxygen-style block comments
// for code logic documentation.
}
private:
int my_int; ///< An example private member variable
};
/**
* @brief Short, one sentence description of this free function.
*
* @ingroup optional_predefined_group_id
*
* A detailed description must start after a blank line.
*
* @code
* template<typename T>
* struct myfunctor {
* bool operator()(T input) { return input % 2 > 0; }
* };
* free_function<myfunctor,int>(myfunctor{},12);
* @endcode
*
* @throw cuspatial::logic_error if `input_argument` is negative or zero
*
* @tparam functor_type The type of the functor
* @tparam input_type The datatype of the input argument
*
* @param[in] functor The functor to be called on the input argument
* @param[in] input_argument The input argument passed into the functor
* @return The result of calling the functor on the input argument
*/
template <class functor_type, typename input_type>
bool free_function(functor_type functor, input_type input_argument)
{
CUSPATIAL_EXPECTS( input_argument > 0, "input_argument must be positive");
return functor(input_argument);
}
/**
* @brief Short, one sentence description.
*
* @ingroup optional_predefined_group_id
*
* Optional, longer description.
*/
enum class example_enum {
first_enum, ///< Description of the first enum
second_enum, ///< Description of the second enum
third_enum ///< Description of the third enum
};
/**
* @internal
* @brief The "@internal" tag can be used to indicate rendered HTML docs for a function should not
* be generated.
*/
void internal_function()
{
...
}
## Descriptions
The comment description should clearly detail how the output(s) are created from any inputs. Include
any performance and any boundary considerations. Also include any limits on parameter values and if
any default values are declared. Also, try to include a short [example](#inline-examples) if
possible.
### \@brief
The [\@brief](https://www.doxygen.nl/manual/commands.html#cmdbrief) text should be a short, one
sentence description. Doxygen does not provide much space to show this text in the output pages.
Always follow the \@brief line with a blank comment line.
The longer description is the rest of the comment text that is not tagged with any doxygen command.
/**
* @brief Short description.
*
* Long description.
*/
### \@copydoc
Documentation for declarations in headers should be clear and complete.
You can use the [\@copydoc](https://www.doxygen.nl/manual/commands.html#cmdcopydoc) tag to avoid
duplicating the comment block for a function definition.
/**
* @copydoc complicated_function(int,double*,float*)
*
* Any extra documentation.
*/
Also, \@copydoc is useful when documenting a `detail` function that differs only by the `stream` parameter.
/**
* @copydoc cudf::segmented_count_set_bits(bitmask_type const*,std::vector<size_type> const&)
*
* @param[in] stream Optional CUDA stream on which to execute kernels
*/
std::vector<size_type> segmented_count_set_bits(bitmask_type const* bitmask,
std::vector<size_type> const& indices,
rmm::cuda_stream_view stream = cudf::default_stream_value);
Note, you must specify the whole signature of the function, including optional parameters, so that
doxygen will be able to locate it.
### Function parameters
The following tags should appear near the end of function comment block in the order specified here:
| Command | Description |
| ------- | ----------- |
| [\@throw](#throw) | Specify the conditions in which the function may throw an exception |
| [\@tparam](#tparam) | Description for each template parameter |
| [\@param](#param) | Description for each function parameter |
| [\@return](#return) | Short description of object or value returned |
| [\@pre](#pre) | Specify any preconditions / requirements for the function |
#### \@throw
Add an [\@throw](https://www.doxygen.nl/manual/commands.html#cmdthrow) comment line in the doxygen
block for each exception that the function may throw. You only need to include exceptions thrown by
the function itself. If the function calls another function that may throw an exception, you do not
need to document those exceptions here.
Include the name of the exception without backtick marks so doxygen can add reference links correctly.
/**
* ...
* @throw cuspatial::logic_error if `input_argument` is negative or zero
*/
Using \@throws is also acceptable but VS code and other tools only do syntax highlighting on
\@throw.
#### \@tparam
Add a [\@tparam](https://www.doxygen.nl/manual/commands.html#cmdtparam) comment line for each
template parameter declared by this function. The name of the parameter specified after the doxygen
tag must match exactly to the template parameter name.
/**
* ...
* @tparam functor_type The type of the functor
* @tparam input_type The datatype of the input argument
*/
The definition should detail the requirements of the parameter.
For example, if the template is for a functor or predicate, then describe the expected input types
and output.
#### \@param
Add a [\@param](https://www.doxygen.nl/manual/commands.html#cmdparam) comment line for each function
parameter passed to this function. The name of the parameter specified after the doxygen tag must
match the function's parameter name. Also include append `[in]`, `[out]` or `[in,out]` to the
\@param if it is not clear from the declaration and the parameter name itself.
/**
* ...
* @param[in] first This parameter is an input parameter to the function
* @param[in,out] second This parameter is used both as an input and output
* @param[out] third This parameter is an output of the function
*/
It is also recommended to vertically align the 3 columns of text if possible to make it easier to
read in a source code editor.
#### \@return
Add a single [\@return](https://www.doxygen.nl/manual/commands.html#cmdreturn) comment line at the end
of the comment block if the function returns an object or value. Include a brief description of what
is returned.
/**
* ...
*
* @return A new column of type INT32 and no nulls
*/
Do not include the type of the object returned with the `@return` comment.
#### \@pre
Add a [\@pre](https://www.doxygen.nl/manual/commands.html#cmdpre) comment line for each precondition
of the function. For example, assumptions about accessibility or range of iterators.
/**
* ...
*
* @pre All iterators must have the same `Location` type, with the same underlying floating-point
* coordinate type (e.g. `cuspatial::vec_2d<float>`).
*/
### Inline Examples
It is usually helpful to include a source code example inside your comment block when documenting a
function or other declaration. Use the [\@code](https://www.doxygen.nl/manual/commands.html#cmdcode)
and [\@endcode](https://www.doxygen.nl/manual/commands.html#cmdendcode) pair to include inline
examples.
Doxygen supports syntax highlighting for C++ and several other programming languages (e.g. Python,
Java). By default, the \@code tag uses syntax highlighting based on the source code in which it is
found.
/**
* ...
*
* @code
* auto result = rmm::device_uvector(...);
* @endcode
*/
You can specify a different language by indicating the file extension in the tag:
/**
* ...
*
* @code{.py}
* import cudf
* s = cudf.Series([1,2,3])
* @endcode
*/
If you wish to use pseudocode in your example, use the following:
/**
* ...
*
* Sometimes pseudo-code is clearer.
* @code{.pseudo}
* s = int column of [ 1, 2, null, 4 ]
* r = fill( s, [1, 2], 0 )
* r is now [ 1, 0, 0, 4 ]
* @endcode
*/
When writing example snippets, using fully qualified class names allows doxygen to add reference
links to the example.
/**
* ...
*
* @code
* auto result1 = make_column( ); // reference link will not be created
* auto result2 = cudf::make_column( ); // reference link will be created
* @endcode
*/
Although using three backtick marks \`\`\` for example blocks will work too, they do not stand
out as well in VS code and other source editors.
Do not use the \@example tag in the comments for a declaration, or doxygen will interpret the
entire source file as example source code. The source file is then published under a separate
_Examples_ page in the output.
### Deprecations
Add a single [\@deprecated](https://www.doxygen.nl/manual/commands.html#cmddeprecated) comment line
to comment blocks for APIs that will be removed in future releases. Mention alternative /
replacement APIs in the deprecation comment.
/**
* ...
*
* @deprecated This function is deprecated. Use another new function instead.
*/
## Namespaces
Doxygen output includes a _Namespaces_ page that shows all the namespaces declared with comment
blocks in the processed files. Here is an example of a doxygen description comment for a namespace
declaration.
/**
* @brief cuSpatial interfaces
*
* This is the top-level namespace which contains all cuSpatial functions and types.
*/
namespace cuspatial {
A description comment should be included only once for each unique namespace declaration. Otherwise,
if more than one description is found, doxygen aggregates the descriptions in an arbitrary order in
the output pages.
If you introduce a new namespace, provide a description block for only one declaration and not for
every occurrence.
## Groups/Modules
Grouping declarations into modules helps users to find APIs in the doxygen pages. Generally, common
functions are already grouped logically into header files but doxygen does not automatically group
them this way in its output.
The doxygen output includes a _Modules_ page that organizes items into groups specified using the
[Grouping doxygen commands](https://www.doxygen.nl/manual/grouping.html). These commands can group
common functions across header files, source files, and even namespaces. Groups can also be nested
by defining new groups within existing groups.
For libcuspatial, all the group hierarchy is defined in the
[doxygen_groups.h](../include/doxygen_groups.h) header file. The `doxygen_groups.h` file does not
need to be included in any other source file, because the definitions in this file are used only by
the doxygen tool to generate groups in the _Modules_ page. Modify this file only to add or update
groups. The existing groups have been carefully structured and named, so new groups should be added
thoughtfully.
When creating a new API, specify its group using the
[\@ingroup](https://www.doxygen.nl/manual/commands.html#cmdingroup) tag and the group reference id
from the [doxygen_groups.h](../include/doxygen_groups.h) file.
namespace cuspatial {
/**
* @brief ...
*
* @ingroup distance
*
* @tparam...
* @param ...
* @return ...
*/
template <class Cart2dItA, class Cart2dItB, class OutputIt>
OutputIt pairwise_point_distance(Cart2dItA points1_first, ...);
} // namespace cuspatial
When a file contains multiple functions, classes, or structs in the same group you should instead
use the \@addtogroup with a `@{ ... @}` pair to automatically include doxygen comment blocks as
part of a group.
namespace cuspatial {
/**
* @addtogroup distance
* @{
*/
/**
* @brief ...
*
* @param ...
* @return ...
*/
template <class Cart2dItA, class Cart2dItB, class OutputIt>
OutputIt pairwise_point_distance(Cart2dItA points1_first, ...);
/** @} */
} // namespace cuspatial
This just saves adding \@ingroup to individual doxygen comment blocks within a file. Make sure a
blank line is included after the \@addtogroup command block so doxygen knows it does not apply to
whatever follows in the source code. Note that doxygen will not assign groups to items if the
\@addtogroup with `@{ ... @}` pair includes a namespace declaration. So include the \@addtogroup
and `@{ ... @}` between the namespace declaration braces as shown in the example above.
Summary of groups tags
| Tag/Command | Where to use |
| ----------- | ------------ |
| \@defgroup | For use only in [doxygen_groups.h](../include/doxygen_groups.h) and should include the group's title. |
| \@ingroup | Use inside individual doxygen block comments for declaration statements in a header file. |
| \@addtogroup | Use instead of \@ingroup for multiple declarations in the same file within a namespace declaration. Do not specify a group title. |
| `@{ ... @}` | Use only with \@addtogroup. |
See [doxygen_groups.h](../include/doxygen_groups.h) for a list of existing groups.
## Build Doxygen Output
We recommend installing Doxygen using conda (`conda install doxygen`) or a Linux package manager
(`sudo apt install doxygen`). Alternatively you can
[build and install doxygen from source](https://www.doxygen.nl/manual/install.html).
To build the libcuspatial HTML documentation simply run the `doxygen` command from the `cpp/doxygen`
directory containing the `Doxyfile`. The libcuspatial documentation can also be built using
`cmake --build . --target docs_cuspatial` from the cmake build directory (e.g.
`cpp/build/release`).
Doxygen reads and processes all appropriate source files under the `cpp/include/` directory. The output is generated in the `cpp/doxygen/html/` directory. You can load the local
`index.html` file generated there into any web browser to view the result.
To view docs built on a remote server, you can run a simple HTTP server using Python:
`cd html && python -m http.server`. Then open `http://<IP address>:8000` in your local web browser,
inserting the IP address of the machine on which you ran the HTTP server.
The doxygen output is intended for building documentation only for the public APIs and classes. For
example, the output should not include documentation for `detail` or `/src` files, and these
directories are excluded in the `Doxyfile` configuration. When published by the RAPIDS build/CI
system, the doxygen output appears on the
[RAPIDS web site](https://docs.rapids.ai/api/libcuspatial/stable/index.html).
| 0 |
rapidsai_public_repos/cuspatial/cpp/doxygen | rapidsai_public_repos/cuspatial/cpp/doxygen/developer_guide/BENCHMARKING.md | # Unit Benchmarking in libcuspatial
Unit benchmarks in libcuspatial are written using [NVBench](https://github.com/NVIDIA/nvbench).
While some existing benchmarks are written using
[Google Benchmark](https://github.com/google/benchmark), new benchmarks should use NVBench.
The NVBench library is similar to Google Benchmark, but has several quality of life improvements
when doing GPU benchmarking such as displaying the fraction of peak memory bandwidth achieved and
details about the GPU hardware.
Both NVBench and Google Benchmark provide many options for specifying ranges of parameters to
benchmark, as well as to control the time unit reported, among other options. Refer to existing
benchmarks in `cpp/benchmarks` to understand the options.
## Directory and File Naming
The naming of unit benchmark directories and source files should be consistent with the feature
being benchmarked. For example, the benchmarks for APIs in `distance.hpp` should live in
`cpp/benchmarks/distance/`. Each feature (or set of related features) should have its own
benchmark source file named `<feature>{.cu,cpp}`.
## CUDA Asynchrony and benchmark accuracy
CUDA computations and operations like copies are typically asynchronous with respect to host code,
so it is important to carefully synchronize in order to ensure the benchmark timing is not stopped
before the feature you are benchmarking has completed. An RAII helper class `cuda_event_timer` is
provided in `cpp/benchmarks/synchronization/synchronization.hpp` to help with this. This class
can also optionally clear the GPU L2 cache in order to ensure cache hits do not artificially
inflate performance in repeated iterations.
## Data generation
For generating benchmark input data, random data generation functions are provided in
`cpp/benchmarks/utility/random.cuh`. The input data generation happens on device.
## What should we benchmark?
In general, we should benchmark all features over a range of data sizes and types, so that we can
catch regressions across libcudf changes. However, running many benchmarks is expensive, so ideally
we should sample the parameter space in such a way to get good coverage without having to test
exhaustively.
A rule of thumb is that we should benchmark with enough data to reach the point where the algorithm
reaches its saturation bottleneck, whether that bottleneck is bandwidth or computation. Using data
sets larger than this point is generally not helpful, except in specific cases where doing so
exercises different code and can therefore uncover regressions that smaller benchmarks will not
(this should be rare).
Generally we should benchmark public APIs. Benchmarking detail functions and/or internal utilities
should only be done if detecting regressions in them would be sufficiently difficult to do from
public API benchmarks.
| 0 |
rapidsai_public_repos/cuspatial/cpp/doxygen | rapidsai_public_repos/cuspatial/cpp/doxygen/developer_guide/TESTING.md | # Unit Testing in libcuspatial
Unit tests in libcuspatial are written using
[Google Test](https://github.com/google/googletest/blob/master/docs/primer.md).
## Best Practices: What Should We Test?
In general we should test to make sure all code paths are covered. This is not always easy or
possible. But generally this means we test all supported combinations of algorithms and data types,
and the main iterator and container types supported by algorithms. Here are some other guidelines.
* Test public APIs. Try to ensure that public API tests result in 100% coverage of libcuspatial
code (including internal details and utilities).
* Test exceptional cases. For example, anything that causes the function to `throw`.
* Test boundary cases. For example points that fall exactly on lines or boundaries.
* In general empty input is not an error in libcuspatial. Typically empty input results in empty
output. Tests should verify this.
* Most algorithms should have one or more tests exercising inputs with a large enough number of
rows to require launching multiple thread blocks, especially when values are ultimately
communicated between blocks (e.g. reductions). This is especially important for custom kernels
but also applies to Thrust and CUB algorithm calls with lambdas / functors.
## Header-only and Column-based API tests
libcuspatial currently has two C++ APIs: the column-based API uses libcudf data structures as
input and output. These tests can use libcudf features for constructing columns and tables. The
header-only API does not depend on libcudf at all and so tests of these APIs should not include any
libcudf headers. Header-only and column-based API tests are located together in `cuspatial/tests`,
however header-only API tests are `.cu` files and column-based API files are `.cpp` files.
Generally, we test algorithms and business logic in the header-only API's unit tests.
Column-based API tests should only cover specifics of the column-based API, such as type
handling, input validation, and exceptions that are only thrown by that API. Column-based API tests
typically also tests empty imputs, to ensure that empty column inputs result in empty column output
rather than throwing exceptions.
## Directory and File Naming
The naming of unit test directories and source files should be consistent with the feature being
tested. For example, the tests for APIs in `distance.hpp` should live in files in
`cuspatial/cpp/tests/distance/`.
In the interest of improving compile time, whenever possible, test source files should be `.cpp`
files because `nvcc` is slower than `gcc` in compiling host code. Note that `thrust::device_vector`
includes device code, and so must only be used in `.cu` files. `rmm::device_uvector`,
`rmm::device_buffer` and the various `column_wrapper` types described later can be used in `.cpp`
files, and are therefore preferred in test code over `thrust::device_vector`.
Testing header-only APIs requires CUDA compilation so should be done in `.cu` files.
## Base Fixture
All libcuspatial unit tests should make use of a GTest
["Test Fixture"](https://github.com/google/googletest/blob/master/docs/primer.md#test-fixtures-using-the-same-data-configuration-for-multiple-tests-same-data-multiple-tests).
Even if the fixture is empty, it should inherit from the base fixture `cuspatial::test::BaseFixture`
found in `cpp/tests/base_fixture.hpp`. This ensures that RMM is properly initialized and
finalized. `cuspatial::test::BaseFixture` already inherits from `testing::Test` and therefore it is
not necessary for your test fixtures to inherit from it.
Example:
class MyTestFixture : public cuspatial::test::BaseFixture {...};
## Typed Tests
In general, libcuspatial features must work across all supported types (for cuspatial this
typically just means `float` and `double`). In order to automate the process of running
the same tests across multiple types, we use GTest's
[Typed Tests](https://github.com/google/googletest/blob/master/docs/advanced.md#typed-tests).
Typed tests allow you to write a test once and run it across a list of types.
For example:
```c++
// Fixture must be a template
template <typename T>
class TypedTestFixture : cuspatial::test::BaseFixture {...};
using TestTypes = ::test::types<float,double>; // Notice custom cudf type list type
TYPED_TEST_SUITE(TypedTestFixture, TestTypes);
TYPED_TEST(TypedTestFixture, FirstTest){
// Access the current type using `TypeParam`
using T = TypeParam;
}
```
In this example, all tests using the `TypedTestFixture` fixture will run once for each type in the
list defined in `TestTypes` (`float, double`).
## Utilities
libcuspatial test utilities include `cuspatial::test::expect_vector_equivalent()` in
`cpp/tests/utility/vector_equality()`. This function compares two containers using Google Test's
approximate matching for floating-point values. It can handle vectors of `cuspatial::vec_2d<T>`,
where `T` is `float` or `double`. It automatically copies data in device containers to host
containers before comparing, so you can pass it one host and one device vector, for example.
Example:
```c++
auto h_expected = std::vector<cuspatial::vec_2d<float>>{...}; // expected values
auto d_actual = rmm::device_vector<cuspatial::vec_2d<float>>{...}; // actual computed values
cuspatial::test::expect_vector_equivalent(h_expected, d_actual);
```
Before creating your own test utilities, look to see if one already exists that does
what you need. If not, consider adding a new utility to do what you need. However, make sure that
the utility is generic enough to be useful for other tests and is not overly tailored to your
specific testing need.
| 0 |
rapidsai_public_repos/cuspatial/cpp/doxygen | rapidsai_public_repos/cuspatial/cpp/doxygen/developer_guide/DEVELOPER_GUIDE.md | # libcuspatial C++ Developer Guide {#DEVELOPER_GUIDE}
This document serves as a guide for contributors to libcuspatial C++ code. Developers should also
refer to these additional files for further documentation of libcuspatial best practices.
* [Documentation Guide](DOCUMENTATION.md) for guidelines on documenting libcuspatial code.
* [Testing Guide](TESTING.md) for guidelines on writing unit tests.
* [Benchmarking Guide](BENCHMARKING.md) for guidelines on writing unit benchmarks.
* [Header-only API Guide](HEADER_ONLY_API_GUIDE.md) for guidelines on the header-only API and
column-based API.
# Overview
libcuspatial is a C++ library that provides GPU-accelerated data-parallel algorithms for processing
geospatial and spatiotemporal data. libcuspatial provides various spatial relationship algorithms
including distance computation, containment (e.g. point-in-polygon testing), bounding box
computations, and spatial indexing.
libcuspatial currently has two interfaces. The first is a C++ API based on data types from
libcudf, (the [CUDA Dataframe library C++ API](https://github.com/rapidsai/cudf/)). In this document
we refer to it as the "column-based API". The column-based API represents spatial data as tables of
type-erased columns.
The second API is the cuSpatial header-only C++ API, which is independent of libcudf and represents
data as arrays of structures (e.g. 2D points). The header-only API uses iterators for input and
output, and is similar in style to the C++ Standard Template Library (STL) and
[Thrust](https://nvidia.github.io/thrust/).
## Lexicon
This section defines terminology used within libcuspatial. For terms specific to libcudf, such
as Column, Table, etc., see the
[libcudf developer guide](https://github.com/rapidsai/cudf/blob/main/cpp/docs/DEVELOPER_GUIDE.md#lexicon).
TODO: add terms
# Directory Structure and File Naming
External/public libcuspatial APIs are grouped based on functionality into an appropriately titled
header file in `cuspatial/cpp/include/cuspatial/`. For example,
`cuspatial/cpp/include/cuspatial/distance.hpp` contains the declarations of public API
functions related to distance computations. Note the `.hpp` file extension used to
indicate a C++ header file that can be included from a `.cpp` source file.
Header files should use the `#pragma once` include guard.
The folder that contains the source files that implement an API should be named consistently with
the name of the of the header for the API. For example, the implementation of the APIs found in
`cuspatial/cpp/include/cuspatial/trajectory.hpp` are located in `cuspatial/cpp/src/trajectory`. This
rule obviously does not apply to the header-only API, since the headers are the source files.
Likewise, unit tests and benchmarks reside in folders corresponding to the names of the API headers,
e.g. distance.hpp tests are in `cuspatial/cpp/tests/distance/` and benchmarks are in
`cuspatial/cpp/benchmarks/distance/`.
Internal API headers containing `detail` namespace definitions that are used across translation
units inside libcuspatial should be placed in `include/cuspatial/detail`.
Header-only API files and column-based API headers are stored together in `include/cuspatial`. The
former use the `.cuh` extension because they almost universally require CUDA compilation. The latter
use the `.hpp` extension because they can be compiled with a standard C++ compiler.
## File extensions
- `.hpp` : C++ header files
- `.cpp` : C++ source files
- `.cu` : CUDA C++ source files
- `.cuh` : Headers containing CUDA device code
Only use `.cu` and `.cuh` if necessary. A good indicator is the inclusion of `__device__` and other
symbols that are only recognized by `nvcc`. Another indicator is Thrust algorithm APIs with a device
execution policy (always `rmm::exec_policy` in libcuspatial).
## Code and Documentation Style and Formatting
libcuspatial code uses [snake_case](https://en.wikipedia.org/wiki/Snake_case) for all names except
in a few cases: template parameters, unit tests and test case names may use Pascal case, aka
[UpperCamelCase](https://en.wikipedia.org/wiki/Camel_case). We do not use
[Hungarian notation](https://en.wikipedia.org/wiki/Hungarian_notation), except sometimes when naming
device data variables and their corresponding host copies (e.g. `d_data` and `h_data`). Private
member variables are typically prefixed with an underscore.
Examples:
```c++
template <typename IteratorType>
void algorithm_function(int x, rmm::cuda_stream_view s, rmm::device_memory_resource* mr)
{
...
}
class utility_class
{
...
private:
int _rating{};
std::unique_ptr<rmm::device_uvector> _data{};
}
using TestTypes = ::testing::Types<float, double>;
TYPED_TEST_SUITE(RepeatTypedTestFixture, TestTypes);
TYPED_TEST(RepeatTypedTestFixture, RepeatScalarCount)
{
...
}
```
C++ formatting is enforced using `clang-format`. You should configure `clang-format` on your
machine to use the `cuspatial/cpp/.clang-format` configuration file, and run `clang-format` on all
changed code before committing it. The easiest way to do this is to configure your editor to
"format on save", or to use `pre-commit`.
Aspects of code style not discussed in this document and not automatically enforceable are typically
caught during code review, or not enforced.
### C++ Guidelines
In general, we recommend following
[C++ Core Guidelines](https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines). We also
recommend watching Sean Parent's [C++ Seasoning talk](https://www.youtube.com/watch?v=W2tWOdzgXHA),
and we try to follow his rules: "No raw loops. No raw pointers. No raw synchronization primitives." We also wherever possible add a fourth rule: "No raw kernels".
* Prefer algorithms from STL and Thrust to raw loops.
* Prefer Thrust algorithms to raw kernels.
* For device storage, prefer libcudf and RMM
[owning data structures and views](#libcuspatial-data-structures) to raw pointers and raw memory
allocation. When pointers are used, prefer smart pointers (e.g. `std::shared_ptr` and
`std::unique_ptr`) to raw pointers.
* Prefer dispatching kernels to streams instead of explicit synchronization.
Documentation is discussed in the [Documentation Guide](DOCUMENTATION.md).
### Loops and Grid-stride Loops
Prefer algorithms over raw loops wherever possible, as mentioned above. However, avoiding raw loops is not always possible. C++ range-based for loops can make raw loops much
clearer, and cuSpatial uses [Ranger](https://github.com/harrism/ranger) for this purpose.
Ranger provides range helpers with iterators that can be passed to range-based for loops. Of special importance is `ranger::grid_stride_range()`, which can be used to iterate over
a range in parallel using all threads of a CUDA grid.
When writing custom kernels, grid stride ranges help ensure kernels are adaptable to a
variety of grid shapes, most notably when there are fewer total threads than there are
data items. Instead of:
```c++
__global__ void foo(int n, int* data) {
auto const idx = threadIdx.x + blockIdx.x * blockDim.x;
if (idx < n) return;
// process data
}
```
A grid-stride loop ensures all of data is processed even if there are fewer than n threads:
```c++
__global__ void foo(int n, int* data) {
for (auto const idx = threadIdx.x + blockIdx.x * blockDim.x;
idx < n;
idx += blockDim.x * gridDim.x) {
// process data
}
}
```
With ranger, the code is even clearer and less error prone:
```c++
#include <ranger/ranger.hpp>
__global__ void foo(int n, int* data) {
for (auto const idx = ranger::grid_stride_range(n)) {
// process data
}
}
```
### Includes
The following guidelines apply to organizing `#include` lines.
* Group includes by library (e.g. cuSpatial, RMM, Thrust, STL). `clang-format` will respect the
groupings and sort the individual includes within a group lexicographically.
* Separate groups by a blank line.
* Order the groups from "nearest" to "farthest". In other words, local includes, then includes
from other RAPIDS libraries, then includes from related libraries, like `<thrust/...>`, then
includes from dependencies installed with cuSpatial, and then standard library headers (for
example `<string>`, `<iostream>`).
* Use `<>` instead of `""` unless the header is in the same directory as the source file.
* Tools like `clangd` often auto-insert includes when they can, but they usually get the grouping
and brackets wrong.
* Always check that includes are only necessary for the file in which they are included.
Try to avoid excessive including especially in header files. Double check this when you remove
code.
* Use quotes <tt>\"</tt> to include local headers from the same relative source directory. This
should only occur in source files and non-public header files. Otherwise use angle brackets `<>`
around included header filenames.
* Avoid relative paths with `..` when possible. Paths with `..` are necessary when including
(internal) headers from source paths not in the same directory as the including file,
because source paths are not passed with `-I`.
* Avoid including library internal headers from non-internal files. For example, try not to include
headers from libcuspatial `src` directories in tests or in libcuspatial public headers. If you
find yourself doing this, start a discussion about moving (parts of) the included internal header
to a public header.
# libcuspatial Data Structures
The header-only libcuspatial API is agnostic to the type of containers used by the application to
hold its data, because the header-only API is based on iterators
(see [Iterator Requirements](#iterator-requirements)). The cuDF-based cuSpatial API, on the other
hand, uses cuDF Columns and Tables to store and access application data.
See the [libcudf Developer guide](https://github.com/rapidsai/cudf/blob/main/cpp/docs/DEVELOPER_GUIDE.md#libcudf-data-structures)
for more information on cuDF data structures, including views.
## Views and Ownership
Resource ownership is an essential concept in libcudf, and therefore in the cuDF-based libcuspatial
API. In short, an "owning" object owns a resource (such as device memory). It acquires that resource
during construction and releases the resource in destruction
([RAII](https://en.cppreference.com/w/cpp/language/raii)). A "non-owning" object does not own
resources. Any class in libcudf with the `*_view` suffix is non-owning. For more detail see the
[`libcudf++` presentation.](https://docs.google.com/presentation/d/1zKzAtc1AWFKfMhiUlV5yRZxSiPLwsObxMlWRWz_f5hA/edit?usp=sharing)
cuDF-based libcuspatial functions typically take views as input (`column_view` or `table_view`)
and produce `unique_ptr`s to owning objects as output. For example,
```c++
std::unique_ptr<cudf::table> points_in_spatial_window(
...,
cudf::column_view const& x,
cudf::column_view const& y);
```
## RMM Memory Resources (`rmm::device_memory_resource`)
libcuspatial allocates all device memory via RMM memory resources (MR). See the
[RMM documentation](https://github.com/rapidsai/rmm/blob/main/README.md) for details.
### Current Device Memory Resource
RMM provides a "default" memory resource for each device that can be accessed and updated via the
`rmm::mr::get_current_device_resource()` and `rmm::mr::set_current_device_resource(...)` functions,
respectively. All memory resource parameters should be defaulted to use the return value of
`rmm::mr::get_current_device_resource()`.
# libcuspatial API and Implementation
This section provides specifics about the structure and implementation of cuSpatial API functions.
## Column-based cuSpatial API
libcuspatial's column-based API is designed to integrate seamlessly with other RAPIDS libraries,
notably cuDF. To that end, this API uses `cudf::column` and `cudf::table` data structures as input
and output. This enables cuSpatial to provide Python and other language APIs (e.g. Java) that
integrate seamlessly with the APIs of other RAPIDS libraries like cuDF and cuML. This allows users
to integrate spatial data queries and transformations into end-to-end GPU-accelerated data analytics
and machine learning workflows.
### Input/Output Style
The preferred style for passing input to and returning output from column-based API functions is the
following:
- Input parameters
- Columns:
- `column_view const&`
- Tables:
- `table_view const&`
- Scalar:
- `scalar const&`
- Everything else:
- Trivial or inexpensively copied types
- Pass by value
- Non-trivial or expensive to copy types
- Pass by `const&`
- Input/Output Parameters
- Columns:
- `mutable_column_view&`
- Tables:
- `mutable_table_view&`
- Everything else:
- Pass via raw pointer
- Output
- Outputs should be *returned*, i.e., no output parameters
- Columns:
- `std::unique_ptr<column>`
- Tables:
- `std::unique_ptr<table>`
- Scalars:
- `std::unique_ptr<scalar>`
Here is an example column-based API function.
```C++
std::unique_ptr<cudf::column> haversine_distance(
cudf::column_view const& a_lon,
cudf::column_view const& a_lat,
cudf::column_view const& b_lon,
cudf::column_view const& b_lat,
double const radius = EARTH_RADIUS_KM,
rmm::mr::device_memory_resource* mr = rmm::mr::get_current_device_resource());
```
key points:
1. All input data are `cudf::column_view`. This is a type-erased container so determining the
type of data must be done at run time.
2. All inputs are arrays of scalars. Longitude and latitude are separate.
3. The output is a returned `unique_ptr<cudf::column>`.
4. The output is allocated inside the function using the passed memory resource.
5. The public API does not take a stream. There is a `detail` version of the API that takes a
stream. This follows libcudf, and may change in the future.
### Multiple Return Values
Sometimes it is necessary for functions to have multiple outputs. There are a few ways this can be
done in C++ (including creating a `struct` for the output). One convenient way to do this is
using `std::tie` and `std::pair`. Note that objects passed to `std::pair` will invoke
either the copy constructor or the move constructor of the object, and it may be preferable to move
non-trivially copyable objects (and required for types with deleted copy constructors, like
`std::unique_ptr`).
Multiple column outputs that are functionally related (e.g. x- and y-coordinates), should be
combined into a `table`.
```c++
std::pair<cudf::table, cudf::table> return_two_tables(void){
cudf::table out0;
cudf::table out1;
...
// Do stuff with out0, out1
// Return a std::pair of the two outputs
return std::pair(std::move(out0), std::move(out1));
}
cudf::table out0;
cudf::table out1;
std::tie(out0, out1) = return_two_outputs();
```
Note: `std::tuple` _could_ be used if not for the fact that Cython does not support `std::tuple`
Therefore, libcuspatial public column-based APIs must use `std::pair`, and are therefore limited to
return only two objects of different types. Multiple objects of the same type may be returned via a
`std::vector<T>`.
Alternatively, C++17
[structured binding](https://en.cppreference.com/w/cpp/language/structured_binding) may be used to
disaggregate multiple return values:
```c++
auto [out0, out1] = return_two_outputs();
```
Note that the compiler might not support capturing aliases defined in a structured binding in a
lambda. One may work around this by using a capture with an initializer instead:
```c++
auto [out0, out1] = return_two_outputs();
// Direct capture of alias from structured binding might fail with:
// "error: structured binding cannot be captured"
// auto foo = [out0]() {...};
// Use an initializing capture:
auto foo = [&out0 = out0] {
// Use out0 to compute something.
// ...
};
```
## Header-only cuSpatial API
For C++ users and developers who do not also use libcudf or other RAPIDS APIS, depending on libcudf
could be a barrier to adoption of libcuspatial. libcudf is a very large library and building it
takes a lot of time.
Therefore, libcuspatial provides a header-only C++ API that does not depend on libcudf. The
header-only API is an iterator-based interface. This has a number of advantages.
1. With a header-only API, users can include and build exactly what they use.
2. A template API can flexibly support a variety of basic data types, such as float and double for
positional data, and different integer sizes for indices.
3. As with STL, iterators enable generic algorithms to be applied to arbitrary containers.
4. Iterators enable cuSpatial algorithms to be fused with transformations of the
input data, by using "fancy" iterators. Examples include transform iterators and counting
iterators.
5. Iterators enable the header-only cuSpatial API to use structured coordinate data (e.g. x,y
coordinate pairs) while maintaining compatibility with the separate arrays of x and y
coordinates required by the column-based API. This is accomplished with zip iterators.
Internally, structured data (with arithmetic operators) enables clearer, more arithmetic code.
6. Memory resources only need to be part of APIs that allocate temporary intermediate storage.
Output storage is allocated outside the API and an output iterator is passed as an argument.
The main disadvantages of this type of API are
1. Header-only APIs can increase compilation time for code that depends on them.
2. Some users (especially the cuSpatial Python API) may prefer a cuDF-based API.
The column-based C++ API is a simple layer above the header-only API. This approach protects
column-based API users from the disadvantages while maintaining the advantages for users of the
header-only API.
### Input/Output Style
All array inputs and outputs are iterator type templates to enable generic application of the APIs.
An example function is helpful.
```C++
template <class LonLatItA,
class LonLatItB,
class OutputIt,
class T = typename cuspatial::iterator_vec_base_type<LonLatItA>>
OutputIt haversine_distance(LonLatItA a_lonlat_first,
LonLatItA a_lonlat_last,
LonLatItB b_lonlat_first,
OutputIt distance_first,
T const radius = EARTH_RADIUS_KM,
rmm::cuda_stream_view stream = rmm::cuda_stream_default);
```
There are a few key points to notice.
1. The API is very similar to STL algorithms such as `std::transform`.
2. All array inputs and outputs are iterator type templates.
3. Longitude/Latitude data is passed as array of structures, using the `cuspatial::vec_2d<T>`
type (include/cuspatial/vec_2d.hpp). This is enforced using a `static_assert` in the function
body.
5. The floating point type is a template (`T`) that is by default equal to the base `value_type`
of the type iterated over by `LonLatItA`. libcuspatial provides the `iterator_vec_base_type`
trait helper for this.
6. The iterator types for the two input ranges (A and B) are distinct templates. This is crucial
to enable composition of fancy iterators that may be different types for A and B.
7. The size of the input and output ranges in the example API are equal, so the start and end of
only the A range is provided (`a_lonlat_first` and `a_lonlat_last`). This mirrors STL APIs.
8. This API returns an iterator to the element past the last element written to the output. This
is inspired by `std::transform`, even though as with `transform`, many uses of
cuSpatial APIs will not need to use this returned iterator.
9. All APIs that run CUDA device code (including Thrust algorithms) or allocate memory take a CUDA
stream on which to execute the device code and allocate memory.
10. Any API that allocate and return device data (not shown here) should also take an
`rmm::device_memory_resource` to use for output memory allocation.
### (Multiple) Return Values
Whenever possible in the header-only API, output data should be written to output iterators
that reference data allocated by the caller of the API. In this case, multiple "return values"
are simply written to multiple output iterators. Typically such APIs return an iterator one
past the end of the primary output iterator (in the style of `std::transform()`.
In functions where the output size is data dependent, the API may allocate the output data and
return it as a `rmm::device_uvector` or other data structure containing `device_uvector`s.
### Iterator requirements
All input and output iterators must be device-accessible with random access. They must satisfy the
requirements of C++ [LegacyRandomAccessIterator][LinkLRAI]. Output iterators must be mutable.
## Streams
CUDA streams are not yet exposed in public column-based libcuspatial APIs. header-only libcuspatial
APIs that execute GPU work or allocate GPU memory should take a stream parameter.
In order to ease the transition to future use of streams in the public column-based API, all
libcuspatial APIs that allocate device memory or execute GPU work (including kernels,
Thrust algorithms, or anything that can take a stream) should be implemented using asynchronous APIs
on the default stream (e.g., stream 0).
The recommended pattern for doing this is to make the definition of the external API invoke an
internal API in the `detail` namespace. The internal `detail` API has the same parameters as the
public API, plus a `rmm::cuda_stream_view` parameter at the end with no default value. If the
detail API also accepts a memory resource parameter, the stream parameter should be ideally placed
just *before* the memory resource. The public API will call the detail API and provide
`rmm::cuda_stream_default`. The implementation should be wholly contained in the `detail` API
definition and use only asynchronous versions of CUDA APIs with the stream parameter.
In order to make the `detail` API callable from other libcuspatial functions, it may be exposed in a
header placed in the `cuspatial/cpp/include/detail/` directory.
For example:
```c++
// cpp/include/cuspatial/header.hpp
void external_function(...);
// cpp/include/cuspatial/detail/header.hpp
namespace detail{
void external_function(..., rmm::cuda_stream_view stream)
} // namespace detail
// cuspatial/src/implementation.cpp
namespace detail{
// Use the stream parameter in the detail implementation.
void external_function(..., rmm::cuda_stream_view stream){
// Implementation uses the stream with async APIs.
rmm::device_buffer buff(...,stream);
CUSPATIAL_CUDA_TRY(cudaMemcpyAsync(...,stream.value()));
kernel<<<..., stream>>>(...);
thrust::algorithm(rmm::exec_policy(stream), ...);
}
} // namespace detail
void external_function(...){
CUSPATIAL_FUNC_RANGE(); // Generates an NVTX range for the lifetime of this function.
detail::external_function(..., rmm::cuda_stream_default);
}
```
**Note:** It is important to synchronize the stream if *and only if* it is necessary. For example,
when a non-pointer value is returned from the API that is the result of an asynchronous
device-to-host copy, the stream used for the copy should be synchronized before returning. However,
when a column is returned, the stream should not be synchronized because doing so will break
asynchrony if and when we add an asynchronous API to libcuspatial.
**Note:** `cudaDeviceSynchronize()` should *never* be used.
This limits the ability to do any multi-stream/multi-threaded work with libcuspatial APIs.
### NVTX Ranges
In order to aid in performance optimization and debugging, all compute intensive libcuspatial
functions should have a corresponding NVTX range. In libcuspatial, we have a convenience macro
`CUSPATIAL_FUNC_RANGE()` that automatically annotates the lifetime of the enclosing function and
uses the function's name as the name of the NVTX range. For more information about NVTX, see
[here](https://github.com/NVIDIA/NVTX/tree/dev/cpp).
### Stream Creation
(Note: cuSpatial has not yet had the need for internal stream creation.) The following guidance is
copied from libcudf's documentation. There may be times in implementing libcuspatial features where
it would be advantageous to use streams *internally*, i.e., to accomplish overlap in implementing an
algorithm. However, dynamically creating a stream can be expensive. RMM has a stream pool class to
help avoid dynamic stream creation. However, this is not yet exposed in libcuspatial, so for the
time being, libcuspatial features should avoid creating streams (even if it is slightly less
efficient). It is a good idea to leave a `// TODO:` note indicating where using a stream would be
beneficial.
## Memory Allocation
Device [memory resources](#rmmdevice_memory_resource) are used in libcuspatial to abstract and
control how device memory is allocated.
### Output Memory
Any libcuspatial API that allocates memory that is *returned* to a user must accept a pointer to a
`device_memory_resource` as the last parameter. Inside the API, this memory resource must be used
to allocate any memory for returned objects. It should therefore be passed into functions whose
outputs will be returned. Example:
```c++
// Returned `column` contains newly allocated memory,
// therefore the API must accept a memory resource pointer
std::unique_ptr<column> returns_output_memory(
..., rmm::device_memory_resource * mr = rmm::mr::get_current_device_resource());
// This API does not allocate any new *output* memory, therefore
// a memory resource is unnecessary
void does_not_allocate_output_memory(...);
```
### Temporary Memory
Not all memory allocated within a libcuspatial API is returned to the caller. Often algorithms must
allocate temporary, scratch memory for intermediate results. Always use the default resource
obtained from `rmm::mr::get_current_device_resource()` for temporary memory allocations. Example:
```c++
rmm::device_buffer some_function(
..., rmm::mr::device_memory_resource mr * = rmm::mr::get_current_device_resource()) {
rmm::device_buffer returned_buffer(..., mr); // Returned buffer uses the passed in MR
...
rmm::device_buffer temporary_buffer(...); // Temporary buffer uses default MR
...
return returned_buffer;
}
```
### Memory Management
libcuspatial code eschews raw pointers and direct memory allocation. Use RMM classes built to
use [`device_memory_resource`](https://github.com/rapidsai/rmm/#device_memory_resource) for device
memory allocation with automated lifetime management.
#### rmm::device_buffer
Allocates a specified number of bytes of untyped, uninitialized device memory using a
`device_memory_resource`. If no resource is explicitly provided, uses
`rmm::mr::get_current_device_resource()`.
`rmm::device_buffer` is movable and copyable on a stream. A copy performs a deep copy of the
`device_buffer`'s device memory on the specified stream, whereas a move moves ownership of the
device memory from one `device_buffer` to another.
```c++
// Allocates at least 100 bytes of uninitialized device memory
// using the specified resource and stream
rmm::device_buffer buff(100, stream, mr);
void * raw_data = buff.data(); // Raw pointer to underlying device memory
// Deep copies `buff` into `copy` on `stream`
rmm::device_buffer copy(buff, stream);
// Moves contents of `buff` into `moved_to`
rmm::device_buffer moved_to(std::move(buff));
custom_memory_resource *mr...;
// Allocates 100 bytes from the custom_memory_resource
rmm::device_buffer custom_buff(100, mr, stream);
```
#### rmm::device_scalar<T>
Allocates a single element of the specified type initialized to the specified value. Use this for
scalar input/outputs into device kernels, e.g., reduction results, null count, etc. This is
effectively a convenience wrapper around a `rmm::device_vector<T>` of length 1.
```c++
// Allocates device memory for a single int using the specified resource and stream
// and initializes the value to 42
rmm::device_scalar<int> int_scalar{42, stream, mr};
// scalar.data() returns pointer to value in device memory
kernel<<<...>>>(int_scalar.data(),...);
// scalar.value() synchronizes the scalar's stream and copies the
// value from device to host and returns the value
int host_value = int_scalar.value();
```
#### rmm::device_vector<T>
Allocates a specified number of elements of the specified type. If no initialization value is
provided, all elements are default initialized (this incurs a kernel launch).
**Note**: (TODO: this not true yet in libcuspatial but we should strive for it. The following is
copied from libcudf's developer guide.)
We have removed all usage of `rmm::device_vector` and `thrust::device_vector` from
libcuspatial, and you should not use it in new code in libcuspatial without careful consideration.
Instead, use `rmm::device_uvector` along with the utility factories in `device_factories.hpp`. These
utilities enable creation of `uvector`s from host-side vectors, or creating zero-initialized
`uvector`s, so that they are as convenient to use as `device_vector`. Avoiding `device_vector` has
a number of benefits, as described in the following section on `rmm::device_uvector`.
#### rmm::device_uvector<T>
Similar to a `device_vector`, allocates a contiguous set of elements in device memory but with key
differences:
- As an optimization, elements are uninitialized and no synchronization occurs at construction.
This limits the types `T` to trivially copyable types.
- All operations are stream-ordered (i.e., they accept a `cuda_stream_view` specifying the stream
on which the operation is performed). This improves safety when using non-default streams.
- `device_uvector.hpp` does not include any `__device__` code, unlike `thrust/device_vector.hpp`,
which means `device_uvector`s can be used in `.cpp` files, rather than just in `.cu` files.
```c++
cuda_stream s;
// Allocates uninitialized storage for 100 `int32_t` elements on stream `s` using the
// default resource
rmm::device_uvector<int32_t> v(100, s);
// Initializes the elements to 0
thrust::uninitialized_fill(thrust::cuda::par.on(s.value()), v.begin(), v.end(), int32_t{0});
rmm::mr::device_memory_resource * mr = new my_custom_resource{...};
// Allocates uninitialized storage for 100 `int32_t` elements on stream `s` using the resource `mr`
rmm::device_uvector<int32_t> v2{100, s, mr};
```
## Namespaces
### External
All public libcuspatial APIs should be placed in the `cuspatial` namespace. Example:
```c++
namespace cuspatial{
void public_function(...);
} // namespace cuspatial
```
The top-level `cuspatial` namespace is sufficient for most of the public API. However, to logically
group a broad set of functions, further namespaces may be used.
### Internal
Many functions are not meant for public use, so place them in either the `detail` or an *anonymous*
namespace, depending on the situation.
#### detail namespace
Functions or objects that will be used across *multiple* translation units (i.e., source files),
should be exposed in an internal header file and placed in the `detail` namespace. Example:
```c++
// some_utilities.hpp
namespace cuspatial{
namespace detail{
void reusable_helper_function(...);
} // namespace detail
} // namespace cuspatial
```
#### Anonymous namespace
Functions or objects that will only be used in a *single* translation unit should be defined in an
*anonymous* namespace in the source file where it is used. Example:
```c++
// some_file.cpp
namespace{
void isolated_helper_function(...);
} // anonymous namespace
```
[**Anonymous namespaces should *never* be used in a header file.**](https://wiki.sei.cmu.edu/confluence/display/cplusplus/DCL59-CPP.+Do+not+define+an+unnamed+namespace+in+a+header+file)
# Deprecating and Removing Code
libcuspatial is constantly evolving to improve performance and better meet our users' needs. As a
result, we occasionally need to break or entirely remove APIs to respond to new and improved
understanding of the functionality we provide. Remaining free to do this is essential to making
libcuspatial an agile library that can rapidly accommodate our users needs. As a result, we do not
always provide a warning or any lead time prior to releasing breaking changes. On a best effort
basis, the libcuspatial team will notify users of changes that we expect to have significant or
widespread effects.
Where possible, indicate pending API removals using the
[deprecated](https://en.cppreference.com/w/cpp/language/attributes/deprecated) attribute and
document them using Doxygen's
[deprecated](https://www.doxygen.nl/manual/commands.html#cmddeprecated) command prior to removal.
When a replacement API is available for a deprecated API, mention the replacement in both the
deprecation message and the deprecation documentation. Pull requests that introduce deprecations
should be labeled "deprecation" to facilitate discovery and removal in the subsequent release.
Advertise breaking changes by labeling any pull request that breaks or removes an existing API with
the "breaking" tag. This ensures that the "Breaking" section of the release notes includes a
description of what has broken from the past release. Label pull requests that contain deprecations
with the "non-breaking" tag.
# Error Handling
libcuspatial follows conventions (and provides utilities) enforcing compile-time and run-time
conditions and detecting and handling CUDA errors. Communication of errors is always via C++
exceptions.
## Runtime Conditions
Use the `CUSPATIAL_EXPECTS` macro to enforce runtime conditions necessary for correct execution.
Example usage:
```c++
CUSPATIAL_EXPECTS(lhs.type() == rhs.type(), "Column type mismatch");
```
The first argument is the conditional expression expected to resolve to `true` under normal
conditions. If the conditional evaluates to `false`, then an error has occurred and an instance of
`cuspatial::logic_error` is thrown. The second argument to `CUSPATIAL_EXPECTS` is a short
description of the error that has occurred and is used for the exception's `what()` message.
There are times where a particular code path, if reached, should indicate an error no matter what.
For example, often the `default` case of a `switch` statement represents an invalid alternative.
Use the `CUSPATIAL_FAIL` macro for such errors. This is effectively the same as calling
`CUSPATIAL_EXPECTS(false, reason)`.
Example:
```c++
CUSPATIAL_FAIL("This code path should not be reached.");
```
### CUDA Error Checking
Use the `CUSPATIAL_CUDA_TRY` macro to check for the successful completion of CUDA runtime API
functions. This macro throws a `cuspatial::cuda_error` exception if the CUDA API return value is not
`cudaSuccess`. The thrown exception includes a description of the CUDA error code in its `what()`
message.
Example:
```c++
CUSPATIAL_CUDA_TRY( cudaMemcpy(&dst, &src, num_bytes) );
```
## Compile-Time Conditions
Use `static_assert` to enforce compile-time conditions. For example,
```c++
template <typename T>
void trivial_types_only(T t){
static_assert(std::is_trivial<T>::value, "This function requires a trivial type.");
...
}
```
# Data Types
Columns may contain data of a number of types. cuDF supports a variety of types that are not used
in cuSpatial. cuSpatial functions mostly operate on numeric and timestamp data. For more information
on libcudf data types see the
[libcudf developer guide](https://github.com/rapidsai/cudf/blob/main/cpp/docs/DEVELOPER_GUIDE.md#data-types).
# Type Dispatcher
`cudf::column` stores data (for columns and scalars) "type erased" in `void*` device memory. This
*type-erasure* enables interoperability with other languages and type systems, such as Python and
Java. In order to determine the type, functions must use the run-time information stored in the
column `type()` to reconstruct the data type `T` by casting the `void*` to the appropriate
`T*`.
This so-called *type dispatch* is pervasive throughout libcudf and the column-based libcuspatial
API. The `cudf::type_dispatcher` is a central utility that automates the process of mapping the
runtime type information in `data_type` to a concrete C++ type. See the
[libcudf developer guide](https://github.com/rapidsai/cudf/blob/main/cpp/docs/DEVELOPER_GUIDE.md#type-dispatcher)
for more information.
[LinkLRAI]: https://en.cppreference.com/w/cpp/named_req/RandomAccessIterator "LegacyRandomAccessIterator"
| 0 |
rapidsai_public_repos/cuspatial | rapidsai_public_repos/cuspatial/notebooks/esb_3857.csv | index,geometry
0,"POLYGON ((-8236139.639159924 4975314.625364609, -8235990.35972277 4975231.530874815, -8235952.110345733 4975300.239901917, -8236101.367518989 4975383.320281857, -8236120.046929544 4975349.758897243, -8236123.4087781655 4975343.719623545, -8236137.713332732 4975318.078466567, -8236139.639159924 4975314.625364609))"
1,"POLYGON ((-8236120.046929544 4975349.758897243, -8236145.36098175 4975363.806468019, -8236127.483071529 4975396.838910679, -8236114.280579922 4975387.699140014, -8236112.866822389 4975388.85997858, -8236110.529113081 4975388.8893669, -8236101.122616109 4975383.643553196, -8236101.367518989 4975383.320281857, -8236120.046929544 4975349.758897243))"
| 0 |
rapidsai_public_repos/cuspatial | rapidsai_public_repos/cuspatial/notebooks/cuproj_benchmark.ipynb | import numpy as np
import cupy as cp
from cuda import cudart
from pyproj import Transformer
from cuproj import Transformer as cuTransformer
import timeit
import matplotlib.pyplot as plt# San Francisco bounding box
min_corner = (37.7081, -122.5149)
max_corner = (37.8324, -122.3573)
crs_from = "EPSG:4326"
crs_to = "EPSG:32610"def run_pyproj(num_points):
grid_side = int(np.sqrt(num_points))
transformer = Transformer.from_crs(crs_from, crs_to)
x, y = np.meshgrid(np.linspace(min_corner[0], max_corner[0], grid_side),
np.linspace(min_corner[1], max_corner[1], grid_side))
grid = [x.reshape(-1), y.reshape(-1)]
# warmup
transformer.transform(*grid)
t = timeit.Timer(lambda: transformer.transform(*grid))
return t.autorange()
def cu_run_and_sync(transformer, grid):
transformer.transform(*grid)
cudart.cudaDeviceSynchronize()
def run_cuproj(num_points):
grid_side = int(np.sqrt(num_points))
transformer = cuTransformer.from_crs(crs_from, crs_to)
x, y = cp.meshgrid(cp.linspace(min_corner[0], max_corner[0], grid_side),
cp.linspace(min_corner[1], max_corner[1], grid_side))
grid = [x.reshape(-1), y.reshape(-1)]
# warmup
cu_run_and_sync(transformer, grid)
t = timeit.Timer(lambda: cu_run_and_sync(transformer, grid))
return t.autorange()
def run_cuproj_host_data(num_points):
grid_side = int(np.sqrt(num_points))
transformer = cuTransformer.from_crs(crs_from, crs_to)
x, y = np.meshgrid(np.linspace(min_corner[0], max_corner[0], grid_side),
np.linspace(min_corner[1], max_corner[1], grid_side))
grid = [x.reshape(-1), y.reshape(-1)]
# warmup
cu_run_and_sync(transformer, grid)
t = timeit.Timer(lambda: cu_run_and_sync(transformer, grid))
return t.autorange()num_data_points = 7 # reduce / increase as needed based on available memory
min_points = 10**2
max_points = 10**(num_data_points + 1)
num_points = np.geomspace(min_points, max_points, num_data_points).astype(int)
throughput_pyproj = []
throughput_cuproj = []
throughput_cuproj_host_data = []
# pyproj
for n in num_points:
iters, time = run_pyproj(n)
throughput_pyproj.append(n / (time / iters))
# cuproj data on device
for n in num_points:
iters, time = run_cuproj(n)
throughput_cuproj.append(n / (time / iters))
# cuproj including host to device copy
for n in num_points:
iters, time = run_cuproj_host_data(n)
throughput_cuproj_host_data.append(n / (time / iters))mean_throughputs = {'PyProj': throughput_pyproj,
'cuProj (device data)': throughput_cuproj,
'cuProj (host data)': throughput_cuproj_host_data}
x = np.arange(len(num_points))
width = 0.25
fig, ax = plt.subplots()
ax.set_yscale('log')
ax.set_ylabel('Throughput (points/s)')
ax.set_xlabel('Grid size (points)')
ax.set_title('WGS84 to UTM Throughput')
ax.set_xticks(x)
powers = [int(np.log10(n)) for n in num_points]
ax.set_xticklabels([f'$10^{n}$' for n in powers])
for i, label in enumerate(mean_throughputs.keys()):
rects = ax.bar(x + (i - 1) * width, mean_throughputs[label], width, label=label)
ax.legend()
fig.tight_layout()
plt.show()import pandas as pd
# display a data table of the mean throughputs
# for each of the 3 methods
df = pd.DataFrame(mean_throughputs, index=num_points)
df.index.name = 'Grid size (points)'
df.columns.name = 'Method'
df# compute peak speedup
n = format(num_points[-1], ',')
print(f"cuProj Speedup for {n} points: {mean_throughputs['cuProj (device data)'][-1] / mean_throughputs['PyProj'][-1] :.2f}x")
| 0 |
rapidsai_public_repos/cuspatial | rapidsai_public_repos/cuspatial/notebooks/cuspatial_api_examples.ipynb | # !conda create -n rapids-23.12 -c rapidsai -c conda-forge -c nvidia \
# cuspatial=23.12 python=3.9 cudatoolkit=11.5 # Imports used throughout this notebook.
import cuspatial
import cudf
import cupy
import geopandas
import pandas as pd
import numpy as np
from shapely.geometry import *
from shapely import wkt# For deterministic result
np.random.seed(0)
cupy.random.seed(0)host_dataframe = geopandas.read_file(geopandas.datasets.get_path(
"naturalearth_lowres"
))
gpu_dataframe = cuspatial.from_geopandas(host_dataframe)
print(gpu_dataframe.head())host_dataframe = geopandas.read_file(geopandas.datasets.get_path("naturalearth_lowres"))
gpu_dataframe = cuspatial.from_geopandas(host_dataframe)
continents_dataframe = gpu_dataframe.sort_values("name")
print(continents_dataframe)host_dataframe = geopandas.read_file(geopandas.datasets.get_path("naturalearth_lowres"))
gpu_dataframe = cuspatial.from_geopandas(host_dataframe)
sorted_dataframe = gpu_dataframe.sort_values("name")
host_dataframe = sorted_dataframe.to_geopandas()
host_dataframe['geometry'].iloc[0]# 1m random trajectory samples
ids = cupy.random.randint(1, 400, 1000000)
timestamps = cupy.random.random(1000000)*1000000
xy= cupy.random.random(2000000)
trajs = cuspatial.GeoSeries.from_points_xy(xy)
sorted_trajectories, trajectory_offsets = \
cuspatial.core.trajectory.derive_trajectories(ids, trajs, timestamps)
# sorted_trajectories is a DataFrame containing all trajectory samples
# sorted first by `object_id` and then by `timestamp`.
print(sorted_trajectories.head())
# trajectory_offsets is a Series containing the start position of each
# trajectory in sorted_trajectories.
print(trajectory_offsets)trajs = cuspatial.GeoSeries.from_points_xy(
sorted_trajectories[["x", "y"]].interleave_columns()
)
d_and_s = cuspatial.core.trajectory.trajectory_distances_and_speeds(
len(cudf.Series(ids).unique()),
sorted_trajectories['object_id'],
trajs,
sorted_trajectories['timestamp']
)
print(d_and_s.head())bounding_boxes = cuspatial.core.trajectory.trajectory_bounding_boxes(
len(cudf.Series(ids, dtype="int32").unique()),
sorted_trajectories['object_id'],
trajs
)
print(bounding_boxes.head())host_dataframe = geopandas.read_file(geopandas.datasets.get_path("naturalearth_lowres"))
single_polygons = cuspatial.from_geopandas(
host_dataframe['geometry'][host_dataframe['geometry'].type == "Polygon"]
)
bounding_box_polygons = cuspatial.core.spatial.bounding.polygon_bounding_boxes(
single_polygons
)
print(bounding_box_polygons.head())lines = cuspatial.GeoSeries.from_linestrings_xy(
trajs.points.xy, trajectory_offsets, cupy.arange(len(trajectory_offsets))
)
trajectory_bounding_boxes = cuspatial.core.spatial.bounding.linestring_bounding_boxes(
lines, 0.0001
)
print(trajectory_bounding_boxes.head())host_dataframe = geopandas.read_file(geopandas.datasets.get_path("naturalearth_lowres"))
gpu_dataframe = cuspatial.from_geopandas(host_dataframe)
afghanistan = gpu_dataframe['geometry'][gpu_dataframe['name'] == 'Afghanistan']
points = cuspatial.GeoSeries.from_points_xy(afghanistan.polygons.xy)
projected = cuspatial.sinusoidal_projection(
afghanistan.polygons.x.mean(),
afghanistan.polygons.y.mean(),
points
)
print(projected.head())coordinates = sorted_trajectories[['x', 'y']].interleave_columns()
spaces = cuspatial.GeoSeries.from_multipoints_xy(
coordinates, trajectory_offsets
)
hausdorff_distances = cuspatial.core.spatial.distance.directed_hausdorff_distance(
spaces
)
print(hausdorff_distances.head())host_dataframe = geopandas.read_file(geopandas.datasets.get_path("naturalearth_lowres"))
gpu_dataframe = cuspatial.from_geopandas(host_dataframe)
polygons_first = gpu_dataframe['geometry'][0:10]
polygons_second = gpu_dataframe['geometry'][10:20]
points_first = polygons_first.polygons.xy[0:1000]
points_second = polygons_second.polygons.xy[0:1000]
first = cuspatial.GeoSeries.from_points_xy(points_first)
second = cuspatial.GeoSeries.from_points_xy(points_second)
# The number of coordinates in two sets of polygons vary, so
# we'll just compare the first set of 1000 values here.
distances_in_meters = cuspatial.haversine_distance(
first, second
)
cudf.Series(distances_in_meters).head()# Generate data to be used to create a cuDF dataframe.
# The data to be processed by Haversine MUST be a Float.
a = {"latitude":[17.1167, 17.1333, 25.333, 25.255, 24.433, 24.262, 35.317, 34.21, 34.566, 31.5, 36.7167, 30.5667, 28.05, 22.8, 35.7297, 36.97, 36.78, 36.8, 36.8, 36.72],
"longitude": [-61.7833, -61.7833, 55.517, 55.364, 54.651, 55.609, 69.017, 62.228, 69.212, 65.85, 3.25, 2.8667, 9.6331, 5.4331, 0.65, 7.79, 3.07, 3.03, 3.04, 4.05]}
df = cudf.DataFrame(data=a)
# Create cuSpatial GeoSeries from cuDF Dataframe
cuGeoSeries = cuspatial.GeoSeries.from_points_xy(df[['longitude', 'latitude']].interleave_columns())
# Create Comparator cuSpatial GeoSeries from a comparator point
df['atlanta_lat'] = 33.7490
df['atlanta_lng'] = -84.3880
atlGeoSeries = cuspatial.GeoSeries.from_points_xy(df[['atlanta_lat', 'atlanta_lng']].interleave_columns())
# Calculate Haversine Distance of cuDF dataframe to comparator point
df['atlanta_dist'] = cuspatial.haversine_distance(cuGeoSeries, atlGeoSeries)
print(df.head())host_dataframe = geopandas.read_file(geopandas.datasets.get_path("naturalearth_lowres"))
gpu_boundaries = cuspatial.from_geopandas(host_dataframe.geometry.boundary)
zeros = cuspatial.pairwise_linestring_distance(
gpu_boundaries[0:50],
gpu_boundaries[0:50]
)
print(zeros.head())
lines1 = gpu_boundaries[0:50]
lines2 = gpu_boundaries[50:100]
distances = cuspatial.pairwise_linestring_distance(
lines1, lines2
)
print(distances.head())# Convert input dataframe to Pseudo-Mercator projection.
host_dataframe = geopandas.read_file(geopandas.datasets.get_path("naturalearth_lowres")).to_crs(3857)
polygons = host_dataframe[host_dataframe['geometry'].type == "Polygon"]
gpu_polygons = cuspatial.from_geopandas(polygons)
# Extract mean_x and mean_y from each country
mean_x = [gpu_polygons['geometry'].iloc[[ix]].polygons.x.mean() for ix in range(len(gpu_polygons))]
mean_y = [gpu_polygons['geometry'].iloc[[ix]].polygons.y.mean() for ix in range(len(gpu_polygons))]
# Convert mean_x/mean_y values into Points for use in API.
points = cuspatial.GeoSeries([Point(point) for point in zip(mean_x, mean_y)])
# Convert Polygons into Linestrings for use in API.
linestring_df = cuspatial.from_geopandas(geopandas.geoseries.GeoSeries(
[MultiLineString(mapping(polygons['geometry'].iloc[ix])["coordinates"]) for ix in range(len(polygons))]
))
gpu_polygons['border_distance'] = cuspatial.pairwise_point_linestring_distance(
points, linestring_df
)
print(gpu_polygons.head())cities = geopandas.read_file(geopandas.datasets.get_path("naturalearth_cities")).to_crs(3857)
countries = geopandas.read_file(geopandas.datasets.get_path("naturalearth_lowres")).to_crs(3857)
gpu_cities = cuspatial.from_geopandas(cities)
gpu_countries = cuspatial.from_geopandas(countries)
dist = cuspatial.pairwise_point_polygon_distance(
gpu_cities.geometry[:len(gpu_countries)], gpu_countries.geometry
)
gpu_countries["distance_from"] = cities.name
gpu_countries["distance"] = dist
gpu_countries.head()# all driveways within 2km range of central park, nyc
# The dataset is downloaded and processed as follows:
# import osmnx as ox
# graph = ox.graph_from_point((40.769361, -73.977655), dist=2000, network_type="drive")
# nodes, streets = ox.graph_to_gdfs(graph)
# streets = streets.to_crs(3857)
# streets = streets.reset_index(drop=True)
# streets.index.name = "index"
# streets[["name", "geometry"]].to_csv("streets_3857.csv")
# The data is under notebooks/streets_3857.csv
streets = pd.read_csv("./streets_3857.csv", index_col="index")
streets.geometry = streets.geometry.apply(wkt.loads)
streets = geopandas.GeoDataFrame(streets)
streets.head()# The polygon of the Empire State Building
# The dataset is downloaded and processed as follows:
# esb = ox.geometries.geometries_from_place('Empire State Building, New York', tags={"building": True})
# esb = esb.to_crs(3857)
# esb = esb.geometry.reset_index(drop=True)
# esb.index.name = "index"
# esb.to_csv("esb_3857.csv")
# The data is under notebooks/esb_3857.csv
esb = pd.read_csv("./esb_3857.csv", index_col="index")
esb.geometry = esb.geometry.apply(wkt.loads)
esb = geopandas.GeoDataFrame(esb)
esb = pd.concat([esb.iloc[0:1]] * len(streets))
esb.head()# Straight line distance between the driveways to the Empire State Building
gpu_streets = cuspatial.from_geopandas(streets.geometry)
gpu_esb = cuspatial.from_geopandas(esb.geometry)
dist = cuspatial.pairwise_linestring_polygon_distance(gpu_streets, gpu_esb).rename("dist")
pd.concat([streets["name"].reset_index(drop=True), dist.to_pandas()], axis=1)countries = geopandas.read_file(geopandas.datasets.get_path("naturalearth_lowres")).to_crs(3857)
gpu_countries = cuspatial.from_geopandas(countries)
african_countries = gpu_countries[gpu_countries.continent == "Africa"].sort_values("pop_est", ascending=False)
asian_countries = gpu_countries[gpu_countries.continent == "Asia"].sort_values("pop_est", ascending=False)# Straight line distance between the top 10 most populated countries in Asia and Africa
population_top10_africa = african_countries[:10].reset_index(drop=True)
population_top10_asia = asian_countries[:10].reset_index(drop=True)
dist = cuspatial.pairwise_polygon_distance(
population_top10_africa.geometry, population_top10_asia.geometry)
cudf.concat([
population_top10_africa["name"].rename("Africa"),
population_top10_asia["name"].rename("Asia"),
dist.rename("dist")], axis=1
)host_dataframe = geopandas.read_file(geopandas.datasets.get_path("naturalearth_lowres"))
gpu_dataframe = cuspatial.from_geopandas(host_dataframe)
geometry = gpu_dataframe['geometry']
points = cuspatial.GeoSeries.from_points_xy(geometry.polygons.xy)
mean_x, std_x = (geometry.polygons.x.mean(), geometry.polygons.x.std())
mean_y, std_y = (geometry.polygons.y.mean(), geometry.polygons.y.std())
avg_points = cuspatial.points_in_spatial_window(
points,
mean_x - std_x,
mean_x + std_x,
mean_y - std_y,
mean_y + std_y
)
print(avg_points.head())from cuspatial.core.binops.intersection import pairwise_linestring_intersection
host_dataframe = geopandas.read_file(geopandas.datasets.get_path("naturalearth_lowres"))
usa_boundary = cuspatial.from_geopandas(host_dataframe[host_dataframe.name == "United States of America"].geometry.boundary)
canada_boundary = cuspatial.from_geopandas(host_dataframe[host_dataframe.name == "Canada"].geometry.boundary)
list_offsets, geometries, look_back_ids = pairwise_linestring_intersection(usa_boundary, canada_boundary)# The first integer series shows that the result contains 1 row (since we only have 1 pair of linestrings as input).
# This row contains 144 geometires.
list_offsets# The second element is a geoseries that contains the intersecting geometries, with 144 rows, including points and linestrings.
geometries# The third element is a dataframe that contains IDs to the input segments and linestrings, 4 for each result row.
# Each represents ids to lhs, rhs linestring and segment ids.
look_back_idshost_dataframe = geopandas.read_file(geopandas.datasets.get_path("naturalearth_lowres"))
single_polygons = host_dataframe[host_dataframe['geometry'].type == "Polygon"]
gpu_dataframe = cuspatial.from_geopandas(single_polygons)
x_points = (cupy.random.random(10000000) - 0.5) * 360
y_points = (cupy.random.random(10000000) - 0.5) * 180
xy = cudf.DataFrame({"x": x_points, "y": y_points}).interleave_columns()
points = cuspatial.GeoSeries.from_points_xy(xy)
short_dataframe = gpu_dataframe.iloc[0:31]
geometry = short_dataframe['geometry']
points_in_polygon = cuspatial.point_in_polygon(
points, geometry
)
sum_of_points_in_polygons_0_to_31 = points_in_polygon.sum()
sum_of_points_in_polygons_0_to_31.head()x_points = (cupy.random.random(10000000) - 0.5) * 360
y_points = (cupy.random.random(10000000) - 0.5) * 180
xy = cudf.DataFrame({"x": x_points, "y": y_points}).interleave_columns()
points = cuspatial.GeoSeries.from_points_xy(xy)
scale = 5
max_depth = 7
max_size = 125
point_indices, quadtree = cuspatial.quadtree_on_points(points,
x_points.min(),
x_points.max(),
y_points.min(),
y_points.max(),
scale,
max_depth,
max_size)
print(point_indices.head())
print(quadtree.head())polygons = gpu_dataframe['geometry']
poly_bboxes = cuspatial.polygon_bounding_boxes(
polygons
)
intersections = cuspatial.join_quadtree_and_bounding_boxes(
quadtree,
poly_bboxes,
polygons.polygons.x.min(),
polygons.polygons.x.max(),
polygons.polygons.y.min(),
polygons.polygons.y.max(),
scale,
max_depth
)
polygons_and_points = cuspatial.quadtree_point_in_polygon(
intersections,
quadtree,
point_indices,
points,
polygons
)
print(polygons_and_points.head())host_countries = geopandas.read_file(geopandas.datasets.get_path("naturalearth_lowres"))
host_cities = geopandas.read_file(geopandas.datasets.get_path("naturalearth_cities"))
gpu_countries = cuspatial.from_geopandas(host_countries[host_countries['geometry'].type == "Polygon"])
gpu_cities = cuspatial.from_geopandas(host_cities[host_cities['geometry'].type == 'Point'])polygons = gpu_countries['geometry'].polygons
boundaries = cuspatial.GeoSeries.from_linestrings_xy(
cudf.DataFrame({"x": polygons.x, "y": polygons.y}).interleave_columns(),
polygons.ring_offset,
cupy.arange(len(polygons.ring_offset))
)
point_indices, quadtree = cuspatial.quadtree_on_points(gpu_cities['geometry'],
polygons.x.min(),
polygons.x.max(),
polygons.y.min(),
polygons.y.max(),
scale,
max_depth,
max_size)
poly_bboxes = cuspatial.linestring_bounding_boxes(
boundaries,
2.0
)
intersections = cuspatial.join_quadtree_and_bounding_boxes(
quadtree,
poly_bboxes,
polygons.x.min(),
polygons.x.max(),
polygons.y.min(),
polygons.y.max(),
scale,
max_depth
)
result = cuspatial.quadtree_point_to_nearest_linestring(
intersections,
quadtree,
point_indices,
gpu_cities['geometry'],
boundaries
)
print(result.head()) | 0 |
rapidsai_public_repos/cuspatial | rapidsai_public_repos/cuspatial/notebooks/trajectory_clustering.ipynb | import os
import random
import time
import pickle
import numpy as np
import cupy as cp
from ipywidgets import interact, widgets
import matplotlib.pyplot as plt
from matplotlib.collections import LineCollection
from matplotlib import gridspec
from skimage import io
import cuspatial
import cuml
with open('trajectories_extracted.p', 'rb') as f:
trajectories = pickle.load(f)
def latlon_to_image_coord(lat, long):
"""Convert coordinate from latlon space to image space."""
x_anchor = 436.369
y_anchor = 126.613
long_anchor = -90.666714
lat_anchor = 42.492466
long_1 = -90.663183
lat_1 = 42.491671
x_1 = 971.026
y_1 = 291.955
long_2_x_rate = (x_1 - x_anchor) / (long_1 - long_anchor)
lat_2_y_rate = (y_1 - y_anchor) / (lat_1 - lat_anchor)
y = (lat - lat_anchor) * lat_2_y_rate + y_anchor
x = (long - long_anchor) * long_2_x_rate + x_anchor
return x, y
def traj_coord_to_image_coord(traj):
"""Transform trajectory coordinates to image coordinate."""
traj_image = [
latlon_to_image_coord(
lat, long
) for lat, long in traj
]
return np.asarray(traj_image)
def traj_filter_num_points(trajectories, num_min):
"""Filter short trajectories"""
max_length = 0
min_length = 999
long_trajectories = [traj for traj in trajectories if len(traj) >= num_min]
lengths = [len(traj) for traj in long_trajectories]
max_length = max(len(traj) for traj in trajectories)
min_length = min(lengths)
print("the longest traj length is: ", max_length)
print("the shortest traj length is: ", min_length)
print("the average traj length is: ", int(np.mean(lengths)))
return long_trajectories
def pick_traj_with_label(pick, labels, trajectories):
"""Filter trajectory by labels"""
selected_trajectories = [
traj for traj_label, traj in zip(labels, trajectories) if traj_label == pick
]
return selected_trajectories
print('Filtering based on number of points ...')
trajectories = traj_filter_num_points(trajectories, num_min=30)
print(f'{len(trajectories)} left after filtering based on number of points')
trajectories = [traj_coord_to_image_coord(
trajectory) for trajectory in trajectories]
MAP_FILE = 'target_intersection.png'
bg_image = io.imread(MAP_FILE)
plt.figure(figsize=(15, 15))
plt.imshow(bg_image)
lc = LineCollection(trajectories, color='b')
plt.gca().add_collection(lc)
# import math
# from scipy.spatial.distance import directed_hausdorff
# from itertools import combinations_with_replacement
# from joblib import Parallel, delayed
# def hausforff_distance(u,v):
# return max(directed_hausdorff(u, v)[0], directed_hausdorff(v, u)[0])
# def timeSince(since):
# now = time.time()
# s = now - since
# m = math.floor(s / 60)
# s -= m * 60
# return '%dm %ds' % (m, s)
# start = time.time()
# dmatrix=np.zeros((len(trajectories),len(trajectories)))
# count = 0
# total = len(trajectories)*len(trajectories)
# def compute_single(dmatrix, i, j):
# return hausforff_distance(trajectories[i],trajectories[j])
# out = Parallel(n_jobs=10, verbose=3)(delayed(compute_single)(dmatrix, i, j) for i, j in combinations_with_replacement(range(len(trajectories)), 2))
# dmatrix = np.asarray(out).reshape((len(trajectories), len(trajectories)))
# end = time.time()
# print('duration:',end-start)start = time.time()
# Prepare data for GPU
# Concatenating all trajectories
trajs = cp.concatenate([cp.asarray(traj)
for traj in trajectories], axis=0).flatten()
# `offset` denote the starting index for each trajectory
offsets = cp.asarray([0] + [len(traj) for traj in trajectories]).cumsum()[:-1]
traj_spaces = cuspatial.GeoSeries.from_multipoints_xy(
trajs.astype('f8'), offsets.astype('i4'))
print(traj_spaces.head())
start1 = time.time()
dist = cuspatial.directed_hausdorff_distance(traj_spaces)
end1 = time.time()
dmatrix = dist.to_cupy().T.get()
end = time.time()
print('\nHausdorff distance calculation by Cuspatial in GPU takes: \n {0:.3f} seconds'.format(
end1 - start1))
print('\nThe complete Dmatrix calculation including data transitioning and transforming takes: \n {0:.3f} seconds'.format(
end - start))
start = time.time()
agg = cuml.AgglomerativeClustering(n_clusters=10, linkage='single')
agg_result = agg.fit(dmatrix)
end = time.time()
print('A complete AC search takes:\n {0:.3f} seconds'.format(end - start))
start = time.time()
dbscan = cuml.DBSCAN(eps=20, metric='precomputed', min_samples=2)
dbscan_result = dbscan.fit(dmatrix)
end = time.time()
print('A complete DBSCAN search takes:\n {0:.3f} seconds'.format(end - start))
def visualize_gt_vs_pred(n_clusters, linkage):
print('AgglomerativeClustering')
agg = cuml.AgglomerativeClustering(n_clusters=n_clusters, linkage='single')
agg_result = agg.fit(dmatrix)
labels = agg_result.labels_
print('#clusters = ', np.max(labels) + 1)
img = np.copy(bg_image)
plt.figure(figsize=(15, 15))
plt.imshow(img)
for label in range(np.max(labels) + 1):
color = (random.uniform(0.0, 1.0), random.uniform(
0.0, 1.0), random.uniform(0.0, 1.0), 1.0)
selected_trajectories = pick_traj_with_label(
label, labels, trajectories)
lc = LineCollection(selected_trajectories, color=color)
plt.gca().add_collection(lc)
interact(visualize_gt_vs_pred,
n_clusters=widgets.IntText(
value=2, description='n_clusters:', disabled=False),
linkage=widgets.ToggleButtons(
value='average',
options=['complete', 'average', 'single'],
description='linkage:',
disabled=False,
button_style=''
))
def visualize_gt_vs_pred(eps, min_samples):
print('DBSCAN')
dbscan = cuml.DBSCAN(eps=eps, metric='precomputed',
min_samples=min_samples)
dbscan_result = dbscan.fit(dmatrix)
labels = dbscan.labels_
print('#clusters = ', np.max(labels) + 1)
img = np.copy(bg_image)
plt.figure(figsize=(15, 15))
plt.imshow(img)
for label in range(np.max(labels) + 1):
color = (random.uniform(0.0, 1.0), random.uniform(
0.0, 1.0), random.uniform(0.0, 1.0), 1.0)
selected_trajectories = pick_traj_with_label(
label, labels, trajectories)
lc = LineCollection(selected_trajectories, color=color)
plt.gca().add_collection(lc)
interact(visualize_gt_vs_pred,
min_samples=widgets.IntText(
value=600, description='min_samples:', disabled=False),
eps=widgets.ToggleButtons(
value=23,
options=[5, 10, 11, 12, 13, 14, 15, 20, 23, 27, 30],
description='eps:',
disabled=False,
button_style='',
))
def visualize_gt_vs_pred(n_clusters, linkage):
print('AgglomerativeClustering')
agg = cuml.AgglomerativeClustering(n_clusters=n_clusters, linkage='single')
agg_result = agg.fit(dmatrix)
labels = agg_result.labels_
print('#clusters = ', np.max(labels) + 1)
plt.figure(figsize=(15, 15))
gs = gridspec.GridSpec(1, int(np.ceil(n_clusters)), wspace=0.2, hspace=0)
idx = 0
for idx, label in enumerate(range(np.max(labels) + 1)):
ax = plt.subplot(gs[idx])
ax.imshow(bg_image)
color = (0, 1.0, 0)
selected_trajectories = pick_traj_with_label(
label, labels, trajectories)
lc = LineCollection(selected_trajectories, color=color)
plt.gca().add_collection(lc)
interact(visualize_gt_vs_pred,
n_clusters=widgets.IntText(
value=2, description='n_clusters:', disabled=False),
linkage=widgets.ToggleButtons(
value='average',
options=['complete', 'average', 'single'],
description='linkage:',
disabled=False,
button_style='',
))
def visualize_gt_vs_pred(eps, min_samples):
print('DBSCAN')
dbscan = cuml.DBSCAN(eps=eps, metric='precomputed',
min_samples=min_samples)
dbscan_result = dbscan.fit(dmatrix)
labels = dbscan_result.labels_
print('#clusters = ', np.max(labels) + 1)
plt.figure(figsize=(15, 15))
gs = gridspec.GridSpec(
1, int(np.ceil((np.max(labels) + 1))) , wspace=0.2, hspace=0)
idx = 0
for label in range(np.max(labels) + 1):
ax = plt.subplot(gs[idx])
idx += 1
img = np.copy(bg_image)
color = (0.0, 1.0, 0.0)
selected_trajectories = pick_traj_with_label(
label, labels, trajectories)
lc = LineCollection(selected_trajectories, color=color)
plt.gca().add_collection(lc)
plt.imshow(img)
interact(visualize_gt_vs_pred,
min_samples=widgets.IntText(
value=600, description='min_samples:', disabled=False),
eps=widgets.ToggleButtons(
value=20,
options=[5, 10, 11, 12, 13, 14, 15, 20, 23, 27, 30],
description='eps:',
disabled=False,
button_style='',
))
| 0 |
rapidsai_public_repos/cuspatial | rapidsai_public_repos/cuspatial/notebooks/Taxi_Dropoff_Reverse_Geocoding.ipynb | %%time
import cudf
import cuspatial
import geopandas
import numpy as np
from shapely.geometry import Polygon
cudf.set_option("spill", True) # I/O (18GB NAD, 265 borough polygons, 13m taxi pickups and dropoffs.
try:
NAD = cudf.read_csv('NAD_r11.txt', usecols=[
'State',
'Longitude',
'Latitude',
])
NAD = NAD[NAD['State'] == 'NY']
NAD_Street = cudf.read_csv('NAD_r11.txt', usecols=[
'State',
'StN_PreDir',
'StreetName',
'StN_PosTyp',
'Add_Number',
])
NAD_Street = NAD_Street[NAD_Street['State'] == 'NY']
# Read taxi_zones.zip shapefile with GeoPandas, then convert to epsg:4326 for lon/lat
host_zones = geopandas.read_file('taxi_zones.zip')
host_lonlat = host_zones.to_crs(epsg=4326)
zones = cuspatial.from_geopandas(host_lonlat)
zones.set_index(zones['OBJECTID'], inplace=True)
taxi2015 = cudf.read_csv('taxi2015.csv')
except FileNotFoundError:
# If you don't want to download 22GB of data but want to get a handle on cuSpatial
# This section generates synthetic data in the NYC area, only the coordinates are randomized
# All other values are 'a'
print("DATA NOT FOUND - generating synthetic data")
xmin, ymin, xmax, ymax = -74.15, 40.5774, -73.7004, 40.9176
NAD_Street = cudf.DataFrame([['a', 'a', 'a', 'a', 'a']for i in range(1000)],
columns=['State', 'StN_PreDir', 'StreetName', 'StN_PosTyp', 'Add_Number'])
NAD = cudf.DataFrame({'Longitude': np.random.uniform(xmin, xmax, size=10000),
'Latitude': np.random.uniform(ymin, ymax, size=10000)})
zones = [Polygon(np.column_stack((np.random.uniform(xmin, xmax, size=10),
np.random.uniform(ymin, ymax, size=10)))) for i in range(31)]
zones = cuspatial.from_geopandas(geopandas.GeoDataFrame({'geometry': zones, 'label': 'a'}))
taxi2015 = cudf.DataFrame({'pickup_longitude': np.random.uniform(xmin, xmax, size=100000),
'pickup_latitude': np.random.uniform(ymin, ymax, size=100000),
'tpep_pickup_datetime': 'a',
'passenger_count': 'a',
'trip_distance': 'a',
'distance': 'a',
'fare_amount': 'a',
'tip_amount': 'a',
'pickup_address': 'a'})
# Convert DataFrames to GeoSeries
pickups = cuspatial.GeoSeries.from_points_xy(
cudf.DataFrame({
'x': taxi2015['pickup_longitude'],
'y': taxi2015['pickup_latitude'],
}).interleave_columns()
)
addresses = cuspatial.GeoSeries.from_points_xy(
cudf.DataFrame({
'x': NAD['Longitude'],
'y': NAD['Latitude'],
}).interleave_columns()
)zone_addresses = zones['geometry'].contains_properly(addresses, allpairs=True)
display(zone_addresses)zone_pickups = zones['geometry'].iloc[0:120].contains_properly(pickups, allpairs=True)
display(zone_pickups)
# You can do it one of two ways: .contains_properly, or write the pip yourself.# Add pickup and address counts to zones dataframe
zones["pickup_count"] = zone_pickups.groupby('polygon_index').count()
zones["address_count"] = zone_addresses.groupby('polygon_index').count()
zones.head(12)NEIGHBORHOOD_ID = 12
# Let's make two GeoSeries: For each zone, create a GeoSeries with all address Points
# repeated the number of times there are pickups in that zone, and another GeoSeries with
# the opposite: all pickups Points repeated the number of times there are addresses in that
# zone.
# addresses tiled
zone_address_point_ids = zone_addresses['point_index'][zone_addresses['polygon_index'] == NEIGHBORHOOD_ID]
pickups_count = len(zone_pickups[zone_pickups['polygon_index'] == NEIGHBORHOOD_ID])
addresses_tiled = NAD.iloc[
zone_address_point_ids
].tile(pickups_count)
# pickups tiled
zone_pickup_point_ids = zone_pickups['point_index'][zone_pickups['polygon_index'] == NEIGHBORHOOD_ID]
addresses_count = len(zone_addresses[zone_addresses['polygon_index'] == NEIGHBORHOOD_ID])
pickups_tiled = taxi2015[[
'pickup_longitude',
'pickup_latitude'
]].iloc[
zone_pickup_point_ids
].tile(addresses_count)
pickup_points = cuspatial.GeoSeries.from_points_xy(
cudf.DataFrame({
'x': pickups_tiled['pickup_longitude'],
'y': pickups_tiled['pickup_latitude']
}).interleave_columns()
)
address_points = cuspatial.GeoSeries.from_points_xy(
cudf.DataFrame({
'x': addresses_tiled['Longitude'],
'y': addresses_tiled['Latitude']
}).interleave_columns()
)
len(address_points)# get the list of addresses and their indices that are closest to a pickup point
haversines = cuspatial.haversine_distance(pickup_points, address_points)
gb_df = cudf.DataFrame({
'address': addresses_tiled.index,
'pickup': pickups_tiled.index,
'distance': haversines
})
address_indices_of_nearest = gb_df[['address', 'distance']].groupby('address').idxmin()
pickup_indices_of_nearest = gb_df[['pickup', 'distance']].groupby('pickup').idxmin()
address_nearest_pickups = gb_df.loc[address_indices_of_nearest['distance']]
pickups_nearest_address = gb_df.loc[pickup_indices_of_nearest['distance']]# Original data nearest pickups and addresses
nearest_pickups = taxi2015.iloc[pickups_nearest_address['pickup']]
nearest_addresses_lonlat = NAD.loc[pickups_nearest_address['address']]# Concatenate address fields
def build_address_string(NAD_Street):
blanks = cudf.Series([' '] * len(NAD_Street))
blanks.index = NAD_Street.index
NAD_Street['StN_PreDir'] = NAD_Street['StN_PreDir'].fillna('')
NAD_Street['StN_PosTyp'] = NAD_Street['StN_PosTyp'].fillna('')
street_names = NAD_Street['Add_Number'].astype('str').str.cat(
blanks
).str.cat(
NAD_Street['StN_PreDir']
).str.cat(
blanks
).str.cat(
NAD_Street['StreetName']
).str.cat(
blanks
).str.cat(
NAD_Street['StN_PosTyp']
)
return street_names.str.replace(' ', ' ')
nearest_addresses_street_name = NAD_Street.loc[pickups_nearest_address['address']]
street_names = build_address_string(nearest_addresses_street_name)# save the taxi2015 index
no_index = nearest_pickups.reset_index()
# set taxi2015 street names and distances based on their iloc positions
no_index['pickup_address'] = street_names.reset_index(drop=True)
no_index['distance'] = pickups_nearest_address['distance'].reset_index(drop=True)
# return the index
taxi_pickups_with_address = no_index.set_index(no_index['index'])
taxi_pickups_with_address.drop('index', inplace=True, axis=1)
display(taxi_pickups_with_address[[
'tpep_pickup_datetime',
'passenger_count',
'trip_distance',
'distance',
'pickup_longitude',
'pickup_latitude',
'fare_amount',
'tip_amount',
'pickup_address'
]])
display(taxi_pickups_with_address[[
'pickup_latitude',
'pickup_longitude',
'pickup_address',
'distance'
]].sort_values('distance'))# import cuxfilter
# from bokeh import palettes
# from cuxfilter.layouts import feature_and_double_base
# import cupy as cp
# from pyproj import Proj, Transformer
# display_pickups = taxi2015.iloc[address_nearest_pickups['pickup']]
# display_addresses = NAD.loc[address_nearest_pickups['address']]
# combined_pickups_and_addresses = cudf.concat([
# display_pickups[['pickup_longitude', 'pickup_latitude']].rename(
# columns={
# 'pickup_longitude': 'Longitude',
# 'pickup_latitude': 'Latitude'
# }
# ),
# display_addresses[['Longitude', 'Latitude']]], axis=0
# )
# combined_pickups_and_addresses['color'] = cp.repeat(cp.array([1, 2]), len(
# combined_pickups_and_addresses
# )//2)
# # Back to NYC CRS for display
# transform_4326_to_3857 = Transformer.from_crs('epsg:4326', 'epsg:3857')
# combined_pickups_and_addresses['location_x'], combined_pickups_and_addresses['location_y'] = transform_4326_to_3857.transform(
# combined_pickups_and_addresses['Latitude'].values_host, combined_pickups_and_addresses['Longitude'].values_host
# )# cux_df = cuxfilter.DataFrame.from_dataframe(combined_pickups_and_addresses)
# chart1 = cuxfilter.charts.scatter(
# title="Matched address pickup pairs",
# x='location_x',
# y='location_y',
# color_palette=["Green", "Red"],
# aggregate_col="color", aggregate_fn="mean",
# unselected_alpha=0.0,
# tile_provider="CartoLight", x_range=(-8239910.23,-8229529.24), y_range=(4968481.34,4983152.92),
# )
# d = cux_df.dashboard([chart1], theme=cuxfilter.themes.dark, title= 'NYC TAXI DATASSET')# chart1.view() | 0 |
rapidsai_public_repos/cuspatial | rapidsai_public_repos/cuspatial/notebooks/nyc_taxi_years_correlation.ipynb | import cuspatial
import geopandas as gpd
import cudf
from numba import cuda
import numpy as nptaxi2016 = cudf.read_csv("taxi2016.csv")
taxi2017 = cudf.read_parquet("taxi2017.parquet")set(taxi2017.columns).difference(set(taxi2016.columns))tzones = gpd.GeoDataFrame.from_file('tzones_lonlat.json')
taxi_zones = cuspatial.from_geopandas(tzones).geometry
taxi_zone_rings = cuspatial.GeoSeries.from_polygons_xy(
taxi_zones.polygons.xy, taxi_zones.polygons.ring_offset,
taxi_zones.polygons.part_offset,
cudf.Series(range(len(taxi_zones.polygons.part_offset)))
)pip_iterations = list(np.arange(0, 263, 31))
pip_iterations.append(263)
print(pip_iterations)def make_geoseries_from_lonlat(lon, lat):
lonlat = cudf.DataFrame({"lon": lon, "lat": lat}).interleave_columns()
return cuspatial.GeoSeries.from_points_xy(lonlat)
pickup2016 = make_geoseries_from_lonlat(taxi2016['pickup_longitude'] , taxi2016['pickup_latitude'])
dropoff2016 = make_geoseries_from_lonlat(taxi2016['dropoff_longitude'] , taxi2016['dropoff_latitude'])%%time
taxi2016['PULocationID'] = 264
taxi2016['DOLocationID'] = 264
for i in range(len(pip_iterations)-1):
start = pip_iterations[i]
end = pip_iterations[i+1]
zone = taxi_zone_rings[start:end]
pickups = cuspatial.point_in_polygon(pickup2016, zone)
dropoffs = cuspatial.point_in_polygon(dropoff2016, zone)
for j in pickups.columns:
taxi2016['PULocationID'].loc[pickups[j]] = j
for j in dropoffs.columns:
taxi2016['DOLocationID'].loc[dropoffs[j]] = jdel pickups
del dropoffsprint(taxi2016['DOLocationID'].corr(taxi2016['PULocationID']))print(format((taxi2016['DOLocationID'] == taxi2016['PULocationID']).sum()/taxi2016.shape[0], '.2f'), '%')print(taxi2016['DOLocationID'].value_counts().corr(taxi2017['DOLocationID'].value_counts()))
print(taxi2016['PULocationID'].value_counts().corr(taxi2017['PULocationID'].value_counts()))taxi2017.dtypestaxi2016.dtypestaxi2016["tpep_pickup_datetime"]=taxi2016["tpep_pickup_datetime"].astype("datetime64[us]")
taxi2016["tpep_dropoff_datetime"]=taxi2016["tpep_dropoff_datetime"].astype("datetime64[us]")df = cudf.concat([taxi2017, taxi2016])print(df.query('PULocationID == 204')) | 0 |
rapidsai_public_repos/cuspatial | rapidsai_public_repos/cuspatial/notebooks/README.md | # cuSpatial Notebooks
## Intro
These notebooks provide examples of how to use cuSpatial. Some of these notebooks are designed to be self-contained with the `runtime` version of the [RAPIDS Docker Container](https://hub.docker.com/r/rapidsai/rapidsai/) and [RAPIDS Nightly Docker Containers](https://hub.docker.com/r/rapidsai/rapidsai-nightly) and can run on air-gapped systems, while others require an additional download. You can quickly get this container using the install guide from the [RAPIDS.ai Getting Started page](https://rapids.ai/start.html#get-rapids)
## Getting Started
For a good overview of how cuSpatial works,
- Read our docs: [our precompiled docs (external link)](https://docs.rapids.ai/api/cuspatial/stable/api.html) or [build the docs them locally yourself](../docs/source/) in the
documentation tree,
- Read [our introductory blog (external link)](https://medium.com/rapids-ai/releasing-cuspatial-to-accelerate-geospatial-and-spatiotemporal-processing-b686d8b32a9)
- Run [our python demos](../python/cuspatial/demos)
## Notebook Information
Notebook Title | Data set(s) | Notebook Description | External Download (Size)
--- | --- | --- | ---
[NYC Taxi Years Correlation](nyc_taxi_years_correlation.ipynb) | [NYC Taxi Yellow 01/2016, 01/2017, taxi zone data](https://www1.nyc.gov/site/tlc/about/tlc-trip-record-data.page) | Demonstrates using Point in Polygon to correlate the NYC Taxi datasets pre-2017 `lat/lon` locations with the post-2017 `LocationID` for cross format comparisons. | Yes (~3GB)
[Stop Sign Counting By Zipcode Boundary](ZipCodes_Stops_PiP_cuSpatial.ipynb) | [Stop Sign Locations](https://wiki.openstreetmap.org/wiki/Tag:highway%3Dstop) [Zipcode Boundaries](https://catalog.data.gov/dataset/tiger-line-shapefile-2019-2010-nation-u-s-2010-census-5-digit-zip-code-tabulation-area-zcta5-na) [USA States Boundaries](https://wiki.openstreetmap.org/wiki/Tag:boundary%3Dadministrative) | Demonstrates Quadtree Point-in-Polygon to categorize stop signs by zipcode boundaries. | Yes (~1GB)
[Taxi Dropoff Reverse Geocoding (GTC 2023)](Taxi_Dropoff_Reverse_Geocoding.ipynb) | [National Address Database](https://nationaladdressdata.s3.amazonaws.com/NAD_r12_TXT.zip) [NYC Taxi Zones](https://d37ci6vzurychx.cloudfront.net/misc/taxi_zones.zip) [taxi2015.csv](https://rapidsai-data.s3.us-east-2.amazonaws.com/viz-data/nyc_taxi.tar.gz) | Reverse Geocoding of 22GB of datasets in NYC delivered for GTC 2023 | Yes (~22GB)
*Each user is responsible for checking the content of datasets and the applicable licenses and determining if suitable for the intended use.*
## For more details
Many more examples can be found in the [RAPIDS Notebooks
Contrib](https://github.com/rapidsai/notebooks-contrib) repository,
which contains community-maintained notebooks.
| 0 |
rapidsai_public_repos/cuspatial | rapidsai_public_repos/cuspatial/notebooks/ZipCodes_Stops_PiP_cuSpatial.ipynb | # Download the datasets and save as:
# 1. USA_Stops_Vertices.csv
# 2. USA_Zipcodes_2019_Tiger.csv
# 3. USA_States.csv
!if [ ! -f "USA_States.csv" ]; then curl "https://data.rapids.ai/cuspatial/benchmark/USA_States.csv" -o USA_States.csv; else echo "USA_States.csv found"; fi
!if [ ! -f "USA_Stops_Vertices.csv" ]; then curl "https://data.rapids.ai/cuspatial/benchmark/USA_Stops_Vertices.csv" -o USA_Stops_Vertices.csv; else echo "USA_Stops_Vertices.csv found"; fi
!if [ ! -f "USA_Zipcodes_2019_Tiger.csv" ]; then curl "https://data.rapids.ai/cuspatial/benchmark/USA_Zipcodes_2019_Tiger.csv" -o USA_Zipcodes_2019_Tiger.csv; else echo "USA_Zipcodes_2019_Tiger.csv found"; fi# Import Necessary Packages
import os
import cuspatial, cudf
import pandas as pd
import geopandas as gpd
import numpy as np
import cupy as cp
from shapely import wkt
import pydeck as pdk# Root folder for datasets
DATASET_ROOT = "./"
def path_of(dataset):
return os.path.join(DATASET_ROOT, dataset)# Import Stop Sign CSV
d_stops = cudf.read_csv(path_of("USA_Stops_Vertices.csv"), usecols=["x", "y"])# Import CSV of ZipCodes
d_zip = cudf.read_csv(
path_of("USA_Zipcodes_2019_Tiger.csv"),
usecols=["WKT", "ZCTA5CE10", "INTPTLAT10", "INTPTLON10"])
d_zip.INTPTLAT10 = d_zip.INTPTLAT10.astype("float")
d_zip.INTPTLON10 = d_zip.INTPTLON10.astype("float")# %%time
# # Load WKT as shapely objects
# h_zip = d_zip.to_pandas()
# h_zip["WKT"] = h_zip["WKT"].apply(wkt.loads)
# h_zip = gpd.GeoDataFrame(h_zip, geometry="WKT", crs='epsg:4326')
# # Transfer back to GPU with cuSpatial
# d_zip = cuspatial.from_geopandas(h_zip)%%time
def parse_multipolygon_WKT_cudf(wkts, dtype="f8"):
def offsets_from_listlen(list_len):
return cudf.concat([cudf.Series([0]), list_len.cumsum()])
def traverse(s, split_pat, regex=False):
"""Traverse one level lower into the geometry hierarchy,
using `split_pat` as the child delimiter.
"""
s = s.str.split(split_pat, regex=regex)
list_len = s.list.len()
return s.explode(), list_len
wkts = (wkts.str.lstrip("MULTIPOLYGON ")
.str.strip("(")
.str.strip(")"))
# split into list of polygons
wkts, num_polygons = traverse(wkts, "\)\),\s?\(\(", regex=True)
# split polygons into rings
wkts, num_rings = traverse(wkts, "\),\s?\(", regex=True)
# split coordinates into lists
wkts, num_coords = traverse(wkts, ",")
# split into x-y coordinates
wkts = wkts.str.split(" ")
wkts = wkts.explode().astype(cp.dtype(dtype))
# compute ring_offsets
ring_offsets = offsets_from_listlen(num_coords)
# compute part_offsets
part_offsets = offsets_from_listlen(num_rings)
# compute geometry_offsets
geometry_offsets = offsets_from_listlen(num_polygons)
return cuspatial.GeoSeries.from_polygons_xy(
wkts, ring_offsets, part_offsets, geometry_offsets)
d_wkt = parse_multipolygon_WKT_cudf(d_zip.WKT)
d_zip.WKT = d_wkt# Load State Boundaries
states = gpd.read_file("USA_States.csv", geometry='WKT', crs='epsg:4326')
d_states = cuspatial.from_geopandas(states)class QuadTree:
"""Helper class to use cuspatial quadtree interface
"""
def __init__(self,
df,
x_column,
y_column,
x_min=None,
x_max=None,
y_min=None,
y_max=None,
scale = -1,
max_depth = 15,
min_size = 12):
self.x_min = df[x_column].min() if not x_min else x_min
self.x_max = df[x_column].max() if not x_max else x_max
self.y_min = df[y_column].min() if not y_min else y_min
self.y_max = df[y_column].max() if not y_max else y_max
self.scale = scale
self.max_depth = max_depth
self.min_size = min_size
self.point_df = df
self.x_column = x_column
self.y_column = y_column
self.polygon_point_mapping = None
self.d_points = cuspatial.GeoSeries.from_points_xy(
cudf.DataFrame({"x": df[x_column], "y": df[y_column]}
).interleave_columns())
self.point_indices, self.quadtree = (
cuspatial.quadtree_on_points(self.d_points,
self.x_min,
self.x_max,
self.y_min,
self.y_max,
self.scale,
self.max_depth,
self.min_size))
def set_polygon(self, df, poly_column):
polys = df[poly_column]
parts = polys.polygons.part_offset
rings = polys.polygons.ring_offset
x = polys.polygons.x
y = polys.polygons.y
single_polys = cuspatial.GeoSeries.from_polygons_xy(
polys.polygons.xy, rings, parts, cp.arange(len(parts))
)
geometries = cudf.Series(polys.polygons.geometry_offset)
poly_bboxes = cuspatial.polygon_bounding_boxes(single_polys)
intersections = cuspatial.join_quadtree_and_bounding_boxes(
self.quadtree, poly_bboxes, self.x_min, self.x_max, self.y_min, self.y_max, self.scale, self.max_depth
)
polygon_point_mapping = cuspatial.quadtree_point_in_polygon(
intersections,
self.quadtree,
self.point_indices,
self.d_points,
single_polys
)
# Update Polygon Index to MultiPolygon Index
polygon_index = geometries.searchsorted(polygon_point_mapping.polygon_index, side="right")-1
polygon_point_mapping.polygon_index = polygon_index
self.polygon_point_mapping = polygon_point_mapping.reset_index(drop=True)
# Remap point indices
idx_of_idx = self.point_indices.take(
self.polygon_point_mapping.point_index
).reset_index(drop=True)
self.polygon_point_mapping.point_index = idx_of_idx
self.polygon_df = df
def _subset_geodf(self, geodf, columns):
res = cudf.DataFrame()
for col in columns:
res[col] = geodf[col]
return res
def points(self, columns = None):
if self.polygon_point_mapping is None:
raise ValueError("First set polygon dataframe.")
if not columns:
df = self.point_df
else:
df = self._subset_geodf(self.point_df, columns)
if any(dtype == "geometry" for dtype in df.dtypes):
df = cuspatial.GeoDataFrame(df)
mapping = self.polygon_point_mapping
res = df.iloc[mapping.point_index]
res = res.reset_index(drop=True)
res["polygon_index"] = mapping.polygon_index
res["point_index"] = mapping.point_index
return res
def polygons(self, columns = None):
if self.polygon_point_mapping is None:
raise ValueError("First set polygon dataframe.")
if not columns:
df = self.polygon_df
else:
df = self._subset_geodf(self.polygon_df, columns)
if any(dtype == "geometry" for dtype in df.dtypes):
df = cuspatial.GeoDataFrame(df)
mapping = self.polygon_point_mapping
res = df.iloc[mapping.polygon_index]
res = res.reset_index(drop=True)
res["polygon_index"] = mapping.polygon_index
res["point_index"] = mapping.point_index
return res
def point_left_join_polygon(self, point_columns=None, polygon_columns=None):
points = self.points(point_columns)
polygons = self.polygons(polygon_columns)
joined = points.merge(polygons, on=["polygon_index", "point_index"], how="left")
joined = joined.drop(["polygon_index", "point_index"], axis=1)
return cuspatial.GeoDataFrame(joined)# Use quadtree to filter zip codes
# Build a point quadtree using the geometric center of the zip code region
zipcode_quadtree = QuadTree(d_zip, x_column="INTPTLON10", y_column="INTPTLAT10")
# Pass boundary
zipcode_quadtree.set_polygon(d_states, poly_column='geometry')
# Join state and zip code boundaries
zipcode_by_state = zipcode_quadtree.point_left_join_polygon(["WKT", "ZCTA5CE10"], ["STUSPS"])
# Get Californian zipcodes
CA_zipcode = zipcode_by_state[zipcode_by_state.STUSPS == 'CA']len(CA_zipcode), len(d_zip)# Build a second quadtree with all stop signs in the US
stop_quadtree = QuadTree(d_stops, x_column='x', y_column='y')
# Pass zip code polygons
stop_quadtree.set_polygon(CA_zipcode, poly_column="WKT")
# Join the stop signs and the zip code dataframe
stop_by_zipcode = stop_quadtree.point_left_join_polygon(["x", "y"], ["ZCTA5CE10"])stop_by_zipcode.head()# Count the Stop Signs by California Zip Codes
stop_counts = stop_by_zipcode.groupby("ZCTA5CE10").x.count().rename("stop_count")
stop_counts.head()# Fetch the polygon boundaries
stop_counts_and_bounds = cuspatial.GeoDataFrame(CA_zipcode.merge(stop_counts, on="ZCTA5CE10", how="left"))
stop_counts_and_bounds["stop_count"] = stop_counts_and_bounds["stop_count"].astype("int").fillna(0)
print("DataFrame Size: ", len(stop_counts_and_bounds))# host_df = stop_counts_and_bounds.to_geopandas()
# host_df = host_df.rename({"WKT": "geometry"}, axis=1).set_geometry("geometry")
# host_df.head()# # Visualize the Dataset
# # Geo Center of CA: 120°4.9'W 36°57.9'N
# view_state = pdk.ViewState(
# **{"latitude": 33.96500, "longitude": -118.08167, "zoom": 6, "maxZoom": 16, "pitch": 95, "bearing": 0}
# )
# gpd_layer = pdk.Layer(
# "GeoJsonLayer",
# data=host_df,
# get_polygon="geometry",
# get_elevation="stop_count",
# extruded=True,
# elevation_scale=50,
# get_fill_color=[227,74,51],
# get_line_color=[255, 255, 255],
# auto_highlight=False,
# filled=True,
# wireframe=True,
# pickable=True
# )
# tooltip = {"html": "<b>Stop Sign Count:</b> {stop_count} <br> <b>ZipCode:</b> {ZCTA5CE10}"}
# r = pdk.Deck(
# gpd_layer,
# initial_view_state=view_state,
# map_style=pdk.map_styles.LIGHT,
# tooltip=tooltip,
# )
# r.to_html("geopandas_layer.html", notebook_display=True) | 0 |
rapidsai_public_repos/cuspatial | rapidsai_public_repos/cuspatial/notebooks/binary_predicates.ipynb | import cuspatial
import numpy as np
import time
import geopandas
from shapely.geometry import GeometryCollection
from cuspatial.testing.test_geometries import (
features,
point_point_dispatch_list,
point_linestring_dispatch_list,
point_polygon_dispatch_list,
linestring_linestring_dispatch_list,
linestring_polygon_dispatch_list,
polygon_polygon_dispatch_list
)
import matplotlib.pyplot as plt
import matplotlib.ticker as ticker
import ipywidgets as widgets# Create a gridded output so that we can visualize all of the features used in this benchmark
def show_feature_table(features, width=6):
columns = [widgets.Output() for _ in range(len(features))]
for i in range(len(columns)):
with columns[i]:
display(GeometryCollection(features[i]))
rows = [columns[i:i + width] for i in range(0, len(columns), width)]
[display(widgets.HBox(row)) for row in rows]show_feature_table([features[feature][1:3] for feature in point_point_dispatch_list])
print(len(point_point_dispatch_list))show_feature_table([features[feature][1:3] for feature in point_linestring_dispatch_list])
print(len(point_linestring_dispatch_list))show_feature_table([features[feature][1:3] for feature in point_polygon_dispatch_list])
print(len(point_polygon_dispatch_list))show_feature_table([features[feature][1:3] for feature in linestring_linestring_dispatch_list])
print(len(linestring_linestring_dispatch_list))show_feature_table([features[feature][1:3] for feature in linestring_polygon_dispatch_list])
print(len(linestring_polygon_dispatch_list))show_feature_table([features[feature][1:3] for feature in polygon_polygon_dispatch_list])
print(len(polygon_polygon_dispatch_list))_ = [print(name) for name in polygon_polygon_dispatch_list]def sample_test_data(features, dispatch_list, size, lib=cuspatial):
"""Creates either a cuspatial or geopandas GeoSeries object using the
Feature objects in `features`, the list of features to sample from in
`dispatch_list`, and the size of the resultant GeoSeries.
"""
geometry_tuples = [features[key][1:3] for key in dispatch_list]
geometries = [
[lhs_geo for lhs_geo, _ in geometry_tuples],
[rhs_geo for _, rhs_geo in geometry_tuples]
]
lhs = lib.GeoSeries(list(geometries[0]))
rhs = lib.GeoSeries(list(geometries[1]))
np.random.seed(0)
lhs_picks = np.random.randint(0, len(lhs), size)
rhs_picks = np.random.randint(0, len(rhs), size)
return (
lhs[lhs_picks].reset_index(drop=True),
rhs[rhs_picks].reset_index(drop=True)
)def benchmark(features, dispatch_list, predicate, size, lib):
"""Times the speed of producing the test data as well as the predicate execution.
"""
(lhs, rhs) = sample_test_data(features, dispatch_list, size, lib)
fn = getattr(lhs, predicate)
predicate = time.time()
cuspatial_result = fn(rhs)
return size / (time.time() - predicate)def benchmark_dispatch_list(dispatch_list, size, engines, predicates):
"""Returns a dictionary object of benchmark times for all of the
predicates of the form:
{
"contains": (
[geopandas_predicate_time],
[cuspatial_predicate_time],
),
"geom_equals": (
[geopandas_predicate_time],
[cuspatial_predicate_time],
),
...
}
"""
return {predicate: [
benchmark(
features, dispatch_list, predicate, size, engine
) for engine in engines] for predicate in predicates
}"""List of engines and predicates to test."""
engines = [geopandas, cuspatial]
predicates = [
'contains',
'geom_equals',
'intersects',
'covers',
'crosses',
'disjoint',
'overlaps',
'touches',
'within'
]"""Chart rendering functions"""
def plot_grouped_bars(results_dict, title):
values = np.array(list(results_dict.values()))
x = np.arange(len(predicates)) # The label locations
width = 0.35 # The width of the bars
fig, ax = plt.subplots()
# Plot bars
rects1 = ax.bar(x - width/2, values[:,0], width, label='GeoPandas', color='#36c9dd')
rects2 = ax.bar(x + width/2, values[:,1], width, label='cuSpatial', color='#7400ff')
# Add text for labels, title, custom x-axis tick labels, and legend
ax.set_ylabel('Binops per Second')
ax.set_yscale('log')
ax.set_title(title)
ax.set_xticks(x)
ax.set_xticklabels(predicates)
ax.legend()
fig.tight_layout()
plt.xticks(rotation=45)
plt.show()size = 1_000_000
point_point_results = benchmark_dispatch_list(
point_point_dispatch_list,
size,
engines,
predicates
)plot_grouped_bars(point_point_results, 'Point-Point Binops: Log(10) Ops/Second')size = 10_000_000
point_linestring_results = benchmark_dispatch_list(
point_linestring_dispatch_list,
size,
engines,
predicates
)plot_grouped_bars(point_linestring_results, 'Point-Linestring Binops: Log(10) Ops/Second')size = 10_000_000
point_polygon_results = benchmark_dispatch_list(
point_polygon_dispatch_list,
size,
engines,
predicates
)plot_grouped_bars(point_polygon_results, 'Point-Polygon Binops: Log(10) Ops/Second')size = 10_000_000
linestring_linestring_results = benchmark_dispatch_list(
linestring_linestring_dispatch_list,
size,
engines,
predicates
)plot_grouped_bars(linestring_linestring_results, 'LineString-LineString Binops: Log(10) Ops/Second')size = 5_000_000
linestring_polygon_results = benchmark_dispatch_list(
linestring_polygon_dispatch_list,
size,
engines,
predicates
)plot_grouped_bars(linestring_polygon_results, 'LineString-Polygon Binops: Log(10) Ops/Second')size = 5_000_000
polygon_polygon_results = benchmark_dispatch_list(
polygon_polygon_dispatch_list,
size,
engines,
predicates
)plot_grouped_bars(polygon_polygon_results, 'Polygon+Polygon Binops: Log(10) Ops/Second') | 0 |
rapidsai_public_repos/cuspatial | rapidsai_public_repos/cuspatial/notebooks/streets_3857.csv | index,name,geometry
0,Columbus Avenue,"LINESTRING (-8234860.077273001 4980333.535141255, -8234863.606100859 4980327.125245653, -8234906.920514727 4980247.839889491, -8234914.890990266 4980233.902904723)"
1,West 80th Street,"LINESTRING (-8235173.853521699 4980508.441645807, -8235160.951592717 4980501.237735307, -8234872.53392402 4980340.474299034, -8234860.077273001 4980333.535141255)"
2,Amsterdam Avenue,"LINESTRING (-8235173.853521699 4980508.441645807, -8235168.565845888 4980517.997861814, -8235145.901197561 4980559.030889457, -8235134.735852635 4980579.304885429, -8235126.052932353 4980594.359714606, -8235121.332985944 4980602.7104501715)"
3,West 80th Street,"LINESTRING (-8235369.475262869 4980617.397764739, -8235349.727185204 4980606.400654257)"
4,Broadway,"LINESTRING (-8235369.475262869 4980617.397764739, -8235373.549556233 4980610.149667802, -8235417.108872982 4980532.5233280575, -8235425.2574597085 4980517.997861814)"
5,West 80th Street,"LINESTRING (-8235490.869167581 4980685.924156031, -8235475.918959967 4980677.749774716, -8235380.71853144 4980623.660830522, -8235369.475262869 4980617.397764739)"
6,West End Avenue,"LINESTRING (-8235490.869167581 4980685.924156031, -8235486.394124051 4980694.010331332, -8235463.963246655 4980734.044348783, -8235443.8144188225 4980770.755819384, -8235439.216923854 4980779.621285317)"
7,West End Avenue,"LINESTRING (-8235490.869167581 4980685.924156031, -8235495.143836027 4980678.205540402, -8235521.882777716 4980629.909198275, -8235538.213347016 4980599.902367521, -8235546.139294758 4980585.714946578)"
8,West 80th Street,"LINESTRING (-8235639.024277877 4980767.712452337, -8235628.482322101 4980761.890361499, -8235504.962215115 4980693.642777762, -8235490.869167581 4980685.924156031)"
9,Riverside Drive,"LINESTRING (-8235639.024277877 4980767.712452337, -8235700.9624425545 4980689.761412929, -8235711.137044013 4980677.279306935)"
10,Riverside Drive,"LINESTRING (-8235639.024277877 4980767.712452337, -8235597.457580015 4980821.12588712, -8235591.145764886 4980829.785565924, -8235584.934137301 4980839.253882267, -8235580.659468856 4980847.149053692, -8235576.4627240505 4980856.191017635)"
11,Central Park West,"LINESTRING (-8234337.5213193195 4980531.802934991, -8234332.111192067 4980541.300366208, -8234290.11034819 4980617.838825577, -8234285.9803950805 4980625.322160852)"
12,Central Park West,"LINESTRING (-8234337.5213193195 4980531.802934991, -8234342.152210135 4980523.496365725, -8234383.941546979 4980447.855453934, -8234389.073375505 4980438.5786399795)"
13,Columbus Avenue,"LINESTRING (-8234653.345846648 4980707.477503603, -8234658.288432041 4980698.509188124, -8234699.677018717 4980623.352087748, -8234704.897902836 4980613.869278743)"
14,West 84th Street,"LINESTRING (-8234653.345846648 4980707.477503603, -8234638.139604205 4980699.02376338, -8234350.423248303 4980538.845147037, -8234337.5213193195 4980531.802934991)"
15,West 84th Street,"LINESTRING (-8234967.901331782 4980881.096893321, -8234955.889958726 4980874.480804444, -8234834.507185966 4980807.467428015, -8234666.359095122 4980714.652161917, -8234653.345846648 4980707.477503603)"
16,Amsterdam Avenue,"LINESTRING (-8234967.901331782 4980881.096893321, -8234962.402148937 4980891.035737481, -8234920.05621464 4980967.665153757, -8234916.026449073 4980974.957623791)"
17,West 84th Street,"LINESTRING (-8235159.081425273 4980987.690054286, -8235139.555986586 4980976.7954447195)"
18,Broadway,"LINESTRING (-8235159.081425273 4980987.690054286, -8235163.055531093 4980980.691626231, -8235207.494271816 4980904.620801189, -8235212.470253055 4980896.166890275)"
19,Central Park West,"LINESTRING (-8235533.771699333 4978372.141712271, -8235528.895905635 4978380.343561215, -8235485.269797194 4978455.057136741, -8235480.906073155 4978463.597127373)"
20,West 61st Street,"LINESTRING (-8235664.839267793 4978445.179566528, -8235640.070681091 4978431.083468001)"
21,Broadway,"LINESTRING (-8235664.839267793 4978445.179566528, -8235664.382857881 4978432.626835461, -8235661.1434606975 4978337.320677582, -8235660.842898073 4978321.402111682)"
22,West 61st Street,"LINESTRING (-8235845.588724992 4978546.189952219, -8235831.551337204 4978538.267243059, -8235808.074056596 4978525.008846191, -8235800.493199273 4978520.966655605, -8235793.268564321 4978516.939165554, -8235782.414913968 4978510.883234739, -8235682.116052764 4978454.836655154, -8235677.529689742 4978452.087985122, -8235664.839267793 4978445.179566528)"
23,Columbus Avenue,"LINESTRING (-8235845.588724992 4978546.189952219, -8235850.509046487 4978537.355911434, -8235889.303889028 4978467.374715973, -8235896.8736144025 4978453.7195485225)"
24,Amsterdam Avenue,"LINESTRING (-8236159.209126406 4978719.7562211165, -8236154.099561778 4978728.72271954, -8236114.792649579 4978800.072821683, -8236108.803660973 4978810.891506497)"
25,West 61st Street,"LINESTRING (-8236159.209126406 4978719.7562211165, -8236145.973238949 4978712.4654350225, -8236111.920606717 4978693.327147422, -8236081.463594035 4978676.570152206, -8236077.033078303 4978659.871982064)"
26,West 61st Street,"LINESTRING (-8236477.939092444 4978896.559450165, -8236463.467558641 4978889.15093668, -8236406.694618337 4978857.56192141, -8236398.790934491 4978853.049213283, -8236350.867893704 4978825.973008312, -8236250.001303096 4978769.689432636, -8236242.375917978 4978765.544246102, -8236177.343071456 4978729.398882051, -8236159.209126406 4978719.7562211165)"
27,West 61st Street,"LINESTRING (-8236477.939092444 4978896.559450165, -8236494.358717338 4978905.570209262, -8236581.510746677 4978955.857159421, -8236591.618556444 4978961.663474054)"
28,West End Avenue,"LINESTRING (-8236477.939092444 4978896.559450165, -8236472.239534517 4978906.246384016, -8236452.380137358 4978942.451200597, -8236431.129246566 4978980.890484869, -8236426.8657100685 4978988.578359877)"
29,West End Avenue,"LINESTRING (-8236477.939092444 4978896.559450165, -8236482.870545888 4978887.710393042, -8236508.273653687 4978841.363219845, -8236523.379708587 4978814.18415208, -8236528.667384399 4978804.997085704)"
30,Central Park West,"LINESTRING (-8234073.460355208 4981009.346986329, -8234077.746155604 4981001.495791566, -8234118.900971349 4980925.365994468, -8234123.810160893 4980916.720933372)"
31,West 79th Street,"LINESTRING (-8235711.137044013 4980677.279306935, -8235724.873869178 4980685.07143248, -8235732.688497431 4980689.614391563)"
32,Riverside Drive,"LINESTRING (-8235711.137044013 4980677.279306935, -8235721.745791486 4980663.738665826, -8235722.892382242 4980662.283158291, -8235775.958383502 4980595.241834223, -8235783.24981015 4980585.935476279)"
33,Riverside Drive,"LINESTRING (-8235711.137044013 4980677.279306935, -8235700.9624425545 4980689.761412929, -8235639.024277877 4980767.712452337)"
34,West 79th Street,"LINESTRING (-8235711.137044013 4980677.279306935, -8235699.3149140915 4980670.560441408, -8235660.330828416 4980648.889558727, -8235559.720272637 4980592.904217412, -8235546.139294758 4980585.714946578)"
35,,"LINESTRING (-8236009.506675187 4980464.8360157795, -8235974.307452198 4980508.662173764, -8235966.270184963 4980520.835324675, -8235958.5668762 4980531.567704612, -8235950.540740913 4980541.903144664, -8235941.334619024 4980552.650249687, -8235932.173024933 4980563.015115945, -8235921.163527292 4980574.982507124, -8235909.586300251 4980586.126602025, -8235897.029461689 4980598.108723528, -8235880.977191116 4980611.737485738, -8235867.073386718 4980622.646390016, -8235853.369957399 4980632.673183405, -8235838.686916565 4980642.714689155, -8235829.603246115 4980648.419092337, -8235820.219013041 4980654.329328014, -8235810.745724375 4980660.121950531, -8235802.140727738 4980664.900131591, -8235792.834418306 4980669.5606981395, -8235782.414913968 4980673.80960775, -8235771.6948470045 4980677.617455651, -8235761.164023177 4980680.969539202, -8235754.050707715 4980683.130751575, -8235732.688497431 4980689.614391563)"
36,Queensboro Bridge Approach,"LINESTRING (-8233691.534314247 4976856.461252469, -8233683.407991418 4976870.54038251, -8233673.71206377 4976887.323672597, -8233639.069438235 4976945.4334654, -8233634.839297585 4976953.384275769)"
37,East 57th Street,"LINESTRING (-8233691.534314247 4976856.461252469, -8233680.279913725 4976850.171209278, -8233529.653510733 4976766.181885139, -8233514.848018458 4976757.937302738)"
38,East 57th Street,"LINESTRING (-8233691.534314247 4976856.461252469, -8233697.823865476 4976859.767935676, -8233710.247120648 4976866.748715011, -8233732.488754909 4976879.225951977, -8233763.346517757 4976896.14152483, -8233780.434059593 4976905.503153324)"
39,East 58th Street,"LINESTRING (-8233634.839297585 4976953.384275769, -8233625.410536715 4976949.357432001, -8233534.084026468 4976898.684007034, -8233475.452050666 4976865.60239722, -8233459.911849751 4976856.975625339)"
40,Queensboro Bridge Approach,"LINESTRING (-8233634.839297585 4976953.384275769, -8233627.88182941 4976966.184947094, -8233622.716605037 4976977.471890489, -8233607.3099875115 4977007.77622229)"
41,,"LINESTRING (-8233250.87610994 4976943.273079966, -8233294.680329568 4976972.298706481, -8233390.214716567 4977027.557859133, -8233500.287429063 4977091.223844874, -8233505.374729792 4977094.574697722, -8233508.146585112 4977096.926174091, -8233510.295051285 4977098.910232718, -8233512.4546494065 4977101.4233742235, -8233513.97972643 4977104.671353386, -8233514.725567019 4977107.199193117, -8233515.493671506 4977110.020968476, -8233515.638386843 4977112.490022583, -8233515.538199302 4977116.090727607, -8233515.048393542 4977119.426892222, -8233514.1467056675 4977123.24805133, -8233512.554836949 4977128.186166855)"
42,Ed Koch Queensboro Bridge Lower Level,"LINESTRING (-8233250.87610994 4976943.273079966, -8233393.9550514575 4977021.003166706, -8233535.943061964 4977101.188226453)"
43,Central Park South,"LINESTRING (-8235313.069676885 4978016.499703622, -8235325.9048141735 4978023.672385238, -8235371.545805399 4978049.173662735, -8235503.314686651 4978122.7970328415)"
44,Central Park South,"LINESTRING (-8235313.069676885 4978016.499703622, -8235300.112088157 4978009.268234865, -8235153.537714631 4977927.517734824, -8235092.924251894 4977893.712442142, -8235058.326154154 4977874.414081865, -8235050.778692679 4977870.210483694, -8235017.527560778 4977851.661760917, -8235012.384600304 4977848.795677735, -8234997.812878959 4977840.667764359)"
45,7th Avenue,"LINESTRING (-8235313.069676885 4978016.499703622, -8235320.450159125 4978002.330733284, -8235359.345189208 4977927.738204509, -8235363.842496636 4977919.110494583)"
46,East 62nd Street,"LINESTRING (-8233411.777301933 4977311.236228266, -8233402.01458259 4977305.680744378, -8233271.258708703 4977233.592013753, -8233255.150778388 4977224.685675393)"
47,Queensboro Bridge Exit,"LINESTRING (-8233411.777301933 4977311.236228266, -8233407.613952976 4977319.628248279, -8233368.930429927 4977397.199660737, -8233364.555573939 4977406.047367605)"
48,,"LINESTRING (-8237475.896063508 4976826.862813516, -8237505.6072356 4976831.727297573, -8237527.971321302 4976835.827574535, -8237553.274241557 4976839.648622717)"
49,Galvin Avenue,"LINESTRING (-8237303.217269389 4976915.908239164, -8237309.86304299 4976908.280781088, -8237367.159184902 4976842.411535408, -8237372.714027492 4976836.312553645)"
50,West 41st Street,"LINESTRING (-8237303.217269389 4976915.908239164, -8237323.210249935 4976927.22451742, -8237485.770102341 4977017.035081503, -8237491.3472088305 4977020.003796948, -8237500.185976399 4977024.7067143535)"
51,Lincoln Tunnel,"LINESTRING (-8237553.274241557 4976839.648622717, -8237580.1467666365 4976846.541209561, -8237603.635179194 4976854.183315799, -8237627.50207802 4976863.985795437)"
52,West 39th Street,"LINESTRING (-8237292.441542681 4976672.170544482, -8237308.182118678 4976679.856602624, -8237403.415943052 4976733.571001838)"
53,10th Avenue,"LINESTRING (-8237292.441542681 4976672.170544482, -8237285.651053743 4976684.280130224, -8237273.417041704 4976706.427190549, -8237247.501864248 4976753.219817543, -8237242.180792588 4976762.831144928)"
54,West 72nd Street,"LINESTRING (-8236048.913774927 4979991.390793099, -8236056.995569959 4979995.47769562, -8236087.775409162 4980011.987035083, -8236111.475328755 4980025.732588342, -8236146.496440557 4980045.402729229, -8236154.734082876 4980048.254755936, -8236160.990238259 4980050.121804797, -8236166.133198733 4980050.974472901, -8236172.701048689 4980051.547818735, -8236179.83662805 4980051.621324615, -8236187.695784099 4980051.239094051, -8236194.6643842235 4980049.813080157)"
55,West 72nd Street,"LINESTRING (-8236048.913774927 4979991.390793099, -8236037.381075681 4979985.333947904, -8235968.218276051 4979948.3020076575, -8235929.345509867 4979926.309306116, -8235914.706996826 4979918.135560684)"
56,Riverside Drive,"LINESTRING (-8236048.913774927 4979991.390793099, -8236042.857994628 4980010.913853663, -8236017.4103590315 4980092.593587535, -8236014.05964236 4980103.0755754905)"
57,,"LINESTRING (-8233674.43564046 4977097.205411948, -8233658.739592259 4977101.379284016, -8233651.526089255 4977103.642581589, -8233644.490697436 4977105.582551353, -8233637.332854179 4977107.096315907, -8233628.004280849 4977108.507203469)"
58,East 59th Street,"LINESTRING (-8233674.43564046 4977097.205411948, -8233600.842325096 4977055.819509347, -8233569.917770554 4977038.903660004, -8233542.421856329 4977024.001276599, -8233512.877663471 4977009.451634261)"
59,2nd Avenue,"LINESTRING (-8233674.43564046 4977097.205411948, -8233678.955211787 4977088.490255242, -8233690.2986678975 4977067.6503336355, -8233719.876256601 4977012.861245469, -8233724.184320896 4977004.675241246)"
60,West 54th Street,"LINESTRING (-8237089.1053607995 4978385.252914954, -8237082.236948216 4978377.888885271, -8237076.270223509 4978372.112314975, -8237068.65597034 4978366.144665789)"
61,12th Avenue,"LINESTRING (-8237089.1053607995 4978385.252914954, -8237098.600913363 4978366.27695354, -8237126.586633348 4978314.317402792)"
62,West 77th Street,"LINESTRING (-8234702.7494366625 4979870.18109849, -8234715.35080302 4979878.634121174, -8234719.336040791 4979880.795155973, -8234829.842899302 4979942.274591212, -8234886.626971555 4979973.587795239, -8234999.104185053 4980036.214504527, -8235003.334325703 4980038.463781135, -8235020.054513221 4980044.447153457)"
63,Central Park West,"LINESTRING (-8234702.7494366625 4979870.18109849, -8234696.337433992 4979881.868323092, -8234603.085096556 4980050.768656455, -8234532.675518627 4980177.2877839925, -8234504.5116874585 4980227.904714869, -8234494.47066939 4980245.399445575)"
64,Central Park West,"LINESTRING (-8234702.7494366625 4979870.18109849, -8234708.894272555 4979858.993717983, -8234711.688391774 4979853.995418087, -8234752.164158626 4979779.9179733815, -8234756.95089673 4979771.229824088)"
65,York Avenue,"LINESTRING (-8233107.808300372 4976903.048847969, -8233103.110617861 4976911.411124434, -8233083.963665444 4976945.506947906, -8233061.855614575 4976984.849561058, -8233057.157932062 4976993.226604116)"
66,"['FDR Drive', 'East 60th Street']","LINESTRING (-8233107.808300372 4976903.048847969, -8233092.223571662 4976898.272506979, -8233067.833471229 4976885.839334923, -8233042.864509444 4976871.965932298, -8233041.027737846 4976871.1429344565, -8233039.5360566685 4976870.687346397, -8233038.244750576 4976870.393418626, -8233036.920048636 4976870.305240297, -8233035.272520172 4976870.4669005675, -8233033.925554333 4976870.716739173, -8233032.923678916 4976870.9518813975, -8233031.78822011 4976871.407469469, -8233030.46351817 4976872.186378161, -8233029.350323262 4976873.171036407, -8233028.025621322 4976875.404888316, -8232985.713082871 4976953.09034551)"
67,York Avenue,"LINESTRING (-8233107.808300372 4976903.048847969, -8233112.851073306 4976893.907668178, -8233154.117208542 4976819.23542496, -8233158.681307665 4976810.976101488)"
68,Dyer Avenue,"LINESTRING (-8237064.737524263 4976662.809139579, -8237061.464731233 4976668.099728375, -8237059.34966091 4976671.538612628, -8237056.989687703 4976675.344900459, -8237052.058234262 4976688.644875367, -8237047.327155903 4976710.2040996775, -8237040.759305946 4976724.503461469, -8237033.723914129 4976737.436098589, -8237026.32116799 4976750.750854236, -8237018.272768806 4976766.387632383)"
69,West 40th Street,"LINESTRING (-8237064.737524263 4976662.809139579, -8237032.644115068 4976645.012207739, -8237027.156064171 4976642.043606244, -8237024.584583934 4976640.647482091, -8236941.273077024 4976595.574823184, -8236927.480592116 4976587.594912088)"
70,Central Park West,"LINESTRING (-8234285.9803950805 4980625.322160852, -8234290.11034819 4980617.838825577, -8234332.111192067 4980541.300366208, -8234337.5213193195 4980531.802934991)"
71,West 85th Street,"LINESTRING (-8234285.9803950805 4980625.322160852, -8234299.294206182 4980632.673183405, -8234586.565284122 4980791.588941984, -8234603.207547995 4980800.792579816)"
72,Central Park West,"LINESTRING (-8234285.9803950805 4980625.322160852, -8234280.603663676 4980634.408025535, -8234267.72399859 4980657.196234668, -8234236.9552913355 4980710.726682227, -8234229.752920281 4980724.340899442)"
73,West 79th Street,"LINESTRING (-8235875.934418184 4980769.3297004085, -8235812.838530801 4980734.16196641, -8235793.435543557 4980723.444065974, -8235759.071216748 4980704.213623901, -8235732.688497431 4980689.614391563)"
74,5th Avenue,"LINESTRING (-8234690.482028778 4977542.879203456, -8234695.791968488 4977533.223016415, -8234700.411727356 4977524.742628667, -8234736.735277203 4977458.060876172, -8234745.162162656 4977442.746330331)"
75,East 58th Street,"LINESTRING (-8234690.482028778 4977542.879203456, -8234676.210870057 4977535.3541375445, -8234578.706128072 4977480.415453078, -8234522.879403439 4977449.360094784, -8234510.545203859 4977442.599357837)"
76,West 58th Street,"LINESTRING (-8234763.151392367 4977582.885608238, -8234704.909034783 4977550.227906231, -8234690.482028778 4977542.879203456)"
77,79th Street Transverse,"LINESTRING (-8234494.47066939 4980245.399445575, -8234490.0735495025 4980242.591465677, -8234485.253415552 4980239.3865472, -8234480.377621855 4980235.167229524, -8234477.060301028 4980231.888806248, -8234472.963743768 4980227.434268762, -8234469.212276927 4980222.068244454, -8234465.616657375 4980216.114166141, -8234463.189892476 4980210.953967873, -8234461.642551553 4980206.087800493, -8234459.917099446 4980200.765892119, -8234458.525605812 4980194.576604535, -8234457.891084714 4980189.166494137, -8234457.757501325 4980181.595284887, -8234458.013536155 4980175.876453054, -8234458.859564284 4980169.510765007, -8234459.805779955 4980163.791940252, -8234461.0080304565 4980157.911404151, -8234462.611031123 4980152.016170262, -8234480.210642618 4980092.505380111, -8234483.060421582 4980082.023403503, -8234485.164359958 4980072.2470960505, -8234486.511325796 4980064.308447575, -8234487.001131555 4980055.69355116, -8234487.257166386 4980047.152168194, -8234486.555853594 4980038.199160332, -8234485.921332496 4980029.907712094, -8234484.830401486 4980022.615947831, -8234483.405512003 4980016.11804959, -8234481.5019487105 4980009.370236761, -8234479.320086691 4980003.84262014, -8234475.82465468 4979997.888674887, -8234472.062055893 4979992.625684328, -8234467.898706934 4979986.759952382, -8234461.854058587 4979979.424117138, -8234453.727735758 4979971.2650283, -8234445.334246153 4979963.032441067, -8234405.459604549 4979927.661797029, -8234397.489129009 4979921.0316531565, -8234384.976818245 4979912.078760928, -8234374.579577804 4979905.286917123, -8234365.173080832 4979899.553546161, -8234354.775840391 4979893.849580442, -8234344.27841241 4979888.792458983, -8234334.871915437 4979884.499788171, -8234321.135090274 4979878.722326667, -8234275.861453368 4979861.389962663, -8234265.519872674 4979857.112004781, -8234255.256215623 4979852.466526864, -8234245.649343568 4979847.380025099, -8234229.0070796935 4979837.942072195, -8234179.71480917 4979810.289804752, -8234145.884815919 4979791.384578193, -8234134.697207094 4979784.9750384595, -8234078.658975429 4979754.1769647, -8234010.587106807 4979716.866588271, -8234001.3141932255 4979711.677252487, -8233992.31957837 4979707.16414967, -8233982.824025804 4979702.974463254, -8233973.228285697 4979699.387505085, -8233965.191018463 4979696.800191813, -8233940.633938793 4979689.508676281, -8233893.645981731 4979675.601889574, -8233886.165311949 4979673.661409282, -8233877.994461323 4979672.220749922, -8233868.454380964 4979671.338713681, -8233859.6156133935 4979670.941797402, -8233849.697046764 4979670.70658776, -8233837.986236334 4979669.662845048, -8233828.078801652 4979667.9575755065, -8233818.1936308695 4979665.825988996, -8233809.143356267 4979663.253385208, -8233799.4919564165 4979660.10745921, -8233790.4305498665 4979656.476415043, -8233781.80328933 4979652.492558421, -8233772.7975425245 4979647.920680683, -8233764.726879441 4979643.054793868, -8233755.710000688 4979636.939362518, -8233746.036336938 4979629.442084115, -8233736.618708018 4979620.959876078, -8233728.60370468 4979613.6684171725, -8233703.300784423 4979588.515865836, -8233694.8516350705 4979579.739684034, -8233685.077783779 4979569.346460509, -8233675.404120029 4979559.070851519, -8233662.836149519 4979546.854798248, -8233652.561360519 4979537.711143824, -8233642.921092615 4979529.670027155, -8233633.937609709 4979522.628542858, -8233625.443932561 4979516.5719884, -8233618.107978119 4979511.706167032, -8233603.614180417 4979503.385765111)"
78,Central Park West,"LINESTRING (-8234494.47066939 4980245.399445575, -8234486.177367324 4980260.042118227, -8234446.703475889 4980333.373423655, -8234444.198787346 4980338.033831964, -8234440.436188557 4980345.002396175)"
79,West 81st Street,"LINESTRING (-8234494.47066939 4980245.399445575, -8234501.071915192 4980249.265932304, -8234508.552584974 4980253.264733879, -8234540.300903749 4980271.082943151, -8234554.093388657 4980278.845341517, -8234599.16665048 4980304.102581933, -8234646.878184234 4980330.66832963, -8234745.240086299 4980385.152596127, -8234795.211405716 4980413.335753442, -8234800.487949579 4980417.231710123, -8234805.998264374 4980421.627527262, -8234809.337849097 4980424.641382966)"
80,Central Park West,"LINESTRING (-8234494.47066939 4980245.399445575, -8234504.5116874585 4980227.904714869, -8234532.675518627 4980177.2877839925, -8234603.085096556 4980050.768656455, -8234696.337433992 4979881.868323092, -8234702.7494366625 4979870.18109849)"
81,York Avenue,"LINESTRING (-8233057.157932062 4976993.226604116, -8233061.855614575 4976984.849561058, -8233083.963665444 4976945.506947906, -8233103.110617861 4976911.411124434, -8233107.808300372 4976903.048847969)"
82,East 61st Street,"LINESTRING (-8233057.157932062 4976993.226604116, -8233071.373431037 4977001.074577287, -8233122.636056547 4977029.703566578, -8233134.124227997 4977036.096601825, -8233141.927724302 4977040.446807514, -8233191.87677982 4977068.25289774, -8233292.888085766 4977124.4972767485, -8233307.938480922 4977132.874439557)"
83,York Avenue,"LINESTRING (-8233057.157932062 4976993.226604116, -8233052.193082773 4977002.294393909, -8233045.235614598 4977014.992253081, -8233011.494676938 4977076.585922223, -8233006.808126376 4977085.139404481)"
84,York Avenue,"LINESTRING (-8233006.808126376 4977085.139404481, -8233011.494676938 4977076.585922223, -8233045.235614598 4977014.992253081, -8233052.193082773 4977002.294393909, -8233057.157932062 4976993.226604116)"
85,York Avenue,"LINESTRING (-8233006.808126376 4977085.139404481, -8233001.620638105 4977094.780451882, -8232955.968514931 4977179.566231241)"
86,East 62nd Street,"LINESTRING (-8233006.808126376 4977085.139404481, -8232993.049037314 4977077.247273677, -8232966.955748672 4977062.579978615, -8232924.999432593 4977040.035301488)"
87,East 63rd Street,"LINESTRING (-8232955.968514931 4977179.566231241, -8232969.927979077 4977186.326786147, -8233190.730189065 4977310.207434717, -8233204.032868214 4977317.188535937)"
88,East 63rd Street,"LINESTRING (-8232955.968514931 4977179.566231241, -8232941.496981128 4977167.176791676, -8232895.53316338 4977141.677816637)"
89,York Avenue,"LINESTRING (-8232955.968514931 4977179.566231241, -8233001.620638105 4977094.780451882, -8233006.808126376 4977085.139404481)"
90,York Avenue,"LINESTRING (-8232955.968514931 4977179.566231241, -8232950.046318022 4977191.147358588, -8232910.63921828 4977261.663199336, -8232906.030591361 4977269.908206866)"
91,York Avenue,"LINESTRING (-8232906.030591361 4977269.908206866, -8232900.820839191 4977279.299587558, -8232859.276405227 4977354.2251985, -8232854.812493647 4977362.279221485)"
92,York Avenue,"LINESTRING (-8232906.030591361 4977269.908206866, -8232910.63921828 4977261.663199336, -8232950.046318022 4977191.147358588, -8232955.968514931 4977179.566231241)"
93,York Avenue,"LINESTRING (-8232854.812493647 4977362.279221485, -8232859.276405227 4977354.2251985, -8232900.820839191 4977279.299587558, -8232906.030591361 4977269.908206866)"
94,York Avenue,"LINESTRING (-8232854.812493647 4977362.279221485, -8232850.437637659 4977370.18627971, -8232808.793016154 4977445.288954801, -8232803.727979322 4977454.415953295)"
95,East 66th Street,"LINESTRING (-8232803.727979322 4977454.415953295, -8232817.075186267 4977461.99974597, -8232862.348823173 4977486.882269877, -8233038.511917355 4977584.796278252, -8233052.549305143 4977592.703516596)"
96,York Avenue,"LINESTRING (-8232803.727979322 4977454.415953295, -8232808.793016154 4977445.288954801, -8232850.437637659 4977370.18627971, -8232854.812493647 4977362.279221485)"
97,York Avenue,"LINESTRING (-8232803.727979322 4977454.415953295, -8232798.31785207 4977464.174943406, -8232757.474730899 4977537.83799655, -8232753.08874296 4977545.745196882)"
98,East 67th Street,"LINESTRING (-8232753.08874296 4977545.745196882, -8232766.435949906 4977553.329060461, -8232987.382875233 4977676.993899318, -8233000.318200062 4977684.107541187)"
99,York Avenue,"LINESTRING (-8232753.08874296 4977545.745196882, -8232757.474730899 4977537.83799655, -8232798.31785207 4977464.174943406, -8232803.727979322 4977454.415953295)"
100,York Avenue,"LINESTRING (-8232753.08874296 4977545.745196882, -8232748.268609009 4977554.431366705, -8232729.010337101 4977589.161425765, -8232706.880022332 4977629.06513739, -8232702.082152279 4977637.707288676)"
101,East 68th Street,"LINESTRING (-8232702.082152279 4977637.707288676, -8232688.067028387 4977630.226242306, -8232657.142473846 4977613.706230931, -8232617.79103385 4977592.688819121, -8232577.248475304 4977570.010641575, -8232574.287376848 4977569.114097724, -8232571.459861782 4977568.864241257, -8232568.376311887 4977568.702569426, -8232564.4801297095 4977568.540897601, -8232559.459620673 4977568.864241257, -8232554.583826977 4977569.995944135, -8232549.24049142 4977571.465688326, -8232545.177330004 4977572.920735294)"
102,York Avenue,"LINESTRING (-8232702.082152279 4977637.707288676, -8232706.880022332 4977629.06513739, -8232729.010337101 4977589.161425765, -8232748.268609009 4977554.431366705, -8232753.08874296 4977545.745196882)"
103,York Avenue,"LINESTRING (-8232702.082152279 4977637.707288676, -8232697.306546125 4977646.334750053, -8232655.38362589 4977722.086245759, -8232651.487443713 4977729.111734384)"
104,East 69th Street,"LINESTRING (-8232651.487443713 4977729.111734384, -8232664.83465066 4977736.534065722, -8232886.204590051 4977860.406994288, -8232900.097262503 4977868.2115705125)"
105,York Avenue,"LINESTRING (-8232651.487443713 4977729.111734384, -8232655.38362589 4977722.086245759, -8232697.306546125 4977646.334750053, -8232702.082152279 4977637.707288676)"
106,York Avenue,"LINESTRING (-8232651.487443713 4977729.111734384, -8232645.8212816315 4977739.341325183, -8232605.779660794 4977811.6983487345, -8232600.7146239625 4977820.825689593)"
107,East 70th Street,"LINESTRING (-8232600.7146239625 4977820.825689593, -8232586.321013804 4977812.859475359, -8232538.409104965 4977786.271180048, -8232527.900545035 4977780.450866351)"
108,York Avenue,"LINESTRING (-8232600.7146239625 4977820.825689593, -8232605.779660794 4977811.6983487345, -8232645.8212816315 4977739.341325183, -8232651.487443713 4977729.111734384)"
109,York Avenue,"LINESTRING (-8232600.7146239625 4977820.825689593, -8232595.460343997 4977830.320484787, -8232554.105153167 4977905.044551131, -8232548.772949558 4977914.671709823)"
110,East 71st Street,"LINESTRING (-8232548.772949558 4977914.671709823, -8232562.565434468 4977922.608611147, -8232778.781281434 4978043.367890536, -8232783.590283438 4978046.057652923, -8232797.928233852 4978054.024057346)"
111,York Avenue,"LINESTRING (-8232548.772949558 4977914.671709823, -8232554.105153167 4977905.044551131, -8232595.460343997 4977830.320484787, -8232600.7146239625 4977820.825689593)"
112,Columbus Avenue,"LINESTRING (-8234970.47281202 4980133.815944461, -8234974.70295267 4980126.127167825, -8234982.395129484 4980112.160954236, -8234987.972235973 4980102.031786565, -8235015.078531981 4980052.797418749, -8235020.054513221 4980044.447153457)"
113,West 78th Street,"LINESTRING (-8235284.6720747845 4980307.92498722, -8235271.391659532 4980300.559507598, -8234983.230025666 4980140.887272105, -8234970.47281202 4980133.815944461)"
114,Amsterdam Avenue,"LINESTRING (-8235284.6720747845 4980307.92498722, -8235279.796281087 4980316.922347116, -8235262.920246284 4980348.08973634, -8235237.138652216 4980395.7231083, -8235229.769301924 4980409.160465743)"
115,West 78th Street,"LINESTRING (-8235480.594378582 4980417.12879804, -8235459.521598974 4980405.499739618)"
116,Broadway,"LINESTRING (-8235480.594378582 4980417.12879804, -8235483.867171609 4980408.572397197, -8235513.255517178 4980330.241983357, -8235514.858517847 4980325.890312122, -8235517.864144097 4980317.863247976)"
117,West 78th Street,"LINESTRING (-8235601.899227698 4980484.668761328, -8235587.694860673 4980476.876795708, -8235492.6948072305 4980423.891594388, -8235480.594378582 4980417.12879804)"
118,West End Avenue,"LINESTRING (-8235601.899227698 4980484.668761328, -8235606.21842394 4980477.067919318, -8235648.130212224 4980400.677580392, -8235652.349220925 4980393.400240945)"
119,West End Avenue,"LINESTRING (-8235601.899227698 4980484.668761328, -8235596.7117394265 4980493.84270618, -8235572.933896193 4980537.036812351, -8235553.597700643 4980572.247942244, -8235546.139294758 4980585.714946578)"
120,West 78th Street,"LINESTRING (-8235783.24981015 4980585.935476279, -8235772.485215391 4980579.363693312, -8235620.801277234 4980494.8424314605, -8235616.159254468 4980492.240205577, -8235601.899227698 4980484.668761328)"
121,Riverside Drive,"LINESTRING (-8235783.24981015 4980585.935476279, -8235775.958383502 4980595.241834223, -8235722.892382242 4980662.283158291, -8235721.745791486 4980663.738665826, -8235711.137044013 4980677.279306935)"
122,Riverside Drive,"LINESTRING (-8235783.24981015 4980585.935476279, -8235789.183139008 4980578.5697869435, -8235849.284532088 4980503.090168929)"
123,West 37th Street,"LINESTRING (-8236253.374283669 4975857.350416595, -8236257.148014404 4975859.407697841, -8236264.8624551175 4975863.860243736, -8236428.947384547 4975953.102622822, -8236444.854939781 4975961.772681686)"
124,Broadway,"LINESTRING (-8236253.374283669 4975857.350416595, -8236255.099735775 4975846.446833225, -8236268.625053906 4975757.719743296, -8236270.105603134 4975748.550245656)"
125,West 38th Street,"LINESTRING (-8236232.624330583 4975960.112144393, -8236215.38094146 4975950.501606663, -8236093.152140568 4975885.3147837445, -8236077.945898126 4975876.835826342)"
126,Broadway,"LINESTRING (-8236232.624330583 4975960.112144393, -8236234.205067352 4975952.970367746, -8236251.515248171 4975866.769829277, -8236253.374283669 4975857.350416595)"
127,Broadway,"LINESTRING (-8236202.913158491 4976068.63546276, -8236205.428978982 4976058.686829427, -8236206.197083469 4976055.23346572, -8236212.219467921 4976030.530929435, -8236213.32153088 4976027.195136637, -8236220.067492022 4976010.281068224, -8236221.169554981 4976006.724856001, -8236228.961919337 4975973.807911745, -8236229.518516791 4975971.442010647, -8236230.798690935 4975966.724905202, -8236232.624330583 4975960.112144393)"
128,West 39th Street,"LINESTRING (-8236202.913158491 4976068.63546276, -8236209.2472375175 4976072.103526392, -8236214.456989686 4976074.998478755, -8236221.002575744 4976078.642887012, -8236253.296360023 4976096.673910766, -8236293.137605779 4976118.657991267, -8236329.572475114 4976138.966858252, -8236342.441008251 4976145.814864885)"
129,West 40th Street,"LINESTRING (-8236183.766206075 4976173.427369514, -8236178.25589128 4976170.35604396, -8236164.519066116 4976162.787949228, -8235992.986862753 4976068.121131394, -8235976.94572413 4976059.274636136)"
130,West 41st Street,"LINESTRING (-8236158.563473359 4976279.028652642, -8236170.597110313 4976285.803279903, -8236231.366420338 4976318.530233068, -8236244.925134317 4976325.922101609)"
131,Broadway,"LINESTRING (-8236158.563473359 4976279.028652642, -8236160.8009951245 4976269.329628297, -8236181.027746601 4976184.243145658, -8236183.766206075 4976173.427369514)"
132,Broadway,"LINESTRING (-8236131.145482777 4976391.508647355, -8236134.796762074 4976376.254555971, -8236156.259159899 4976288.330907763, -8236158.563473359 4976279.028652642)"
133,West 42nd Street,"LINESTRING (-8236131.145482777 4976391.508647355, -8236140.474056104 4976396.637436803, -8236176.307800191 4976416.3443576945, -8236189.476895953 4976423.368907339)"
134,West 42nd Street,"LINESTRING (-8236131.145482777 4976391.508647355, -8236116.061691774 4976383.117424582, -8236087.252207557 4976366.996304028, -8236074.851216282 4976360.059968639, -8236039.462750158 4976340.264987734, -8235889.849354533 4976256.559260929, -8235874.342549466 4976247.888940469)"
135,7th Avenue,"LINESTRING (-8236031.915288683 4976706.60354425, -8236038.071256525 4976696.066416197, -8236078.535891427 4976626.62746744, -8236085.1371372305 4976615.340929383)"
136,West 45th Street,"LINESTRING (-8236031.915288683 4976706.60354425, -8236044.806085718 4976713.56951799, -8236048.635476199 4976715.685764159, -8236054.012207605 4976718.669084193, -8236109.126487496 4976749.119575251, -8236164.930948233 4976779.864086259, -8236335.338824738 4976874.552497394, -8236349.431872273 4976882.385678826)"
137,West 47th Street,"LINESTRING (-8235987.788242534 4976923.3152561765, -8235995.536079092 4976927.386178633, -8236011.0094883125 4976935.616207551, -8236201.900151124 4977040.299841073, -8236233.715261593 4977057.994616341, -8236248.075475905 4977065.989608367)"
138,West 48th Street,"LINESTRING (-8235952.555623697 4977022.531614772, -8235946.933989412 4977019.415932432, -8235938.429180315 4977014.713017573, -8235895.393065174 4976990.786973292, -8235880.576440949 4976982.5422013365)"
139,Broadway,"LINESTRING (-8235952.555623697 4977022.531614772, -8235960.804397965 4977013.698951854, -8235985.227894246 4976931.839211277, -8235987.788242534 4976923.3152561765)"
140,West 49th Street,"LINESTRING (-8235919.1597764585 4977124.071070412, -8235967.461303514 4977151.260132592, -8235985.561852716 4977161.32745319, -8236019.235998683 4977180.051227416, -8236131.22340642 4977242.307299909, -8236146.863794877 4977251.007896881)"
141,Broadway,"LINESTRING (-8235919.1597764585 4977124.071070412, -8235923.73500753 4977115.664521636, -8235933.163768401 4977091.400205521, -8235927.653453606 4977076.703495812, -8235943.494217147 4977029.791746346, -8235952.555623697 4977022.531614772)"
142,West 50th Street,"LINESTRING (-8235872.149555497 4977219.056756162, -8235863.77832979 4977214.603592593, -8235856.676146275 4977210.591338047, -8235826.308189188 4977193.719311323, -8235799.880942074 4977179.125325649, -8235794.003272959 4977175.877321733, -8235777.761759254 4977166.809370815)"
143,Broadway,"LINESTRING (-8235872.149555497 4977219.056756162, -8235876.813842161 4977209.900583767, -8235914.250586914 4977133.036104173, -8235919.1597764585 4977124.071070412)"
144,West 51st Street,"LINESTRING (-8235825.384237414 4977312.456083618, -8235831.762844236 4977316.0127711715, -8235834.412248118 4977317.482477151, -8235953.25693649 4977383.575383603, -8236030.089649034 4977426.300122137, -8236044.672502329 4977434.412993495)"
145,Broadway,"LINESTRING (-8235825.384237414 4977312.456083618, -8235829.892676791 4977303.182247364, -8235830.527197889 4977301.918302058, -8235847.9932259945 4977267.233355176, -8235867.507532731 4977228.477481822, -8235872.149555497 4977219.056756162)"
146,West 52nd Street,"LINESTRING (-8235778.919481957 4977408.325432965, -8235760.317995046 4977396.567681981, -8235756.844826933 4977394.363105247, -8235695.774954284 4977360.603749004, -8235693.1144184545 4977359.222219279, -8235677.21799517 4977350.933045031)"
147,Broadway,"LINESTRING (-8235778.919481957 4977408.325432965, -8235781.490962195 4977402.475950081, -8235783.183018454 4977398.419526823, -8235820.541839564 4977322.567661547, -8235825.384237414 4977312.456083618)"
148,West 53rd Street,"LINESTRING (-8235739.122763999 4977502.9611465605, -8235747.271350726 4977507.487928318, -8235886.532033707 4977585.281294547, -8235930.013426811 4977609.576232452, -8235943.727988077 4977617.24833066)"
149,Broadway,"LINESTRING (-8235739.122763999 4977502.9611465605, -8235742.48461262 4977494.877612926, -8235760.507238179 4977451.3883167785, -8235774.66707741 4977417.231938755, -8235778.919481957 4977408.325432965)"
150,Broadway,"LINESTRING (-8235696.186836399 4977602.315669967, -8235700.116414425 4977593.276718137, -8235734.013199372 4977514.82190711, -8235739.122763999 4977502.9611465605)"
151,West 54th Street,"LINESTRING (-8235696.186836399 4977602.315669967, -8235684.798852492 4977595.2461800985, -8235678.765336092 4977591.792273188, -8235639.502951687 4977569.70199532, -8235621.458062231 4977559.840017806, -8235590.61143133 4977542.982085258, -8235575.427452787 4977534.325320388)"
152,Broadway,"LINESTRING (-8235666.965470066 4977709.152305021, -8235669.21412378 4977700.583578713, -8235670.472034026 4977695.777452495, -8235693.337057435 4977612.368757924, -8235696.186836399 4977602.315669967)"
153,West 55th Street,"LINESTRING (-8235666.965470066 4977709.152305021, -8235675.837633483 4977714.634530083, -8235724.584438501 4977741.560677474, -8235816.589997643 4977792.7235015575, -8235825.5623486005 4977797.323906513, -8235841.26952875 4977805.378294844)"
154,Broadway,"LINESTRING (-8235642.842536411 4977809.596562918, -8235644.712703858 4977802.100687114, -8235664.73908025 4977716.221877326, -8235666.965470066 4977709.152305021)"
155,West 56th Street,"LINESTRING (-8235642.842536411 4977809.596562918, -8235631.109462082 4977803.496977269, -8235627.858932951 4977801.9096158445, -8235568.202817834 4977768.677969703, -8235490.6465286 4977725.760663867, -8235475.084063787 4977717.147830002)"
156,West 57th Street,"LINESTRING (-8235626.623286603 4977931.941827437, -8235613.031176778 4977925.121964578, -8235609.190654346 4977922.81438275, -8235513.533815906 4977869.828338496, -8235469.217526622 4977844.974234799, -8235450.972262081 4977834.744533376, -8235435.409797268 4977826.014020807, -8235419.9363880465 4977817.342307294)"
157,Broadway,"LINESTRING (-8235626.623286603 4977931.941827437, -8235628.716093029 4977916.582444738, -8235640.894445322 4977823.897534086, -8235642.842536411 4977809.596562918)"
158,West 57th Street,"LINESTRING (-8235626.623286603 4977931.941827437, -8235637.777499581 4977938.041493296, -8235722.803326648 4977985.692508049, -8235735.716387581 4977992.938657429)"
159,Broadway,"LINESTRING (-8235610.6600716235 4978054.626682299, -8235612.140620851 4978042.368416175, -8235619.020165381 4977989.190648457, -8235623.907091028 4977951.446073577, -8235626.623286603 4977931.941827437)"
160,West 58th Street,"LINESTRING (-8235610.6600716235 4978054.626682299, -8235602.144130577 4978049.937967181, -8235596.867586713 4978047.042429502, -8235592.670841912 4978044.969989355, -8235377.122911888 4977926.415386479, -8235363.842496636 4977919.110494583)"
161,West 60th Street,"LINESTRING (-8235660.842898073 4978321.402111682, -8235675.592730604 4978329.221754846, -8235757.49047998 4978374.287715093, -8235764.603795442 4978378.285749005, -8235784.741491327 4978389.618420201, -8235818.181866361 4978408.329850321, -8235848.327184467 4978425.189276423, -8235882.802830767 4978444.503423693, -8235896.8736144025 4978453.7195485225)"
162,Broadway,"LINESTRING (-8235660.842898073 4978321.402111682, -8235660.709314683 4978308.30569326, -8235660.16384918 4978267.31151836, -8235660.108189434 4978258.1984587535, -8235660.876293919 4978249.232392276, -8235662.189863912 4978241.897862048, -8235664.104559152 4978235.312957839, -8235667.867157943 4978226.596785656)"
163,West 62nd Street,"LINESTRING (-8235666.1305738855 4978565.563134524, -8235680.546447943 4978572.853810958, -8235714.354177297 4978592.109454321, -8235724.740285789 4978597.827358781, -8235742.807439144 4978607.778578384, -8235751.390171884 4978612.4969593175, -8235771.839562343 4978623.75640714, -8235781.268323212 4978628.945164878, -8235795.6730653215 4978636.882646639)"
164,Broadway,"LINESTRING (-8235666.1305738855 4978565.563134524, -8235666.186233632 4978554.156764568, -8235664.794739996 4978459.687251219, -8235664.839267793 4978445.179566528)"
165,Broadway,"LINESTRING (-8235666.9988659145 4978685.433717147, -8235666.93207422 4978675.673506781, -8235666.230761427 4978578.424714562, -8235666.1305738855 4978565.563134524)"
166,West 63rd Street,"LINESTRING (-8235666.9988659145 4978685.433717147, -8235680.546447943 4978691.945429186, -8235730.729274393 4978719.741521946, -8235745.4345791275 4978728.458134223)"
167,Columbus Avenue,"LINESTRING (-8235670.43863818 4978866.058165822, -8235699.047747313 4978812.743619501, -8235738.577298494 4978741.011245506, -8235745.4345791275 4978728.458134223)"
168,Broadway,"LINESTRING (-8235670.43863818 4978866.058165822, -8235670.06015191 4978843.097743775, -8235669.225255731 4978802.410009372, -8235668.835637513 4978796.662586564, -8235667.27716464 4978699.530182768, -8235666.9988659145 4978685.433717147)"
169,Broadway,"LINESTRING (-8235673.2104935 4978929.177555548, -8235672.687291895 4978915.271851514, -8235672.197486133 4978896.735843412, -8235671.473909444 4978888.048479795, -8235670.43863818 4978866.058165822)"
170,West 65th Street,"LINESTRING (-8235673.2104935 4978929.177555548, -8235656.022764121 4978919.519997897, -8235650.35660204 4978916.344912537)"
171,Broadway,"LINESTRING (-8235674.056521631 4979052.286528288, -8235673.956334088 4979040.761992646, -8235674.156709173 4978954.21081261, -8235673.900674342 4978943.744757224, -8235673.2104935 4978929.177555548)"
172,West 66th Street,"LINESTRING (-8235674.056521631 4979052.286528288, -8235688.81748611 4979060.606545893, -8235816.267171119 4979130.900687779, -8235892.999696123 4979172.9862766825, -8235904.487867573 4979181.438695904)"
173,West 67th Street,"LINESTRING (-8235671.65202063 4979169.693510129, -8235685.845255705 4979177.631431383, -8235800.738102153 4979241.767131799, -8235806.682562961 4979244.868823151, -8235842.783473825 4979264.463891295, -8235854.783714933 4979271.225889424)"
174,Broadway,"LINESTRING (-8235671.65202063 4979169.693510129, -8235671.596360885 4979160.094513974, -8235674.368216205 4979062.870297492, -8235674.056521631 4979052.286528288)"
175,West 68th Street,"LINESTRING (-8235667.755838451 4979288.307305554, -8235646.248912829 4979276.459091191)"
176,Broadway,"LINESTRING (-8235667.755838451 4979288.307305554, -8235667.978477433 4979277.194091665, -8235671.262402411 4979182.041390423, -8235671.65202063 4979169.693510129)"
177,Broadway,"LINESTRING (-8235663.53682975 4979406.084629968, -8235663.703808986 4979395.897393895, -8235667.199240997 4979300.140834248, -8235667.755838451 4979288.307305554)"
178,West 69th Street,"LINESTRING (-8235663.53682975 4979406.084629968, -8235679.077030665 4979415.110559409, -8235700.4281089995 4979426.312131649, -8235740.647841022 4979448.362508248, -8235754.306742543 4979453.595804936)"
179,West 70th Street,"LINESTRING (-8235662.746461365 4979525.730323415, -8235638.668055507 4979512.308881933)"
180,Broadway,"LINESTRING (-8235662.746461365 4979525.730323415, -8235663.447774158 4979516.263280629, -8235664.026635509 4979419.682328153, -8235664.171350848 4979417.477294729, -8235663.53682975 4979406.084629968)"
181,West 72nd Street,"LINESTRING (-8235644.3787453845 4979767.304723641, -8235655.56635421 4979773.993566171, -8235900.536025649 4979910.593963501, -8235914.706996826 4979918.135560684)"
182,Broadway,"LINESTRING (-8235644.3787453845 4979767.304723641, -8235647.506823076 4979750.046061001, -8235655.610882006 4979686.789059986, -8235657.358598011 4979662.635960398, -8235658.193494193 4979643.745720248)"
183,West 72nd Street,"LINESTRING (-8235644.3787453845 4979767.304723641, -8235635.083567903 4979762.056558096, -8235611.806662379 4979749.178718453, -8235595.153266557 4979740.005473176)"
184,West 73rd Street,"LINESTRING (-8235619.832797665 4979884.543890943, -8235630.597392424 4979890.6006736215, -8235845.03212754 4980010.369912442, -8235859.448001597 4980018.411424946)"
185,Broadway,"LINESTRING (-8235619.832797665 4979884.543890943, -8235622.18163892 4979874.473763008, -8235641.028028711 4979783.56376422, -8235644.3787453845 4979767.304723641)"
186,West 74th Street,"LINESTRING (-8235597.6579551 4979994.786744353, -8235574.125014746 4979982.173217074)"
187,Broadway,"LINESTRING (-8235597.6579551 4979994.786744353, -8235599.606046188 4979984.128459747, -8235617.127734037 4979895.510786609, -8235619.832797665 4979884.543890943)"
188,West 75th Street,"LINESTRING (-8235574.637084402 4980101.237919004, -8235585.357151367 4980107.897587753, -8235742.072730504 4980197.266959464, -8235756.110118294 4980205.220417439)"
189,Broadway,"LINESTRING (-8235574.637084402 4980101.237919004, -8235576.251217019 4980094.4753461145, -8235595.821183502 4980004.871697466, -8235597.6579551 4979994.786744353)"
190,West 76th Street,"LINESTRING (-8235546.885135348 4980210.571731073, -8235525.289154134 4980198.443071141)"
191,Broadway,"LINESTRING (-8235546.885135348 4980210.571731073, -8235549.323032197 4980201.574469171, -8235571.609194253 4980113.792795003, -8235574.637084402 4980101.237919004)"
192,West 77th Street,"LINESTRING (-8235517.864144097 4980317.863247976, -8235528.873641737 4980324.625975573, -8235634.838665024 4980383.4177982835, -8235639.168993217 4980385.740663264, -8235652.349220925 4980393.400240945)"
193,Broadway,"LINESTRING (-8235517.864144097 4980317.863247976, -8235520.925430095 4980307.836777851, -8235521.938437461 4980304.029074152, -8235544.213467568 4980220.730414197, -8235546.885135348 4980210.571731073)"
194,West 79th Street,"LINESTRING (-8235425.2574597085 4980517.997861814, -8235405.086367975 4980506.809739085)"
195,West 79th Street,"LINESTRING (-8235425.2574597085 4980517.997861814, -8235436.890346494 4980524.466690266, -8235531.267010789 4980577.3201196445, -8235546.139294758 4980585.714946578)"
196,Broadway,"LINESTRING (-8235425.2574597085 4980517.997861814, -8235433.239067197 4980503.575330172, -8235475.807640477 4980426.640819459, -8235477.633280125 4980423.391735366, -8235480.594378582 4980417.12879804)"
197,West 81st Street,"LINESTRING (-8235317.555852365 4980711.638216697, -8235327.641398231 4980717.29855361, -8235424.845577591 4980771.843786577, -8235439.216923854 4980779.621285317)"
198,Broadway,"LINESTRING (-8235317.555852365 4980711.638216697, -8235322.81013233 4980702.081811171, -8235364.009475873 4980627.306936395, -8235369.475262869 4980617.397764739)"
199,West 82nd Street,"LINESTRING (-8235263.81080221 4980803.968277948, -8235242.960661584 4980792.353461089)"
200,Broadway,"LINESTRING (-8235263.81080221 4980803.968277948, -8235268.7311237035 4980795.646774846, -8235282.256441833 4980772.343663436, -8235312.591003076 4980720.062563478, -8235317.555852365 4980711.638216697)"
201,Broadway,"LINESTRING (-8235212.470253055 4980896.166890275, -8235216.9007687885 4980887.815903723, -8235259.035196055 4980812.716155463, -8235263.81080221 4980803.968277948)"
202,West 83rd Street,"LINESTRING (-8235212.470253055 4980896.166890275, -8235222.834097649 4980902.1507882, -8235321.696937422 4980957.211642703, -8235336.669408934 4980965.48917585)"
203,5th Avenue,"LINESTRING (-8233235.714395294 4980171.216122137, -8233242.883370501 4980157.970209494, -8233284.97326997 4980080.862007067, -8233290.7173556965 4980070.674067043)"
204,East 86th Street,"LINESTRING (-8233235.714395294 4980171.216122137, -8233224.660369857 4980165.291477524, -8233208.0737657305 4980156.059036013, -8233176.214127464 4980138.6967771305, -8233145.779378681 4980121.849093961, -8233070.12665274 4980079.700610771, -8233056.1003968995 4980072.114785189)"
205,East 86th Street,"LINESTRING (-8233056.1003968995 4980072.114785189, -8233070.12665274 4980079.700610771, -8233145.779378681 4980121.849093961, -8233176.214127464 4980138.6967771305, -8233208.0737657305 4980156.059036013, -8233224.660369857 4980165.291477524, -8233235.714395294 4980171.216122137)"
206,East 86th Street,"LINESTRING (-8233056.1003968995 4980072.114785189, -8233044.422982315 4980065.631555206, -8233036.485902622 4980061.250599513, -8232900.587068262 4979985.319246829, -8232888.798334186 4979978.659661678)"
207,Madison Avenue,"LINESTRING (-8233056.1003968995 4980072.114785189, -8233047.873886529 4980086.5072771115, -8233006.084549686 4980162.365909922, -8233001.253283785 4980171.201420781)"
208,East 86th Street,"LINESTRING (-8232868.727429997 4979967.663270532, -8232888.798334186 4979978.659661678)"
209,Park Avenue,"LINESTRING (-8232868.727429997 4979967.663270532, -8232860.93506564 4979981.879195654, -8232818.533471597 4980058.2662583385, -8232813.757865443 4980066.704742638)"
210,East 86th Street,"LINESTRING (-8232868.727429997 4979967.663270532, -8232855.936820504 4979960.4891610565, -8232708.750189777 4979879.339765138, -8232697.863143578 4979873.2388867205)"
211,East 86th Street,"LINESTRING (-8232697.863143578 4979873.2388867205, -8232687.054021021 4979867.314422894, -8232668.396874365 4979856.832688008, -8232578.083371484 4979806.423491835, -8232535.136311936 4979782.402403281, -8232519.072909415 4979773.302630577)"
212,East 86th Street,"LINESTRING (-8232697.863143578 4979873.2388867205, -8232708.750189777 4979879.339765138, -8232855.936820504 4979960.4891610565, -8232868.727429997 4979967.663270532)"
213,Lexington Avenue,"LINESTRING (-8232697.863143578 4979873.2388867205, -8232705.811355221 4979858.537990534, -8232746.175802582 4979786.180502033, -8232748.891998159 4979780.961727879, -8232753.56741677 4979772.141270859)"
214,East 86th Street,"LINESTRING (-8232519.072909415 4979773.302630577, -8232535.136311936 4979782.402403281, -8232578.083371484 4979806.423491835, -8232668.396874365 4979856.832688008, -8232687.054021021 4979867.314422894, -8232697.863143578 4979873.2388867205)"
215,East 70th Street,"LINESTRING (-8234079.427079916 4978644.276269712, -8234068.584561512 4978638.470143764, -8234003.830013717 4978602.516336918, -8233913.59443448 4978552.378195195, -8233901.360422442 4978545.572598028)"
216,5th Avenue,"LINESTRING (-8234079.427079916 4978644.276269712, -8234082.755532689 4978638.205560892, -8234125.491085204 4978560.859475195, -8234130.288955256 4978552.863259539)"
217,East 70th Street,"LINESTRING (-8233901.360422442 4978545.572598028, -8233889.983570482 4978539.222671468, -8233744.867482284 4978458.437855031, -8233732.421963215 4978451.500034412)"
218,Madison Avenue,"LINESTRING (-8233901.360422442 4978545.572598028, -8233896.629344084 4978554.024474275, -8233854.4281251235 4978629.239145568, -8233849.496671681 4978638.161463749)"
219,East 70th Street,"LINESTRING (-8233712.495774361 4978440.226086416, -8233700.139310884 4978433.229483774, -8233553.99908337 4978351.901695151, -8233542.266009041 4978345.404908424)"
220,Park Avenue,"LINESTRING (-8233712.495774361 4978440.226086416, -8233707.5420570215 4978449.104135639, -8233663.092184347 4978522.892208002, -8233657.815640484 4978532.564072356)"
221,East 70th Street,"LINESTRING (-8233542.266009041 4978345.404908424, -8233530.610858355 4978338.90812602, -8233379.784080278 4978254.994191428, -8233364.878400463 4978246.616066233)"
222,Lexington Avenue,"LINESTRING (-8233542.266009041 4978345.404908424, -8233546.462753843 4978337.805731244, -8233588.34114628 4978261.740792203, -8233592.649210574 4978253.641932137)"
223,East 70th Street,"LINESTRING (-8233364.878400463 4978246.616066233, -8233349.460650986 4978237.708804169, -8233264.41256002 4978191.0854461705, -8233203.0309927985 4978156.926481503, -8233132.866317751 4978117.652638779, -8233128.502593712 4978115.256821896, -8233116.112734387 4978108.348641539)"
224,3rd Avenue,"LINESTRING (-8233364.878400463 4978246.616066233, -8233360.002606766 4978255.288160864, -8233318.135346278 4978330.074272714, -8233312.79201072 4978340.1134111155)"
225,East 70th Street,"LINESTRING (-8233116.112734387 4978108.348641539, -8233102.086478545 4978100.35279633, -8232865.877651031 4977968.907330743, -8232849.302178853 4977959.485890971)"
226,2nd Avenue,"LINESTRING (-8233116.112734387 4978108.348641539, -8233120.064576308 4978100.926027663, -8233132.610282922 4978077.364777819, -8233160.707322397 4978024.613065185, -8233165.371609061 4978015.8382885745)"
227,East 70th Street,"LINESTRING (-8232849.302178853 4977959.485890971, -8232835.621013434 4977951.842919984, -8232642.359245469 4977843.915989328, -8232614.117490654 4977828.26278845, -8232600.7146239625 4977820.825689593)"
228,1st Avenue,"LINESTRING (-8232849.302178853 4977959.485890971, -8232844.726947781 4977968.539879723, -8232829.665420677 4977995.452028956, -8232810.819030886 4978030.360033704, -8232802.982138735 4978044.70542256, -8232797.928233852 4978054.024057346)"
229,5th Avenue,"LINESTRING (-8234435.0928529985 4978000.4787739515, -8234439.144882463 4977993.203222822, -8234481.446288966 4977918.228616657, -8234486.611513338 4977909.012997076)"
230,East 63rd Street,"LINESTRING (-8234256.51412587 4977901.149596495, -8234268.759269856 4977907.954744667, -8234270.106235695 4977908.807225767, -8234423.72713299 4977994.1585979145, -8234435.0928529985 4978000.4787739515)"
231,Madison Avenue,"LINESTRING (-8234256.51412587 4977901.149596495, -8234251.805311408 4977909.67440489, -8234210.539176172 4977984.3549841065, -8234209.448245161 4977986.339222988, -8234205.552062984 4977993.379599755)"
232,East 63rd Street,"LINESTRING (-8234067.827588974 4977797.162230901, -8234088.087736299 4977808.273760887)"
233,Park Avenue,"LINESTRING (-8234067.827588974 4977797.162230901, -8234062.807079939 4977806.421838345, -8234021.841507329 4977880.734180423, -8234017.032505324 4977889.45004398)"
234,East 63rd Street,"LINESTRING (-8233897.6312195 4977702.406085908, -8233909.631460607 4977709.122909721, -8234053.556430255 4977789.210733737, -8234067.827588974 4977797.162230901)"
235,Lexington Avenue,"LINESTRING (-8233897.6312195 4977702.406085908, -8233902.184186674 4977694.16071332, -8233944.006919365 4977618.409434171, -8233948.370643403 4977610.267014995)"
236,East 63rd Street,"LINESTRING (-8233718.952304829 4977602.168695074, -8233734.88212396 4977611.104772611, -8233885.887013221 4977695.821545386, -8233897.6312195 4977702.406085908)"
237,3rd Avenue,"LINESTRING (-8233718.952304829 4977602.168695074, -8233713.764816558 4977611.604487714, -8233672.576604962 4977686.018231001, -8233668.1572211785 4977694.072527555)"
238,East 63rd Street,"LINESTRING (-8233469.507589858 4977463.425382072, -8233484.680436455 4977471.861624709, -8233704.358319585 4977594.070381864, -8233718.952304829 4977602.168695074)"
239,2nd Avenue,"LINESTRING (-8233469.507589858 4977463.425382072, -8233473.771126355 4977456.003258252, -8233504.094555648 4977403.3577814475, -8233517.230255561 4977380.518374731, -8233521.5605837535 4977373.008131035)"
240,1st Avenue,"LINESTRING (-8233204.032868214 4977317.188535937, -8233199.73593587 4977325.110254736, -8233159.738842827 4977400.888653823, -8233155.564361923 4977408.575285328)"
241,East 63rd Street,"LINESTRING (-8233204.032868214 4977317.188535937, -8233221.064750307 4977326.124352784, -8233263.043330284 4977349.698487764, -8233356.006237046 4977401.30017505, -8233364.555573939 4977406.047367605)"
242,Amsterdam Avenue,"LINESTRING (-8235854.783714933 4979271.225889424, -8235851.5554497 4979277.252891704, -8235849.51830302 4979280.927894921, -8235808.318959477 4979355.604259827, -8235803.9552354375 4979363.527632054)"
243,5th Avenue,"LINESTRING (-8233813.852170729 4979123.271499849, -8233818.026651635 4979115.715816712, -8233860.561829066 4979038.821638494, -8233865.159324036 4979030.50163945)"
244,East 75th Street,"LINESTRING (-8233635.98588834 4979024.709983522, -8233648.765365884 4979031.780508097, -8233804.568125198 4979118.214777413, -8233813.852170729 4979123.271499849)"
245,Madison Avenue,"LINESTRING (-8233635.98588834 4979024.709983522, -8233630.898587611 4979034.294146967, -8233590.155653981 4979111.291187862, -8233585.869853585 4979119.405458914)"
246,East 75th Street,"LINESTRING (-8233447.366143139 4978920.122676254, -8233467.737609955 4978931.26488281)"
247,Park Avenue,"LINESTRING (-8233447.366143139 4978920.122676254, -8233442.490349443 4978929.001161715, -8233400.534033364 4979005.571084047, -8233396.025593986 4979013.788164557)"
248,East 75th Street,"LINESTRING (-8233277.136377819 4978825.429133085, -8233289.10322308 4978832.117330543, -8233435.0876033055 4978913.302123368, -8233447.366143139 4978920.122676254)"
249,Lexington Avenue,"LINESTRING (-8233277.136377819 4978825.429133085, -8233281.622553297 4978817.2857076395, -8233324.068675137 4978740.290984587, -8233328.788621546 4978731.647857692)"
250,East 75th Street,"LINESTRING (-8233097.822942047 4978726.179760954, -8233113.76389313 4978734.999273335, -8233266.549894245 4978819.578801482, -8233277.136377819 4978825.429133085)"
251,3rd Avenue,"LINESTRING (-8233097.822942047 4978726.179760954, -8233093.748648687 4978733.544053243, -8233050.935172527 4978811.023800271, -8233046.29314976 4978819.4318082705)"
252,East 75th Street,"LINESTRING (-8232848.25577564 4978587.729159594, -8232863.094663762 4978595.960587549, -8233083.55178333 4978718.2569057895, -8233097.822942047 4978726.179760954)"
253,2nd Avenue,"LINESTRING (-8232848.25577564 4978587.729159594, -8232853.042513742 4978578.9685760345, -8232869.350819144 4978549.144433532, -8232886.93929869 4978517.306637206, -8232895.366184143 4978501.56416407, -8232900.152922247 4978492.833055457)"
254,East 75th Street,"LINESTRING (-8232584.595561695 4978441.4754802715, -8232596.083733146 4978447.854740807, -8232600.2470821 4978450.1624466805, -8232834.296311494 4978580.056299069, -8232838.504188246 4978582.3199392855, -8232848.25577564 4978587.729159594)"
255,1st Avenue,"LINESTRING (-8232584.595561695 4978441.4754802715, -8232580.454476638 4978448.98654553, -8232553.559687662 4978497.624875043, -8232538.242125728 4978525.346920389, -8232533.845005843 4978533.093232385)"
256,West 37th Street,"LINESTRING (-8236128.262307965 4975786.16875228, -8236143.624397694 4975794.897442096, -8236216.516400267 4975836.366172632, -8236230.6094478015 4975844.389554708, -8236234.138275659 4975846.373358985, -8236249.46696954 4975855.131492308, -8236253.374283669 4975857.350416595)"
257,6th Avenue,"LINESTRING (-8236128.262307965 4975786.16875228, -8236122.99689605 4975795.661570195, -8236082.676976484 4975868.283401895, -8236077.945898126 4975876.835826342)"
258,6th Avenue,"LINESTRING (-8236077.945898126 4975876.835826342, -8236073.303875361 4975885.05027543, -8236031.536802416 4975959.186358238, -8236026.360446092 4975968.9291598005)"
259,West 39th Street,"LINESTRING (-8236026.360446092 4975968.9291598005, -8236041.945174804 4975977.7167930715, -8236189.543687645 4976060.920495112, -8236202.913158491 4976068.63546276)"
260,6th Avenue,"LINESTRING (-8236026.360446092 4975968.9291598005, -8236022.208229086 4975976.159118371, -8235981.743594184 4976050.472234354, -8235976.94572413 4976059.274636136)"
261,West 40th Street,"LINESTRING (-8235976.94572413 4976059.274636136, -8235962.374002785 4976051.177601818, -8235923.924250664 4976029.810868338, -8235788.381638674 4975954.498648729, -8235631.254177421 4975867.195980767, -8235618.91997784 4975860.3481694115)"
262,6th Avenue,"LINESTRING (-8235976.94572413 4976059.274636136, -8235972.003138737 4976068.341559119, -8235966.370372504 4976078.731058197, -8235932.08396934 4976141.832439842, -8235927.553266064 4976150.164674166)"
263,West 41st Street,"LINESTRING (-8235927.553266064 4976150.164674166, -8235942.269702748 4976158.349962424, -8236003.295047601 4976192.281508782, -8236006.456521138 4976194.044953129, -8236016.363955819 4976199.834930979, -8236019.725804442 4976201.804112045, -8236026.471765584 4976205.580826095, -8236140.863674324 4976269.359019266, -8236146.062294544 4976272.254030079, -8236153.632019917 4976276.354072239, -8236158.563473359 4976279.028652642)"
264,6th Avenue,"LINESTRING (-8235927.553266064 4976150.164674166, -8235922.788791859 4976158.952470447, -8235902.595436229 4976196.014133028, -8235880.943795269 4976235.7798956195, -8235874.342549466 4976247.888940469)"
265,6th Avenue,"LINESTRING (-8235874.342549466 4976247.888940469, -8235865.949059859 4976262.951790264, -8235864.691149613 4976265.214893607, -8235824.337834201 4976337.9283890715, -8235819.350721015 4976346.93678825)"
266,West 42nd Street,"LINESTRING (-8235874.342549466 4976247.888940469, -8235889.849354533 4976256.559260929, -8236039.462750158 4976340.264987734, -8236074.851216282 4976360.059968639, -8236087.252207557 4976366.996304028, -8236116.061691774 4976383.117424582, -8236131.145482777 4976391.508647355)"
267,West 42nd Street,"LINESTRING (-8235874.342549466 4976247.888940469, -8235857.655757796 4976238.660201044, -8235820.430520074 4976218.071914092, -8235705.8716321 4976154.1911885375, -8235683.919428514 4976141.935306889, -8235529.797593512 4976055.747796408, -8235513.800982684 4976047.812411671)"
268,6th Avenue,"LINESTRING (-8235819.350721015 4976346.93678825, -8235814.597378756 4976355.4896316985, -8235773.008416996 4976430.657985114, -8235768.422053975 4976438.946378544)"
269,West 43rd Street,"LINESTRING (-8235819.350721015 4976346.93678825, -8235834.2341369325 4976355.239806269, -8235983.914324252 4976438.4614191605, -8236014.248885495 4976455.37622886, -8236059.466862654 4976480.594192399, -8236083.389421227 4976493.93798965, -8236087.57503408 4976496.245233974, -8236115.916976435 4976511.896300623, -8236123.531229606 4976516.128706051, -8236134.830157923 4976522.403838308)"
270,West 44th Street,"LINESTRING (-8235768.422053975 4976438.946378544, -8235753.97278407 4976430.878421018, -8235466.868685365 4976271.2988233715, -8235423.242576924 4976247.051299749, -8235409.572543454 4976239.189236827)"
271,6th Avenue,"LINESTRING (-8235768.422053975 4976438.946378544, -8235763.134378164 4976448.616179767, -8235722.714271056 4976522.447925903, -8235717.805081513 4976531.397711709)"
272,6th Avenue,"LINESTRING (-8235717.805081513 4976531.397711709, -8235713.1185309505 4976539.803757733, -8235672.408993167 4976612.387032904, -8235671.663152577 4976613.709673008, -8235666.8096227795 4976622.365622111)"
273,West 45th Street,"LINESTRING (-8235717.805081513 4976531.397711709, -8235731.809073454 4976539.2012262205, -8235803.06467951 4976578.953689742, -8235953.468443522 4976662.853227806, -8236014.037378462 4976696.595476748, -8236018.968831904 4976699.373045116, -8236021.462388499 4976700.783873795, -8236031.915288683 4976706.60354425)"
274,West 46th Street,"LINESTRING (-8235666.8096227795 4976622.365622111, -8235652.315825079 4976614.253425103, -8235558.161799767 4976561.62718021, -8235321.429770645 4976431.142944111, -8235307.136348027 4976423.545255931)"
275,6th Avenue,"LINESTRING (-8235666.8096227795 4976622.365622111, -8235661.599870609 4976631.800468408, -8235660.876293919 4976633.123111139, -8235620.333735374 4976706.574151965, -8235616.02567108 4976714.377806403)"
276,West 47th Street,"LINESTRING (-8235616.02567108 4976714.377806403, -8235631.432288606 4976722.975060034, -8235694.528175986 4976758.172442247, -8235917.890734264 4976884.72240771, -8235930.158142149 4976891.659115616)"
277,6th Avenue,"LINESTRING (-8235616.02567108 4976714.377806403, -8235610.927238402 4976723.665779885, -8235599.761893475 4976743.946512163, -8235569.8280824 4976798.32259633, -8235565.208323533 4976806.772960907)"
278,West 48th Street,"LINESTRING (-8235565.208323533 4976806.772960907, -8235550.258115918 4976798.46955913, -8235355.22636805 4976690.2320559025, -8235349.860768593 4976687.219352328, -8235333.596990989 4976678.063678387, -8235219.8062074995 4976614.488561154, -8235205.635236322 4976606.596810556)"
279,6th Avenue,"LINESTRING (-8235565.208323533 4976806.772960907, -8235560.187814498 4976815.869970247, -8235518.754700026 4976890.9536874695, -8235514.201732851 4976899.271864286)"
280,6th Avenue,"LINESTRING (-8235514.201732851 4976899.271864286, -8235494.030641119 4976935.70438647, -8235467.77037324 4976983.100670519, -8235462.415905734 4976992.771010362)"
281,West 49th Street,"LINESTRING (-8235514.201732851 4976899.271864286, -8235530.654753589 4976908.413049095, -8235567.03396318 4976928.65007548, -8235655.8112570895 4976978.000966282, -8235716.98131728 4977012.008842555, -8235776.514980956 4977045.105644807, -8235816.85716442 4977067.532760157, -8235828.501183156 4977073.999303633)"
282,West 50th Street,"LINESTRING (-8235462.415905734 4976992.771010362, -8235447.910976084 4976984.658505774, -8235422.68597947 4976968.727447527, -8235259.07972385 4976878.4323463235, -8235256.285604633 4976876.8745280085, -8235246.177794868 4976871.231112793, -8235192.243501578 4976840.721455743, -8235159.393119846 4976822.644969783, -8235119.173387823 4976800.394772011, -8235104.946756899 4976791.88562787)"
283,6th Avenue,"LINESTRING (-8235462.415905734 4976992.771010362, -8235450.994525978 4977013.728345063, -8235447.176267444 4977020.738627643, -8235412.834204535 4977083.037774985)"
284,6th Avenue,"LINESTRING (-8235412.834204535 4977083.037774985, -8235367.2711369535 4977165.736501976, -8235366.926046533 4977166.339072132, -8235364.666260868 4977170.43948954, -8235361.426863685 4977176.318227178)"
285,West 51st Street,"LINESTRING (-8235412.834204535 4977083.037774985, -8235500.988109294 4977132.653987812, -8235567.456977246 4977170.3660053415, -8235591.090105141 4977183.769532219, -8235600.363018724 4977188.913434478, -8235673.433132482 4977228.63914802, -8235713.808711792 4977250.596381984, -8235728.413828985 4977258.532743754)"
286,6th Avenue,"LINESTRING (-8235361.426863685 4977176.318227178, -8235357.697660744 4977183.7107447805, -8235356.773708971 4977184.754221871, -8235339.018250189 4977216.984491674, -8235318.791498711 4977253.682744129, -8235311.678183249 4977266.586687844)"
287,West 52nd Street,"LINESTRING (-8235361.426863685 4977176.318227178, -8235347.055517426 4977168.514203732, -8235345.508176503 4977167.6470904, -8235276.746127039 4977129.538270351, -8235268.063206759 4977124.732425081, -8235252.4450822 4977115.44407028, -8235213.50552432 4977093.69289423, -8235197.219482817 4977084.654413019, -8235050.544921747 4977003.352548209, -8235015.167587575 4976983.747319085, -8235002.8667838415 4976976.413738991)"
288,West 53rd Street,"LINESTRING (-8235311.678183249 4977266.586687844, -8235326.795370102 4977274.978669499, -8235363.942684178 4977295.583880957, -8235424.700862253 4977329.284224183, -8235450.894338436 4977343.702068984, -8235454.556749684 4977345.715571938, -8235487.0286451485 4977363.601963123, -8235499.340580829 4977370.539011082, -8235552.874123953 4977400.359555127, -8235586.971283983 4977419.304245723, -8235594.351766223 4977423.404769315, -8235614.010788295 4977434.310112838, -8235627.157620159 4977441.6146421945)"
289,6th Avenue,"LINESTRING (-8235311.678183249 4977266.586687844, -8235305.1659930395 4977278.403070389, -8235265.6809696555 4977350.065915506, -8235265.135504151 4977351.050621922, -8235261.027814941 4977358.502060245)"
290,West 54th Street,"LINESTRING (-8235261.027814941 4977358.502060245, -8235246.856843763 4977350.65379992, -8235215.79870583 4977333.428801242, -8234915.202684841 4977167.735271413, -8234901.699630607 4977159.79898341)"
291,6th Avenue,"LINESTRING (-8235261.027814941 4977358.502060245, -8235255.550895993 4977368.422623047, -8235223.023340782 4977427.461202951, -8235214.251364908 4977443.304825824, -8235208.985952993 4977452.931529449)"
292,West 55th Street,"LINESTRING (-8235208.985952993 4977452.931529449, -8235223.791445269 4977461.147303864, -8235330.379857703 4977520.436299405, -8235339.496924 4977525.595076323, -8235340.187104843 4977525.977208055, -8235351.22999833 4977532.135409951, -8235396.09175312 4977557.135691881, -8235404.919388739 4977562.132816459, -8235510.695168891 4977620.217228521, -8235524.109167533 4977628.065705422)"
293,6th Avenue,"LINESTRING (-8235208.985952993 4977452.931529449, -8235204.744680394 4977460.530018248, -8235163.122322787 4977535.118979327, -8235159.114821119 4977542.276610074)"
294,6th Avenue,"LINESTRING (-8235159.114821119 4977542.276610074, -8235153.459790986 4977552.417820728, -8235111.447815162 4977627.683569696, -8235103.789034195 4977641.411070138)"
295,West 56th Street,"LINESTRING (-8235159.114821119 4977542.276610074, -8235145.266676464 4977534.604570749, -8235109.744626952 4977514.924788615, -8235069.703006114 4977492.731803304, -8235016.937567477 4977463.484171195, -8234815.1932543125 4977350.712588365, -8234800.521345425 4977342.511603927)"
296,West 57th Street,"LINESTRING (-8235103.789034195 4977641.411070138, -8235119.373762905 4977650.097325032, -8235151.689811083 4977668.08715668, -8235294.04517591 4977747.380967999, -8235404.607694165 4977808.832277278, -8235419.9363880465 4977817.342307294)"
297,6th Avenue,"LINESTRING (-8235103.789034195 4977641.411070138, -8235095.562523826 4977656.446673594, -8235053.795450878 4977732.874341249, -8235049.153428113 4977741.36960739)"
298,West 57th Street,"LINESTRING (-8235103.789034195 4977641.411070138, -8235088.760902938 4977633.077563822, -8234985.790373952 4977575.933712029, -8234759.288606036 4977450.56527012, -8234745.162162656 4977442.746330331)"
299,West 58th Street,"LINESTRING (-8235049.153428113 4977741.36960739, -8235033.8692620285 4977732.903736621, -8234774.661827715 4977589.293702994, -8234763.151392367 4977582.885608238)"
300,6th Avenue,"LINESTRING (-8235049.153428113 4977741.36960739, -8235043.743300861 4977751.1729773255, -8235002.833387995 4977825.279129532, -8234997.812878959 4977840.667764359)"
301,Central Park South,"LINESTRING (-8234997.812878959 4977840.667764359, -8234984.510199809 4977833.289447406, -8234720.927909508 4977687.26752839, -8234707.62523036 4977679.904024911)"
302,Central Park South,"LINESTRING (-8234997.812878959 4977840.667764359, -8235012.384600304 4977848.795677735, -8235017.527560778 4977851.661760917, -8235050.778692679 4977870.210483694, -8235058.326154154 4977874.414081865, -8235092.924251894 4977893.712442142, -8235153.537714631 4977927.517734824, -8235300.112088157 4978009.268234865, -8235313.069676885 4978016.499703622)"
303,West 36th Street,"LINESTRING (-8237757.300604285 4976573.060615622, -8237743.307744292 4976565.154202562, -8237645.580363324 4976512.087346662, -8237633.580122217 4976505.547695917)"
304,11th Avenue,"LINESTRING (-8237757.300604285 4976573.060615622, -8237751.823685338 4976583.171428265, -8237725.385306274 4976631.359587537, -8237711.971307633 4976655.843202032, -8237707.396076561 4976664.1317865085)"
305,11th Avenue,"LINESTRING (-8237707.396076561 4976664.1317865085, -8237711.971307633 4976655.843202032, -8237725.385306274 4976631.359587537, -8237751.823685338 4976583.171428265, -8237757.300604285 4976573.060615622)"
306,11th Avenue,"LINESTRING (-8237707.396076561 4976664.1317865085, -8237701.919157616 4976673.992859824, -8237661.243015679 4976747.370726912, -8237656.623256811 4976755.497730671)"
307,11th Avenue,"LINESTRING (-8237656.623256811 4976755.497730671, -8237651.625011674 4976765.03557915, -8237612.251307782 4976836.679962076, -8237607.086083409 4976846.291371574)"
308,West 38th Street,"LINESTRING (-8237656.623256811 4976755.497730671, -8237643.164730375 4976747.5764737595, -8237567.578796126 4976703.429178117, -8237520.134429149 4976676.358931056, -8237481.027892034 4976654.770389308, -8237444.170008632 4976633.666864314, -8237360.580202996 4976587.492040348, -8237343.22549438 4976580.114669852)"
309,11th Avenue,"LINESTRING (-8237656.623256811 4976755.497730671, -8237661.243015679 4976747.370726912, -8237701.919157616 4976673.992859824, -8237707.396076561 4976664.1317865085)"
310,West 40th Street,"LINESTRING (-8237564.328266994 4976940.43665628, -8237547.407704394 4976932.529945893)"
311,11th Avenue,"LINESTRING (-8237564.328266994 4976940.43665628, -8237571.664221437 4976927.841769338, -8237602.154629967 4976870.790221117, -8237604.52573512 4976857.666354663, -8237607.086083409 4976846.291371574)"
312,11th Avenue,"LINESTRING (-8237513.154697077 4977031.423072198, -8237517.8969073845 4977022.987209914, -8237558.116639408 4976951.06222697, -8237564.328266994 4976940.43665628)"
313,West 42nd Street,"LINESTRING (-8237458.340979812 4977131.6693034135, -8237446.630169378 4977124.717728309)"
314,11th Avenue,"LINESTRING (-8237458.340979812 4977131.6693034135, -8237467.636157291 4977115.179528658, -8237507.744569824 4977041.3579994915, -8237513.154697077 4977031.423072198)"
315,West 42nd Street,"LINESTRING (-8237458.340979812 4977131.6693034135, -8237469.96273465 4977138.562096296, -8237519.856130422 4977166.045135465, -8237618.496331214 4977220.379478405, -8237681.046753091 4977254.814410494, -8237714.6318434635 4977271.113360065, -8237744.888481061 4977287.250669662, -8237757.723618349 4977295.363425541)"
316,11th Avenue,"LINESTRING (-8237398.3843020685 4977225.464612252, -8237402.948401192 4977216.940400946)"
317,West 43rd Street,"LINESTRING (-8237398.3843020685 4977225.464612252, -8237415.282600772 4977234.914737964, -8237661.977724318 4977372.964039602, -8237673.866645936 4977379.607151118)"
318,West 44th Street,"LINESTRING (-8237346.6096069 4977316.674138836, -8237333.529566734 4977309.443188148, -8237332.394107927 4977308.796518022, -8237133.45504593 4977197.9667090345, -8237092.734376198 4977175.054298286, -8237090.474590534 4977173.79036956, -8237048.618461996 4977150.510595269, -8237032.944677693 4977141.810087805)"
319,11th Avenue,"LINESTRING (-8237346.6096069 4977316.674138836, -8237351.919546613 4977307.429692669, -8237353.366699992 4977304.975286334, -8237392.985306766 4977234.503223745, -8237398.3843020685 4977225.464612252)"
320,West 45th Street,"LINESTRING (-8237296.115085877 4977408.575285328, -8237309.974362481 4977416.335408927, -8237314.193371182 4977418.672265538, -8237380.283752865 4977455.092027596, -8237439.194027394 4977488.557764018, -8237509.414362186 4977528.740314869, -8237515.581461976 4977532.326475941, -8237526.8581263935 4977538.073154831)"
321,11th Avenue,"LINESTRING (-8237296.115085877 4977408.575285328, -8237300.155983393 4977401.226689114, -8237341.477778376 4977326.006776192, -8237346.6096069 4977316.674138836)"
322,11th Avenue,"LINESTRING (-8237245.66509265 4977500.712453806, -8237249.472219235 4977493.745918752, -8237290.8830698095 4977418.113771454, -8237296.115085877 4977408.575285328)"
323,West 46th Street,"LINESTRING (-8237245.66509265 4977500.712453806, -8237233.497872307 4977494.201535872, -8237168.186727057 4977459.163171665, -8237022.191214881 4977377.990464269, -8236993.237015327 4977361.926490413, -8236945.258314794 4977335.192451588, -8236930.6420656545 4977327.0355714075)"
324,West 47th Street,"LINESTRING (-8237194.981328492 4977592.674121646, -8237212.658863629 4977602.932964543, -8237404.851964483 4977709.975373466, -8237410.529258514 4977713.135369036, -8237423.89872936 4977720.8075485835)"
325,11th Avenue,"LINESTRING (-8237194.981328492 4977592.674121646, -8237199.434108122 4977584.502328995, -8237240.321757092 4977510.398003412, -8237245.66509265 4977500.712453806)"
326,West 48th Street,"LINESTRING (-8237143.785494676 4977684.680748092, -8237132.041288397 4977678.11091712, -8237089.550638761 4977654.315526046, -8236922.515742827 4977560.751258232, -8236844.324932491 4977517.9230501, -8236829.764343097 4977509.677833232)"
327,11th Avenue,"LINESTRING (-8237143.785494676 4977684.680748092, -8237148.271670154 4977676.62645928, -8237189.971951406 4977601.68367794, -8237194.981328492 4977592.674121646)"
328,West 49th Street,"LINESTRING (-8237093.06833467 4977777.481919791, -8237110.690210063 4977787.402908113, -8237146.2233915245 4977807.641755536, -8237273.806659922 4977877.970974039, -8237309.707195703 4977897.504508278, -8237322.497805196 4977904.603612794)"
329,11th Avenue,"LINESTRING (-8237093.06833467 4977777.481919791, -8237097.498850404 4977769.368763496, -8237115.632795454 4977736.0490419185, -8237138.854041234 4977693.36704146, -8237143.785494676 4977684.680748092)"
330,West 50th Street,"LINESTRING (-8237041.872500854 4977869.813640605, -8237029.148683057 4977862.905633832, -8236956.7576181935 4977823.588879812, -8236822.795742973 4977747.410363414, -8236743.536265528 4977703.376130199, -8236727.851349275 4977694.660432673)"
331,11th Avenue,"LINESTRING (-8237041.872500854 4977869.813640605, -8237046.6258431105 4977861.244773358, -8237088.35952021 4977785.786153773, -8237093.06833467 4977777.481919791)"
332,11th Avenue,"LINESTRING (-8236991.812125843 4977960.911599682, -8236995.875287259 4977953.5184938805, -8237004.547075591 4977937.732835414, -8237037.241610037 4977878.235536319, -8237041.872500854 4977869.813640605)"
333,West 51st Street,"LINESTRING (-8236991.812125843 4977960.911599682, -8237004.69179093 4977968.157730677, -8237009.7568277605 4977971.009150841, -8237114.708843681 4978030.080769171, -8237145.755849663 4978047.351090837, -8237169.25539417 4978060.491253906, -8237188.213103451 4978070.70649356, -8237207.5715629 4978081.3773884075, -8237221.597818741 4978088.82938387)"
334,11th Avenue,"LINESTRING (-8236939.6032846635 4978053.979962839, -8236944.5458700545 4978045.131669068, -8236986.613505624 4977970.156664312, -8236991.812125843 4977960.911599682)"
335,West 52nd Street,"LINESTRING (-8236939.6032846635 4978053.979962839, -8236926.723619579 4978046.939542391, -8236743.14664731 4977945.846131551, -8236697.149433714 4977920.359821783, -8236640.031402989 4977888.39179369, -8236624.29082699 4977879.587743638)"
336,11th Avenue,"LINESTRING (-8236889.531777704 4978145.256019233, -8236894.440967247 4978136.922083047, -8236935.28408842 4978061.711202829, -8236939.6032846635 4978053.979962839)"
337,West 54th Street,"LINESTRING (-8236839.259895662 4978236.091975293, -8236827.014751674 4978229.507074998, -8236695.936051266 4978156.750101617, -8236539.688013988 4978070.015678456, -8236524.938181457 4978061.593617383)"
338,11th Avenue,"LINESTRING (-8236839.259895662 4978236.091975293, -8236844.002105969 4978228.037231788, -8236884.399949178 4978154.236688584, -8236889.531777704 4978145.256019233)"
339,11th Avenue,"LINESTRING (-8236787.563124136 4978331.191365203, -8236791.1698756395 4978324.5329079125, -8236792.639292918 4978321.813671692, -8236833.192983413 4978246.821844659, -8236839.259895662 4978236.091975293)"
340,West 55th Street,"LINESTRING (-8236787.563124136 4978331.191365203, -8236806.097819354 4978341.495079583, -8236839.248763713 4978359.941842174, -8236879.513023533 4978382.136797924, -8236932.701476234 4978412.151513669, -8236940.83893101 4978416.561127083, -8237004.124061526 4978450.853288673, -8237012.07227317 4978455.204124469)"
341,West 56th Street,"LINESTRING (-8236738.8051871685 4978421.823268362, -8236725.658355307 4978414.679691782, -8236647.356225481 4978372.009424442, -8236525.160820439 4978303.940224356, -8236496.629634949 4978288.051109903, -8236438.120110588 4978255.464542529, -8236423.247826617 4978247.189306148)"
342,11th Avenue,"LINESTRING (-8236738.8051871685 4978421.823268362, -8236743.057591718 4978414.003551061, -8236764.186031071 4978375.140236893, -8236783.544490519 4978338.746441444, -8236787.563124136 4978331.191365203)"
343,West 57th Street,"LINESTRING (-8236684.214108886 4978522.260156409, -8236700.878636656 4978531.329365735, -8236760.545883721 4978564.490112039, -8236799.786004227 4978586.141670714, -8236891.2572298115 4978636.544568581, -8236926.077966531 4978656.050221785)"
344,11th Avenue,"LINESTRING (-8236684.214108886 4978522.260156409, -8236676.7445710525 4978535.988914156, -8236659.423258285 4978567.856169267, -8236635.055421751 4978612.673347434, -8236630.691697711 4978620.713709124)"
345,West 57th Street,"LINESTRING (-8236684.214108886 4978522.260156409, -8236669.775970928 4978513.999392846, -8236616.008656875 4978483.866773588, -8236566.3824278815 4978456.321231269, -8236383.217337729 4978353.959501804, -8236368.93504706 4978345.96345553)"
346,11th Avenue,"LINESTRING (-8236684.214108886 4978522.260156409, -8236692.01760519 4978507.914066148, -8236695.858127622 4978500.843920809, -8236733.205816782 4978432.127078352, -8236738.8051871685 4978421.823268362)"
347,West 58th Street,"LINESTRING (-8236630.691697711 4978620.713709124, -8236645.964731849 4978629.239145568, -8236746.4083083905 4978685.286725954, -8236800.442789222 4978715.434665799, -8236930.185655742 4978787.828319225, -8236936.664450105 4978791.444341164)"
348,West 58th Street,"LINESTRING (-8236630.691697711 4978620.713709124, -8236615.964129078 4978612.511658327, -8236329.193988847 4978453.293284183, -8236311.894939977 4978443.768485884)"
349,11th Avenue,"LINESTRING (-8236630.691697711 4978620.713709124, -8236626.2166541815 4978630.165184802, -8236619.036547027 4978643.188539524, -8236607.403660238 4978664.399300021, -8236588.089728584 4978698.751128349, -8236584.549768777 4978704.4249978, -8236579.306620762 4978712.81821487)"
350,11th Avenue,"LINESTRING (-8236630.691697711 4978620.713709124, -8236635.055421751 4978612.673347434, -8236659.423258285 4978567.856169267, -8236676.7445710525 4978535.988914156, -8236684.214108886 4978522.260156409)"
351,West End Avenue,"LINESTRING (-8236579.306620762 4978712.81821487, -8236573.740646222 4978721.94639784, -8236558.445348186 4978749.7866736315, -8236549.673372312 4978766.044020272, -8236533.676761485 4978795.8688251125, -8236528.667384399 4978804.997085704)"
352,11th Avenue,"LINESTRING (-8236579.306620762 4978712.81821487, -8236584.549768777 4978704.4249978, -8236588.089728584 4978698.751128349, -8236607.403660238 4978664.399300021, -8236619.036547027 4978643.188539524, -8236626.2166541815 4978630.165184802, -8236630.691697711 4978620.713709124)"
353,West 59th Street,"LINESTRING (-8236579.306620762 4978712.81821487, -8236595.603794212 4978721.961097014, -8236614.260940869 4978732.441613925, -8236726.894001653 4978793.414044733)"
354,West 62nd Street,"LINESTRING (-8236426.8657100685 4978988.578359877, -8236443.2408071635 4978997.780298535, -8236498.811496968 4979028.590686606, -8236501.794859322 4979030.237045957)"
355,West End Avenue,"LINESTRING (-8236426.8657100685 4978988.578359877, -8236421.733881542 4978997.809697714, -8236397.121142128 4979042.6288489, -8236381.002079863 4979072.263402265, -8236376.037230573 4979081.171425466)"
356,West End Avenue,"LINESTRING (-8236426.8657100685 4978988.578359877, -8236431.129246566 4978980.890484869, -8236452.380137358 4978942.451200597, -8236472.239534517 4978906.246384016, -8236477.939092444 4978896.559450165)"
357,West 63rd Street,"LINESTRING (-8236376.037230573 4979081.171425466, -8236392.167424789 4979089.888360327, -8236490.317819821 4979145.379991474)"
358,West 63rd Street,"LINESTRING (-8236376.037230573 4979081.171425466, -8236361.409849483 4979073.071885882, -8236305.58312485 4979040.276904072, -8236248.899240138 4979007.849522493)"
359,West End Avenue,"LINESTRING (-8236376.037230573 4979081.171425466, -8236370.50465188 4979090.711545134, -8236351.112796584 4979126.4319527, -8236329.906433588 4979164.916060634, -8236325.442522007 4979172.824578298)"
360,West End Avenue,"LINESTRING (-8236376.037230573 4979081.171425466, -8236381.002079863 4979072.263402265, -8236397.121142128 4979042.6288489, -8236421.733881542 4978997.809697714, -8236426.8657100685 4978988.578359877)"
361,West 64th Street,"LINESTRING (-8236325.442522007 4979172.824578298, -8236311.193627185 4979164.504465094, -8236280.235676796 4979147.393865872, -8236135.164116395 4979065.457442818, -8236085.805054177 4979037.777963312, -8236025.32517483 4979004.306918427, -8236007.937070366 4978994.649286485)"
362,West 64th Street,"LINESTRING (-8236325.442522007 4979172.824578298, -8236341.394605038 4979181.703293494, -8236439.667451509 4979236.401649085)"
363,West End Avenue,"LINESTRING (-8236325.442522007 4979172.824578298, -8236329.906433588 4979164.916060634, -8236351.112796584 4979126.4319527, -8236370.50465188 4979090.711545134, -8236376.037230573 4979081.171425466)"
364,West End Avenue,"LINESTRING (-8236325.442522007 4979172.824578298, -8236320.154846194 4979182.438286835, -8236298.81489981 4979220.922615467, -8236279.768134935 4979255.937900323, -8236274.614042511 4979265.595790654)"
365,West End Avenue,"LINESTRING (-8236274.614042511 4979265.595790654, -8236268.814297039 4979275.900490869, -8236247.574538196 4979314.311687473, -8236228.394189932 4979349.106805397, -8236221.837471926 4979361.10210926)"
366,West End Avenue,"LINESTRING (-8236274.614042511 4979265.595790654, -8236279.768134935 4979255.937900323, -8236298.81489981 4979220.922615467, -8236320.154846194 4979182.438286835, -8236325.442522007 4979172.824578298)"
367,West 65th Street,"LINESTRING (-8236274.614042511 4979265.595790654, -8236259.519119558 4979257.466698156, -8236221.770680231 4979236.5927484175, -8236168.381852447 4979207.178194975, -8235973.394632373 4979098.32600789, -8235956.095583503 4979087.771599714)"
368,West 66th Street,"LINESTRING (-8236221.837471926 4979361.10210926, -8236237.043714369 4979369.6722924905, -8236264.561892494 4979385.004560151, -8236307.809514666 4979409.083472048, -8236350.300164301 4979432.750836468)"
369,West End Avenue,"LINESTRING (-8236221.837471926 4979361.10210926, -8236215.648108237 4979372.171318175, -8236187.4508812195 4979423.4896870395, -8236175.907050025 4979443.849527117, -8236172.1889790315 4979450.773352441, -8236156.348215493 4979479.042015046, -8236145.817391663 4979498.31414551, -8236140.240285175 4979508.486788063, -8236117.041303292 4979550.132991549, -8236103.616172703 4979574.741527068, -8236088.743888734 4979601.55519909, -8236082.287358266 4979613.374406846, -8236078.079481514 4979621.106881354, -8236063.240593392 4979648.097087502, -8236028.475516418 4979710.398294799, -8236022.108041544 4979721.820715941)"
370,West End Avenue,"LINESTRING (-8236221.837471926 4979361.10210926, -8236228.394189932 4979349.106805397, -8236247.574538196 4979314.311687473, -8236268.814297039 4979275.900490869, -8236274.614042511 4979265.595790654)"
371,West 70th Street,"LINESTRING (-8236022.108041544 4979721.820715941, -8236008.393480279 4979713.676543, -8235960.091953224 4979690.464217321, -8235949.549997445 4979685.157290574, -8235935.746380587 4979677.777580055, -8235887.088631162 4979650.346274715, -8235792.3112167 4979598.05648113, -8235718.038852442 4979556.512976284, -8235701.942054072 4979547.075304488)"
372,West 70th Street,"LINESTRING (-8236022.108041544 4979721.820715941, -8236037.0248533115 4979732.155298963, -8236079.637954386 4979755.05900842, -8236140.440660258 4979788.062201568, -8236197.224732512 4979821.006702938, -8236207.043111599 4979826.225498493)"
373,West End Avenue,"LINESTRING (-8236022.108041544 4979721.820715941, -8236015.551323537 4979734.65441741, -8235973.995757624 4979809.628268214, -8235969.754485025 4979817.155086599)"
374,West End Avenue,"LINESTRING (-8236022.108041544 4979721.820715941, -8236028.475516418 4979710.398294799, -8236063.240593392 4979648.097087502, -8236078.079481514 4979621.106881354, -8236082.287358266 4979613.374406846, -8236088.743888734 4979601.55519909, -8236103.616172703 4979574.741527068, -8236117.041303292 4979550.132991549, -8236140.240285175 4979508.486788063, -8236145.817391663 4979498.31414551, -8236156.348215493 4979479.042015046, -8236172.1889790315 4979450.773352441, -8236175.907050025 4979443.849527117, -8236187.4508812195 4979423.4896870395, -8236215.648108237 4979372.171318175, -8236221.837471926 4979361.10210926)"
375,West 71st Street,"LINESTRING (-8235969.754485025 4979817.155086599, -8235984.67129679 4979825.402251686, -8236171.621249629 4979930.675500277)"
376,West End Avenue,"LINESTRING (-8235969.754485025 4979817.155086599, -8235973.995757624 4979809.628268214, -8236015.551323537 4979734.65441741, -8236022.108041544 4979721.820715941)"
377,West End Avenue,"LINESTRING (-8235969.754485025 4979817.155086599, -8235965.112462259 4979826.37250686, -8235945.275328998 4979862.051502709, -8235922.4548333865 4979903.478699764, -8235914.706996826 4979918.135560684)"
378,West 72nd Street,"LINESTRING (-8235914.706996826 4979918.135560684, -8235900.536025649 4979910.593963501, -8235655.56635421 4979773.993566171, -8235644.3787453845 4979767.304723641)"
379,West End Avenue,"LINESTRING (-8235914.706996826 4979918.135560684, -8235906.847840777 4979933.174669529, -8235883.615463047 4979974.337549243, -8235864.000968771 4980010.01708572, -8235859.448001597 4980018.411424946)"
380,West 72nd Street,"LINESTRING (-8235914.706996826 4979918.135560684, -8235929.345509867 4979926.309306116, -8235968.218276051 4979948.3020076575, -8236037.381075681 4979985.333947904, -8236048.913774927 4979991.390793099)"
381,West End Avenue,"LINESTRING (-8235914.706996826 4979918.135560684, -8235922.4548333865 4979903.478699764, -8235945.275328998 4979862.051502709, -8235965.112462259 4979826.37250686, -8235969.754485025 4979817.155086599)"
382,West 73rd Street,"LINESTRING (-8235859.448001597 4980018.411424946, -8235873.663500573 4980026.320633833, -8236001.703178883 4980097.459698356, -8236007.992730112 4980100.458752759, -8236014.05964236 4980103.0755754905)"
383,West End Avenue,"LINESTRING (-8235859.448001597 4980018.411424946, -8235864.000968771 4980010.01708572, -8235883.615463047 4979974.337549243, -8235906.847840777 4979933.174669529, -8235914.706996826 4979918.135560684)"
384,West End Avenue,"LINESTRING (-8235859.448001597 4980018.411424946, -8235854.817110781 4980026.952782776, -8235811.892315132 4980104.501597162, -8235808.129716341 4980111.602306109)"
385,West 74th Street,"LINESTRING (-8235808.129716341 4980111.602306109, -8235793.457807455 4980103.222588023, -8235607.854820455 4980000.431964638, -8235597.6579551 4979994.786744353)"
386,West End Avenue,"LINESTRING (-8235808.129716341 4980111.602306109, -8235811.892315132 4980104.501597162, -8235854.817110781 4980026.952782776, -8235859.448001597 4980018.411424946)"
387,West End Avenue,"LINESTRING (-8235808.129716341 4980111.602306109, -8235803.031283664 4980120.717095348, -8235781.646809483 4980159.322732492, -8235760.462710384 4980197.443376207, -8235756.110118294 4980205.220417439)"
388,West 75th Street,"LINESTRING (-8235756.110118294 4980205.220417439, -8235770.114110237 4980213.365000344, -8235935.768644487 4980305.116989344, -8235947.523982714 4980311.629781468)"
389,West End Avenue,"LINESTRING (-8235756.110118294 4980205.220417439, -8235760.462710384 4980197.443376207, -8235781.646809483 4980159.322732492, -8235803.031283664 4980120.717095348, -8235808.129716341 4980111.602306109)"
390,West End Avenue,"LINESTRING (-8235756.110118294 4980205.220417439, -8235751.668470612 4980213.482611699, -8235709.378196058 4980290.841787491, -8235704.958812275 4980298.618903111)"
391,West 76th Street,"LINESTRING (-8235704.958812275 4980298.618903111, -8235690.197847796 4980290.724175205, -8235557.182188247 4980216.584611704, -8235546.885135348 4980210.571731073)"
392,West End Avenue,"LINESTRING (-8235704.958812275 4980298.618903111, -8235709.378196058 4980290.841787491, -8235751.668470612 4980213.482611699, -8235756.110118294 4980205.220417439)"
393,West End Avenue,"LINESTRING (-8235704.958812275 4980298.618903111, -8235700.361317305 4980306.660652998, -8235677.485161947 4980347.575179579, -8235657.826139873 4980383.814743524, -8235652.349220925 4980393.400240945)"
394,West 77th Street,"LINESTRING (-8235652.349220925 4980393.400240945, -8235666.364344817 4980401.1921399515, -8235831.785108135 4980493.342843579, -8235837.295422929 4980496.4155288, -8235849.284532088 4980503.090168929)"
395,West End Avenue,"LINESTRING (-8235652.349220925 4980393.400240945, -8235648.130212224 4980400.677580392, -8235606.21842394 4980477.067919318, -8235601.899227698 4980484.668761328)"
396,West End Avenue,"LINESTRING (-8235652.349220925 4980393.400240945, -8235657.826139873 4980383.814743524, -8235677.485161947 4980347.575179579, -8235700.361317305 4980306.660652998, -8235704.958812275 4980298.618903111)"
397,West 79th Street,"LINESTRING (-8235546.139294758 4980585.714946578, -8235559.720272637 4980592.904217412, -8235660.330828416 4980648.889558727, -8235699.3149140915 4980670.560441408, -8235711.137044013 4980677.279306935)"
398,West 79th Street,"LINESTRING (-8235546.139294758 4980585.714946578, -8235531.267010789 4980577.3201196445, -8235436.890346494 4980524.466690266, -8235425.2574597085 4980517.997861814)"
399,West End Avenue,"LINESTRING (-8235546.139294758 4980585.714946578, -8235538.213347016 4980599.902367521, -8235521.882777716 4980629.909198275, -8235495.143836027 4980678.205540402, -8235490.869167581 4980685.924156031)"
400,West End Avenue,"LINESTRING (-8235546.139294758 4980585.714946578, -8235553.597700643 4980572.247942244, -8235572.933896193 4980537.036812351, -8235596.7117394265 4980493.84270618, -8235601.899227698 4980484.668761328)"
401,West 81st Street,"LINESTRING (-8235439.216923854 4980779.621285317, -8235453.387895032 4980787.178256001, -8235565.987559969 4980850.310064524, -8235576.4627240505 4980856.191017635)"
402,West End Avenue,"LINESTRING (-8235439.216923854 4980779.621285317, -8235443.8144188225 4980770.755819384, -8235463.963246655 4980734.044348783, -8235486.394124051 4980694.010331332, -8235490.869167581 4980685.924156031)"
403,West End Avenue,"LINESTRING (-8235439.216923854 4980779.621285317, -8235435.042442949 4980787.3840879705, -8235392.473869667 4980863.630428394, -8235387.698263513 4980872.4665738335)"
404,West 82nd Street,"LINESTRING (-8235387.698263513 4980872.4665738335, -8235372.525416918 4980864.14501235, -8235275.343501457 4980810.481402815, -8235263.81080221 4980803.968277948)"
405,West End Avenue,"LINESTRING (-8235387.698263513 4980872.4665738335, -8235392.473869667 4980863.630428394, -8235435.042442949 4980787.3840879705, -8235439.216923854 4980779.621285317)"
406,West End Avenue,"LINESTRING (-8235387.698263513 4980872.4665738335, -8235383.267747779 4980880.597010894, -8235361.727426313 4980919.088032672, -8235340.921813482 4980957.432180795, -8235336.669408934 4980965.48917585)"
407,West End Avenue,"LINESTRING (-8235336.669408934 4980965.48917585, -8235340.921813482 4980957.432180795, -8235361.727426313 4980919.088032672, -8235383.267747779 4980880.597010894, -8235387.698263513 4980872.4665738335)"
408,East 56th Street,"LINESTRING (-8234800.521345425 4977342.511603927, -8234786.695464669 4977334.883812754, -8234620.896215081 4977243.350783259)"
409,5th Avenue,"LINESTRING (-8234800.521345425 4977342.511603927, -8234804.684694382 4977335.104269064, -8234845.884037925 4977261.6925932905, -8234851.216241534 4977252.198350784)"
410,7th Avenue,"LINESTRING (-8235475.084063787 4977717.147830002, -8235478.245537324 4977711.430441068, -8235520.413360436 4977635.120521503, -8235524.109167533 4977628.065705422)"
411,West 56th Street,"LINESTRING (-8235475.084063787 4977717.147830002, -8235460.4344187975 4977709.152305021, -8235383.546046507 4977667.161208655, -8235373.627479877 4977661.73780055, -8235360.758946741 4977654.6094774045, -8235352.276401543 4977649.906256736, -8235343.081411605 4977644.776809272, -8235296.839295127 4977619.012032251, -8235290.861438473 4977615.675697013, -8235227.086502198 4977580.151881021, -8235173.541827125 4977550.316090698, -8235159.114821119 4977542.276610074)"
412,8th Avenue,"LINESTRING (-8235791.810278992 4977892.433722499, -8235785.765630641 4977903.266099954, -8235745.857593192 4977974.757152834, -8235742.317633385 4977981.106712436, -8235735.716387581 4977992.938657429)"
413,West 56th Street,"LINESTRING (-8235791.810278992 4977892.433722499, -8235776.982522818 4977884.188189503, -8235653.117325412 4977815.284613691, -8235642.842536411 4977809.596562918)"
414,9th Avenue,"LINESTRING (-8236106.9334935285 4978071.044552034, -8236111.864946971 4978062.416715528, -8236138.403513576 4978015.985269692, -8236154.344464657 4977988.073595083, -8236158.207250988 4977981.3271833295)"
415,West 56th Street,"LINESTRING (-8236106.9334935285 4978071.044552034, -8236092.328376337 4978062.607791893, -8235952.4888320025 4977981.37127751, -8235933.4531990765 4977970.935660618, -8235892.521022312 4977947.8891546475, -8235808.508202611 4977901.619930556, -8235791.810278992 4977892.433722499)"
416,West 56th Street,"LINESTRING (-8236423.247826617 4978247.189306148, -8236409.611188996 4978239.59020538, -8236122.696333426 4978079.81937824, -8236106.9334935285 4978071.044552034)"
417,10th Avenue,"LINESTRING (-8236423.247826617 4978247.189306148, -8236418.639199698 4978255.464542529, -8236401.763164896 4978286.14030232, -8236376.293265401 4978332.602429583, -8236368.93504706 4978345.96345553)"
418,East 64th Street,"LINESTRING (-8234383.774567743 4978092.636223983, -8234372.876389595 4978086.56585802, -8234219.711902212 4978001.257772676, -8234218.364936374 4978000.508170128, -8234205.552062984 4977993.379599755)"
419,5th Avenue,"LINESTRING (-8234383.774567743 4978092.636223983, -8234387.859993056 4978085.301811345, -8234430.061212014 4978009.5181026, -8234435.0928529985 4978000.4787739515)"
420,East 64th Street,"LINESTRING (-8234205.552062984 4977993.379599755, -8234195.154822544 4977987.5885587875, -8234193.685405265 4977986.780165017, -8234048.691768507 4977906.896492371, -8234037.170201209 4977900.54698101)"
421,Madison Avenue,"LINESTRING (-8234205.552062984 4977993.379599755, -8234200.731929032 4978002.080865735, -8234159.120703373 4978077.3500796165, -8234153.777367815 4978087.256674295)"
422,East 64th Street,"LINESTRING (-8234017.032505324 4977889.45004398, -8234003.718694226 4977882.012898536, -8233858.713925519 4977800.954259555, -8233846.4353856845 4977794.105092594)"
423,Park Avenue,"LINESTRING (-8234017.032505324 4977889.45004398, -8234012.5574617945 4977897.504508278, -8233970.823784697 4977972.787614352, -8233965.513844986 4977982.223765016)"
424,East 64th Street,"LINESTRING (-8233846.4353856845 4977794.105092594, -8233835.60399923 4977788.020214385, -8233683.875533279 4977702.891108043, -8233668.1572211785 4977694.072527555)"
425,Lexington Avenue,"LINESTRING (-8233846.4353856845 4977794.105092594, -8233851.344575228 4977785.301127524, -8233893.067120377 4977710.592674848, -8233897.6312195 4977702.406085908)"
426,East 64th Street,"LINESTRING (-8233668.1572211785 4977694.072527555, -8233653.841534663 4977686.179904771, -8233432.939137133 4977563.382098003, -8233419.035332733 4977555.313211788)"
427,3rd Avenue,"LINESTRING (-8233668.1572211785 4977694.072527555, -8233663.459538667 4977702.597155231, -8233621.926236653 4977777.849363622, -8233617.373269478 4977786.109504621)"
428,East 64th Street,"LINESTRING (-8233419.035332733 4977555.313211788, -8233409.684495506 4977550.110326942, -8233405.532278499 4977547.802833704, -8233171.182486483 4977417.261333179, -8233155.564361923 4977408.575285328)"
429,2nd Avenue,"LINESTRING (-8233419.035332733 4977555.313211788, -8233423.176417791 4977547.77343889, -8233432.148768748 4977531.429935549, -8233464.954622685 4977471.685257193, -8233469.507589858 4977463.425382072)"
430,East 64th Street,"LINESTRING (-8233155.564361923 4977408.575285328, -8233140.324723632 4977400.09500579, -8232919.70062483 4977277.227310292, -8232906.030591361 4977269.908206866)"
431,1st Avenue,"LINESTRING (-8233155.564361923 4977408.575285328, -8233150.933471106 4977417.14375549, -8233108.81017579 4977493.613642818, -8233104.335132261 4977501.550202027)"
432,East 68th Street,"LINESTRING (-8234180.727816536 4978461.127731724, -8234169.651527204 4978454.954245333, -8234014.294045851 4978368.437653716, -8234002.527575675 4978361.867362827)"
433,5th Avenue,"LINESTRING (-8234180.727816536 4978461.127731724, -8234185.303047609 4978452.881718634, -8234227.192571993 4978377.271541718, -8234231.689879422 4978369.231380431)"
434,Madison Avenue,"LINESTRING (-8234002.527575675 4978361.867362827, -8233997.495934691 4978370.921724576, -8233956.285459198 4978446.473057296, -8233952.2890894795 4978453.793042376)"
435,East 68th Street,"LINESTRING (-8234002.527575675 4978361.867362827, -8233991.061668122 4978355.4146653395, -8233846.702552463 4978275.057625711, -8233833.8896790715 4978267.928854964)"
436,East 68th Street,"LINESTRING (-8233813.885566575 4978256.787405122, -8233801.929853266 4978250.1289985515, -8233653.017770432 4978167.21531371, -8233643.332974733 4978161.821024614)"
437,Park Avenue,"LINESTRING (-8233813.885566575 4978256.787405122, -8233809.321467455 4978265.26842845, -8233767.921748827 4978340.627862118, -8233763.468969195 4978348.712095697)"
438,East 68th Street,"LINESTRING (-8233643.332974733 4978161.821024614, -8233631.366129473 4978155.162682785, -8233480.951233513 4978071.397308714, -8233464.698587856 4978062.357922801)"
439,Lexington Avenue,"LINESTRING (-8233643.332974733 4978161.821024614, -8233647.674434873 4978153.795738996, -8233689.842257985 4978077.541156272, -8233693.949947196 4978070.192056776)"
440,East 68th Street,"LINESTRING (-8233464.698587856 4978062.357922801, -8233449.826303887 4978054.068151853, -8233377.00109301 4978013.515987205, -8233330.848032126 4977987.823727896, -8233272.728125983 4977955.458632437, -8233230.248608296 4977931.809545569, -8233214.97557416 4977923.299415827)"
441,3rd Avenue,"LINESTRING (-8233464.698587856 4978062.357922801, -8233459.845058058 4978071.103344813, -8233418.244964348 4978146.373090584, -8233413.948032004 4978154.192593625)"
442,East 68th Street,"LINESTRING (-8233214.97557416 4977923.299415827, -8233201.572707468 4977915.832848689, -8232967.2340474 4977785.345220817, -8232949.434060822 4977775.438932335)"
443,2nd Avenue,"LINESTRING (-8233214.97557416 4977923.299415827, -8233219.561937179 4977915.097950657, -8233246.857476324 4977866.271449288, -8233261.217690635 4977840.315016012, -8233266.549894245 4977830.864304605)"
444,East 68th Street,"LINESTRING (-8232949.434060822 4977775.438932335, -8232936.932882004 4977768.486899088, -8232725.3145300085 4977650.641134815, -8232715.507282869 4977645.188340774, -8232702.082152279 4977637.707288676)"
445,1st Avenue,"LINESTRING (-8232949.434060822 4977775.438932335, -8232945.3041077135 4977783.22874291, -8232912.030711915 4977847.061330372, -8232904.34966705 4977860.759743362, -8232900.097262503 4977868.2115705125)"
446,East 41st Street,"LINESTRING (-8235569.58317952 4975950.148926559, -8235555.44560419 4975942.272407556, -8235401.958290283 4975856.894875806, -8235389.501639265 4975849.9295128435)"
447,5th Avenue,"LINESTRING (-8235569.58317952 4975950.148926559, -8235573.724264579 4975942.610392383, -8235613.821545161 4975869.620636151, -8235618.91997784 4975860.3481694115)"
448,East 41st Street,"LINESTRING (-8235389.501639265 4975849.9295128435, -8235379.716656025 4975844.507113469, -8235231.472490133 4975762.010600917, -8235225.271994498 4975758.572036783)"
449,Madison Avenue,"LINESTRING (-8235389.501639265 4975849.9295128435, -8235384.213963453 4975859.246054298, -8235342.068404238 4975933.411331267, -8235333.652650733 4975948.238576218)"
450,West 73rd Street,"LINESTRING (-8234911.785176475 4979490.405364257, -8234924.575785967 4979497.69673113, -8235000.896428854 4979540.886431207, -8235211.512905436 4979658.122880247, -8235217.323782855 4979661.31290737, -8235227.643099652 4979666.972635474)"
451,Central Park West,"LINESTRING (-8234911.785176475 4979490.405364257, -8234908.523515395 4979496.211996708, -8234863.650628654 4979576.22627343, -8234859.253508768 4979584.267428433)"
452,Central Park West,"LINESTRING (-8234911.785176475 4979490.405364257, -8234915.748150347 4979483.27570635, -8234959.48557828 4979403.5267948015, -8234966.532102046 4979390.9581317445)"
453,Columbus Avenue,"LINESTRING (-8235227.643099652 4979666.972635474, -8235232.507761398 4979657.887670915, -8235255.4618404005 4979615.006164266, -8235274.564265021 4979579.577978915, -8235282.28983768 4979565.862454532)"
454,West 73rd Street,"LINESTRING (-8235227.643099652 4979666.972635474, -8235240.667480073 4979674.220032358, -8235528.606474959 4979834.237457662, -8235540.205965901 4979840.411815998)"
455,Amsterdam Avenue,"LINESTRING (-8235540.205965901 4979840.411815998, -8235534.595463564 4979849.217633813, -8235493.718946544 4979925.956482432, -8235489.31069471 4979933.997925423)"
456,West 73rd Street,"LINESTRING (-8235540.205965901 4979840.411815998, -8235556.915021468 4979849.305839039, -8235585.846957127 4979865.682623316, -8235597.201545187 4979872.018711495)"
457,Riverside Drive,"LINESTRING (-8236014.05964236 4980103.0755754905, -8236017.4103590315 4980092.593587535, -8236042.857994628 4980010.913853663, -8236048.913774927 4979991.390793099)"
458,Riverside Drive,"LINESTRING (-8236014.05964236 4980103.0755754905, -8236010.653265943 4980113.484068352, -8235984.281678572 4980197.443376207, -8235981.543219099 4980206.028994861)"
459,West 49th Street,"LINESTRING (-8235155.708444701 4976698.697023111, -8235169.801492235 4976706.5888481075, -8235198.978330772 4976722.901579199, -8235210.188203495 4976729.176844271, -8235242.882737941 4976747.4736003345, -8235280.954003791 4976768.768422227, -8235298.386636051 4976778.526727411, -8235310.464800802 4976785.2870047875, -8235499.463032271 4976891.027169566, -8235514.201732851 4976899.271864286)"
460,5th Avenue,"LINESTRING (-8235155.708444701 4976698.697023111, -8235160.806877378 4976689.291504443, -8235200.915289912 4976615.311537375, -8235205.635236322 4976606.596810556)"
461,West 49th Street,"LINESTRING (-8235828.501183156 4977073.999303633, -8235844.341946696 4977082.743840825, -8235866.7394282445 4977095.265443846, -8235901.49337327 4977114.591658415, -8235909.040834746 4977118.706750865, -8235919.1597764585 4977124.071070412)"
462,7th Avenue,"LINESTRING (-8235828.501183156 4977073.999303633, -8235833.343581007 4977065.387044402, -8235875.233105392 4976991.9186092, -8235880.576440949 4976982.5422013365)"
463,West 49th Street,"LINESTRING (-8236146.863794877 4977251.007896881, -8236158.329702428 4977257.371683017, -8236162.370599944 4977259.620319758, -8236195.332301168 4977277.947463335, -8236278.5213566385 4977324.199036291, -8236316.648282234 4977345.392235669, -8236346.070023652 4977361.750124881, -8236440.212917015 4977414.086736115, -8236448.906969246 4977418.922118164, -8236462.5213429695 4977426.49118606)"
464,8th Avenue,"LINESTRING (-8236146.863794877 4977251.007896881, -8236141.442535675 4977260.663804956, -8236100.220928233 4977333.957896312, -8236095.100231658 4977343.070093689)"
465,West 49th Street,"LINESTRING (-8236462.5213429695 4977426.49118606, -8236478.306446764 4977435.26543327, -8236764.931871659 4977594.6141885305, -8236778.646432926 4977602.24218252)"
466,9th Avenue,"LINESTRING (-8236462.5213429695 4977426.49118606, -8236466.8294072645 4977418.525293408, -8236499.345830524 4977359.56025313, -8236508.529688514 4977342.967213993, -8236513.438878059 4977334.031381741)"
467,West 49th Street,"LINESTRING (-8236778.646432926 4977602.24218252, -8236792.884195797 4977610.428687511, -8236820.9589713765 4977626.257909621, -8237047.304892005 4977752.040142457, -8237080.366780771 4977770.412303149, -8237093.06833467 4977777.481919791)"
468,10th Avenue,"LINESTRING (-8236778.646432926 4977602.24218252, -8236773.425548807 4977611.339932657, -8236732.582427634 4977686.047626231, -8236727.851349275 4977694.660432673)"
469,12th Avenue,"LINESTRING (-8237346.0196135985 4977917.743583831, -8237365.511656438 4977882.203971372, -8237397.204315466 4977825.49959691)"
470,5th Avenue,"LINESTRING (-8235359.100286328 4976331.859113394, -8235363.953816127 4976322.953597069, -8235404.195812048 4976249.064576691, -8235409.572543454 4976239.189236827)"
471,West 45th Street,"LINESTRING (-8235359.100286328 4976331.859113394, -8235372.903903187 4976339.721250888, -8235418.032824755 4976364.997698411, -8235607.053320122 4976470.468790126, -8235673.422000533 4976506.987888291, -8235702.376200089 4976522.918193589, -8235717.805081513 4976531.397711709)"
472,West 45th Street,"LINESTRING (-8236349.431872273 4976882.385678826, -8236365.617726235 4976891.394580055, -8236628.353988403 4977037.713232092, -8236650.562226819 4977050.073114147, -8236665.679413668 4977058.126886376)"
473,8th Avenue,"LINESTRING (-8236349.431872273 4976882.385678826, -8236344.277779849 4976891.673812038, -8236321.1567216115 4976933.602789121, -8236303.067304358 4976966.3760020165, -8236298.525469133 4976974.591367237)"
474,West 45th Street,"LINESTRING (-8236665.679413668 4977058.126886376, -8236680.262266961 4977066.239451974, -8236969.080685825 4977226.728547666, -8236982.06053845 4977233.94474019)"
475,9th Avenue,"LINESTRING (-8236665.679413668 4977058.126886376, -8236669.954082115 4977050.293564029, -8236703.717283673 4976988.450219036, -8236711.665495315 4976974.5325810565, -8236716.541289011 4976965.979195643)"
476,10th Avenue,"LINESTRING (-8236982.06053845 4977233.94474019, -8236977.2960642455 4977242.542451077, -8236935.573519097 4977318.099753729, -8236930.6420656545 4977327.0355714075)"
477,West 45th Street,"LINESTRING (-8236982.06053845 4977233.94474019, -8236997.389232334 4977242.660026663, -8237046.314148537 4977270.598965389, -8237077.439078162 4977287.970823444, -8237283.970129433 4977401.873365361, -8237296.115085877 4977408.575285328)"
478,East 57th Street,"LINESTRING (-8234745.162162656 4977442.746330331, -8234731.247226307 4977435.015580224, -8234652.165860046 4977391.085635423, -8234578.027079178 4977349.816064641, -8234566.03797002 4977343.128882087)"
479,5th Avenue,"LINESTRING (-8234745.162162656 4977442.746330331, -8234752.787547774 4977428.9456229275, -8234794.454433179 4977353.505039833, -8234800.521345425 4977342.511603927)"
480,West 57th Street,"LINESTRING (-8234745.162162656 4977442.746330331, -8234759.288606036 4977450.56527012, -8234985.790373952 4977575.933712029, -8235088.760902938 4977633.077563822, -8235103.789034195 4977641.411070138)"
481,East 57th Street,"LINESTRING (-8234566.03797002 4977343.128882087, -8234553.559055102 4977336.147762326, -8234409.344654778 4977255.505167947, -8234397.166302486 4977248.700474294)"
482,Madison Avenue,"LINESTRING (-8234566.03797002 4977343.128882087, -8234557.622216516 4977358.0464494545, -8234519.027749058 4977426.388305484, -8234515.354205861 4977433.340095267, -8234510.545203859 4977442.599357837)"
483,East 57th Street,"LINESTRING (-8234566.03797002 4977343.128882087, -8234578.027079178 4977349.816064641, -8234652.165860046 4977391.085635423, -8234731.247226307 4977435.015580224, -8234745.162162656 4977442.746330331)"
484,East 57th Street,"LINESTRING (-8234377.429356768 4977237.751247154, -8234397.166302486 4977248.700474294)"
485,Park Avenue,"LINESTRING (-8234377.429356768 4977237.751247154, -8234369.124922756 4977252.595168786, -8234326.823516253 4977328.240731654, -8234321.981118403 4977336.882616802)"
486,East 57th Street,"LINESTRING (-8234377.429356768 4977237.751247154, -8234364.171205414 4977230.388082517, -8234290.756001237 4977189.618884142, -8234218.754554591 4977149.614089918, -8234206.19771603 4977142.647805247)"
487,East 57th Street,"LINESTRING (-8234206.19771603 4977142.647805247, -8234218.754554591 4977149.614089918, -8234290.756001237 4977189.618884142, -8234364.171205414 4977230.388082517, -8234377.429356768 4977237.751247154)"
488,East 57th Street,"LINESTRING (-8234206.19771603 4977142.647805247, -8234194.876523816 4977136.357577787, -8234116.874956617 4977093.002148216, -8234042.268633887 4977051.513386796, -8234032.862136915 4977046.29607362)"
489,Lexington Avenue,"LINESTRING (-8234206.19771603 4977142.647805247, -8234213.867628945 4977128.818128248, -8234256.2803549385 4977051.381116848, -8234260.84445406 4977043.062810515)"
490,East 57th Street,"LINESTRING (-8234032.862136915 4977046.29607362, -8234019.303422937 4977038.756693587)"
491,3rd Avenue,"LINESTRING (-8234032.862136915 4977046.29607362, -8234024.59109875 4977060.728197437, -8234019.7264370015 4977069.237575749)"
492,East 57th Street,"LINESTRING (-8234032.862136915 4977046.29607362, -8234042.268633887 4977051.513386796, -8234116.874956617 4977093.002148216, -8234194.876523816 4977136.357577787, -8234206.19771603 4977142.647805247)"
493,East 57th Street,"LINESTRING (-8233780.434059593 4976905.503153324, -8233763.346517757 4976896.14152483, -8233732.488754909 4976879.225951977, -8233710.247120648 4976866.748715011, -8233697.823865476 4976859.767935676, -8233691.534314247 4976856.461252469)"
494,East 57th Street,"LINESTRING (-8233780.434059593 4976905.503153324, -8233794.326732044 4976913.321663119, -8233899.612706437 4976972.151741067, -8234012.902552217 4977035.18541034, -8234019.303422937 4977038.756693587)"
495,2nd Avenue,"LINESTRING (-8233780.434059593 4976905.503153324, -8233788.738493607 4976890.468705648, -8233809.321467455 4976853.125177654, -8233813.8299068315 4976844.9686999805, -8233821.733590677 4976830.625072876, -8233830.505566552 4976814.708962121, -8233834.724575253 4976807.066886763)"
496,Sutton Place,"LINESTRING (-8233264.434823919 4976618.912059155, -8233258.011689301 4976630.580698047, -8233214.3744489085 4976709.821999854, -8233209.799217838 4976718.1400224455)"
497,East 57th Street,"LINESTRING (-8233264.434823919 4976618.912059155, -8233250.085741556 4976611.035000983, -8233218.849492438 4976593.870090247)"
498,East 57th Street,"LINESTRING (-8233264.434823919 4976618.912059155, -8233278.906357722 4976626.671555504, -8233499.441400934 4976749.369410754, -8233514.848018458 4976757.937302738)"
499,Sutton Place South,"LINESTRING (-8233264.434823919 4976618.912059155, -8233271.392292093 4976606.332282714, -8233314.550858675 4976528.208706631, -8233319.270805083 4976519.670407837)"
500,East 57th Street,"LINESTRING (-8233218.849492438 4976593.870090247, -8233250.085741556 4976611.035000983, -8233264.434823919 4976618.912059155)"
501,Central Park West,"LINESTRING (-8234440.436188557 4980345.002396175, -8234444.198787346 4980338.033831964, -8234446.703475889 4980333.373423655, -8234486.177367324 4980260.042118227, -8234494.47066939 4980245.399445575)"
502,Central Park West,"LINESTRING (-8234440.436188557 4980345.002396175, -8234436.027936721 4980353.14709567, -8234393.192196665 4980431.110149569, -8234389.073375505 4980438.5786399795)"
503,Columbus Avenue,"LINESTRING (-8234756.127132497 4980521.467505631, -8234760.769155264 4980512.602274087, -8234777.166516257 4980481.272639698, -8234802.42490872 4980437.181973032, -8234809.337849097 4980424.641382966)"
504,West 82nd Street,"LINESTRING (-8234756.127132497 4980521.467505631, -8234740.453348194 4980512.705187177, -8234453.315853642 4980352.073876755, -8234440.436188557 4980345.002396175)"
505,West 82nd Street,"LINESTRING (-8235070.137152128 4980695.921610108, -8235057.713896955 4980689.0116039915, -8234829.230642102 4980561.941873963, -8234768.917741989 4980528.553815905, -8234756.127132497 4980521.467505631)"
506,Amsterdam Avenue,"LINESTRING (-8235070.137152128 4980695.921610108, -8235065.350414024 4980704.625284344, -8235033.000969999 4980763.551715348, -8235023.928431499 4980779.797712581, -8235019.130561445 4980788.383843305)"
507,Riverside Drive,"LINESTRING (-8235552.506769633 4980958.931839956, -8235553.553172847 4980949.463407556, -8235555.401076393 4980932.334977862, -8235556.480875454 4980923.028298621, -8235558.128403917 4980912.707157607, -8235560.377057632 4980901.562689961, -8235562.503259905 4980892.829435285, -8235565.152663787 4980883.052316002, -8235569.11563766 4980872.569490716, -8235572.310507045 4980864.791917936, -8235576.4627240505 4980856.191017635)"
508,West 82nd Street,"LINESTRING (-8235552.506769633 4980958.931839956, -8235545.52703756 4980957.858554455, -8235540.617848016 4980956.476515765, -8235535.864505759 4980954.4916733075, -8235401.223581646 4980880.097128492, -8235387.698263513 4980872.4665738335)"
509,7th Avenue,"LINESTRING (-8236395.3288983265 4976051.177601818, -8236399.080365168 4976044.197405205, -8236439.133117954 4975972.088592257, -8236444.854939781 4975961.772681686)"
510,West 38th Street,"LINESTRING (-8236395.3288983265 4976051.177601818, -8236381.358302233 4976043.286306226, -8236246.105120919 4975967.533131829, -8236232.624330583 4975960.112144393)"
511,West 38th Street,"LINESTRING (-8236710.908522776 4976228.050100566, -8236694.77832856 4976219.174069682, -8236409.210438829 4976059.039513449, -8236395.3288983265 4976051.177601818)"
512,8th Avenue,"LINESTRING (-8236710.908522776 4976228.050100566, -8236705.620846964 4976237.587434129, -8236691.928549596 4976262.290493933, -8236665.3120593475 4976310.300723975, -8236660.146834975 4976319.603008872)"
513,West 38th Street,"LINESTRING (-8237026.989084936 4976404.896409997, -8237012.383967743 4976396.725610858, -8236764.197163019 4976257.867157396, -8236726.248348608 4976236.66162168, -8236723.710264219 4976235.221469156, -8236710.908522776 4976228.050100566)"
514,9th Avenue,"LINESTRING (-8237026.989084936 4976404.896409997, -8237031.553184058 4976396.828480589, -8237063.401690373 4976340.397248052)"
515,West 38th Street,"LINESTRING (-8237343.22549438 4976580.114669852, -8237327.9413282955 4976571.297102861, -8237222.722145597 4976513.263014675, -8237199.378448377 4976500.595199278, -8237158.078917294 4976477.96364421, -8237108.653063381 4976450.409061898, -8237081.090357461 4976435.0667041475, -8237042.395702462 4976413.478695587, -8237026.989084936 4976404.896409997)"
516,10th Avenue,"LINESTRING (-8237343.22549438 4976580.114669852, -8237337.603860096 4976590.269577696, -8237297.361864174 4976663.088365027, -8237292.441542681 4976672.170544482)"
517,86th Street Transverse,"LINESTRING (-8233492.873550975 4980169.040321711, -8233469.84154833 4980146.223849164, -8233462.861816258 4980139.167218962, -8233457.652064089 4980133.124983407, -8233452.375520226 4980126.391791011, -8233447.655573815 4980119.261668755, -8233436.47909694 4980099.312055379, -8233429.209934192 4980087.845088982, -8233422.118882628 4980077.230806446, -8233416.497248343 4980069.306855121, -8233406.656605357 4980056.178690177, -8233396.036725935 4980042.8447266035, -8233385.038360244 4980028.996241264, -8233353.100798337 4979991.890630006, -8233347.178601424 4979985.62796943, -8233341.245272567 4979979.776942754)"
518,86th Street Transverse,"LINESTRING (-8233492.873550975 4980169.040321711, -8233523.441883147 4980194.444292017, -8233530.020865053 4980201.295142546, -8233536.154568995 4980208.101893648, -8233542.778078699 4980216.49640316, -8233548.767067304 4980224.979128507, -8233555.68000768 4980236.166928322, -8233562.926906531 4980249.354141144, -8233567.568929298 4980259.204133356, -8233572.066236726 4980270.05383777, -8233575.316765856 4980279.99205998, -8233578.222204568 4980289.842083097, -8233580.303879044 4980297.722108745, -8233582.441213269 4980307.880882537, -8233589.532264832 4980345.796283552, -8233591.346772532 4980354.720170181, -8233593.9405166665 4980365.511174134, -8233596.8014275795 4980374.508587088, -8233599.751394086 4980382.300471021, -8233603.157770504 4980389.945344318, -8233607.899980812 4980399.486742657, -8233613.031809338 4980407.925521837, -8233618.8872145545 4980416.423115211, -8233626.056189761 4980423.847489178, -8233634.6389224995 4980431.1836583065, -8233643.911836083 4980438.049376692, -8233653.51870814 4980444.429941573, -8233663.682177648 4980450.707598189, -8233676.250148159 4980457.867366047, -8233688.896042315 4980464.350856459, -8233696.844253956 4980468.305640707, -8233706.662633044 4980472.6426736, -8233717.516283398 4980477.259042933, -8233805.97075078 4980510.852751733, -8233878.094648866 4980538.212964955, -8233893.055988428 4980544.196643511, -8233907.739029263 4980550.680191247, -8233921.197555702 4980557.237252972, -8233933.097609268 4980563.25034708, -8233944.0514471615 4980569.601589864, -8233953.624923371 4980575.291248367, -8233962.374635345 4980581.304353593, -8233971.736604521 4980587.964349765, -8234007.603744455 4980615.971668161, -8234027.507669408 4980631.614635817, -8234037.103409515 4980638.318772483, -8234046.387455047 4980644.728872372, -8234055.4265976995 4980650.286255958, -8234063.964802642 4980654.843900939, -8234071.790562846 4980658.651741446, -8234082.065351848 4980662.988858887, -8234092.117501865 4980666.605575243, -8234106.333000839 4980671.471972128, -8234145.695572784 4980683.909964316, -8234158.653161513 4980688.379412186, -8234172.33432693 4980693.701586332, -8234182.174969918 4980697.876995705, -8234195.8672672855 4980704.595880026, -8234205.908285353 4980710.035680348, -8234214.969691904 4980715.152035849, -8234229.752920281 4980724.340899442)"
519,East 46th Street,"LINESTRING (-8235307.136348027 4976423.545255931, -8235293.900460571 4976416.241487758, -8235140.056924296 4976331.330072593, -8235127.355370396 4976324.320284691)"
520,5th Avenue,"LINESTRING (-8235307.136348027 4976423.545255931, -8235312.457419687 4976414.154697855, -8235354.825617883 4976339.765337658, -8235359.100286328 4976331.859113394)"
521,Madison Avenue,"LINESTRING (-8235127.355370396 4976324.320284691, -8235123.782014742 4976330.859814127, -8235099.458706004 4976376.76890356, -8235082.482483657 4976407.982504976, -8235077.985176229 4976416.123922119)"
522,East 46th Street,"LINESTRING (-8235127.355370396 4976324.320284691, -8235116.190025469 4976318.148148564, -8235077.49537047 4976296.795526754, -8235038.667132081 4976275.384169637, -8235036.707909042 4976274.282007705, -8235027.846877576 4976269.417801204)"
523,Vanderbilt Avenue,"LINESTRING (-8235027.846877576 4976269.417801204, -8235023.716924468 4976276.8537190715, -8234982.127962707 4976351.874511391, -8234977.842162311 4976359.560317552)"
524,Vanderbilt Avenue,"LINESTRING (-8235027.846877576 4976269.417801204, -8235033.023233898 4976259.939218448, -8235074.2782371845 4976184.698701709, -8235079.17629478 4976175.734538148)"
525,East 46th Street,"LINESTRING (-8235027.846877576 4976269.417801204, -8235018.017366539 4976263.745345921, -8235002.410373929 4976254.707632524, -8234972.276187772 4976237.528652383, -8234962.346489193 4976231.856215618)"
526,Lexington Avenue,"LINESTRING (-8234769.184908767 4976123.22821742, -8234773.737875941 4976114.998872832, -8234814.72571245 4976040.979168867, -8234820.146971653 4976031.133429576)"
527,East 46th Street,"LINESTRING (-8234769.184908767 4976123.22821742, -8234758.765404428 4976117.423589714, -8234674.329570664 4976070.413579977, -8234606.836563396 4976033.705076941, -8234591.140515194 4976025.181905413)"
528,3rd Avenue,"LINESTRING (-8234591.140515194 4976025.181905413, -8234586.799055053 4976033.058491254, -8234545.711031001 4976108.121497314, -8234540.924292896 4976116.879865269)"
529,East 46th Street,"LINESTRING (-8234591.140515194 4976025.181905413, -8234576.20143953 4976016.820387467, -8234493.825016341 4975970.677868801, -8234356.534688346 4975894.734223384, -8234340.693924807 4975885.946664746)"
530,2nd Avenue,"LINESTRING (-8234340.693924807 4975885.946664746, -8234345.925940874 4975876.483148899, -8234387.637354074 4975801.495396309, -8234392.2682448905 4975793.163459323)"
531,Columbus Avenue,"LINESTRING (-8234491.921453049 4981000.437203989, -8234496.307440988 4980992.306667135, -8234519.7179299 4980949.463407556, -8234537.228485802 4980915.779974802, -8234545.532919815 4980900.812864758)"
532,5th Avenue,"LINESTRING (-8232773.193042997 4981008.097263893, -8232777.534503137 4981000.2460701335, -8232819.546478963 4980924.366225107, -8232824.08831419 4980916.16223921)"
533,Madison Avenue,"LINESTRING (-8232594.280357394 4980909.325589564, -8232589.961161151 4980917.4119498795, -8232547.3814559225 4980995.12956524, -8232539.689279108 4981008.758881633)"
534,East 95th Street,"LINESTRING (-8232594.280357394 4980909.325589564, -8232606.53663333 4980916.059321869, -8232761.693739598 4981001.980977574, -8232773.193042997 4981008.097263893)"
535,West 34th Street,"LINESTRING (-8237376.36530679 4976116.189188316, -8237333.640886224 4976092.764981846, -8237312.501314921 4976081.141070877, -8237295.013022918 4976071.51571891, -8237246.121502562 4976044.6676498735, -8237232.384677399 4976037.129042769)"
536,Dyer Avenue,"LINESTRING (-8237376.36530679 4976116.189188316, -8237368.316907605 4976130.164384671, -8237345.463016145 4976171.722710236)"
537,West 34th Street,"LINESTRING (-8237376.36530679 4976116.189188316, -8237389.890624922 4976123.624989567, -8237430.53337101 4976145.932427272, -8237463.450544436 4976163.948879885, -8237472.9906247975 4976169.26858921, -8237532.323913392 4976202.480099667, -8237547.530155835 4976211.0034258645)"
538,West 36th Street,"LINESTRING (-8237269.220296901 4976303.467297585, -8237241.223444967 4976287.963519951)"
539,,"LINESTRING (-8237269.220296901 4976303.467297585, -8237285.317095269 4976303.3203422325, -8237291.428535315 4976302.629652099, -8237294.166994789 4976302.321045885, -8237303.996505825 4976299.323157458, -8237323.655527899 4976288.213343661, -8237335.911803835 4976280.58637563, -8237361.493022821 4976265.170807173, -8237375.53041061 4976256.58865186, -8237391.204194912 4976245.478886657, -8237404.217443385 4976236.323626681, -8237412.032071641 4976229.416774911, -8237422.418180131 4976218.6744257985, -8237432.114107779 4976207.358968235, -8237448.956746736 4976181.245293461, -8237455.157242374 4976165.580061165)"
540,Dyer Avenue,"LINESTRING (-8237269.220296901 4976303.467297585, -8237275.676827367 4976294.047463882, -8237322.108186978 4976225.419620374, -8237326.282667883 4976216.778718359)"
541,Dyer Avenue,"LINESTRING (-8237018.272768806 4976766.387632383, -8237010.925682414 4976778.805956166, -8236975.281181462 4976841.764896198, -8236967.3663656665 4976855.68234503)"
542,West 41st Street,"LINESTRING (-8237018.272768806 4976766.387632383, -8237031.3639409235 4976770.502578159, -8237115.265441135 4976817.6188308485, -8237133.121087459 4976827.715200274, -8237173.641382107 4976850.229994709, -8237174.776840912 4976850.861938121, -8237190.417229369 4976856.62291251)"
543,West 42nd Street,"LINESTRING (-8236967.3663656665 4976855.68234503, -8236954.37538109 4976848.437039204, -8236838.848013546 4976784.037822747, -8236823.652903054 4976775.558085344)"
544,West 42nd Street,"LINESTRING (-8236967.3663656665 4976855.68234503, -8236977.407383735 4976861.281662139, -8236983.496559882 4976864.676525256, -8237123.759118282 4976942.876274532, -8237138.3308396265 4976951.003440932)"
545,West 63rd Street,"LINESTRING (-8235428.931002904 4978554.52423762, -8235441.4878414655 4978561.329841027, -8235535.697526523 4978613.746375211, -8235548.042858053 4978620.757806189, -8235555.490131985 4978624.917630303, -8235629.851551836 4978666.427774332, -8235644.412141231 4978673.630331449)"
546,Central Park West,"LINESTRING (-8235428.931002904 4978554.52423762, -8235423.966153613 4978563.490584353, -8235395.156669396 4978615.495557729, -8235382.577566938 4978638.205560892, -8235377.95780807 4978646.304739843)"
547,Central Park West,"LINESTRING (-8235428.931002904 4978554.52423762, -8235433.495102026 4978546.204651128, -8235457.328605005 4978504.503933038, -8235476.442161574 4978472.313511054, -8235480.906073155 4978463.597127373)"
548,Central Park West,"LINESTRING (-8235377.95780807 4978646.304739843, -8235373.171069965 4978654.697906968, -8235362.5734544415 4978674.041906302, -8235331.415128968 4978730.48662184, -8235327.051404929 4978738.115502947)"
549,Central Park West,"LINESTRING (-8235377.95780807 4978646.304739843, -8235382.577566938 4978638.205560892, -8235395.156669396 4978615.495557729, -8235423.966153613 4978563.490584353, -8235428.931002904 4978554.52423762)"
550,West 71st Street,"LINESTRING (-8235022.1473196475 4979290.424109636, -8235035.884144811 4979297.906427731, -8235323.856535543 4979457.094471142, -8235338.272409601 4979465.062026588)"
551,Central Park West,"LINESTRING (-8235022.1473196475 4979290.424109636, -8235017.449637135 4979298.7737302, -8234977.363488501 4979371.730313596, -8234974.023903778 4979377.62507645, -8234966.532102046 4979390.9581317445)"
552,Central Park West,"LINESTRING (-8235022.1473196475 4979290.424109636, -8235026.922925802 4979282.11859626, -8235068.467359765 4979207.016496025, -8235073.042590838 4979198.872752395)"
553,West 72nd Street,"LINESTRING (-8234966.532102046 4979390.9581317445, -8234979.812517298 4979398.087722255, -8235007.408619066 4979412.979028086, -8235018.22887357 4979418.991417628, -8235055.843729509 4979439.909858, -8235267.039067442 4979557.38030172, -8235282.28983768 4979565.862454532)"
554,Central Park West,"LINESTRING (-8234966.532102046 4979390.9581317445, -8234959.48557828 4979403.5267948015, -8234915.748150347 4979483.27570635, -8234911.785176475 4979490.405364257)"
555,Central Park West,"LINESTRING (-8234966.532102046 4979390.9581317445, -8234974.023903778 4979377.62507645, -8234977.363488501 4979371.730313596, -8235017.449637135 4979298.7737302, -8235022.1473196475 4979290.424109636)"
556,Central Park West,"LINESTRING (-8234859.253508768 4979584.267428433, -8234855.190347355 4979591.7058702195, -8234812.844413058 4979669.0601204345, -8234808.313709782 4979677.292459839)"
557,Central Park West,"LINESTRING (-8234859.253508768 4979584.267428433, -8234863.650628654 4979576.22627343, -8234908.523515395 4979496.211996708, -8234911.785176475 4979490.405364257)"
558,West 75th Street,"LINESTRING (-8234808.313709782 4979677.292459839, -8234821.249034612 4979684.686870614, -8235110.8021621145 4979845.660023658, -8235124.783890157 4979853.275075077)"
559,Central Park West,"LINESTRING (-8234808.313709782 4979677.292459839, -8234803.883194049 4979685.421901811, -8234761.103113736 4979763.614836648, -8234756.95089673 4979771.229824088)"
560,Central Park West,"LINESTRING (-8234808.313709782 4979677.292459839, -8234812.844413058 4979669.0601204345, -8234855.190347355 4979591.7058702195, -8234859.253508768 4979584.267428433)"
561,Central Park West,"LINESTRING (-8234756.95089673 4979771.229824088, -8234752.164158626 4979779.9179733815, -8234711.688391774 4979853.995418087, -8234708.894272555 4979858.993717983, -8234702.7494366625 4979870.18109849)"
562,Central Park West,"LINESTRING (-8234756.95089673 4979771.229824088, -8234761.103113736 4979763.614836648, -8234803.883194049 4979685.421901811, -8234808.313709782 4979677.292459839)"
563,Central Park West,"LINESTRING (-8234389.073375505 4980438.5786399795, -8234383.941546979 4980447.855453934, -8234342.152210135 4980523.496365725, -8234337.5213193195 4980531.802934991)"
564,Central Park West,"LINESTRING (-8234389.073375505 4980438.5786399795, -8234393.192196665 4980431.110149569, -8234436.027936721 4980353.14709567, -8234440.436188557 4980345.002396175)"
565,West 83rd Street,"LINESTRING (-8234389.073375505 4980438.5786399795, -8234401.908512794 4980445.591381252, -8234689.680528444 4980605.415619564, -8234704.897902836 4980613.869278743)"
566,East 84th Street,"LINESTRING (-8233341.245272567 4979979.776942754, -8233336.747965139 4979976.101676536, -8233332.061414575 4979972.573422266, -8233325.705071651 4979967.986693624, -8233318.636283985 4979963.444070264, -8233246.312010817 4979923.148594392, -8233221.621347759 4979909.47669034, -8233183.639137501 4979889.336393432, -8233176.982231951 4979885.602357549, -8233164.347469746 4979878.737027583)"
567,5th Avenue,"LINESTRING (-8233341.245272567 4979979.776942754, -8233347.234261172 4979968.9569629645, -8233389.034729964 4979893.099832619, -8233393.554301291 4979884.264573387)"
568,East 84th Street,"LINESTRING (-8233164.347469746 4979878.737027583, -8233152.313832791 4979871.974608779, -8233076.549787357 4979830.047716725, -8233008.3332034 4979792.104916637, -8232995.865420432 4979784.930936137)"
569,Madison Avenue,"LINESTRING (-8233164.347469746 4979878.737027583, -8233159.8724262165 4979886.455011286, -8233117.38177658 4979962.782523348, -8233112.839941357 4979971.103316697)"
570,East 84th Street,"LINESTRING (-8232975.81678014 4979773.773054808, -8232962.8925872585 4979766.599087774, -8232816.863679235 4979685.568908058, -8232805.375507785 4979679.203539622)"
571,Park Avenue,"LINESTRING (-8232975.81678014 4979773.773054808, -8232971.107965679 4979782.32889943, -8232928.995802313 4979858.861410012, -8232924.687738018 4979866.064846616)"
572,East 84th Street,"LINESTRING (-8232805.375507785 4979679.203539622, -8232793.030176257 4979672.294252944, -8232642.593016398 4979587.986648617, -8232626.507349979 4979578.975259861)"
573,Lexington Avenue,"LINESTRING (-8232805.375507785 4979679.203539622, -8232810.03979445 4979670.780090772, -8232852.474784341 4979594.1020493135, -8232856.905300073 4979586.075586687)"
574,3rd Avenue,"LINESTRING (-8232626.507349979 4979578.975259861, -8232621.141750522 4979588.662870622, -8232579.0629830025 4979664.635240872, -8232574.766050658 4979672.397157179)"
575,West 33rd Street,"LINESTRING (-8236968.034282611 4975761.481590971, -8236983.641275221 4975770.1514798, -8237010.569460043 4975785.125424556, -8237270.288964013 4975929.5612475565, -8237285.873692724 4975938.245980518)"
576,8th Avenue,"LINESTRING (-8236968.034282611 4975761.481590971, -8236963.603766878 4975769.578385218, -8236921.235568682 4975846.358664136, -8236914.066593475 4975859.437087577)"
577,West 34th Street,"LINESTRING (-8236914.066593475 4975859.437087577, -8236930.6977254 4975868.018894042, -8237032.543927526 4975923.462835625, -8237041.237979757 4975928.1946151545, -8237050.321650206 4975933.146821651, -8237102.931241556 4975962.316397499, -8237111.191147773 4975967.1510610515, -8237119.016907974 4975971.985726997, -8237157.043646029 4975995.659460134, -8237166.294295713 4976000.89090735, -8237174.376090745 4976005.446383328, -8237214.684878362 4976027.812331696, -8237232.384677399 4976037.129042769)"
578,8th Avenue,"LINESTRING (-8236914.066593475 4975859.437087577, -8236906.786298777 4975872.486138746, -8236872.700270696 4975934.116690279, -8236864.752059054 4975948.48839124, -8236860.3994669635 4975956.3649152545)"
579,West 35th Street,"LINESTRING (-8236860.3994669635 4975956.3649152545, -8236872.455367817 4975963.095233715, -8236875.861744233 4975964.990891935, -8237047.939413103 4976060.847019261, -8237069.435206774 4976072.823590605, -8237106.6159167 4976093.529133241, -8237113.161502758 4976097.17354841, -8237161.741328541 4976124.403838643, -8237179.541315119 4976134.631749236)"
580,8th Avenue,"LINESTRING (-8236860.3994669635 4975956.3649152545, -8236855.0227355575 4975966.122409033, -8236815.181489804 4976038.436909862, -8236810.216640513 4976047.430337753)"
581,West 36th Street,"LINESTRING (-8236810.216640513 4976047.430337753, -8236795.2886967985 4976039.156971595, -8236702.52616512 4975987.841684686, -8236508.095542501 4975880.259737199, -8236494.369849285 4975872.6624773955)"
582,8th Avenue,"LINESTRING (-8236810.216640513 4976047.430337753, -8236805.385374613 4976056.17395614, -8236765.04319115 4976129.385535138, -8236760.557015671 4976137.526720128)"
583,West 37th Street,"LINESTRING (-8236760.557015671 4976137.526720128, -8236774.271576935 4976145.182967076, -8236775.841181756 4976146.049989659, -8237016.469393055 4976279.895687104, -8237029.159815006 4976286.934834155, -8237063.245843087 4976305.862670164, -8237078.318502141 4976313.974611105)"
584,8th Avenue,"LINESTRING (-8236760.557015671 4976137.526720128, -8236755.24707596 4976147.225613629, -8236715.416962154 4976219.732495229, -8236710.908522776 4976228.050100566)"
585,8th Avenue,"LINESTRING (-8236660.146834975 4976319.603008872, -8236655.315569075 4976328.405653128, -8236614.349996462 4976402.883100941, -8236610.14211971 4976410.510164445)"
586,West 39th Street,"LINESTRING (-8236660.146834975 4976319.603008872, -8236673.917055986 4976327.538614362, -8236751.98541488 4976372.536558501, -8236942.375139983 4976477.919556816, -8236962.512835868 4976489.058977969, -8236976.3832444195 4976496.304017276)"
587,8th Avenue,"LINESTRING (-8236610.14211971 4976410.510164445, -8236604.398033986 4976420.753070271, -8236564.723767467 4976492.571278301, -8236559.84797377 4976501.388774238)"
588,West 40th Street,"LINESTRING (-8236610.14211971 4976410.510164445, -8236594.368147866 4976401.766228943, -8236308.354980171 4976243.112919774, -8236294.028161706 4976235.162687425)"
589,West 41st Street,"LINESTRING (-8236559.84797377 4976501.388774238, -8236576.868723912 4976510.838199552, -8236704.496520108 4976583.009772749, -8236833.059400025 4976655.064310591, -8236856.892903002 4976676.065009134, -8236860.766821282 4976679.268758575, -8236871.186325621 4976688.46852199)"
590,8th Avenue,"LINESTRING (-8236559.84797377 4976501.388774238, -8236555.083499565 4976510.044623825, -8236535.457873338 4976545.682115893, -8236513.171711281 4976586.140011873, -8236505.902548533 4976599.336993476)"
591,8th Avenue,"LINESTRING (-8236505.902548533 4976599.336993476, -8236497.987732737 4976613.636192998, -8236466.272809811 4976670.980161256, -8236455.630666489 4976690.217359784, -8236450.766004742 4976699.005641847)"
592,West 42nd Street,"LINESTRING (-8236505.902548533 4976599.336993476, -8236491.063660408 4976591.06315994, -8236383.540164253 4976531.280144682, -8236364.359815989 4976520.610942965, -8236353.060887673 4976514.335811861, -8236342.997605705 4976508.736693598, -8236249.055087425 4976456.507802753, -8236216.160177896 4976438.211591609, -8236202.902026542 4976430.819638109, -8236189.476895953 4976423.368907339)"
593,West 42nd Street,"LINESTRING (-8236505.902548533 4976599.336993476, -8236521.119922923 4976607.40509012, -8236566.215448643 4976632.505877841, -8236603.26257518 4976652.8892933065, -8236671.991228796 4976691.7604522165, -8236802.079185737 4976764.139109172, -8236806.977243331 4976766.872608044, -8236811.185120083 4976769.2093092995, -8236823.652903054 4976775.558085344)"
594,8th Avenue,"LINESTRING (-8236400.3160115145 4976790.210253214, -8236395.507009512 4976798.925143824, -8236354.140686733 4976873.847070483, -8236349.431872273 4976882.385678826)"
595,West 44th Street,"LINESTRING (-8236400.3160115145 4976790.210253214, -8236386.846353129 4976782.729855838, -8236216.21583764 4976687.86598131, -8236102.759012623 4976624.922729085, -8236102.102227628 4976624.570024636, -8236096.747760122 4976621.689605435, -8236093.675342177 4976619.999563954, -8236085.1371372305 4976615.340929383)"
596,8th Avenue,"LINESTRING (-8236298.525469133 4976974.591367237, -8236293.282321118 4976984.026553706, -8236260.24269625 4977043.944609438, -8236251.993921982 4977058.891113281, -8236248.075475905 4977065.989608367)"
597,West 46th Street,"LINESTRING (-8236298.525469133 4976974.591367237, -8236283.920351941 4976966.449484681, -8236241.975167809 4976943.0526325, -8236223.206701662 4976932.588731822, -8236141.242160591 4976887.867439923, -8236058.275744103 4976842.191090218, -8236027.273265918 4976824.6289727045, -8236020.905791044 4976821.204730876, -8235993.098182243 4976806.052842598, -8235981.376239863 4976799.689350454)"
598,West 47th Street,"LINESTRING (-8236248.075475905 4977065.989608367, -8236260.298355996 4977072.779478059, -8236263.882843599 4977074.763531783, -8236549.205830451 4977233.239287326, -8236564.3230173 4977241.822300643)"
599,8th Avenue,"LINESTRING (-8236248.075475905 4977065.989608367, -8236242.932515431 4977075.439579809, -8236201.666380194 4977150.040297369, -8236197.135676919 4977158.241120227)"
600,West 48th Street,"LINESTRING (-8236197.135676919 4977158.241120227, -8236182.653011167 4977150.20196227, -8236054.3239021795 4977078.878607454, -8236018.30091496 4977058.861719938, -8235966.147733523 4977030.173858684, -8235952.555623697 4977022.531614772)"
601,8th Avenue,"LINESTRING (-8236197.135676919 4977158.241120227, -8236191.603098228 4977168.308448019, -8236166.110934834 4977214.632986407, -8236157.450278451 4977230.388082517, -8236151.06053968 4977242.836390045, -8236146.863794877 4977251.007896881)"
602,West 50th Street,"LINESTRING (-8236095.100231658 4977343.070093689, -8236079.3151278645 4977334.295929289, -8236064.754538467 4977326.212535227, -8236008.226501043 4977294.804938506, -8236003.551082429 4977292.203565112, -8235881.199830098 4977224.215373924, -8235872.149555497 4977219.056756162)"
603,8th Avenue,"LINESTRING (-8236095.100231658 4977343.070093689, -8236090.146514316 4977352.050025548, -8236056.572555894 4977412.852170868, -8236048.813587385 4977426.917405591, -8236044.672502329 4977434.412993495)"
604,West 51st Street,"LINESTRING (-8236044.672502329 4977434.412993495, -8236056.650479537 4977441.070844048, -8236060.157043498 4977443.025578072, -8236218.586942794 4977531.135987898, -8236254.365027136 4977551.021566462, -8236346.904919832 4977602.521434821, -8236360.975703468 4977610.3111074995)"
605,8th Avenue,"LINESTRING (-8236044.672502329 4977434.412993495, -8236039.741048886 4977443.584073579, -8236024.401223055 4977472.170267871, -8235998.998115255 4977519.510365375, -8235997.361718741 4977522.552720375, -8235994.100057662 4977528.62273584)"
606,West 52nd Street,"LINESTRING (-8235994.100057662 4977528.62273584, -8235978.6489123395 4977520.039470525, -8235787.246179869 4977413.778094787, -8235778.919481957 4977408.325432965)"
607,8th Avenue,"LINESTRING (-8235994.100057662 4977528.62273584, -8235989.9367087055 4977535.883243552, -8235956.051055708 4977594.922835571, -8235947.613038306 4977610.193527488, -8235943.727988077 4977617.24833066)"
608,8th Avenue,"LINESTRING (-8235943.727988077 4977617.24833066, -8235937.716735574 4977627.962822726, -8235909.775543385 4977677.831662659, -8235895.793815341 4977702.773526916, -8235891.129528676 4977711.09239504)"
609,West 53rd Street,"LINESTRING (-8235943.727988077 4977617.24833066, -8235955.483326305 4977623.847515741, -8235959.579883565 4977626.140329419, -8236245.147773298 4977786.506344309, -8236259.196293035 4977794.531328166)"
610,West 54th Street,"LINESTRING (-8235891.129528676 4977711.09239504, -8235877.381571564 4977703.1850608615, -8235876.034605726 4977702.406085908, -8235705.626729219 4977607.048262715, -8235696.186836399 4977602.315669967)"
611,8th Avenue,"LINESTRING (-8235891.129528676 4977711.09239504, -8235886.643353199 4977719.543549238, -8235853.670520026 4977781.597291502, -8235846.7353157485 4977795.251519348, -8235845.165710928 4977798.338053583, -8235841.26952875 4977805.378294844)"
612,8th Avenue,"LINESTRING (-8235841.26952875 4977805.378294844, -8235837.373346573 4977812.242167517, -8235795.160995665 4977886.52515804, -8235791.810278992 4977892.433722499)"
613,West 55th Street,"LINESTRING (-8235841.26952875 4977805.378294844, -8235852.27902639 4977811.25741461, -8235855.407104082 4977812.93296439, -8235858.91366804 4977814.814283785, -8235889.9940698715 4977831.804965982, -8236142.466674991 4977972.728822164, -8236145.728336071 4977974.55138014, -8236158.207250988 4977981.3271833295)"
614,West 57th Street,"LINESTRING (-8235735.716387581 4977992.938657429, -8235722.803326648 4977985.692508049, -8235637.777499581 4977938.041493296, -8235626.623286603 4977931.941827437)"
615,8th Avenue,"LINESTRING (-8235735.716387581 4977992.938657429, -8235727.0223353505 4978008.312858295, -8235701.5969636515 4978053.230356245, -8235684.565081561 4978083.346948787, -8235679.054766766 4978093.488721199)"
616,West 57th Street,"LINESTRING (-8235735.716387581 4977992.938657429, -8235751.846581796 4978001.875092463, -8235829.903808741 4978045.131669068, -8235836.783353272 4978048.967888473, -8235879.396454348 4978072.749542774, -8235885.930908457 4978076.394696387, -8235906.992556116 4978088.153265704, -8236037.770693899 4978161.130203066, -8236043.336668438 4978164.246249588, -8236052.487130581 4978169.361271508)"
617,West 58th Street,"LINESTRING (-8235679.054766766 4978093.488721199, -8235666.342080917 4978085.169527399, -8235621.2242912995 4978060.932199283, -8235610.6600716235 4978054.626682299)"
618,8th Avenue,"LINESTRING (-8235679.054766766 4978093.488721199, -8235673.299549093 4978103.527616439, -8235668.000741331 4978113.595918512, -8235663.592489496 4978121.85634344, -8235653.518075579 4978140.949416401)"
619,5th Avenue,"LINESTRING (-8233972.3933895165 4978836.61532965, -8233978.950107525 4978823.84160557, -8234023.221869012 4978745.861983695, -8234027.685780594 4978737.865616574)"
620,East 72nd Street,"LINESTRING (-8233972.3933895165 4978836.61532965, -8233962.363503396 4978830.779690685, -8233926.418439819 4978810.671016877, -8233807.429036111 4978744.788941404, -8233794.449183485 4978737.806819782)"
621,East 72nd Street,"LINESTRING (-8233794.449183485 4978737.806819782, -8233782.315358988 4978731.2803779775, -8233637.889451632 4978651.317120743, -8233625.900342474 4978644.540852748)"
622,East 72nd Street,"LINESTRING (-8233794.449183485 4978737.806819782, -8233807.429036111 4978744.788941404, -8233926.418439819 4978810.671016877, -8233962.363503396 4978830.779690685, -8233972.3933895165 4978836.61532965)"
623,Madison Avenue,"LINESTRING (-8233794.449183485 4978737.806819782, -8233786.15588142 4978752.755915754, -8233743.186557974 4978830.1917171795, -8233739.023209019 4978837.703081381)"
624,East 72nd Street,"LINESTRING (-8233603.736631857 4978632.031962573, -8233625.900342474 4978644.540852748)"
625,East 72nd Street,"LINESTRING (-8233603.736631857 4978632.031962573, -8233593.116752435 4978626.0200574845, -8233447.4885945795 4978544.9993405985, -8233435.855707791 4978538.193748571)"
626,Park Avenue,"LINESTRING (-8233603.736631857 4978632.031962573, -8233595.61030903 4978646.260642663, -8233554.72266006 4978726.591338022, -8233550.659498648 4978734.014427391)"
627,East 72nd Street,"LINESTRING (-8233435.855707791 4978538.193748571, -8233424.6235711705 4978531.932020138, -8233273.318119286 4978447.678355668, -8233256.820570747 4978438.491634034)"
628,East 72nd Street,"LINESTRING (-8233435.855707791 4978538.193748571, -8233447.4885945795 4978544.9993405985, -8233593.116752435 4978626.0200574845, -8233603.736631857 4978632.031962573)"
629,Lexington Avenue,"LINESTRING (-8233435.855707791 4978538.193748571, -8233443.280717827 4978524.729567514, -8233486.494944153 4978446.208479625, -8233490.535841669 4978439.094282707)"
630,East 72nd Street,"LINESTRING (-8233256.820570747 4978438.491634034, -8233273.318119286 4978447.678355668, -8233424.6235711705 4978531.932020138, -8233435.855707791 4978538.193748571)"
631,3rd Avenue,"LINESTRING (-8233256.820570747 4978438.491634034, -8233248.827831309 4978452.925814942, -8233205.691528628 4978530.976592443, -8233200.993846115 4978539.472552759)"
632,East 72nd Street,"LINESTRING (-8233256.820570747 4978438.491634034, -8233241.358293477 4978429.878171678, -8233022.359459239 4978307.74714831, -8233009.702433135 4978301.088707001)"
633,2nd Avenue,"LINESTRING (-8233009.702433135 4978301.088707001, -8233016.971595885 4978287.786536522, -8233035.695534237 4978254.215172467, -8233060.664496021 4978208.94398859, -8233064.382567014 4978202.065138754)"
634,East 72nd Street,"LINESTRING (-8233009.702433135 4978301.088707001, -8232997.568608641 4978294.19509374, -8232992.692814944 4978291.5493586, -8232760.324509862 4978161.953309599, -8232755.571167604 4978159.30761028, -8232744.127523951 4978152.943236516)"
635,East 72nd Street,"LINESTRING (-8233009.702433135 4978301.088707001, -8233022.359459239 4978307.74714831, -8233241.358293477 4978429.878171678, -8233256.820570747 4978438.491634034)"
636,1st Avenue,"LINESTRING (-8232744.127523951 4978152.943236516, -8232735.9789372245 4978167.670962244, -8232716.397838795 4978203.094026242, -8232701.7259299075 4978229.639360897, -8232693.209988862 4978245.028632794, -8232688.801737026 4978253.009897969)"
637,East 72nd Street,"LINESTRING (-8232744.127523951 4978152.943236516, -8232755.571167604 4978159.30761028, -8232760.324509862 4978161.953309599, -8232992.692814944 4978291.5493586, -8232997.568608641 4978294.19509374, -8233009.702433135 4978301.088707001)"
638,5th Avenue,"LINESTRING (-8234538.408472405 4977818.033104527, -8234542.827856189 4977810.022799166, -8234580.921385938 4977740.605327087, -8234587.311124709 4977728.905966864)"
639,East 61st Street,"LINESTRING (-8234358.037501472 4977717.588759879, -8234370.672263677 4977724.614245269, -8234371.718666892 4977725.202152225, -8234436.617930024 4977761.343800313, -8234524.838626477 4977810.463733235, -8234538.408472405 4977818.033104527)"
640,Madison Avenue,"LINESTRING (-8234358.037501472 4977717.588759879, -8234352.883409048 4977726.936477953, -8234312.09594762 4977800.91016619, -8234311.439162626 4977802.100687114, -8234307.453924855 4977809.317304698)"
641,East 61st Street,"LINESTRING (-8234169.673791101 4977612.897868102, -8234190.011862069 4977624.259046362)"
642,Park Avenue,"LINESTRING (-8234169.673791101 4977612.897868102, -8234164.998372488 4977621.378332384, -8234122.975264713 4977697.805725656, -8234118.956631095 4977705.110452051)"
643,East 61st Street,"LINESTRING (-8233999.18799095 4977518.0406289995, -8234010.152960794 4977524.18412852, -8234157.517702706 4977606.13701797, -8234169.673791101 4977612.897868102)"
644,Lexington Avenue,"LINESTRING (-8233999.18799095 4977518.0406289995, -8234004.086048546 4977508.766597571, -8234018.668901841 4977482.4730761405, -8234044.840114126 4977435.147855366, -8234048.825351896 4977428.24015598)"
645,East 61st Street,"LINESTRING (-8233820.2641734 4977418.584082259, -8233834.86929059 4977426.69694721, -8233987.510576366 4977511.544396869, -8233999.18799095 4977518.0406289995)"
646,3rd Avenue,"LINESTRING (-8233820.2641734 4977418.584082259, -8233815.855921563 4977426.608763859, -8233774.968272595 4977501.16807125, -8233769.981159409 4977510.265727252)"
647,East 61st Street,"LINESTRING (-8233572.277743758 4977280.34307486, -8233586.303999598 4977288.02961151, -8233788.627174115 4977400.932745382, -8233805.9373549335 4977410.588801653, -8233820.2641734 4977418.584082259)"
648,2nd Avenue,"LINESTRING (-8233572.277743758 4977280.34307486, -8233576.830710933 4977272.215634462, -8233600.942512639 4977229.153540486, -8233603.703236009 4977224.215373924, -8233618.853818706 4977197.143683728, -8233623.918855538 4977188.105106801)"
649,East 61st Street,"LINESTRING (-8233307.938480922 4977132.874439557, -8233323.734716664 4977141.721907025, -8233453.04343717 4977214.309654475, -8233464.119726503 4977220.7322043665)"
650,1st Avenue,"LINESTRING (-8233307.938480922 4977132.874439557, -8233302.840048241 4977141.736603823, -8233260.182419371 4977215.691163707, -8233255.150778388 4977224.685675393)"
651,5th Avenue,"LINESTRING (-8233077.8076976035 4980454.76528939, -8233082.149157745 4980447.032154717, -8233124.250189163 4980371.582956803, -8233129.448809383 4980362.08569066)"
652,Madison Avenue,"LINESTRING (-8232900.59820021 4980356.116825335, -8232895.711274564 4980364.908406568, -8232887.117409876 4980380.330446948, -8232863.584469522 4980422.627245149, -8232853.743826536 4980440.313447624, -8232849.780852663 4980447.487909632)"
653,East 89th Street,"LINESTRING (-8232900.59820021 4980356.116825335, -8232913.266358262 4980363.158910675, -8233068.156297753 4980449.502052577, -8233077.8076976035 4980454.76528939)"
654,East 89th Street,"LINESTRING (-8232711.555440945 4980251.427049128, -8232732.138414793 4980262.703088204)"
655,Park Avenue,"LINESTRING (-8232711.555440945 4980251.427049128, -8232707.1026613135 4980259.556969083, -8232665.380116163 4980335.416946267, -8232661.261295006 4980342.885363484)"
656,Lexington Avenue,"LINESTRING (-8232541.737557739 4980156.00023068, -8232546.001094237 4980148.164423363, -8232558.446613308 4980125.759635631, -8232587.567792099 4980072.467614154, -8232592.243210712 4980064.176136821)"
657,East 89th Street,"LINESTRING (-8232541.737557739 4980156.00023068, -8232553.526291816 4980162.704040807, -8232698.775963402 4980244.149820914, -8232711.555440945 4980251.427049128)"
658,West 53rd Street,"LINESTRING (-8234953.296214592 4977065.9308216395, -8234964.5060873125 4977071.941766607, -8235066.430213085 4977129.214941235, -8235154.717701232 4977179.125325649, -8235161.341210933 4977182.873023817, -8235201.661130501 4977205.667877761, -8235218.637352846 4977215.0738936, -8235267.907359472 4977243.453661905, -8235296.984010466 4977258.459258893, -8235311.678183249 4977266.586687844)"
659,5th Avenue,"LINESTRING (-8234953.296214592 4977065.9308216395, -8234955.756375338 4977060.463657298, -8234998.447400057 4976984.658505774, -8235002.8667838415 4976976.413738991)"
660,East 53rd Street,"LINESTRING (-8234773.726743992 4976966.596450008, -8234785.949624081 4976973.3274644455, -8234940.227306372 4977058.538393162, -8234953.296214592 4977065.9308216395)"
661,Madison Avenue,"LINESTRING (-8234773.726743992 4976966.596450008, -8234768.516991822 4976976.369649349, -8234726.805578623 4977051.7338367095, -8234722.00770857 4977060.448960623)"
662,East 53rd Street,"LINESTRING (-8234584.6394569315 4976862.663121447, -8234603.7307496015 4976873.318000332)"
663,Park Avenue,"LINESTRING (-8234584.6394569315 4976862.663121447, -8234579.708003489 4976871.921843126, -8234538.34168071 4976946.329952012, -8234533.5326787075 4976954.971499315)"
664,East 53rd Street,"LINESTRING (-8234413.140649415 4976767.048962836, -8234426.2763493275 4976774.382385765, -8234494.882551503 4976812.622087103, -8234568.765297544 4976853.815906707, -8234571.114138799 4976855.123883134, -8234584.6394569315 4976862.663121447)"
665,Lexington Avenue,"LINESTRING (-8234413.140649415 4976767.048962836, -8234417.660220741 4976758.907253248, -8234458.325230728 4976685.764437275, -8234459.004279622 4976684.500571851, -8234463.379135611 4976676.329538865)"
666,East 53rd Street,"LINESTRING (-8234235.753040835 4976668.511218734, -8234251.8721031025 4976677.417050053, -8234310.515210853 4976709.880784441, -8234320.923583242 4976715.626979537, -8234401.162672205 4976760.362179193, -8234413.140649415 4976767.048962836)"
667,3rd Avenue,"LINESTRING (-8234235.753040835 4976668.511218734, -8234230.966302732 4976677.622795428, -8234190.36808444 4976751.485664679, -8234184.768714053 4976761.670143107)"
668,East 53rd Street,"LINESTRING (-8233987.287937385 4976530.163258007, -8234000.824387467 4976538.819133088, -8234127.572759683 4976608.889385492, -8234194.24200272 4976645.673529978, -8234221.459618218 4976660.590032353, -8234235.753040835 4976668.511218734)"
669,2nd Avenue,"LINESTRING (-8233987.287937385 4976530.163258007, -8233992.007883796 4976521.713132687, -8234025.092036459 4976462.356719244, -8234034.164574957 4976445.750508194, -8234037.582083325 4976439.475425172)"
670,East 53rd Street,"LINESTRING (-8233720.844736172 4976382.9998593405, -8233737.253229114 4976392.067082753, -8233903.252853786 4976483.739094515, -8233972.159618585 4976521.801307869, -8233987.287937385 4976530.163258007)"
671,1st Avenue,"LINESTRING (-8233720.844736172 4976382.9998593405, -8233715.813095188 4976392.125865427, -8233675.136953251 4976465.76613952, -8233669.927201084 4976475.200834585)"
672,East 53rd Street,"LINESTRING (-8233512.766343981 4976268.080512227, -8233707.453001429 4976375.607947614, -8233720.844736172 4976382.9998593405)"
673,East 78th Street,"LINESTRING (-8233659.051286833 4979403.159289805, -8233650.045540027 4979398.117122639, -8233495.099940793 4979311.724476222, -8233482.8102690065 4979304.962450049)"
674,5th Avenue,"LINESTRING (-8233659.051286833 4979403.159289805, -8233663.748969344 4979394.662578122, -8233705.87226466 4979318.50120715, -8233709.812974635 4979311.37167474)"
675,East 78th Street,"LINESTRING (-8233482.8102690065 4979304.962450049, -8233468.795145119 4979297.171425699, -8233324.603008692 4979216.865436924, -8233312.769746822 4979210.485674075)"
676,Madison Avenue,"LINESTRING (-8233482.8102690065 4979304.962450049, -8233477.311086162 4979315.017290661, -8233434.675721188 4979392.972056784, -8233427.172787509 4979406.687338351)"
677,East 78th Street,"LINESTRING (-8233293.099592798 4979199.578347242, -8233280.865580761 4979192.786998955, -8233134.602901807 4979111.541083789, -8233122.435681462 4979104.749796722)"
678,Park Avenue,"LINESTRING (-8233293.099592798 4979199.578347242, -8233288.101347662 4979208.706985175, -8233244.898253285 4979287.440004015, -8233237.272868166 4979300.949336731)"
679,East 78th Street,"LINESTRING (-8233122.435681462 4979104.749796722, -8233111.448447722 4979098.590603226, -8232959.608662278 4979013.582369969, -8232944.836565851 4979005.306491229)"
680,Lexington Avenue,"LINESTRING (-8233122.435681462 4979104.749796722, -8233125.942245424 4979098.399506593, -8233126.72148186 4979096.973631831, -8233169.5126941195 4979020.094300799, -8233173.308688755 4979013.009085069)"
681,East 78th Street,"LINESTRING (-8232944.836565851 4979005.306491229, -8232928.773163329 4978996.383837636, -8232709.017356555 4978873.937042675, -8232696.861268161 4978867.337012938)"
682,3rd Avenue,"LINESTRING (-8232944.836565851 4979005.306491229, -8232939.90511241 4979014.052757604, -8232895.689010667 4979092.563711204, -8232888.074757496 4979106.102173856)"
683,2nd Avenue,"LINESTRING (-8232696.861268161 4978867.337012938, -8232700.968957371 4978859.561037077, -8232743.147912432 4978783.198049188, -8232747.222205795 4978775.4662380805)"
684,West 83rd Street,"LINESTRING (-8234704.897902836 4980613.869278743, -8234717.877755461 4980621.073272341, -8235006.440139496 4980781.326749006, -8235019.130561445 4980788.383843305)"
685,Columbus Avenue,"LINESTRING (-8234704.897902836 4980613.869278743, -8234709.506529755 4980605.445023584, -8234743.225203515 4980543.932009001, -8234751.685484816 4980529.421227681, -8234756.127132497 4980521.467505631)"
686,West 83rd Street,"LINESTRING (-8235019.130561445 4980788.383843305, -8235027.023113344 4980792.794529831, -8235029.906288154 4980794.397079762, -8235033.891525924 4980796.617126431, -8235179.330440647 4980877.744741064, -8235190.818612097 4980884.096188422)"
687,Amsterdam Avenue,"LINESTRING (-8235019.130561445 4980788.383843305, -8235014.0098648695 4980797.646287312, -8234971.897701503 4980873.863303045, -8234967.901331782 4980881.096893321)"
688,East 42nd Street,"LINESTRING (-8235513.800982684 4976047.812411671, -8235501.043769039 4976041.464108522, -8235348.625122245 4975956.217965122, -8235333.652650733 4975948.238576218)"
689,West 42nd Street,"LINESTRING (-8235513.800982684 4976047.812411671, -8235529.797593512 4976055.747796408, -8235683.919428514 4976141.935306889, -8235705.8716321 4976154.1911885375, -8235820.430520074 4976218.071914092, -8235857.655757796 4976238.660201044, -8235874.342549466 4976247.888940469)"
690,5th Avenue,"LINESTRING (-8235513.800982684 4976047.812411671, -8235521.392971957 4976034.51330911, -8235563.6721145585 4975960.494214896, -8235569.58317952 4975950.148926559)"
691,7th Avenue,"LINESTRING (-8236189.476895953 4976423.368907339, -8236196.790586498 4976410.52486014, -8236239.926889179 4976334.768838309, -8236244.925134317 4976325.922101609)"
692,West 42nd Street,"LINESTRING (-8236189.476895953 4976423.368907339, -8236176.307800191 4976416.3443576945, -8236140.474056104 4976396.637436803, -8236131.145482777 4976391.508647355)"
693,West 42nd Street,"LINESTRING (-8236189.476895953 4976423.368907339, -8236202.902026542 4976430.819638109, -8236216.160177896 4976438.211591609, -8236249.055087425 4976456.507802753, -8236342.997605705 4976508.736693598, -8236353.060887673 4976514.335811861, -8236364.359815989 4976520.610942965, -8236383.540164253 4976531.280144682, -8236491.063660408 4976591.06315994, -8236505.902548533 4976599.336993476)"
694,West 42nd Street,"LINESTRING (-8236823.652903054 4976775.558085344, -8236838.848013546 4976784.037822747, -8236954.37538109 4976848.437039204, -8236967.3663656665 4976855.68234503)"
695,9th Avenue,"LINESTRING (-8236823.652903054 4976775.558085344, -8236830.632635127 4976762.919322288, -8236864.985829985 4976700.636912465, -8236871.186325621 4976688.46852199)"
696,West 42nd Street,"LINESTRING (-8236823.652903054 4976775.558085344, -8236811.185120083 4976769.2093092995, -8236806.977243331 4976766.872608044, -8236802.079185737 4976764.139109172, -8236671.991228796 4976691.7604522165, -8236603.26257518 4976652.8892933065, -8236566.215448643 4976632.505877841, -8236521.119922923 4976607.40509012, -8236505.902548533 4976599.336993476)"
697,West 42nd Street,"LINESTRING (-8237138.3308396265 4976951.003440932, -8237153.993491981 4976959.821350641, -8237330.601864126 4977059.258530085, -8237344.7505714055 4977067.238826464, -8237346.13093309 4977068.017750768, -8237438.16988808 4977119.706130722, -8237446.630169378 4977124.717728309)"
698,West 42nd Street,"LINESTRING (-8237138.3308396265 4976951.003440932, -8237123.759118282 4976942.876274532, -8236983.496559882 4976864.676525256, -8236977.407383735 4976861.281662139, -8236967.3663656665 4976855.68234503)"
699,10th Avenue,"LINESTRING (-8237138.3308396265 4976951.003440932, -8237129.380752566 4976967.19900788, -8237087.947638093 4977042.151618379, -8237082.604302537 4977051.792623354)"
700,West 42nd Street,"LINESTRING (-8237787.802144763 4977308.032271564, -8237757.723618349 4977295.363425541)"
701,West 71st Street,"LINESTRING (-8235338.272409601 4979465.062026588, -8235351.697540191 4979472.559178793, -8235620.534110456 4979622.738640064, -8235635.3173388345 4979630.956239877)"
702,Columbus Avenue,"LINESTRING (-8235338.272409601 4979465.062026588, -8235342.435758557 4979457.49137873, -8235383.445858966 4979382.755434052, -8235388.410708254 4979373.700134205)"
703,5th Avenue,"LINESTRING (-8234231.689879422 4978369.231380431, -8234235.608325497 4978362.1613354795, -8234258.395425263 4978321.255125968, -8234274.481091683 4978292.401873177, -8234277.765016661 4978286.390177136, -8234282.8745812895 4978277.600466846)"
704,Madison Avenue,"LINESTRING (-8234052.89964526 4978269.957246935, -8234049.059122826 4978277.012526639, -8234006.535077343 4978354.547446641, -8234002.527575675 4978361.867362827)"
705,East 67th Street,"LINESTRING (-8234052.89964526 4978269.957246935, -8234066.914769149 4978277.703356386, -8234220.2351038195 4978363.043253489, -8234231.689879422 4978369.231380431)"
706,East 67th Street,"LINESTRING (-8233864.769705818 4978165.363323114, -8233884.562311282 4978176.298891724)"
707,Park Avenue,"LINESTRING (-8233864.769705818 4978165.363323114, -8233860.239002543 4978173.447411631, -8233818.249290615 4978248.982518409, -8233813.885566575 4978256.787405122)"
708,East 67th Street,"LINESTRING (-8233693.949947196 4978070.192056776, -8233705.816604914 4978076.8650388885, -8233725.241856058 4978087.668224439, -8233852.290790901 4978158.396314012, -8233864.769705818 4978165.363323114)"
709,Lexington Avenue,"LINESTRING (-8233693.949947196 4978070.192056776, -8233698.413858777 4978062.1815446215, -8233740.79318892 4977985.369150595, -8233744.822954487 4977978.064214612)"
710,3rd Avenue,"LINESTRING (-8233515.738574384 4977969.656930865, -8233511.08541967 4977978.034818503, -8233469.2404230805 4978054.1122463625, -8233464.698587856 4978062.357922801)"
711,East 67th Street,"LINESTRING (-8233515.738574384 4977969.656930865, -8233530.866893183 4977979.093078505, -8233682.918185658 4978063.915930183, -8233693.949947196 4978070.192056776)"
712,2nd Avenue,"LINESTRING (-8233266.549894245 4977830.864304605, -8233270.624187607 4977823.294923368, -8233312.279941063 4977747.983574032, -8233316.899699929 4977739.576488315)"
713,East 67th Street,"LINESTRING (-8233266.549894245 4977830.864304605, -8233281.956511769 4977838.227921883, -8233500.9776099045 4977960.602941076, -8233515.738574384 4977969.656930865)"
714,East 67th Street,"LINESTRING (-8233000.318200062 4977684.107541187, -8233017.851019862 4977693.954946536, -8233252.334395271 4977824.220886195, -8233266.549894245 4977830.864304605)"
715,1st Avenue,"LINESTRING (-8233000.318200062 4977684.107541187, -8232995.38674662 4977692.779136421, -8232965.230296563 4977745.8083134, -8232953.675333421 4977767.472755116, -8232949.434060822 4977775.438932335)"
716,9th Avenue,"LINESTRING (-8237232.384677399 4976037.129042769, -8237240.522132175 4976022.022455787, -8237272.916103996 4975962.2135323435, -8237281.46544089 4975946.607431221, -8237285.873692724 4975938.245980518)"
717,West 34th Street,"LINESTRING (-8237232.384677399 4976037.129042769, -8237214.684878362 4976027.812331696, -8237174.376090745 4976005.446383328, -8237166.294295713 4976000.89090735, -8237157.043646029 4975995.659460134, -8237119.016907974 4975971.985726997, -8237111.191147773 4975967.1510610515, -8237102.931241556 4975962.316397499, -8237050.321650206 4975933.146821651, -8237041.237979757 4975928.1946151545, -8237032.543927526 4975923.462835625, -8236930.6977254 4975868.018894042, -8236914.066593475 4975859.437087577)"
718,West 34th Street,"LINESTRING (-8237232.384677399 4976037.129042769, -8237246.121502562 4976044.6676498735, -8237295.013022918 4976071.51571891, -8237312.501314921 4976081.141070877, -8237333.640886224 4976092.764981846, -8237376.36530679 4976116.189188316)"
719,West 34th Street,"LINESTRING (-8237547.530155835 4976211.0034258645, -8237562.124141077 4976219.188765091, -8237690.854000229 4976289.96210981, -8237700.037858221 4976295.223105657)"
720,10th Avenue,"LINESTRING (-8237547.530155835 4976211.0034258645, -8237539.659867834 4976225.8310920885, -8237527.1030292725 4976247.095386099, -8237497.714683703 4976300.307757967, -8237493.017001192 4976308.801778423)"
721,West 34th Street,"LINESTRING (-8237547.530155835 4976211.0034258645, -8237532.323913392 4976202.480099667, -8237472.9906247975 4976169.26858921, -8237463.450544436 4976163.948879885, -8237430.53337101 4976145.932427272, -8237389.890624922 4976123.624989567, -8237376.36530679 4976116.189188316)"
722,West 30th Street,"LINESTRING (-8237751.422935171 4975841.230163544, -8237736.261220526 4975832.736549573, -8237733.177670631 4975831.061339384, -8237718.394442252 4975823.008578627, -8237645.446779935 4975782.803653406)"
723,10th Avenue,"LINESTRING (-8237751.422935171 4975841.230163544, -8237747.849579516 4975847.6518108435, -8237743.062841413 4975856.233606958, -8237738.977416099 4975863.448787263)"
724,Freedom Place,"LINESTRING (-8236279.267197227 4979628.927565219, -8236243.288737801 4979728.803541108)"
725,West 68th Street,"LINESTRING (-8236371.050117385 4979680.45309199, -8236360.35231432 4979674.425840866, -8236295.252676105 4979637.733192331, -8236290.844424268 4979635.307601432, -8236279.267197227 4979628.927565219)"
726,Riverside Boulevard,"LINESTRING (-8236371.050117385 4979680.45309199, -8236374.000083891 4979669.47173724, -8236385.744290171 4979624.517404376, -8236393.525522578 4979596.9245432345, -8236399.815073807 4979575.020835773)"
727,Riverside Boulevard,"LINESTRING (-8236371.050117385 4979680.45309199, -8236368.31165791 4979690.861134397, -8236351.212984127 4979755.044307692, -8236346.626621104 4979770.347778906, -8236342.307424862 4979783.343252639)"
728,Riverside Boulevard,"LINESTRING (-8236435.159012133 4979480.365043382, -8236441.459695311 4979468.193189457, -8236468.632783014 4979413.537636249, -8236478.261918969 4979395.691591255, -8236481.044906237 4979391.149234103, -8236486.054283323 4979382.946536249)"
729,Riverside Boulevard,"LINESTRING (-8236435.159012133 4979480.365043382, -8236430.038315556 4979492.772117828, -8236416.256962597 4979528.4204940805, -8236408.831952561 4979548.82465418, -8236399.815073807 4979575.020835773)"
730,West 66th Street,"LINESTRING (-8236435.159012133 4979480.365043382, -8236425.084598216 4979474.734824041, -8236350.300164301 4979432.750836468)"
731,West 67th Street,"LINESTRING (-8236399.815073807 4979575.020835773, -8236389.696132093 4979569.728672211, -8236383.039226543 4979566.112362092, -8236362.400592949 4979554.528418373)"
732,Riverside Boulevard,"LINESTRING (-8236399.815073807 4979575.020835773, -8236408.831952561 4979548.82465418, -8236416.256962597 4979528.4204940805, -8236430.038315556 4979492.772117828, -8236435.159012133 4979480.365043382)"
733,Riverside Boulevard,"LINESTRING (-8236399.815073807 4979575.020835773, -8236393.525522578 4979596.9245432345, -8236385.744290171 4979624.517404376, -8236374.000083891 4979669.47173724, -8236371.050117385 4979680.45309199)"
734,Riverside Boulevard,"LINESTRING (-8236306.42915298 4979880.11891374, -8236311.616641251 4979867.329123793, -8236317.104692147 4979854.0248198435, -8236342.307424862 4979783.343252639)"
735,Riverside Boulevard,"LINESTRING (-8236306.42915298 4979880.11891374, -8236301.8316580085 4979891.423925927, -8236293.582883743 4979908.212407707, -8236285.311845575 4979925.868276512, -8236277.018543512 4979942.2598902015, -8236255.934631955 4979979.629932079)"
736,West 70th Street,"LINESTRING (-8236306.42915298 4979880.11891374, -8236295.620030423 4979874.694276648, -8236207.043111599 4979826.225498493)"
737,East 80th Street,"LINESTRING (-8233548.299525441 4979603.77497458, -8233538.1805837285 4979598.085882117, -8233384.481762789 4979512.367683391, -8233370.923048813 4979504.8116992125)"
738,5th Avenue,"LINESTRING (-8233548.299525441 4979603.77497458, -8233550.603838902 4979599.805839953, -8233552.351554907 4979596.512929487, -8233562.2144617895 4979579.034061719, -8233565.899136936 4979572.00724228, -8233576.619203899 4979552.470358745, -8233594.664093357 4979519.703167784, -8233603.614180417 4979503.385765111)"
739,East 80th Street,"LINESTRING (-8233370.923048813 4979504.8116992125, -8233358.789224315 4979498.093640369, -8233214.385580859 4979418.315207372, -8233202.307416108 4979411.744210156)"
740,Madison Avenue,"LINESTRING (-8233370.923048813 4979504.8116992125, -8233365.657636897 4979514.337532365, -8233323.233778956 4979591.103150418, -8233319.382124575 4979598.071181624)"
741,East 80th Street,"LINESTRING (-8233182.247643867 4979400.425053059, -8233170.380986147 4979393.69236584, -8233079.789184541 4979343.741263709, -8233023.261147114 4979312.121377904, -8233011.349961601 4979305.462251823)"
742,Park Avenue,"LINESTRING (-8233182.247643867 4979400.425053059, -8233177.438641864 4979409.098172258, -8233134.680825451 4979486.597979285, -8233130.395025055 4979494.345053746)"
743,East 80th Street,"LINESTRING (-8233011.349961601 4979305.462251823, -8232999.672547017 4979298.964830754, -8232848.634261908 4979214.778048621, -8232832.771234469 4979205.928703163)"
744,Lexington Avenue,"LINESTRING (-8233011.349961601 4979305.462251823, -8233015.3574632695 4979298.244528685, -8233033.970082129 4979264.69909115, -8233059.306398235 4979219.05572513, -8233066.620088778 4979205.781704136)"
745,East 80th Street,"LINESTRING (-8232832.771234469 4979205.928703163, -8232817.965742195 4979197.623261646, -8232598.120879826 4979073.953868089, -8232585.063103557 4979066.6775172725)"
746,3rd Avenue,"LINESTRING (-8232832.771234469 4979205.928703163, -8232828.06242001 4979214.410550726, -8232785.772145458 4979290.82101045, -8232781.909359127 4979297.803527444)"
747,2nd Avenue,"LINESTRING (-8232585.063103557 4979066.6775172725, -8232588.6587231085 4979060.165555382, -8232605.9021122325 4979030.663335475, -8232633.1753874775 4978982.448638779, -8232640.6337933615 4978968.675154804)"
748,5th Avenue,"LINESTRING (-8233916.822699712 4978937.100581818, -8233919.7837981675 4978931.735266481, -8233964.233670843 4978851.358785694, -8233972.3933895165 4978836.61532965)"
749,East 73rd Street,"LINESTRING (-8233739.023209019 4978837.703081381, -8233752.270228422 4978845.09685648, -8233907.149035963 4978931.588271581, -8233916.822699712 4978937.100581818)"
750,Madison Avenue,"LINESTRING (-8233739.023209019 4978837.703081381, -8233733.980436086 4978846.875479159, -8233691.679029583 4978923.768146129, -8233687.4377569845 4978931.470675663)"
751,East 73rd Street,"LINESTRING (-8233550.659498648 4978734.014427391, -8233570.385312416 4978744.994730327)"
752,Park Avenue,"LINESTRING (-8233550.659498648 4978734.014427391, -8233546.0731356265 4978742.23127943, -8233503.437770653 4978818.726240887, -8233499.085178562 4978826.531582901)"
753,East 73rd Street,"LINESTRING (-8233379.828608076 4978639.146300027, -8233391.795453336 4978645.819670861, -8233538.013604492 4978727.002915106, -8233550.659498648 4978734.014427391)"
754,Lexington Avenue,"LINESTRING (-8233379.828608076 4978639.146300027, -8233402.74929123 4978597.753863844, -8233428.0633434355 4978552.054818981, -8233435.855707791 4978538.193748571)"
755,East 73rd Street,"LINESTRING (-8233200.993846115 4978539.472552759, -8233217.201963976 4978548.335993282, -8233368.986089673 4978633.090293436, -8233379.828608076 4978639.146300027)"
756,3rd Avenue,"LINESTRING (-8233200.993846115 4978539.472552759, -8233196.3963511465 4978547.777434604, -8233154.773993539 4978624.8441351615, -8233150.699700177 4978632.428836633)"
757,East 73rd Street,"LINESTRING (-8232951.571395045 4978400.774720254, -8232966.85556113 4978408.520933452, -8233186.433256721 4978531.329365735, -8233200.993846115 4978539.472552759)"
758,2nd Avenue,"LINESTRING (-8232951.571395045 4978400.774720254, -8232955.879459339 4978392.940321125, -8232968.54761739 4978374.611085421, -8233002.333082846 4978314.508484084, -8233009.702433135 4978301.088707001)"
759,East 73rd Street,"LINESTRING (-8232688.801737026 4978253.009897969, -8232703.729680742 4978261.5350134615, -8232937.467215561 4978393.293089431, -8232951.571395045 4978400.774720254)"
760,1st Avenue,"LINESTRING (-8232688.801737026 4978253.009897969, -8232683.6587765515 4978262.314033006, -8232651.565367356 4978320.358513162, -8232641.769252166 4978338.085004575, -8232637.227416943 4978346.30152353)"
761,Freedom Place,"LINESTRING (-8236350.300164301 4979432.750836468, -8236345.58021789 4979445.20195121, -8236324.963848197 4979500.960207582, -8236317.416386721 4979521.158505023, -8236311.99512752 4979536.4910105225, -8236279.267197227 4979628.927565219)"
762,West 66th Street,"LINESTRING (-8236350.300164301 4979432.750836468, -8236307.809514666 4979409.083472048, -8236264.561892494 4979385.004560151, -8236237.043714369 4979369.6722924905, -8236221.837471926 4979361.10210926)"
763,West 66th Street,"LINESTRING (-8236350.300164301 4979432.750836468, -8236425.084598216 4979474.734824041, -8236435.159012133 4979480.365043382)"
764,Freedom Place,"LINESTRING (-8236243.288737801 4979728.803541108, -8236216.672247552 4979800.851887696, -8236213.288135032 4979809.745874707, -8236207.043111599 4979826.225498493)"
765,West 69th Street,"LINESTRING (-8236243.288737801 4979728.803541108, -8236252.216560962 4979733.72827344, -8236325.743084633 4979774.33168361, -8236331.598489849 4979777.521748694, -8236342.307424862 4979783.343252639)"
766,West 70th Street,"LINESTRING (-8236207.043111599 4979826.225498493, -8236197.224732512 4979821.006702938, -8236140.440660258 4979788.062201568, -8236079.637954386 4979755.05900842, -8236037.0248533115 4979732.155298963, -8236022.108041544 4979721.820715941)"
767,West 70th Street,"LINESTRING (-8236207.043111599 4979826.225498493, -8236295.620030423 4979874.694276648, -8236306.42915298 4979880.11891374)"
768,West 77th Street,"LINESTRING (-8235020.054513221 4980044.447153457, -8235003.334325703 4980038.463781135, -8234999.104185053 4980036.214504527, -8234886.626971555 4979973.587795239, -8234829.842899302 4979942.274591212, -8234719.336040791 4979880.795155973, -8234715.35080302 4979878.634121174, -8234702.7494366625 4979870.18109849)"
769,West 77th Street,"LINESTRING (-8235020.054513221 4980044.447153457, -8235032.98983805 4980049.033918016, -8235318.268297106 4980207.440330156, -8235322.487305807 4980209.54263207, -8235335.110936063 4980216.555208855)"
770,Columbus Avenue,"LINESTRING (-8235020.054513221 4980044.447153457, -8235026.3551964 4980032.583320508, -8235058.660112628 4979969.162777686, -8235067.020206386 4979954.314726794, -8235072.018451522 4979944.891371554)"
771,West 77th Street,"LINESTRING (-8235335.110936063 4980216.555208855, -8235349.760581052 4980224.699801212, -8235484.234525929 4980299.309875878, -8235496.435142119 4980306.028485948)"
772,Amsterdam Avenue,"LINESTRING (-8235335.110936063 4980216.555208855, -8235331.303809478 4980223.553089242, -8235288.879951537 4980300.3389843395, -8235284.6720747845 4980307.92498722)"
773,Riverside Drive,"LINESTRING (-8235849.284532088 4980503.090168929, -8235889.53765996 4980450.001912936, -8235898.176052445 4980438.328710089, -8235903.842214525 4980430.051623832, -8235908.428577548 4980422.627245149, -8235912.892489127 4980414.1737515405)"
774,Riverside Drive,"LINESTRING (-8235849.284532088 4980503.090168929, -8235789.183139008 4980578.5697869435, -8235783.24981015 4980585.935476279)"
775,Madison Avenue,"LINESTRING (-8234976.038786559 4976599.689697015, -8234971.162992862 4976608.389721678, -8234936.486971482 4976670.127788173, -8234929.952517373 4976682.869303927, -8234925.343890454 4976691.143215216)"
776,East 49th Street,"LINESTRING (-8234976.038786559 4976599.689697015, -8234988.595625123 4976606.596810556, -8235004.625631795 4976615.443801417, -8235032.845122713 4976630.992186825, -8235141.782376401 4976691.0256462665, -8235155.708444701 4976698.697023111)"
777,East 49th Street,"LINESTRING (-8234787.641680341 4976495.363484486, -8234806.799764708 4976506.150225353)"
778,Park Avenue,"LINESTRING (-8234787.641680341 4976495.363484486, -8234783.289088252 4976503.196361888, -8234741.065605394 4976579.291696596, -8234737.169423216 4976586.28697148)"
779,East 49th Street,"LINESTRING (-8234616.654942483 4976398.959353829, -8234628.042926391 4976405.322584961, -8234650.718706666 4976417.975581115, -8234710.218974494 4976451.217328539, -8234775.518987794 4976488.441753773, -8234787.641680341 4976495.363484486)"
780,Lexington Avenue,"LINESTRING (-8234616.654942483 4976398.959353829, -8234620.56225661 4976391.655604036, -8234661.238398546 4976315.767468529, -8234666.937956474 4976305.142588775)"
781,East 49th Street,"LINESTRING (-8234438.977903227 4976300.440017745, -8234456.711098112 4976310.241941793, -8234474.9897585 4976320.323091325, -8234505.2018683 4976337.0907406295, -8234605.1333751865 4976392.581431172, -8234616.654942483 4976398.959353829)"
782,3rd Avenue,"LINESTRING (-8234438.977903227 4976300.440017745, -8234434.436068005 4976308.493172013, -8234392.6022033645 4976384.645772852, -8234388.17168763 4976393.022301268)"
783,2nd Avenue,"LINESTRING (-8234188.965458856 4976161.039205842, -8234193.429370436 4976152.868610642, -8234224.854862687 4976095.468902435, -8234234.6732417755 4976077.5701376675, -8234239.393188185 4976068.899976044)"
784,East 49th Street,"LINESTRING (-8234188.965458856 4976161.039205842, -8234204.527923669 4976169.709449229, -8234231.945914251 4976184.992608849, -8234313.643288543 4976230.504236356, -8234378.787454557 4976266.802005354, -8234422.947896554 4976291.4757479895, -8234438.977903227 4976300.440017745)"
785,East 49th Street,"LINESTRING (-8233736.796819202 4975909.6054944685, -8233761.676725395 4975923.477530587, -8233841.804494867 4975968.17971318, -8233856.331688416 4975976.276678717, -8233877.1039053975 4975987.73881926, -8233909.865231538 4976005.916626132, -8233920.073228844 4976011.677102301)"
786,East 82nd Street,"LINESTRING (-8233445.395788153 4979790.7965468485, -8233436.890979055 4979785.857084962, -8233279.841441445 4979698.431963172, -8233267.596297457 4979691.610866692)"
787,5th Avenue,"LINESTRING (-8233445.395788153 4979790.7965468485, -8233449.614796855 4979783.490260361, -8233492.127710387 4979706.5761234, -8233497.114823575 4979697.505822638)"
788,East 82nd Street,"LINESTRING (-8233267.596297457 4979691.610866692, -8233255.551528554 4979684.892679343, -8233110.324120865 4979604.598202705, -8233099.214435684 4979598.335790501)"
789,Madison Avenue,"LINESTRING (-8233267.596297457 4979691.610866692, -8233262.7205037605 4979700.416550327, -8233220.04061099 4979777.448244878, -8233215.8216022905 4979785.07794388)"
790,East 82nd Street,"LINESTRING (-8233078.943156411 4979587.339827615, -8233066.208206663 4979580.195398473, -8232919.611569237 4979498.7404554635, -8232908.368300667 4979492.242905799)"
791,Park Avenue,"LINESTRING (-8233078.943156411 4979587.339827615, -8233074.111890511 4979596.086615267, -8233031.565581129 4979672.911678363, -8233027.368836325 4979680.467792607)"
792,East 82nd Street,"LINESTRING (-8232908.368300667 4979492.242905799, -8232896.356927611 4979485.539555927, -8232745.274114706 4979401.307064829, -8232729.733913792 4979392.192947048)"
793,Lexington Avenue,"LINESTRING (-8232908.368300667 4979492.242905799, -8232912.676364961 4979484.495833004, -8232955.144750699 4979407.84865461, -8232960.109599988 4979398.91093304)"
794,3rd Avenue,"LINESTRING (-8232729.733913792 4979392.192947048, -8232724.55755747 4979401.556968178, -8232682.6346372375 4979477.454381281, -8232678.192989554 4979485.466054307)"
795,West 66th Street,"LINESTRING (-8235904.487867573 4979181.438695904, -8235920.840700769 4979193.566092782, -8235951.331109299 4979210.809072091, -8235987.899562024 4979230.918569792, -8236014.593975916 4979245.736120911, -8236057.641223005 4979269.844089425, -8236159.320445896 4979326.542149945, -8236184.935060727 4979340.668941163, -8236207.477257613 4979353.222839377, -8236221.837471926 4979361.10210926)"
796,Amsterdam Avenue,"LINESTRING (-8235904.487867573 4979181.438695904, -8235899.088872268 4979191.890306136, -8235858.891404143 4979263.64069184, -8235854.783714933 4979271.225889424)"
797,East 74th Street,"LINESTRING (-8233865.159324036 4979030.50163945, -8233855.6860353695 4979025.224470586, -8233700.79609588 4978938.923319753, -8233687.4377569845 4978931.470675663)"
798,5th Avenue,"LINESTRING (-8233865.159324036 4979030.50163945, -8233868.799471385 4979023.916203534, -8233912.291996438 4978945.273506188, -8233916.822699712 4978937.100581818)"
799,East 74th Street,"LINESTRING (-8233687.4377569845 4978931.470675663, -8233675.960717483 4978925.076399762, -8233531.790844958 4978844.758771216, -8233518.911179871 4978837.585486593)"
800,Madison Avenue,"LINESTRING (-8233687.4377569845 4978931.470675663, -8233682.695546676 4978940.069880888, -8233640.238292889 4979017.036779688, -8233635.98588834 4979024.709983522)"
801,East 74th Street,"LINESTRING (-8233499.085178562 4978826.531582901, -8233487.084937455 4978819.843389268, -8233340.421508335 4978738.130202145, -8233328.788621546 4978731.647857692)"
802,Park Avenue,"LINESTRING (-8233499.085178562 4978826.531582901, -8233494.142593171 4978835.468780662, -8233451.763263024 4978912.155565376, -8233447.366143139 4978920.122676254)"
803,East 74th Street,"LINESTRING (-8233328.788621546 4978731.647857692, -8233317.088943064 4978725.136119182, -8233165.649907789 4978640.748496573, -8233150.699700177 4978632.428836633)"
804,Lexington Avenue,"LINESTRING (-8233328.788621546 4978731.647857692, -8233332.751595419 4978724.445257789, -8233375.286772851 4978647.377771315, -8233379.828608076 4978639.146300027)"
805,East 74th Street,"LINESTRING (-8233150.699700177 4978632.428836633, -8233135.627041121 4978624.035688647, -8232915.526143926 4978501.402476803, -8232900.152922247 4978492.833055457)"
806,3rd Avenue,"LINESTRING (-8233150.699700177 4978632.428836633, -8233145.701455038 4978641.2923615165, -8233102.787791339 4978717.374955705, -8233097.822942047 4978726.179760954)"
807,East 74th Street,"LINESTRING (-8232900.152922247 4978492.833055457, -8232887.072882079 4978485.542438754, -8232652.789881756 4978355.017802536, -8232637.227416943 4978346.30152353)"
808,2nd Avenue,"LINESTRING (-8232900.152922247 4978492.833055457, -8232904.416458745 4978485.189667116, -8232947.408046089 4978408.226959404, -8232951.571395045 4978400.774720254)"
809,1st Avenue,"LINESTRING (-8232637.227416943 4978346.30152353, -8232631.795025791 4978356.120199254, -8232598.432574401 4978416.45823608, -8232589.938897253 4978431.818404856, -8232584.595561695 4978441.4754802715)"
810,West 35th Street,"LINESTRING (-8236544.0517380275 4975780.114514091, -8236558.846098353 4975788.358271384, -8236619.081074822 4975821.921162537, -8236636.680686316 4975831.7226065295, -8236809.314952639 4975927.91541071, -8236845.237752317 4975947.929981197, -8236860.3994669635 4975956.3649152545)"
811,7th Avenue,"LINESTRING (-8236494.369849285 4975872.6624773955, -8236499.423754168 4975863.228364161, -8236539.153680432 4975789.254651828, -8236544.0517380275 4975780.114514091)"
812,West 36th Street,"LINESTRING (-8236494.369849285 4975872.6624773955, -8236480.499440734 4975864.991749119, -8236281.14849662 4975754.7954955185, -8236270.105603134 4975748.550245656)"
813,West 37th Street,"LINESTRING (-8236444.854939781 4975961.772681686, -8236459.7606195975 4975970.075372388, -8236706.51140289 4976107.44551622, -8236745.985294326 4976129.414925684, -8236760.557015671 4976137.526720128)"
814,7th Avenue,"LINESTRING (-8236444.854939781 4975961.772681686, -8236449.151872125 4975954.043103411, -8236489.716694569 4975881.009177075, -8236494.369849285 4975872.6624773955)"
815,West 39th Street,"LINESTRING (-8236342.441008251 4976145.814864885, -8236356.868014258 4976153.382946469, -8236647.000003112 4976312.269927306, -8236660.146834975 4976319.603008872)"
816,7th Avenue,"LINESTRING (-8236342.441008251 4976145.814864885, -8236348.552448296 4976134.705225645, -8236388.404825999 4976063.3598937495, -8236395.3288983265 4976051.177601818)"
817,West 40th Street,"LINESTRING (-8236294.028161706 4976235.162687425, -8236280.881329843 4976227.770887552, -8236249.533761236 4976210.239265281, -8236195.655127692 4976180.128446801, -8236187.706916048 4976175.69045212, -8236183.766206075 4976173.427369514)"
818,7th Avenue,"LINESTRING (-8236294.028161706 4976235.162687425, -8236298.447545489 4976227.006725657, -8236337.153332438 4976155.513766613, -8236342.441008251 4976145.814864885)"
819,West 41st Street,"LINESTRING (-8236244.925134317 4976325.922101609, -8236254.9772843355 4976331.521115102, -8236355.921798585 4976387.761252757, -8236366.686393346 4976393.771780477, -8236544.363432601 4976492.762323962, -8236559.84797377 4976501.388774238)"
820,7th Avenue,"LINESTRING (-8236244.925134317 4976325.922101609, -8236249.155274967 4976318.104061891, -8236272.19840956 4976275.516429078, -8236289.586514022 4976243.3774377825, -8236294.028161706 4976235.162687425)"
821,West 43rd Street,"LINESTRING (-8236134.830157923 4976522.403838308, -8236146.819267081 4976529.002283834, -8236348.953198463 4976642.058302289, -8236436.672957208 4976691.113822977, -8236450.766004742 4976699.005641847)"
822,7th Avenue,"LINESTRING (-8236134.830157923 4976522.403838308, -8236140.340472716 4976512.719268201, -8236181.818114985 4976437.256368674, -8236189.476895953 4976423.368907339)"
823,7th Avenue,"LINESTRING (-8236085.1371372305 4976615.340929383, -8236090.090854572 4976606.067754879, -8236128.128724576 4976534.954114913, -8236134.830157923 4976522.403838308)"
824,West 44th Street,"LINESTRING (-8236085.1371372305 4976615.340929383, -8236072.647090364 4976608.53668162, -8236068.617324798 4976606.302890731, -8236053.489005999 4976597.926179448, -8236049.37018484 4976595.64830306, -8235865.837740369 4976493.261981862, -8235783.22754625 4976447.175996, -8235768.422053975 4976438.946378544)"
825,7th Avenue,"LINESTRING (-8235981.376239863 4976799.689350454, -8235987.1759853335 4976788.975766808, -8235999.710559997 4976765.902656744, -8236026.16007101 4976717.199468299, -8236031.915288683 4976706.60354425)"
826,West 46th Street,"LINESTRING (-8235981.376239863 4976799.689350454, -8235968.897324946 4976792.75270785, -8235892.131404094 4976749.736815916, -8235716.803206095 4976650.155826327, -8235682.071524968 4976630.845226546, -8235666.8096227795 4976622.365622111)"
827,West 47th Street,"LINESTRING (-8235930.158142149 4976891.659115616, -8235943.5276129935 4976899.418828604, -8235968.797137403 4976913.644985088, -8235987.788242534 4976923.3152561765)"
828,7th Avenue,"LINESTRING (-8235930.158142149 4976891.659115616, -8235936.436561431 4976880.622110225, -8235975.554230495 4976810.138412487, -8235981.376239863 4976799.689350454)"
829,7th Avenue,"LINESTRING (-8235880.576440949 4976982.5422013365, -8235885.129408122 4976974.223953618, -8235926.339883615 4976898.669310602, -8235930.158142149 4976891.659115616)"
830,West 48th Street,"LINESTRING (-8235880.576440949 4976982.5422013365, -8235867.173574259 4976975.002870507, -8235767.7652689805 4976919.0973708015, -8235751.81318595 4976910.279497849, -8235653.662790918 4976856.020361457, -8235581.115878766 4976815.884666554, -8235565.208323533 4976806.772960907)"
831,West 50th Street,"LINESTRING (-8235777.761759254 4977166.809370815, -8235765.23831654 4977159.843073882, -8235666.364344817 4977105.391493708, -8235617.072074293 4977078.173165787, -8235477.455168941 4977001.118667043, -8235462.415905734 4976992.771010362)"
832,7th Avenue,"LINESTRING (-8235777.761759254 4977166.809370815, -8235782.648684898 4977157.844306058, -8235801.906956807 4977122.48381939, -8235823.792368696 4977083.0671684025, -8235828.501183156 4977073.999303633)"
833,7th Avenue,"LINESTRING (-8235728.413828985 4977258.532743754, -8235732.822080819 4977250.331836702, -8235773.231055979 4977175.230660447, -8235777.761759254 4977166.809370815)"
834,West 51st Street,"LINESTRING (-8235728.413828985 4977258.532743754, -8235742.495744569 4977266.3662330825, -8235771.282964889 4977282.371261762, -8235807.138972873 4977302.315122079, -8235812.3932528375 4977305.239833094, -8235825.384237414 4977312.456083618)"
835,West 52nd Street,"LINESTRING (-8235677.21799517 4977350.933045031, -8235663.314190769 4977344.466318231, -8235659.607251726 4977342.746757508, -8235555.033722073 4977284.531722188, -8235548.688511099 4977280.872167054, -8235475.173119379 4977239.485486339, -8235377.267627226 4977183.960591398, -8235361.426863685 4977176.318227178)"
836,7th Avenue,"LINESTRING (-8235677.21799517 4977350.933045031, -8235679.923058796 4977346.097696634, -8235681.982469374 4977342.423421336, -8235722.480500124 4977269.261539357, -8235728.413828985 4977258.532743754)"
837,West 53rd Street,"LINESTRING (-8235627.157620159 4977441.6146421945, -8235641.907452688 4977449.801012573, -8235720.3876936985 4977493.36378828, -8235723.972181302 4977495.3332301, -8235739.122763999 4977502.9611465605)"
838,7th Avenue,"LINESTRING (-8235627.157620159 4977441.6146421945, -8235631.176253777 4977434.339507312, -8235646.182121136 4977407.193748817, -8235669.10280429 4977365.718350113, -8235672.520312657 4977359.530858881, -8235677.21799517 4977350.933045031)"
839,West 54th Street,"LINESTRING (-8235575.427452787 4977534.325320388, -8235562.3140167715 4977527.094208587, -8235509.570842034 4977497.434948299, -8235460.467814644 4977470.9063007, -8235452.497339104 4977466.629389742, -8235443.903474416 4977461.544130353, -8235413.324010294 4977443.922110351, -8235391.805952723 4977431.517638271, -8235382.221344568 4977425.991480425, -8235276.757258989 4977367.26154925, -8235274.697848409 4977366.115172724, -8235261.027814941 4977358.502060245)"
840,7th Avenue,"LINESTRING (-8235575.427452787 4977534.325320388, -8235580.292114535 4977525.62447107, -8235621.56938172 4977451.623472979, -8235627.157620159 4977441.6146421945)"
841,7th Avenue,"LINESTRING (-8235524.109167533 4977628.065705422, -8235527.927426065 4977620.8492217455, -8235528.8847736865 4977619.056124794, -8235552.840728106 4977575.492788547, -8235566.499629625 4977550.654131161, -8235570.184304772 4977543.952113716, -8235575.427452787 4977534.325320388)"
842,West 55th Street,"LINESTRING (-8235524.109167533 4977628.065705422, -8235539.170694636 4977636.928318944, -8235628.092703882 4977686.312183312, -8235652.571859907 4977700.862833825, -8235666.965470066 4977709.152305021)"
843,West 57th Street,"LINESTRING (-8235419.9363880465 4977817.342307294, -8235435.409797268 4977826.014020807, -8235450.972262081 4977834.744533376, -8235469.217526622 4977844.974234799, -8235513.533815906 4977869.828338496, -8235609.190654346 4977922.81438275, -8235613.031176778 4977925.121964578, -8235626.623286603 4977931.941827437)"
844,West 57th Street,"LINESTRING (-8235419.9363880465 4977817.342307294, -8235404.607694165 4977808.832277278, -8235294.04517591 4977747.380967999, -8235151.689811083 4977668.08715668, -8235119.373762905 4977650.097325032, -8235103.789034195 4977641.411070138)"
845,7th Avenue,"LINESTRING (-8235419.9363880465 4977817.342307294, -8235426.938384019 4977804.614009535, -8235448.846059806 4977764.81246491, -8235465.900205796 4977733.82969088, -8235466.623782486 4977732.521596794, -8235475.084063787 4977717.147830002)"
846,West 58th Street,"LINESTRING (-8235363.842496636 4977919.110494583, -8235350.12793537 4977911.364669508, -8235063.658357765 4977749.556228983, -8235049.153428113 4977741.36960739)"
847,7th Avenue,"LINESTRING (-8235363.842496636 4977919.110494583, -8235370.57732583 4977906.896492371, -8235382.176816771 4977885.834355962, -8235411.765537422 4977832.157714023, -8235419.9363880465 4977817.342307294)"
848,East 50th Street,"LINESTRING (-8235104.946756899 4976791.88562787, -8235090.597674536 4976784.096607781, -8235071.862604233 4976773.809232271, -8234937.7560136765 4976698.579454073, -8234925.343890454 4976691.143215216)"
849,5th Avenue,"LINESTRING (-8235104.946756899 4976791.88562787, -8235109.087841955 4976784.287659142, -8235126.809904889 4976751.750196453, -8235134.023407894 4976738.508920392, -8235150.843782952 4976707.617578093, -8235155.708444701 4976698.697023111)"
850,West 50th Street,"LINESTRING (-8236411.447960594 4977518.848983978, -8236397.2658574665 4977510.956502773, -8236265.029434353 4977437.499413717, -8236246.761905915 4977427.358322367, -8236226.891376808 4977416.291317299, -8236111.742495532 4977352.314573583, -8236107.178396408 4977349.771973312, -8236095.100231658 4977343.070093689)"
851,9th Avenue,"LINESTRING (-8236411.447960594 4977518.848983978, -8236416.2124348 4977510.236332551, -8236457.645549273 4977435.147855366, -8236462.5213429695 4977426.49118606)"
852,West 50th Street,"LINESTRING (-8236727.851349275 4977694.660432673, -8236715.149795377 4977687.590875974, -8236705.420471882 4977682.196851746, -8236442.795529202 4977536.265375686, -8236430.7396283485 4977529.578065492, -8236426.776654475 4977527.373458741, -8236411.447960594 4977518.848983978)"
853,10th Avenue,"LINESTRING (-8236727.851349275 4977694.660432673, -8236722.697256852 4977703.949338236, -8236681.119427042 4977778.848810917, -8236677.089661473 4977786.109504621)"
854,West 50th Street,"LINESTRING (-8237294.99075902 4978009.812064647, -8237271.713853496 4977996.818950585)"
855,12th Avenue,"LINESTRING (-8237294.99075902 4978009.812064647, -8237301.358233893 4977998.421041769, -8237346.0196135985 4977917.743583831)"
856,79th Street Transverse,"LINESTRING (-8233603.614180417 4979503.385765111, -8233618.107978119 4979511.706167032, -8233625.443932561 4979516.5719884, -8233633.937609709 4979522.628542858, -8233642.921092615 4979529.670027155, -8233652.561360519 4979537.711143824, -8233662.836149519 4979546.854798248, -8233675.404120029 4979559.070851519, -8233685.077783779 4979569.346460509, -8233694.8516350705 4979579.739684034, -8233703.300784423 4979588.515865836, -8233728.60370468 4979613.6684171725, -8233736.618708018 4979620.959876078, -8233746.036336938 4979629.442084115, -8233755.710000688 4979636.939362518, -8233764.726879441 4979643.054793868, -8233772.7975425245 4979647.920680683, -8233781.80328933 4979652.492558421, -8233790.4305498665 4979656.476415043, -8233799.4919564165 4979660.10745921, -8233809.143356267 4979663.253385208, -8233818.1936308695 4979665.825988996, -8233828.078801652 4979667.9575755065, -8233837.986236334 4979669.662845048, -8233849.697046764 4979670.70658776, -8233859.6156133935 4979670.941797402, -8233868.454380964 4979671.338713681, -8233877.994461323 4979672.220749922, -8233886.165311949 4979673.661409282, -8233893.645981731 4979675.601889574, -8233940.633938793 4979689.508676281, -8233965.191018463 4979696.800191813, -8233973.228285697 4979699.387505085, -8233982.824025804 4979702.974463254, -8233992.31957837 4979707.16414967, -8234001.3141932255 4979711.677252487, -8234010.587106807 4979716.866588271, -8234078.658975429 4979754.1769647, -8234134.697207094 4979784.9750384595, -8234145.884815919 4979791.384578193, -8234179.71480917 4979810.289804752, -8234229.0070796935 4979837.942072195, -8234245.649343568 4979847.380025099, -8234255.256215623 4979852.466526864, -8234265.519872674 4979857.112004781, -8234275.861453368 4979861.389962663, -8234321.135090274 4979878.722326667, -8234334.871915437 4979884.499788171, -8234344.27841241 4979888.792458983, -8234354.775840391 4979893.849580442, -8234365.173080832 4979899.553546161, -8234374.579577804 4979905.286917123, -8234384.976818245 4979912.078760928, -8234397.489129009 4979921.0316531565, -8234405.459604549 4979927.661797029, -8234445.334246153 4979963.032441067, -8234453.727735758 4979971.2650283, -8234461.854058587 4979979.424117138, -8234467.898706934 4979986.759952382, -8234472.062055893 4979992.625684328, -8234475.82465468 4979997.888674887, -8234479.320086691 4980003.84262014, -8234481.5019487105 4980009.370236761, -8234483.405512003 4980016.11804959, -8234484.830401486 4980022.615947831, -8234485.921332496 4980029.907712094, -8234486.555853594 4980038.199160332, -8234487.257166386 4980047.152168194, -8234487.001131555 4980055.69355116, -8234486.511325796 4980064.308447575, -8234485.164359958 4980072.2470960505, -8234483.060421582 4980082.023403503, -8234480.210642618 4980092.505380111, -8234462.611031123 4980152.016170262, -8234461.0080304565 4980157.911404151, -8234459.805779955 4980163.791940252, -8234458.859564284 4980169.510765007, -8234458.013536155 4980175.876453054, -8234457.757501325 4980181.595284887, -8234457.891084714 4980189.166494137, -8234458.525605812 4980194.576604535, -8234459.917099446 4980200.765892119, -8234461.642551553 4980206.087800493, -8234463.189892476 4980210.953967873, -8234465.616657375 4980216.114166141, -8234469.212276927 4980222.068244454, -8234472.963743768 4980227.434268762, -8234477.060301028 4980231.888806248, -8234480.377621855 4980235.167229524, -8234485.253415552 4980239.3865472, -8234490.0735495025 4980242.591465677, -8234494.47066939 4980245.399445575)"
857,5th Avenue,"LINESTRING (-8233603.614180417 4979503.385765111, -8233610.449197152 4979491.022778177, -8233622.516229953 4979469.207510037, -8233654.1532292375 4979412.008813985, -8233659.051286833 4979403.159289805)"
858,East 79th Street,"LINESTRING (-8233603.614180417 4979503.385765111, -8233594.185419546 4979498.005438316, -8233575.060731029 4979487.538800144, -8233539.249250841 4979467.987385293, -8233497.693684927 4979445.20195121, -8233472.446424416 4979431.486615553, -8233438.460583876 4979413.008428515, -8233427.172787509 4979406.687338351)"
859,West 51st Street,"LINESTRING (-8235053.183193679 4976884.76649694, -8235066.419081135 4976892.717257934, -8235176.291418548 4976953.207917614, -8235193.768578602 4976962.981103558, -8235202.184332106 4976967.7574761845, -8235357.441625917 4977053.908942793, -8235412.834204535 4977083.037774985)"
860,5th Avenue,"LINESTRING (-8235053.183193679 4976884.76649694, -8235058.5821889825 4976874.684764947, -8235100.850199636 4976799.557083918, -8235104.946756899 4976791.88562787)"
861,Madison Avenue,"LINESTRING (-8234874.203716383 4976783.670416293, -8234869.906784037 4976791.518221124, -8234828.818759985 4976866.836893309, -8234823.987494085 4976875.640030652)"
862,East 51st Street,"LINESTRING (-8234874.203716383 4976783.670416293, -8234887.840354004 4976791.444739775, -8234987.860916482 4976847.261330855, -8235039.99183402 4976876.654082041, -8235053.183193679 4976884.76649694)"
863,East 51st Street,"LINESTRING (-8234685.61736703 4976679.533288393, -8234705.098277918 4976690.3496248415)"
864,Park Avenue,"LINESTRING (-8234685.61736703 4976679.533288393, -8234681.131191551 4976687.689627946, -8234639.341854707 4976763.169158144, -8234637.672062345 4976766.181885139, -8234634.621908297 4976772.207341919)"
865,Lexington Avenue,"LINESTRING (-8234515.053643235 4976583.333083785, -8234519.050012955 4976575.456054301, -8234560.638974715 4976500.404153463, -8234565.6706157 4976491.2486545965)"
866,East 51st Street,"LINESTRING (-8234515.053643235 4976583.333083785, -8234527.120676039 4976590.049138196, -8234566.516643829 4976611.990240909, -8234623.122604899 4976644.4684539335, -8234670.823006703 4976671.053641699, -8234673.238639654 4976672.390985836, -8234685.61736703 4976679.533288393)"
867,3rd Avenue,"LINESTRING (-8234337.354340083 4976484.459189068, -8234322.437528317 4976511.293770833, -8234291.000904117 4976568.842881465, -8234285.468325424 4976579.071257343)"
868,East 51st Street,"LINESTRING (-8234337.354340083 4976484.459189068, -8234352.326811594 4976492.718236501, -8234416.647213374 4976528.532015854, -8234437.619805439 4976540.215242689, -8234503.520943989 4976576.910952924, -8234515.053643235 4976583.333083785)"
869,East 51st Street,"LINESTRING (-8234087.353027659 4976345.143925109, -8234102.937756371 4976353.535115267, -8234321.858666965 4976475.935624303, -8234337.354340083 4976484.459189068)"
870,2nd Avenue,"LINESTRING (-8234087.353027659 4976345.143925109, -8234091.905994833 4976336.885002427, -8234107.936001508 4976307.714308263, -8234122.808285478 4976280.630462134, -8234133.439296848 4976261.4969383925, -8234137.981132072 4976253.032349984)"
871,East 51st Street,"LINESTRING (-8233823.414514988 4976197.292630638, -8233839.489049459 4976206.300900145, -8234072.84809801 4976337.031958286, -8234076.599564849 4976339.118731717, -8234087.353027659 4976345.143925109)"
872,1st Avenue,"LINESTRING (-8233823.414514988 4976197.292630638, -8233818.126839176 4976206.859324957, -8233776.7159886 4976281.835493302, -8233771.973778292 4976290.417670792)"
873,East 51st Street,"LINESTRING (-8233673.444896992 4976114.6021010345, -8233667.188741609 4976111.192803304, -8233637.566625109 4976095.028045766)"
874,East 51st Street,"LINESTRING (-8233673.444896992 4976114.6021010345, -8233809.24354381 4976189.474693849, -8233823.414514988 4976197.292630638)"
875,East 51st Street,"LINESTRING (-8233637.566625109 4976095.028045766, -8233667.188741609 4976111.192803304, -8233673.444896992 4976114.6021010345)"
876,Sutton Place South,"LINESTRING (-8233423.143021942 4976338.266387586, -8233431.959525613 4976329.772341513, -8233467.759873854 4976266.640355071, -8233471.255305865 4976260.468255383, -8233472.580007805 4976258.484367026, -8233474.160744574 4976257.05890675, -8233476.119967611 4976256.1771788495, -8233478.090322598 4976255.751010394, -8233480.761990378 4976255.868574102, -8233484.36874188 4976256.632738256, -8233490.235279043 4976258.454976089, -8233512.766343981 4976268.080512227)"
877,Sutton Place South,"LINESTRING (-8233423.143021942 4976338.266387586, -8233416.118762074 4976344.570796797, -8233374.941682429 4976419.32758632, -8233369.854381699 4976428.13032043)"
878,East 55th Street,"LINESTRING (-8233369.854381699 4976428.13032043, -8233355.694542471 4976420.165241811, -8233324.591876743 4976402.692057038)"
879,Sutton Place South,"LINESTRING (-8233369.854381699 4976428.13032043, -8233374.941682429 4976419.32758632, -8233416.118762074 4976344.570796797, -8233423.143021942 4976338.266387586)"
880,East 55th Street,"LINESTRING (-8233369.854381699 4976428.13032043, -8233384.092144573 4976436.124797012, -8233604.103986176 4976559.760798065, -8233618.842686758 4976568.034605091)"
881,Sutton Place South,"LINESTRING (-8233369.854381699 4976428.13032043, -8233365.401602068 4976436.1835799515, -8233324.046411238 4976511.029245571, -8233319.270805083 4976519.670407837)"
882,East 56th Street,"LINESTRING (-8233319.270805083 4976519.670407837, -8233304.899458824 4976511.808125529, -8233269.488728801 4976492.027532978)"
883,Sutton Place South,"LINESTRING (-8233319.270805083 4976519.670407837, -8233324.046411238 4976511.029245571, -8233365.401602068 4976436.1835799515, -8233369.854381699 4976428.13032043)"
884,Sutton Place South,"LINESTRING (-8233319.270805083 4976519.670407837, -8233314.550858675 4976528.208706631, -8233271.392292093 4976606.332282714, -8233264.434823919 4976618.912059155)"
885,West 59th Street,"LINESTRING (-8235946.755878227 4978362.646390374, -8235960.414779748 4978370.127997723, -8236029.0321138725 4978407.756600947, -8236068.450345561 4978429.363715976, -8236217.406956192 4978511.030223306, -8236250.43544911 4978529.036339568, -8236261.378155055 4978535.004088281)"
886,9th Avenue,"LINESTRING (-8235946.755878227 4978362.646390374, -8235952.678075136 4978351.6812158935, -8235971.891819247 4978316.110627377, -8235990.760472937 4978281.201601376, -8235997.038892218 4978269.5897845905)"
887,West 59th Street,"LINESTRING (-8236261.378155055 4978535.004088281, -8236278.354377401 4978544.528975554, -8236402.130519213 4978614.069753467, -8236564.857350856 4978704.763078208, -8236579.306620762 4978712.81821487)"
888,Amsterdam Avenue,"LINESTRING (-8236261.378155055 4978535.004088281, -8236255.734256872 4978545.205125313, -8236240.027076721 4978573.618156384, -8236214.735288413 4978619.2879041005, -8236209.024598534 4978629.636019515)"
889,5th Avenue,"LINESTRING (-8234851.216241534 4977252.198350784, -8234856.526181244 4977242.748208354, -8234897.647601143 4977167.6176967295, -8234901.699630607 4977159.79898341)"
890,West 55th Street,"LINESTRING (-8234851.216241534 4977252.198350784, -8234863.895531535 4977259.311683312, -8235178.662523702 4977436.073781398, -8235194.269516311 4977444.833339962, -8235208.985952993 4977452.931529449)"
891,9th Avenue,"LINESTRING (-8236158.207250988 4977981.3271833295, -8236161.758342746 4977974.50728599, -8236163.361343413 4977971.582374581, -8236192.950064064 4977917.655396046, -8236204.338047974 4977895.373308138, -8236209.124786077 4977886.819116387)"
892,West 55th Street,"LINESTRING (-8236158.207250988 4977981.3271833295, -8236172.111055388 4977989.058365814, -8236459.638168159 4978148.768915098, -8236472.907451461 4978156.176867009)"
893,West 55th Street,"LINESTRING (-8236472.907451461 4978156.176867009, -8236488.180485599 4978164.599009635, -8236766.857698849 4978318.88865628, -8236774.58327151 4978323.474610483, -8236787.563124136 4978331.191365203)"
894,10th Avenue,"LINESTRING (-8236472.907451461 4978156.176867009, -8236468.677310811 4978164.09926624, -8236427.633814556 4978239.016965911, -8236423.247826617 4978247.189306148)"
895,Riverside Drive,"LINESTRING (-8235576.4627240505 4980856.191017635, -8235580.659468856 4980847.149053692, -8235584.934137301 4980839.253882267, -8235591.145764886 4980829.785565924, -8235597.457580015 4980821.12588712, -8235639.024277877 4980767.712452337)"
896,Riverside Drive,"LINESTRING (-8235576.4627240505 4980856.191017635, -8235572.310507045 4980864.791917936, -8235569.11563766 4980872.569490716, -8235565.152663787 4980883.052316002, -8235562.503259905 4980892.829435285, -8235560.377057632 4980901.562689961, -8235558.128403917 4980912.707157607, -8235556.480875454 4980923.028298621, -8235555.401076393 4980932.334977862, -8235553.553172847 4980949.463407556, -8235552.506769633 4980958.931839956)"
897,West 74th Street,"LINESTRING (-8235981.543219099 4980206.028994861, -8235974.51895923 4980203.191623478, -8235969.854672567 4980201.05992013, -8235965.44642073 4980199.031127032, -8235821.888805403 4980119.790914763, -8235808.129716341 4980111.602306109)"
898,Riverside Drive,"LINESTRING (-8235981.543219099 4980206.028994861, -8235984.281678572 4980197.443376207, -8236010.653265943 4980113.484068352, -8236014.05964236 4980103.0755754905)"
899,Riverside Drive,"LINESTRING (-8235981.543219099 4980206.028994861, -8235977.980995394 4980216.966848739, -8235947.523982714 4980311.629781468)"
900,West 76th Street,"LINESTRING (-8235912.892489127 4980414.1737515405, -8235901.938651234 4980408.1019423865, -8235717.8718732055 4980305.940276597, -8235704.958812275 4980298.618903111)"
901,Riverside Drive,"LINESTRING (-8235912.892489127 4980414.1737515405, -8235916.73301156 4980405.191003744, -8235919.716373912 4980397.354996456, -8235947.523982714 4980311.629781468)"
902,Riverside Drive,"LINESTRING (-8235912.892489127 4980414.1737515405, -8235908.428577548 4980422.627245149, -8235903.842214525 4980430.051623832, -8235898.176052445 4980438.328710089, -8235889.53765996 4980450.001912936, -8235849.284532088 4980503.090168929)"
903,Riverside Drive,"LINESTRING (-8235947.523982714 4980311.629781468, -8235977.980995394 4980216.966848739, -8235981.543219099 4980206.028994861)"
904,Riverside Drive,"LINESTRING (-8235947.523982714 4980311.629781468, -8235919.716373912 4980397.354996456, -8235916.73301156 4980405.191003744, -8235912.892489127 4980414.1737515405)"
905,Amsterdam Avenue,"LINESTRING (-8236007.937070366 4978994.649286485, -8236001.72544278 4979005.512285641, -8235962.9528641375 4979075.659033913, -8235956.095583503 4979087.771599714)"
906,West 65th Street,"LINESTRING (-8235956.095583503 4979087.771599714, -8235943.594404688 4979080.45113946, -8235908.3729178 4979060.415450002, -8235867.819227305 4979037.13117875, -8235863.444371316 4979034.632238796, -8235825.55121665 4979013.611769197, -8235806.849542197 4979003.248547338, -8235796.853051924 4978997.63330264, -8235696.442871228 4978942.216008501, -8235688.472395688 4978937.747359756, -8235673.2104935 4978929.177555548)"
907,Amsterdam Avenue,"LINESTRING (-8235956.095583503 4979087.771599714, -8235951.141866164 4979096.944232352, -8235933.686970007 4979128.401723831, -8235909.641959997 4979171.957287016, -8235904.487867573 4979181.438695904)"
908,West 68th Street,"LINESTRING (-8235803.9552354375 4979363.527632054, -8235792.044049921 4979356.98607196, -8235763.16777401 4979341.2275451915, -8235756.343889224 4979337.523119083, -8235751.022817564 4979334.641899748, -8235749.898490706 4979334.024495715, -8235733.523393613 4979325.116241871, -8235682.39435149 4979296.701024428, -8235667.755838451 4979288.307305554)"
909,Amsterdam Avenue,"LINESTRING (-8235803.9552354375 4979363.527632054, -8235799.034913943 4979372.333019859, -8235759.115744545 4979444.364036261, -8235754.306742543 4979453.595804936)"
910,West 70th Street,"LINESTRING (-8235701.942054072 4979547.075304488, -8235690.053132457 4979540.607123479, -8235674.90254976 4979532.169093783, -8235662.746461365 4979525.730323415)"
911,Amsterdam Avenue,"LINESTRING (-8235701.942054072 4979547.075304488, -8235695.151565135 4979558.409331998, -8235682.3609556435 4979581.871251752, -8235669.8597768275 4979605.347928379, -8235658.961598678 4979622.7533405945)"
912,West 74th Street,"LINESTRING (-8235489.31069471 4979933.997925423, -8235477.744599616 4979927.602993073, -8235188.881652958 4979767.90745432, -8235177.104050831 4979761.395024824)"
913,Amsterdam Avenue,"LINESTRING (-8235489.31069471 4979933.997925423, -8235484.390373217 4979943.641785349, -8235451.5733873295 4980005.180420685, -8235439.305979446 4980028.14357508)"
914,West 75th Street,"LINESTRING (-8235439.305979446 4980028.14357508, -8235449.65869209 4980033.759412349, -8235454.200527314 4980036.214504527, -8235539.727292091 4980082.493842605, -8235552.1394153135 4980089.094693641)"
915,Amsterdam Avenue,"LINESTRING (-8235439.305979446 4980028.14357508, -8235434.753012272 4980036.376217206, -8235391.906140265 4980113.92510643, -8235388.644479185 4980119.82031732)"
916,West 76th Street,"LINESTRING (-8235388.644479185 4980119.82031732, -8235375.809341897 4980112.734303664, -8235086.812811848 4979953.065139383, -8235072.018451522 4979944.891371554)"
917,Amsterdam Avenue,"LINESTRING (-8235388.644479185 4980119.82031732, -8235382.978317104 4980130.037711207, -8235347.779094116 4980193.694521113, -8235340.231632639 4980207.410927336, -8235335.110936063 4980216.555208855)"
918,West 79th Street,"LINESTRING (-8235229.769301924 4980409.160465743, -8235215.55380295 4980401.456770592, -8234989.419389352 4980275.184664246, -8234928.093481875 4980241.38594576, -8234914.890990266 4980233.902904723)"
919,Amsterdam Avenue,"LINESTRING (-8235229.769301924 4980409.160465743, -8235222.054861213 4980423.009490251, -8235178.028002605 4980501.046611224, -8235173.853521699 4980508.441645807)"
920,West 79th Street,"LINESTRING (-8235229.769301924 4980409.160465743, -8235244.1295162365 4980417.246411849, -8235392.5629252605 4980499.841059398, -8235405.086367975 4980506.809739085)"
921,West 81st Street,"LINESTRING (-8235121.332985944 4980602.7104501715, -8235136.483568641 4980611.193511046, -8235283.258317252 4980692.437202157, -8235296.995142415 4980699.949998908)"
922,Amsterdam Avenue,"LINESTRING (-8235121.332985944 4980602.7104501715, -8235116.579643687 4980611.296425173, -8235074.489744218 4980687.9824545635, -8235070.137152128 4980695.921610108)"
923,West 81st Street,"LINESTRING (-8235121.332985944 4980602.7104501715, -8235108.731619585 4980595.594682092, -8234890.333910598 4980474.068749245, -8234870.674888524 4980461.939762016, -8234820.224895298 4980434.153411704, -8234815.504948887 4980430.904325112, -8234811.653294506 4980427.243590835, -8234809.337849097 4980424.641382966)"
924,East 45th Street,"LINESTRING (-8234392.2682448905 4975793.163459323, -8234407.619202671 4975801.348448505, -8234601.1592693655 4975909.767138844, -8234626.640300808 4975924.300448605, -8234642.1471058745 4975932.926396977)"
925,2nd Avenue,"LINESTRING (-8234291.245806996 4975975.63009683, -8234295.019537735 4975968.79690451, -8234325.409758721 4975913.822944043, -8234331.254031987 4975903.095636851, -8234336.17435348 4975894.131731654, -8234340.693924807 4975885.946664746)"
926,East 47th Street,"LINESTRING (-8234291.245806996 4975975.63009683, -8234306.630160624 4975985.211269164, -8234344.478787495 4976004.182605908, -8234398.33515714 4976034.248796757, -8234443.096724388 4976063.212942007, -8234525.28390444 4976108.297840216, -8234540.924292896 4976116.879865269)"
927,2nd Avenue,"LINESTRING (-8234239.393188185 4976068.899976044, -8234243.92389146 4976060.7441530675, -8234285.768888049 4975985.490475248, -8234291.245806996 4975975.63009683)"
928,East 48th Street,"LINESTRING (-8234239.393188185 4976068.899976044, -8234228.873496305 4976062.96312405, -8234224.242605487 4976060.420859324, -8234046.59896208 4975962.786638225, -8234004.564722356 4975939.642004304, -8234001.503436359 4975938.304760462, -8233998.842900529 4975938.040250713, -8233989.224896526 4975938.583965206)"
929,2nd Avenue,"LINESTRING (-8234137.981132072 4976253.032349984, -8234142.634286788 4976244.626550696, -8234155.625271362 4976221.187340881, -8234183.95608177 4976170.076832593, -8234188.965458856 4976161.039205842)"
930,East 50th Street,"LINESTRING (-8234137.981132072 4976253.032349984, -8234127.238801211 4976247.007213396, -8234123.899216486 4976245.126195906, -8233890.306397005 4976114.190634005, -8233886.3100272855 4976111.95695614, -8233872.60659797 4976104.3301257)"
931,2nd Avenue,"LINESTRING (-8234037.582083325 4976439.475425172, -8234042.524668717 4976430.114243237, -8234082.321386675 4976354.255200224, -8234087.353027659 4976345.143925109)"
932,East 52nd Street,"LINESTRING (-8234037.582083325 4976439.475425172, -8234021.140194534 4976430.62859366, -8233793.514099762 4976303.5701663345, -8233787.892465477 4976300.440017745, -8233771.973778292 4976290.417670792)"
933,East 54th Street,"LINESTRING (-8233935.60229781 4976621.013588808, -8233920.852465279 4976612.827912918, -8233687.081534615 4976484.606147144, -8233669.927201084 4976475.200834585)"
934,2nd Avenue,"LINESTRING (-8233935.60229781 4976621.013588808, -8233939.799042613 4976613.41575297, -8233951.153630674 4976592.958940008, -8233982.423275637 4976538.642782414, -8233987.287937385 4976530.163258007)"
935,East 55th Street,"LINESTRING (-8233885.018721193 4976716.22952193, -8233899.234220168 4976724.327107445, -8233981.989129623 4976769.738373811, -8233995.514447755 4976777.248153737, -8234004.687173796 4976782.347753178, -8234050.962686119 4976808.066234739, -8234117.498345764 4976844.9686999805, -8234134.329852774 4976854.359672167)"
936,2nd Avenue,"LINESTRING (-8233885.018721193 4976716.22952193, -8233891.408459966 4976704.237465691, -8233921.82094485 4976647.113743007, -8233931.1161223315 4976629.992856963, -8233935.60229781 4976621.013588808)"
937,2nd Avenue,"LINESTRING (-8233834.724575253 4976807.066886763, -8233840.034514965 4976797.587782365, -8233881.100275118 4976723.313071869, -8233885.018721193 4976716.22952193)"
938,East 56th Street,"LINESTRING (-8233834.724575253 4976807.066886763, -8233818.638908833 4976798.175633532, -8233787.269076327 4976780.525417627, -8233728.659364426 4976747.502992742, -8233585.858721636 4976667.982159703, -8233569.004950729 4976658.591366673)"
939,East 58th Street,"LINESTRING (-8233724.184320896 4977004.675241246, -8233708.766571419 4976996.077739707)"
940,2nd Avenue,"LINESTRING (-8233724.184320896 4977004.675241246, -8233728.926531204 4976996.312884948, -8233740.058480283 4976976.692973403, -8233772.61943134 4976919.288424804, -8233780.434059593 4976905.503153324)"
941,East 62nd Street,"LINESTRING (-8233521.5605837535 4977373.008131035, -8233507.378480626 4977365.11576766, -8233420.103999844 4977316.071559407, -8233411.777301933 4977311.236228266)"
942,2nd Avenue,"LINESTRING (-8233521.5605837535 4977373.008131035, -8233526.636752534 4977363.734237296, -8233567.401950061 4977289.249463963, -8233572.277743758 4977280.34307486)"
943,East 65th Street,"LINESTRING (-8233368.897034079 4977646.95204741, -8233354.703799004 4977640.014803152, -8233119.519110805 4977509.766017334, -8233104.335132261 4977501.550202027)"
944,2nd Avenue,"LINESTRING (-8233368.897034079 4977646.95204741, -8233373.049251085 4977639.279925872, -8233400.545165312 4977589.073240947, -8233413.725393022 4977564.998815533, -8233419.035332733 4977555.313211788)"
945,East 66th Street,"LINESTRING (-8233316.899699929 4977739.576488315, -8233332.016886778 4977747.939480908, -8233339.931702574 4977752.290003611, -8233358.822620162 4977762.651898257)"
946,2nd Avenue,"LINESTRING (-8233316.899699929 4977739.576488315, -8233321.719833881 4977730.684386296, -8233324.591876743 4977725.554896415)"
947,2nd Avenue,"LINESTRING (-8233165.371609061 4978015.8382885745, -8233169.746465052 4978007.622047604, -8233201.862138145 4977947.315932298, -8233210.188836056 4977932.147599234, -8233214.97557416 4977923.299415827)"
948,East 69th Street,"LINESTRING (-8233165.371609061 4978015.8382885745, -8233179.408996851 4978023.6576871155, -8233330.035399844 4978107.496143024, -8233398.931032697 4978145.8292531995, -8233413.948032004 4978154.192593625)"
949,East 71st Street,"LINESTRING (-8233064.382567014 4978202.065138754, -8233076.750162442 4978208.81170297, -8233212.994087224 4978284.788038718, -8233252.557034251 4978306.6594556, -8233296.58389286 4978331.000283584, -8233312.79201072 4978340.1134111155)"
950,2nd Avenue,"LINESTRING (-8233064.382567014 4978202.065138754, -8233069.314020458 4978192.908044889, -8233100.127255509 4978136.848591578, -8233111.34826018 4978117.285182163, -8233116.112734387 4978108.348641539)"
951,East 76th Street,"LINESTRING (-8232798.918977319 4978682.30280523, -8232787.6645768015 4978675.8939933535, -8232782.388032937 4978672.924774598, -8232549.374074809 4978541.456904416, -8232533.845005843 4978533.093232385)"
952,2nd Avenue,"LINESTRING (-8232798.918977319 4978682.30280523, -8232803.705715423 4978673.8802161785, -8232843.892051601 4978595.63720989, -8232848.25577564 4978587.729159594)"
953,East 77th Street,"LINESTRING (-8232747.222205795 4978775.4662380805, -8232758.777168941 4978782.080905, -8232980.614650194 4978905.276220253, -8232995.553725856 4978913.684309396)"
954,2nd Avenue,"LINESTRING (-8232747.222205795 4978775.4662380805, -8232751.964416103 4978766.67608764, -8232771.389667247 4978731.677256069, -8232784.436311568 4978708.026289704, -8232794.532989382 4978690.063940837, -8232798.918977319 4978682.30280523)"
955,2nd Avenue,"LINESTRING (-8232640.6337933615 4978968.675154804, -8232648.748984239 4978953.946221184, -8232666.548970817 4978921.342732553, -8232683.035387404 4978891.973226869, -8232692.0856620055 4978875.862664665, -8232696.861268161 4978867.337012938)"
956,East 79th Street,"LINESTRING (-8232640.6337933615 4978968.675154804, -8232653.023652687 4978975.187055693, -8232722.342299603 4979013.49417229, -8232819.067805153 4979067.544799207, -8232872.968702596 4979097.679219316, -8232888.074757496 4979106.102173856)"
957,East 81st Street,"LINESTRING (-8232532.698415087 4979161.549797625, -8232545.934302543 4979168.620421271, -8232767.359901681 4979289.836108455, -8232781.909359127 4979297.803527444)"
958,2nd Avenue,"LINESTRING (-8232532.698415087 4979161.549797625, -8232537.12893082 4979153.2884933185, -8232570.5804378055 4979092.85770585, -8232579.697504101 4979076.379319565, -8232585.063103557 4979066.6775172725)"
959,West 81st Street,"LINESTRING (-8234809.337849097 4980424.641382966, -8234805.998264374 4980421.627527262, -8234800.487949579 4980417.231710123, -8234795.211405716 4980413.335753442, -8234745.240086299 4980385.152596127, -8234646.878184234 4980330.66832963, -8234599.16665048 4980304.102581933, -8234554.093388657 4980278.845341517, -8234540.300903749 4980271.082943151, -8234508.552584974 4980253.264733879, -8234501.071915192 4980249.265932304, -8234494.47066939 4980245.399445575)"
960,Columbus Avenue,"LINESTRING (-8234809.337849097 4980424.641382966, -8234815.460421091 4980414.467785978, -8234854.678277697 4980343.267605465, -8234860.077273001 4980333.535141255)"
961,Columbus Avenue,"LINESTRING (-8235745.4345791275 4978728.458134223, -8235749.286233508 4978722.225682155, -8235778.195905267 4978669.279398351, -8235788.91597223 4978649.406242091, -8235795.6730653215 4978636.882646639)"
962,West 68th Street,"LINESTRING (-8235490.691056395 4979189.244327804, -8235475.573869546 4979180.836001422, -8235250.318879926 4979055.549855903, -8235188.670145924 4979021.255571088, -8235174.866529066 4979013.552970743)"
963,Columbus Avenue,"LINESTRING (-8235490.691056395 4979189.244327804, -8235494.821009503 4979181.87969189, -8235537.089020159 4979106.499067182, -8235542.076133345 4979097.605720617)"
964,West 69th Street,"LINESTRING (-8235439.539750376 4979281.163095173, -8235453.810909095 4979289.159907143, -8235629.395141924 4979387.562390467, -8235642.363862602 4979394.63317775)"
965,Columbus Avenue,"LINESTRING (-8235439.539750376 4979281.163095173, -8235443.447064502 4979274.062990035, -8235476.931967333 4979213.146358075, -8235485.592623717 4979198.402355859, -8235490.691056395 4979189.244327804)"
966,Columbus Avenue,"LINESTRING (-8235388.410708254 4979373.700134205, -8235392.618585006 4979366.08545674, -8235434.40792185 4979290.453509693, -8235439.539750376 4979281.163095173)"
967,West 70th Street,"LINESTRING (-8235388.410708254 4979373.700134205, -8235374.551431651 4979366.026656166, -8235086.05583931 4979206.1639016075, -8235073.042590838 4979198.872752395)"
968,West 72nd Street,"LINESTRING (-8235282.28983768 4979565.862454532, -8235267.039067442 4979557.38030172, -8235055.843729509 4979439.909858, -8235018.22887357 4979418.991417628, -8235007.408619066 4979412.979028086, -8234979.812517298 4979398.087722255, -8234966.532102046 4979390.9581317445)"
969,West 72nd Street,"LINESTRING (-8235282.28983768 4979565.862454532, -8235296.1045864895 4979573.550790051, -8235583.743018751 4979733.404858106, -8235595.153266557 4979740.005473176)"
970,Columbus Avenue,"LINESTRING (-8235282.28983768 4979565.862454532, -8235289.703715769 4979552.514460016, -8235312.53534333 4979511.397459413, -8235332.984733788 4979474.57312066, -8235338.272409601 4979465.062026588)"
971,Columbus Avenue,"LINESTRING (-8235177.104050831 4979761.395024824, -8235181.890788936 4979752.456979673, -8235223.268243662 4979675.146170683, -8235227.643099652 4979666.972635474)"
972,West 74th Street,"LINESTRING (-8235177.104050831 4979761.395024824, -8235159.526703235 4979751.604337636, -8234872.433736478 4979591.602966837, -8234859.253508768 4979584.267428433)"
973,West 75th Street,"LINESTRING (-8235124.783890157 4979853.275075077, -8235137.32959677 4979860.257994244, -8235426.604425545 4980021.087030209, -8235439.305979446 4980028.14357508)"
974,Columbus Avenue,"LINESTRING (-8235124.783890157 4979853.275075077, -8235128.880447419 4979846.659682579, -8235164.235517695 4979783.710771944, -8235172.706930945 4979769.010010533, -8235177.104050831 4979761.395024824)"
975,Columbus Avenue,"LINESTRING (-8235072.018451522 4979944.891371554, -8235075.992557343 4979937.996597895, -8235119.8635686645 4979861.963297367, -8235124.783890157 4979853.275075077)"
976,West 76th Street,"LINESTRING (-8235072.018451522 4979944.891371554, -8235059.33916152 4979937.937793876, -8234770.075464696 4979778.49199911, -8234756.95089673 4979771.229824088)"
977,Columbus Avenue,"LINESTRING (-8234914.890990266 4980233.902904723, -8234922.4050558945 4980220.348177014, -8234966.320595015 4980141.298908798, -8234970.47281202 4980133.815944461)"
978,West 79th Street,"LINESTRING (-8234914.890990266 4980233.902904723, -8234928.093481875 4980241.38594576, -8234989.419389352 4980275.184664246, -8235215.55380295 4980401.456770592, -8235229.769301924 4980409.160465743)"
979,West 85th Street,"LINESTRING (-8234603.207547995 4980800.792579816, -8234615.4081641855 4980807.585046526, -8234902.823957466 4980967.606343538, -8234916.026449073 4980974.957623791)"
980,Columbus Avenue,"LINESTRING (-8234603.207547995 4980800.792579816, -8234607.304105256 4980793.029766502, -8234639.876188263 4980731.324441556, -8234648.3476015115 4980716.357614259, -8234653.345846648 4980707.477503603)"
981,West 86th Street,"LINESTRING (-8234545.532919815 4980900.812864758, -8234530.961198471 4980892.755923074, -8234460.262189867 4980853.147623958, -8234356.11167428 4980795.8232024, -8234286.97113855 4980757.376773262, -8234242.565793673 4980732.280084549, -8234229.752920281 4980724.340899442)"
982,Columbus Avenue,"LINESTRING (-8234545.532919815 4980900.812864758, -8234553.414339764 4980887.12488931, -8234597.764024895 4980810.143249499, -8234603.207547995 4980800.792579816)"
983,East 48th Street,"LINESTRING (-8235205.635236322 4976606.596810556, -8235193.445752079 4976599.792568884, -8235039.245993432 4976513.365885632, -8235027.646502492 4976506.767450667)"
984,5th Avenue,"LINESTRING (-8235205.635236322 4976606.596810556, -8235210.154807647 4976598.264186956, -8235250.953401023 4976523.006368784, -8235255.305993114 4976514.967733546)"
985,West 48th Street,"LINESTRING (-8236513.438878059 4977334.031381741, -8236500.036011368 4977326.550567935, -8236300.50695607 4977215.691163707, -8236214.0451075705 4977167.661787235, -8236209.425348703 4977165.089841362, -8236197.135676919 4977158.241120227)"
986,9th Avenue,"LINESTRING (-8236513.438878059 4977334.031381741, -8236517.4575116765 4977326.741629907, -8236559.013077589 4977251.434108756, -8236564.3230173 4977241.822300643)"
987,West 48th Street,"LINESTRING (-8236829.764343097 4977509.677833232, -8236816.216761068 4977502.005819511, -8236527.943807709 4977342.114782275, -8236513.438878059 4977334.031381741)"
988,10th Avenue,"LINESTRING (-8236829.764343097 4977509.677833232, -8236824.3096880475 4977519.245812813, -8236783.522226622 4977593.423692897, -8236778.646432926 4977602.24218252)"
989,West 48th Street,"LINESTRING (-8237397.204315466 4977825.49959691, -8237373.148173505 4977812.683101687)"
990,12th Avenue,"LINESTRING (-8237397.204315466 4977825.49959691, -8237404.106123895 4977812.418541182, -8237409.126632932 4977803.232417013)"
991,East 44th Street,"LINESTRING (-8235409.572543454 4976239.189236827, -8235395.958169729 4976231.577002494, -8235242.381800233 4976145.653216605, -8235229.969677009 4976138.702343069)"
992,5th Avenue,"LINESTRING (-8235409.572543454 4976239.189236827, -8235414.014191138 4976231.033271696, -8235455.0576873915 4976156.63061046, -8235459.577258718 4976148.474714249)"
993,West 44th Street,"LINESTRING (-8236716.541289011 4976965.979195643, -8236701.858248175 4976957.822623744, -8236470.736721391 4976829.346492384, -8236416.546393272 4976799.233765723, -8236400.3160115145 4976790.210253214)"
994,9th Avenue,"LINESTRING (-8236716.541289011 4976965.979195643, -8236721.049728388 4976957.807927224, -8236762.193412185 4976883.238070429, -8236767.180525373 4976874.199783933)"
995,West 44th Street,"LINESTRING (-8237032.944677693 4977141.810087805, -8237019.352567867 4977134.608660123, -8236732.1705455175 4976974.664849963, -8236716.541289011 4976965.979195643)"
996,10th Avenue,"LINESTRING (-8237032.944677693 4977141.810087805, -8237027.267383662 4977152.112547656, -8236986.557845879 4977225.743853783, -8236982.06053845 4977233.94474019)"
997,West 44th Street,"LINESTRING (-8237617.360872408 4977469.583544534, -8237610.8152863495 4977464.748137406, -8237604.52573512 4977460.412440039, -8237595.865078736 4977455.47415657)"
998,12th Avenue,"LINESTRING (-8237617.360872408 4977469.583544534, -8237630.440912575 4977457.326012581, -8237688.393839483 4977404.592345495, -8237699.147302295 4977393.187331192)"
999,Madison Avenue,"LINESTRING (-8234620.896215081 4977243.350783259, -8234573.3071327675 4977329.916198584, -8234566.03797002 4977343.128882087)"
1000,East 56th Street,"LINESTRING (-8234620.896215081 4977243.350783259, -8234561.607454286 4977211.120426465, -8234546.957809296 4977203.066528103, -8234522.2448823415 4977189.471915458, -8234489.049410187 4977171.218422072, -8234462.967253493 4977156.815528661, -8234450.989276285 4977150.216659078)"
1001,East 56th Street,"LINESTRING (-8234431.853455817 4977139.590871769, -8234419.1073741205 4977132.301265031, -8234272.789035422 4977049.793877638, -8234260.84445406 4977043.062810515)"
1002,Park Avenue,"LINESTRING (-8234431.853455817 4977139.590871769, -8234427.378412287 4977147.6447177995, -8234385.399832309 4977223.377649487, -8234377.429356768 4977237.751247154)"
1003,East 56th Street,"LINESTRING (-8234260.84445406 4977043.062810515, -8234250.358158027 4977037.272332901, -8234097.405177678 4976952.91398736, -8234087.163784525 4976947.329314236)"
1004,Lexington Avenue,"LINESTRING (-8234260.84445406 4977043.062810515, -8234265.297233692 4977034.979657435, -8234306.329597998 4976960.62965943, -8234310.748981784 4976952.575967581)"
1005,East 56th Street,"LINESTRING (-8234087.163784525 4976947.329314236, -8234074.384306981 4976940.333780825)"
1006,3rd Avenue,"LINESTRING (-8234087.163784525 4976947.329314236, -8234083.044963365 4976954.92740977, -8234040.788084661 4977031.819881231, -8234032.862136915 4977046.29607362)"
1007,1st Avenue,"LINESTRING (-8233569.004950729 4976658.591366673, -8233564.351796015 4976667.688238031, -8233550.960061272 4976692.627523309, -8233523.04113298 4976742.947170746, -8233514.848018458 4976757.937302738)"
1008,East 56th Street,"LINESTRING (-8233569.004950729 4976658.591366673, -8233554.566812772 4976650.64079622, -8233533.672144351 4976638.869261089, -8233333.619887448 4976527.723742816, -8233319.270805083 4976519.670407837)"
1009,East 56th Street,"LINESTRING (-8233269.488728801 4976492.027532978, -8233304.899458824 4976511.808125529, -8233319.270805083 4976519.670407837)"
1010,Vanderbilt Avenue,"LINESTRING (-8235130.093829869 4976082.831019146, -8235124.995397191 4976092.1183922505, -8235096.597795091 4976143.816304512, -8235083.684734157 4976167.475758672, -8235079.17629478 4976175.734538148)"
1011,Vanderbilt Avenue,"LINESTRING (-8235130.093829869 4976082.831019146, -8235134.457553907 4976074.719270115, -8235172.0390139995 4976004.887970029, -8235173.196736704 4976002.742487651, -8235178.996482175 4975991.970997631)"
1012,Vanderbilt Avenue,"LINESTRING (-8235079.17629478 4976175.734538148, -8235074.2782371845 4976184.698701709, -8235033.023233898 4976259.939218448, -8235027.846877576 4976269.417801204)"
1013,Vanderbilt Avenue,"LINESTRING (-8235079.17629478 4976175.734538148, -8235083.684734157 4976167.475758672, -8235096.597795091 4976143.816304512, -8235124.995397191 4976092.1183922505, -8235130.093829869 4976082.831019146)"
1014,East 45th Street,"LINESTRING (-8235079.17629478 4976175.734538148, -8235088.571659802 4976181.03955854, -8235166.528699205 4976225.008148676, -8235178.506676416 4976232.179515033)"
1015,Vanderbilt Avenue,"LINESTRING (-8234977.842162311 4976359.560317552, -8234982.127962707 4976351.874511391, -8235023.716924468 4976276.8537190715, -8235027.846877576 4976269.417801204)"
1016,East 47th Street,"LINESTRING (-8234977.842162311 4976359.560317552, -8235066.519268678 4976409.64311839, -8235077.985176229 4976416.123922119)"
1017,West 37th Street,"LINESTRING (-8237393.742279303 4976488.6327993525, -8237408.5589035265 4976499.845711875, -8237521.57045058 4976562.215017181, -8237574.035326591 4976590.916200261)"
1018,10th Avenue,"LINESTRING (-8237393.742279303 4976488.6327993525, -8237387.063109856 4976500.727461767, -8237347.566954521 4976572.237642962, -8237343.22549438 4976580.114669852)"
1019,Madison Avenue,"LINESTRING (-8235178.506676416 4976232.179515033, -8235174.198612122 4976239.953399674, -8235136.416776946 4976308.008219105, -8235132.887949088 4976314.356695447, -8235127.355370396 4976324.320284691)"
1020,East 45th Street,"LINESTRING (-8235178.506676416 4976232.179515033, -8235191.3863415 4976239.674186319, -8235345.307801419 4976324.011677791, -8235359.100286328 4976331.859113394)"
1021,East 45th Street,"LINESTRING (-8234820.146971653 4976031.133429576, -8234830.210253621 4976036.7616644045, -8234933.759643958 4976094.763531774, -8234939.603917223 4976098.040566735, -8234958.338987524 4976108.224364006, -8234999.738706151 4976131.531045325, -8235070.871860767 4976171.017334069, -8235079.17629478 4976175.734538148)"
1022,Lexington Avenue,"LINESTRING (-8234820.146971653 4976031.133429576, -8234824.955973655 4976022.404528711, -8234866.8788938895 4975946.078411281, -8234870.686020475 4975939.142374715)"
1023,East 45th Street,"LINESTRING (-8234642.1471058745 4975932.926396977, -8234657.33108442 4975941.302538118, -8234809.1374740135 4976025.064344478, -8234820.146971653 4976031.133429576)"
1024,3rd Avenue,"LINESTRING (-8234642.1471058745 4975932.926396977, -8234638.061680563 4975940.685348526, -8234596.238947872 4976015.894595936, -8234591.140515194 4976025.181905413)"
1025,East 94th Street,"LINESTRING (-8232824.08831419 4980916.16223921, -8232813.368247224 4980910.104820357, -8232657.610015707 4980823.404749219, -8232645.609774599 4980816.788699435)"
1026,5th Avenue,"LINESTRING (-8232824.08831419 4980916.16223921, -8232828.674677209 4980907.870045418, -8232870.174583375 4980832.9171664305, -8232874.72755055 4980824.698555034)"
1027,Madison Avenue,"LINESTRING (-8232645.609774599 4980816.788699435, -8232640.945487935 4980825.271946302, -8232598.978039907 4980901.121616305, -8232594.280357394 4980909.325589564)"
1028,East 90th Street,"LINESTRING (-8233028.871649452 4980546.534248661, -8233018.240638082 4980541.241558557, -8232862.88315673 4980454.882903652, -8232849.780852663 4980447.487909632)"
1029,5th Avenue,"LINESTRING (-8233028.871649452 4980546.534248661, -8233034.025741875 4980537.095619977, -8233073.911515426 4980462.527833777, -8233077.8076976035 4980454.76528939)"
1030,Madison Avenue,"LINESTRING (-8232849.780852663 4980447.487909632, -8232844.726947781 4980456.588310623, -8232802.770631702 4980532.479222356, -8232797.805782411 4980541.432683427)"
1031,East 90th Street,"LINESTRING (-8232849.780852663 4980447.487909632, -8232838.426264603 4980441.269062135, -8232692.953954034 4980360.777244501, -8232681.27653945 4980354.132104914)"
1032,Park Avenue,"LINESTRING (-8232661.261295006 4980342.885363484, -8232656.029278939 4980352.117981641, -8232614.674088108 4980427.390608249, -8232609.664711023 4980436.564499287)"
1033,9th Avenue,"LINESTRING (-8237285.873692724 4975938.245980518, -8237291.651174297 4975927.621511301, -8237382.933156747 4975766.125123693, -8237388.0649852725 4975756.808671031)"
1034,West 33rd Street,"LINESTRING (-8237285.873692724 4975938.245980518, -8237300.5678655105 4975946.01963129, -8237352.631991353 4975974.204677823, -8237435.6874634335 4976020.376603364, -8237452.1070883265 4976029.3553195065, -8237463.528468082 4976035.615443992, -8237470.79763083 4976039.583130604, -8237475.406257749 4976042.110694766)"
1035,9th Avenue,"LINESTRING (-8237179.541315119 4976134.631749236, -8237184.506164408 4976125.652936345, -8237209.107771873 4976081.03820447, -8237225.560792613 4976049.913818483, -8237232.384677399 4976037.129042769)"
1036,West 35th Street,"LINESTRING (-8237179.541315119 4976134.631749236, -8237191.875514699 4976141.7001822125, -8237248.726378646 4976173.442064854, -8237299.866552716 4976202.5388812, -8237314.983739567 4976210.518477795)"
1037,9th Avenue,"LINESTRING (-8237128.312085455 4976224.978757841, -8237133.855796097 4976215.573695215, -8237159.158716355 4976170.752818021, -8237162.95471099 4976164.022356513, -8237165.01412157 4976160.37791641, -8237174.364958797 4976143.816304512, -8237179.541315119 4976134.631749236)"
1038,West 36th Street,"LINESTRING (-8237128.312085455 4976224.978757841, -8237111.803404971 4976215.441436587, -8237046.291884639 4976178.071098021, -8237023.304409789 4976165.344935919, -8236853.286151501 4976071.2659007395, -8236825.612126091 4976055.953528691, -8236822.383860857 4976054.160718945, -8236810.216640513 4976047.430337753)"
1039,West 39th Street,"LINESTRING (-8236976.3832444195 4976496.304017276, -8236991.533827119 4976504.651249752, -8237046.9598015845 4976535.1892490545, -8237093.636064073 4976560.921775893, -8237142.137966212 4976588.667717435, -8237199.445240073 4976621.425077185, -8237276.311348465 4976665.366257139, -8237292.441542681 4976672.170544482)"
1040,9th Avenue,"LINESTRING (-8236976.3832444195 4976496.304017276, -8236981.192246423 4976487.618788241, -8237011.137189448 4976433.52365226, -8237022.001971748 4976413.9048709255, -8237026.989084936 4976404.896409997)"
1041,West 40th Street,"LINESTRING (-8236927.480592116 4976587.594912088, -8236914.9571494 4976580.61433222, -8236913.120377803 4976579.585615608, -8236883.698636386 4976563.25842789, -8236776.164008279 4976503.549061957, -8236626.628536298 4976420.370981769, -8236610.14211971 4976410.510164445)"
1042,9th Avenue,"LINESTRING (-8236927.480592116 4976587.594912088, -8236932.322989965 4976578.850818095, -8236955.510839897 4976535.409687319, -8236971.830277247 4976504.842295649, -8236976.3832444195 4976496.304017276)"
1043,West 41st Street,"LINESTRING (-8236871.186325621 4976688.46852199, -8236883.687504439 4976701.445199808, -8236968.8691787915 4976749.633942468, -8236993.2815431245 4976760.612014982, -8237001.730692475 4976763.5218675975, -8237018.272768806 4976766.387632383)"
1044,9th Avenue,"LINESTRING (-8236871.186325621 4976688.46852199, -8236879.869245903 4976671.7149657, -8236913.910746188 4976611.652232924, -8236922.482346979 4976596.559453551, -8236927.480592116 4976587.594912088)"
1045,West 43rd Street,"LINESTRING (-8236767.180525373 4976874.199783933, -8236783.466566876 4976883.076409946, -8237012.90716935 4977012.523223614, -8237068.923137117 4977044.062182633, -8237082.604302537 4977051.792623354)"
1046,9th Avenue,"LINESTRING (-8236767.180525373 4976874.199783933, -8236772.4682011865 4976865.029238375, -8236790.435167 4976833.579035343, -8236814.936586923 4976790.7687114, -8236823.652903054 4976775.558085344)"
1047,9th Avenue,"LINESTRING (-8236614.505843751 4977150.907409138, -8236618.446553725 4977143.764761949, -8236660.881543614 4977066.827319309, -8236665.679413668 4977058.126886376)"
1048,West 46th Street,"LINESTRING (-8236614.505843751 4977150.907409138, -8236600.657699095 4977143.603097155, -8236458.357994014 4977064.064343145, -8236423.2812224645 4977044.429598878, -8236420.3757837545 4977042.812967502, -8236314.4218924185 4976983.512174147, -8236310.6481616795 4976981.381173403, -8236298.525469133 4976974.591367237)"
1049,West 47th Street,"LINESTRING (-8236564.3230173 4977241.822300643, -8236580.163780841 4977250.831533351, -8236868.4144703 4977411.073809299, -8236880.5037670005 4977417.80513)"
1050,9th Avenue,"LINESTRING (-8236564.3230173 4977241.822300643, -8236568.2748592235 4977234.650193107, -8236599.622427831 4977178.125939713, -8236610.442682336 4977158.314604332, -8236614.505843751 4977150.907409138)"
1051,West 51st Street,"LINESTRING (-8236360.975703468 4977610.3111074995, -8236376.860994804 4977619.276587516, -8236663.8537740195 4977778.745926633, -8236677.089661473 4977786.109504621)"
1052,9th Avenue,"LINESTRING (-8236360.975703468 4977610.3111074995, -8236365.150184373 4977602.7418971695, -8236390.809327001 4977556.268544052, -8236406.894993421 4977527.12360334, -8236411.447960594 4977518.848983978)"
1053,9th Avenue,"LINESTRING (-8236309.067424912 4977704.478453375, -8236314.600003605 4977694.439968249, -8236356.010854179 4977619.350075092, -8236360.975703468 4977610.3111074995)"
1054,West 52nd Street,"LINESTRING (-8236309.067424912 4977704.478453375, -8236294.94098153 4977696.953262972, -8236212.965308509 4977650.655832376, -8236202.055998412 4977644.571043528, -8236008.694042903 4977536.8532713065, -8236004.920312167 4977534.7515446255, -8235994.100057662 4977528.62273584)"
1055,West 54th Street,"LINESTRING (-8236209.124786077 4977886.819116387, -8236197.113413019 4977880.146264106, -8236194.297029903 4977878.588286037, -8236190.400847726 4977876.442392121, -8236027.796467523 4977787.123650526, -8235938.740874889 4977737.371834167, -8235907.103875605 4977720.278432559, -8235903.307880969 4977718.103178093, -8235891.129528676 4977711.09239504)"
1056,9th Avenue,"LINESTRING (-8236209.124786077 4977886.819116387, -8236213.555301812 4977878.8087546155, -8236241.975167809 4977826.440257772, -8236254.476346626 4977803.4381861, -8236259.196293035 4977794.531328166)"
1057,West 57th Street,"LINESTRING (-8236052.487130581 4978169.361271508, -8236043.336668438 4978164.246249588, -8236037.770693899 4978161.130203066, -8235906.992556116 4978088.153265704, -8235885.930908457 4978076.394696387, -8235879.396454348 4978072.749542774, -8235836.783353272 4978048.967888473, -8235829.903808741 4978045.131669068, -8235751.846581796 4978001.875092463, -8235735.716387581 4977992.938657429)"
1058,9th Avenue,"LINESTRING (-8236052.487130581 4978169.361271508, -8236059.912140618 4978155.7359173335, -8236091.126125837 4978098.559611355, -8236101.812796953 4978079.951662114, -8236106.9334935285 4978071.044552034)"
1059,West 57th Street,"LINESTRING (-8236052.487130581 4978169.361271508, -8236067.73790082 4978177.871615636, -8236354.374457664 4978337.849827033, -8236355.253881641 4978338.334880721, -8236368.93504706 4978345.96345553)"
1060,West 58th Street,"LINESTRING (-8235997.038892218 4978269.5897845905, -8235987.777110583 4978265.121443582, -8235982.856789092 4978262.710892044, -8235979.984746228 4978261.314536243, -8235946.611162888 4978243.147230535, -8235931.293600957 4978235.092481213, -8235918.324880278 4978227.919644341, -8235862.67626683 4978197.5821302505, -8235854.95069417 4978193.363694619, -8235696.075516909 4978104.144942691, -8235679.054766766 4978093.488721199)"
1061,9th Avenue,"LINESTRING (-8235997.038892218 4978269.5897845905, -8236001.992609559 4978260.6090091765, -8236023.644250517 4978221.437638502, -8236044.271752162 4978184.221307277, -8236052.487130581 4978169.361271508)"
1062,5th Avenue,"LINESTRING (-8234027.685780594 4978737.865616574, -8234032.238747767 4978729.53117472, -8234074.562418167 4978653.0516109215, -8234079.427079916 4978644.276269712)"
1063,Madison Avenue,"LINESTRING (-8233849.496671681 4978638.161463749, -8233845.544829758 4978645.290504725, -8233801.707214284 4978724.695143819, -8233794.449183485 4978737.806819782)"
1064,East 71st Street,"LINESTRING (-8233849.496671681 4978638.161463749, -8233862.220489479 4978645.09941696, -8234016.865526089 4978731.883044716, -8234027.685780594 4978737.865616574)"
1065,East 71st Street,"LINESTRING (-8233657.815640484 4978532.564072356, -8233680.7585875355 4978545.146329679)"
1066,Park Avenue,"LINESTRING (-8233657.815640484 4978532.564072356, -8233654.197757033 4978539.222671468, -8233611.751635193 4978617.994390445, -8233603.736631857 4978632.031962573)"
1067,East 71st Street,"LINESTRING (-8233490.535841669 4978439.094282707, -8233502.068540915 4978445.517637962, -8233648.587254698 4978527.331269176, -8233657.815640484 4978532.564072356)"
1068,Lexington Avenue,"LINESTRING (-8233490.535841669 4978439.094282707, -8233495.767857737 4978429.52540205, -8233537.55719458 4978354.0329949055, -8233542.266009041 4978345.404908424)"
1069,East 71st Street,"LINESTRING (-8233312.79201072 4978340.1134111155, -8233327.630898842 4978348.432822063, -8233478.513336662 4978432.347559425, -8233490.535841669 4978439.094282707)"
1070,3rd Avenue,"LINESTRING (-8233312.79201072 4978340.1134111155, -8233309.151863369 4978346.507304058, -8233264.368032225 4978425.218673877, -8233256.820570747 4978438.491634034)"
1071,East 71st Street,"LINESTRING (-8232797.928233852 4978054.024057346, -8232814.036164168 4978062.813566443, -8233048.319164493 4978193.157917319, -8233064.382567014 4978202.065138754)"
1072,1st Avenue,"LINESTRING (-8232797.928233852 4978054.024057346, -8232793.887336336 4978061.329050138, -8232776.031690013 4978095.311301707, -8232764.621442206 4978115.638976697, -8232752.0089439005 4978138.61238699, -8232744.127523951 4978152.943236516)"
1073,West 39th Street,"LINESTRING (-8235669.258651577 4975768.72609077, -8235683.296039366 4975776.617164613, -8235796.797392178 4975840.451337042, -8236012.289662456 4975960.714640193, -8236026.360446092 4975968.9291598005)"
1074,East 88th Street,"LINESTRING (-8233129.448809383 4980362.08569066, -8233119.886465123 4980356.660785818, -8232964.061441912 4980271.3328687595, -8232951.126117081 4980264.187939172)"
1075,5th Avenue,"LINESTRING (-8233129.448809383 4980362.08569066, -8233133.367255459 4980355.23472732, -8233175.935828738 4980279.374596176, -8233180.49992786 4980270.7301070085)"
1076,East 88th Street,"LINESTRING (-8232951.126117081 4980264.187939172, -8232939.2037996175 4980257.292940061, -8232856.493417958 4980211.086280617, -8232794.8335520085 4980176.640923955, -8232783.100477678 4980170.275235407)"
1077,Madison Avenue,"LINESTRING (-8232951.126117081 4980264.187939172, -8232946.439566519 4980272.817721038, -8232905.140035435 4980347.869212009, -8232900.59820021 4980356.116825335)"
1078,East 88th Street,"LINESTRING (-8232762.962781794 4980159.087511088, -8232749.838213828 4980151.8544556685, -8232603.475347334 4980070.306536937, -8232592.243210712 4980064.176136821)"
1079,Park Avenue,"LINESTRING (-8232762.962781794 4980159.087511088, -8232758.231703435 4980167.849512225, -8232755.704750993 4980172.392230676, -8232716.286519303 4980243.194225692, -8232711.555440945 4980251.427049128)"
1080,Lexington Avenue,"LINESTRING (-8232592.243210712 4980064.176136821, -8232596.874101531 4980055.8258617995, -8232615.475588442 4980022.174913879, -8232638.485327189 4979980.467892959, -8232643.42791258 4979971.367935684)"
1081,Madison Avenue,"LINESTRING (-8235440.352382658 4975760.423571167, -8235436.11111006 4975767.888491128, -8235398.106635904 4975834.793825636, -8235394.14366203 4975841.759177808, -8235389.501639265 4975849.9295128435)"
1082,East 42nd Street,"LINESTRING (-8235333.652650733 4975948.238576218, -8235322.7990003815 4975941.493573, -8235301.024907983 4975929.179178263, -8235264.523246951 4975906.72528605, -8235245.053468011 4975895.63061359, -8235236.904881285 4975891.075188811, -8235228.667238966 4975886.475681431, -8235169.601117152 4975853.118296538, -8235158.881050188 4975847.681200545, -8235145.634030784 4975840.539506078, -8235103.032061657 4975817.512720169, -8235062.0219612485 4975795.132558428, -8234988.172611057 4975753.781560564, -8234977.00726613 4975747.53631135)"
1083,East 42nd Street,"LINESTRING (-8235333.652650733 4975948.238576218, -8235348.625122245 4975956.217965122, -8235501.043769039 4976041.464108522, -8235513.800982684 4976047.812411671)"
1084,Madison Avenue,"LINESTRING (-8235333.652650733 4975948.238576218, -8235326.416883831 4975961.537561344, -8235296.605524199 4976016.2913637245, -8235286.2750754515 4976035.292151082, -8235284.60528309 4976039.127581318, -8235280.219295153 4976048.1650953)"
1085,East 43rd Street,"LINESTRING (-8235280.219295153 4976048.1650953, -8235292.9097171035 4976054.763220544, -8235446.397031008 4976141.171151709, -8235459.577258718 4976148.474714249)"
1086,Madison Avenue,"LINESTRING (-8235280.219295153 4976048.1650953, -8235274.987279085 4976057.5993871065, -8235234.544908081 4976130.458290172, -8235229.969677009 4976138.702343069)"
1087,East 44th Street,"LINESTRING (-8235229.969677009 4976138.702343069, -8235220.129034023 4976133.206307031, -8235139.711833875 4976088.2094651535, -8235130.093829869 4976082.831019146)"
1088,Madison Avenue,"LINESTRING (-8235229.969677009 4976138.702343069, -8235225.105015261 4976147.460738439, -8235199.557192124 4976193.50122442, -8235183.382470113 4976223.21530791, -8235178.506676416 4976232.179515033)"
1089,Madison Avenue,"LINESTRING (-8235077.985176229 4976416.123922119, -8235074.133521848 4976423.060297311, -8235032.900782457 4976497.303333465, -8235027.646502492 4976506.767450667)"
1090,East 47th Street,"LINESTRING (-8235077.985176229 4976416.123922119, -8235089.33976429 4976422.516555858, -8235243.584050734 4976508.266426594, -8235255.305993114 4976514.967733546)"
1091,East 48th Street,"LINESTRING (-8235027.646502492 4976506.767450667, -8235015.33456681 4976500.124932665, -8234869.361318533 4976421.282115913, -8234857.4835288655 4976414.8747872785)"
1092,Madison Avenue,"LINESTRING (-8235027.646502492 4976506.767450667, -8235022.848632438 4976515.393913311, -8234980.847788563 4976591.033768005, -8234976.038786559 4976599.689697015)"
1093,Madison Avenue,"LINESTRING (-8234925.343890454 4976691.143215216, -8234920.568284299 4976700.063763298, -8234888.307895866 4976758.304708222, -8234878.188954153 4976776.483948862, -8234874.203716383 4976783.670416293)"
1094,East 50th Street,"LINESTRING (-8234925.343890454 4976691.143215216, -8234913.39930909 4976684.7504057, -8234880.125913293 4976666.233325889, -8234847.008364782 4976647.686889068, -8234768.505859875 4976603.760484617, -8234756.5278826635 4976597.32364435)"
1095,East 52nd Street,"LINESTRING (-8234823.987494085 4976875.640030652, -8234811.720086201 4976868.8356015915, -8234810.172745278 4976867.983211244, -8234666.74871334 4976790.386608427, -8234665.813629617 4976789.857542795, -8234653.991499695 4976783.2148323115)"
1096,Madison Avenue,"LINESTRING (-8234823.987494085 4976875.640030652, -8234818.766609967 4976884.91346104, -8234788.342993133 4976940.025154468, -8234781.340997163 4976952.517181533, -8234778.201787523 4976958.204733265, -8234777.867829049 4976958.807290619, -8234773.726743992 4976966.596450008)"
1097,Madison Avenue,"LINESTRING (-8234722.00770857 4977060.448960623, -8234718.066998595 4977067.94426734, -8234717.577192836 4977068.855461882, -8234676.121814465 4977143.6618843535, -8234671.223756869 4977152.671026532)"
1098,East 54th Street,"LINESTRING (-8234722.00770857 4977060.448960623, -8234709.161439332 4977053.276986245, -8234566.305136798 4976973.665484943, -8234565.336657226 4976973.121712844, -8234552.913402054 4976966.199643626)"
1099,East 55th Street,"LINESTRING (-8234671.223756869 4977152.671026532, -8234836.299429767 4977243.953358201, -8234851.216241534 4977252.198350784)"
1100,Madison Avenue,"LINESTRING (-8234671.223756869 4977152.671026532, -8234666.693053595 4977161.709570673, -8234629.300836639 4977228.286421772, -8234620.896215081 4977243.350783259)"
1101,East 58th Street,"LINESTRING (-8234510.545203859 4977442.599357837, -8234499.034768512 4977436.014992441, -8234395.630093512 4977378.0198585745, -8234353.261895317 4977354.504443712, -8234342.107682341 4977348.184685618)"
1102,Madison Avenue,"LINESTRING (-8234510.545203859 4977442.599357837, -8234506.170347871 4977451.285435942, -8234464.614781957 4977526.094787053, -8234461.074822149 4977533.134832103)"
1103,East 59th Street,"LINESTRING (-8234461.074822149 4977533.134832103, -8234449.3306158725 4977525.918418556, -8234425.28560586 4977511.970620112, -8234304.092076234 4977445.876844947, -8234291.9359878395 4977439.1161104115)"
1104,Madison Avenue,"LINESTRING (-8234461.074822149 4977533.134832103, -8234455.809410237 4977543.026177459, -8234448.707226723 4977556.709466666, -8234428.458211347 4977594.04098691, -8234420.999805464 4977607.107052703, -8234414.721386184 4977618.527014282, -8234408.7880573245 4977628.433143634)"
1105,East 60th Street,"LINESTRING (-8234408.7880573245 4977628.433143634, -8234421.233576396 4977635.532052598, -8234439.823931358 4977646.040798942, -8234532.887025661 4977697.144332188, -8234573.796938527 4977720.410711562, -8234587.311124709 4977728.905966864)"
1106,Madison Avenue,"LINESTRING (-8234408.7880573245 4977628.433143634, -8234404.825083451 4977635.370379666, -8234362.423489409 4977709.872489908, -8234358.037501472 4977717.588759879)"
1107,East 62nd Street,"LINESTRING (-8234307.453924855 4977809.317304698, -8234295.3757601045 4977802.600411987, -8234150.794005462 4977722.96810598, -8234139.305834013 4977716.339458613)"
1108,Madison Avenue,"LINESTRING (-8234307.453924855 4977809.317304698, -8234302.411151923 4977818.400549886, -8234260.9335096525 4977893.168618825, -8234256.51412587 4977901.149596495)"
1109,East 65th Street,"LINESTRING (-8234153.777367815 4978087.256674295, -8234142.734474329 4978081.186311675, -8234141.855050352 4978080.701270756, -8233996.994996982 4978000.096623656, -8233985.384374092 4977993.64416516)"
1110,Madison Avenue,"LINESTRING (-8234153.777367815 4978087.256674295, -8234150.025900975 4978093.826780462, -8234108.080716845 4978169.66993671, -8234103.594541366 4978177.901012348)"
1111,Madison Avenue,"LINESTRING (-8234103.594541366 4978177.901012348, -8234098.596296229 4978186.881711714, -8234057.341292941 4978261.917173984, -8234052.89964526 4978269.957246935)"
1112,East 66th Street,"LINESTRING (-8234103.594541366 4978177.901012348, -8234116.83042882 4978185.132605952, -8234117.910227882 4978185.808730831, -8234270.050575949 4978270.633377686, -8234282.8745812895 4978277.600466846)"
1113,Madison Avenue,"LINESTRING (-8233952.2890894795 4978453.793042376, -8233947.825177899 4978461.847972058, -8233905.412451906 4978538.267243059, -8233901.360422442 4978545.572598028)"
1114,East 69th Street,"LINESTRING (-8233952.2890894795 4978453.793042376, -8233964.022163809 4978460.319298759, -8234054.146423556 4978510.486365618, -8234119.14587423 4978546.660317343, -8234130.288955256 4978552.863259539)"
1115,East 76th Street,"LINESTRING (-8233585.869853585 4979119.405458914, -8233572.711889773 4979112.08497495, -8233428.297114367 4979031.633511694, -8233415.840463346 4979024.695283891)"
1116,Madison Avenue,"LINESTRING (-8233585.869853585 4979119.405458914, -8233580.971795989 4979128.622220625, -8233538.748313132 4979204.017715992, -8233533.605352658 4979213.646155151)"
1117,East 77th Street,"LINESTRING (-8233533.605352658 4979213.646155151, -8233545.605593765 4979220.217019077, -8233700.751568085 4979306.329554964, -8233709.812974635 4979311.37167474)"
1118,Madison Avenue,"LINESTRING (-8233533.605352658 4979213.646155151, -8233529.508795396 4979221.01081502, -8233487.296444487 4979296.848024824, -8233482.8102690065 4979304.962450049)"
1119,Madison Avenue,"LINESTRING (-8233427.172787509 4979406.687338351, -8233419.4360829 4979420.1821358, -8233374.852626837 4979497.961337288, -8233370.923048813 4979504.8116992125)"
1120,East 79th Street,"LINESTRING (-8233427.172787509 4979406.687338351, -8233438.460583876 4979413.008428515, -8233472.446424416 4979431.486615553, -8233497.693684927 4979445.20195121, -8233539.249250841 4979467.987385293, -8233575.060731029 4979487.538800144, -8233594.185419546 4979498.005438316, -8233603.614180417 4979503.385765111)"
1121,East 79th Street,"LINESTRING (-8233427.172787509 4979406.687338351, -8233412.088996506 4979398.440526868, -8233404.3077641 4979394.192172156, -8233380.106906801 4979380.579809295, -8233372.125299313 4979376.125660125, -8233323.289438701 4979349.16560587, -8233307.504334907 4979340.330838742, -8233269.477596851 4979318.927509252, -8233257.020945832 4979311.91557703)"
1122,East 81st Street,"LINESTRING (-8233319.382124575 4979598.071181624, -8233332.8183871135 4979605.583136446, -8233487.084937455 4979691.757873033, -8233497.114823575 4979697.505822638)"
1123,Madison Avenue,"LINESTRING (-8233319.382124575 4979598.071181624, -8233314.038789016 4979607.7000092985, -8233271.54813938 4979684.466361264, -8233267.596297457 4979691.610866692)"
1124,East 83rd Street,"LINESTRING (-8233215.8216022905 4979785.07794388, -8233228.857114661 4979792.472436272, -8233384.5596864335 4979879.0898495605, -8233393.554301291 4979884.264573387)"
1125,Madison Avenue,"LINESTRING (-8233215.8216022905 4979785.07794388, -8233211.146183675 4979793.560294472, -8233168.755721582 4979870.416312937, -8233164.347469746 4979878.737027583)"
1126,East 85th Street,"LINESTRING (-8233112.839941357 4979971.103316697, -8233125.196404836 4979978.174526514, -8233280.008420682 4980064.867092997, -8233290.7173556965 4980070.674067043)"
1127,Madison Avenue,"LINESTRING (-8233112.839941357 4979971.103316697, -8233107.59679334 4979980.747213267, -8233064.605205996 4980057.442991967, -8233056.1003968995 4980072.114785189)"
1128,East 87th Street,"LINESTRING (-8233001.253283785 4980171.201420781, -8233014.611622682 4980178.640309666, -8233170.781736316 4980265.466969392, -8233180.49992786 4980270.7301070085)"
1129,Madison Avenue,"LINESTRING (-8233001.253283785 4980171.201420781, -8232996.711448561 4980179.5958985705, -8232956.024174676 4980255.469956035, -8232951.126117081 4980264.187939172)"
1130,East 91st Street,"LINESTRING (-8232797.805782411 4980541.432683427, -8232810.362620972 4980548.489604342, -8232885.002339551 4980590.301965394, -8232897.82634489 4980597.505941604, -8232962.625420481 4980633.746433161, -8232965.965005204 4980635.598891922, -8232976.29545395 4980641.24448269)"
1131,Madison Avenue,"LINESTRING (-8232797.805782411 4980541.432683427, -8232793.597905659 4980549.06297939, -8232751.953284153 4980624.557654824, -8232747.789935198 4980632.085101398)"
1132,East 92nd Street,"LINESTRING (-8232747.789935198 4980632.085101398, -8232736.301763749 4980625.675009809, -8232591.196807499 4980544.711210634, -8232579.575052659 4980538.242368772)"
1133,Madison Avenue,"LINESTRING (-8232747.789935198 4980632.085101398, -8232743.203572178 4980640.318252731, -8232700.690658644 4980716.636955621, -8232696.338066553 4980724.752560733)"
1134,Madison Avenue,"LINESTRING (-8232696.338066553 4980724.752560733, -8232691.195106078 4980733.809113534, -8232649.717463811 4980809.305217417, -8232645.609774599 4980816.788699435)"
1135,East 93rd Street,"LINESTRING (-8232696.338066553 4980724.752560733, -8232708.650002235 4980731.177419565, -8232864.163330874 4980818.729406908, -8232874.72755055 4980824.698555034)"
1136,5th Avenue,"LINESTRING (-8235002.8667838415 4976976.413738991, -8235007.7648414355 4976967.169614812, -8235049.108900316 4976892.364543816, -8235053.183193679 4976884.76649694)"
1137,East 52nd Street,"LINESTRING (-8235002.8667838415 4976976.413738991, -8234988.684680714 4976969.168343623, -8234836.188110277 4976882.5914285155, -8234834.952463928 4976881.871304617, -8234823.987494085 4976875.640030652)"
1138,10th Avenue,"LINESTRING (-8236624.29082699 4977879.587743638, -8236620.494832354 4977886.7456268, -8236597.329246321 4977930.516122956, -8236579.673975079 4977962.528383007, -8236576.467973745 4977968.290013038)"
1139,West 52nd Street,"LINESTRING (-8236624.29082699 4977879.587743638, -8236612.958502828 4977873.238250028, -8236324.752341164 4977712.694439361, -8236309.067424912 4977704.478453375)"
1140,West 52nd Street,"LINESTRING (-8237192.810598421 4978194.2896925295, -8237169.878783317 4978181.604998647)"
1141,12th Avenue,"LINESTRING (-8237192.810598421 4978194.2896925295, -8237195.716037131 4978188.954181971, -8237199.634483207 4978182.016552767, -8237244.418314353 4978101.308181902)"
1142,5th Avenue,"LINESTRING (-8233709.812974635 4979311.37167474, -8233713.430858084 4979304.8301495835, -8233742.86373145 4979251.616107744, -8233756.990174832 4979226.067590681, -8233761.95502412 4979217.100635635)"
1143,East 77th Street,"LINESTRING (-8233343.816752803 4979108.086640643, -8233363.709545809 4979119.287860734)"
1144,Park Avenue,"LINESTRING (-8233343.816752803 4979108.086640643, -8233339.174730037 4979116.509604159, -8233297.095962518 4979192.61060036, -8233293.099592798 4979199.578347242)"
1145,East 77th Street,"LINESTRING (-8233173.308688755 4979013.009085069, -8233185.275534016 4979019.623912874, -8233331.961227033 4979101.368854704, -8233343.816752803 4979108.086640643)"
1146,Lexington Avenue,"LINESTRING (-8233173.308688755 4979013.009085069, -8233178.173350503 4979003.880630058, -8233201.060637811 4978962.324953155, -8233221.053618357 4978926.414052536, -8233225.228099261 4978918.932019049)"
1147,East 77th Street,"LINESTRING (-8232995.553725856 4978913.684309396, -8233010.336954233 4978922.004208922, -8233162.221267472 4979006.908747844, -8233173.308688755 4979013.009085069)"
1148,3rd Avenue,"LINESTRING (-8232995.553725856 4978913.684309396, -8232991.501696391 4978920.989945174, -8232948.766143878 4978998.206586637, -8232944.836565851 4979005.306491229)"
1149,East 40th Street,"LINESTRING (-8235618.91997784 4975860.3481694115, -8235605.238812421 4975852.692145662, -8235450.638303608 4975766.183902603, -8235440.352382658 4975760.423571167)"
1150,5th Avenue,"LINESTRING (-8235618.91997784 4975860.3481694115, -8235624.296709245 4975850.53200185, -8235663.7594687315 4975778.689123605, -8235669.258651577 4975768.72609077)"
1151,West 40th Street,"LINESTRING (-8237242.180792588 4976762.831144928, -8237227.375300313 4976754.424907003, -8237210.220966781 4976744.666625894, -8237064.737524263 4976662.809139579)"
1152,10th Avenue,"LINESTRING (-8237242.180792588 4976762.831144928, -8237237.31613084 4976771.648884793, -8237196.896023734 4976844.88052188, -8237190.417229369 4976856.62291251)"
1153,,"LINESTRING (-8237372.714027492 4976836.312553645, -8237379.560176176 4976829.037869531, -8237384.213330892 4976824.966988057, -8237389.445346959 4976821.204730876, -8237395.656974545 4976817.413082527, -8237401.15615739 4976814.797139949, -8237408.347396494 4976812.710264911, -8237417.186164064 4976811.446383064, -8237426.102855276 4976811.946057264, -8237433.8952196315 4976813.004190947, -8237440.808160012 4976814.591391686, -8237475.896063508 4976826.862813516)"
1154,West 40th Street,"LINESTRING (-8237372.714027492 4976836.312553645, -8237361.392835278 4976829.684507899, -8237342.924931756 4976818.662268836, -8237330.490544636 4976811.755005361, -8237279.261314971 4976783.361794885, -8237257.487222573 4976771.237390087, -8237242.180792588 4976762.831144928)"
1155,West 33rd Street,"LINESTRING (-8237601.620296411 4976112.192080101, -8237616.49258038 4976120.494898627, -8237736.6731026415 4976187.035263726, -8237755.808923108 4976197.5865381565, -8237761.141126717 4976200.540309225)"
1156,10th Avenue,"LINESTRING (-8237601.620296411 4976112.192080101, -8237596.633183221 4976121.22966167, -8237571.653089489 4976166.46178089, -8237554.676867142 4976197.998008701, -8237547.530155835 4976211.0034258645)"
1157,East 42nd Street,"LINESTRING (-8234977.00726613 4975747.53631135, -8234988.172611057 4975753.781560564, -8235062.0219612485 4975795.132558428, -8235103.032061657 4975817.512720169, -8235145.634030784 4975840.539506078, -8235158.881050188 4975847.681200545, -8235169.601117152 4975853.118296538, -8235228.667238966 4975886.475681431, -8235236.904881285 4975891.075188811, -8235245.053468011 4975895.63061359, -8235264.523246951 4975906.72528605, -8235301.024907983 4975929.179178263, -8235322.7990003815 4975941.493573, -8235333.652650733 4975948.238576218)"
1158,Lexington Avenue,"LINESTRING (-8234920.935638617 4975848.107351202, -8234926.0340712955 4975838.908379062, -8234968.758491862 4975762.377968952, -8234977.00726613 4975747.53631135)"
1159,East 44th Street,"LINESTRING (-8234870.686020475 4975939.142374715, -8234859.72105063 4975933.043956802, -8234708.081640271 4975848.651060689, -8234693.565578671 4975840.598285434)"
1160,Lexington Avenue,"LINESTRING (-8234870.686020475 4975939.142374715, -8234875.350307138 4975930.707455525, -8234915.681358652 4975857.600229296, -8234920.935638617 4975848.107351202)"
1161,Lexington Avenue,"LINESTRING (-8234718.456616815 4976214.162936603, -8234722.297139247 4976207.344272844, -8234764.554017952 4976131.531045325, -8234769.184908767 4976123.22821742)"
1162,East 47th Street,"LINESTRING (-8234718.456616815 4976214.162936603, -8234729.889128518 4976220.731783127, -8234763.184788214 4976239.835836156, -8234875.595210018 4976304.02572795, -8234889.042604504 4976311.682105375)"
1163,East 48th Street,"LINESTRING (-8234666.937956474 4976305.142588775, -8234656.741091117 4976299.646459106, -8234583.292491092 4976260.071477679, -8234505.413375333 4976216.92567241, -8234490.140341196 4976208.431731831)"
1164,Lexington Avenue,"LINESTRING (-8234666.937956474 4976305.142588775, -8234670.722819162 4976298.470816798, -8234713.035357612 4976223.700256609, -8234718.456616815 4976214.162936603)"
1165,East 50th Street,"LINESTRING (-8234565.6706157 4976491.2486545965, -8234554.761305602 4976485.193979482, -8234533.154192438 4976473.275685786, -8234439.890723052 4976421.781770157, -8234403.066235498 4976401.295967089, -8234388.17168763 4976393.022301268)"
1166,Lexington Avenue,"LINESTRING (-8234565.6706157 4976491.2486545965, -8234570.156791179 4976483.136566461, -8234611.801412685 4976407.732678203, -8234616.654942483 4976398.959353829)"
1167,Lexington Avenue,"LINESTRING (-8234463.379135611 4976676.329538865, -8234466.629664741 4976670.686239496, -8234468.611151678 4976667.247355541, -8234510.790106739 4976591.048463972, -8234515.053643235 4976583.333083785)"
1168,East 52nd Street,"LINESTRING (-8234463.379135611 4976676.329538865, -8234452.146998988 4976670.950769081, -8234450.054192562 4976669.95143513, -8234370.88377071 4976625.539961904, -8234300.229289903 4976586.478018975, -8234285.468325424 4976579.071257343)"
1169,East 54th Street,"LINESTRING (-8234362.067267039 4976859.297651773, -8234350.80173457 4976853.09578493, -8234198.371955829 4976769.165220592, -8234184.768714053 4976761.670143107)"
1170,Lexington Avenue,"LINESTRING (-8234362.067267039 4976859.297651773, -8234367.076644124 4976850.215298352, -8234407.240716403 4976777.48329371, -8234413.140649415 4976767.048962836)"
1171,East 58th Street,"LINESTRING (-8234151.139095883 4977242.571844973, -8234139.506209095 4977236.399128681, -8234101.423811295 4977215.588285353, -8234053.378319069 4977189.662974749, -8233987.22114569 4977152.362393465, -8233972.961118919 4977144.044001144)"
1172,Lexington Avenue,"LINESTRING (-8234151.139095883 4977242.571844973, -8234156.6271467805 4977232.798379311, -8234198.2940321835 4977157.035980952, -8234206.19771603 4977142.647805247)"
1173,East 59th Street,"LINESTRING (-8234100.978533332 4977333.70804586, -8234087.631326387 4977327.0355714075, -8234070.321145568 4977317.364900664, -8234004.7984932875 4977280.886864061, -8233936.025311874 4977242.792299198, -8233923.023195351 4977235.443827699)"
1174,Lexington Avenue,"LINESTRING (-8234100.978533332 4977333.70804586, -8234105.308861524 4977324.93388987, -8234129.398399331 4977281.621714381, -8234146.686316253 4977250.713957667, -8234151.139095883 4977242.571844973)"
1175,East 60th Street,"LINESTRING (-8234048.825351896 4977428.24015598, -8234059.857113433 4977434.251323892, -8234207.121667804 4977514.189920744, -8234220.246235768 4977521.553299305)"
1176,Lexington Avenue,"LINESTRING (-8234048.825351896 4977428.24015598, -8234054.780944654 4977417.908010485, -8234075.3639185 4977381.503084214, -8234096.436698107 4977342.893728497, -8234100.978533332 4977333.70804586)"
1177,East 62nd Street,"LINESTRING (-8233948.370643403 4977610.267014995, -8233937.350013817 4977604.094066353, -8233785.955506337 4977519.216418082, -8233769.981159409 4977510.265727252)"
1178,Lexington Avenue,"LINESTRING (-8233948.370643403 4977610.267014995, -8233953.068325915 4977601.771862871, -8233994.802003014 4977526.359339801, -8233999.18799095 4977518.0406289995)"
1179,East 65th Street,"LINESTRING (-8233795.417663053 4977887.598106047, -8233784.34137372 4977881.6307528755, -8233632.423664634 4977795.663057189, -8233617.373269478 4977786.109504621)"
1180,Lexington Avenue,"LINESTRING (-8233795.417663053 4977887.598106047, -8233800.705338866 4977877.60352644, -8233841.826758766 4977802.512225242, -8233846.4353856845 4977794.105092594)"
1181,East 66th Street,"LINESTRING (-8233744.822954487 4977978.064214612, -8233756.27773009 4977984.604851202, -8233902.562672942 4978066.0030725375, -8233915.5647894675 4978073.205186901)"
1182,Lexington Avenue,"LINESTRING (-8233744.822954487 4977978.064214612, -8233749.6876162365 4977969.377668069, -8233791.287709946 4977894.814786797, -8233795.417663053 4977887.598106047)"
1183,East 69th Street,"LINESTRING (-8233592.649210574 4978253.641932137, -8233602.823812032 4978259.3302414995, -8233698.213483692 4978312.391891512, -8233750.299873436 4978341.362792166, -8233763.468969195 4978348.712095697)"
1184,Lexington Avenue,"LINESTRING (-8233592.649210574 4978253.641932137, -8233596.589920548 4978246.2045093905, -8233615.469706187 4978212.177637623, -8233639.180757726 4978169.405366537, -8233643.332974733 4978161.821024614)"
1185,East 76th Street,"LINESTRING (-8233225.228099261 4978918.932019049, -8233062.568059314 4978828.486594211, -8233046.29314976 4978819.4318082705)"
1186,Lexington Avenue,"LINESTRING (-8233225.228099261 4978918.932019049, -8233230.070497111 4978909.84775034, -8233272.282848021 4978834.131140346, -8233277.136377819 4978825.429133085)"
1187,Lexington Avenue,"LINESTRING (-8233066.620088778 4979205.781704136, -8233074.167550256 4979192.228403418, -8233098.802553568 4979147.59966328, -8233117.559887766 4979113.216856648, -8233122.435681462 4979104.749796722)"
1188,East 79th Street,"LINESTRING (-8233066.620088778 4979205.781704136, -8233054.38607674 4979199.019751318, -8233040.604723781 4979191.375810293, -8232995.909948228 4979166.4154445315, -8232956.424924843 4979144.380404336, -8232904.394194845 4979115.245424181, -8232888.074757496 4979106.102173856)"
1189,East 79th Street,"LINESTRING (-8233066.620088778 4979205.781704136, -8233078.854100819 4979212.4995618975, -8233101.374033805 4979224.832796382, -8233131.062941999 4979241.326133109, -8233183.082540047 4979270.667289402, -8233224.3041474875 4979293.555216511, -8233237.272868166 4979300.949336731)"
1190,East 81st Street,"LINESTRING (-8232960.109599988 4979398.91093304, -8232972.154368892 4979405.673024264, -8233117.626679461 4979487.185992311, -8233130.395025055 4979494.345053746)"
1191,Lexington Avenue,"LINESTRING (-8232960.109599988 4979398.91093304, -8232964.940865889 4979390.076120909, -8233006.440772056 4979314.429288002, -8233007.119820951 4979313.194482531, -8233011.349961601 4979305.462251823)"
1192,East 83rd Street,"LINESTRING (-8232856.905300073 4979586.075586687, -8232867.7923462745 4979592.058681829, -8233014.789733866 4979673.499702609, -8233027.368836325 4979680.467792607)"
1193,Lexington Avenue,"LINESTRING (-8232856.905300073 4979586.075586687, -8232862.037128599 4979576.681987704, -8232880.516164071 4979542.532876923, -8232903.592694512 4979500.886705847, -8232908.368300667 4979492.242905799)"
1194,East 85th Street,"LINESTRING (-8232753.56741677 4979772.141270859, -8232765.200303559 4979778.712510581, -8232911.95278827 4979859.126025955, -8232924.687738018 4979866.064846616)"
1195,Lexington Avenue,"LINESTRING (-8232753.56741677 4979772.141270859, -8232758.276231232 4979763.776544813, -8232800.73348502 4979687.538791971, -8232805.375507785 4979679.203539622)"
1196,East 87th Street,"LINESTRING (-8232643.42791258 4979971.367935684, -8232654.582125557 4979977.6011849865, -8232801.011783748 4980059.427652086, -8232813.757865443 4980066.704742638)"
1197,Lexington Avenue,"LINESTRING (-8232643.42791258 4979971.367935684, -8232648.025407549 4979963.252956705, -8232667.261415558 4979928.55855741, -8232690.627376676 4979886.719627978, -8232697.863143578 4979873.2388867205)"
1198,65th Street Transverse,"LINESTRING (-8234282.8745812895 4978277.600466846, -8234294.295961043 4978283.009518396, -8234304.971500211 4978288.095205466, -8234317.016269114 4978292.754637851, -8234328.894058783 4978296.120601432, -8234342.252397677 4978298.82513196, -8234357.313924782 4978300.912324512, -8234369.392089535 4978301.764839908, -8234380.323663529 4978301.573758864, -8234391.110522187 4978301.191596787, -8234426.899738477 4978299.01621295, -8234463.134232731 4978296.7085427875, -8234473.208646648 4978296.561557446, -8234482.3257129425 4978296.443969173, -8234492.188619828 4978297.076006153, -8234502.463408828 4978298.340080235, -8234512.548954693 4978299.986316494, -8234523.324681403 4978301.9412224125, -8234533.02060905 4978303.793238906, -8234542.905779832 4978306.042116549, -8234565.42571282 4978310.481079168)"
1199,5th Avenue,"LINESTRING (-8234282.8745812895 4978277.600466846, -8234287.883958375 4978268.340412721, -8234328.56010031 4978195.186293764, -8234333.803248326 4978185.794032465)"
1200,East 66th Street,"LINESTRING (-8233915.5647894675 4978073.205186901, -8233935.6245617075 4978084.25823805)"
1201,Park Avenue,"LINESTRING (-8233915.5647894675 4978073.205186901, -8233910.867106956 4978081.347991985, -8233869.779082904 4978156.691308322, -8233864.769705818 4978165.363323114)"
1202,East 66th Street,"LINESTRING (-8233566.422338542 4977878.588286037, -8233582.574796657 4977887.99494986, -8233732.700261941 4977971.229621505, -8233744.822954487 4977978.064214612)"
1203,3rd Avenue,"LINESTRING (-8233566.422338542 4977878.588286037, -8233561.969558911 4977886.436970539, -8233560.889759851 4977888.318304091, -8233519.91305529 4977962.146234199, -8233515.738574384 4977969.656930865)"
1204,East 66th Street,"LINESTRING (-8233052.549305143 4977592.703516596, -8233068.8464785945 4977601.889442782, -8233207.673015564 4977679.095656604, -8233275.5556410495 4977716.736295469, -8233303.240798411 4977732.139456981, -8233316.899699929 4977739.576488315)"
1205,1st Avenue,"LINESTRING (-8233052.549305143 4977592.703516596, -8233047.929546275 4977600.787131183, -8233013.008622015 4977661.6937078135, -8233005.216257658 4977675.538836848, -8233000.318200062 4977684.107541187)"
1206,5th Avenue,"LINESTRING (-8233393.554301291 4979884.264573387, -8233397.7844419405 4979876.473086853, -8233440.597918099 4979799.264201611, -8233445.395788153 4979790.7965468485)"
1207,East 83rd Street,"LINESTRING (-8233027.368836325 4979680.467792607, -8233047.439740516 4979691.669669228)"
1208,Park Avenue,"LINESTRING (-8233027.368836325 4979680.467792607, -8233022.426250935 4979689.449873758, -8232980.358615363 4979765.555334814, -8232975.81678014 4979773.773054808)"
1209,East 83rd Street,"LINESTRING (-8232678.192989554 4979485.466054307, -8232693.933565552 4979494.330353409, -8232844.838267271 4979579.239868221, -8232856.905300073 4979586.075586687)"
1210,3rd Avenue,"LINESTRING (-8232678.192989554 4979485.466054307, -8232673.539834839 4979493.90404365, -8232630.97126156 4979570.90470831, -8232626.507349979 4979578.975259861)"
1211,East 59th Street,"LINESTRING (-8234272.009798986 4977427.6963585755, -8234259.486356272 4977420.685783947, -8234239.070361662 4977409.6628780365, -8234112.555760375 4977339.498699188, -8234100.978533332 4977333.70804586)"
1212,Park Avenue,"LINESTRING (-8234272.009798986 4977427.6963585755, -8234266.276845212 4977437.7198723415, -8234225.745418614 4977511.720765105, -8234220.246235768 4977521.553299305)"
1213,East 59th Street,"LINESTRING (-8233407.168675014 4976950.5184561275, -8233422.519632795 4976960.203460242, -8233460.0343011925 4976980.9255802, -8233463.1401149845 4976982.645077237, -8233501.9906172715 4977003.587693625, -8233512.877663471 4977009.451634261)"
1214,East 59th Street,"LINESTRING (-8233407.168675014 4976950.5184561275, -8233393.843731966 4976942.126753196, -8233291.552251876 4976885.075121553, -8233171.761347834 4976818.383038942, -8233158.681307665 4976810.976101488)"
1215,1st Avenue,"LINESTRING (-8233407.168675014 4976950.5184561275, -8233401.680624118 4976960.203460242, -8233362.85238573 4977031.672914921, -8233356.67415399 4977042.901147388)"
1216,Sutton Place,"LINESTRING (-8233158.681307665 4976810.976101488, -8233163.946719579 4976801.408815589, -8233205.201722868 4976726.502140634, -8233209.799217838 4976718.1400224455)"
1217,East 59th Street,"LINESTRING (-8233158.681307665 4976810.976101488, -8233144.688447673 4976803.304636476, -8233081.8263312215 4976768.312838941)"
1218,East 59th Street,"LINESTRING (-8233158.681307665 4976810.976101488, -8233171.761347834 4976818.383038942, -8233291.552251876 4976885.075121553, -8233393.843731966 4976942.126753196, -8233407.168675014 4976950.5184561275)"
1219,York Avenue,"LINESTRING (-8233158.681307665 4976810.976101488, -8233154.117208542 4976819.23542496, -8233112.851073306 4976893.907668178, -8233107.808300372 4976903.048847969)"
1220,East 55th Street,"LINESTRING (-8234482.303449045 4977048.456481837, -8234501.327950021 4977059.082170018)"
1221,Park Avenue,"LINESTRING (-8234482.303449045 4977048.456481837, -8234478.14010009 4977055.981172688, -8234436.684721717 4977130.905070811, -8234431.853455817 4977139.590871769)"
1222,East 55th Street,"LINESTRING (-8234134.329852774 4976854.359672167, -8234148.044414041 4976862.031177271, -8234240.806945718 4976913.498020554, -8234248.243087702 4976917.657117675, -8234299.839671684 4976946.476917039, -8234310.748981784 4976952.575967581)"
1223,3rd Avenue,"LINESTRING (-8234134.329852774 4976854.359672167, -8234131.513469656 4976862.677817824, -8234117.086463651 4976894.407346594, -8234092.42919644 4976937.600233417, -8234087.163784525 4976947.329314236)"
1224,3rd Avenue,"LINESTRING (-8234134.329852774 4976854.359672167, -8234128.429919763 4976860.9730382785, -8234107.056577531 4976887.588208049, -8234080.09499686 4976931.060297829, -8234074.384306981 4976940.333780825)"
1225,East 55th Street,"LINESTRING (-8233618.842686758 4976568.034605091, -8233635.039672666 4976577.087304288, -8233868.109290541 4976706.868074806, -8233885.018721193 4976716.22952193)"
1226,1st Avenue,"LINESTRING (-8233618.842686758 4976568.034605091, -8233614.668205854 4976575.926324538, -8233591.769786597 4976618.10377864, -8233574.081119509 4976649.30345506, -8233569.004950729 4976658.591366673)"
1227,East 55th Street,"LINESTRING (-8233324.591876743 4976402.692057038, -8233355.694542471 4976420.165241811, -8233369.854381699 4976428.13032043)"
1228,East 92nd Street,"LINESTRING (-8232926.324134531 4980731.515570148, -8232915.848970448 4980725.664096512, -8232760.5360168945 4980639.20089607, -8232747.789935198 4980632.085101398)"
1229,5th Avenue,"LINESTRING (-8232926.324134531 4980731.515570148, -8232930.487483488 4980723.988046921, -8232972.388139822 4980648.301475742, -8232976.29545395 4980641.24448269)"
1230,East 48th Street,"LINESTRING (-8234837.969222129 4976403.808929143, -8234825.490307211 4976396.710915182, -8234806.220903355 4976385.7332515735, -8234760.668967723 4976358.8843190605, -8234678.971593429 4976312.034798529, -8234666.937956474 4976305.142588775)"
1231,Park Avenue,"LINESTRING (-8234837.969222129 4976403.808929143, -8234833.650025887 4976411.6711245375, -8234791.927480737 4976487.56000499, -8234787.641680341 4976495.363484486)"
1232,East 48th Street,"LINESTRING (-8234490.140341196 4976208.431731831, -8234474.288445707 4976199.614500287, -8234420.5767914 4976169.738839898, -8234255.000180795 4976077.584832863, -8234239.393188185 4976068.899976044)"
1233,3rd Avenue,"LINESTRING (-8234490.140341196 4976208.431731831, -8234484.908325129 4976217.807396769, -8234443.5531343 4976292.137046297, -8234438.977903227 4976300.440017745)"
1234,86th Street Transverse,"LINESTRING (-8233290.7173556965 4980070.674067043, -8233304.5766323 4980078.509812179, -8233317.946103143 4980085.684008361, -8233328.677302056 4980091.255775015, -8233339.775855289 4980096.886349826, -8233352.55533283 4980102.678641659, -8233365.590845203 4980108.206314229, -8233382.288768821 4980114.616066125, -8233409.673363557 4980124.892259712, -8233423.744147194 4980130.508152623, -8233435.733256352 4980136.006438338, -8233446.6536984 4980141.431220597, -8233456.293966301 4980146.679590039, -8233464.531608621 4980151.075285384, -8233492.873550975 4980169.040321711)"
1235,5th Avenue,"LINESTRING (-8233290.7173556965 4980070.674067043, -8233295.214663123 4980062.926535351, -8233335.400999299 4979989.994190113, -8233341.245272567 4979979.776942754)"
1236,10th Avenue,"LINESTRING (-8236576.467973745 4977968.290013038, -8236570.445589294 4977979.137172674, -8236529.01247482 4978054.200435378, -8236524.938181457 4978061.593617383)"
1237,West 53rd Street,"LINESTRING (-8236576.467973745 4977968.290013038, -8236590.282722553 4977979.063682392, -8236677.156453168 4978024.142725199, -8236704.819346631 4978039.781541837, -8236877.620592189 4978138.274326178, -8236889.531777704 4978145.256019233)"
1238,3rd Avenue,"LINESTRING (-8234743.035960381 4975750.166662885, -8234739.139778203 4975757.308291295, -8234698.519296012 4975831.2376772845, -8234693.565578671 4975840.598285434)"
1239,East 43rd Street,"LINESTRING (-8234743.035960381 4975750.166662885, -8234757.552021981 4975758.160584746, -8234849.546449171 4975808.813399733, -8234909.380675474 4975841.715093284, -8234920.935638617 4975848.107351202)"
1240,3rd Avenue,"LINESTRING (-8234693.565578671 4975840.598285434, -8234688.500541841 4975849.033126832, -8234647.423649738 4975923.639175193, -8234642.1471058745 4975932.926396977)"
1241,3rd Avenue,"LINESTRING (-8234540.924292896 4976116.879865269, -8234536.2934020795 4976125.197383047, -8234494.826891759 4976199.996580156, -8234490.140341196 4976208.431731831)"
1242,East 47th Street,"LINESTRING (-8234540.924292896 4976116.879865269, -8234556.7873203335 4976125.417812059, -8234707.525042817 4976208.181910161, -8234718.456616815 4976214.162936603)"
1243,East 50th Street,"LINESTRING (-8234388.17168763 4976393.022301268, -8234372.542431123 4976384.572294564, -8234341.706932174 4976367.510651127, -8234161.235773699 4976266.067231365, -8234154.9350905195 4976262.525621513, -8234137.981132072 4976253.032349984)"
1244,3rd Avenue,"LINESTRING (-8234388.17168763 4976393.022301268, -8234383.084386902 4976402.177708087, -8234341.729196072 4976476.596935097, -8234337.354340083 4976484.459189068)"
1245,3rd Avenue,"LINESTRING (-8234285.468325424 4976579.071257343, -8234281.828178076 4976585.655045181, -8234240.328271908 4976660.119758039, -8234235.753040835 4976668.511218734)"
1246,East 52nd Street,"LINESTRING (-8234285.468325424 4976579.071257343, -8234269.649825782 4976571.091359726, -8234218.620971202 4976542.463714361, -8234208.991835249 4976534.910027262, -8234051.151929255 4976447.029038484, -8234037.582083325 4976439.475425172)"
1247,East 54th Street,"LINESTRING (-8234184.768714053 4976761.670143107, -8234169.4622840695 4976752.8671084605, -8234108.403543368 4976718.125326285, -8234046.743677418 4976683.471844301, -8234033.262887082 4976675.903352078, -8233950.886463896 4976629.757720539, -8233935.60229781 4976621.013588808)"
1248,3rd Avenue,"LINESTRING (-8234184.768714053 4976761.670143107, -8234180.349330267 4976769.738373811, -8234140.363369175 4976843.48436874, -8234134.329852774 4976854.359672167)"
1249,East 58th Street,"LINESTRING (-8233972.961118919 4977144.044001144, -8233957.988647408 4977135.44637695, -8233738.856229783 4977012.875942072, -8233724.184320896 4977004.675241246)"
1250,3rd Avenue,"LINESTRING (-8233972.961118919 4977144.044001144, -8233969.476818857 4977150.672260175, -8233927.464843034 4977226.71385074, -8233923.023195351 4977235.443827699)"
1251,East 62nd Street,"LINESTRING (-8233769.981159409 4977510.265727252, -8233754.541146034 4977501.74126742, -8233713.052371817 4977478.813446851, -8233534.451380787 4977380.136248688, -8233521.5605837535 4977373.008131035)"
1252,3rd Avenue,"LINESTRING (-8233769.981159409 4977510.265727252, -8233765.461588081 4977518.39336571, -8233723.4273483595 4977594.099776818, -8233718.952304829 4977602.168695074)"
1253,East 65th Street,"LINESTRING (-8233617.373269478 4977786.109504621, -8233603.836819398 4977777.085080467, -8233551.561186523 4977747.674922157, -8233534.518172482 4977738.10671883, -8233473.2145289015 4977703.84645474, -8233429.310121733 4977679.757048851, -8233383.268380342 4977654.080364967, -8233368.897034079 4977646.95204741)"
1254,3rd Avenue,"LINESTRING (-8233617.373269478 4977786.109504621, -8233612.408420189 4977794.766492628, -8233574.749036455 4977863.21428935, -8233573.724897139 4977864.933941697)"
1255,3rd Avenue,"LINESTRING (-8233413.948032004 4978154.192593625, -8233408.860731273 4978163.393746196, -8233369.141936959 4978238.737695411, -8233364.878400463 4978246.616066233)"
1256,East 69th Street,"LINESTRING (-8233413.948032004 4978154.192593625, -8233429.955774779 4978163.114477861, -8233466.190269033 4978183.265913594, -8233536.655506705 4978222.481226454, -8233581.1499071745 4978247.248099987, -8233592.649210574 4978253.641932137)"
1257,East 76th Street,"LINESTRING (-8233046.29314976 4978819.4318082705, -8233031.020115623 4978810.950303729, -8232811.49807978 4978689.035002049, -8232798.918977319 4978682.30280523)"
1258,3rd Avenue,"LINESTRING (-8233046.29314976 4978819.4318082705, -8233041.996217415 4978827.4135428425, -8233000.006505489 4978905.408515305, -8232995.553725856 4978913.684309396)"
1259,3rd Avenue,"LINESTRING (-8232888.074757496 4979106.102173856, -8232880.482768224 4979119.80235278, -8232837.235146051 4979197.887859673, -8232832.771234469 4979205.928703163)"
1260,East 79th Street,"LINESTRING (-8232888.074757496 4979106.102173856, -8232904.394194845 4979115.245424181, -8232956.424924843 4979144.380404336, -8232995.909948228 4979166.4154445315, -8233040.604723781 4979191.375810293, -8233054.38607674 4979199.019751318, -8233066.620088778 4979205.781704136)"
1261,East 79th Street,"LINESTRING (-8232888.074757496 4979106.102173856, -8232872.968702596 4979097.679219316, -8232819.067805153 4979067.544799207, -8232722.342299603 4979013.49417229, -8232653.023652687 4978975.187055693, -8232640.6337933615 4978968.675154804)"
1262,East 81st Street,"LINESTRING (-8232781.909359127 4979297.803527444, -8232796.648059708 4979306.1678543715, -8232948.677088284 4979392.42814998, -8232960.109599988 4979398.91093304)"
1263,3rd Avenue,"LINESTRING (-8232781.909359127 4979297.803527444, -8232776.577155518 4979307.446759121, -8232733.730283513 4979384.372452766, -8232729.733913792 4979392.192947048)"
1264,East 85th Street,"LINESTRING (-8232574.766050658 4979672.397157179, -8232590.228327929 4979680.820607422, -8232616.521991655 4979694.786204116, -8232650.095950078 4979713.485434331, -8232741.96792583 4979765.672940776, -8232753.56741677 4979772.141270859)"
1265,3rd Avenue,"LINESTRING (-8232574.766050658 4979672.397157179, -8232569.767805521 4979681.629141423, -8232526.86527377 4979759.248717182, -8232519.072909415 4979773.302630577)"
1266,West 58th Street,"LINESTRING (-8236311.894939977 4978443.768485884, -8236301.119213269 4978437.595010465, -8236268.035060605 4978419.133402493, -8236120.436547762 4978336.79152816, -8236018.456762247 4978279.643559334, -8236012.812864063 4978276.997828136, -8235997.038892218 4978269.5897845905)"
1267,10th Avenue,"LINESTRING (-8236311.894939977 4978443.768485884, -8236306.596132215 4978453.293284183, -8236286.302589045 4978490.260760635, -8236265.530372062 4978527.551752399, -8236261.378155055 4978535.004088281)"
1268,West 58th Street,"LINESTRING (-8236936.664450105 4978791.444341164, -8236930.185655742 4978787.828319225, -8236800.442789222 4978715.434665799, -8236746.4083083905 4978685.286725954, -8236645.964731849 4978629.239145568, -8236630.691697711 4978620.713709124)"
1269,12th Avenue,"LINESTRING (-8236936.664450105 4978791.444341164, -8236891.980806502 4978874.069337304, -8236888.207075763 4978880.757568072)"
1270,East 54th Street,"LINESTRING (-8234901.699630607 4977159.79898341, -8234888.953548912 4977152.75920741, -8234734.95416535 4977067.591546896, -8234722.00770857 4977060.448960623)"
1271,5th Avenue,"LINESTRING (-8234901.699630607 4977159.79898341, -8234906.052222699 4977151.74512736, -8234947.719108101 4977075.601243474, -8234953.296214592 4977065.9308216395)"
1272,10th Avenue,"LINESTRING (-8236524.938181457 4978061.593617383, -8236519.617109798 4978071.220930372, -8236487.557096449 4978129.690525135, -8236478.306446764 4978146.593565208, -8236476.425147371 4978149.930081792, -8236472.907451461 4978156.176867009)"
1273,West 54th Street,"LINESTRING (-8236524.938181457 4978061.593617383, -8236512.32568315 4978054.406209751, -8236224.66498699 4977895.373308138, -8236209.124786077 4977886.819116387)"
1274,,"LINESTRING (-8232924.999432593 4977040.035301488, -8232922.327764813 4977038.933053289, -8232918.554034076 4977037.860198492, -8232914.468608762 4977037.389906017, -8232910.87298921 4977037.287029541, -8232906.186438648 4977037.433995936, -8232900.130658349 4977037.904288413, -8232895.4107119385 4977038.5656372495, -8232890.1786958715 4977039.7413686225, -8232885.436485564 4977041.196336391, -8232881.306532457 4977042.783574207, -8232877.566197566 4977045.120341459, -8232873.814730725 4977047.765739022, -8232858.920182858 4977060.052150427, -8232825.758106549 4977086.653165868, -8232811.765246557 4977097.969641911, -8232800.087831973 4977108.301449019, -8232789.211917723 4977118.236454497, -8232763.652962637 4977136.710300716)"
1275,FDR Drive,"LINESTRING (-8232924.999432593 4977040.035301488, -8232932.346518985 4977032.025634069, -8232940.4171820665 4977022.369951985, -8232947.430309986 4977013.551985817, -8232954.343250366 4977004.13146742, -8232962.536364888 4976992.3595063435, -8232968.681200779 4976983.3211188875, -8232975.33810633 4976972.871871619, -8232980.603518243 4976963.613054264, -8232985.713082871 4976953.09034551)"
1276,10th Avenue,"LINESTRING (-8237701.37369211 4975931.57445908, -8237695.963564858 4975941.331928099, -8237692.701903778 4975947.239316188, -8237616.926726395 4976084.476882091, -8237605.215915963 4976105.682087503, -8237601.620296411 4976112.192080101)"
1277,West 47th Street,"LINESTRING (-8235255.305993114 4976514.967733546, -8235269.065082175 4976522.859410128, -8235270.534499452 4976523.68237863, -8235600.997539822 4976706.074483157, -8235616.02567108 4976714.377806403)"
1278,5th Avenue,"LINESTRING (-8235255.305993114 4976514.967733546, -8235260.181786811 4976506.355967121, -8235302.549985006 4976431.6719903145, -8235307.136348027 4976423.545255931)"
1279,10th Avenue,"LINESTRING (-8236880.5037670005 4977417.80513, -8236875.294014832 4977427.240744558, -8236834.428629762 4977501.329741961, -8236829.764343097 4977509.677833232)"
1280,West 47th Street,"LINESTRING (-8236880.5037670005 4977417.80513, -8236895.342655123 4977426.417699935, -8236947.128482239 4977456.400084531, -8236972.242159363 4977470.230225304, -8237182.057135611 4977585.575243828, -8237194.981328492 4977592.674121646)"
1281,5th Avenue,"LINESTRING (-8232874.72755055 4980824.698555034, -8232880.037490261 4980815.097931878, -8232921.793431256 4980739.675294262, -8232926.324134531 4980731.515570148)"
1282,Park Avenue,"LINESTRING (-8234634.621908297 4976772.207341919, -8234630.414031545 4976779.819997503, -8234589.125632411 4976854.565421268, -8234584.6394569315 4976862.663121447)"
1283,East 52nd Street,"LINESTRING (-8234634.621908297 4976772.207341919, -8234620.92961093 4976764.300767686, -8234607.86070271 4976757.099618285, -8234545.321412783 4976722.28434023, -8234507.50618176 4976700.166636222, -8234481.045538799 4976685.30885786, -8234477.093696876 4976683.295491017, -8234463.379135611 4976676.329538865)"
1284,East 52nd Street,"LINESTRING (-8233771.973778292 4976290.417670792, -8233758.593175499 4976283.025829111, -8233598.13726147 4976194.397642037, -8233543.234488611 4976164.0811378155)"
1285,1st Avenue,"LINESTRING (-8233771.973778292 4976290.417670792, -8233767.020060952 4976299.411330633, -8233746.670858036 4976336.238396675, -8233726.444106558 4976372.874558214, -8233720.844736172 4976382.9998593405)"
1286,5th Avenue,"LINESTRING (-8233497.114823575 4979697.505822638, -8233500.81063067 4979690.846433763, -8233543.1231691195 4979613.477310459, -8233548.299525441 4979603.77497458)"
1287,East 81st Street,"LINESTRING (-8233130.395025055 4979494.345053746, -8233150.443665346 4979505.473215105)"
1288,Park Avenue,"LINESTRING (-8233130.395025055 4979494.345053746, -8233125.240932631 4979503.723873178, -8233083.518387482 4979579.47507566, -8233078.943156411 4979587.339827615)"
1289,West 36th Street,"LINESTRING (-8237442.923230335 4976399.503093972, -8237427.828307384 4976391.200038335, -8237412.477349603 4976382.676554934, -8237324.835514502 4976334.136928278, -8237312.278675941 4976327.0389649365, -8237291.695702094 4976315.561730775, -8237269.220296901 4976303.467297585)"
1290,10th Avenue,"LINESTRING (-8237442.923230335 4976399.503093972, -8237438.0585685875 4976408.232331754, -8237431.880336849 4976419.489239128, -8237423.330999956 4976434.963834015, -8237417.308615505 4976445.868074192, -8237397.849968513 4976481.182024494, -8237393.742279303 4976488.6327993525)"
1291,East 50th Street,"LINESTRING (-8233725.097140719 4976023.345015971, -8233681.827254648 4975999.774081304)"
1292,"['Beekman Place', 'Mitchell Place']","LINESTRING (-8233725.097140719 4976023.345015971, -8233729.471996707 4976015.703559601, -8233768.511742129 4975943.697821906, -8233904.054354119 4976018.87770229, -8233913.494246938 4976024.2561130915)"
1293,Beekman Place,"LINESTRING (-8233725.097140719 4976023.345015971, -8233720.343798464 4976031.7359297555, -8233680.669531943 4976101.831935907, -8233677.519190355 4976107.4014305, -8233673.444896992 4976114.6021010345)"
1294,12th Avenue,"LINESTRING (-8237699.147302295 4977393.187331192, -8237713.307141523 4977378.886990579, -8237742.23907718 4977352.696698537, -8237754.6957282 4977341.056591279, -8237766.272955243 4977329.416497892, -8237770.269324963 4977324.889798654, -8237787.802144763 4977308.032271564)"
1295,West 46th Street,"LINESTRING (-8237498.393732598 4977641.763811304, -8237474.649285212 4977628.286168349)"
1296,12th Avenue,"LINESTRING (-8237498.393732598 4977641.763811304, -8237505.417992466 4977628.947557153, -8237520.768950246 4977601.154568369, -8237533.782198721 4977577.094810629, -8237548.921649469 4977550.72761822, -8237566.643712403 4977525.139457739, -8237587.070838965 4977499.771824311, -8237605.349499352 4977480.72409651, -8237617.360872408 4977469.583544534)"
1297,12th Avenue,"LINESTRING (-8237244.418314353 4978101.308181902, -8237265.034684048 4978064.768424893, -8237294.99075902 4978009.812064647)"
1298,10th Avenue,"LINESTRING (-8236677.089661473 4977786.109504621, -8236672.069152439 4977795.192728228, -8236653.656908663 4977828.527349383, -8236629.912461275 4977869.828338496, -8236627.930974339 4977873.267645821, -8236624.29082699 4977879.587743638)"
1299,West 51st Street,"LINESTRING (-8236677.089661473 4977786.109504621, -8236692.418355357 4977794.751794849, -8236747.465843554 4977825.7935534185, -8236792.683820713 4977850.956263442, -8236953.251054233 4977939.614178846, -8236968.223525746 4977947.8891546475, -8236979.400002622 4977954.062320557, -8236991.812125843 4977960.911599682)"
1300,West 62nd Street,"LINESTRING (-8236501.794859322 4979030.237045957, -8236498.811496968 4979028.590686606, -8236443.2408071635 4978997.780298535, -8236426.8657100685 4978988.578359877)"
1301,5th Avenue,"LINESTRING (-8233180.49992786 4980270.7301070085, -8233184.841388001 4980262.17383445, -8233228.233725513 4980185.888086304, -8233235.714395294 4980171.216122137)"
1302,East 87th Street,"LINESTRING (-8232813.757865443 4980066.704742638, -8232834.006880818 4980078.112879346)"
1303,Park Avenue,"LINESTRING (-8232813.757865443 4980066.704742638, -8232809.115842677 4980075.349051189, -8232767.460089221 4980150.825362855, -8232762.962781794 4980159.087511088)"
1304,West 43rd Street,"LINESTRING (-8235459.577258718 4976148.474714249, -8235473.892945235 4976156.410180743, -8235649.800004587 4976252.459227076, -8235805.079562294 4976338.9864714155, -8235819.350721015 4976346.93678825)"
1305,5th Avenue,"LINESTRING (-8235459.577258718 4976148.474714249, -8235464.475316314 4976139.14320171, -8235505.975222481 4976061.919766771, -8235507.088417389 4976059.906528389, -8235513.800982684 4976047.812411671)"
1306,West 43rd Street,"LINESTRING (-8237082.604302537 4977051.792623354, -8237098.51185777 4977060.537140668, -8237274.352125428 4977157.256433248)"
1307,10th Avenue,"LINESTRING (-8237082.604302537 4977051.792623354, -8237078.151522904 4977059.861093673, -8237037.352929527 4977133.770943371, -8237032.944677693 4977141.810087805)"
1308,Sutton Place,"LINESTRING (-8233209.799217838 4976718.1400224455, -8233214.3744489085 4976709.821999854, -8233258.011689301 4976630.580698047, -8233264.434823919 4976618.912059155)"
1309,Sutton Place,"LINESTRING (-8233209.799217838 4976718.1400224455, -8233205.201722868 4976726.502140634, -8233163.946719579 4976801.408815589, -8233158.681307665 4976810.976101488)"
1310,"['Riverview Terrace', 'Sutton Square']","LINESTRING (-8233209.799217838 4976718.1400224455, -8233195.550323016 4976709.954265175, -8233140.213404142 4976678.842571662, -8233138.565875678 4976677.946109597, -8233136.740236031 4976677.431746151, -8233135.126103413 4976677.387657858, -8233133.456311052 4976677.666883723, -8233132.2651925 4976678.137158881, -8233131.474824115 4976678.475169166, -8233131.062941999 4976678.710306762, -8233130.639927935 4976679.063013167, -8233130.194649971 4976679.592072799, -8233129.8829553975 4976680.077044152, -8233126.81053745 4976685.5146034)"
1311,East 76th Street,"LINESTRING (-8233761.95502412 4979217.100635635, -8233752.915881468 4979212.132064088, -8233597.246705543 4979125.726363137, -8233585.869853585 4979119.405458914)"
1312,5th Avenue,"LINESTRING (-8233761.95502412 4979217.100635635, -8233766.296484262 4979209.236181838, -8233809.143356267 4979131.767975417, -8233813.852170729 4979123.271499849)"
1313,East 76th Street,"LINESTRING (-8233396.025593986 4979013.788164557, -8233383.357435933 4979006.747052211, -8233225.228099261 4978918.932019049)"
1314,Park Avenue,"LINESTRING (-8233396.025593986 4979013.788164557, -8233391.428099016 4979022.093449737, -8233348.859525737 4979098.987496247, -8233343.816752803 4979108.086640643)"
1315,10th Avenue,"LINESTRING (-8236368.93504706 4978345.96345553, -8236358.437619079 4978359.236307983, -8236316.781865622 4978435.860558549, -8236311.894939977 4978443.768485884)"
1316,West 57th Street,"LINESTRING (-8236368.93504706 4978345.96345553, -8236383.217337729 4978353.959501804, -8236566.3824278815 4978456.321231269, -8236616.008656875 4978483.866773588, -8236669.775970928 4978513.999392846, -8236684.214108886 4978522.260156409)"
1317,West 57th Street,"LINESTRING (-8236368.93504706 4978345.96345553, -8236355.253881641 4978338.334880721, -8236354.374457664 4978337.849827033, -8236067.73790082 4978177.871615636, -8236052.487130581 4978169.361271508)"
1318,East 65th Street,"LINESTRING (-8234333.803248326 4978185.794032465, -8234321.90319476 4978179.150372649, -8234270.440194167 4978152.311208863, -8234167.169102559 4978094.635183091, -8234166.234018834 4978094.120745046, -8234153.777367815 4978087.256674295)"
1319,5th Avenue,"LINESTRING (-8234333.803248326 4978185.794032465, -8234338.756965666 4978176.534065377, -8234379.46650345 4978100.661459352, -8234383.774567743 4978092.636223983)"
1320,East 65th Street,"LINESTRING (-8233965.513844986 4977982.223765016, -8233952.589652105 4977975.109906037, -8233807.2397929765 4977894.065192419, -8233795.417663053 4977887.598106047)"
1321,Park Avenue,"LINESTRING (-8233965.513844986 4977982.223765016, -8233961.47294747 4977989.646288687, -8233920.195680284 4978065.194672276, -8233915.5647894675 4978073.205186901)"
1322,East 65th Street,"LINESTRING (-8233104.335132261 4977501.550202027, -8233089.262473207 4977493.1139337495, -8232868.426867372 4977369.745365515, -8232854.812493647 4977362.279221485)"
1323,1st Avenue,"LINESTRING (-8233104.335132261 4977501.550202027, -8233100.104991609 4977509.295702138, -8233064.883504723 4977570.657328992, -8233057.280383502 4977584.384749295, -8233052.549305143 4977592.703516596)"
1324,5th Avenue,"LINESTRING (-8234130.288955256 4978552.863259539, -8234134.452304215 4978545.293318763, -8234176.419752243 4978468.962185549, -8234180.727816536 4978461.127731724)"
1325,East 69th Street,"LINESTRING (-8233763.468969195 4978348.712095697, -8233783.239310761 4978359.706664104)"
1326,Park Avenue,"LINESTRING (-8233763.468969195 4978348.712095697, -8233758.671099143 4978356.899226343, -8233716.948553992 4978432.788521589, -8233712.495774361 4978440.226086416)"
1327,East 69th Street,"LINESTRING (-8232900.097262503 4977868.2115705125, -8232916.4834915465 4977877.324266276, -8233153.638534732 4978009.31232917, -8233165.371609061 4978015.8382885745)"
1328,1st Avenue,"LINESTRING (-8232900.097262503 4977868.2115705125, -8232895.076753467 4977877.015610312, -8232853.699298739 4977951.57835571, -8232849.302178853 4977959.485890971)"
1329,West 35th Street,"LINESTRING (-8237493.017001192 4976308.801778423, -8237507.956076859 4976317.134155145, -8237625.899077352 4976382.823511479, -8237639.457791331 4976390.377080993)"
1330,10th Avenue,"LINESTRING (-8237493.017001192 4976308.801778423, -8237488.252526986 4976317.413370713, -8237476.174362236 4976339.280383198, -8237465.175996545 4976359.178231442, -8237448.222038098 4976389.994993678, -8237442.923230335 4976399.503093972)"
1331,West 41st Street,"LINESTRING (-8237190.417229369 4976856.62291251, -8237207.237604428 4976862.868870722, -8237207.872125526 4976863.2362801535, -8237273.172138824 4976899.565792924, -8237291.562118704 4976909.676943488, -8237303.217269389 4976915.908239164)"
1332,10th Avenue,"LINESTRING (-8237190.417229369 4976856.62291251, -8237183.982962801 4976867.880336553, -8237146.334711014 4976936.512693263, -8237138.3308396265 4976951.003440932)"
1333,West 46th Street,"LINESTRING (-8236930.6420656545 4977327.0355714075, -8236917.985039551 4977319.995674888, -8236630.569246271 4977159.372775534, -8236614.505843751 4977150.907409138)"
1334,10th Avenue,"LINESTRING (-8236930.6420656545 4977327.0355714075, -8236926.233813818 4977335.001389453, -8236884.578060364 4977410.412435245, -8236880.5037670005 4977417.80513)"
1335,1st Avenue,"LINESTRING (-8234045.597086662 4975837.48298, -8234042.546932615 4975843.243356866, -8233993.054287007 4975932.470852665, -8233989.224896526 4975938.583965206)"
1336,East 47th Street,"LINESTRING (-8234045.597086662 4975837.48298, -8234048.346678085 4975839.892933174, -8234052.587950683 4975842.640868311, -8234098.2512058085 4975868.121758206, -8234277.008044125 4975966.739600231, -8234291.245806996 4975975.63009683)"
1337,East 50th Street,"LINESTRING (-8233872.60659797 4976104.3301257, -8233860.539565168 4976097.687881305, -8233733.234595497 4976027.812331696, -8233725.097140719 4976023.345015971)"
1338,1st Avenue,"LINESTRING (-8233872.60659797 4976104.3301257, -8233867.942311306 4976113.059099759, -8233847.893671014 4976151.340298628, -8233827.076926235 4976190.209462078, -8233823.414514988 4976197.292630638)"
1339,East 54th Street,"LINESTRING (-8233669.927201084 4976475.200834585, -8233655.93434109 4976467.441458539, -8233434.6979850875 4976344.717752771, -8233423.143021942 4976338.266387586)"
1340,1st Avenue,"LINESTRING (-8233669.927201084 4976475.200834585, -8233665.652532635 4976482.401776202, -8233646.182753696 4976518.1273425855, -8233624.453189094 4976557.938504032, -8233618.842686758 4976568.034605091)"
1341,East 58th Street,"LINESTRING (-8233459.911849751 4976856.975625339, -8233444.772399005 4976848.657484536, -8233344.005995937 4976792.649833949, -8233224.114904353 4976726.178824859, -8233209.799217838 4976718.1400224455)"
1342,1st Avenue,"LINESTRING (-8233459.911849751 4976856.975625339, -8233454.869076819 4976865.793450176, -8233438.004173964 4976896.77347121, -8233412.957288535 4976940.319084331, -8233407.168675014 4976950.5184561275)"
1343,East 62nd Street,"LINESTRING (-8233255.150778388 4977224.685675393, -8233241.491876867 4977217.116763863, -8233169.612881662 4977177.067766481, -8233090.342272269 4977132.93322669, -8233022.60436212 4977094.221976316, -8233006.808126376 4977085.139404481)"
1344,1st Avenue,"LINESTRING (-8233255.150778388 4977224.685675393, -8233250.731394602 4977232.577925313, -8233216.968193045 4977293.67326751, -8233209.053377249 4977307.929392238, -8233204.032868214 4977317.188535937)"
1345,5th Avenue,"LINESTRING (-8232976.29545395 4980641.24448269, -8232981.583129763 4980631.732252209, -8233022.292667545 4980558.384004129, -8233028.871649452 4980546.534248661)"
1346,East 91st Street,"LINESTRING (-8232609.664711023 4980436.564499287, -8232629.624295722 4980447.899559251)"
1347,Park Avenue,"LINESTRING (-8232609.664711023 4980436.564499287, -8232605.056084104 4980444.694573387, -8232561.073753291 4980518.747657619, -8232557.255494758 4980525.819264029)"
1348,East 58th Street,"LINESTRING (-8234321.981118403 4977336.882616802, -8234308.667307305 4977329.489983286, -8234195.600100506 4977266.718960704, -8234162.627267334 4977248.377141235, -8234151.139095883 4977242.571844973)"
1349,Park Avenue,"LINESTRING (-8234321.981118403 4977336.882616802, -8234317.55060267 4977344.966019695, -8234275.917113114 4977420.78866446, -8234272.009798986 4977427.6963585755)"
1350,East 54th Street,"LINESTRING (-8234533.5326787075 4976954.971499315, -8234519.96283278 4976947.4027967565, -8234374.73542509 4976866.366609066, -8234362.067267039 4976859.297651773)"
1351,Park Avenue,"LINESTRING (-8234533.5326787075 4976954.971499315, -8234528.846128145 4976963.5395716205, -8234487.7024443485 4977038.624423815, -8234482.303449045 4977048.456481837)"
1352,East 62nd Street,"LINESTRING (-8234486.611513338 4977909.012997076, -8234474.355237402 4977902.178452286, -8234321.201881968 4977816.960164163, -8234320.155478755 4977816.372251684, -8234307.453924855 4977809.317304698)"
1353,5th Avenue,"LINESTRING (-8234486.611513338 4977909.012997076, -8234490.730334497 4977901.8550975965, -8234533.298907778 4977827.072264338, -8234538.408472405 4977818.033104527)"
1354,West 63rd Street,"LINESTRING (-8236248.899240138 4979007.849522493, -8236305.58312485 4979040.276904072, -8236361.409849483 4979073.071885882, -8236376.037230573 4979081.171425466)"
1355,Park Avenue,"LINESTRING (-8234908.545779292 4976322.115949913, -8234912.8093157895 4976314.165653275, -8234956.646931265 4976238.910023493, -8234962.346489193 4976231.856215618)"
1356,East 47th Street,"LINESTRING (-8234908.545779292 4976322.115949913, -8234919.944895148 4976328.2586974, -8234977.842162311 4976359.560317552)"
1357,65th Street Transverse,"LINESTRING (-8234565.42571282 4978310.481079168, -8234545.46612812 4978301.500266155, -8234513.740073245 4978290.71154262, -8234501.739832137 4978286.301986025, -8234488.03640282 4978280.290293736, -8234474.9118348565 4978273.837650143, -8234465.483073987 4978268.781367481, -8234453.872451096 4978262.475716315, -8234439.489972886 4978253.7448214255, -8234425.274473911 4978243.691073338, -8234413.251968906 4978234.989592122, -8234400.194192636 4978226.273420228, -8234389.429597877 4978218.527351565, -8234377.629731852 4978211.325130046, -8234364.917046004 4978203.740755576, -8234344.734822323 4978192.055538993, -8234333.803248326 4978185.794032465)"
1358,65th Street Transverse,"LINESTRING (-8234565.42571282 4978310.481079168, -8234604.476590189 4978324.635797947, -8234653.312450802 4978342.053626464, -8234665.590990636 4978347.256933161, -8234676.377849293 4978351.931092386, -8234686.006985248 4978356.443568982, -8234699.343060244 4978363.293130273, -8234711.833107112 4978370.186792303, -8234729.221211574 4978380.608137102, -8234748.112129161 4978393.102006597, -8234758.208806976 4978400.333759536, -8234767.359269119 4978407.565517831, -8234778.357634811 4978416.193659222, -8234788.699215504 4978424.821808237, -8234830.510816247 4978461.333514671, -8234927.180662052 4978545.822479481, -8234945.771017013 4978561.0799591765, -8234965.28532375 4978576.161075247, -8234985.011137518 4978591.139321762, -8235060.90876634 4978647.936335689, -8235080.434205026 4978662.782400509, -8235101.362269294 4978679.304186305, -8235150.576616175 4978722.56376318, -8235155.942215632 4978726.767728199)"
1359,East 85th Street,"LINESTRING (-8232924.687738018 4979866.064846616, -8232944.73637831 4979877.266936139)"
1360,Park Avenue,"LINESTRING (-8232924.687738018 4979866.064846616, -8232919.311006612 4979875.458723969, -8232876.965072315 4979953.006335274, -8232868.727429997 4979967.663270532)"
1361,West 67th Street,"LINESTRING (-8236362.400592949 4979554.528418373, -8236383.039226543 4979566.112362092, -8236389.696132093 4979569.728672211, -8236399.815073807 4979575.020835773)"
1362,East 50th Street,"LINESTRING (-8234737.169423216 4976586.28697148, -8234725.425216937 4976579.659095362, -8234577.860099941 4976497.376812599, -8234565.6706157 4976491.2486545965)"
1363,Park Avenue,"LINESTRING (-8234737.169423216 4976586.28697148, -8234732.683247736 4976595.089856026, -8234690.649008013 4976670.509886444, -8234688.678653026 4976674.036948102, -8234685.61736703 4976679.533288393)"
1364,East 62nd Street,"LINESTRING (-8234118.956631095 4977705.110452051, -8234107.54638329 4977698.761071856, -8234104.663208477 4977697.15902982, -8233959.569384178 4977616.498757582, -8233948.370643403 4977610.267014995)"
1365,Park Avenue,"LINESTRING (-8234118.956631095 4977705.110452051, -8234113.902726214 4977714.178902683, -8234072.447347843 4977788.843289478, -8234067.827588974 4977797.162230901)"
1366,East 79th Street,"LINESTRING (-8233237.272868166 4979300.949336731, -8233257.020945832 4979311.91557703)"
1367,Park Avenue,"LINESTRING (-8233237.272868166 4979300.949336731, -8233229.591823301 4979315.12019113, -8233186.600235956 4979392.722153653, -8233182.247643867 4979400.425053059)"
1368,East 79th Street,"LINESTRING (-8233237.272868166 4979300.949336731, -8233224.3041474875 4979293.555216511, -8233183.082540047 4979270.667289402, -8233131.062941999 4979241.326133109, -8233101.374033805 4979224.832796382, -8233078.854100819 4979212.4995618975, -8233066.620088778 4979205.781704136)"
1369,East 50th Street,"LINESTRING (-8233681.827254648 4975999.774081304, -8233725.097140719 4976023.345015971)"
1370,,"LINESTRING (-8235769.112234819 4981024.946476306, -8235790.763875779 4980981.147406057, -8235797.743607851 4980964.268864128, -8235804.478437043 4980947.478566525, -8235809.910828194 4980935.010833568, -8235816.567733743 4980921.660967347, -8235823.51406997 4980908.575763764, -8235831.696052543 4980895.681709523, -8235839.310305714 4980884.787202619, -8235847.035878374 4980874.201458569, -8235855.5963472165 4980864.39495314, -8235864.557566224 4980855.029529114, -8235873.2293545585 4980848.413457902, -8235883.760178387 4980841.371022581, -8235894.302134164 4980835.122519504, -8235906.8033129815 4980827.947772667, -8235924.736882948 4980818.758811569, -8235919.98354069 4980819.861486443, -8235914.595677337 4980820.302556428, -8235909.46384881 4980819.817379448, -8235904.198436896 4980818.494169617, -8235898.632462357 4980816.038880743, -8235894.535905095 4980813.069011192, -8235890.695382663 4980809.2464081505, -8235888.034846833 4980804.571072618, -8235886.086755744 4980799.087112725, -8235884.828845498 4980794.058927003, -8235884.160928554 4980787.766347351, -8235883.159053137 4980782.252992342, -8235881.7898234 4980777.210113022, -8235879.429850195 4980773.108181035, -8235875.934418184 4980769.3297004085)"
1371,"['Henry Hudson Parkway', 'West Side Highway']","LINESTRING (-8235769.112234819 4981024.946476306, -8235777.895342643 4980992.541908614, -8235786.756374108 4980962.386937916, -8235796.16287108 4980931.3205052875, -8235806.382000336 4980900.91578194, -8235816.901692217 4980871.687346043, -8235828.890801376 4980841.988521926, -8235841.859522052 4980813.274843706, -8235861.841370649 4980776.989579001, -8235874.331417517 4980752.598546948, -8235893.211203154 4980714.078777145, -8235908.172542717 4980685.438985726, -8235922.978034993 4980656.681661616, -8235937.649943879 4980628.835948941, -8235952.5890195435 4980600.710977627, -8235967.583754954 4980572.718404964, -8235982.901316887 4980545.402200814, -8235998.3190663615 4980517.350979204, -8236014.126434054 4980488.3148153005, -8236022.753694591 4980472.7014808385, -8236160.322321314 4980223.523686374, -8236168.5043038875 4980209.233902389, -8236175.584223502 4980198.0461334335, -8236191.80347331 4980174.523927765, -8236197.002093529 4980166.761612327, -8236265.663955451 4980073.614308383, -8236284.031671431 4980047.607904444, -8236302.3659915645 4980020.734203101, -8236319.909943314 4979992.875602811, -8236336.6078669345 4979964.620153779, -8236352.571081914 4979936.320683498, -8236753.911242071 4979210.235775615, -8236801.43353269 4979122.53651096, -8236880.770933779 4978973.966992668, -8236882.184691311 4978971.3210733775, -8236975.203257819 4978805.026484303, -8236994.906807689 4978769.380748471)"
1372,Henry Hudson Parkway,"LINESTRING (-8236166.122066783 4980184.976600914, -8236156.581986422 4980199.795599746, -8236148.589246983 4980213.394403182, -8236141.687438553 4980225.7142003765, -8236126.38100857 4980253.352942755, -8236009.506675187 4980464.8360157795)"
1373,12th Avenue,"LINESTRING (-8236997.7899825005 4978699.2215008205, -8236989.351965098 4978701.617460949, -8236982.728455397 4978706.0419042045, -8236936.664450105 4978791.444341164)"
1374,West Side Highway,"LINESTRING (-8236997.7899825005 4978699.2215008205, -8236990.164597381 4978719.873814484, -8236984.531831146 4978733.558752435, -8236978.498314746 4978746.24416317, -8236953.885575331 4978793.222954073, -8236900.9976852555 4978888.460063684, -8236885.179185614 4978916.991689101, -8236769.774269509 4979145.850385456, -8236749.0243164245 4979185.775157301, -8236730.5786768 4979220.540417416, -8236347.53944093 4979914.460317665, -8236331.3313230695 4979943.55357927, -8236315.791122154 4979970.882800883, -8236298.603392777 4979998.667832948, -8236280.614163064 4980026.364737246, -8236261.778905222 4980053.444270583, -8236242.687612552 4980080.141647322, -8236214.423593839 4980118.1884755455, -8236194.085522871 4980144.915431929, -8236184.4452549685 4980157.852598807, -8236178.200231535 4980167.099743364, -8236166.122066783 4980184.976600914)"
1375,Riverside Boulevard,"LINESTRING (-8236255.934631955 4979979.629932079, -8236238.791430375 4980011.3107837625, -8236234.00469227 4980019.396400426, -8236229.039842981 4980026.55585204, -8236224.008201997 4980032.524515919, -8236218.842977624 4980037.0083668, -8236212.531162496 4980041.271702334, -8236206.308402961 4980044.667670935, -8236199.929796137 4980047.534398597, -8236194.6643842235 4980049.813080157)"
1376,Riverside Boulevard,"LINESTRING (-8236255.934631955 4979979.629932079, -8236277.018543512 4979942.2598902015, -8236285.311845575 4979925.868276512, -8236293.582883743 4979908.212407707, -8236301.8316580085 4979891.423925927, -8236306.42915298 4979880.11891374)"
1377,West 71st Street,"LINESTRING (-8236255.934631955 4979979.629932079, -8236246.427947442 4979973.690702647, -8236240.361035193 4979970.309459783, -8236190.868389587 4979942.406900312)"
1378,12th Avenue,"LINESTRING (-8236936.720109851 4978907.025454984, -8236941.495716006 4978898.632071015, -8236991.711938304 4978809.744960528, -8237043.687008554 4978717.551345715, -8237049.019212163 4978705.4539382085, -8237053.616707133 4978692.709783931, -8237058.1028826125 4978679.612867623, -8237060.2847446315 4978670.675812479, -8237063.746780795 4978642.894558414)"
1379,West 59th Street,"LINESTRING (-8236936.720109851 4978907.025454984, -8236925.421181536 4978900.910484516, -8236888.207075763 4978880.757568072)"
1380,,"LINESTRING (-8236994.906807689 4978769.380748471, -8237010.13531403 4978754.72561152, -8237022.480645558 4978738.835763706, -8237032.599587272 4978720.344187974, -8237040.536666964 4978704.263307174, -8237046.113773454 4978690.137436468, -8237052.191817651 4978672.630792593, -8237063.746780795 4978642.894558414)"
1381,West Side Highway,"LINESTRING (-8236994.906807689 4978769.380748471, -8237005.381971773 4978746.258862382, -8237014.243003239 4978725.635891285, -8237020.543686419 4978709.084628803, -8237027.000216885 4978688.329444086, -8237034.325039378 4978660.959714108, -8237042.395702462 4978625.549688539, -8237048.262239627 4978596.416256085)"
1382,West 56th Street,"LINESTRING (-8237048.262239627 4978596.416256085, -8237019.998220913 4978580.203288677)"
1383,12th Avenue,"LINESTRING (-8237048.262239627 4978596.416256085, -8237052.280873245 4978569.046783674, -8237058.726271762 4978492.465584728, -8237061.431335387 4978476.57616358)"
1384,West 56th Street,"LINESTRING (-8237019.998220913 4978580.203288677, -8236999.470906811 4978568.605815358)"
1385,12th Avenue,"LINESTRING (-8237019.998220913 4978580.203288677, -8237017.01485856 4978610.615486273, -8237015.033371624 4978626.872601257, -8237012.3060441 4978641.571643524, -8237009.1779664075 4978658.269782381, -8237001.897671711 4978687.050620409, -8236997.7899825005 4978699.2215008205)"
1386,West 55th Street,"LINESTRING (-8237033.434483452 4978464.287970316, -8237061.431335387 4978476.57616358)"
1387,12th Avenue,"LINESTRING (-8237033.434483452 4978464.287970316, -8237030.80734347 4978479.545322643, -8237029.271134496 4978487.938346465, -8237019.998220913 4978580.203288677)"
1388,12th Avenue,"LINESTRING (-8237169.878783317 4978181.604998647, -8237074.834202079 4978353.82721422, -8237068.65597034 4978366.144665789)"
1389,West 52nd Street,"LINESTRING (-8237169.878783317 4978181.604998647, -8237156.386861035 4978173.961853855, -8236958.215903524 4978063.915930183, -8236939.6032846635 4978053.979962839)"
1390,West 51st Street,"LINESTRING (-8237221.597818741 4978088.82938387, -8237244.418314353 4978101.308181902)"
1391,12th Avenue,"LINESTRING (-8237221.597818741 4978088.82938387, -8237176.591348613 4978169.816920143, -8237173.129312448 4978176.196003253, -8237169.878783317 4978181.604998647)"
1392,12th Avenue,"LINESTRING (-8237068.65597034 4978366.144665789, -8237061.01945327 4978380.358259876)"
1393,West 54th Street,"LINESTRING (-8237068.65597034 4978366.144665789, -8237063.07886385 4978361.661581975, -8237055.509138477 4978356.634651098, -8236858.106285453 4978246.439684726, -8236853.1303042155 4978243.838057886, -8236839.259895662 4978236.091975293)"
1394,West 44th Street,"LINESTRING (-8237595.865078736 4977455.47415657, -8237585.568025837 4977449.903893393, -8237409.24908437 4977352.020631322, -8237369.374442768 4977329.651651155, -8237363.719412637 4977326.3007176705, -8237346.6096069 4977316.674138836)"
1395,12th Avenue,"LINESTRING (-8237595.865078736 4977455.47415657, -8237585.7684009215 4977466.320746755, -8237564.673357416 4977489.762944192, -8237545.771307879 4977512.617303688, -8237526.8581263935 4977538.073154831)"
1396,West 46th Street,"LINESTRING (-8237474.649285212 4977628.286168349, -8237461.71396038 4977621.143172097, -8237384.747664448 4977578.696832974, -8237329.733572096 4977547.758741484, -8237264.344503204 4977511.000594827, -8237259.045695443 4977507.943546078, -8237245.66509265 4977500.712453806)"
1397,12th Avenue,"LINESTRING (-8237474.649285212 4977628.286168349, -8237462.1815022435 4977651.420105641, -8237423.89872936 4977720.8075485835)"
1398,12th Avenue,"LINESTRING (-8237373.148173505 4977812.683101687, -8237359.1887093615 4977838.56597231, -8237322.497805196 4977904.603612794)"
1399,West 48th Street,"LINESTRING (-8237373.148173505 4977812.683101687, -8237360.2573764725 4977805.3488992555, -8237219.19331774 4977726.804198861, -8237161.808120235 4977694.836804216, -8237158.190236784 4977692.808531672, -8237143.785494676 4977684.680748092)"
1400,12th Avenue,"LINESTRING (-8237271.713853496 4977996.818950585, -8237236.202935931 4978061.314351958, -8237221.597818741 4978088.82938387)"
1401,West 50th Street,"LINESTRING (-8237271.713853496 4977996.818950585, -8237259.012299595 4977989.308233031, -8237241.078729629 4977979.563416321, -8237208.974188484 4977961.264352385, -8237117.035421038 4977910.629771813, -8237066.641087557 4977883.262220992, -8237060.919265729 4977880.1609620135, -8237041.872500854 4977869.813640605)"
1402,West 43rd Street,"LINESTRING (-8237673.866645936 4977379.607151118, -8237699.147302295 4977393.187331192)"
1403,12th Avenue,"LINESTRING (-8237673.866645936 4977379.607151118, -8237664.671655996 4977388.983940103, -8237637.754603122 4977415.468273598, -8237607.676076709 4977443.907413099, -8237595.865078736 4977455.47415657)"
1404,12th Avenue,"LINESTRING (-8237526.8581263935 4977538.073154831, -8237508.612861852 4977567.703143635, -8237498.00411438 4977586.089655091, -8237481.473169998 4977615.984344717, -8237474.649285212 4977628.286168349)"
1405,12th Avenue,"LINESTRING (-8237423.89872936 4977720.8075485835, -8237385.749539863 4977790.151391106)"
1406,West 49th Street,"LINESTRING (-8237322.497805196 4977904.603612794, -8237346.0196135985 4977917.743583831)"
1407,12th Avenue,"LINESTRING (-8237322.497805196 4977904.603612794, -8237277.803029641 4977985.266264136, -8237271.713853496 4977996.818950585)"
1408,West 42nd Street,"LINESTRING (-8237757.723618349 4977295.363425541, -8237787.802144763 4977308.032271564)"
1409,12th Avenue,"LINESTRING (-8237757.723618349 4977295.363425541, -8237744.231696066 4977310.9275901895, -8237731.841836741 4977323.008573613, -8237673.866645936 4977379.607151118)"
1410,West 42nd Street,"LINESTRING (-8237757.723618349 4977295.363425541, -8237744.888481061 4977287.250669662, -8237714.6318434635 4977271.113360065, -8237681.046753091 4977254.814410494, -8237618.496331214 4977220.379478405, -8237519.856130422 4977166.045135465, -8237469.96273465 4977138.562096296, -8237458.340979812 4977131.6693034135)"
1411,East 47th Street,"LINESTRING (-8234889.042604504 4976311.682105375, -8234908.545779292 4976322.115949913)"
1412,Park Avenue,"LINESTRING (-8234889.042604504 4976311.682105375, -8234884.979443091 4976319.029882058, -8234842.833883876 4976395.035608292, -8234837.969222129 4976403.808929143)"
1413,East 46th Street,"LINESTRING (-8234937.299603763 4976217.542879454, -8234924.486730374 4976210.694822544, -8234817.842658194 4976150.473275575, -8234808.469557069 4976145.227052968, -8234780.661948268 4976129.797002808, -8234769.184908767 4976123.22821742)"
1414,Park Avenue,"LINESTRING (-8234937.299603763 4976217.542879454, -8234934.1269982755 4976226.389518015, -8234893.439724391 4976303.349733302, -8234889.042604504 4976311.682105375)"
1415,12th Avenue,"LINESTRING (-8237061.01945327 4978380.358259876, -8237052.7261512065 4978399.775209322, -8237044.254737958 4978425.365661156, -8237038.599707825 4978444.503423693, -8237033.434483452 4978464.287970316)"
1416,,"LINESTRING (-8237061.01945327 4978380.358259876, -8237038.944798246 4978403.185305867, -8237015.166955013 4978445.106072739, -8237012.617738673 4978452.867019866, -8237012.07227317 4978455.204124469)"
1417,12th Avenue,"LINESTRING (-8237077.739640788 4978484.925088396, -8237083.339011174 4978464.978813306, -8237084.4633380305 4978443.694992105, -8237088.760270377 4978426.791437872, -8237099.458073441 4978394.557175965, -8237108.998153803 4978371.715451493, -8237121.254429739 4978346.007551354, -8237126.586633348 4978314.317402792)"
1418,West 55th Street,"LINESTRING (-8237012.07227317 4978455.204124469, -8237033.434483452 4978464.287970316)"
1419,12th Avenue,"LINESTRING (-8237012.07227317 4978455.204124469, -8237009.166834461 4978467.477607512, -8236999.470906811 4978568.605815358)"
1420,West 56th Street,"LINESTRING (-8236999.470906811 4978568.605815358, -8236989.3630970465 4978561.8590026125, -8236981.648656336 4978558.037280687, -8236859.074765023 4978489.878591178, -8236754.99104113 4978431.3921414735, -8236748.946392782 4978427.982035081, -8236738.8051871685 4978421.823268362)"
1421,12th Avenue,"LINESTRING (-8236999.470906811 4978568.605815358, -8236996.23150963 4978606.39687225, -8236995.018127181 4978613.658181142, -8236992.914188804 4978622.389397768, -8236990.108937634 4978629.974097335, -8236986.301811052 4978637.5441037435, -8236977.351723991 4978653.036911851, -8236972.5983817335 4978660.3129545, -8236970.260672428 4978662.341427961, -8236967.232782277 4978664.781476309, -8236963.002641627 4978666.119093431, -8236958.995139959 4978666.41307524, -8236954.252929651 4978665.266546233, -8236949.91146951 4978663.723142011, -8236926.077966531 4978656.050221785)"
1422,West 59th Street,"LINESTRING (-8236888.207075763 4978880.757568072, -8236925.421181536 4978900.910484516, -8236936.720109851 4978907.025454984)"
1423,West 59th Street,"LINESTRING (-8236888.207075763 4978880.757568072, -8236880.236600223 4978876.450640921, -8236815.081302261 4978841.172128246, -8236756.527250104 4978809.53917024, -8236726.894001653 4978793.414044733)"
1424,12th Avenue,"LINESTRING (-8237063.746780795 4978642.894558414, -8237065.850719171 4978622.345300695, -8237077.617189349 4978494.729204643, -8237077.739640788 4978484.925088396)"
1425,65th Street Transverse,"LINESTRING (-8235155.942215632 4978726.767728199, -8235150.576616175 4978722.56376318, -8235101.362269294 4978679.304186305, -8235080.434205026 4978662.782400509, -8235060.90876634 4978647.936335689, -8234985.011137518 4978591.139321762, -8234965.28532375 4978576.161075247, -8234945.771017013 4978561.0799591765, -8234927.180662052 4978545.822479481, -8234830.510816247 4978461.333514671, -8234788.699215504 4978424.821808237, -8234778.357634811 4978416.193659222, -8234767.359269119 4978407.565517831, -8234758.208806976 4978400.333759536, -8234748.112129161 4978393.102006597, -8234729.221211574 4978380.608137102, -8234711.833107112 4978370.186792303, -8234699.343060244 4978363.293130273, -8234686.006985248 4978356.443568982, -8234676.377849293 4978351.931092386, -8234665.590990636 4978347.256933161, -8234653.312450802 4978342.053626464, -8234604.476590189 4978324.635797947, -8234565.42571282 4978310.481079168)"
1426,65th Street Transverse,"LINESTRING (-8235155.942215632 4978726.767728199, -8235167.363595386 4978739.159146105, -8235185.9428184 4978754.22583793, -8235203.842992519 4978769.072064317, -8235219.149422504 4978783.418538188, -8235253.29111033 4978818.946730691, -8235256.441451918 4978821.460314782, -8235260.1149951145 4978823.915102208, -8235263.8887258535 4978825.840714335, -8235275.5216126405 4978831.558755636)"
1427,1st Avenue,"LINESTRING (-8233991.47355024 4975847.857538745, -8233971.847924011 4975888.915036513, -8233967.651179209 4975897.599733346, -8233963.443302457 4975907.386558314, -8233948.370643403 4975940.038768995, -8233931.572532244 4975980.80275312, -8233925.616939485 4975994.57202483, -8233923.156778739 4976001.831392539, -8233920.073228844 4976011.677102301)"
1428,,"LINESTRING (-8233991.47355024 4975847.857538745, -8233972.9722508695 4975864.227615598, -8233964.033295758 4975882.09659974)"
1429,,"LINESTRING (-8233604.1596459225 4976005.108396329, -8233639.214153572 4975975.145160444, -8233645.871059122 4975966.475089712, -8233652.527964673 4975958.113622007, -8233659.251661915 4975950.501606663, -8233666.554220512 4975942.786732296, -8233673.511688685 4975934.322420001, -8233696.421239891 4975903.3013659185, -8233698.62536581 4975900.744447807, -8233700.573456899 4975898.613683226, -8233702.566075784 4975897.394004397, -8233705.14868797 4975896.218410489, -8233707.998466932 4975896.306580028, -8233711.1710724225 4975897.247055151, -8233714.243490368 4975898.525513667, -8233736.796819202 4975909.6054944685)"
1430,FDR Drive,"LINESTRING (-8233561.780315776 4976031.618368742, -8233537.390215344 4976074.822136455, -8233518.6551450435 4976104.609335187, -8233429.209934192 4976238.498551228, -8233419.458346798 4976252.576790747, -8233410.12977347 4976264.524206167, -8233399.999699808 4976277.074151507, -8233388.36681302 4976289.609417453, -8233375.086397769 4976302.952953856, -8233362.206732682 4976316.34059515, -8233312.491448095 4976372.183863164, -8233285.808166151 4976404.822931557, -8233260.07109988 4976438.402636206, -8233234.9574227575 4976474.495436508, -8233211.424482403 4976512.160825908, -8233185.687416132 4976554.22043742, -8233087.971167115 4976716.214825774, -8233009.947336017 4976860.679110801)"
1431,East 52nd Street,"LINESTRING (-8233543.234488611 4976164.0811378155, -8233598.13726147 4976194.397642037, -8233758.593175499 4976283.025829111, -8233771.973778292 4976290.417670792)"
1432,East 59th Street,"LINESTRING (-8233512.877663471 4977009.451634261, -8233501.9906172715 4977003.587693625, -8233463.1401149845 4976982.645077237, -8233460.0343011925 4976980.9255802, -8233422.519632795 4976960.203460242, -8233407.168675014 4976950.5184561275)"
1433,,"LINESTRING (-8232756.083237262 4977166.956339158, -8232791.226800505 4977150.099084606, -8232828.652413311 4977130.126141492, -8232831.568983968 4977129.141457347, -8232834.797249202 4977128.391921723, -8232837.669292064 4977128.142076526, -8232840.730578062 4977128.318437839, -8232843.391113891 4977128.994489574, -8232846.741830564 4977130.199625387, -8232850.214998677 4977131.948542262, -8232884.712908874 4977150.569382507, -8232936.03119413 4977177.111857031, -8232955.968514931 4977179.566231241)"
1434,FDR Drive,"LINESTRING (-8232756.083237262 4977166.956339158, -8232793.186023544 4977133.638672312, -8232837.8585351985 4977093.545926988, -8232869.584590076 4977066.048395097, -8232887.4179725 4977050.146597441, -8232908.991689817 4977028.395566778, -8232929.541267816 4977005.351284423, -8232939.749265122 4976991.992092056, -8232956.202285862 4976967.992620745, -8232973.200772106 4976938.114610558, -8232989.308702423 4976909.324228758)"
1435,,"LINESTRING (-8233009.947336017 4976860.679110801, -8232992.247536981 4976932.632821267, -8232991.0898142755 4976936.248156486, -8232985.713082871 4976953.09034551)"
1436,FDR Drive,"LINESTRING (-8233009.947336017 4976860.679110801, -8232977.709211484 4976917.81877873, -8232966.666317995 4976933.191287596, -8232951.215172674 4976952.531878045, -8232941.5303769745 4976964.333184188, -8232930.843705858 4976976.7370630475, -8232920.001187456 4976987.730087334, -8232908.167925584 4976999.119931694, -8232884.980075652 4977020.723931029, -8232784.15801284 4977112.872138155, -8232763.652962637 4977136.710300716)"
1437,FDR Drive,"LINESTRING (-8232989.308702423 4976909.324228758, -8233007.565098913 4976878.579310328, -8233019.075534262 4976856.946232602, -8233094.149398854 4976718.25759172, -8233169.50156217 4976596.427189765, -8233183.884040381 4976573.883588353, -8233196.129184369 4976555.484285991, -8233219.138923115 4976523.388461299, -8233242.148661862 4976491.307437869, -8233269.087978634 4976452.246031633, -8233293.010537206 4976421.061680225, -8233327.820141977 4976376.254555971, -8233349.31593565 4976351.433643152, -8233375.453752087 4976323.453246285, -8233384.9938324485 4976313.430875724, -8233397.149920843 4976301.307054109, -8233408.159418482 4976289.5947219385, -8233418.122512908 4976277.323974938)"
1438,Lincoln Tunnel Expressway,"LINESTRING (-8237490.367597311 4976816.193288989, -8237508.000604652 4976822.6596661, -8237529.039988413 4976830.551591233, -8237553.274241557 4976839.648622717)"
1439,West 39th Street,"LINESTRING (-8237403.415943052 4976733.571001838, -8237464.663926887 4976768.107091658)"
1440,,"LINESTRING (-8237403.415943052 4976733.571001838, -8237405.441957785 4976740.492906229, -8237407.712875398 4976745.107511879, -8237411.330758847 4976749.824993157, -8237433.171642941 4976768.665548581)"
1441,,"LINESTRING (-8237395.489995309 4976767.84255944, -8237406.109874729 4976769.018258233, -8237419.468213626 4976769.018258233, -8237433.171642941 4976768.665548581)"
1442,Lincoln Tunnel Expressway,"LINESTRING (-8237395.489995309 4976767.84255944, -8237415.18241323 4976778.688386162, -8237437.847061555 4976790.900977818, -8237449.190517667 4976796.735398234, -8237463.572995878 4976805.215154018, -8237476.10757054 4976810.843834799, -8237490.367597311 4976816.193288989)"
1443,West 39th Street,"LINESTRING (-8237464.663926887 4976768.107091658, -8237520.869137789 4976799.189676882, -8237572.922131684 4976827.524148064, -8237593.349258245 4976838.972591006, -8237607.086083409 4976846.291371574)"
1444,Lincoln Tunnel Expressway,"LINESTRING (-8237082.236948216 4976457.801030218, -8237083.361275073 4976471.40932052, -8237084.062587864 4976477.625640863, -8237086.734255645 4976487.6481798645, -8237091.086847734 4976497.714816632, -8237100.504476655 4976510.896982942)"
1445,Lincoln Tunnel Expressway,"LINESTRING (-8237082.236948216 4976457.801030218, -8237079.309245609 4976471.967760485, -8237079.888106961 4976482.284209765, -8237082.281476012 4976493.629377393, -8237086.16652624 4976507.663897027, -8237091.242695021 4976518.7004810795, -8237096.908857103 4976529.751773475, -8237106.949875172 4976543.639386031, -8237122.890826254 4976558.423469346, -8237147.369982279 4976579.321088497, -8237170.357457127 4976596.353709884, -8237199.623351257 4976618.427090839, -8237223.211951357 4976636.650159301, -8237247.691107381 4976655.461104335, -8237270.689714179 4976675.462469216, -8237301.859171603 4976705.765864197, -8237317.566351755 4976718.272287878, -8237332.271656486 4976728.809439882, -8237344.171710053 4976737.406706212, -8237358.81022309 4976746.944537027, -8237372.769687236 4976755.0862366455, -8237391.070611523 4976765.153148987, -8237395.489995309 4976767.84255944)"
1446,Lincoln Tunnel Expressway,"LINESTRING (-8237098.300350738 4976418.754453657, -8237094.771522879 4976424.2212588955, -8237090.385534942 4976432.201036549, -8237086.578408357 4976441.047869486, -8237083.984664222 4976449.365663242, -8237082.236948216 4976457.801030218)"
1447,Lincoln Tunnel Expressway,"LINESTRING (-8237408.080229716 4976203.258955028, -8237388.332152051 4976219.703104409, -8237371.266874112 4976229.299211521, -8237353.834241854 4976237.5580432555, -8237335.021247909 4976244.376728101, -8237319.2250121655 4976249.182140322, -8237275.020042373 4976262.114148253, -8237260.092098657 4976266.963655638, -8237247.83582272 4976271.489864704, -8237231.126767153 4976278.867002157, -8237217.957671391 4976285.685715831, -8237204.510276904 4976293.136341603, -8237193.244744436 4976299.984456296, -8237183.971830852 4976308.140478986, -8237173.975340579 4976317.7954551885, -8237165.470531483 4976327.406354217, -8237157.700431025 4976336.679264229, -8237112.348870476 4976392.978214258, -8237098.300350738 4976418.754453657)"
1448,West 31st Street,"LINESTRING (-8237573.779291763 4975860.877184711, -8237582.896358059 4975865.65301856)"
1449,Lincoln Tunnel Expressway,"LINESTRING (-8237573.779291763 4975860.877184711, -8237569.426699672 4975868.94467156, -8237567.957282393 4975871.575055779, -8237480.48242653 4976032.250259206, -8237469.918206853 4976058.5398777565, -8237460.945855894 4976088.3123316355, -8237454.901207543 4976106.60788754, -8237448.7897675 4976123.624989567, -8237441.442681107 4976141.244628166, -8237430.154884743 4976164.463216295, -8237420.5702765845 4976181.3187702205, -8237408.080229716 4976203.258955028)"
1450,Lincoln Tunnel Expressway,"LINESTRING (-8237281.420913092 4976648.054290406, -8237260.581904416 4976624.393672415, -8237253.76915158 4976617.280802183, -8237247.958274159 4976611.564056929, -8237242.136264793 4976606.640898531, -8237235.946901103 4976602.717069583, -8237228.900377337 4976598.719762313, -8237150.687303105 4976555.322630932, -8237139.332715045 4976549.003389817, -8237132.542226107 4976544.330093203, -8237125.384382848 4976538.775045417, -8237117.413907307 4976531.5593663715, -8237112.18189124 4976526.680335903, -8237108.218917367 4976522.315663119, -8237105.0463118795 4976517.730554418, -8237100.504476655 4976510.896982942)"
1451,,"LINESTRING (-8237281.420913092 4976648.054290406, -8237272.192527306 4976627.465140705, -8237258.544757735 4976610.006281168, -8237250.307115415 4976599.116553771, -8237241.434951998 4976589.71113097, -8237228.666606406 4976579.394568248, -8237202.350678783 4976558.2324224, -8237191.9089105455 4976551.354734871, -8237184.439372712 4976547.475015835, -8237176.37984158 4976545.3881979, -8237167.719185196 4976544.506443977, -8237159.659654061 4976544.212526021, -8237152.791241481 4976545.3881979, -8237145.922828898 4976547.783629793, -8237139.956104193 4976551.354734871, -8237135.180498038 4976555.543069649, -8237127.599640714 4976564.948459555, -8237112.938863777 4976578.821426195)"
1452,,"LINESTRING (-8237281.420913092 4976648.054290406, -8237263.609794566 4976633.784432571, -8237223.601569574 4976609.006953452, -8237164.134697592 4976576.602338047, -8237151.655782674 4976573.854196467, -8237138.76498564 4976574.765344927, -8237127.343605886 4976578.057236842, -8237118.2710673865 4976582.686461723, -8237103.198408334 4976595.075160052)"
1453,Lincoln Tunnel,"LINESTRING (-8237281.420913092 4976648.054290406, -8237291.896077176 4976660.134454111, -8237306.734965299 4976673.91937936, -8237322.1304508755 4976686.1759283785, -8237337.815367128 4976695.978239441, -8237523.819104295 4976798.175633532, -8237548.966177266 4976806.699479446, -8237588.740631325 4976814.826532559, -8237611.616786683 4976822.953592434, -8237637.576491936 4976834.725349377)"
1454,Lincoln Tunnel Expressway,"LINESTRING (-8237100.504476655 4976510.896982942, -8237097.30960727 4976495.672096799, -8237096.073960922 4976487.060347381, -8237094.983029911 4976478.889479525, -8237094.415300509 4976470.718618505, -8237094.526619999 4976462.88576714, -8237095.172273045 4976456.169800148, -8237096.875461255 4976447.3229535185, -8237098.979399631 4976441.136043941, -8237101.651067411 4976435.0667041475, -8237105.068575778 4976429.144325371, -8237109.454563715 4976422.060988718, -8237114.441676903 4976416.138617823, -8237119.618033224 4976411.083296625, -8237127.210022497 4976404.191016995)"
1455,Lincoln Tunnel Expressway,"LINESTRING (-8237100.504476655 4976510.896982942, -8237105.0463118795 4976517.730554418, -8237108.218917367 4976522.315663119, -8237112.18189124 4976526.680335903, -8237117.413907307 4976531.5593663715, -8237125.384382848 4976538.775045417, -8237132.542226107 4976544.330093203, -8237139.332715045 4976549.003389817, -8237150.687303105 4976555.322630932, -8237228.900377337 4976598.719762313, -8237235.946901103 4976602.717069583, -8237242.136264793 4976606.640898531, -8237247.958274159 4976611.564056929, -8237253.76915158 4976617.280802183, -8237260.581904416 4976624.393672415, -8237281.420913092 4976648.054290406)"
1456,,"LINESTRING (-8237127.210022497 4976404.191016995, -8237153.681797407 4976390.171341668, -8237224.013451691 4976348.42104405, -8237252.399921843 4976330.154426472)"
1457,Lincoln Tunnel Expressway,"LINESTRING (-8237127.210022497 4976404.191016995, -8237148.115822867 4976382.60307666, -8237190.984958772 4976347.304178279, -8237214.261864298 4976327.230007361, -8237235.334643904 4976312.931227022, -8237245.921127479 4976306.259449725, -8237262.852822028 4976296.38405205, -8237277.45793922 4976288.580731481, -8237305.922333017 4976274.972695836, -8237358.454000721 4976250.328385788, -8237377.367182208 4976240.879212435, -8237386.439720707 4976235.677027585, -8237396.124516406 4976229.240429824, -8237404.083859996 4976223.56799787, -8237412.054335538 4976217.175494304, -8237422.19554115 4976207.652876059)"
1458,,"LINESTRING (-8237422.19554115 4976207.652876059, -8237442.700591354 4976169.430237883, -8237452.953116455 4976149.562166683, -8237461.480189449 4976129.782307533, -8237466.745601365 4976114.4845390245, -8237476.608508249 4976082.625286298, -8237478.91282171 4976074.969088373, -8237481.250531014 4976068.723633855, -8237483.7886154065 4976064.638374, -8237486.40462344 4976062.757391619, -8237489.16534681 4976061.478911616, -8237494.953960332 4976059.289331306, -8237502.712928841 4976057.58469194)"
1459,Lincoln Tunnel Expressway,"LINESTRING (-8237422.19554115 4976207.652876059, -8237434.262573952 4976192.751760577, -8237444.526231002 4976179.628804914, -8237455.157242374 4976165.580061165)"
1460,Lincoln Tunnel Expressway,"LINESTRING (-8237455.157242374 4976165.580061165, -8237469.895942953 4976136.63030773, -8237478.077925527 4976118.8196391, -8237483.565976424 4976102.346269047, -8237487.094804283 4976086.56360158, -8237489.2210065555 4976071.809622646, -8237488.530825715 4976057.187922478, -8237489.154214862 4976046.769056009, -8237491.658903405 4976036.5118471235, -8237576.97416115 4975876.674182513, -8237578.566029866 4975873.705814465, -8237582.896358059 4975865.65301856)"
1461,West 31st Street,"LINESTRING (-8237582.896358059 4975865.65301856, -8237589.475339965 4975869.312043616, -8237686.367824751 4975923.242411167, -8237701.37369211 4975931.57445908)"
1462,Dyer Avenue,"LINESTRING (-8237582.896358059 4975865.65301856, -8237586.948387524 4975857.350416595, -8237601.108226752 4975825.932846821, -8237604.837429694 4975816.234272256, -8237606.329110869 4975812.0462543955, -8237607.5202294225 4975806.829603082)"
1463,Dyer Avenue,"LINESTRING (-8237607.5202294225 4975806.829603082, -8237604.8040338475 4975807.961101862, -8237601.887463189 4975809.327717448, -8237598.202788042 4975811.840527248, -8237596.777898561 4975814.1476104995, -8237595.286217384 4975816.08732423, -8237592.892848332 4975821.612571506)"
1464,Dyer Avenue,"LINESTRING (-8237592.892848332 4975821.612571506, -8237578.009432415 4975852.177825662, -8237573.779291763 4975860.877184711)"
1465,,"LINESTRING (-8237198.332045165 4976324.849325112, -8237173.541194564 4976346.172617036, -8237147.459037872 4976368.509954144, -8237136.995005737 4976377.47429458, -8237117.202400274 4976398.136395833, -8237098.300350738 4976418.754453657)"
1466,West 36th Street,"LINESTRING (-8237241.223444967 4976287.963519951, -8237233.709379338 4976283.89286393, -8237167.6857893495 4976247.227645158, -8237140.880055966 4976232.091342464, -8237128.312085455 4976224.978757841)"
1467,,"LINESTRING (-8237241.223444967 4976287.963519951, -8237232.763163666 4976295.737448979, -8237213.00395405 4976315.326601919, -8237198.332045165 4976324.849325112)"
1468,Dyer Avenue,"LINESTRING (-8237252.399921843 4976330.154426472, -8237258.9566398505 4976318.162844121, -8237263.131120755 4976311.873147497, -8237269.220296901 4976303.467297585)"
1469,West 33rd Street,"LINESTRING (-8237475.406257749 4976042.110694766, -8237502.712928841 4976057.58469194)"
1470,,"LINESTRING (-8237475.406257749 4976042.110694766, -8237477.031522315 4976046.151859755, -8237478.233772815 4976049.619915404, -8237478.578863236 4976055.468588317, -8237477.955474088 4976060.317993135, -8237476.341341471 4976066.0638062, -8237461.903203515 4976111.95695614, -8237456.782506938 4976127.107767988, -8237448.511468773 4976147.196223026, -8237437.568762829 4976165.844577074, -8237425.112111809 4976184.478271359, -8237408.080229716 4976203.258955028)"
1471,West 33rd Street,"LINESTRING (-8237502.712928841 4976057.58469194, -8237586.135755242 4976103.639449635, -8237601.620296411 4976112.192080101)"
1472,,"LINESTRING (-8237317.020886249 4976584.611632081, -8237290.716090574 4976582.745245546, -8237279.662065138 4976580.026494142, -8237265.624677349 4976576.190851558, -8237255.294228605 4976572.898960272, -8237244.896988163 4976569.621766033, -8237234.833706196 4976565.124810703, -8237205.990826131 4976549.635313744, -8237188.23536735 4976541.199867476, -8237178.606231397 4976538.657478303, -8237170.290665434 4976537.0703223925, -8237162.531696925 4976536.61474991, -8237153.960096135 4976537.4083277965, -8237145.4998148335 4976540.391593389, -8237138.520082761 4976543.962695765, -8237132.7092053415 4976548.312682315, -8237128.12284232 4976553.632600931, -8237123.024409642 4976561.112822892, -8237112.938863777 4976578.821426195)"
1473,,"LINESTRING (-8237317.020886249 4976584.611632081, -8237293.577001487 4976574.64777738, -8237280.6082808105 4976570.591697846, -8237265.591281502 4976564.889675842, -8237253.090102687 4976559.848973592, -8237242.024945301 4976554.249829245, -8237201.371067263 4976531.191969414)"
1474,,"LINESTRING (-8237112.938863777 4976578.821426195, -8237103.198408334 4976595.075160052)"
1475,East 41st Street,"LINESTRING (-8235225.271994498 4975758.572036783, -8235198.510788909 4975743.671606189)"
1476,East 61st Street,"LINESTRING (-8233464.119726503 4977220.7322043665, -8233470.943611289 4977224.200677003, -8233491.838279712 4977235.781857267, -8233556.381320475 4977271.539572817, -8233572.277743758 4977280.34307486)"
1477,11th Avenue,"LINESTRING (-8237607.086083409 4976846.291371574, -8237612.251307782 4976836.679962076, -8237651.625011674 4976765.03557915, -8237656.623256811 4976755.497730671)"
1478,11th Avenue,"LINESTRING (-8237607.086083409 4976846.291371574, -8237599.026552275 4976854.565421268, -8237590.62193072 4976862.854174345, -8237581.605051966 4976879.549272817, -8237561.923765994 4976916.011114362, -8237559.274362111 4976918.788745113, -8237556.8921250105 4976920.346570113, -8237554.020082147 4976920.90503574, -8237551.526525554 4976920.53762414, -8237548.109017186 4976919.641139894, -8237523.039867859 4976906.179189638, -8237431.657697867 4976857.107892652, -8237427.6279323 4976853.845299435, -8237424.689097744 4976849.436391411, -8237423.542506989 4976845.306716037, -8237423.598166734 4976841.368094887, -8237424.889472826 4976838.0467215665, -8237427.216050183 4976835.371988121, -8237429.887717964 4976833.285108688, -8237434.251442003 4976830.948392107, -8237439.928736033 4976829.331796057, -8237455.457804998 4976827.891556164, -8237475.896063508 4976826.862813516)"
1479,12th Avenue,"LINESTRING (-8237409.126632932 4977803.232417013, -8237453.053303998 4977723.849966279, -8237498.393732598 4977641.763811304)"
1480,,"LINESTRING (-8237433.171642941 4976768.665548581, -8237464.663926887 4976768.107091658)"
1481,,"LINESTRING (-8237433.171642941 4976768.665548581, -8237446.240551161 4976780.731165172, -8237456.7602430405 4976789.857542795, -8237465.454295273 4976797.0881089, -8237473.491562507 4976803.613258514, -8237490.367597311 4976816.193288989)"
1482,,"LINESTRING (-8237201.371067263 4976531.191969414, -8237176.413237427 4976521.125298155, -8237162.208870402 4976519.317707187, -8237148.783739811 4976522.007049967, -8237138.019145052 4976527.238779025, -8237128.779627318 4976535.747692665, -8237122.590263628 4976547.283969105, -8237112.938863777 4976578.821426195)"
1483,Dyer Avenue,"LINESTRING (-8237201.371067263 4976531.191969414, -8237195.526793998 4976526.548073062, -8237190.561944707 4976521.904178917, -8237186.498783293 4976517.554204126, -8237183.03674713 4976512.043259113, -8237180.977336551 4976506.458838006, -8237178.750946734 4976499.669361906, -8237177.481904538 4976492.923977986, -8237176.925307084 4976484.914759118, -8237176.7471958995 4976476.670414076, -8237177.237001658 4976471.394624732, -8237178.038501992 4976467.04467243, -8237178.183217331 4976466.2364044795, -8237179.964329182 4976460.975316542, -8237185.274268895 4976450.820543088, -8237229.612822078 4976371.111081586, -8237252.399921843 4976330.154426472)"
1484,,"LINESTRING (-8237103.198408334 4976595.075160052, -8237091.198167225 4976616.590089855, -8237064.737524263 4976662.809139579)"
1485,1st Avenue,"LINESTRING (-8233989.224896526 4975938.583965206, -8233979.929719045 4975945.284881425, -8233974.552987639 4975949.840331479, -8233965.524976935 4975963.15401381, -8233941.936376836 4976004.535287962, -8233937.76189593 4976010.442714265, -8233930.7265041135 4976017.5110573955)"
1486,East 49th Street,"LINESTRING (-8233920.073228844 4976011.677102301, -8233930.7265041135 4976017.5110573955)"
1487,1st Avenue,"LINESTRING (-8233920.073228844 4976011.677102301, -8233915.698372857 4976019.9945305195, -8233913.494246938 4976024.2561130915)"
1488,East 47th Street,"LINESTRING (-8234019.203235396 4975807.461479008, -8234032.327803359 4975815.661174969, -8234034.320422245 4975817.17473967, -8234036.32417308 4975819.085064386, -8234038.116416881 4975821.3039804865, -8234041.622980842 4975830.547020524, -8234045.597086662 4975837.48298)"
1489,1st Avenue,"LINESTRING (-8234019.203235396 4975807.461479008, -8234008.060154367 4975817.439246147, -8233991.47355024 4975847.857538745)"
1490,Riverside Boulevard,"LINESTRING (-8236342.307424862 4979783.343252639, -8236317.104692147 4979854.0248198435, -8236311.616641251 4979867.329123793, -8236306.42915298 4979880.11891374)"
1491,Riverside Boulevard,"LINESTRING (-8236342.307424862 4979783.343252639, -8236346.626621104 4979770.347778906, -8236351.212984127 4979755.044307692, -8236368.31165791 4979690.861134397, -8236371.050117385 4979680.45309199)"
1492,,"LINESTRING (-8236194.6643842235 4980049.813080157, -8236197.747934118 4980061.956256674, -8236205.384451186 4980089.815054046, -8236206.041236184 4980093.181637052, -8236206.185951521 4980096.724636143, -8236205.70727771 4980100.370545263, -8236204.582950853 4980103.707729402, -8236203.002214083 4980107.441848687, -8236186.86088792 4980135.9329318255, -8236177.087036627 4980152.986457892, -8236172.400486065 4980163.65962815, -8236166.122066783 4980184.976600914)"
1493,West 72nd Street,"LINESTRING (-8236194.6643842235 4980049.813080157, -8236187.695784099 4980051.239094051, -8236179.83662805 4980051.621324615, -8236172.701048689 4980051.547818735, -8236166.133198733 4980050.974472901, -8236160.990238259 4980050.121804797, -8236154.734082876 4980048.254755936, -8236146.496440557 4980045.402729229, -8236111.475328755 4980025.732588342, -8236087.775409162 4980011.987035083, -8236056.995569959 4979995.47769562, -8236048.913774927 4979991.390793099)"
1494,Riverside Boulevard,"LINESTRING (-8236194.6643842235 4980049.813080157, -8236199.929796137 4980047.534398597, -8236206.308402961 4980044.667670935, -8236212.531162496 4980041.271702334, -8236218.842977624 4980037.0083668, -8236224.008201997 4980032.524515919, -8236229.039842981 4980026.55585204, -8236234.00469227 4980019.396400426, -8236238.791430375 4980011.3107837625, -8236255.934631955 4979979.629932079)"
1495,Riverside Boulevard,"LINESTRING (-8236486.054283323 4979382.946536249, -8236481.044906237 4979391.149234103, -8236478.261918969 4979395.691591255, -8236468.632783014 4979413.537636249, -8236441.459695311 4979468.193189457, -8236435.159012133 4979480.365043382)"
1496,Riverside Boulevard,"LINESTRING (-8236486.054283323 4979382.946536249, -8236490.874417276 4979374.90554701, -8236496.329072325 4979366.011956022, -8236506.114055565 4979350.253414688, -8236515.409233046 4979336.126609605, -8236538.352180098 4979304.565548658, -8236545.198328783 4979295.14282038)"
1497,West 65th Street,"LINESTRING (-8236486.054283323 4979382.946536249, -8236475.523459495 4979377.301672911, -8236455.7865137765 4979366.702862801)"
1498,West 71st Street,"LINESTRING (-8236171.621249629 4979930.675500277, -8235984.67129679 4979825.402251686, -8235969.754485025 4979817.155086599)"
1499,West 71st Street,"LINESTRING (-8236190.868389587 4979942.406900312, -8236240.361035193 4979970.309459783, -8236246.427947442 4979973.690702647, -8236255.934631955 4979979.629932079)"
1500,Thelonius Monk Circle,"LINESTRING (-8236439.667451509 4979236.401649085, -8236444.109099193 4979228.434280188, -8236445.055314864 4979226.72908769, -8236485.219387143 4979154.537978397, -8236490.317819821 4979145.379991474)"
1501,West 64th Street,"LINESTRING (-8236439.667451509 4979236.401649085, -8236341.394605038 4979181.703293494, -8236325.442522007 4979172.824578298)"
1502,West 63rd Street,"LINESTRING (-8236490.317819821 4979145.379991474, -8236392.167424789 4979089.888360327, -8236376.037230573 4979081.171425466)"
1503,Thelonius Monk Circle,"LINESTRING (-8236490.317819821 4979145.379991474, -8236485.219387143 4979154.537978397, -8236445.055314864 4979226.72908769, -8236444.109099193 4979228.434280188, -8236439.667451509 4979236.401649085)"
1504,West 63rd Street,"LINESTRING (-8236490.317819821 4979145.379991474, -8236500.937699243 4979151.304017347, -8236603.808040684 4979208.795184617, -8236613.158877911 4979215.615943872)"
1505,Riverside Boulevard,"LINESTRING (-8236545.198328783 4979295.14282038, -8236538.352180098 4979304.565548658, -8236515.409233046 4979336.126609605, -8236506.114055565 4979350.253414688, -8236496.329072325 4979366.011956022, -8236490.874417276 4979374.90554701, -8236486.054283323 4979382.946536249)"
1506,Riverside Boulevard,"LINESTRING (-8236545.198328783 4979295.14282038, -8236550.786567219 4979288.233805421, -8236585.384664959 4979245.456821624, -8236603.61879755 4979225.86179162, -8236613.158877911 4979215.615943872)"
1507,West 64th Street,"LINESTRING (-8236545.198328783 4979295.14282038, -8236534.934671731 4979289.439207679, -8236456.34311123 4979245.692021022, -8236449.619413988 4979241.943531281, -8236439.667451509 4979236.401649085)"
1508,West 62nd Street,"LINESTRING (-8236689.023110887 4979134.810832651, -8236678.3920995165 4979129.401309334, -8236609.084584548 4979090.5939473, -8236591.117618735 4979080.701034599, -8236565.992809662 4979066.66281758, -8236557.510264465 4979062.150012834)"
1509,Riverside Boulevard,"LINESTRING (-8236689.023110887 4979134.810832651, -8236620.338985069 4979207.971989857, -8236613.158877911 4979215.615943872)"
1510,"['Riverside Boulevard', 'West 61st Street']","LINESTRING (-8236689.023110887 4979134.810832651, -8236752.953894449 4979065.780836032, -8236762.148884388 4979055.843849435, -8236659.111563711 4979000.440924586, -8236657.018757283 4978999.235557997, -8236601.759762054 4978967.484491681, -8236591.618556444 4978961.663474054)"
1511,East 46th Street,"LINESTRING (-8234962.346489193 4976231.856215618, -8234937.299603763 4976217.542879454)"
1512,Park Avenue,"LINESTRING (-8234962.346489193 4976231.856215618, -8234968.201894408 4976224.596676995, -8234970.829034392 4976221.348990411, -8235001.386234615 4976164.272177053, -8235004.558840102 4976162.523433401, -8235007.842765081 4976161.671104676, -8235012.473655897 4976162.773253905, -8235043.643113318 4976179.981493302, -8235046.481760334 4976181.010167837, -8235048.908525234 4976181.3187702205, -8235051.48000547 4976181.098339945, -8235053.439228509 4976180.672174764, -8235055.086756972 4976179.702281661, -8235056.344667218 4976178.0857933685, -8235138.264680493 4976031.059953948, -8235195.226863932 4975928.826498929, -8235196.32892689 4975925.946284845, -8235197.631364933 4975922.05211919, -8235197.90966366 4975917.952225707, -8235197.564573239 4975913.98458849, -8235196.017232317 4975909.517324811, -8235193.946689787 4975906.357912587, -8235190.184090999 4975902.757653391, -8235187.222992545 4975900.37707457, -8235180.721934282 4975896.45352926, -8235150.331713295 4975877.173808907, -8235149.073803049 4975875.557370666, -8235148.417018053 4975873.911542915, -8235148.294566615 4975871.707309754, -8235148.439281952 4975869.885144048, -8235150.910574647 4975858.687649356)"
1513,East 49th Street,"LINESTRING (-8234806.799764708 4976506.150225353, -8234819.300943523 4976513.057272763, -8234964.094205197 4976593.017723891, -8234976.038786559 4976599.689697015)"
1514,Park Avenue,"LINESTRING (-8234806.799764708 4976506.150225353, -8234811.185752645 4976498.229170612, -8234853.008485336 4976422.898644444, -8234857.4835288655 4976414.8747872785)"
1515,East 50th Street,"LINESTRING (-8234756.5278826635 4976597.32364435, -8234737.169423216 4976586.28697148)"
1516,Park Avenue,"LINESTRING (-8234756.5278826635 4976597.32364435, -8234760.624439926 4976590.093226096, -8234802.558492109 4976513.880240439, -8234806.799764708 4976506.150225353)"
1517,Park Avenue,"LINESTRING (-8234705.098277918 4976690.3496248415, -8234709.684640939 4976682.119802542, -8234751.819068206 4976605.656267149, -8234756.5278826635 4976597.32364435)"
1518,East 51st Street,"LINESTRING (-8234705.098277918 4976690.3496248415, -8234717.810963767 4976697.315586991, -8234826.46991873 4976757.45232752, -8234862.927051964 4976777.336331226, -8234874.203716383 4976783.670416293)"
1519,East 48th Street,"LINESTRING (-8234857.4835288655 4976414.8747872785, -8234837.969222129 4976403.808929143)"
1520,Park Avenue,"LINESTRING (-8234857.4835288655 4976414.8747872785, -8234862.203475274 4976406.263109081, -8234904.304506692 4976329.816428239, -8234908.545779292 4976322.115949913)"
1521,East 53rd Street,"LINESTRING (-8234603.7307496015 4976873.318000332, -8234616.332115959 4976880.240003738, -8234761.258961024 4976959.762564551, -8234773.726743992 4976966.596450008)"
1522,Park Avenue,"LINESTRING (-8234603.7307496015 4976873.318000332, -8234608.239188978 4976864.999845615, -8234649.9951299755 4976790.357215892, -8234653.991499695 4976783.2148323115)"
1523,East 55th Street,"LINESTRING (-8234501.327950021 4977059.082170018, -8234513.584225957 4977065.88673159, -8234658.934085087 4977146.645335084, -8234671.223756869 4977152.671026532)"
1524,Park Avenue,"LINESTRING (-8234501.327950021 4977059.082170018, -8234506.67128558 4977049.4852478225, -8234548.438358525 4976974.268043252, -8234552.913402054 4976966.199643626)"
1525,East 52nd Street,"LINESTRING (-8234653.991499695 4976783.2148323115, -8234634.621908297 4976772.207341919)"
1526,Park Avenue,"LINESTRING (-8234653.991499695 4976783.2148323115, -8234659.156724067 4976773.823928515, -8234700.8124775225 4976698.065089542, -8234705.098277918 4976690.3496248415)"
1527,East 54th Street,"LINESTRING (-8234552.913402054 4976966.199643626, -8234533.5326787075 4976954.971499315)"
1528,Park Avenue,"LINESTRING (-8234552.913402054 4976966.199643626, -8234557.92277914 4976957.043708224, -8234598.598921075 4976882.53264289, -8234603.7307496015 4976873.318000332)"
1529,Park Avenue,"LINESTRING (-8234190.011862069 4977624.259046362, -8234236.06473541 4977540.571711926, -8234240.328271908 4977532.8114896305)"
1530,East 61st Street,"LINESTRING (-8234190.011862069 4977624.259046362, -8234201.778332245 4977630.799446048, -8234346.382350786 4977711.107092693, -8234347.339698408 4977711.63620822, -8234358.037501472 4977717.588759879)"
1531,East 57th Street,"LINESTRING (-8234397.166302486 4977248.700474294, -8234377.429356768 4977237.751247154)"
1532,East 57th Street,"LINESTRING (-8234397.166302486 4977248.700474294, -8234409.344654778 4977255.505167947, -8234553.559055102 4977336.147762326, -8234566.03797002 4977343.128882087)"
1533,Park Avenue,"LINESTRING (-8234397.166302486 4977248.700474294, -8234405.0031946385 4977234.370951323, -8234446.503100807 4977158.417482084, -8234450.989276285 4977150.216659078)"
1534,East 58th Street,"LINESTRING (-8234342.107682341 4977348.184685618, -8234321.981118403 4977336.882616802)"
1535,Park Avenue,"LINESTRING (-8234342.107682341 4977348.184685618, -8234347.083663577 4977339.263545687, -8234388.884132371 4977263.676685381, -8234397.166302486 4977248.700474294)"
1536,East 59th Street,"LINESTRING (-8234291.9359878395 4977439.1161104115, -8234272.009798986 4977427.6963585755)"
1537,Park Avenue,"LINESTRING (-8234291.9359878395 4977439.1161104115, -8234296.032545102 4977431.502941038, -8234337.955465333 4977356.062338196, -8234342.107682341 4977348.184685618)"
1538,East 56th Street,"LINESTRING (-8234450.989276285 4977150.216659078, -8234431.853455817 4977139.590871769)"
1539,Park Avenue,"LINESTRING (-8234450.989276285 4977150.216659078, -8234455.698090745 4977141.633726248, -8234497.042149626 4977066.812622625, -8234501.327950021 4977059.082170018)"
1540,East 64th Street,"LINESTRING (-8234037.170201209 4977900.54698101, -8234017.032505324 4977889.45004398)"
1541,Park Avenue,"LINESTRING (-8234037.170201209 4977900.54698101, -8234041.89014762 4977891.992784729, -8234083.278734296 4977816.960164163, -8234088.087736299 4977808.273760887)"
1542,Park Avenue,"LINESTRING (-8233884.562311282 4978176.298891724, -8233889.349049386 4978167.23001205, -8233931.160650127 4978092.739111573, -8233935.6245617075 4978084.25823805)"
1543,East 67th Street,"LINESTRING (-8233884.562311282 4978176.298891724, -8233896.918774758 4978183.001343053, -8233980.1412260765 4978229.5217734305, -8234041.7676961785 4978263.798579859, -8234052.89964526 4978269.957246935)"
1544,Park Avenue,"LINESTRING (-8233935.6245617075 4978084.25823805, -8233939.72111897 4978076.379998183, -8233981.554983609 4978000.625754838, -8233985.384374092 4977993.64416516)"
1545,East 66th Street,"LINESTRING (-8233935.6245617075 4978084.25823805, -8233947.1016012095 4978090.637265283, -8234092.952398046 4978172.00697355, -8234103.594541366 4978177.901012348)"
1546,East 62nd Street,"LINESTRING (-8234139.305834013 4977716.339458613, -8234118.956631095 4977705.110452051)"
1547,Park Avenue,"LINESTRING (-8234139.305834013 4977716.339458613, -8234143.93672483 4977707.917702483, -8234190.011862069 4977624.259046362)"
1548,East 63rd Street,"LINESTRING (-8234088.087736299 4977808.273760887, -8234099.019310295 4977814.299860477, -8234245.582551872 4977895.064651603, -8234256.51412587 4977901.149596495)"
1549,Park Avenue,"LINESTRING (-8234088.087736299 4977808.273760887, -8234092.42919644 4977800.469232552, -8234134.519095908 4977724.937594091, -8234139.305834013 4977716.339458613)"
1550,East 70th Street,"LINESTRING (-8233732.421963215 4978451.500034412, -8233712.495774361 4978440.226086416)"
1551,Park Avenue,"LINESTRING (-8233732.421963215 4978451.500034412, -8233736.986062335 4978443.797883395, -8233778.552760198 4978368.349461861, -8233783.239310761 4978359.706664104)"
1552,East 68th Street,"LINESTRING (-8233833.8896790715 4978267.928854964, -8233813.885566575 4978256.787405122)"
1553,Park Avenue,"LINESTRING (-8233833.8896790715 4978267.928854964, -8233838.208875315 4978260.021069994, -8233879.920288513 4978184.882733727, -8233884.562311282 4978176.298891724)"
1554,Park Avenue,"LINESTRING (-8233680.7585875355 4978545.146329679, -8233685.957207756 4978535.739032956, -8233727.646357059 4978460.142913395, -8233732.421963215 4978451.500034412)"
1555,East 71st Street,"LINESTRING (-8233680.7585875355 4978545.146329679, -8233693.315426098 4978552.098915738, -8233838.01963218 4978631.884972185, -8233849.496671681 4978638.161463749)"
1556,Park Avenue,"LINESTRING (-8233783.239310761 4978359.706664104, -8233787.625298699 4978351.9751882395, -8233829.425767491 4978276.365792455, -8233833.8896790715 4978267.928854964)"
1557,East 69th Street,"LINESTRING (-8233783.239310761 4978359.706664104, -8233794.994648988 4978366.247556262, -8233939.776778715 4978446.825827535, -8233952.2890894795 4978453.793042376)"
1558,East 65th Street,"LINESTRING (-8233985.384374092 4977993.64416516, -8233965.513844986 4977982.223765016)"
1559,Park Avenue,"LINESTRING (-8233985.384374092 4977993.64416516, -8233990.916952785 4977983.899344123, -8234032.628365985 4977908.733736012, -8234037.170201209 4977900.54698101)"
1560,East 76th Street,"LINESTRING (-8233415.840463346 4979024.695283891, -8233396.025593986 4979013.788164557)"
1561,Park Avenue,"LINESTRING (-8233415.840463346 4979024.695283891, -8233420.404562468 4979016.478194205, -8233462.861816258 4978940.02578238, -8233467.737609955 4978931.26488281)"
1562,Park Avenue,"LINESTRING (-8233467.737609955 4978931.26488281, -8233472.14586179 4978923.180167026, -8233514.2468932085 4978846.155210432, -8233518.911179871 4978837.585486593)"
1563,East 75th Street,"LINESTRING (-8233467.737609955 4978931.26488281, -8233480.038413686 4978938.10014774, -8233623.629424861 4979017.830559117, -8233635.98588834 4979024.709983522)"
1564,East 77th Street,"LINESTRING (-8233363.709545809 4979119.287860734, -8233375.709786916 4979125.829261612, -8233520.3026735075 4979206.252101027, -8233533.605352658 4979213.646155151)"
1565,Park Avenue,"LINESTRING (-8233363.709545809 4979119.287860734, -8233368.88590213 4979109.8800109755, -8233411.254100326 4979033.000578348, -8233415.840463346 4979024.695283891)"
1566,East 72nd Street,"LINESTRING (-8233625.900342474 4978644.540852748, -8233603.736631857 4978632.031962573)"
1567,East 72nd Street,"LINESTRING (-8233625.900342474 4978644.540852748, -8233637.889451632 4978651.317120743, -8233782.315358988 4978731.2803779775, -8233794.449183485 4978737.806819782)"
1568,Park Avenue,"LINESTRING (-8233625.900342474 4978644.540852748, -8233633.870818016 4978630.459165531, -8233676.9848568 4978552.0254211435, -8233680.7585875355 4978545.146329679)"
1569,East 73rd Street,"LINESTRING (-8233570.385312416 4978744.994730327, -8233582.7974356385 4978751.829864896, -8233726.544294099 4978830.838488039, -8233739.023209019 4978837.703081381)"
1570,Park Avenue,"LINESTRING (-8233570.385312416 4978744.994730327, -8233574.68224476 4978737.233551068, -8233617.84081134 4978659.0341344895, -8233625.900342474 4978644.540852748)"
1571,East 83rd Street,"LINESTRING (-8233047.439740516 4979691.669669228, -8233059.7294123 4979698.329058664, -8233203.943812622 4979778.653707522, -8233215.8216022905 4979785.07794388)"
1572,Park Avenue,"LINESTRING (-8233047.439740516 4979691.669669228, -8233051.825728453 4979683.790132628, -8233094.305246139 4979607.185491548, -8233099.214435684 4979598.335790501)"
1573,East 78th Street,"LINESTRING (-8233312.769746822 4979210.485674075, -8233293.099592798 4979199.578347242)"
1574,Park Avenue,"LINESTRING (-8233312.769746822 4979210.485674075, -8233316.866304083 4979203.370920421, -8233359.21223838 4979127.402138432, -8233363.709545809 4979119.287860734)"
1575,East 80th Street,"LINESTRING (-8233202.307416108 4979411.744210156, -8233182.247643867 4979400.425053059)"
1576,Park Avenue,"LINESTRING (-8233202.307416108 4979411.744210156, -8233206.559820656 4979403.835499012, -8233249.295373171 4979325.998246841, -8233257.020945832 4979311.91557703)"
1577,East 79th Street,"LINESTRING (-8233257.020945832 4979311.91557703, -8233237.272868166 4979300.949336731)"
1578,Park Avenue,"LINESTRING (-8233257.020945832 4979311.91557703, -8233265.113872814 4979298.597329692, -8233307.96074482 4979219.526122662, -8233312.769746822 4979210.485674075)"
1579,East 79th Street,"LINESTRING (-8233257.020945832 4979311.91557703, -8233269.477596851 4979318.927509252, -8233307.504334907 4979340.330838742, -8233323.289438701 4979349.16560587, -8233372.125299313 4979376.125660125, -8233380.106906801 4979380.579809295, -8233404.3077641 4979394.192172156, -8233412.088996506 4979398.440526868, -8233427.172787509 4979406.687338351)"
1580,East 81st Street,"LINESTRING (-8233150.443665346 4979505.473215105, -8233162.955976113 4979512.323582298, -8233307.493202957 4979591.441261522, -8233319.382124575 4979598.071181624)"
1581,Park Avenue,"LINESTRING (-8233150.443665346 4979505.473215105, -8233154.851917183 4979497.53502737, -8233197.665393341 4979420.314437827, -8233202.307416108 4979411.744210156)"
1582,East 88th Street,"LINESTRING (-8232783.100477678 4980170.275235407, -8232762.962781794 4980159.087511088)"
1583,Park Avenue,"LINESTRING (-8232783.100477678 4980170.275235407, -8232787.809292139 4980162.013077708, -8232829.309198307 4980086.463173428, -8232834.006880818 4980078.112879346)"
1584,East 87th Street,"LINESTRING (-8232834.006880818 4980078.112879346, -8232845.918066333 4980084.684324971, -8232990.577744619 4980165.335581564, -8233001.253283785 4980171.201420781)"
1585,Park Avenue,"LINESTRING (-8232834.006880818 4980078.112879346, -8232838.704563329 4980069.556775565, -8232881.128421271 4979993.1843256485, -8232888.798334186 4979978.659661678)"
1586,East 84th Street,"LINESTRING (-8232995.865420432 4979784.930936137, -8232975.81678014 4979773.773054808)"
1587,Park Avenue,"LINESTRING (-8232995.865420432 4979784.930936137, -8233000.251408369 4979776.992521235, -8233042.653002412 4979700.313645799, -8233047.439740516 4979691.669669228)"
1588,East 82nd Street,"LINESTRING (-8233099.214435684 4979598.335790501, -8233078.943156411 4979587.339827615)"
1589,Park Avenue,"LINESTRING (-8233099.214435684 4979598.335790501, -8233103.533631927 4979590.471029689, -8233145.389760465 4979514.646240077, -8233150.443665346 4979505.473215105)"
1590,Park Avenue,"LINESTRING (-8232944.73637831 4979877.266936139, -8232949.122366248 4979869.857678639, -8232961.356378285 4979848.659000727, -8232991.368113003 4979793.222176368, -8232995.865420432 4979784.930936137)"
1591,East 85th Street,"LINESTRING (-8232944.73637831 4979877.266936139, -8232956.480584588 4979883.661835526, -8233101.30724211 4979964.664256913, -8233112.839941357 4979971.103316697)"
1592,Park Avenue,"LINESTRING (-8232528.256767404 4980631.658741963, -8232532.609359494 4980623.410895894, -8232574.543411678 4980547.342854346, -8232579.575052659 4980538.242368772)"
1593,East 93rd Street,"LINESTRING (-8232528.256767404 4980631.658741963, -8232539.711543008 4980637.980625129, -8232685.039138238 4980718.239493051, -8232696.338066553 4980724.752560733)"
1594,Park Avenue,"LINESTRING (-8232732.138414793 4980262.703088204, -8232736.5577985775 4980254.382046375, -8232778.202420083 4980179.066649321, -8232783.100477678 4980170.275235407)"
1595,East 89th Street,"LINESTRING (-8232732.138414793 4980262.703088204, -8232743.77130158 4980269.17174753, -8232855.224375763 4980330.815345588, -8232888.653618848 4980349.456987295, -8232900.59820021 4980356.116825335)"
1596,East 90th Street,"LINESTRING (-8232681.27653945 4980354.132104914, -8232661.261295006 4980342.885363484)"
1597,Park Avenue,"LINESTRING (-8232681.27653945 4980354.132104914, -8232685.707055182 4980346.619574235, -8232727.863746346 4980270.906525077, -8232732.138414793 4980262.703088204)"
1598,East 91st Street,"LINESTRING (-8232629.624295722 4980447.899559251, -8232641.502085388 4980454.500657302, -8232786.2619512165 4980534.905036123, -8232797.805782411 4980541.432683427)"
1599,Park Avenue,"LINESTRING (-8232629.624295722 4980447.899559251, -8232634.867443737 4980438.696254047, -8232676.322822109 4980363.320628769, -8232681.27653945 4980354.132104914)"
1600,East 86th Street,"LINESTRING (-8232888.798334186 4979978.659661678, -8232868.727429997 4979967.663270532)"
1601,East 86th Street,"LINESTRING (-8232888.798334186 4979978.659661678, -8232900.587068262 4979985.319246829, -8233036.485902622 4980061.250599513, -8233044.422982315 4980065.631555206, -8233056.1003968995 4980072.114785189)"
1602,Park Avenue,"LINESTRING (-8232888.798334186 4979978.659661678, -8232896.9580528615 4979964.355534974, -8232906.242098394 4979948.331409698, -8232939.626813683 4979886.48441314, -8232944.73637831 4979877.266936139)"
1603,East 92nd Street,"LINESTRING (-8232579.575052659 4980538.242368772, -8232557.255494758 4980525.819264029)"
1604,Park Avenue,"LINESTRING (-8232579.575052659 4980538.242368772, -8232583.560290431 4980531.27366665, -8232625.04906465 4980456.088449929, -8232629.624295722 4980447.899559251)"
1605,East 74th Street,"LINESTRING (-8233518.911179871 4978837.585486593, -8233499.085178562 4978826.531582901)"
1606,Park Avenue,"LINESTRING (-8233518.911179871 4978837.585486593, -8233523.464147046 4978829.36855433, -8233566.021588375 4978752.873509519, -8233570.385312416 4978744.994730327)"
1607,West 60th Street,"LINESTRING (-8235638.111458053 4978313.47958486, -8235645.324961057 4978315.228713606, -8235653.451283886 4978318.094933656, -8235660.842898073 4978321.402111682)"
1608,Broadway,"LINESTRING (-8235638.111458053 4978313.47958486, -8235638.322965086 4978326.0321628, -8235638.957486182 4978364.513117014, -8235639.1467293175 4978375.3460180275, -8235639.937097702 4978420.617973182, -8235640.070681091 4978431.083468001)"
1609,West 63rd Street,"LINESTRING (-8235644.412141231 4978673.630331449, -8235666.9988659145 4978685.433717147)"
1610,Broadway,"LINESTRING (-8235644.412141231 4978673.630331449, -8235644.91307894 4978687.3152046045, -8235645.536468089 4978732.294622024, -8235646.104197493 4978772.967365077, -8235647.618142568 4978784.153501556, -8235649.009636202 4978795.2367558535)"
1611,Broadway,"LINESTRING (-8235658.193494193 4979643.745720248, -8235658.59424436 4979632.602700778, -8235658.961598678 4979622.7533405945)"
1612,West 71st Street,"LINESTRING (-8235658.193494193 4979643.745720248, -8235670.883916143 4979650.875495311, -8235682.605858524 4979657.270246445, -8235730.194940838 4979683.775432005, -8235956.763500448 4979809.9222844485, -8235969.754485025 4979817.155086599)"
1613,West 79th Street,"LINESTRING (-8235405.086367975 4980506.809739085, -8235425.2574597085 4980517.997861814)"
1614,West 79th Street,"LINESTRING (-8235405.086367975 4980506.809739085, -8235392.5629252605 4980499.841059398, -8235244.1295162365 4980417.246411849, -8235229.769301924 4980409.160465743)"
1615,Broadway,"LINESTRING (-8235405.086367975 4980506.809739085, -8235397.127024383 4980521.452803749, -8235354.035249499 4980598.740909489, -8235349.727185204 4980606.400654257)"
1616,Amsterdam Avenue,"LINESTRING (-8235626.567626857 4979679.232940853, -8235602.645068286 4979725.525287829, -8235595.153266557 4979740.005473176)"
1617,West 74th Street,"LINESTRING (-8235574.125014746 4979982.173217074, -8235563.482871425 4979975.469530885, -8235505.941826635 4979943.421270152, -8235501.043769039 4979940.701583141, -8235489.31069471 4979933.997925423)"
1618,Broadway,"LINESTRING (-8235574.125014746 4979982.173217074, -8235571.854097132 4979991.728918063, -8235553.475249203 4980081.788183961, -8235552.1394153135 4980089.094693641)"
1619,West 62nd Street,"LINESTRING (-8235642.920460055 4978552.78976494, -8235666.1305738855 4978565.563134524)"
1620,Broadway,"LINESTRING (-8235642.920460055 4978552.78976494, -8235643.143099037 4978565.5778334625, -8235644.289689792 4978662.5619142335, -8235644.412141231 4978673.630331449)"
1621,West 80th Street,"LINESTRING (-8235349.727185204 4980606.400654257, -8235336.135075378 4980598.829121486, -8235188.992972448 4980516.762904143, -8235184.662644257 4980514.469411737, -8235173.853521699 4980508.441645807)"
1622,Broadway,"LINESTRING (-8235349.727185204 4980606.400654257, -8235344.2168704085 4980616.192198548, -8235301.982255601 4980691.275733116, -8235296.995142415 4980699.949998908)"
1623,West 67th Street,"LINESTRING (-8235650.512449327 4979157.713141196, -8235671.65202063 4979169.693510129)"
1624,Broadway,"LINESTRING (-8235650.512449327 4979157.713141196, -8235650.078303314 4979169.664110434, -8235646.527211557 4979265.56639067, -8235646.248912829 4979276.459091191)"
1625,West 83rd Street,"LINESTRING (-8235190.818612097 4980884.096188422, -8235212.470253055 4980896.166890275)"
1626,Broadway,"LINESTRING (-8235190.818612097 4980884.096188422, -8235185.441880691 4980893.1234841375, -8235143.763863338 4980969.679404008, -8235139.555986586 4980976.7954447195)"
1627,West 76th Street,"LINESTRING (-8235525.289154134 4980198.443071141, -8235512.787975319 4980191.268792115, -8235403.527895103 4980128.405867726, -8235388.644479185 4980119.82031732)"
1628,Broadway,"LINESTRING (-8235525.289154134 4980198.443071141, -8235522.30579178 4980209.013381196, -8235499.396240575 4980295.943221802, -8235496.435142119 4980306.028485948)"
1629,West 70th Street,"LINESTRING (-8235638.668055507 4979512.308881933, -8235625.643675084 4979504.9734030925, -8235402.425832146 4979381.447119106, -8235388.410708254 4979373.700134205)"
1630,Broadway,"LINESTRING (-8235638.668055507 4979512.308881933, -8235638.567867965 4979524.730697346, -8235635.706957052 4979620.430657104, -8235635.3173388345 4979630.956239877)"
1631,West 69th Street,"LINESTRING (-8235642.363862602 4979394.63317775, -8235663.53682975 4979406.084629968)"
1632,Broadway,"LINESTRING (-8235642.363862602 4979394.63317775, -8235641.8072651485 4979406.819640196, -8235638.957486182 4979502.342040283, -8235638.668055507 4979512.308881933)"
1633,West 75th Street,"LINESTRING (-8235552.1394153135 4980089.094693641, -8235574.637084402 4980101.237919004)"
1634,Broadway,"LINESTRING (-8235552.1394153135 4980089.094693641, -8235549.2785044 4980102.281707846, -8235527.660259288 4980189.475223181, -8235525.289154134 4980198.443071141)"
1635,West 81st Street,"LINESTRING (-8235296.995142415 4980699.949998908, -8235317.555852365 4980711.638216697)"
1636,Broadway,"LINESTRING (-8235296.995142415 4980699.949998908, -8235291.829918042 4980708.933017874, -8235247.8587191785 4980783.767326875, -8235242.960661584 4980792.353461089)"
1637,West 84th Street,"LINESTRING (-8235139.555986586 4980976.7954447195, -8235127.878572002 4980970.296911467, -8234982.951726939 4980889.491981437, -8234978.699322389 4980887.12488931, -8234967.901331782 4980881.096893321)"
1638,West 64th Street,"LINESTRING (-8235649.009636202 4978795.2367558535, -8235632.556615461 4978787.0492577655, -8235497.258906352 4978712.11265519, -8235390.536910529 4978653.257397912, -8235377.95780807 4978646.304739843)"
1639,Broadway,"LINESTRING (-8235649.009636202 4978795.2367558535, -8235649.566233655 4978801.777939691, -8235651.614512287 4978873.9811408855, -8235650.523581277 4978900.513599545)"
1640,West 77th Street,"LINESTRING (-8235496.435142119 4980306.028485948, -8235517.864144097 4980317.863247976)"
1641,Broadway,"LINESTRING (-8235496.435142119 4980306.028485948, -8235494.141960611 4980314.99644095, -8235486.093561427 4980336.695985818, -8235462.70533641 4980397.252084582, -8235459.521598974 4980405.499739618)"
1642,West 66th Street,"LINESTRING (-8235652.30469313 4979040.482699221, -8235674.056521631 4979052.286528288)"
1643,Broadway,"LINESTRING (-8235652.30469313 4979040.482699221, -8235652.382616771 4979050.140376488, -8235650.167358906 4979148.114156815, -8235650.512449327 4979157.713141196)"
1644,West 73rd Street,"LINESTRING (-8235597.201545187 4979872.018711495, -8235619.832797665 4979884.543890943)"
1645,Broadway,"LINESTRING (-8235597.201545187 4979872.018711495, -8235594.797044185 4979882.9855930945, -8235576.4961199 4979971.2650283, -8235574.125014746 4979982.173217074)"
1646,Broadway,"LINESTRING (-8235640.070681091 4978431.083468001, -8235640.282188123 4978443.533305796, -8235642.753480819 4978541.809678086, -8235642.920460055 4978552.78976494)"
1647,West 61st Street,"LINESTRING (-8235640.070681091 4978431.083468001, -8235628.204023372 4978424.424942613, -8235584.310748152 4978400.436650368, -8235582.796803078 4978399.554728983, -8235577.831953789 4978396.776677137, -8235570.996937054 4978392.955019804, -8235544.124411976 4978377.771296021, -8235533.771699333 4978372.141712271)"
1648,West 68th Street,"LINESTRING (-8235646.248912829 4979276.459091191, -8235633.246796304 4979269.888189423, -8235504.461277407 4979196.9764664965, -8235490.691056395 4979189.244327804)"
1649,Broadway,"LINESTRING (-8235646.248912829 4979276.459091191, -8235645.681183427 4979287.601704297, -8235643.042911495 4979384.563554993, -8235642.363862602 4979394.63317775)"
1650,West 78th Street,"LINESTRING (-8235459.521598974 4980405.499739618, -8235448.423045741 4980399.295620563, -8235300.412650783 4980316.70182349, -8235284.6720747845 4980307.92498722)"
1651,Broadway,"LINESTRING (-8235459.521598974 4980405.499739618, -8235456.393521281 4980412.527158854, -8235455.046555445 4980414.835329037, -8235413.1013713125 4980492.416627648, -8235405.086367975 4980506.809739085)"
1652,West 82nd Street,"LINESTRING (-8235242.960661584 4980792.353461089, -8235231.205323355 4980785.781539189, -8235085.35452652 4980704.419454121, -8235070.137152128 4980695.921610108)"
1653,Broadway,"LINESTRING (-8235242.960661584 4980792.353461089, -8235238.140527633 4980800.821984422, -8235221.676374944 4980830.182529313, -8235195.071016644 4980876.436225801, -8235190.818612097 4980884.096188422)"
1654,West 62nd Street,"LINESTRING (-8235795.6730653215 4978636.882646639, -8235810.378370055 4978645.11411602, -8235925.783286162 4978709.246319508, -8235936.837311598 4978715.375869142, -8236054.535409214 4978780.743271994, -8236096.458329445 4978804.056330595, -8236108.803660973 4978810.891506497)"
1655,Columbus Avenue,"LINESTRING (-8235795.6730653215 4978636.882646639, -8235800.67131046 4978627.798640268, -8235827.588363333 4978578.659897896, -8235840.245389436 4978555.81774287, -8235845.588724992 4978546.189952219)"
1656,West 60th Street,"LINESTRING (-8235896.8736144025 4978453.7195485225, -8235911.389676001 4978463.200260173, -8236153.654283816 4978601.590300305, -8236161.257405036 4978605.647223258, -8236196.2117251465 4978624.550154604, -8236209.024598534 4978629.636019515)"
1657,Columbus Avenue,"LINESTRING (-8235896.8736144025 4978453.7195485225, -8235903.764290881 4978440.902228954, -8235942.314230544 4978370.5983543685, -8235946.755878227 4978362.646390374)"
1658,Amsterdam Avenue,"LINESTRING (-8236209.024598534 4978629.636019515, -8236202.6571236625 4978641.189468146, -8236163.650774088 4978711.730477049, -8236159.209126406 4978719.7562211165)"
1659,West 60th Street,"LINESTRING (-8236209.024598534 4978629.636019515, -8236227.781932734 4978637.088433288, -8236356.500659938 4978708.540760086, -8236375.035355156 4978718.991864255, -8236395.317766379 4978729.972150302, -8236483.749969865 4978779.552631781, -8236514.251510342 4978796.38330012, -8236528.667384399 4978804.997085704)"
1660,Dyer Avenue,"LINESTRING (-8237326.282667883 4976216.778718359, -8237330.468280736 4976207.153232764, -8237345.463016145 4976171.722710236)"
1661,West 35th Street,"LINESTRING (-8237326.282667883 4976216.778718359, -8237333.785601562 4976221.055082177, -8237353.121797113 4976231.870911046, -8237393.597563965 4976253.399736482, -8237478.06679358 4976300.469408807, -8237493.017001192 4976308.801778423)"
1662,Riverside Boulevard,"LINESTRING (-8236613.158877911 4979215.615943872, -8236603.61879755 4979225.86179162, -8236585.384664959 4979245.456821624, -8236550.786567219 4979288.233805421, -8236545.198328783 4979295.14282038)"
1663,Riverside Boulevard,"LINESTRING (-8236613.158877911 4979215.615943872, -8236620.338985069 4979207.971989857, -8236689.023110887 4979134.810832651)"
1664,Freedom Place South,"LINESTRING (-8236557.510264465 4979062.150012834, -8236555.050103717 4979065.707337574, -8236551.654859249 4979070.102546376, -8236547.680753428 4979074.438958336, -8236542.816091678 4979078.481377999, -8236522.700659692 4979094.489376299, -8236517.880525741 4979098.605302967, -8236513.806232379 4979103.02992607, -8236508.529688514 4979110.409202284, -8236503.5537072765 4979118.008980626, -8236494.525696573 4979136.677706883, -8236490.317819821 4979145.379991474)"
1665,Freedom Place South,"LINESTRING (-8236557.510264465 4979062.150012834, -8236561.0056964755 4979054.432680562, -8236562.87586392 4979047.009347652, -8236564.267357554 4979040.835490917, -8236566.760914149 4979020.447091758, -8236567.840713209 4979012.553397098, -8236569.632957011 4979004.836104015, -8236571.592180049 4978998.3829817185, -8236574.8649730785 4978991.459477118, -8236585.918998514 4978971.409270677, -8236591.618556444 4978961.663474054)"
1666,Dyer Avenue,"LINESTRING (-8237738.977416099 4975863.448787263, -8237723.86022925 4975854.984543699, -8237682.8056010455 4975832.442653027, -8237672.575339841 4975826.7704514405, -8237666.463899797 4975823.434728209, -8237662.100175758 4975821.333370106, -8237656.712312403 4975818.453187707, -8237650.556344563 4975815.205636122, -8237644.634147652 4975812.472403499, -8237633.513330524 4975808.166828928, -8237628.860175808 4975806.609181256, -8237623.817402876 4975805.6393252835, -8237617.806150371 4975805.257260836, -8237612.952620572 4975805.6393252835, -8237607.5202294225 4975806.829603082)"
1667,10th Avenue,"LINESTRING (-8237738.977416099 4975863.448787263, -8237706.004582927 4975923.168936351, -8237701.37369211 4975931.57445908)"
1668,East 68th Street,"LINESTRING (-8232545.177330004 4977572.920735294, -8232549.24049142 4977571.465688326, -8232554.583826977 4977569.995944135, -8232559.459620673 4977568.864241257, -8232564.4801297095 4977568.540897601, -8232568.376311887 4977568.702569426, -8232571.459861782 4977568.864241257, -8232574.287376848 4977569.114097724, -8232577.248475304 4977570.010641575, -8232617.79103385 4977592.688819121, -8232657.142473846 4977613.706230931, -8232688.067028387 4977630.226242306, -8232702.082152279 4977637.707288676)"
1669,Amsterdam Avenue,"LINESTRING (-8235754.306742543 4979453.595804936, -8235748.7741638515 4979464.106507602, -8235706.762188025 4979539.607495887, -8235701.942054072 4979547.075304488)"
1670,2nd Avenue,"LINESTRING (-8233645.704079886 4977147.688808215, -8233674.43564046 4977097.205411948)"
1671,,"LINESTRING (-8233645.704079886 4977147.688808215, -8233645.459177005 4977129.964476924, -8233645.425781158 4977127.18678613, -8233644.735600316 4977122.660180602, -8233643.800516593 4977120.411575387, -8233642.464682703 4977117.94251928, -8233640.483195769 4977115.517554065, -8233637.778132141 4977113.460008295, -8233628.004280849 4977108.507203469)"
1672,,"LINESTRING (-8233535.943061964 4977101.188226453, -8233559.654113503 4977127.201482905, -8233564.819337875 4977131.992632607, -8233571.732278255 4977137.356959449, -8233580.559913874 4977142.603714854, -8233606.719994212 4977158.050061551, -8233610.0707108835 4977160.372159551, -8233613.443691454 4977163.149859781, -8233616.716484483 4977167.044520165, -8233619.18777718 4977171.497662053, -8233620.879833439 4977176.274136634, -8233623.918855538 4977188.105106801)"
1673,,"LINESTRING (-8233535.943061964 4977101.188226453, -8233577.4652320305 4977127.377844201, -8233626.56825942 4977154.713883745, -8233638.301333749 4977161.239272236)"
1674,Queensboro Bridge Exit,"LINESTRING (-8233512.554836949 4977128.186166855, -8233510.762593147 4977132.0661165165, -8233508.7254464645 4977136.827875027, -8233469.407402317 4977211.517242796, -8233468.817409014 4977212.66360118, -8233464.119726503 4977220.7322043665)"
1675,East 60th Street,"LINESTRING (-8233512.554836949 4977128.186166855, -8233463.396149813 4977102.011243676, -8233414.025955647 4977074.660654913, -8233373.160570575 4977052.027769936, -8233368.652131199 4977049.544034454, -8233356.67415399 4977042.901147388)"
1676,9th Avenue,"LINESTRING (-8236259.196293035 4977794.531328166, -8236263.693600464 4977786.638624211, -8236294.952113478 4977729.934804512, -8236305.6053887475 4977710.724953719, -8236309.067424912 4977704.478453375)"
1677,West 53rd Street,"LINESTRING (-8236259.196293035 4977794.531328166, -8236275.014792678 4977803.585164022, -8236564.111510267 4977961.514218891, -8236576.467973745 4977968.290013038)"
1678,Columbus Circle,"LINESTRING (-8235667.867157943 4978226.596785656, -8235671.796735967 4978221.672813242, -8235676.360835088 4978213.970843458, -8235679.099294563 4978207.297767676, -8235680.59097574 4978201.9916467955, -8235681.54832336 4978196.656132029, -8235681.982469374 4978191.291223428, -8235681.882281833 4978185.823429199, -8235680.936066161 4978178.694723579, -8235679.154954309 4978171.948180165, -8235676.750453308 4978165.921859924, -8235673.188229601 4978159.469291883, -8235669.058276494 4978153.501772616, -8235663.347586616 4978147.960507989, -8235659.18423766 4978144.594595467, -8235653.518075579 4978140.949416401)"
1679,Central Park South,"LINESTRING (-8235611.650815092 4978135.849107654, -8235597.446448066 4978138.142041515, -8235575.460848635 4978145.138432781, -8235569.705630962 4978146.990419544, -8235566.789060302 4978147.328480658, -8235563.449475577 4978146.9610229265, -8235557.8055773955 4978145.447097218, -8235553.096762934 4978142.727910855, -8235547.887010765 4978140.199803132, -8235503.314686651 4978122.7970328415)"
1680,Columbus Circle,"LINESTRING (-8235611.650815092 4978135.849107654, -8235601.465081685 4978139.758854177, -8235595.598544518 4978143.139463337, -8235590.911993958 4978146.622961826, -8235586.659589409 4978150.518014348, -8235582.451712657 4978155.353760963, -8235579.4572183555 4978159.5574818505, -8235576.618571338 4978164.4667246165, -8235574.481237116 4978169.346573166, -8235572.410694586 4978175.813846083, -8235571.675985949 4978179.106277576, -8235571.1305204425 4978182.530995442, -8235570.763166123 4978186.837616607, -8235570.718638327 4978191.173636423, -8235570.863353665 4978193.848741134, -8235571.197312137 4978197.052988399)"
1681,Columbus Circle,"LINESTRING (-8235653.518075579 4978140.949416401, -8235648.252663665 4978138.377214249, -8235642.408390397 4978136.245961552, -8235636.096575269 4978134.7467357945, -8235625.476695849 4978133.879536688)"
1682,Columbus Circle,"LINESTRING (-8235602.823179472 4978240.413318524, -8235607.977271895 4978241.750877531, -8235613.765885416 4978242.4270063285, -8235620.322603424 4978242.794467653, -8235625.766126524 4978242.912055279, -8235631.710587332 4978242.853261466, -8235636.263554507 4978242.294720257, -8235640.32671592 4978241.28052709, -8235645.881558511 4978239.50201469, -8235651.870547115 4978236.84159592, -8235659.3066891 4978232.7260324005, -8235663.726072884 4978230.08031391, -8235667.867157943 4978226.596785656)"
1683,Broadway,"LINESTRING (-8235602.823179472 4978240.413318524, -8235626.378383725 4978255.773210451, -8235630.363621494 4978258.6835084865, -8235633.380379694 4978261.667299795, -8235634.460178755 4978262.990163228, -8235635.417526376 4978264.636393528, -8235636.174498914 4978267.943553454, -8235636.9648672985 4978273.602474148, -8235637.309957719 4978279.261398117, -8235637.799763478 4978303.866731632, -8235638.111458053 4978313.47958486)"
1684,Columbus Circle,"LINESTRING (-8235625.476695849 4978133.879536688, -8235619.0424292805 4978134.364580248, -8235611.650815092 4978135.849107654)"
1685,Broadway,"LINESTRING (-8235625.476695849 4978133.879536688, -8235620.122228342 4978131.1015604045, -8235615.469073626 4978126.986041438, -8235612.608162713 4978124.1786705665, -8235609.992154679 4978120.415912966, -8235608.055195538 4978115.403804509, -8235606.585778261 4978111.6998433145, -8235605.26107632 4978106.981704302, -8235604.793534459 4978102.5428341655, -8235604.470707934 4978098.015776633, -8235609.5914045125 4978063.519079221, -8235610.6600716235 4978054.626682299)"
1686,Broadway,"LINESTRING (-8235635.3173388345 4979630.956239877, -8235633.903581301 4979646.803437574, -8235632.923969781 4979655.682583704, -8235631.955490212 4979661.136500312, -8235630.619656323 4979666.605120563, -8235628.960995911 4979672.588265044, -8235626.567626857 4979679.232940853)"
1687,West 71st Street,"LINESTRING (-8235635.3173388345 4979630.956239877, -8235647.595878668 4979637.615587911, -8235649.254539081 4979638.747530523)"
1688,West End Avenue,"LINESTRING (-8236528.667384399 4978804.997085704, -8236533.676761485 4978795.8688251125, -8236549.673372312 4978766.044020272, -8236558.445348186 4978749.7866736315, -8236573.740646222 4978721.94639784, -8236579.306620762 4978712.81821487)"
1689,West End Avenue,"LINESTRING (-8236528.667384399 4978804.997085704, -8236523.379708587 4978814.18415208, -8236508.273653687 4978841.363219845, -8236482.870545888 4978887.710393042, -8236477.939092444 4978896.559450165)"
1690,West 60th Street,"LINESTRING (-8236528.667384399 4978804.997085704, -8236545.009085648 4978814.360543839, -8236634.866178617 4978865.808276174, -8236645.986995746 4978872.173114469)"
1691,12th Avenue,"LINESTRING (-8237126.586633348 4978314.317402792, -8237150.49805997 4978272.044433317, -8237192.810598421 4978194.2896925295)"
1692,East 57th Street,"LINESTRING (-8233514.848018458 4976757.937302738, -8233499.441400934 4976749.369410754, -8233278.906357722 4976626.671555504, -8233264.434823919 4976618.912059155)"
1693,1st Avenue,"LINESTRING (-8233514.848018458 4976757.937302738, -8233506.933202663 4976772.1632531965, -8233474.238668217 4976831.007177423, -8233464.809907347 4976848.010844911, -8233459.911849751 4976856.975625339)"
1694,East 57th Street,"LINESTRING (-8233514.848018458 4976757.937302738, -8233529.653510733 4976766.181885139, -8233680.279913725 4976850.171209278, -8233691.534314247 4976856.461252469)"
1695,West 61st Street,"LINESTRING (-8236077.033078303 4978659.871982064, -8236081.463594035 4978676.570152206, -8236111.920606717 4978693.327147422, -8236145.973238949 4978712.4654350225, -8236159.209126406 4978719.7562211165)"
1696,West 34th Street,"LINESTRING (-8237700.037858221 4976295.223105657, -8237690.854000229 4976289.96210981, -8237562.124141077 4976219.188765091, -8237547.530155835 4976211.0034258645)"
1697,Hudson Boulevard East,"LINESTRING (-8237700.037858221 4976295.223105657, -8237691.544181072 4976308.184565615, -8237645.068293666 4976381.515598286, -8237639.457791331 4976390.377080993)"
1698,West 35th Street,"LINESTRING (-8237639.457791331 4976390.377080993, -8237647.584114159 4976394.903347233, -8237678.75357158 4976412.273648183, -8237684.352941967 4976415.3891369, -8237700.505400082 4976424.382911785)"
1699,Hudson Boulevard East,"LINESTRING (-8237639.457791331 4976390.377080993, -8237633.769365351 4976398.827092717, -8237588.640443784 4976468.7934705885, -8237585.423310501 4976471.953064695, -8237582.094857725 4976473.86351744, -8237577.976036565 4976474.980397682)"
1700,West 36th Street,"LINESTRING (-8237577.976036565 4976474.980397682, -8237576.027945477 4976473.892909024, -8237457.517215579 4976407.556329897, -8237442.923230335 4976399.503093972)"
1701,West 36th Street,"LINESTRING (-8237633.580122217 4976505.547695917, -8237577.976036565 4976474.980397682)"
1702,Hudson Boulevard West,"LINESTRING (-8237633.580122217 4976505.547695917, -8237639.480055228 4976497.112287714, -8237683.284274856 4976434.24374311, -8237687.224984829 4976428.6005835775, -8237689.907784558 4976426.117006587, -8237694.59433512 4976424.632738982, -8237700.505400082 4976424.382911785)"
1703,Lincoln Tunnel,"LINESTRING (-8237387.1410334995 4976610.843953008, -8237370.365186236 4976602.452541845, -8237352.999345671 4976595.060464078, -8237333.796733512 4976588.814677081, -8237317.020886249 4976584.611632081)"
1704,Lincoln Tunnel,"LINESTRING (-8237637.576491936 4976834.725349377, -8237611.616786683 4976822.953592434, -8237588.740631325 4976814.826532559, -8237548.966177266 4976806.699479446, -8237523.819104295 4976798.175633532, -8237337.815367128 4976695.978239441, -8237322.1304508755 4976686.1759283785, -8237306.734965299 4976673.91937936, -8237291.896077176 4976660.134454111, -8237281.420913092 4976648.054290406)"
1705,West 61st Street,"LINESTRING (-8236591.618556444 4978961.663474054, -8236581.510746677 4978955.857159421, -8236494.358717338 4978905.570209262, -8236477.939092444 4978896.559450165)"
1706,"['Riverside Boulevard', 'West 61st Street']","LINESTRING (-8236591.618556444 4978961.663474054, -8236601.759762054 4978967.484491681, -8236657.018757283 4978999.235557997, -8236659.111563711 4979000.440924586, -8236762.148884388 4979055.843849435, -8236752.953894449 4979065.780836032, -8236689.023110887 4979134.810832651)"
1707,Freedom Place South,"LINESTRING (-8236591.618556444 4978961.663474054, -8236585.918998514 4978971.409270677, -8236574.8649730785 4978991.459477118, -8236571.592180049 4978998.3829817185, -8236569.632957011 4979004.836104015, -8236567.840713209 4979012.553397098, -8236566.760914149 4979020.447091758, -8236564.267357554 4979040.835490917, -8236562.87586392 4979047.009347652, -8236561.0056964755 4979054.432680562, -8236557.510264465 4979062.150012834)"
1708,Freedom Place South,"LINESTRING (-8236591.618556444 4978961.663474054, -8236597.496225556 4978951.432602993, -8236639.986875192 4978879.4346209625, -8236645.986995746 4978872.173114469)"
1709,East 59th Street,"LINESTRING (-8233081.8263312215 4976768.312838941, -8233144.688447673 4976803.304636476, -8233158.681307665 4976810.976101488)"
1710,Vanderbilt Avenue,"LINESTRING (-8235178.996482175 4975991.970997631, -8235173.196736704 4976002.742487651, -8235172.0390139995 4976004.887970029, -8235134.457553907 4976074.719270115, -8235130.093829869 4976082.831019146)"
1711,East 43rd Street,"LINESTRING (-8235178.996482175 4975991.970997631, -8235190.161827101 4975998.15762278, -8235230.481746666 4976020.450078912, -8235280.219295153 4976048.1650953)"
1712,Columbus Avenue,"LINESTRING (-8235592.080848609 4979006.614755785, -8235596.867586713 4978997.545105105, -8235635.762616798 4978927.163726149, -8235643.833279881 4978912.684745971)"
1713,West 66th Street,"LINESTRING (-8235592.080848609 4979006.614755785, -8235604.927117848 4979013.6705676485, -8235638.389756779 4979032.61838765, -8235652.30469313 4979040.482699221)"
1714,East 61st Street,"LINESTRING (-8232985.713082871 4976953.09034551, -8233022.927188644 4976973.783057293, -8233042.909037241 4976985.070009466, -8233057.157932062 4976993.226604116)"
1715,2nd Avenue,"LINESTRING (-8233638.301333749 4977161.239272236, -8233645.704079886 4977147.688808215)"
1716,,"LINESTRING (-8233708.766571419 4976996.077739707, -8233691.022244588 4976989.140957656, -8233647.396136145 4976965.552996221, -8233645.0027670935 4976964.583025195, -8233643.143731598 4976964.2303084815, -8233641.1288488135 4976964.245005012, -8233639.459056453 4976964.862259268, -8233637.6334168045 4976966.273126289, -8233636.1862634225 4976968.051406885, -8233629.206531351 4976979.749855905, -8233607.3099875115 4977007.77622229)"
1717,East 58th Street,"LINESTRING (-8233708.766571419 4976996.077739707, -8233692.758828645 4976985.099402589, -8233646.906330386 4976959.204096703, -8233634.839297585 4976953.384275769)"
1718,,"LINESTRING (-8233964.033295758 4975882.09659974, -8233957.96638351 4975885.05027543, -8233955.3392435275 4975886.152393455, -8233953.068325915 4975886.843054145, -8233950.608165168 4975887.254511602, -8233946.322364773 4975886.754884692, -8233940.144133035 4975885.358868465, -8233933.91024155 4975883.272191947, -8233927.576162524 4975880.568330082, -8233922.110375525 4975877.776299592, -8233913.160288465 4975872.603697846, -8233802.263811737 4975810.503300901, -8233796.731233046 4975807.917017492, -8233790.4305498665 4975805.477682632, -8233783.896095757 4975804.008204094, -8233777.461829189 4975802.935484901, -8233771.161146011 4975802.465251869, -8233765.127629608 4975802.47994665, -8233758.214689231 4975803.155906645, -8233751.056845972 4975804.742943335, -8233744.399940425 4975806.932466602, -8233738.555667155 4975809.944898742, -8233732.488754909 4975813.721461325, -8233727.36805833 4975816.763285166, -8233722.770563362 4975820.907220616, -8233718.896645082 4975824.904209668, -8233715.17857409 4975829.5183828855, -8233699.727428767 4975850.943457778, -8233593.617690143 4975999.715300989, -8233591.357904481 4976002.889438485, -8233561.780315776 4976031.618368742)"
1719,"['General Douglas MacArthur Plaza', 'East 48th Street']","LINESTRING (-8233964.033295758 4975882.09659974, -8233955.561882508 4975900.773837666, -8233954.203784721 4975902.551924334, -8233952.745499392 4975903.786298741, -8233950.686088812 4975904.829639133, -8233948.04781688 4975905.167622664, -8233945.955010454 4975904.800249261, -8233943.672960892 4975903.889163282, -8233797.833296004 4975823.743319297, -8233791.543744775 4975822.641208314, -8233785.955506337 4975822.053415839, -8233780.2114206115 4975821.95055216, -8233774.311487599 4975822.082805461, -8233769.491353648 4975823.243695635, -8233764.6600877475 4975825.1099370895, -8233760.452210995 4975828.225238578, -8233756.099618906 4975832.795328882, -8233752.136645034 4975837.8062663665, -8233727.724280704 4975871.486886464, -8233725.2752519045 4975874.9254903365, -8233723.64998734 4975878.628603551, -8233722.870750904 4975882.640311117, -8233722.636979973 4975885.81441058, -8233723.349424714 4975889.737951618, -8233724.395827928 4975893.514545041, -8233726.4886343535 4975897.820157222, -8233728.681628323 4975902.066991575, -8233736.796819202 4975909.6054944685)"
1720,9th Avenue,"LINESTRING (-8237063.401690373 4976340.397248052, -8237072.507624721 4976324.27619799, -8237078.318502141 4976313.974611105)"
1721,,"LINESTRING (-8237063.401690373 4976340.397248052, -8237077.917751974 4976327.362267503, -8237085.08672718 4976317.560326279)"
1722,,"LINESTRING (-8237385.749539863 4977790.151391106, -8237409.126632932 4977803.232417013)"
1723,12th Avenue,"LINESTRING (-8237385.749539863 4977790.151391106, -8237380.673371084 4977798.984756117, -8237373.148173505 4977812.683101687)"
1724,3rd Avenue,"LINESTRING (-8233923.023195351 4977235.443827699, -8233918.726263006 4977243.32138936, -8233877.315412431 4977318.334906721, -8233871.682646195 4977328.519976123)"
1725,East 59th Street,"LINESTRING (-8233923.023195351 4977235.443827699, -8233907.54978613 4977227.125364631, -8233882.51403265 4977214.118594703, -8233731.386691949 4977129.964476924, -8233698.558574115 4977111.079134445, -8233688.484160198 4977105.288616515, -8233674.43564046 4977097.205411948)"
1726,Central Park South,"LINESTRING (-8234707.62523036 4977679.904024911, -8234720.927909508 4977687.26752839, -8234984.510199809 4977833.289447406, -8234997.812878959 4977840.667764359)"
1727,Grand Army Plaza,"LINESTRING (-8234707.62523036 4977679.904024911, -8234695.40235027 4977670.012540952, -8234653.011888177 4977644.747414166, -8234639.252799114 4977635.414472284)"
1728,Grand Army Plaza,"LINESTRING (-8234707.62523036 4977679.904024911, -8234715.996456066 4977665.265220112, -8234755.24770852 4977596.70123061, -8234760.435196792 4977587.632889042, -8234763.151392367 4977582.885608238)"
1729,"['Doris C. Freedman Place', 'Grand Army Plaza']","LINESTRING (-8234587.311124709 4977728.905966864, -8234599.923623016 4977737.077880319, -8234622.49921575 4977751.3787453165, -8234626.818411993 4977753.509914039, -8234632.228539245 4977755.641083228, -8234635.779631002 4977756.287782937, -8234639.586757587 4977756.625830528, -8234643.293696631 4977756.669923694, -8234647.056295419 4977756.287782937, -8234650.874553952 4977755.5528969085, -8234655.271673839 4977754.053729583, -8234658.466543226 4977752.422283047, -8234662.50744074 4977749.850183207, -8234665.490803095 4977747.498549661, -8234668.774728072 4977744.250356755, -8234671.4797917 4977740.811094855, -8234674.452022103 4977736.240111899, -8234699.387588041 4977693.896156027, -8234707.62523036 4977679.904024911)"
1730,5th Avenue,"LINESTRING (-8234587.311124709 4977728.905966864, -8234594.101613648 4977716.780388453, -8234601.393040294 4977703.537804259, -8234611.901600228 4977684.1516340235, -8234631.627413996 4977649.024403111, -8234639.252799114 4977635.414472284)"
1731,Central Park West,"LINESTRING (-8235580.013815808 4978220.364653823, -8235585.635450093 4978248.394579927, -8235586.058464157 4978251.3195742285, -8235586.28110314 4978254.53853882, -8235585.936012719 4978257.728107519, -8235584.900741454 4978262.91667081, -8235583.242081041 4978267.7965685455, -8235570.81882587 4978301.764839908, -8235566.956039539 4978311.936236227, -8235563.237968545 4978319.741173244, -8235538.413722098 4978364.101555206, -8235533.771699333 4978372.141712271)"
1732,Columbus Circle,"LINESTRING (-8235580.013815808 4978220.364653823, -8235584.23282451 4978225.920657955, -8235587.11599932 4978229.022026715, -8235592.448202929 4978233.681430919, -8235598.882469498 4978237.943979301, -8235602.823179472 4978240.413318524)"
1733,Columbus Circle,"LINESTRING (-8235571.197312137 4978197.052988399, -8235571.720513742 4978200.198443161, -8235572.544277975 4978203.78485076, -8235573.312382462 4978206.401165331, -8235574.258598135 4978209.135067821, -8235576.729890828 4978214.735160797, -8235580.013815808 4978220.364653823)"
1734,Central Park South,"LINESTRING (-8235503.314686651 4978122.7970328415, -8235543.757057657 4978154.001515468, -8235550.380567361 4978158.249330751, -8235553.408457508 4978160.703951497, -8235556.235972575 4978163.687712876, -8235558.4846262885 4978167.729755605, -8235560.688752206 4978173.256333098, -8235563.583058966 4978179.988179057, -8235571.197312137 4978197.052988399)"
1735,Central Park South,"LINESTRING (-8235503.314686651 4978122.7970328415, -8235371.545805399 4978049.173662735, -8235325.9048141735 4978023.672385238, -8235313.069676885 4978016.499703622)"
1736,West 37th Street,"LINESTRING (-8237078.318502141 4976313.974611105, -8237085.08672718 4976317.560326279)"
1737,9th Avenue,"LINESTRING (-8237078.318502141 4976313.974611105, -8237082.726753975 4976306.171276488, -8237112.348870476 4976253.678950229, -8237122.501208036 4976235.677027585, -8237128.312085455 4976224.978757841)"
1738,West 67th Street,"LINESTRING (-8235542.076133345 4979097.605720617, -8235555.21183326 4979104.926193728, -8235636.642040774 4979150.260330147, -8235650.512449327 4979157.713141196)"
1739,Columbus Avenue,"LINESTRING (-8235542.076133345 4979097.605720617, -8235546.139294758 4979090.167655164, -8235587.37203415 4979014.8024379425, -8235592.080848609 4979006.614755785)"
1740,West 31st Street,"LINESTRING (-8237388.0649852725 4975756.808671031, -8237399.998434686 4975763.421294245, -8237465.198260442 4975799.496906366, -8237567.734643413 4975857.453280647, -8237573.779291763 4975860.877184711)"
1741,West 59th Street,"LINESTRING (-8236726.894001653 4978793.414044733, -8236756.527250104 4978809.53917024, -8236815.081302261 4978841.172128246, -8236880.236600223 4978876.450640921, -8236888.207075763 4978880.757568072)"
1742,West 59th Street,"LINESTRING (-8236726.894001653 4978793.414044733, -8236614.260940869 4978732.441613925, -8236595.603794212 4978721.961097014, -8236579.306620762 4978712.81821487)"
1743,Freedom Place South,"LINESTRING (-8236726.894001653 4978793.414044733, -8236716.4744973155 4978803.5565544795, -8236712.177564971 4978807.731155753, -8236653.9240754405 4978864.161944542, -8236645.986995746 4978872.173114469)"
1744,West 60th Street,"LINESTRING (-8236645.986995746 4978872.173114469, -8236634.866178617 4978865.808276174, -8236545.009085648 4978814.360543839, -8236528.667384399 4978804.997085704)"
1745,Freedom Place South,"LINESTRING (-8236645.986995746 4978872.173114469, -8236639.986875192 4978879.4346209625, -8236597.496225556 4978951.432602993, -8236591.618556444 4978961.663474054)"
1746,Freedom Place South,"LINESTRING (-8236645.986995746 4978872.173114469, -8236653.9240754405 4978864.161944542, -8236712.177564971 4978807.731155753, -8236716.4744973155 4978803.5565544795, -8236726.894001653 4978793.414044733)"
1747,East 55th Street,"LINESTRING (-8234310.748981784 4976952.575967581, -8234323.539591276 4976959.733171505, -8234352.894540997 4976976.134504588, -8234468.355116848 4977040.652560533, -8234482.303449045 4977048.456481837)"
1748,Lexington Avenue,"LINESTRING (-8234310.748981784 4976952.575967581, -8234315.368740651 4976944.140173383, -8234357.091285801 4976868.350620868, -8234362.067267039 4976859.297651773)"
1749,,"LINESTRING (-8232895.53316338 4977141.677816637, -8232862.671649697 4977126.907547416, -8232856.504549907 4977123.306838406, -8232853.087041539 4977121.043536278, -8232851.26140189 4977118.868415247, -8232849.368970546 4977115.017864337, -8232848.801241144 4977112.401842068, -8232848.456150723 4977109.580066022, -8232848.734449451 4977106.831774511, -8232849.380102497 4977103.789548982, -8232850.626880793 4977100.335815833, -8232854.05552111 4977095.735739108, -8232879.402969162 4977071.192235371, -8232907.711515672 4977044.47368883, -8232928.65071189 4977021.282402393, -8232944.046197467 4977002.2503041485, -8232954.398910111 4976988.347343075, -8232963.916726573 4976973.25398173, -8232982.651796874 4976940.583621217, -8232989.308702423 4976909.324228758)"
1750,FDR Drive,"LINESTRING (-8232895.53316338 4977141.677816637, -8232866.100290013 4977122.219277578, -8232863.584469522 4977120.51445274, -8232860.7235586075 4977118.060093365, -8232859.209613535 4977115.8114892095, -8232858.363585403 4977113.753943378, -8232857.617744815 4977111.637610975, -8232857.4285016805 4977109.712336756, -8232857.67340456 4977106.964045207, -8232858.274529811 4977104.803624053, -8232859.966586071 4977102.378662101, -8232862.059392499 4977099.939004016, -8232888.174945038 4977076.291988258, -8232914.8804908795 4977050.734463806, -8232924.999432593 4977040.035301488)"
1751,"['Riverview Terrace', 'Sutton Square']","LINESTRING (-8233126.81053745 4976685.5146034, -8233129.8829553975 4976680.077044152, -8233130.194649971 4976679.592072799, -8233130.639927935 4976679.063013167, -8233131.062941999 4976678.710306762, -8233131.474824115 4976678.475169166, -8233132.2651925 4976678.137158881, -8233133.456311052 4976677.666883723, -8233135.126103413 4976677.387657858, -8233136.740236031 4976677.431746151, -8233138.565875678 4976677.946109597, -8233140.213404142 4976678.842571662, -8233195.550323016 4976709.954265175, -8233209.799217838 4976718.1400224455)"
1752,,"LINESTRING (-8233418.122512908 4976277.323974938, -8233444.160141804 4976260.380082559, -8233448.846692367 4976255.66283761, -8233453.577770726 4976251.680367792, -8233458.331112984 4976248.873535795, -8233463.429545661 4976246.551654439, -8233468.260811562 4976245.170282249, -8233472.468688314 4976244.949850535, -8233476.531849728 4976245.522973002, -8233482.142352062 4976247.27173151, -8233485.982874497 4976249.005794877, -8233493.697315208 4976253.326259182, -8233512.766343981 4976268.080512227)"
1753,FDR Drive,"LINESTRING (-8233418.122512908 4976277.323974938, -8233428.7423923295 4976263.995169014, -8233437.748139135 4976252.135926989, -8233446.753885939 4976239.2921049, -8233489.956980318 4976173.295111455, -8233569.305513355 4976057.246703138, -8233588.0294517055 4976029.796173215, -8233604.1596459225 4976005.108396329)"
1754,East 66th Street,"LINESTRING (-8233573.724897139 4977864.933941697, -8233558.507522747 4977856.247495758, -8233531.9244283475 4977841.358563244)"
1755,3rd Avenue,"LINESTRING (-8233573.724897139 4977864.933941697, -8233571.097757157 4977869.872432171, -8233566.422338542 4977878.588286037)"
1756,East 66th Street,"LINESTRING (-8233524.644133647 4977854.93938528, -8233551.282887795 4977869.78424482, -8233566.422338542 4977878.588286037)"
1757,East 66th Street,"LINESTRING (-8233524.644133647 4977854.93938528, -8233528.551447775 4977847.649244698, -8233531.9244283475 4977841.358563244)"
1758,East 66th Street,"LINESTRING (-8233531.9244283475 4977841.358563244, -8233528.551447775 4977847.649244698, -8233524.644133647 4977854.93938528)"
1759,East 66th Street,"LINESTRING (-8233531.9244283475 4977841.358563244, -8233528.484656081 4977837.625310279, -8233464.509344723 4977801.174726383, -8233434.998547712 4977784.551541549, -8233370.733805677 4977748.762552621, -8233367.550068241 4977747.30747946)"
1760,2nd Avenue,"LINESTRING (-8233324.591876743 4977725.554896415, -8233342.569974505 4977693.67569162, -8233351.764964447 4977677.331944167, -8233363.397851234 4977656.711229875, -8233368.897034079 4977646.95204741)"
1761,East 66th Street,"LINESTRING (-8233367.550068241 4977747.30747946, -8233340.855654349 4977733.697411693, -8233324.591876743 4977725.554896415)"
1762,East 66th Street,"LINESTRING (-8233367.550068241 4977747.30747946, -8233363.653886063 4977754.156613607, -8233358.822620162 4977762.651898257)"
1763,East 66th Street,"LINESTRING (-8233358.822620162 4977762.651898257, -8233366.592720619 4977767.002427513, -8233524.644133647 4977854.93938528)"
1764,East 66th Street,"LINESTRING (-8233358.822620162 4977762.651898257, -8233363.653886063 4977754.156613607, -8233367.550068241 4977747.30747946)"
1765,West 62nd Street,"LINESTRING (-8235480.906073155 4978463.597127373, -8235492.438772401 4978469.991101151, -8235563.137781003 4978508.8694915855, -8235586.247707293 4978521.584008239, -8235610.203661712 4978534.783604888, -8235628.883072267 4978545.131630771, -8235642.920460055 4978552.78976494)"
1766,Central Park West,"LINESTRING (-8235480.906073155 4978463.597127373, -8235476.442161574 4978472.313511054, -8235457.328605005 4978504.503933038, -8235433.495102026 4978546.204651128, -8235428.931002904 4978554.52423762)"
1767,East 59th Street,"LINESTRING (-8234639.252799114 4977635.414472284, -8234625.738612931 4977626.640045291, -8234556.030347796 4977587.485914368, -8234472.562993601 4977540.3806457715, -8234461.074822149 4977533.134832103)"
1768,5th Avenue,"LINESTRING (-8234639.252799114 4977635.414472284, -8234644.941225095 4977625.008620037, -8234684.348324835 4977554.828196983, -8234690.482028778 4977542.879203456)"
1769,West 43rd Street,"LINESTRING (-8236450.766004742 4976699.005641847, -8236467.564115903 4976708.234816136, -8236547.680753428 4976752.235171387, -8236607.381396338 4976785.360486088, -8236753.81105453 4976866.910375224, -8236767.180525373 4976874.199783933)"
1770,8th Avenue,"LINESTRING (-8236450.766004742 4976699.005641847, -8236445.478328928 4976708.558131317, -8236404.445964623 4976782.759248352, -8236400.3160115145 4976790.210253214)"
1771,East 49th Street,"LINESTRING (-8233930.7265041135 4976017.5110573955, -8233937.238694325 4976021.0084931, -8233940.823181928 4976022.933552783, -8233966.871942774 4976037.893189813, -8234133.238921764 4976130.179079947, -8234174.571848696 4976153.103735588, -8234188.965458856 4976161.039205842)"
1772,1st Avenue,"LINESTRING (-8233930.7265041135 4976017.5110573955, -8233926.195800838 4976025.637454048, -8233912.993309231 4976045.975517974, -8233902.763048027 4976058.422316419, -8233899.100636779 4976063.051295092, -8233887.144923468 4976078.187335906)"
1773,1st Avenue,"LINESTRING (-8233913.494246938 4976024.2561130915, -8233896.562552388 4976054.616268931, -8233887.144923468 4976078.187335906)"
1774,1st Avenue,"LINESTRING (-8233887.144923468 4976078.187335906, -8233876.513912098 4976097.335195888, -8233872.60659797 4976104.3301257)"
1775,West 65th Street,"LINESTRING (-8235650.35660204 4978916.344912537, -8235643.833279881 4978912.684745971)"
1776,Broadway,"LINESTRING (-8235650.35660204 4978916.344912537, -8235650.4345256835 4978927.07552925, -8235650.389997888 4978940.496166472, -8235651.748095676 4979028.517188428, -8235652.30469313 4979040.482699221)"
1777,2nd Avenue,"LINESTRING (-8233623.918855538 4977188.105106801, -8233638.301333749 4977161.239272236)"
1778,East 60th Street,"LINESTRING (-8233623.918855538 4977188.105106801, -8233638.52397273 4977194.821576987, -8233665.708192381 4977209.400889212, -8233676.272412058 4977215.250256483, -8233779.688219005 4977273.082757076, -8233856.632251042 4977318.687636221, -8233871.682646195 4977328.519976123)"
1779,East 60th Street,"LINESTRING (-8233623.918855538 4977188.105106801, -8233611.161641892 4977182.432118076, -8233592.382043797 4977172.144323091, -8233512.554836949 4977128.186166855)"
1780,1st Avenue,"LINESTRING (-8233356.67415399 4977042.901147388, -8233353.145326132 4977049.367674561, -8233333.753470837 4977085.198191326, -8233312.146357674 4977125.129237902, -8233307.938480922 4977132.874439557)"
1781,East 60th Street,"LINESTRING (-8233356.67415399 4977042.901147388, -8233341.746210276 4977034.641634815, -8233160.863169684 4976932.280105707, -8233128.869948032 4976914.350414873, -8233120.66570156 4976909.9855688885, -8233107.808300372 4976903.048847969)"
1782,East 60th Street,"LINESTRING (-8234220.246235768 4977521.553299305, -8234240.328271908 4977532.8114896305)"
1783,Park Avenue,"LINESTRING (-8234220.246235768 4977521.553299305, -8234216.294393845 4977528.99017031, -8234174.349209715 4977604.461503662, -8234169.673791101 4977612.897868102)"
1784,East 60th Street,"LINESTRING (-8234240.328271908 4977532.8114896305, -8234251.894367 4977539.293038509, -8234263.894608107 4977545.906868329, -8234396.086503425 4977621.393029902, -8234408.7880573245 4977628.433143634)"
1785,Park Avenue,"LINESTRING (-8234240.328271908 4977532.8114896305, -8234245.549156025 4977523.390470469, -8234286.570388382 4977449.007360566, -8234291.9359878395 4977439.1161104115)"
1786,East 60th Street,"LINESTRING (-8233871.682646195 4977328.519976123, -8233885.118908736 4977337.029587705, -8233927.932384893 4977360.971177156, -8233971.335854354 4977385.030402584, -8234030.212733036 4977417.863918847, -8234037.470763834 4977422.037927928, -8234048.825351896 4977428.24015598)"
1787,3rd Avenue,"LINESTRING (-8233871.682646195 4977328.519976123, -8233867.964575205 4977335.104269064, -8233855.964334096 4977356.415069056, -8233839.923195472 4977384.310241648, -8233829.559350881 4977402.373069761, -8233825.718828447 4977409.045595673, -8233820.2641734 4977418.584082259)"
1788,Amsterdam Avenue,"LINESTRING (-8235595.153266557 4979740.005473176, -8235587.216186862 4979754.485679994, -8235560.198946447 4979804.380079921, -8235544.847988666 4979833.120193236, -8235540.205965901 4979840.411815998)"
1789,West 72nd Street,"LINESTRING (-8235595.153266557 4979740.005473176, -8235583.743018751 4979733.404858106, -8235296.1045864895 4979573.550790051, -8235282.28983768 4979565.862454532)"
1790,West 72nd Street,"LINESTRING (-8235595.153266557 4979740.005473176, -8235611.806662379 4979749.178718453, -8235635.083567903 4979762.056558096, -8235644.3787453845 4979767.304723641)"
1791,Hudson Boulevard East,"LINESTRING (-8237761.141126717 4976200.540309225, -8237758.436063091 4976205.037096745, -8237755.1298742145 4976209.871880406, -8237708.787570196 4976282.570268476, -8237700.037858221 4976295.223105657)"
1792,East 56th Street,"LINESTRING (-8234074.384306981 4976940.333780825, -8234066.825713557 4976936.2040670235, -8233848.78422694 4976814.885317776, -8233834.724575253 4976807.066886763)"
1793,3rd Avenue,"LINESTRING (-8234074.384306981 4976940.333780825, -8234069.553041081 4976947.755512862, -8234027.140315088 4977024.074759696, -8234019.303422937 4977038.756693587)"
1794,East 57th Street,"LINESTRING (-8234019.303422937 4977038.756693587, -8234032.862136915 4977046.29607362)"
1795,East 57th Street,"LINESTRING (-8234019.303422937 4977038.756693587, -8234012.902552217 4977035.18541034, -8233899.612706437 4976972.151741067, -8233794.326732044 4976913.321663119, -8233780.434059593 4976905.503153324)"
1796,3rd Avenue,"LINESTRING (-8234019.303422937 4977038.756693587, -8234011.655773918 4977053.394559554, -8233993.566356665 4977086.065297339)"
1797,East 63rd Street,"LINESTRING (-8233364.555573939 4977406.047367605, -8233369.6428746665 4977408.825137694, -8233456.360757996 4977456.238414564, -8233460.201280428 4977458.340124351, -8233469.507589858 4977463.425382072)"
1798,West 43rd Street,"LINESTRING (-8237274.352125428 4977157.256433248, -8237098.51185777 4977060.537140668, -8237082.604302537 4977051.792623354)"
1799,West 43rd Street,"LINESTRING (-8237274.352125428 4977157.256433248, -8237344.038126664 4977195.688692733, -8237384.558421313 4977218.04266923, -8237398.3843020685 4977225.464612252)"
1800,West 35th Street,"LINESTRING (-8237314.983739567 4976210.518477795, -8237326.282667883 4976216.778718359)"
1801,Dyer Avenue,"LINESTRING (-8237314.983739567 4976210.518477795, -8237308.582868845 4976217.675138111, -8237298.441663235 4976229.98989647, -8237290.938729555 4976238.836546302, -8237284.137108668 4976246.169572751, -8237249.405427541 4976280.909676659, -8237241.223444967 4976287.963519951)"
1802,West 62nd Street,"LINESTRING (-8236108.803660973 4978810.891506497, -8236096.458329445 4978804.056330595, -8236054.535409214 4978780.743271994, -8235936.837311598 4978715.375869142, -8235925.783286162 4978709.246319508, -8235810.378370055 4978645.11411602, -8235795.6730653215 4978636.882646639)"
1803,Amsterdam Avenue,"LINESTRING (-8236108.803660973 4978810.891506497, -8236101.690345512 4978823.738710277, -8236056.683875384 4978905.129225751, -8236012.055891526 4978987.990376871, -8236007.937070366 4978994.649286485)"
1804,West 87th Street,"LINESTRING (-8234175.128446149 4980823.978140411, -8234189.466396564 4980832.284965308, -8234476.314460439 4980991.74796865, -8234491.921453049 4981000.437203989)"
1805,Central Park West,"LINESTRING (-8234175.128446149 4980823.978140411, -8234179.269531208 4980816.50935521, -8234221.570937708 4980739.73410311, -8234229.752920281 4980724.340899442)"
1806,Central Park West,"LINESTRING (-8234175.128446149 4980823.978140411, -8234170.66453457 4980832.343774714, -8234128.084829341 4980908.8845155565, -8234123.810160893 4980916.720933372)"
1807,86th Street Transverse,"LINESTRING (-8234229.752920281 4980724.340899442, -8234214.969691904 4980715.152035849, -8234205.908285353 4980710.035680348, -8234195.8672672855 4980704.595880026, -8234182.174969918 4980697.876995705, -8234172.33432693 4980693.701586332, -8234158.653161513 4980688.379412186, -8234145.695572784 4980683.909964316, -8234106.333000839 4980671.471972128, -8234092.117501865 4980666.605575243, -8234082.065351848 4980662.988858887, -8234071.790562846 4980658.651741446, -8234063.964802642 4980654.843900939, -8234055.4265976995 4980650.286255958, -8234046.387455047 4980644.728872372, -8234037.103409515 4980638.318772483, -8234027.507669408 4980631.614635817, -8234007.603744455 4980615.971668161, -8233971.736604521 4980587.964349765, -8233962.374635345 4980581.304353593, -8233953.624923371 4980575.291248367, -8233944.0514471615 4980569.601589864, -8233933.097609268 4980563.25034708, -8233921.197555702 4980557.237252972, -8233907.739029263 4980550.680191247, -8233893.055988428 4980544.196643511, -8233878.094648866 4980538.212964955, -8233805.97075078 4980510.852751733, -8233717.516283398 4980477.259042933, -8233706.662633044 4980472.6426736, -8233696.844253956 4980468.305640707, -8233688.896042315 4980464.350856459, -8233676.250148159 4980457.867366047, -8233663.682177648 4980450.707598189, -8233653.51870814 4980444.429941573, -8233643.911836083 4980438.049376692, -8233634.6389224995 4980431.1836583065, -8233626.056189761 4980423.847489178, -8233618.8872145545 4980416.423115211, -8233613.031809338 4980407.925521837, -8233607.899980812 4980399.486742657, -8233603.157770504 4980389.945344318, -8233599.751394086 4980382.300471021, -8233596.8014275795 4980374.508587088, -8233593.9405166665 4980365.511174134, -8233591.346772532 4980354.720170181, -8233589.532264832 4980345.796283552, -8233582.441213269 4980307.880882537, -8233580.303879044 4980297.722108745, -8233578.222204568 4980289.842083097, -8233575.316765856 4980279.99205998, -8233572.066236726 4980270.05383777, -8233567.568929298 4980259.204133356, -8233562.926906531 4980249.354141144, -8233555.68000768 4980236.166928322, -8233548.767067304 4980224.979128507, -8233542.778078699 4980216.49640316, -8233536.154568995 4980208.101893648, -8233530.020865053 4980201.295142546, -8233523.441883147 4980194.444292017, -8233492.873550975 4980169.040321711)"
1808,West 86th Street,"LINESTRING (-8234229.752920281 4980724.340899442, -8234242.565793673 4980732.280084549, -8234286.97113855 4980757.376773262, -8234356.11167428 4980795.8232024, -8234460.262189867 4980853.147623958, -8234530.961198471 4980892.755923074, -8234545.532919815 4980900.812864758)"
1809,Central Park West,"LINESTRING (-8234229.752920281 4980724.340899442, -8234236.9552913355 4980710.726682227, -8234267.72399859 4980657.196234668, -8234280.603663676 4980634.408025535, -8234285.9803950805 4980625.322160852)"
1810,Central Park West,"LINESTRING (-8234229.752920281 4980724.340899442, -8234221.570937708 4980739.73410311, -8234179.269531208 4980816.50935521, -8234175.128446149 4980823.978140411)"
1811,Central Park West,"LINESTRING (-8234123.810160893 4980916.720933372, -8234118.900971349 4980925.365994468, -8234077.746155604 4981001.495791566, -8234073.460355208 4981009.346986329)"
1812,Central Park West,"LINESTRING (-8234123.810160893 4980916.720933372, -8234128.084829341 4980908.8845155565, -8234170.66453457 4980832.343774714, -8234175.128446149 4980823.978140411)"
1813,11th Avenue,"LINESTRING (-8237402.948401192 4977216.940400946, -8237415.40505221 4977183.049386119, -8237435.175393775 4977145.131564402, -8237438.425922907 4977139.399813459, -8237446.630169378 4977124.717728309)"
1814,11th Avenue,"LINESTRING (-8237402.948401192 4977216.940400946, -8237423.943257156 4977189.486612327, -8237436.956505629 4977168.161479656, -8237446.886204208 4977152.068457221, -8237450.515219608 4977146.322005403, -8237458.340979812 4977131.6693034135)"
1815,West 57th Street,"LINESTRING (-8236926.077966531 4978656.050221785, -8236945.358502337 4978673.218756613, -8236979.17736364 4978692.195314384, -8236987.39274206 4978696.105283619, -8236997.7899825005 4978699.2215008205)"
1816,West 57th Street,"LINESTRING (-8236926.077966531 4978656.050221785, -8236891.2572298115 4978636.544568581, -8236799.786004227 4978586.141670714, -8236760.545883721 4978564.490112039, -8236700.878636656 4978531.329365735, -8236684.214108886 4978522.260156409)"
1817,West 67th Street,"LINESTRING (-8235225.461237632 4978922.401094766, -8235238.006944244 4978929.633239631, -8235333.0737893805 4978981.419669187, -8235465.12096936 4979054.814872111, -8235475.028404041 4979060.3272519, -8235526.881022853 4979089.153373952, -8235542.076133345 4979097.605720617)"
1818,Central Park West,"LINESTRING (-8235225.461237632 4978922.401094766, -8235220.429596648 4978931.441276684, -8235179.185725308 4979005.600483248, -8235174.866529066 4979013.552970743)"
1819,Central Park West,"LINESTRING (-8235225.461237632 4978922.401094766, -8235229.813829722 4978914.389883638, -8235269.3656448 4978843.244737342, -8235273.072583845 4978836.159649909, -8235275.5216126405 4978831.558755636)"
1820,Central Park West,"LINESTRING (-8235174.866529066 4979013.552970743, -8235169.8571519805 4979022.799031811, -8235127.989891494 4979098.370107111, -8235123.55937576 4979106.7195634805)"
1821,Central Park West,"LINESTRING (-8235174.866529066 4979013.552970743, -8235179.185725308 4979005.600483248, -8235220.429596648 4978931.441276684, -8235225.461237632 4978922.401094766)"
1822,West 66th Street,"LINESTRING (-8235275.5216126405 4978831.558755636, -8235289.581264327 4978838.467447532, -8235381.709274909 4978889.885908005, -8235521.036749585 4978966.602519089, -8235526.335557347 4978969.513028942, -8235576.395932358 4978997.64800223, -8235592.080848609 4979006.614755785)"
1823,Central Park West,"LINESTRING (-8235275.5216126405 4978831.558755636, -8235280.4085382875 4978822.548064823, -8235322.164479284 4978746.655741083, -8235327.051404929 4978738.115502947)"
1824,Central Park West,"LINESTRING (-8235275.5216126405 4978831.558755636, -8235273.072583845 4978836.159649909, -8235269.3656448 4978843.244737342, -8235229.813829722 4978914.389883638, -8235225.461237632 4978922.401094766)"
1825,Central Park West,"LINESTRING (-8235073.042590838 4979198.872752395, -8235068.467359765 4979207.016496025, -8235026.922925802 4979282.11859626, -8235022.1473196475 4979290.424109636)"
1826,Central Park West,"LINESTRING (-8235073.042590838 4979198.872752395, -8235077.818196992 4979190.405618206, -8235119.139991976 4979115.039627456, -8235123.55937576 4979106.7195634805)"
1827,Central Park West,"LINESTRING (-8235327.051404929 4978738.115502947, -8235322.164479284 4978746.655741083, -8235280.4085382875 4978822.548064823, -8235275.5216126405 4978831.558755636)"
1828,Central Park West,"LINESTRING (-8235327.051404929 4978738.115502947, -8235331.415128968 4978730.48662184, -8235362.5734544415 4978674.041906302, -8235373.171069965 4978654.697906968, -8235377.95780807 4978646.304739843)"
1829,65th Street Transverse,"LINESTRING (-8235327.051404929 4978738.115502947, -8235310.631780038 4978731.500865804, -8235305.043541599 4978729.4870771635, -8235298.9654974025 4978727.781971778, -8235291.60727906 4978726.444346211, -8235284.015289788 4978725.871078165, -8235276.311981025 4978725.841679804, -8235268.831311244 4978726.31205358, -8235261.7068638345 4978726.973516743, -8235254.560152525 4978728.384638303, -8235246.990427152 4978730.383727529, -8235222.043729263 4978738.747568509, -8235215.186448632 4978740.482074213, -8235207.739174698 4978741.716807275, -8235201.349435926 4978741.73150648, -8235194.748190121 4978740.805456666, -8235188.35845135 4978739.39433331, -8235181.078156652 4978737.174754281, -8235172.384104421 4978733.867435467, -8235155.942215632 4978726.767728199)"
1830,West 69th Street,"LINESTRING (-8235123.55937576 4979106.7195634805, -8235136.617152031 4979114.010643893, -8235424.945765134 4979273.107489738, -8235439.539750376 4979281.163095173)"
1831,Central Park West,"LINESTRING (-8235123.55937576 4979106.7195634805, -8235119.139991976 4979115.039627456, -8235077.818196992 4979190.405618206, -8235073.042590838 4979198.872752395)"
1832,Central Park West,"LINESTRING (-8235123.55937576 4979106.7195634805, -8235127.989891494 4979098.370107111, -8235169.8571519805 4979022.799031811, -8235174.866529066 4979013.552970743)"
1833,West 79th Street,"LINESTRING (-8235732.688497431 4980689.614391563, -8235724.873869178 4980685.07143248, -8235711.137044013 4980677.279306935)"
1834,West 79th Street,"LINESTRING (-8235732.688497431 4980689.614391563, -8235759.071216748 4980704.213623901, -8235793.435543557 4980723.444065974, -8235812.838530801 4980734.16196641, -8235875.934418184 4980769.3297004085)"
1835,,"LINESTRING (-8234019.7264370015 4977069.237575749, -8233993.566356665 4977086.065297339)"
1836,3rd Avenue,"LINESTRING (-8234019.7264370015 4977069.237575749, -8233990.761105498 4977117.384042389, -8233979.206142355 4977134.770324769, -8233972.961118919 4977144.044001144)"
1837,West 42nd Street,"LINESTRING (-8237446.630169378 4977124.717728309, -8237458.340979812 4977131.6693034135)"
1838,11th Avenue,"LINESTRING (-8237446.630169378 4977124.717728309, -8237455.6470481325 4977108.316145766, -8237494.864904739 4977034.465275193, -8237500.185976399 4977024.7067143535)"
1839,West 42nd Street,"LINESTRING (-8237446.630169378 4977124.717728309, -8237438.16988808 4977119.706130722, -8237346.13093309 4977068.017750768, -8237344.7505714055 4977067.238826464, -8237330.601864126 4977059.258530085, -8237153.993491981 4976959.821350641, -8237138.3308396265 4976951.003440932)"
1840,West 41st Street,"LINESTRING (-8237500.185976399 4977024.7067143535, -8237513.154697077 4977031.423072198)"
1841,11th Avenue,"LINESTRING (-8237500.185976399 4977024.7067143535, -8237505.072902045 4977016.1385884015, -8237545.904891268 4976944.169566381, -8237547.363176597 4976940.421959786, -8237547.797322612 4976936.39512136, -8237547.407704394 4976932.529945893)"
1842,West 40th Street,"LINESTRING (-8237547.407704394 4976932.529945893, -8237542.398327309 4976930.2079020515, -8237485.324824378 4976899.330650013, -8237397.293371059 4976851.28813254, -8237372.714027492 4976836.312553645)"
1843,Park Avenue,"LINESTRING (-8235150.910574647 4975858.687649356, -8235143.363113171 4975867.225370525, -8235141.314834542 4975869.0034510875, -8235138.55411117 4975870.3847700935, -8235135.782255849 4975870.899091053, -8235133.84529671 4975870.869701282, -8235131.396267912 4975870.208431486, -8235129.303461484 4975869.414907793, -8235094.070842649 4975850.105851085, -8235091.488230462 4975849.062516537, -8235088.98354192 4975848.709840094, -8235086.746020154 4975848.680450391, -8235084.2079357635 4975848.915568017, -8235080.779295447 4975849.650310636, -8235078.141023516 4975850.811204085, -8235075.257848705 4975852.42763823, -8235073.031458887 4975854.337969838, -8235070.560166194 4975857.497365242, -8235013.987600971 4975961.9931070125, -8234968.680568218 4976045.6669198675, -8234963.392892406 4976057.040970827, -8234957.303716259 4976071.69206115, -8234950.557755117 4976084.829567044, -8234948.754379366 4976090.737041894, -8234948.3647611495 4976095.483597658, -8234948.498344538 4976099.348441981, -8234949.967761816 4976118.261219321, -8234951.069824776 4976122.228939493, -8234952.739617136 4976125.946841708, -8234955.567132203 4976128.915286392, -8234959.162751757 4976130.97262482, -8234967.901331782 4976135.46938032, -8234970.47281202 4976137.012385135, -8234971.886569552 4976138.672952494, -8234972.921840818 4976140.862550594, -8234973.556361916 4976143.434226842, -8234972.788257428 4976145.623826008, -8234941.273709587 4976204.904838259, -8234940.082591034 4976208.681553507, -8234937.299603763 4976217.542879454)"
1844,West 55th Street,"LINESTRING (-8237061.431335387 4978476.57616358, -8237077.739640788 4978484.925088396)"
1845,12th Avenue,"LINESTRING (-8237061.431335387 4978476.57616358, -8237067.898997802 4978449.3393158605, -8237075.914001139 4978421.264716919, -8237082.504114994 4978402.861934591, -8237089.1053607995 4978385.252914954)"
1846,Columbus Avenue,"LINESTRING (-8235650.523581277 4978900.513599545, -8235670.43863818 4978866.058165822)"
1847,Broadway,"LINESTRING (-8235650.523581277 4978900.513599545, -8235650.501317378 4978905.570209262, -8235650.35660204 4978916.344912537)"
1848,Columbus Avenue,"LINESTRING (-8235643.833279881 4978912.684745971, -8235648.586622137 4978904.482449974, -8235650.523581277 4978900.513599545)"
1849,West 65th Street,"LINESTRING (-8235643.833279881 4978912.684745971, -8235628.716093029 4978904.203160446, -8235397.2160799755 4978775.436839571, -8235393.2419741545 4978773.187853847, -8235340.509931366 4978743.877590509, -8235327.051404929 4978738.115502947)"
1850,Amsterdam Avenue,"LINESTRING (-8235658.961598678 4979622.7533405945, -8235654.352971759 4979630.397619278, -8235649.254539081 4979638.747530523)"
1851,Broadway,"LINESTRING (-8235658.961598678 4979622.7533405945, -8235659.852154605 4979597.306756016, -8235661.933829083 4979539.739799533, -8235662.746461365 4979525.730323415)"
1852,West 71st Street,"LINESTRING (-8235649.254539081 4979638.747530523, -8235658.193494193 4979643.745720248)"
1853,Amsterdam Avenue,"LINESTRING (-8235649.254539081 4979638.747530523, -8235648.018892734 4979640.820308891, -8235640.627278544 4979653.4921975685, -8235626.567626857 4979679.232940853)"
1854,3rd Avenue,"LINESTRING (-8233993.566356665 4977086.065297339, -8233980.196885822 4977110.638231943, -8233975.365619921 4977132.756865293, -8233972.961118919 4977144.044001144)"
1855,West 37th Street,"LINESTRING (-8237574.035326591 4976590.916200261, -8237694.226980802 4976656.680877805, -8237707.396076561 4976664.1317865085)"
1856,Hudson Boulevard West,"LINESTRING (-8237574.035326591 4976590.916200261, -8237579.412057997 4976583.20082018, -8237627.902828187 4976513.689194365, -8237633.580122217 4976505.547695917)"
1857,West 37th Street,"LINESTRING (-8237085.08672718 4976317.560326279, -8237093.201918059 4976322.130645476, -8237141.158354693 4976348.391652846, -8237235.846713562 4976401.060836169, -8237263.008669315 4976416.241487758, -8237379.5379122775 4976480.770542023, -8237393.742279303 4976488.6327993525)"
1858,,"LINESTRING (-8237085.08672718 4976317.560326279, -8237090.263083503 4976310.462374979, -8237109.699466595 4976276.721459615, -8237112.872072083 4976271.519255679, -8237115.666191301 4976268.080512227, -8237118.538234164 4976265.817408221, -8237121.154242196 4976263.951082584, -8237124.627410311 4976262.378666774, -8237128.779627318 4976261.261810837, -8237133.4884417765 4976260.453559912, -8237137.763110224 4976260.365387088, -8237141.848535537 4976260.703382918, -8237145.566606528 4976261.526329339, -8237149.095434387 4976262.613794357, -8237152.245775975 4976263.965778061, -8237192.276264866 4976285.671020323, -8237196.406217975 4976288.051693025, -8237199.267128888 4976290.314802182, -8237201.604838194 4976292.489738746, -8237203.764436315 4976295.8697086945, -8237205.144798 4976299.132115579, -8237206.057617825 4976302.570869962, -8237206.2468609605 4976305.980234476, -8237206.013090028 4976309.551251169, -8237205.078006307 4976313.283920221, -8237203.797832163 4976317.001895141, -8237201.571442345 4976320.719871476, -8237198.332045165 4976324.849325112)"
1859,East 70th Street,"LINESTRING (-8232527.900545035 4977780.450866351, -8232538.409104965 4977786.271180048, -8232586.321013804 4977812.859475359, -8232600.7146239625 4977820.825689593)"
1860,West 65th Street,"LINESTRING (-8236455.7865137765 4979366.702862801, -8236475.523459495 4979377.301672911, -8236486.054283323 4979382.946536249)"
1861,Dyer Avenue,"LINESTRING (-8237345.463016145 4976171.722710236, -8237368.316907605 4976130.164384671, -8237376.36530679 4976116.189188316)"
1862,Dyer Avenue,"LINESTRING (-8237345.463016145 4976171.722710236, -8237321.907811893 4976202.347841214, -8237314.983739567 4976210.518477795)"
1863,Dyer Avenue,"LINESTRING (-8237645.446779935 4975782.803653406, -8237633.324087388 4975783.15632747, -8237625.297952101 4975785.625046268, -8237619.297831548 4975790.430232865, -8237607.5202294225 4975806.829603082)"
| 0 |
rapidsai_public_repos/cuspatial | rapidsai_public_repos/cuspatial/.devcontainer/README.md | # cuSpatial Development Containers
This directory contains [devcontainer configurations](https://containers.dev/implementors/json_reference/) for using VSCode to [develop in a container](https://code.visualstudio.com/docs/devcontainers/containers) via the `Remote Containers` [extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers) or [GitHub Codespaces](https://github.com/codespaces).
This container is a turnkey development environment for building and testing the cuSpatial C++ and Python libraries.
## Table of Contents
* [Prerequisites](#prerequisites)
* [Host bind mounts](#host-bind-mounts)
* [Launch a Dev Container](#launch-a-dev-container)
## Prerequisites
* [VSCode](https://code.visualstudio.com/download)
* [VSCode Remote Containers extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers)
## Host bind mounts
By default, the following directories are bind-mounted into the devcontainer:
* `${repo}:/home/coder/cuspatial`
* `${repo}/../.aws:/home/coder/.aws`
* `${repo}/../.local:/home/coder/.local`
* `${repo}/../.cache:/home/coder/.cache`
* `${repo}/../.conda:/home/coder/.conda`
* `${repo}/../.config:/home/coder/.config`
This ensures caches, configurations, dependencies, and your commits are persisted on the host across container runs.
## Launch a Dev Container
To launch a devcontainer from VSCode, open the cuSpatial repo and select the "Reopen in Container" button in the bottom right:<br/><img src="https://user-images.githubusercontent.com/178183/221771999-97ab29d5-e718-4e5f-b32f-2cdd51bba25c.png"/>
Alternatively, open the VSCode command palette (typically `cmd/ctrl + shift + P`) and run the "Rebuild and Reopen in Container" command.
| 0 |
rapidsai_public_repos/cuspatial | rapidsai_public_repos/cuspatial/.devcontainer/Dockerfile | # syntax=docker/dockerfile:1.5
ARG BASE
ARG PYTHON_PACKAGE_MANAGER=conda
FROM ${BASE} as pip-base
ENV DEFAULT_VIRTUAL_ENV=rapids
RUN apt update -y \
&& DEBIAN_FRONTEND=noninteractive apt install -y \
sqlite3 libsqlite3-dev libtiff-dev libcurl4-openssl-dev \
&& rm -rf /tmp/* /var/tmp/* /var/cache/apt/* /var/lib/apt/lists/*;
FROM ${BASE} as conda-base
ENV DEFAULT_CONDA_ENV=rapids
FROM ${PYTHON_PACKAGE_MANAGER}-base
ARG CUDA
ENV CUDAARCHS="RAPIDS"
ENV CUDA_VERSION="${CUDA_VERSION:-${CUDA}}"
ARG PYTHON_PACKAGE_MANAGER
ENV PYTHON_PACKAGE_MANAGER="${PYTHON_PACKAGE_MANAGER}"
ENV PYTHONSAFEPATH="1"
ENV PYTHONUNBUFFERED="1"
ENV PYTHONDONTWRITEBYTECODE="1"
ENV SCCACHE_REGION="us-east-2"
ENV SCCACHE_BUCKET="rapids-sccache-devs"
ENV VAULT_HOST="https://vault.ops.k8s.rapids.ai"
ENV HISTFILE="/home/coder/.cache/._bash_history"
| 0 |
rapidsai_public_repos/cuspatial/.devcontainer | rapidsai_public_repos/cuspatial/.devcontainer/cuda11.8-pip/devcontainer.json | {
"build": {
"context": "${localWorkspaceFolder}/.devcontainer",
"dockerfile": "${localWorkspaceFolder}/.devcontainer/Dockerfile",
"args": {
"CUDA": "11.8",
"PYTHON_PACKAGE_MANAGER": "pip",
"BASE": "rapidsai/devcontainers:23.12-cpp-llvm16-cuda11.8-ubuntu22.04"
}
},
"hostRequirements": {"gpu": "optional"},
"features": {
"ghcr.io/rapidsai/devcontainers/features/rapids-build-utils:23.12": {}
},
"overrideFeatureInstallOrder": [
"ghcr.io/rapidsai/devcontainers/features/rapids-build-utils"
],
"initializeCommand": ["/bin/bash", "-c", "mkdir -m 0755 -p ${localWorkspaceFolder}/../.{aws,cache,config/pip,local/share/${localWorkspaceFolderBasename}-cuda11.8-venvs}"],
"postAttachCommand": ["/bin/bash", "-c", "if [ ${CODESPACES:-false} = 'true' ]; then . devcontainer-utils-post-attach-command; . rapids-post-attach-command; fi"],
"workspaceFolder": "/home/coder",
"workspaceMount": "source=${localWorkspaceFolder},target=/home/coder/cuspatial,type=bind,consistency=consistent",
"mounts": [
"source=${localWorkspaceFolder}/../.aws,target=/home/coder/.aws,type=bind,consistency=consistent",
"source=${localWorkspaceFolder}/../.cache,target=/home/coder/.cache,type=bind,consistency=consistent",
"source=${localWorkspaceFolder}/../.config,target=/home/coder/.config,type=bind,consistency=consistent",
"source=${localWorkspaceFolder}/../.local/share/${localWorkspaceFolderBasename}-cuda11.8-venvs,target=/home/coder/.local/share/venvs,type=bind,consistency=consistent"
],
"customizations": {
"vscode": {
"extensions": [
"ms-python.flake8",
"nvidia.nsight-vscode-edition"
]
}
}
}
| 0 |
rapidsai_public_repos/cuspatial/.devcontainer | rapidsai_public_repos/cuspatial/.devcontainer/cuda12.0-pip/devcontainer.json | {
"build": {
"context": "${localWorkspaceFolder}/.devcontainer",
"dockerfile": "${localWorkspaceFolder}/.devcontainer/Dockerfile",
"args": {
"CUDA": "12.0",
"PYTHON_PACKAGE_MANAGER": "pip",
"BASE": "rapidsai/devcontainers:23.12-cpp-llvm16-cuda12.0-ubuntu22.04"
}
},
"hostRequirements": {"gpu": "optional"},
"features": {
"ghcr.io/rapidsai/devcontainers/features/rapids-build-utils:23.12": {}
},
"overrideFeatureInstallOrder": [
"ghcr.io/rapidsai/devcontainers/features/rapids-build-utils"
],
"initializeCommand": ["/bin/bash", "-c", "mkdir -m 0755 -p ${localWorkspaceFolder}/../.{aws,cache,config/pip,local/share/${localWorkspaceFolderBasename}-cuda12.0-venvs}"],
"postAttachCommand": ["/bin/bash", "-c", "if [ ${CODESPACES:-false} = 'true' ]; then . devcontainer-utils-post-attach-command; . rapids-post-attach-command; fi"],
"workspaceFolder": "/home/coder",
"workspaceMount": "source=${localWorkspaceFolder},target=/home/coder/cuspatial,type=bind,consistency=consistent",
"mounts": [
"source=${localWorkspaceFolder}/../.aws,target=/home/coder/.aws,type=bind,consistency=consistent",
"source=${localWorkspaceFolder}/../.cache,target=/home/coder/.cache,type=bind,consistency=consistent",
"source=${localWorkspaceFolder}/../.config,target=/home/coder/.config,type=bind,consistency=consistent",
"source=${localWorkspaceFolder}/../.local/share/${localWorkspaceFolderBasename}-cuda12.0-venvs,target=/home/coder/.local/share/venvs,type=bind,consistency=consistent"
],
"customizations": {
"vscode": {
"extensions": [
"ms-python.flake8",
"nvidia.nsight-vscode-edition"
]
}
}
}
| 0 |
rapidsai_public_repos/cuspatial/.devcontainer | rapidsai_public_repos/cuspatial/.devcontainer/cuda12.0-conda/devcontainer.json | {
"build": {
"context": "${localWorkspaceFolder}/.devcontainer",
"dockerfile": "${localWorkspaceFolder}/.devcontainer/Dockerfile",
"args": {
"CUDA": "12.0",
"PYTHON_PACKAGE_MANAGER": "conda",
"BASE": "rapidsai/devcontainers:23.12-cpp-mambaforge-ubuntu22.04"
}
},
"hostRequirements": {"gpu": "optional"},
"features": {
"ghcr.io/rapidsai/devcontainers/features/rapids-build-utils:23.12": {}
},
"overrideFeatureInstallOrder": [
"ghcr.io/rapidsai/devcontainers/features/rapids-build-utils"
],
"initializeCommand": ["/bin/bash", "-c", "mkdir -m 0755 -p ${localWorkspaceFolder}/../.{aws,cache,config,conda/pkgs,conda/${localWorkspaceFolderBasename}-cuda12.0-envs}"],
"postAttachCommand": ["/bin/bash", "-c", "if [ ${CODESPACES:-false} = 'true' ]; then . devcontainer-utils-post-attach-command; . rapids-post-attach-command; fi"],
"workspaceFolder": "/home/coder",
"workspaceMount": "source=${localWorkspaceFolder},target=/home/coder/cuspatial,type=bind,consistency=consistent",
"mounts": [
"source=${localWorkspaceFolder}/../.aws,target=/home/coder/.aws,type=bind,consistency=consistent",
"source=${localWorkspaceFolder}/../.cache,target=/home/coder/.cache,type=bind,consistency=consistent",
"source=${localWorkspaceFolder}/../.config,target=/home/coder/.config,type=bind,consistency=consistent",
"source=${localWorkspaceFolder}/../.conda/pkgs,target=/home/coder/.conda/pkgs,type=bind,consistency=consistent",
"source=${localWorkspaceFolder}/../.conda/${localWorkspaceFolderBasename}-cuda12.0-envs,target=/home/coder/.conda/envs,type=bind,consistency=consistent"
],
"customizations": {
"vscode": {
"extensions": [
"ms-python.flake8",
"nvidia.nsight-vscode-edition"
]
}
}
}
| 0 |
rapidsai_public_repos/cuspatial/.devcontainer | rapidsai_public_repos/cuspatial/.devcontainer/cuda11.8-conda/devcontainer.json | {
"build": {
"context": "${localWorkspaceFolder}/.devcontainer",
"dockerfile": "${localWorkspaceFolder}/.devcontainer/Dockerfile",
"args": {
"CUDA": "11.8",
"PYTHON_PACKAGE_MANAGER": "conda",
"BASE": "rapidsai/devcontainers:23.12-cpp-llvm16-cuda11.8-mambaforge-ubuntu22.04"
}
},
"hostRequirements": {"gpu": "optional"},
"features": {
"ghcr.io/rapidsai/devcontainers/features/rapids-build-utils:23.12": {}
},
"overrideFeatureInstallOrder": [
"ghcr.io/rapidsai/devcontainers/features/rapids-build-utils"
],
"initializeCommand": ["/bin/bash", "-c", "mkdir -m 0755 -p ${localWorkspaceFolder}/../.{aws,cache,config,conda/pkgs,conda/${localWorkspaceFolderBasename}-cuda11.8-envs}"],
"postAttachCommand": ["/bin/bash", "-c", "if [ ${CODESPACES:-false} = 'true' ]; then . devcontainer-utils-post-attach-command; . rapids-post-attach-command; fi"],
"workspaceFolder": "/home/coder",
"workspaceMount": "source=${localWorkspaceFolder},target=/home/coder/cuspatial,type=bind,consistency=consistent",
"mounts": [
"source=${localWorkspaceFolder}/../.aws,target=/home/coder/.aws,type=bind,consistency=consistent",
"source=${localWorkspaceFolder}/../.cache,target=/home/coder/.cache,type=bind,consistency=consistent",
"source=${localWorkspaceFolder}/../.config,target=/home/coder/.config,type=bind,consistency=consistent",
"source=${localWorkspaceFolder}/../.conda/pkgs,target=/home/coder/.conda/pkgs,type=bind,consistency=consistent",
"source=${localWorkspaceFolder}/../.conda/${localWorkspaceFolderBasename}-cuda11.8-envs,target=/home/coder/.conda/envs,type=bind,consistency=consistent"
],
"customizations": {
"vscode": {
"extensions": [
"ms-python.flake8",
"nvidia.nsight-vscode-edition"
]
}
}
}
| 0 |
rapidsai_public_repos/cuspatial | rapidsai_public_repos/cuspatial/docs/README.md | # Building Documentation
As a prerequisite, a RAPIDS compatible GPU is required to build the docs since the notebooks in the docs execute the code to generate the HTML output.
## Steps to follow:
In order to build the docs, we need the conda dev environment from cuspatial and build cuspatial from source. Currently, building cuSpatial requires a source installation of cuDF. See build [instructions](https://github.com/rapidsai/cudf/blob/branch-0.13/CONTRIBUTING.md#setting-up-your-build-environment).
1. Create a conda env and build cuspatial from source. The dependencies to build rapids from source are installed in that conda environment, and then rapids is built and installed into the same environment.
2. Once cudf is built from source, navigate to `cuspatial/docs/`. If you have your documentation written and want to turn it into HTML, run makefile:
```bash
#be in the same directory as your Makefile
make html
```
This should run Sphinx in your shell, and outputs to `build/html/index.html`.
## View docs web page by opening HTML in browser:
First navigate to `/build/html/` folder, i.e., `cd build/html` and then run the following command:
```bash
python -m http.server
```
Then, navigate a web browser to the IP address or hostname of the host machine at port 8000:
```
https://<host IP-Address>:8000
```
Now you can check if your docs edits formatted correctly, and read well.
| 0 |
rapidsai_public_repos/cuspatial | rapidsai_public_repos/cuspatial/docs/make.bat | @ECHO OFF
pushd %~dp0
REM Command file for Sphinx documentation
if "%SPHINXBUILD%" == "" (
set SPHINXBUILD=sphinx-build
)
set SOURCEDIR=source
set BUILDDIR=build
set SPHINXPROJ=cuspatial
if "%1" == "" goto help
%SPHINXBUILD% >NUL 2>NUL
if errorlevel 9009 (
echo.
echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
echo.installed, then set the SPHINXBUILD environment variable to point
echo.to the full path of the 'sphinx-build' executable. Alternatively you
echo.may add the Sphinx directory to PATH.
echo.
echo.If you don't have Sphinx installed, grab it from
echo.http://sphinx-doc.org/
exit /b 1
)
%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%
goto end
:help
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%
:end
popd
| 0 |
rapidsai_public_repos/cuspatial | rapidsai_public_repos/cuspatial/docs/Makefile | # Minimal makefile for Sphinx documentation
#
# You can set these variables from the command line.
SPHINXOPTS = -n -v
SPHINXBUILD = sphinx-build
SPHINXPROJ = cuspatial
SOURCEDIR = source
BUILDDIR = build
# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
.PHONY: help Makefile
# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
| 0 |
rapidsai_public_repos/cuspatial/docs | rapidsai_public_repos/cuspatial/docs/cuproj/README.md | # Building cuProj Documentation
As a prerequisite, a [RAPIDS compatible GPU](https://docs.rapids.ai/install#system-req) is required to build the docs since the notebooks in the
docs execute the code to generate the HTML output.
## Steps to follow:
In order to build the docs, we need the conda dev environment from cuproj to build cuproj from
source.
1. Create a conda env and build cuproj from source. The dependencies to build cuproj from source are
installed in that conda environment, and then cuproj is built and installed into the same environment.
2. Once cuproj is built from source, navigate to `cuspatial/docs/cuproj`. When the documentation
is written run the makefile to build HTML:
```bash
# in the same directory as Makefile
make html
```
This runs Sphinx in the shell, and outputs to `build/html/index.html`.
## View docs web page by opening HTML in browser:
First navigate to `/build/html/` folder, i.e., `cd build/html` and then run the following command:
```bash
python -m http.server
```
Then, navigate a web browser to the IP address or hostname of the host machine at port 8000:
```
https://<host IP-Address>:8000
```
Now you can check if your docs edits are formatted correctly and read well.
| 0 |
rapidsai_public_repos/cuspatial/docs | rapidsai_public_repos/cuspatial/docs/cuproj/make.bat | @ECHO OFF
pushd %~dp0
REM Command file for Sphinx documentation
if "%SPHINXBUILD%" == "" (
set SPHINXBUILD=sphinx-build
)
set SOURCEDIR=source
set BUILDDIR=build
set SPHINXPROJ=cuproj
if "%1" == "" goto help
%SPHINXBUILD% >NUL 2>NUL
if errorlevel 9009 (
echo.
echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
echo.installed, then set the SPHINXBUILD environment variable to point
echo.to the full path of the 'sphinx-build' executable. Alternatively you
echo.may add the Sphinx directory to PATH.
echo.
echo.If you don't have Sphinx installed, grab it from
echo.http://sphinx-doc.org/
exit /b 1
)
%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%
goto end
:help
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%
:end
popd
| 0 |
rapidsai_public_repos/cuspatial/docs | rapidsai_public_repos/cuspatial/docs/cuproj/Makefile | # Minimal makefile for Sphinx documentation
#
# You can set these variables from the command line.
SPHINXOPTS = -n -v
SPHINXBUILD = sphinx-build
SPHINXPROJ = cuproj
SOURCEDIR = source
BUILDDIR = build
# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
.PHONY: help Makefile
# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
| 0 |
rapidsai_public_repos/cuspatial/docs/cuproj | rapidsai_public_repos/cuspatial/docs/cuproj/source/index.md | # cuProj: GPU-Accelerated Cartographic Projections and Coordinate Transformations
cuProj is a generic coordinate transformation library that transforms geospatial coordinates from
one coordinate reference system (CRS) to another. This includes cartographic projections as well as
geodetic transformations. cuProj is implemented in CUDA C++ to run on GPUs to provide the highest
performance.
cuProj provides a Python API that closely matches the
[PyProj](https://pyproj4.github.io/pyproj/stable/) API.
Currently cuProj only supports a subset of the Proj transformations. The following transformations are supported:
- WGS84 to/from UTM
```{toctree}
:maxdepth: 2
:caption: Contents
user_guide/index
api_docs/index
developer_guide/index
```
# Indices and tables
- {ref}`genindex`
- {ref}`search`
| 0 |
rapidsai_public_repos/cuspatial/docs/cuproj | rapidsai_public_repos/cuspatial/docs/cuproj/source/conf.py | # Copyright (c) 2023, NVIDIA CORPORATION.
# -- General configuration ------------------------------------------------
# If your documentation needs a minimal Sphinx version, state it here.
#
# needs_sphinx = '1.0'
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
"sphinx.ext.autosectionlabel",
"sphinx.ext.intersphinx",
"sphinx.ext.autodoc",
"sphinx.ext.autosummary",
"numpydoc",
"IPython.sphinxext.ipython_console_highlighting",
"IPython.sphinxext.ipython_directive",
"nbsphinx",
"myst_parser"
]
nb_execution_mode = "force"
nb_execution_timeout = 300
copybutton_prompt_text = ">>> "
autosummary_generate = True
ipython_mplbackend = "str"
myst_heading_anchors = 3
# Add any paths that contain templates here, relative to this directory.
templates_path = ["_templates"]
# The suffix(es) of source filenames.
# You can specify multiple suffix as a list of string:
#
# source_suffix = ['.rst', '.md']
source_suffix = {".rst": "restructuredtext", ".md": "markdown"}
# The master toctree document.
master_doc = "index"
# General information about the project.
project = "cuProj"
copyright = "2023, NVIDIA"
author = "NVIDIA"
# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
#
# The short X.Y version.
version = '23.12'
# The full version, including alpha/beta/rc tags.
release = '23.12.00'
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
#
# This is also used if you do content translation via gettext catalogs.
# Usually you set "language" from the command line for these cases.
language = "en"
# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
# This patterns also effect to html_static_path and html_extra_path
exclude_patterns = []
# The name of the Pygments (syntax highlighting) style to use.
pygments_style = "sphinx"
# If true, `todo` and `todoList` produce output, else they produce nothing.
todo_include_todos = False
html_theme_options = {
"external_links": [],
# https://github.com/pydata/pydata-sphinx-theme/issues/1220
"icon_links": [],
"github_url": "https://github.com/rapidsai/cuspatial",
"twitter_url": "https://twitter.com/rapidsai",
"show_toc_level": 1,
"navbar_align": "right",
}
# -- Options for HTML output ----------------------------------------------
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
html_theme = "pydata_sphinx_theme"
# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
# documentation.
#
# html_theme_options = {}
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = []
# -- Options for HTMLHelp output ------------------------------------------
# Output file base name for HTML help builder.
htmlhelp_basename = "cuprojdoc"
# -- Options for LaTeX output ---------------------------------------------
latex_elements = {
# The paper size ('letterpaper' or 'a4paper').
#
# 'papersize': 'letterpaper',
# The font size ('10pt', '11pt' or '12pt').
#
# 'pointsize': '10pt',
# Additional stuff for the LaTeX preamble.
#
# 'preamble': '',
# Latex figure (float) alignment
#
# 'figure_align': 'htbp',
}
# Grouping the document tree into LaTeX files. List of tuples
# (source start file, target name, title,
# author, documentclass [howto, manual, or own class]).
latex_documents = [
(
master_doc,
"cuproj.tex",
"cuProj Documentation",
"NVIDIA Corporation",
"manual",
)
]
# -- Options for manual page output ---------------------------------------
# One entry per manual page. List of tuples
# (source start file, name, description, authors, manual section).
man_pages = [(master_doc, "cuproj", "cuProj Documentation", [author], 1)]
# -- Options for Texinfo output -------------------------------------------
# Grouping the document tree into Texinfo files. List of tuples
# (source start file, target name, title, author,
# dir menu entry, description, category)
texinfo_documents = [
(
master_doc,
"cuProj",
"cuProj Documentation",
author,
"cuProj",
"One line description of project.",
"Miscellaneous",
)
]
# Example configuration for intersphinx: refer to the Python standard library.
intersphinx_mapping = {
"python": ("https://docs.python.org/3", None),
}
# Config numpydoc
numpydoc_show_inherited_class_members = False
numpydoc_class_members_toctree = False
nbsphinx_allow_errors = True
def setup(app):
app.add_css_file("https://docs.rapids.ai/assets/css/custom.css")
app.add_js_file("https://docs.rapids.ai/assets/js/custom.js", loading_method="defer")
| 0 |
rapidsai_public_repos/cuspatial/docs/cuproj/source | rapidsai_public_repos/cuspatial/docs/cuproj/source/user_guide/cuproj_api_examples.ipynb | # !conda create -n rapids-23.12 --solver=libmamba -c rapidsai -c conda-forge -c nvidia \
# cuproj-23.12 python=3.10 cuda-version=12.0from cuproj.transformer import Transformer
# Tower of London latitude and longitude
lat = 51.5081
lon = -0.0761
# Transform to UTM (x, y) in meters using CuProj
cu_transformer = Transformer.from_crs("epsg:4326", "EPSG:32630")
x, y = cu_transformer.transform(lat, lon)
print(f"WGS84 (lat,lon): ({lat:.2f}, {lon:.2f}) degrees")
print(f"UTM Zone 30N (x,y): ({x:.2f}, {y:.2f}) meters")
import cupy as cp
# (lat, lon) box around Sydney, NSW, Australia
min_corner = (-34.2, 150.5)
max_corner = (-33.5, 151.5)
crs_to = "EPSG:32756"
num_points_x = 100
num_points_y = 100
# A grid of 100x100 points in the bounding box of London in WGS84 (lat/lon)
# stored as a list of two arrays (x, y) in device memory (cupy)
x, y = cp.meshgrid(
cp.linspace(min_corner[0], max_corner[0], num_points_y),
cp.linspace(min_corner[1], max_corner[1], num_points_x))
grid = [x.reshape(-1), y.reshape(-1)]
transformer = Transformer.from_crs("EPSG:4326", crs_to)
x, y = transformer.transform(*grid)
print(f"min_corner in UTM zone 56S: ({x[0]}, {y[0]}) in meters")
print(f"max_corner in UTM zone 56S: ({x[-1]}, {y[-1]}) in meters") | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.