Esri / visibility-addin-dotnet

ArcGIS Add-in provides the capability to quickly do line of sight analyses.
Apache License 2.0
14 stars 19 forks source link

LLOS crashing with Geographic WGS 1984 surface #31

Closed mfunk closed 7 years ago

mfunk commented 8 years ago

Trying to run Linear Line of Sight AddIn tool on a geographic surface, but it is crashing ArcMap consistently.

  1. Install the Visibility AddIn
  2. Open ArcMap
  3. Add basemap, and n36.dt2
  4. Add Visibility Add-In to toolbar
  5. Launch Visibility tool
  6. Set Input Surface to n36.dt2
  7. Select single Observer Point, and single Target Point
  8. Click OK ... ArcMap works for a minute or two and then crashes.

Dialog before OK: image

If the surface is projected to California State Plane Feet, LLOS completes with results (though not sure if they are correct). Spatial Ref info is:

<Spatial_Reference>NAD_1983_StatePlane_California_IV_FIPS_0404_Feet
<Linear_Unit>Foot_US (0.304801)</Linear_Unit>
<Angular_Unit>Degree (0.0174532925199433)</Angular_Unit>
<False_Easting>6561666.666666666</False_Easting>
<False_Northing>1640416.666666667</False_Northing>
<Central_Meridian>-119</Central_Meridian>
<Standard_Parallel_1>36</Standard_Parallel_1>
<Standard_Parallel_2>37.25</Standard_Parallel_2>
<Latitude_Of_Origin>35.33333333333334</Latitude_Of_Origin>
<Datum>D_North_American_1983</Datum></Spatial_Reference>

Raster Property Info for n36.dt2 is as follows:

<TreeList>
<Raster_Information>
<Columns_and_Rows>3601, 3601</Columns_and_Rows><Number_of_Bands>1</Number_of_Bands>
<Cell_Size__X._Y_>0.00027777778, 0.00027777778</Cell_Size__X._Y_><Uncompressed_Size>24.73 MB</Uncompressed_Size>
<Format>DTED Level 2</Format>
<Source_Type>Generic</Source_Type>
<Pixel_Type>signed integer</Pixel_Type>
<Pixel_Depth>16 Bit</Pixel_Depth>
<NoData_Value>-32767</NoData_Value>
<Colormap>absent</Colormap>
<Pyramids>level: 4, resampling: Nearest Neighbor</Pyramids>
<Compression>None</Compression>
<Mensuration_Capabilities>Basic</Mensuration_Capabilities>
<Status>Permanent</Status>
</Raster_Information>

<Extent>
<Top>37.0001388889</Top>
<Left>-122.000138889</Left>
<Right>-120.999861111</Right>
<Bottom>35.9998611111</Bottom>
</Extent>

<Spatial_Reference>GCS_WGS_1984
<Linear_Unit></Linear_Unit>
<Angular_Unit>Degree (0.0174532925199433)</Angular_Unit>
<Datum>D_WGS_1984</Datum>
</Spatial_Reference>

<Statistics>
<Band_1>Statistics have not been calculated.
<Build_Parameters></Build_Parameters>
<Min></Min>
<Max></Max>
<Mean></Mean>
<Std_dev.></Std_dev.>
<Classes></Classes>
</Band_1>
</Statistics>

</TreeList>
jmccausland commented 8 years ago

If I add the DTED first, it works.

image

mfunk commented 8 years ago

Got it. Using the coordinate system from the Data Frame. If I set it explicitly it doesn't crash.However If I used the basemap coordinate system (Web Merc) it does crash (sad sauce). Not sure if we want to mark it as a known issue or not.

topowright-zz commented 8 years ago

@mfunk Please verify if this is still an issue. Otherwise please close the issue.