[mapserver-users] Need help selecting vector data source

Roger André randre at gmail.com
Mon Jan 5 11:27:15 EST 2009


Hi Paul,

This this do what you needed?

Thanks,

Roger
--

On Sat, Jan 3, 2009 at 11:47 PM, Roger André <randre at gmail.com> wrote:

> Hi Paul,
>
> This ought to get you started.  The "florida.map" is the project mapfile
> and looks for the "coastline.map", "lakes.map", and "islands.map" mapfiles
> for each of the separate layers.  You should just need to change the path in
> each of the DATA lines to point at your shapefiles. Attached is the image
> this generates, as well as the mapfiles.  You'll have to tweak the colors
> yourself.
>
> Roger
> --
>
>
> On Sat, Jan 3, 2009 at 8:47 PM, P.Romero <romero619 at hotmail.com> wrote:
>
>>  Ok, Ive attached the image…
>>
>>
>>  ------------------------------
>>
>> *From:* Roger André [mailto:randre at gmail.com]
>> *Sent:* 2009-01-03 10:28 PM
>> *To:* P.Romero
>>
>> *Subject:* Re: [mapserver-users] Need help selecting vector data source
>>
>>
>>
>> Hi Paul,
>>
>> The image of what you want this to look like didn't come through to the
>> list.  Can you send it to me directly?  I'll work up a mapfile that will
>> look like it for you.
>>
>> Roger
>> --
>>
>> On Sat, Jan 3, 2009 at 8:16 PM, P.Romero <romero619 at hotmail.com> wrote:
>>
>> Roger,
>>
>> Thanks for the advice, I downloaded the 1.6 version.
>>
>> Another question: I cant seem to find a way to "merge" the two layers:
>> "land" and "lakes", since their each from a separate shapefile, and are on a
>> separate layer. Is it even possible to merge the layers? Here's my map file:
>>
>>
>>
>> MAP
>>
>> NAME "dd"
>>
>> UNITS DD
>>
>> EXTENT -90 20 -60 35
>>
>> SIZE 600 600
>>
>> SHAPEPATH "/data/apps/mapserver/shp"
>>
>> IMAGECOLOR 130 180 200
>>
>> WEB
>>
>> IMAGEPATH /var/www/html/images/mapserver
>>
>> IMAGEURL /images/mapserver
>>
>> LOG /var/log/maplog
>>
>> END
>>
>> LAYER
>>
>>             NAME "gshhs_land"
>>
>>             TYPE POLYGON
>>
>>             STATUS ON
>>
>>             DATA "gshhs_land.shp"
>>
>>                         CLASS
>>
>>                                     STYLE
>>
>>                                                 COLOR 240 240 230
>>
>>                                                 OUTLINECOLOR 240 240 230
>>
>>                                     END
>>
>>                         END
>>
>>             END
>>
>> END
>>
>> LAYER
>>
>>             NAME "gshhs_lake"
>>
>>             TYPE POLYGON
>>
>>             STATUS ON
>>
>>             DATA "gshhs_lake.shp"
>>
>>                         CLASS
>>
>>                                     STYLE
>>
>>                                                 COLOR 130 180 200
>>
>>                                     END
>>
>>                         END
>>
>>             END
>>
>> END
>>
>>
>>
>> The first layer seems to simply overlap and cover the second layer.
>> Im not sure how to set the transparency of a layer (I read through the
>> documentation, but it wasn't very clear).
>>
>> Basically, I want land a beige color, and oceans (background) and bodies
>> of water (polygons from the "lakes" shapefile) to be a blue color.
>>
>>
>>
>> What should I do? Do this require something drastic, like merging the land
>> & lakes shapefiles, or something like this?
>>
>> Please help,
>>
>> Thanks,
>>
>> P.Romero
>>
>>
>>
>>
>>  ------------------------------
>>
>> *From:* Roger André [mailto:randre at gmail.com]
>> *Sent:* 2009-01-03 8:43 PM
>> *To:* Pablo Romero
>> *Cc:* mapserver-users at lists.osgeo.org
>> *Subject:* Re: [mapserver-users] Need help selecting vector data source
>>
>>
>>
>> Version 1.6 of the gshhs shapefiles are polygon features.  You can find
>> them at ftp://ftp.ihg.uni-duisburg.de/GIS/GISData/GSHHS/
>> --
>>
>> On Sat, Jan 3, 2009 at 4:42 PM, Pablo Romero <romero619 at hotmail.com>
>> wrote:
>>
>> hello,
>> I need help selecting a datasource to produce the following: a basic,
>> high-resolution land map, showing ONLY coastlines and bodies of water.
>> basically, Im trying to emulate a type of image tiling that I found on
>> another site, which I believe is also being produced using mapserver, but Im
>> unsure about which data source/shapefile is being used.
>>
>> Ive ATTACHED the image.
>> You can see that image includes a high-resolution map of the florida
>> coast, including interior bodies of water.
>>
>> Ive tried using the "admin98.shp" and "world_vector_shorelines.shp" in
>> order to recreate these results, but these two shapefiles dont include
>> interior bodies of water (lakes, ponds, etc.). Ive ALSO tried using the
>> gshhs shapefiles (http://www.ngdc.noaa.gov/mgg/shorelines/gshhs.html),
>> and these *seem* like they might work, but they are broken up into separate
>> shapefiles for coastal outline, lakes, ponds, etc., and these shapefiles are
>> IN LINES instead of POLYGONS/POLYLINES, so I cannot figure out how to "fill"
>> the space between "lines" with a different color  in order to make the
>> landmasses and interior bodies of water "stand out".
>>
>> So, simply put, my question is: can someone please help me figure out /
>> recommend which data source I should use in order to produce output similiar
>> to the image Ive attached? just high-resolution coastal outline and interior
>> bodies of water IN decimal degrees (WGS1984?), please help....
>>
>> P.Romero
>>
>>
>>  ------------------------------
>>
>> It's the same Hotmail(R). If by "same" you mean up to 70% faster. Get your
>> account now.<http://windowslive.com/online/hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_broad1_122008>
>>
>>
>> _______________________________________________
>> mapserver-users mailing list
>> mapserver-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>
>>
>>
>>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20090105/0c310003/attachment-0001.html


More information about the mapserver-users mailing list