Skip to content

Conversation

@irees
Copy link
Contributor

@irees irees commented Jul 8, 2025

No description provided.

@irees irees changed the title Shape segment length check [WIP] Shape segment length check Jul 8, 2025
@github-actions
Copy link

github-actions bot commented Jul 8, 2025

Generated Code Changes Required

The following files may need to be regenerated. Please run go generate ./... and commit the changes:

diff --git a/doc/cli/transitland_extract.md b/doc/cli/transitland_extract.md
index ef4802c..a7c2c0b 100644
--- a/doc/cli/transitland_extract.md
+++ b/doc/cli/transitland_extract.md
@@ -73,8 +73,10 @@ trip_id,arrival_time,departure_time,stop_id,stop_sequence,stop_headsign,pickup_t
       --interpolate-stop-times           Interpolate missing StopTime arrival/departure values
       --normalize-service-ids            Create any missing Calendar entities for CalendarDate service_id's
       --normalize-timezones              Normalize timezones and apply default stop timezones based on agency and parent stops
+      --null-island-check                Check for Null Island in shapes.txt and stops.txt
       --prefix string                    Prefix entities in this feed
       --set stringArray                  Set values on output; format is filename,id,key,value
+      --shape-max-segment-length float   Maximum shape segment length in meters (0.0 to disable check)
       --simplify-calendars               Attempt to simplify CalendarDates into regular Calendars
       --simplify-shapes float            Simplify shapes with this tolerance (ex. 0.000005)
       --use-basic-route-types            Collapse extended route_type's into basic GTFS values
diff --git a/doc/cli/transitland_import.md b/doc/cli/transitland_import.md
index b49970b..46031ed 100644
--- a/doc/cli/transitland_import.md
+++ b/doc/cli/transitland_import.md
@@ -15,28 +15,31 @@ transitland import [flags] [feeds...]
 ### Options
 
  •  --activate                 Set as active feed version after import
    
  •  --create-missing-shapes    Create missing Shapes from Trip stop-to-stop geometries
    
  •  --date string              Service on date
    
  •  --dburl string             Database URL (default: $TL_DATABASE_URL)
    
  •  --deduplicate-stop-times   Deduplicate StopTimes using Journey Patterns
    
  •  --dryrun                   Dry run; print feeds that would be imported and exit
    
  •  --ext strings              Include GTFS Extension
    
  •  --fail                     Exit with error code if any fetch is not successful
    
  •  --fetched-since string     Fetched since
    
  •  --fv-sha1 strings          Feed version SHA1
    
  •  --fv-sha1-file string      Specify feed version IDs by SHA1 in file, one per line
    
  •  --fvid strings             Import specific feed version ID
    
  •  --fvid-file string         Specify feed version IDs in file, one per line; equivalent to multiple --fvid
    
  • -h, --help help for import
  •  --interpolate-stop-times   Interpolate missing StopTime arrival/departure values
    
  •  --latest                   Only import latest feed version available for each feed
    
  •  --limit int                Import at most n feeds
    
  •  --normalize-timezones      Normalize timezones and apply default stop timezones based on agency and parent stops
    
  •  --simplify-calendars       Attempt to simplify CalendarDates into regular Calendars
    
  •  --simplify-shapes float    Simplify shapes with this tolerance (ex. 0.000005)
    
  •  --storage string           Storage location; can be s3://... az://... or path to a directory (default ".")
    
  •  --workers int              Worker threads (default 1)
    
  •  --activate                         Set as active feed version after import
    
  •  --create-missing-shapes            Create missing Shapes from Trip stop-to-stop geometries
    
  •  --date string                      Service on date
    
  •  --dburl string                     Database URL (default: $TL_DATABASE_URL)
    
  •  --deduplicate-stop-times           Deduplicate StopTimes using Journey Patterns
    
  •  --dryrun                           Dry run; print feeds that would be imported and exit
    
  •  --ext strings                      Include GTFS Extension
    
  •  --fail                             Exit with error code if any fetch is not successful
    
  •  --fetched-since string             Fetched since
    
  •  --fv-sha1 strings                  Feed version SHA1
    
  •  --fv-sha1-file string              Specify feed version IDs by SHA1 in file, one per line
    
  •  --fvid strings                     Import specific feed version ID
    
  •  --fvid-file string                 Specify feed version IDs in file, one per line; equivalent to multiple --fvid
    
  • -h, --help help for import
  •  --interpolate-stop-times           Interpolate missing StopTime arrival/departure values
    
  •  --latest                           Only import latest feed version available for each feed
    
  •  --limit int                        Import at most n feeds
    
  •  --normalize-timezones              Normalize timezones and apply default stop timezones based on agency and parent stops
    
  •  --null-island-check                Check for Null Island in shapes.txt and stops.txt
    
  •  --shape-max-segment-length float   Maximum shape segment length in meters (0.0 to disable check)
    
  •  --simplify-calendars               Attempt to simplify CalendarDates into regular Calendars
    
  •  --simplify-shapes float            Simplify shapes with this tolerance (ex. 0.000005)
    
  •  --storage string                   Storage location; can be s3://... az://... or path to a directory (default ".")
    
  •  --use-basic-route-types            Collapse extended route_type's into basic GTFS values
    
  •  --workers int                      Worker threads (default 1)
    

### SEE ALSO

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant