Querida Comunidad,<\/SPAN><\/P>Estoy trabajando en un análisis de accesibilidad y por lo tanto necesito construir un conjunto de datos de red multimodal (incluyendo GTFS). Por cierto, uso ArcGIS Desktop 10.5 en una máquina Windows. También subí una captura de pantalla con un ejemplo de mi problema: las líneas azules son las calles (osm), las líneas verdes son las rutas de transporte público (bus, tram, underground), las líneas moradas son líneas que conectan estaciones con la red vial, el punto verde es la parada/estación del archivo GTFS, los triángulos naranjas provienen de una clase de entidad puntual más detallada que representa paradas/estaciones.<\/SPAN><\/P> Mi problema es doble: Primero, creé una capa de paradas a partir de un archivo GTFS usando la herramienta EditGTFSStopLocation por Melinda Morang, que<\/A> me dio varias entidades puntuales por parada/estación (entidad puntual verde); supongo que una por ruta de transporte público (entidades lineales verdes) que para en esa estación. Sin embargo, estas entidades puntuales tienen todas el mismo par de coordenadas. En teoría, esto significa que bus, tram, train y demás paran exactamente en la misma posición; sin importar la dirección de la ruta y sin importar dónde deberían realmente parar. En realidad, sin embargo, los puntos deberían distribuirse como los triángulos naranjas, cada uno representando una "entrada/salida/plataforma" (in-) a un medio de transporte. Desafortunadamente, estos puntos no provienen del archivo GTFS y por lo tanto no contienen información sobre qué ruta para en ellos. Ahora necesito hacer un análisis consciente del horario. Parece que es o bien conciencia del horario permitiendo elaborar un tiempo de espera preciso O precisión posicional permitiendo elaborar un tiempo de caminata preciso "dentro" de la estación. ¿Alguien ve una manera de obtener ambos?<\/SPAN><\/P><\/P>El segundo problema es que ni las rutas reales (entidades lineales verdes) ni la red vial (OSM; entidades lineales azules) cruzan/coinciden con la estación. Así que no hay conexión entre las diferentes redes. (Intenté resolver ese problema conectando la entidad puntual de parada con las dos entidades viales más cercanas [ver entidades lineales moradas]. Esto tendría que repetirse con las clases de entidad del transporte público.) ¿Alguien conoce un método mejor y automatizado para conectar las entidades lineales con las entidades puntuales - sin conectar demasiadas o las entidades incorrectas (como una parada de tram con una entidad lineal underground)?<\/SPAN><\/P>¡Gracias a todos los que leyeron un post tan largo!<\/SPAN><\/P> Estoy realmente esperando sus respuestas Gracias y mejores deseos, Piet<\/SPAN><\/P><\/P>PD: Este es mi primer post en la comunidad. Por favor díganme si debería publicarse en otro grupo. ¡Thx!<\/SPAN><\/P><\/BODY><\/HTML>
<\/P>
El segundo problema es que ni las rutas reales (entidades lineales verdes) ni la red vial (OSM; entidades lineales azules) cruzan/coinciden con la estación. Así que no hay conexión entre las diferentes redes. (Intenté resolver ese problema conectando la entidad puntual de parada con las dos entidades viales más cercanas [ver entidades lineales moradas]. Esto tendría que repetirse con las clases de entidad del transporte público.) ¿Alguien conoce un método mejor y automatizado para conectar las entidades lineales con las entidades puntuales - sin conectar demasiadas o las entidades incorrectas (como una parada de tram con una entidad lineal underground)?<\/SPAN><\/P>¡Gracias a todos los que leyeron un post tan largo!<\/SPAN><\/P> Estoy realmente esperando sus respuestas Gracias y mejores deseos, Piet<\/SPAN><\/P><\/P>PD: Este es mi primer post en la comunidad. Por favor díganme si debería publicarse en otro grupo. ¡Thx!<\/SPAN><\/P><\/BODY><\/HTML>
Hello Jan.
You do not need the geometry of your transit lines to match the OSM street geometry. The Add GTFS to a Network Dataset toolbox will take care of this for you. It will generate a feature class of transit lines which are simply straight-line connectors between stops. The network dataset will reference these lines, but the travel times along those lines are calculated based on the GTFS schedules. So the actual geometry of the lines is irrelevant.
The only thing that DOES matter is the location of the stops. It seems like this is where your real problem lies. Add GTFS to a Network Dataset finds the locations of all the stops from the GTFS stops.txt file, snaps a copy of the stops to the closest street feature, and draws a connector line from the snapped stop to the original stop location. This allows you to connect from the streets onto your transit lines. If the snapped stops don't end up in the right place, then the network will not correctly represent the locations where people can get on and off the transit system.
You can use the Edit GTFS Stop Locations tool to correct the locations of existing stops, export the correction back into GTFS, and then run Add GTFS to a Network Dataset using the corrected GTFS. Another thing you can do is to add station entrances to your GTFS stops.txt file. To do this, you would add a new entry to stops.txt and give it a location_type value of 2. You would also have to have a parent_stations set up. Read the GTFS reference for the explanation. If you have your stops, parent stations, and station entrances set up correctly, the Add GTFS to a Network Dataset toolbox will take care of constructing the network dataset correctly using that information. Also, adding station entrances does not affect the GTFS schedules, so you can add them without having to do any major surgery on your GTFS dataset.
Hope this helps!
If you want to render the transit routes in the map, you should use the Display GTFS in ArcGIS tool, which renders the information in "shapes.txt". This is the physical representation of where the transit lines actually are.
Regarding your question about larger cities: The producer of the GTFS data is responsible for generating accurate data. If the stops are in the wrong place or station entrances are not represented, then consumers of that data should ask the data producer to fix the problem. In your case it might be faster to fix it yourself, but you're right that for a large city, it would be very time consuming to edit it yourself as a one-off.
Hi Melinda,
thanks for your detailed response. You are right about the geometry of the transit lines. Except for when I want to create a map with the transit lines as representation of the "real world". But thats something I'd figure out once I need to.
I will now try to edit the GTFS stops.txt file itself, according to your instructions and using your tools. I will report back once I am done and it worked. However, I wonder how "Add GTFS to a ND" allocates the transit lines to the different stops (location type 1) that I add manually to the parent station. Wouldn't I need to change the routes.txt aswell, for the tool to know that bus X stops at stop 1 of a station, while Bus Z stops at stop 2 of the same station?
Another thought: my case is limited to a medium sized city (400k inhabitants) and I wonder how someone working with a large dataset from, lets say, NYC would handle my "stops problem".
Anyway, thanks a lot Melinda!
Piet
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.