From: Efren S. <efr...@me...> - 2007-11-27 22:25:04
|
Mike, I don't think display information is associated with .gis data. = However, for instance, for METARs, we color code according to the value of = Ceiling or Visibility as in http://adds.aviationweather.gov/metars/description_ifr.php and Ceiling/Visibility can be saved in the .dbf file as I do in the attached Perl script. Notice that Mapserver allows one to do SQL (JOIN, SELECT, etc.) on .dbf files = since they are just MS Excel Spreadsheet. MapServer can generate different outputs from a Vector/Shapefile: GML, = KML, etc. That is why I like Mapserver besides the fact that it runs as a = CGI app through Apache. To use rasters all one has to do is create a World File. Plus it can = become a proxy to other servers and ultimately generate the final = image/product. One can also query Vector/Shapefiles and inquire information on its attributes (e.g., .dbf values). Thanks. -----Original Message----- From: Mike Fiorino [mailto:mfi...@gm...]=20 Sent: Tuesday, November 27, 2007 2:13 PM To: efr...@me... Cc: 'Arlindo da Silva'; ope...@li... Subject: Re: [Opengrads-devel] Shapefile extension: first crack efren, ok, duh on me... i was fetching on separating the color(rendering?) data from the shape(gis) data. is display data generally(commonly) part of .gis data? = i looked at some mapserver examples and agree that putting the rendering data in a separate .map file does make sense...=20 check out: http://www.nohrsc.noaa.gov/interactive/html/map.html for a good(?) demo of mapserver and http://www.nohrsc.noaa.gov/earth/ for a pretty slick display of snow data in google earth i noticed that mapserver does all the geo-vector/raster formats, it = wasn't clear if it can output .gis, e.g., display a shapefile from grads and = output .kml... ok, i'm onboard, especially since it's web and i've starting doing = .php... best /r mike Efren Serra wrote: > Mike, > > Meteorology/Oceanography isn't gis either; that is something ESRI has=20 > never understood. I think Mapserver is as much GIS as GoogleEarth is; = > it supports WMS, WCS, WFS protocols, etc., and even KML. GoogleEarth=20 > is certainly a nice viewer/client. Mapserver is a server not a client = > so there is no comparison. You could point a GoogleEarth client to a=20 > Mapserver server that returns KML. > > -----Original Message----- > From: Mike Fiorino [mailto:mfi...@gm...] > Sent: Tuesday, November 27, 2007 12:49 PM > To: efr...@me... > Cc: 'Arlindo da Silva'; ope...@li... > Subject: Re: [Opengrads-devel] Shapefile extension: first crack > > > hi efren, i took a look a mapserver. is this what fnmoc is using=20 > these days? it really isn't gis, i'm partial to google earth. thanks = > /r mike > > Efren Serra wrote: > =20 >> Arlindo, >> >> With the perl interface, can you encode colors in a shapefile? >> >> We shouldn't encode colors in the shapefiles; I was hoping to use >> these shapefiles in conjunction with Mapserver and let the coloring = to=20 >> mapserver .map configuration file. However, we should encode some=20 >> values about the shape in the .dbx file so that we can use = mapserver's=20 >> .map file CLASS value, which defines thematic classes for a given=20 >> layer. A CLASS has an EXPRESSION value that we can use to select=20 >> coloring, etc., based on a value encoded in the .dbx file. For=20 >> instance, here is simple sample for coloring Tropical Cyclone = Warnings=20 >> Wind Radiis/Track: >> >> LAYER >> NAME "al062007_019_34ktWndRadii" >> GROUP "tcw" >> METADATA >> "wms_title" "al062007_019_34ktWndRadii" ##required >> END >> TYPE POLYGON >> STATUS OFF >> DATA /otsr/shapefiles/2007091100/al062007_019_34ktWndRadii >> >> LABELITEM "RADIUS_NM" >> >> CLASS >> NAME "al062007_019_34ktWndRadii" >> OUTLINECOLOR 255 0 0 >> LABEL >> MINFEATURESIZE 50 >> MINDISTANCE 150 >> POSITION CC >> SIZE TINY >> COLOR 0 0 0 >> END >> DEBUG ON >> END >> >> DUMP TRUE >> PROJECTION >> "init=3Depsg:4326" ##recommended >> END >> END # Layer al062007_019_34ktWndRadii >> >> LAYER >> NAME "ep102007_017_track" >> GROUP "tcw" >> METADATA >> "wms_title" "ep102007_017_track" ##required >> END >> TYPE LINE >> STATUS OFF >> DATA /otsr/shapefiles/2007091100/ep102007_017_track >> >> LABELITEM "STM_NAME" >> >> CLASS >> NAME "ep102007_017_track" >> COLOR 0 0 0 >> LABEL >> MINFEATURESIZE 50 >> MINDISTANCE 150 >> POSITION CC >> SIZE TINY >> COLOR 0 0 0 >> END >> DEBUG ON >> END >> >> DUMP TRUE >> PROJECTION >> "init=3Depsg:4326" ##recommended >> END >> END # Layer ep102007_017_track >> >> - how to draw a line in black, and another in green >> >> Mapserver takes care of the drawing for us via the .map file by using >> OUTLINECOLOR >> >> - how to have a rectangle filled "blue" >> >> Mapserver takes care of the drawing for us via the .map file by using >> COLOR >> >> - how to define new colors from (red,green,blue) values >> >> COLOR and OUTLINECOLOR take RGB values as shown above. >> >> Do you have access to any GIS software? Is there a free alternative=20 >> to >> ARC/View? Which one do you recommend? I just want a way to see if the = >> file we eventually produce with GrADS can be visualized by standard=20 >> GIS software. >> >> Lets use Mapserver from UMN: http://mapserver.gis.umn.edu. Thanks. >> >> Efren >> >> >> >> --------------------------------------------------------------------- >> - >> --- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2005. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> Opengrads-devel mailing list >> Ope...@li... >> https://lists.sourceforge.net/lists/listinfo/opengrads-devel >> >> =20 >> =20 > > > > =20 |