Esri / local-government-desktop-addins

A series of ArcGIS Desktop Add-ins used in the ArcGIS for Local Government editing maps.
Apache License 2.0
61 stars 56 forks source link

Add Laterals Tool, SplitLateral not working #258

Closed kcarrier closed 6 years ago

kcarrier commented 7 years ago

We are trying to split a lateral line for customer or street side of a curb box valve and we are unable to get SplitLateral to work as expected. ArcGIS Desktop version 10.5.1, Below is our configuration any help would be greatly appreciated. We have also contacted Esri Support and will post back if a solution is found. Thank you in advance for your help!

<!-- Begin Configuration Section for the Add Laterals Tool and Construction Tools, This is an XML array, so you can define any number of AddLateralDetails Entities-->
  <AddLateralsLayers>

    <!-- Start of the Entry, the name is just for reference, not used or presented-->
    <AddLateralDetails Name="Water Meters to Mains">
      <!-- The Point layer to connect to the main through a lateral-->
      <Point_LayerName>Water Meter Location</Point_LayerName>
      <!-- the layer to look to connect to, the lateral will connect to this from the point-->
      <MainLine_LayerName>Water Main</MainLine_LayerName>
      <!-- The line used to connect the point to the main-->
      <LateralLine_LayerName>Water Service</LateralLine_LayerName>
      <!-- The Template to use to populate the attributes of the lateral line, this can be removed or left blank and the user will be prompt for a template-->
      <LateralLine_EditTemplate>StreetService</LateralLine_EditTemplate>

      <FromToFields>
        <!--XML Array of From/To Fields to copy from the Main to the Point-->
        <FromToField>
          <!-- The field in main that contains the attribute you want to apply to the point, this can be left blank or removed-->
          <SourceField>FACILITYID</SourceField>
          <!-- A field in the point layer that can be populated with a value from the main, this can be removed or left blank-->
          <TargetField>DEVICEID</TargetField>
          <!-- A prefix that can be applied to the value extracted from the main and applied to the point, this can be left blank -->
          <!-- <Prefix>PipeID:</Prefix> -->
        </FromToField>
        <!-- Repeat-->
        <!-- <FromToField>
          <SourceField>INSTALLDATE</SourceField>
          <TargetField>INSTALLDATE</TargetField>
          <Prefix>PipeID:</Prefix>
        </FromToField> -->

      </FromToFields>

      <!-- Determines the direction to draw the main, flow is set with digitized direction.
      This affects the distance set in the point along sections below, that is from the start of the main-->
      <LateralLine_StartAtMain>true</LateralLine_StartAtMain>
      <!-- Option to split the main at the intersection of the lateral-->
      <LateralLine_SplitMain>false</LateralLine_SplitMain>
      <!-- This will check for an existing lateral beteen the point and the main and remove it if one is found; set to false to leave an existing lateral-->
      <DeleteExistingLines>false</DeleteExistingLines>
      <!-- The tolerance to search for the lateral from the point feature-->
      <TolerenceForDelete>.5</TolerenceForDelete>
      <!--Restrict searches by layer definition-->
      <SearchOnLayer>true</SearchOnLayer>
      <!--The distance to search for the closest line from the point-->
      <SearchDistance>500</SearchDistance>
      <!-- This section allows you to create a series of points along the main, it can be removed-->
      <PointsAlong>
        <!-- The entry for one point-->
        <PointAlong>
          <!-- The name of the layer to place, this must match the layer name in the TOC-->
          <LayerName>Curb Valve</LayerName>
          <!-- The distance to place along the lateral, percent or feature units-->
          <Distance>50</Distance>
          <!-- Determines if the distance above is percent or feature units-->
          <DistanceIsPercent>true</DistanceIsPercent>
          <!-- The editor template used to fill in the attributes, this can be removed or left blank and the user will be prompted for a template-->
          <EditTemplate></EditTemplate>
          <!--Option to intersect a polygon layer and offset the point from the intersection point on the polygon boundary-->
          <PolygonOffsetLayerName></PolygonOffsetLayerName>
          <!--To or the From Side of the intersection, the digitized direction of the lateral matters: Options - To or From-->
          <PolygonOffsetSide></PolygonOffsetSide>
          <!-- Option to split the lateral at the intersection -->
          <SplitLateral>true</SplitLateral>
          <!-- ends this layer's configuration-->
        </PointAlong>
        <!-- start of next layer, you can copy and repeat these sections for any 
        number of point layers-->
        <PointAlong>
          <LayerName>Water Fitting</LayerName>
          <EditTemplate></EditTemplate>
          <Distance>0</Distance>
          <DistanceIsPercent>true</DistanceIsPercent>
          <SplitLateral>false</SplitLateral>        
        </PointAlong>
        <!--Repeat for additional Points-->
      </PointsAlong>
      <!-- This option will connect two points to the main through a single lateral if the features are within a tolerance-->
      <Dual_When_Two_Selected>true</Dual_When_Two_Selected>
      <!-- This will dual nearby meters even when not selected -->
      <Dual_When_Nearby>true</Dual_When_Nearby>
      <!-- The distance to search to create a dual lateral with selected features-->
      <Dual_Max_Distance_When_Two_Selected>100</Dual_Max_Distance_When_Two_Selected>
      <!-- The distance to search to create a dual lateral with nearby features-->
      <Dual_Max_Distance_When_Nearby>30</Dual_Max_Distance_When_Nearby>
      <!-- Determines how to draw the dual laterals, square or a Y shape-->
      <Dual_Option_Make_Square>true</Dual_Option_Make_Square>
      <!-- The distance on the lateral to turn 45 degrees on the main-->
      <Hook_DoglegDistance>0</Hook_DoglegDistance>
      <!-- Determines if the dogleg is a distance or a percent down the lateral-->
      <Hook_DistanceIsPercent>true</Hook_DistanceIsPercent>
      <!-- The angle of the dogleg-->
      <Hook_Angle>45</Hook_Angle>
      <!-- Option to reset flow after edit - Digitized, Role, None-->
      <Reset_Flow>Digitized</Reset_Flow>

      <!-- End the config for one point to main with lateral config-->
MikeMillerGIS commented 7 years ago

Ken, I think you need to use the preview builds for that. let me check

https://github.com/Esri/local-government-desktop-addins/tree/dev/PreviewBuilds

MikeMillerGIS commented 7 years ago

nope, was in last release - https://github.com/Esri/local-government-desktop-addins/issues/137

MikeMillerGIS commented 7 years ago

what is the version of the tools?

kcarrier commented 7 years ago

2017 3.1 water utility network tools.

2017 3.1 attribute assistant

On Aug 15, 2017 2:18 PM, "Michael Miller" notifications@github.com wrote:

what is the version of the tools?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Esri/local-government-desktop-addins/issues/258#issuecomment-322546462, or mute the thread https://github.com/notifications/unsubscribe-auth/ADnVNua2ZfxbUAzyHJRJF0WWuHonJ7oYks5sYeD2gaJpZM4O37Gs .

MikeMillerGIS commented 7 years ago

ahhh, for the fitting at 0 distance, you need to use the second option I mention in 137, outside of the points along

  <LateralLine_SplitMain>false</LateralLine_SplitMain>
kcarrier commented 7 years ago

Mike I think we need a little clarification. We already have that tag in our code above PointsAlong in previous xml we posted. Does it need to be below PointsAlong?

      <!-- Option to split the main at the intersection of the lateral-->
      <LateralLine_SplitMain>false</LateralLine_SplitMain>
MikeMillerGIS commented 7 years ago

you want it to split, right, change to true

false

to

true
kcarrier commented 7 years ago

Sorry for the confusion Mike. Here is a screen shot of what we are trying to accomplish.

image

MikeMillerGIS commented 7 years ago

ok, could you send me your file and a subset of your data?

kcarrier commented 7 years ago

Email en route.

MikeMillerGIS commented 7 years ago

Thanks Ken, found this was a bug when only using Distance as Percent. Resolved it.

Linking to https://github.com/Esri/local-government-desktop-addins/issues/259 as I forgot you opened an issue.