Cut polygons from map units data (10m)
Home › Forums › Natural Earth Map Data › Cultural Vectors › Cut polygons from map units data (10m)
- This topic has 5 replies, 1 voice, and was last updated 13 years, 1 month ago by
WrinkledCheese.
-
AuthorPosts
-
January 8, 2013 at 7:29 pm #4459
NathanielKeymaster@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/
January 8, 2013 at 7:37 pm #4460
WrinkledCheeseParticipantThanks 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.
January 8, 2013 at 10:57 pm #4461
NathanielKeymasterWhy can’t you overlay the lakes so it looks like it’s cutting out the admin graphically?
January 9, 2013 at 2:22 pm #4462
WrinkledCheeseParticipantI 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.
January 9, 2013 at 3:06 pm #4463
WrinkledCheeseParticipantOne 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.
-
AuthorPosts
You must be logged in to reply to this topic.













