Skip to content

Instantly share code, notes, and snippets.

@springmeyer
Created January 7, 2011 19:35
Show Gist options
  • Save springmeyer/769978 to your computer and use it in GitHub Desktop.
Save springmeyer/769978 to your computer and use it in GitHub Desktop.
node-mapnik inspection outputs
map.layers() // all layers
[ { name: 'world',
srs: '+proj=merc +lon_0=0 +lat_ts=0 +x_0=0 +y_0=0 +ellps=WGS84 +datum=WGS84 +units=m +no_defs',
styles: [ 'style' ],
datasource:
{ file: './examples/data/world_merc.shp',
type: 'shape' } } ]
map.features(0) // for layer index 0
[ { AREA: 44,
FIPS: 'AC',
ISO2: 'AG',
ISO3: 'ATG',
LAT: 17.078,
LON: -61.783,
NAME: 'Antigua and Barbuda',
POP2005: 83039,
REGION: 19,
SUBREGION: 29,
UN: 28 },
{ AREA: 238174,
FIPS: 'AG',
ISO2: 'DZ',
ISO3: 'DZA',
LAT: 28.163,
LON: 2.632,
NAME: 'Algeria',
POP2005: 32854159,
REGION: 2,
SUBREGION: 15,
UN: 12 },
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment