Yukon Place Names

    Table of contents
    You are currently comparing two old versions - only when you are comparing against the latest version can you revert. Return to version archive.

    Combined revision comparison

    Comparing version 11:06, 29 Oct 2009 by matt with version 15:37, 28 Apr 2010 by matt.

    ...

    Canadian geographic placenames board now publishes all their data for free via a variety of formats and services on the Canadian Geographical Names Service (CGNS) (yay!). I decided to try and build a script which could be run once a year or on an as-needed basis to update a Yukon<state w:st="on"><place w:st="on">Yukon</place></state> Gazateer. The automation part was a failure, but the data part is okay. What follows are my notes to myself, so I don't know how much you'll be able to get out of it.  

     

    -- Matt Wilkie

    ...

    The download archive is http://yukongis.ca/pub/Main/YukonPlaceNames/yk_placenames_distrib.zip and about 2mb.

     

    ...

    If you don't care what trials and tribulations created this dataset stop reading now.. :)

    ...


    ...

    To download the entire Yukon<place w:st="on"><state w:st="on">Yukon</state></place> in CSV format, use this url http://gnss.nrcan.gc.ca/gnss-srt/api?bbox=-142.0,59.0:-123.0,72&regionCode=60&output=csv (be nice to their server. We don't need to be getting it more than once or twice a year. Also be patient. It takes about three minutes for the entire file to be sent). Saved as > original_yk-names.csv

    ...

    bah humbug. If ArcCatalog? starts crashing everytime you start it, before it even finishes drawing the gui, try deleting/renaming %appdata%/ESRI/ArcCatalog/ArcCatalog.gx. Ahhh, there's a better fix: just rename/move the last opened directory or add a new data file to it. (bug logged, incident #75755)

    ...

    code to grab yukon<place w:st="on"><state w:st="on">yukon</state></place> names from the CGNS web feature server:

    ...

    ogrinfo yk_names.gml
    vim yk_names.gfs # :%s/GEONAMES\.//g; save
    ogr2ogr -a_srs EPSG:4269 yk_names yk_names.gml
    # excel yk_names/geonames.dbf; copy 1st row; close dbf
    del<place w:st="on"><state w:st="on">del</state></place> yk_names.gfs
    ogr2ogr -a_srs EPSG:4269 yk_names/ yk_names.gml
    # excel yk_names/geonames.dbf; paste 1st row; close dbf

    ...

    and that's%u2019s all for now folks!

     

    ...

    Matt.Wilkie@gov.yk.ca

     


    --------------------------------------------

     


    Geographic Information,

     


    Information Management and Technology,

     


    Yukon Department of Environment

     


    <street w:st="on">
    10 Burns Road
    </street> * Whitehorse, Yukon<place w:st="on"><city w:st="on">Whitehorse</city>, <state w:st="on">Yukon</state></place> * Y1A? 4Y9

     


    867-667-8133 Tel * 867-393-7003 Fax

     


    http://environmentyukon.gov.yk.ca/geomatics/
    --------------------------------------------

    ...

    Next task: script to convert geonames {32} codes to the appropriate stacked diacriticals ǭ́ǭ́

     

     

    ...

    Other changes:

    1. /body/p[10]/strong/strong/a/@href: "mks://localhost/pub/Main/YukonPlaceNames/yk_placenames_distrib.zip""http://yukongis.ca/@api/deki/files/9/=yk_placenames_distrib.zip"
    2. /body/p[10]/strong/strong/a/@title: "pub/Main/YukonPlaceNames/yk_placenames_distrib.zip""http://www.yukongis.ca/@api/deki/files/9/=yk_placenames_distrib.zip"
    3. /body/p[18]/a/@title: "Tools/GDAL-OGR""oldsite/GDAL"

    Version from 11:06, 29 Oct 2009

    This revision modified by matt (Ban)

    ...

    Canadian geographic placenames board now publishes all their data for free via a variety of formats and services on the Canadian Geographical Names Service (CGNS) (yay!). I decided to try and build a script which could be run once a year or on an as-needed basis to update a <state w:st="on"><place w:st="on">Yukon</place></state> Gazateer. The automation part was a failure, but the data part is okay. What follows are my notes to myself, so I don't know how much you'll be able to get out of it.

     

    ...

    The download archive is http://yukongis.ca/pub/Main/YukonPlaceNames/yk_placenames_distrib.zip and about 2mb.

     

    If you don't care what trials and tribulations created this dataset stop reading now.


    ...

    To download the entire <place w:st="on"><state w:st="on">Yukon</state></place> in CSV format, use this url http://gnss.nrcan.gc.ca/gnss-srt/api?bbox=-142.0,59.0:-123.0,72&regionCode=60&output=csv (be nice to their server. We don't need to be getting it more than once or twice a year. Also be patient. It takes about three minutes for the entire file to be sent). Saved as > original_yk-names.csv

    ...

    bah humbug. If ArcCatalog? starts crashing everytime you start it, before it even finishes drawing the gui, try deleting/renaming %appdata%/ESRI/ArcCatalog/ArcCatalog.gx. Ahhh, there's a better fix: just rename/move the last opened directory or add a new data file to it. (bug logged, incident #75755)

    ...

    code to grab <place w:st="on"><state w:st="on">yukon</state></place> names from the CGNS web feature server:

    ...

    ogrinfo yk_names.gml
    vim yk_names.gfs # :%s/GEONAMES\.//g; save
    ogr2ogr -a_srs EPSG:4269 yk_names yk_names.gml
    # excel yk_names/geonames.dbf; copy 1st row; close dbf
    <place w:st="on"><state w:st="on">del</state></place> yk_names.gfs
    ogr2ogr -a_srs EPSG:4269 yk_names/ yk_names.gml
    # excel yk_names/geonames.dbf; paste 1st row; close dbf

    ...

    and that%u2019s all for now folks!

     

    ...

    Matt.Wilkie@gov.yk.ca

     


    --------------------------------------------

     


    Geographic Information,

     


    Information Management and Technology,

     


    Yukon Department of Environment

     


    <street w:st="on">
    10 Burns Road
    </street> * <place w:st="on"><city w:st="on">Whitehorse</city>, <state w:st="on">Yukon</state></place> * Y1A? 4Y9

     


    867-667-8133 Tel * 867-393-7003 Fax

     


    http://environmentyukon.gov.yk.ca/geomatics/
    --------------------------------------------

    ...

    Next task: script to convert geonames {32} codes to the appropriate stacked diacriticals ǭ́

     

    ...

    Version as of 15:37, 28 Apr 2010

    This revision modified by matt (Ban)

    ...

    Canadian geographic placenames board now publishes all their data for free via a variety of formats and services on the Canadian Geographical Names Service (CGNS) (yay!). I decided to try and build a script which could be run once a year or on an as-needed basis to update a Yukon Gazateer. The automation part was a failure, but the data part is okay. What follows are my notes to myself, so I don't know how much you'll be able to get out of it. 

     

    -- Matt Wilkie

    ...

    If you don't care what trials and tribulations created this dataset stop reading now. :)

    ...


    ...

    and that's all for now folks!

     

    ...

    Matt.Wilkie@gov.yk.ca

     


    --------------------------------------------

     


    Geographic Information,

     


    Information Management and Technology,

     


    Yukon Department of Environment

     


    10 Burns Road
    * Whitehorse, Yukon * Y1A? 4Y9

     


    867-667-8133 Tel * 867-393-7003 Fax

     


    http://environmentyukon.gov.yk.ca/geomatics/
    --------------------------------------------

    ...

    Next task: script to convert geonames {32} codes to the appropriate stacked diacriticals ǭ́

     

    ...

        Send feedback