Using Distance Accumulation on a sphere : how to avoid projection "edges" ?

314
0
11-10-2023 05:51 AM
MartinKr
New Contributor

Hello everyone,

(Working with ArcGIS Pro 3.1.1)

I try to generate Distance Accumulation rasters from various points on the globe, and I notice that distances do not "cross" the edge of the map projection. The shorter distance from Americas to Asia if not accross Pacific.

Any suggestion on how could I ask the tool to work with geographic systems and not projected ?

 ere the parameters used :

 

with arcpy.EnvManager(outputCoordinateSystem='GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]]'):
    out_distance_accumulation_raster = arcpy.sa.DistanceAccumulation(
        in_source_data="path_to_input",
        in_barrier_data=None,
        in_surface_raster=None,
        in_cost_raster="path_to_cost_surface",
        in_vertical_raster=None,
        vertical_factor="BINARY 1 -30 30",
        in_horizontal_raster=None,
        horizontal_factor="BINARY 1 45",
        out_back_direction_raster=None,
        out_source_direction_raster=None,
        out_source_location_raster=None,
        source_initial_accumulation=None,
        source_maximum_accumulation=None,
        source_cost_multiplier=None,
        source_direction="",
        distance_method="PLANAR"
    )
out_distance_accumulation_raster.save(r"path_to.gdb/output_name")

 

 

Tags (1)
0 Replies