Dear Jakob,

I am new to sumo and I want to create a TAZ file. After reading
documentation that you have suggested in the past mail, I have performed
the below step to create a TAZ file.

1. By using polyconvert, I converted the shapefile to a polygon file.: for
that used command👉 polyconvert -n osm.net.xml --shapefile-prefixes taz
--shapefile.id-column id --shapefile.guess-projection t -o
converted.poly.xml --type taz --color 51,128,255

Successfully converted shapefile.

2. After that, I want to convert the converted.poly.xml file to TAZ file:
for that used command👉 (Here, I have given SUMO_HOME path in the
Environment variable)edgesInDistricts.py -n osm.net.xml -t
converted.poly.xml -o TAZ.xml.

But I have not got any output .xml file and it's opening
edgesInDistricts.py file in the python interpreter as output.
Here is the output from cmd.
[image: Capture 1.PNG]
Can you please look at the problem and guide me through it?

Thank you for the understanding.

Best regards,
Jatin

On Wed, Jun 15, 2022 at 3:10 PM Jakob Erdmann <[email protected]> wrote:

> see https://sumo.dlr.de/docs/Tools/index.html#how_to_use_python_tools
>
> Am Mi., 15. Juni 2022 um 14:00 Uhr schrieb Jatin Senjaliya <
> [email protected]>:
>
>> Hello Jakob,
>>
>> I have tried to run the edgesindistrics.py tool by sumocommand. To run
>> this tool I set the working directory to where the tool is located in my
>> case(C:\Program Files (x86)\Eclipse\Sumo\tools). But I am not getting any
>> output. It is directly opening the tool's code script into the python
>> interpreter. So, my question is, is it necessary that .net.xml and
>> .poly.xml file should be in the same directory?
>>
>> Can you please clarify my doubt?
>>
>> Thank you.
>>
>> Best regards,
>> Jatin
>>
>> On Wed, Jun 15, 2022 at 11:49 AM Jakob Erdmann <[email protected]>
>> wrote:
>>
>>> see https://sumo.dlr.de/docs/Tools/District.html#edgesindistrictspy
>>>
>>> Am Mi., 15. Juni 2022 um 11:39 Uhr schrieb Jatin Senjaliya <
>>> [email protected]>:
>>>
>>>> Hello Jakob,
>>>>
>>>> Thank you for the suggestion.
>>>>
>>>> I have successfully converted the shape file which contains the taz in
>>>> polygon shape. Now I want to create taz by using this converted.poly.xml
>>>> file for sumo. Can you please tell me what should be the TAZ_ID and EDGE_ID
>>>> from this converted.poly.xml?
>>>>
>>>> Thank you.
>>>>
>>>> Best regards,
>>>> Jatin
>>>>
>>>> On Wed, Jun 15, 2022 at 9:48 AM Jakob Erdmann <[email protected]>
>>>> wrote:
>>>>
>>>>> You also need to provide an argument for option '
>>>>> *--shapefile.id-column'*
>>>>> (whatever the column in your data is called).
>>>>> If you leave out the option and run with --verbose, the available
>>>>> columns will be printed.
>>>>>
>>>>> Am Mi., 15. Juni 2022 um 09:43 Uhr schrieb Jatin Senjaliya <
>>>>> [email protected]>:
>>>>>
>>>>>> Hello Jakob,
>>>>>>
>>>>>> Thank you for your quick response.
>>>>>>
>>>>>> I tried both of these commands (--output-file taz.poly.xml, -o
>>>>>> taz.poly.xml) one by one, but still getting the same error.
>>>>>>
>>>>>> Is there any other way?
>>>>>>
>>>>>> Best regards,
>>>>>> Jatin
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Wed, Jun 15, 2022 at 9:34 AM Jakob Erdmann <[email protected]>
>>>>>> wrote:
>>>>>>
>>>>>>> Use either
>>>>>>> --output-file taz.poly.xml
>>>>>>> -o taz.poly.xml
>>>>>>>
>>>>>>> but not
>>>>>>> -output-file taz.poly.xml
>>>>>>>
>>>>>>> Am Mi., 15. Juni 2022 um 09:20 Uhr schrieb Jatin Senjaliya <
>>>>>>> [email protected]>:
>>>>>>>
>>>>>>>> Dear sumo users,
>>>>>>>>
>>>>>>>> I am new to sumo and I am trying to import polygon shapefile to
>>>>>>>> sumo and for that I used this command 👉 *polyconvert
>>>>>>>> --shapefile-prefixes taz --shapefile.guess-projection "t"
>>>>>>>> --shapefile.id-column  -output-file taz.poly.xml *But, I am
>>>>>>>> getting bellowed mentioned error.
>>>>>>>> [image: Capture.PNG]
>>>>>>>> I have also tried to save the output file by using a different name
>>>>>>>> instead of taz, still getting the same error. Could you please tell me 
>>>>>>>> the
>>>>>>>> possible solution for this?
>>>>>>>>
>>>>>>>> One more question, After converting the shapefile, what should be
>>>>>>>> the next step(how can i do further processing of the converted shape 
>>>>>>>> file
>>>>>>>> in sumo?)
>>>>>>>>
>>>>>>>> Any help would be greatly appreciated. Thank you for taking time.
>>>>>>>>
>>>>>>>> Best regards,
>>>>>>>> Jatin
>>>>>>>>
>>>>>>>> _______________________________________________
>>>>>>>> sumo-user mailing list
>>>>>>>> [email protected]
>>>>>>>> To unsubscribe from this list, visit
>>>>>>>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> sumo-user mailing list
>>>>>>> [email protected]
>>>>>>> To unsubscribe from this list, visit
>>>>>>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>>>>>>
>>>>>> _______________________________________________
>>>>>> sumo-user mailing list
>>>>>> [email protected]
>>>>>> To unsubscribe from this list, visit
>>>>>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>>>>>
>>>>> _______________________________________________
>>>>> sumo-user mailing list
>>>>> [email protected]
>>>>> To unsubscribe from this list, visit
>>>>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>>>>
>>>> _______________________________________________
>>>> sumo-user mailing list
>>>> [email protected]
>>>> To unsubscribe from this list, visit
>>>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>>>
>>> _______________________________________________
>>> sumo-user mailing list
>>> [email protected]
>>> To unsubscribe from this list, visit
>>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>>
>> _______________________________________________
>> sumo-user mailing list
>> [email protected]
>> To unsubscribe from this list, visit
>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>
> _______________________________________________
> sumo-user mailing list
> [email protected]
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
_______________________________________________
sumo-user mailing list
[email protected]
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user

Reply via email to