How to clip layers to the coastline (For example, Temperatures.)

Share and distribute color palettes, visual styles, placefiles, and iconsheets for controlling WSV3's appearance.
User avatar
gulfwx
Posts: 322
Joined: Thu Feb 18, 2016 12:48 am

How to clip layers to the coastline (For example, Temperatures.)

Postby gulfwx » Tue Sep 12, 2017 7:09 am

I've noticed this has been asked for a few times as a feature. This is how you clip different products to the coastline.

Image

1) Go to this link: http://www.naturalearthdata.com/downloads/10m-physical-vectors/10m-ocean/

2)Click "Download Ocean"

3)Extract the zip.

4)Go to WSV3 > GIS> Manage Shapefiles

5) Search for the folder you downloaded, and choose the .shp file, click add.

6)Go to style editor, make sure "Filled polygon" is checked. Change the style to whatever you want the ocean to be.
[This is also a great way to customize the ocean to whatever you want]

7)Go to your layer order and move 2m Temp/Dew Point Analysis to below geographic polygons.
- Do this for any layers you want to be cut off at the coastline.

And that's it!
Image

Vice President - StormCast

mgeissler
Posts: 67
Joined: Fri Dec 11, 2015 1:30 pm

Re: How to clip layers to the coastline (For example, Temperatures.)

Postby mgeissler » Tue Sep 12, 2017 1:12 pm

NICE
Attachments
test.png
test.png (1.1 MiB) Viewed 235 times

mkutche
Posts: 172
Joined: Sun Dec 27, 2015 6:46 pm

Re: How to clip layers to the coastline (For example, Temperatures.)

Postby mkutche » Tue Sep 12, 2017 6:33 pm

Sweet!!
Image

shawnk101
Posts: 145
Joined: Fri Jan 15, 2016 11:05 pm

Re: How to clip layers to the coastline (For example, Temperatures.)

Postby shawnk101 » Tue Sep 12, 2017 9:22 pm

You're the man!

User avatar
Paul
Site Admin
Posts: 3103
Joined: Mon Dec 07, 2015 4:56 pm
Location: New England
Contact:

Re: How to clip layers to the coastline (For example, Temperatures.)

Postby Paul » Tue Sep 12, 2017 11:10 pm

Stunning however I get nervous with big polygon shapefiles since I know the winding order/tessellation issue you will likely encounter. It seems to not be a problem at all at your regional zooms, but please don't forget about one of the limitations of the new GIS system when I first introduced it: that there are some low-level tessellation issues with the fill order of huge polygons with multiple holes (i.e., oceans) and I detailed how involved the process of fixing this would be.

Seems to be good enough though until I can develop the option for a real masking feature (which would use the terrain data to perform a true mask instead of faking it this way, which is not GPU efficient, since it is still wastefully drawing the background ocean tiles beneath the polygon). I'm not promising I can get that into WSV3 but it would be awesome to have.

User avatar
Paul
Site Admin
Posts: 3103
Joined: Mon Dec 07, 2015 4:56 pm
Location: New England
Contact:

Re: How to clip layers to the coastline (For example, Temperatures.)

Postby Paul » Tue Sep 12, 2017 11:12 pm

Paul wrote:which is not GPU efficient, since it is still wastefully drawing the background ocean tiles beneath the polygon

I.e. heavily recommended in the above screenshots to deactivate "Ocean" in the Terrain settings for a free GPU optimization that won't change the look at all since you're seeing the shapefile polygon.

donjgatlin
Posts: 61
Joined: Fri Mar 11, 2016 2:11 pm

Re: How to clip layers to the coastline (For example, Temperatures.)

Postby donjgatlin » Wed Sep 13, 2017 12:06 pm

gulfwx wrote:I've noticed this has been asked for a few times as a feature. This is how you clip different products to the coastline.

Image

1) Go to this link: http://www.naturalearthdata.com/downloads/10m-physical-vectors/10m-ocean/

2)Click "Download Ocean"

3)Extract the zip.

4)Go to WSV3 > GIS> Manage Shapefiles

5) Search for the folder you downloaded, and choose the .shp file, click add.

6)Go to style editor, make sure "Filled polygon" is checked. Change the style to whatever you want the ocean to be.
[This is also a great way to customize the ocean to whatever you want]

7)Go to your layer order and move 2m Temp/Dew Point Analysis to below geographic polygons.
- Do this for any layers you want to be cut off at the coastline.

And that's it!

Do you have a link to what you used to fill your ocean with? That fill texture looks like it works very well!

User avatar
gulfwx
Posts: 322
Joined: Thu Feb 18, 2016 12:48 am

Re: How to clip layers to the coastline (For example, Temperatures.)

Postby gulfwx » Wed Sep 13, 2017 6:24 pm

Image
Image
Image

Vice President - StormCast


Return to “WSV3 Customizations”

Who is online

Users browsing this forum: No registered users and 1 guest