Select to view content in your preferred language

Reproject Utility Network Issue

1282
7
Jump to solution
08-15-2023 08:06 PM
DeepikaJain01
Occasional Contributor

Dear Community

I am trying to build a Utility Network for telco data, for that I have downloaded sample telecommunications Utility Network sample from ArcGIS Solutions. I have aligned my data model as per AssetPackage.gdb and have inserted the data into it. Now the issue is I need to reproject this data into another projection. When I am reprojecting the actual mobile geodatabase, it breaks the UN Dataset. I have re projected AssetPackage.gdb and have created a new UN Model on that data. Now when I try to import the rules from the sample UN that ESRi has provided it shows the error that the feature restrictions is not allowing to import the rules, although I am working on ESRI provided sample schema only. The only thing is I have just reprojected the schema in AssetPackage. 

I am not sure how to proceed ahead with this. Please help me to reproject the data.

Tags (1)
0 Kudos
5 Solutions

Accepted Solutions
TobeyKane-Seitz
Occasional Contributor

How are you reprojecting the data? I would start with the asset package from the solution and run the change asset package spatial reference tool https://doc.arcgis.com/en/arcgis-solutions/latest/tool-reference/utility-network-package/change-asse... 

View solution in original post

RobertKrisher
Esri Regular Contributor

Agree with @TobeyKane-Seitz 100%. You'll need to go back to your asset package and run the "Change Asset Package Spatial Reference" tool to put the data in the correct coordinate system. You can then stage/apply your asset package normally.

View solution in original post

0 Kudos
RobertKrisher
Esri Regular Contributor

You should only use the Change Asset Package Spatial Reference tool to reproject your asset package, using any other method will cause you to lose the contents of all the system tables in the original asset package. As long as you use the correct tool it will preserve all the original rules, configuration, and data of the original asset package.

With regards to the 0000 globalids, if your source data had global ids you need to make sure that you have mapped them to that field. If your source data did not have global ids, you'll need to run a script to calculate a new global id for each row.  I stole the following script from this community post:

import uuid
fc = 'TEST.russellpythonguidtest'
rows = arcpy.UpdateCursor(fc)
for row in rows:
     row.PYTHONGUID = '{' + str(uuid.uuid1()) + '}'
     rows.updateRow(row)

https://community.esri.com/t5/geoprocessing-questions/write-guid-using-python/td-p/118035  

View solution in original post

0 Kudos
DeepikaJain01
Occasional Contributor

Thank You so much @RobertKrisher for the help. I am finally able to build the UN with all the rules, next step is to learn about creating SubNetwork in order to run Upstream and Downstream traces. Regardless, I really appreciate your help!

View solution in original post

0 Kudos
RobertKrisher
Esri Regular Contributor

@DeepikaJain01 that's great news! You can find blogs about creating subnetworks over here: Managing Subnetworks with ArcGIS Utility Network.  A little later this year we will also be posting several tutorials covering the content of the blogs. 

View solution in original post

0 Kudos
7 Replies
TobeyKane-Seitz
Occasional Contributor

How are you reprojecting the data? I would start with the asset package from the solution and run the change asset package spatial reference tool https://doc.arcgis.com/en/arcgis-solutions/latest/tool-reference/utility-network-package/change-asse... 

RobertKrisher
Esri Regular Contributor

Agree with @TobeyKane-Seitz 100%. You'll need to go back to your asset package and run the "Change Asset Package Spatial Reference" tool to put the data in the correct coordinate system. You can then stage/apply your asset package normally.

0 Kudos
DeepikaJain01
Occasional Contributor

Hi @TobeyKane-Seitz  and @RobertKrisher for your inputs. I got the point that we cannot straightaway reproject UN, so what I have done is I have projected AssetPackage and have pumped data into it. I am running into Global Id being {0000-0000-0000} issue. Also, I am not sure what are the next steps to build the UN on top of that, I want copy the rules of the exiting ESRI Telco UN into my AssetPackage. 

Once again, thanks a lot for your help!

0 Kudos
RobertKrisher
Esri Regular Contributor

You should only use the Change Asset Package Spatial Reference tool to reproject your asset package, using any other method will cause you to lose the contents of all the system tables in the original asset package. As long as you use the correct tool it will preserve all the original rules, configuration, and data of the original asset package.

With regards to the 0000 globalids, if your source data had global ids you need to make sure that you have mapped them to that field. If your source data did not have global ids, you'll need to run a script to calculate a new global id for each row.  I stole the following script from this community post:

import uuid
fc = 'TEST.russellpythonguidtest'
rows = arcpy.UpdateCursor(fc)
for row in rows:
     row.PYTHONGUID = '{' + str(uuid.uuid1()) + '}'
     rows.updateRow(row)

https://community.esri.com/t5/geoprocessing-questions/write-guid-using-python/td-p/118035  

0 Kudos
DeepikaJain01
Occasional Contributor

Thank You so much @RobertKrisher for the help. I am finally able to build the UN with all the rules, next step is to learn about creating SubNetwork in order to run Upstream and Downstream traces. Regardless, I really appreciate your help!

0 Kudos
RobertKrisher
Esri Regular Contributor

@DeepikaJain01 that's great news! You can find blogs about creating subnetworks over here: Managing Subnetworks with ArcGIS Utility Network.  A little later this year we will also be posting several tutorials covering the content of the blogs. 

0 Kudos
DeepikaJain01
Occasional Contributor

Hi @RobertKrisher 

I cannot thank you enough for the help.

0 Kudos