WrinkledCheese

Forum Replies Created

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • in reply to: Missing fips codes in admin 1 #4697

    WrinkledCheese
    Participant

    Is it my understanding that Natural Earth Data v2.1 will have FIPS_10 codes brought back?

    in reply to: Missing fips codes in admin 1 #4688

    WrinkledCheese
    Participant

    Is there somewhere else I can easily get the 1.4 data?

    https://github.com/blog/1302-goodbye-uploads

    I ran a script and found that of all the codes, this is what seems to be the current state:

    iso_a2 is consistent 3632 / 3632 present
    adm1_code is consistent 3632 / 3632 present
    mapcolor13 is reliable 3 / 3632 missing
    code_hasc is inconsistent 249 / 3632 missing
    iso_3166_2 is reliable 1 / 3632 missing
    code_local is inconsistent 3581 / 3632 missing
    hasc_maybe is inconsistent 3470 / 3632 missing
    region_cod is inconsistent 3186 / 3632 missing
    big_code is inconsistent 3428 / 3632 missing
    gadm_level is inconsistent 111 / 3632 missing

    What does adm1_code translate to?

    When reading the above script output, keep in mind that the script doesn’t account for the validity of the data, just that there is data present. I know for a fact that ISO_3166_2 has a lot of dirty data and so does adm1_code, albeit to a lesser extent.

    in reply to: Missing fips codes in admin 1 #4686

    WrinkledCheese
    Participant

    I would also like to see FIPS10-4 brought back.

    Technically US06 is the correct FIPS 10-4 code for California, but most datasets I’ve seen just drop off the prefix as it always matches the FIPS country code.

    MaxMind’s GeoLite GeoIP CSVs use FIPS for all countries EXCEPT they use ISO 3166-1 for U.S. and Canada…for some reason.

    For the interim, while I wait for FIPS to be brought back, I will use the old polygon data to make progress until the newer data sets have brough FIPS back.

    The folks at MaxMind say it’s being looked into whether or not they’re going to add ISO 3166-2 codes to the GeoIP databases, but they don’t have a plan in place yet.

    in reply to: Province Simplification #4685

    WrinkledCheese
    Participant

    Nevermind, it has to do with the SVG scaling I’m doing with the overlay.

    in reply to: Province Simplification #4683

    WrinkledCheese
    Participant

    I suppose since Nova Scotia, Canada is fairly separate from other provinces and is quite large, the issue I’m seeing isn’t as noticeable.

    Here is a picture of Switzerland at a similar zoom level 7.

    in reply to: Cut polygons from map units data (10m) #4463

    WrinkledCheese
    Participant

    One of the developers for jVectorMap tells me that in the development branch( I think ) they have added the ability to load multiple GIS datasources into one map. Just going through the code now to find out since the documentation available is for the release 3 months ago and he says they only committed the source to git a few weeks ago.

    in reply to: Cut polygons from map units data (10m) #4462

    WrinkledCheese
    Participant

    I take the data and then use a python script to convert it into JavaScript. The script is available as part of the jVectorMap project package (converter/converter.py), if you want to read it.

    The converter script takes a few arguments.

    Datasource: It only takes one input file.

    Data Layer: It only uses the first layer of the datasource input file using ogr library.

    def loadData(self):

    source = ogr.Open( self.inputFile )

    layer = source.GetLayer(0)

    http://jvectormap.com/ – jvectormap [dot] com

    It’s a jQuery plugin.

    in reply to: Cut polygons from map units data (10m) #4460

    WrinkledCheese
    Participant

    Thanks Nathaniel,

    The reason I was working with ne_10m_admin_0_map_units is because I’ve been told the IRA might come get me if I bulk Northern Ireland in with the English/UK.

    ne_10m_admin_0_map_units is exactly what I need with the exception of certain lakes missing – IE Great Lakes separating Ontario From Michigan.

    Maybe my preferred solution would be to clip the ne_10m_admin_0_countries from the ne_10m_admin_0_map_units.

Viewing 8 posts - 1 through 8 (of 8 total)