Select to view content in your preferred language

Service area generation with OSM shapefile

2575
14
05-16-2017 06:42 PM
JavadRouzafzoon
Deactivated User

Hello,

I need to create a network dataset for generating service areas based on Kilometres and Travel time.

 

I am using ArcMap10.5, Educational licence. I have downloaded two shapefiles for two countries from 

GEOFABRIK // Downloads 

Then, I used Merge tool and output was a feature class. So, I exported it to Single shapefile. I created a network dataset and for "Length" attribute, I chose "Shape" as "Value" in "Elevators" window.

When I create service areas, they are not correctly generated.

Do I have to do anything with the shapefile before creating network datasets? 

Thank you!

14 Replies
JavadRouzafzoon
Deactivated User

I faced these errors, but I thought they should not have a major impact.

SourceName: SwedenFinlandRoutes, ObjectID: 109550, The feature's geometry has zero length.
SourceName: SwedenFinlandRoutes, ObjectID: 149600, The feature's geometry has zero length.
SourceName: SwedenFinlandRoutes, ObjectID: 653582, The feature's geometry has zero length.
SourceName: SwedenFinlandRoutes, ObjectID: 990506, The feature's geometry has zero length.
SourceName: SwedenFinlandRoutes, ObjectID: 2011469, The feature's geometry has zero length.

Can I fix them somehow?

0 Kudos
DanPatterson_Retired
MVP Emeritus

You can't... there is no geometry associated with them.  Find out which features they are supposed to be and see if they are within your study area.  If you were using a featureclass or shapefile, I would suggest that you use Check Geometry then Repair Geometry to see what is left that is good

JavadRouzafzoon
Deactivated User

Thanks Dan,

Could you guide me through steps how I should Check Geometry then Repair Geometry?

You mean by "Geometric Network Editing" toolbar?

0 Kudos
DanPatterson_Retired
MVP Emeritus

for a featureclass check geometry.... repair geometry is in the r's in the left panel

JoeBorgione
MVP Emeritus

Often times free, online data is great for making maps and little else.  In your case the data is not of high enough quality to perform the desired task.  I suggest you gain some basic skills such as database and feature class creation and especially editing and then move on to tackling more advanced issues like network analyst.  By the way, you are not using a Geometric Network, so to answer you question, no, Dan did not mean the Geometric Network Editing tool bar. 

With a street centerline network, the biggest problem is connectivity or lack there of.  Take a look at this thread: Topology AddIn Guinea Pig wanted .  My friend and colleague Tim Witt‌ developed a terrific tool that finds dangles in feature classes post haste. I suggest that you use it on a small subset of your data and get a feel for what it takes to build a solid network.

Before you go too much further though, start here:  About the ArcGIS Network Analyst extension tutorial—Help | ArcGIS for Desktop 

That should just about do it....