This guide will show you how to make a Zone Set of line segment Zones in StreetLight InSight via uploading a shapefile. Line segment Zones represent portions of the road network. They can be used to capture traffic traveling along roads of all types, including highways, freeway ramps, and city streets. Once line segment Zones are added to StreetLight InSight as a Zone Set--either by drawing or uploading a line shapefile--they can be used in various Project Types, including O-D Analysis, Zone Activity Analysis, Segment Analysis, and Traffic Diagnostics.
When a line segment Zone is added to StreetLight InSight, a number of items are stored with the Zone:
- The original line shape.
- The start point
- The end point
- A start gate: a polygon Zone created at the start point drawn perpendicular to the line. This gate along with the end gate is used in Segment Analyses and Traffic Diagnostics projects.
- A middle gate: a polygon Zone created at the midpoint of the line drawn perpendicular to the line. This gate is used in O-D type analyses.
- An end gate: a polygon Zone created at the end point drawn perpendicular to the line. This gate along with the end gate is used in Segment Analyses and Traffic Diagnostics projects.
- Direction information.
Note: You can also create Zones by uploading or drawing polygons. Learn more about uploading Polygon Zones.
There are some requirements for the shapefile to be uploaded.
1. Make sure there is at least one “gate” polygon in your shapefile.
2. Ensure that there is a column with unique values to be used for the name field.
3. If you need to use directionality, you can designate the direction in one of the fields as a degree from 0° to 360°, where 0 is true North, 90 is East, etc.
Note: If your shapefile includes a field for direction, but you do not wish to specify a direction for your zone(s), leave the value as NULL instead of 0. A direction value of 0 is read as due north by our platform.
Create a Zone Set via Uploading a Shapefile
In this example, we will upload a shapefile that contains line segments. Our example uses city streets in downtown Oakland, CA.
Step 1: Navigate to the “Manage Travel Projects” tab section of your StreetLight InSight account, which is located in the upper left hand corner under the menu icon.
Step 2: Navigate to the “Manage Zone Sets” tab and click the “Add Zone Set” button.
Step 3: Name your Zone Set.
Step 4: Select Line as the Zone Set Type.
Step 5: Click the “Upload Shapefile” button.
Step 6: Select your compressed or “Zipped” shapefile that is saved to your computer and Click “Open” to upload the file. The file will load and you will be prompted to choose associated data fields.
Step 7: Choose the appropriate columns and values for the data fields. Below are definitions of these fields:
- Zone Name: This is the name for the Zone. Each Zone within a Zone Set must have a unique name. Only columns with unique values will appear for the Zone Name.
- Zone ID: This is an optional ID for the Zone. It must be an integer and also must be a unique value.
- Zone is Pass-through: Line segment Zones are always pass-through. The only option here is “[Always Yes]”
- Direction: Direction is always implied for the Line segment Zone. Learn more. The direction here is for each of the gates that are created. Choose “Auto-calculate direction” if you want an explicit direction generated for each of the gates. Choose “[Always non-directional]” to make each gate non-directional.
- Bi-directionality for Pass-through Zones with Direction: Choose “[Always No]” to have all line segment Zones in the Zone Set configured as uni-directional: the line segment will capture trips that travel from the start point to the end point of the line segment. Choose “[Always Yes] to have all line segment Zones in the Zone Set configured as bi-directional: the Zone will capture trips travelling from both the start to end, and end to start, combined into a single metric. Learn more.
- Road Type: This allows you to specify the width of the gates that are automatically drawn for all line segments in the shapefile. Choose the Road Type as most closely matches your segments based on the following definitions:
- [Leave as Blank] = use default gate width (20m) or the values defined in the Gate Width field described later
- [Always Primary] = All Zones are Freeway / Highway
- [Always Secondary] = Arterial (takes traffic into / out of a freeway)
- [Always Local] = street roads, and all other roads.
- [Always Ramp] = ramp to / from a highway.
- Gate Latitude: The specific latitude at which you’d like to setup your middle gate. Choose the column in your shapefile that has this value. This should only be used in conjunction with the Gate Latitude field. Choose “[Leave as Blank]” if you do not have a column with latitude values.
- Gate Longitude: The specific longitude at which you’d like to setup your middle gate. Choose the column in your shapefile that has this value. This should only be used in conjunction with the Gate Longitude field. Choose “[Leave as Blank]” if you do not have a column with longitude values.
- Gate Width: This is an optional input that indicates the width (in meters) of the Gate Zone on the Line. Use this option if you prefer to designate the exact width of the gates instead of using automated gate widths based on Road Type. Choose the column in your shapefile that designates the gate width for each line Segment. Use in conjunction with “[Leave as Blank]” for the Road Type field.
Choose the fields that make sense for you. Below is an example of the fields we chose for our Oakland, CA example.
Step 8: Click “Continue”.
Step 9: Zone Names should appear in a list.
Note: Depending on the amount of time they take to process, the Zones may not immediately appear on the map.
Step 10: Click “Save”.
You’ll be redirected to the Manage Zone Sets tab where you’ll see your new Zone Set. Once it has finished processing, you. can View, Edit, Download, Copy or Delete the Zone Set that you’ve created. Learn more.
- When reviewing and editing your gates, click the OpenStreetMap dropdown menu in the upper right-hand corner of your map. This will display the OpenStreetMap layer, which is used to lock trips to the underlying road network. The OSM lines will help you confirm whether your gates are accurately capturing traffic. You can pick either Vehicles, Bicycles, Pedestrians, or a combination of all three.
- If you have AADT counts available for your road segments, you can upload your line segment Zones with calibration data included. Check the "Calibration" box when uploading your Zone Set and specify the calibration values from your shapefile. Your trip counts will automatically associate with your line segment Zone Set. Learn more about our Calibration Feature.
- If you are creating a Zone Set and would like to make sure that you are drawing the Zones on the boundaries of another area of interest, use the tool called “View Other Zone Set”. This allows you to draw a new Zone while visualizing another Zone Set.
Note: As of our 6.5 release on April 10, 2019, our system automatically removes Line Segments from your Zone Set that have the same start and end gate. If your Project is run, and you do not see all Line Segments included in your Metrics, it is because the start and end gates are the same. If you have concerns about this, please contact Support.
If you receive an error message when uploading a shapefile,
- Check that the shapefile is zipped.
- Check that the shapefile has a unique value to use for the Zone name.
- Check the structure of the shapefile.
- Contact Support