Dear Yun Thank you so much, I really appreciate your help. Could you please send me an email? I want to talk to you about my projects more. [email protected]
Best Mehdi On Wed, Jun 2, 2021 at 1:17 PM <[email protected]> wrote: > Hi Mehdi, > > > > I put all settings in the attached polygon.polycfg. You just need to run > the following call > > > > polyconvert -c polygon.polycfg > > > > After that, you get the file polygons.poly.xml, which already matches the > network quite good at first sight. With the following call, as an example, > you can then get the file taz.taz.xml. > > > > python ~/tools/edgesInDistricts.py -n > chattanooga_net_mehdi_netconvert.net.xml -t polygons.poly.xml -o > taz.taz.xml -f --max-speed 14 > > > > I use Windows. But I also tried to run the calls on a mac, where I used an > old version of polyconvert. Both of the calls work. > > > > You can try to run the above-mentioned calls and you should get the > outputs as attached in this email. Hopefully, it will work at your side as > well. > > > > Kind regards, > > Yun-Pang > > > > *Von:* sumo-user <[email protected]> *Im Auftrag von *Mehdi > Khaleghian > *Gesendet:* Mittwoch, 2. Juni 2021 17:02 > *An:* Sumo project User discussions <[email protected]> > *Betreff:* Re: [sumo-user] [SPAM] Re: [SPAM] Polyconvert and > edgesInDistricts.py > > > > Unfortunately, the result was the same for me, just an empty TAZ file. > another issue I think is with Linux and Mac. Are you using windows? I > attached my generated TAZ file. :( > > But your setting was correct and I fixed that. > > > > On Wed, Jun 2, 2021 at 10:54 AM Mehdi Khaleghian <[email protected]> > wrote: > > Dear Yun > > > > I found that I imported the setting for polyconvert. What should I do for > being much more match between my network and shapefiles? > > > > On Wed, Jun 2, 2021 at 10:37 AM Mehdi Khaleghian <[email protected]> > wrote: > > Dear Yun > > > > Thank you so much for your time on my files. I really appreciate it. > > Since I just have two months of experience with sumo I didn't know that I > can check my TAZ shapes and my network. I need to import a wider network > from OSM. I think I filtered a lot on my network. I will check it. > > Another question, where I should import these setting to match my polygon > with my network? > > <input> > > <net-file value="chattanooga_net_mehdi_netconvert.net.xml"/> > > <shapefile-prefixes value="TAZ_2014"/> > > <shapefile.add-param value="true"/> > > <shapefile.fill value="false"/> > > <shapefile.traditional-axis-mapping value="true"/> > > </input> > > > > <output> > > <output-file value="polygons.poly.xml"/> > > </output> > > > > <projection> > > <proj.utm value="true"/> > > </projection> > > > > > > Thank you so much again for your great help. > > > > Best regards > > Mehdi > > > > On Wed, Jun 2, 2021 at 10:14 AM <[email protected]> wrote: > > Hi, > > > > since I answered your previous Email regarding the same issue you raised, > I reply your email although you are writing to Jakob. ;-) > > > > I loaded your polygons on your sumo network with netedit. The polygon > locations and the network do not match to each other. They locate at two > different places. That explains why you got an empty file after using > edgesInDistricts.py. > > > > With the following setting the polygons and the network match quite well > (see the attached picture). With the resultant polygon file and > edgesInDistricts.py, you should be able to get edges in the polygons. > > <input> > > <net-file value="chattanooga_net_mehdi_netconvert.net.xml"/> > > <shapefile-prefixes value="TAZ_2014"/> > > <shapefile.add-param value="true"/> > > <shapefile.fill value="false"/> > > <shapefile.traditional-axis-mapping value="true"/> > > </input> > > > > <output> > > <output-file value="polygons.poly.xml"/> > > </output> > > > > <projection> > > <proj.utm value="true"/> > > </projection> > > > > By the way, there are no edges in some polygons. Furthermore, you might > need to consider to use some options in edgesInDistrcits.py for filtering > out some edges, since the network is really large. > > > > Best regards, > > Yun-Pang > > > > -----Ursprüngliche Nachricht----- > Von: sumo-user <[email protected]> Im Auftrag von mehdi > Gesendet: Mittwoch, 2. Juni 2021 03:56 > An: [email protected] > Betreff: [SPAM] Re: [sumo-user] [SPAM] Polyconvert and edgesInDistricts.py > > > > Dear Jakob, > > > > I tried it with another network file and tazshape files; the result was > the same. By Linux and Mac, the generated TAZ.xml file is empty; it just > has a header and nothing else. > > > > Could you please help me. > > > > Best Regards > > Mehdi > > > > > > > > -- > > Sent from: http://sumo-user-mailing-list.90755.n8.nabble.com/ > > _______________________________________________ > > 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
