Hello All One approach might be using the gdal ogr2ogr tools to convert the shapefile to a gml file. The readers I have been creating in engaric/graphhoper for Ordnance Survey formats are basically readers for gml 2.X and 3.X files so with minor modification might handle custom shapefiles converted to gml. I am starting to consider how to start prepping pull requests for some of the work done but I am relatively new to git/github and suspect it may be a case of you wouldn't start from here.
Sincerely Stuart Adam > Date: Tue, 21 Apr 2015 08:57:26 +0200 > From: [email protected] > To: [email protected] > Subject: Re: [GraphHopper] Any ideas to convert shape file to routable osm > data? > > Hi there, > > we are interested in this as well for a custom shapefile import. If > someone is willing to put this under an open source we would love to > support this and integrate it etc :) ! > > Kind Regards, > Peter > > On 21.04.2015 08:26, Sander van Tulden wrote: > > Hi, > > > > We have a similar use case, where we use our shapefile network within > > Graphhopper. The way we solve this is by first converting the shapefile > > network with JOSM and plugin "OpenData" to .osm (xml). We then use > > Graphhopper with minimum settings (using chWeighting = no and > > prepare.minNetworkSize=1) to parse the shapefile by using a custom > > Graphhopper encoder class that uses the tags that the shapefile segments > > contain. In our case we had no initial tags, so in JOSM we just selected > > the whole network and gave it a custom tag to be used in the Graphhopper > > encoder class. If you don't yet know how to make a custom encoder, you > > could use the Bike/Foot one and just add your custom tag for testing > > purposes. > > > > In our case this works pretty well. We don't have very frequent changes to > > the network, so we just prepare the set again when we need to change it. > > > > Good luck, > > > > > > Sander van Tulden > > > > > > > > > > Op 20-04-15 19:28 schreef Bulut Aras <[email protected]>: > > > >> Hi, > >> We have our own road data. We use Esri products and want to abandon > >> network analyst tool. How can we export our data (from un-routable > >> shapefile for example) to use with graphhopper, manually or > >> programmatically? Out data changes frequently. > >> > >> May networkx library work for us? > >> > >> > >> Thanks in advance. > >> > >> _______________________________________________ > >> GraphHopper mailing list > >> [email protected] > >> https://lists.openstreetmap.org/listinfo/graphhopper > > _______________________________________________ > > GraphHopper mailing list > > [email protected] > > https://lists.openstreetmap.org/listinfo/graphhopper > > > _______________________________________________ > GraphHopper mailing list > [email protected] > https://lists.openstreetmap.org/listinfo/graphhopper
_______________________________________________ GraphHopper mailing list [email protected] https://lists.openstreetmap.org/listinfo/graphhopper
