Cut polygons from map units data (10m)

Home Forums Natural Earth Map Data Cultural Vectors Cut polygons from map units data (10m)

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #4459

    Nathaniel
    Keymaster

    @WrinkledCheese: clip would result in only the lake portions of the admin_0 being shown. Erase is more what you need, but not supported in OGR out of the box.

    However, this is available straight off the site: https://www.naturalearthdata.com/http//www.naturalearthdata.com/download/10m/cultural/ne_10m_admin_0_countries_lakes.zip

    From:

    https://www.naturalearthdata.com/downloads/10m-cultural-vectors/10m-admin-0-countries/

    While GeoJSON allows heterogeneous data inside of one container file, SHP requires the data models of the components to match or odd things will result.

    If you only want land polygons, there is:

    https://www.naturalearthdata.com/downloads/10m-physical-vectors/

    #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.

    #4461

    Nathaniel
    Keymaster

    Why can’t you overlay the lakes so it looks like it’s cutting out the admin graphically?

    #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.

    #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.

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

You must be logged in to reply to this topic.