Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Problem with converting shapefiles.

Hello Tom,

I'm not the expert in qcgis import.
It would help to analyze your problem, if you attach the files of your minimal problem as a zip file.
One idea: have you tried the option --shapefile.guess-projection?

Regards Harald



--- Original-Nachricht ---
Von: cchadj01@xxxxxxxxxxxx
Betreff: Re: [sumo-user] Problem with converting shapefiles.
Datum: 04.10.2018, 9:20 Uhr
An: Sumo project User discussions




Hello,
I would like to bring this problem up because it was not answered yet.
I would really appreciate some help if that is possible.
Thank you,
Tom

Quoting cchadj01@xxxxxxxxxxxx:

> Hello,
> I want to convert a shapefile to .net.xml using NETCONVERTER.
> My shapefile prefix is output-shapefile.
> You can see my dbf fields that are used in the image attached. As
> your site states at http://sumo.dlr.de/wiki/Networks/Import/ArcView
> I have the minimal three fields required in order for the conversion
> to take place. I have attached an excel screenshot named
> minimal-problem-dbf.png
>
> I used the shapefile in QGcis in order to check if the edges are
> connected and if the node ids are correct. I have attached two pngs
> showing two consecutive edges in order to check if they share a
> common node which is correct. (The images are
> qgis-first-selection.png and qgis-second-edge-selection.png)
>
> After checking the correctness of my shapefile I used the command:
> netconvert -v --shapefile-prefix output-shapefile -o net.net.xml
> --shapefile.from-id from_id --shapefile.to-id to_id
> --shapefile.street-id edge_id --shapefile.use-defaults-on-failure
>
> The operation runs successfully but with a lot of warnings. The
> netconvert output is attached below as netconvert-output.png .
>
> When I try to open the network with neteditor I get the error
> `Error: Could not build projection!` and then it fails to build the network.
>
> I can't see what the problem is. Any help would be appreciated.
>
> Thank you,
> Tom


_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user


Back to the top