Database Reference
In-Depth Information
18. Now, you will import the countries shapefile to its model. In the next re-
cipe,youwillusethismodeltofindoutthecountrywhereeachsightingoc-
curred. Before going ahead in this recipe, investigate the shapefile struc-
ture—youwillneedtoimportjustthe NAME and ISO2 attributestothemodel
as the name and isocode attributes, using the following command:
$ ogrinfo TM_WORLD_BORDERS-0.3.shp
TM_WORLD_BORDERS-0.3 -al -so
INFO: Open of `TM_WORLD_BORDERS-0.3.shp'
using driver `ESRI Shapefile'
successful.
Layer name: TM_WORLD_BORDERS-0.3
Geometry: Polygon
Feature Count: 246
Extent: (-180.000000, -90.000000) -
(180.000000, 83.623596)
Search WWH ::




Custom Search