Tiger/Line Shapefiles

361
0
07-16-2021 02:22 PM
ChitraKrishnan
New Contributor III

I am also trying to use tigerline/shapefiles instead of hitting the https://tigerweb.geo.census.gov/arcgis/rest/services/TIGERweb/Tracts_Blocks/MapServer/2 for every latitude longitude.

My understanding is that the shapefile holds all the block,latitude and longitude information which i can download to my local server and do the query feature.  I downloaded ohio 2020 block shape file from https://www.census.gov/geographies/mapping-files/time-series/geo/tiger-line-file.html to explore programmatically.

- As per the esri guide, shapefiles have to be uploaded to esri cloud and published as services. Can't I query the shapefile directly in my code which i downloaded ( .shp file). So what is the difference in using the shapefile and ../TIGERweb/Tracts_Blocks/MapServer/2  service?

-  I was going through the sample code in this link - https://developers.arcgis.com/javascript/3/jssamples/portal_addshapefile.html tried to add the ohio .zip file to the 'View Live Sample' and getting this error   Unable to load https://www.arcgis.com/sharing/rest/content/features/generate status: 0

Could you please advice me to proceed further? Any sample code would be much appreciated.

Thanks

Chitra

0 Kudos
0 Replies