The Poly Object gives you access to hundreds of thousands of Admin borders, from the openstreetmap database. 


The Poly Object requires a DEM Earth object somewhere in the parent hierarchy. Best is  to insert it under a pin, which is under your dem earth object.



  • Query region for boundaries.  Queries the dem earth parent region for any boundaries which  overlap the area. Depending on the size of the area, this may take several seconds.
  • Multi Polygon Query.  Runs a query for things like lakes or rivers, using the Poly Query Filter as the search criteria. This uses the same same argument method as the osm object. Typical searches can be things like natural or water. These tags and their values can be combined to narrow down the search results.


  • Load from file. If you have a specific poly file, load it using this button.

Usage:

  • When you query an area, a list of level groups is created as user data buttons, with the name of each border found, sorted by level and name. At this point, no borders have been created. 
  • All that has happend so far, is that the database has been asked for border in your area, and the id and name of those borders have been sorted into something manageable within the context of a Cinema4D dialog interface.  A query can produce a lot of results, so don't go trying to query half the planet, as it might be a bit much for Cinema4d to handle.
  • Its easy to get hundreds or thousands of results. If you get a a lot, use the object managers search tool to try to limit what you see. and close the level groups your not interested in.


Once you have populated the object with borders,  simply click on any border button to download and show that border.  the camera will center on the new border. It may need to generate a border if none exists. This can take a few secs. once downloaded, the borders are cached and re-used if ever needed again, as are the queries you make.


  • Alpha

This button creates an aliased alpha image, puts that image in a new material's alpha channel. it then places that material on the parent dem earth object and maps it using a georeference tag. A semi random color is used in the color channel, based on the name,level and location of the border. This gives each poly border a unique individual color and the  image mask created has a unique name.