OpenGridMap / transnet

Transmission System Network Inference
Apache License 2.0
13 stars 5 forks source link

Only one PositionPoint for ACLineSegment locations. #61

Open bodo321 opened 5 years ago

bodo321 commented 5 years ago

Hello, I'm looking at your generated CIM files from OSM and notice that the ACLineSegments locations have only one PositonPoint.

bodo321 commented 5 years ago

I tried to get Transnet to run, but my CIM output for Austria contains only 3 objects.

This is the Transnet.py output: /home/user/anaconda2/envs/transnet/bin/python /home/user/Documents/git/transnet/app/Transnet.py -D austria -U postgres -X OpenGridMap -p /home/user/Documents/git/transnet/data/austria/pfile.poly -V "220000|380000" -d austria -n -v -o Running for ../models/countries/austria Running for austria Infer for austria Infer net for voltage level 220000V Found 333 lines Found 406 stations Could not extract power from string yes Found 23 generators Infer net for voltage level 380000V Found 206 lines Found 654 stations Could not extract power from string yes Could not extract power from string yes Found 14 generators Total length of all found lines is 3888157.87206 meters Centroid lat:47.545895, lon:14.035313 Remove duplicates from 0 circuits 0 circuits remain Line length with duplicates is 0 meters Inference took 0:00:17.563326 millies CSV generation started ... CIM model generation started ... 3 CIM objects serialised in 0.00s. 3 CIM objects serialised in 0.00s. All lines length without duplicates 0 All lines length with duplicates 0 All Stations count 0 All power Planets count 0 Took 0:00:17.565389 in total #################################################

How can I fix this?

Edit: cim_pretty.xml: <?xml version="1.0" encoding="utf-8"?>

14.0353130707 1 47.5458946008
epezhman commented 5 years ago

Hi Bodo, The CIM generator script was tuned to be used with german model, and I'm not sure how it performs on other countries. Currently we are not developing the project further. I'm afraid you need to look into the code and debug it. It would be great, if you could share any fix you found. Thank you.

bodo321 commented 5 years ago

Thank you very much for your answer. I will try to fix that. Do you also accept a PR that implements LineString-Geometry for ACLineSegments?

epezhman commented 5 years ago

Sure, that would be very helpful. Thanks.