This is what my mapserver layer in the map file looks like:
LAYER NAME "blah" CONNECTIONTYPE postgis CONNECTION "user=apache dbname=blah" PROCESSING "CLOSE_CONNECTION=DEFER" DATA "the_geom from (select gid, ST_Transform(the_geom, 4326) as the_geom from public.test_blah_4326 limit 20) as subquery using unique gid using srid=4326" STATUS ON TYPE LINE PROJECTION "init=epsg:32007" END DUMP true METADATA "wms_title" "blah" "wms_srs" "epsg:4326 epsg:900913" "wms_feature_info_mime_type" "text/html" END CLASS NAME "platform_loc" STYLE OUTLINECOLOR 254 0 0 WIDTH 1 END END END
The contours show up. It works. But there are so many contour lines that it just looks like a big blob on the screen.
What's the best way to "thin out" the number of contour lines based on what you're looking / how far you are zoomed in leaflet (zoom / elevation)?
I saw an attribute of the layer called PROCESSING that might help me, however, the docs aren't helpful in understanding exactly how to use it, or if it's even applicable to what I'm trying to do.