GNServer(几何网络分析)扩展ArcGIS Rest—GNServer的Schema

资源

语法:http://<s-url>/ext/GNServer,

作用:返回Geometricnetwork包含的所有图层

响应

{

"GeometricNetwork Layers"  : [

{

  "fcname" :"Sewer_Junctions",

  "fcid" :18

},

{

  "fcname" :"sewerpt_point",

  "fcid" :6

}

]

}

操作

语法

http://<s-url> /ext/GNServer/Trace?JunctionFlags=&EdgeFlags=&

JunctionBarriers=&EdgeBarriers=&TraceType=&DisableLayers=&EdgeOutFields=&JunctionOutFields=

  

作用:设施网络分析

参数

JunctionFlags

{

"features"  : [

{

  "geometry" : {"x" :-122.4079, "y" : 37.78356},

  "attributes" : {"Name" :"From", "RouteName" : "Route A"}

},

{

  "geometry" : {"x" :-122.404, "y" : 37.782},

  "attributes" : {"Name" :"To", "RouteName" : "Route A"}

}

]

}

 

EdgeFlags

{

"features"  : [

{

  "geometry" : {"x" :-122.4079, "y" : 37.78356},

  "attributes" : {"Name" :"From", "RouteName" : "Route A"}

},

{

  "geometry" : {"x" :-122.404, "y" : 37.782},

  "attributes" : {"Name" :"To", "RouteName" : "Route A"}

}

]

}

 

JunctionBarriers

{

"features"  : [

{

  "geometry" : {"x" :-122.4079, "y" : 37.78356},

  "attributes" : {"Name" :"From", "RouteName" : "Route A"}

},

{

  "geometry" : {"x" :-122.404, "y" : 37.782},

  "attributes" : {"Name" :"To", "RouteName" : "Route A"}

}

]

}

 

EdgeBarriers

{

"features"  : [

{

  "geometry" : {"x" :-122.4079, "y" : 37.78356},

  "attributes" : {"Name" :"From", "RouteName" : "Route A"}

},

{

  "geometry" : {"x" :-122.404, "y" : 37.782},

  "attributes" : {"Name" :"To", "RouteName" : "Route A"}

}

]

}

 

TraceType,分析的类型,可能的值FindCommon Ancestors、Find Connected、Find Loops、Find Disconnected、Find Path Upstream、Find Path、Trace Downstream、Find Upstream Accumulation、Trace Upstream

FindCommon Ancestors

 

DisableLayers,不参与运算的图层,充当barriers

fcid1,fcid 2,fcid 3

 

EdgeOutFields,edge返回的字段

OBJECTID,SEWER_ID,LINE_TYPE,LINETYPE_CODE

 

JunctionOutFields,junction返回的字段

OBJECTID,SEWERPT_ID,NODE_TYPE

 

响应

{

  "Edges" : [

    {

      "geometry" : {

        "paths" : [

          [

            [

              557518.23921400006,

              43369.827911916669

            ],

            [

              557508.74988066661,

              43374.820245249997

            ]

          ]

        ]

      },

      "attributes" : {

        "OBJECTID" :"6831",

        "SEWER_ID" : "660",

        "LINE_TYPE" : "LA",

        "LINETYPE_CODE" :"0"

      }

    },

    {

      "geometry" : {

        "paths" : [

          [

            [

              557485.36788066663,

              43334.35324525

            ],

            [

              557518.23921400006,

              43369.827911916669

            ]

          ]

        ]

      },

      "attributes" : {

        "OBJECTID" :"6879",

        "SEWER_ID" : "909",

        "LINE_TYPE" : "MG",

        "LINETYPE_CODE" :"1"

      }

    }

]

"Junctions": [

    {

      "geometry" : {

        "x" : 557137.62488066661,

        "y" : 42729.242245249996

      },

      "attributes" : {

        "OBJECTID" :"7555",

        "SEWERPT_ID" :"2076",

        "NODE_TYPE" : "MH"

      }

    },

    {

      "geometry" : {

        "x" : 557239.29388066672,

        "y" : 42838.977578583334

      },

      "attributes" : {

        "OBJECTID" :"7398",

        "SEWERPT_ID" :"470",

        "NODE_TYPE" : "OT"

      }

    }

]

}

你可能感兴趣的:(GNServer(几何网络分析)扩展ArcGIS Rest—GNServer的Schema)