This OSM filter defines "drive" ways by combining highway, service, and motor vehicle restrictions, ensuring access for cars and excluding undesired ways. The filter is written in the format used by the osmosis tool. \n\n\nhighway=*\narea!=yes\nhighway!=abandoned\nhighway!=bridleway\nhighway!=bus_guideway\nhighway!=construction\nhighway!=corridor\nhighway!=cycleway\nhighway!=elevator\nhighway!=escalator\nhighway!=footway\nhighway!=path\nhighway!=pedestrian\nhighway!=planned\nhighway!=platform\nhighway!=proposed\nhighway!=raceway\nhighway!=service\nhighway!=steps\nhighway!=track\nmotor_vehicle!=no\nmotorcar!=no\nservice!=alley\nservice!=driveway\nservice!=emergency_access\nservice!=parking\nservice!=parking_aisle\nservice!=private\n\n\nThis filter allows for: \n* Highway types: Any highway type, excluding specified exclusions. \n* Service types: Excludes alley, driveway, emergency_access, parking, parking_aisle, and private. \n* Motor vehicle access: Allows for cars (motorcar!=no) and excludes areas with a motor_vehicle=no designation. \n\nThis filter ensures that only ways suitable for driving are selected, making it useful for routing, traffic analysis, and other applications that rely on a network of drivable roads. \n\nPlease note that this filter is intended to provide a starting point for defining "drive" ways, and may need to be adjusted depending on the specific application and desired level of detail. \n\nFurther reading:\n* OSM wiki page on highway\n* OSM wiki page on service\n* OSM wiki page on motor_vehicle\n* OSM wiki page on motorcar\n* [OSmosis documentation](https://wiki.openstreetmap.org/wiki/Osmosis


原文地址: https://www.cveoy.top/t/topic/p4Om 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录