[mapserver-users] RE: mapserver-users Digest, Vol 30, Issue 48

Gibb, Jack jack.gibb at mohawkcollege.ca
Fri Jul 23 10:16:20 EDT 2010


Shelley,
A quick question.  Has Zoe Green every been given a Mohawk College email address.  She would need one to download ArcGIS software.
Cheers
Jack


________________________________________
From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] On Behalf Of mapserver-users-request at lists.osgeo.org [mapserver-users-request at lists.osgeo.org]
Sent: July 23, 2010 9:39 AM
To: mapserver-users at lists.osgeo.org
Subject: mapserver-users Digest, Vol 30, Issue 48

Send mapserver-users mailing list submissions to
        mapserver-users at lists.osgeo.org

To subscribe or unsubscribe via the World Wide Web, visit
        http://lists.osgeo.org/mailman/listinfo/mapserver-users
or, via email, send a message with subject or body 'help' to
        mapserver-users-request at lists.osgeo.org

You can reach the person managing the list at
        mapserver-users-owner at lists.osgeo.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of mapserver-users digest..."


Today's Topics:

   1. Re: Rendering Problem (Ibrahim Saricicek)
   2. Re: Re: Rendering Problem (ibrahim saricicek)
   3. Reg:- Connecting Mapserver with Oracle Spatial    using asp.net
      (venkat)
   4. Re: Reg:- Connecting Mapserver with Oracle        Spatialusing
      asp.net (Rahkonen Jukka)
   5. Re: Reg:- Connecting Mapserver with Oracle Spatial        using
      asp.net (Jeff McKenna)
   6. Re: 24 bit PNG transparent symbols (Toni Pignataro)
   7. [Info] S-57 nautical map on MapServer (easyl)


----------------------------------------------------------------------

Message: 1
Date: Fri, 23 Jul 2010 01:46:53 -0700 (PDT)
From: Ibrahim Saricicek <ibrahimsaricicek at gmail.com>
Subject: [mapserver-users] Re: Rendering Problem
To: mapserver-users at lists.osgeo.org
Message-ID: <1279874813661-5328796.post at n2.nabble.com>
Content-Type: text/plain; charset=us-ascii


Hi all,

I couldn't still find a way to solve the problem discussed on;
http://osgeo-org.1803224.n2.nabble.com/Rendering-Problem-td5069072.html#a5098281.

Waiting for any advice..
Thanks in advence..
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Rendering-Problem-tp5069072p5328796.html
Sent from the Mapserver - User mailing list archive at Nabble.com.


------------------------------

Message: 2
Date: Fri, 23 Jul 2010 12:59:16 +0300
From: ibrahim saricicek <ibrahimsaricicek at gmail.com>
Subject: Re: [mapserver-users] Re: Rendering Problem
To: mapserver-users at lists.osgeo.org
Message-ID:
        <AANLkTimB+0kE0--f2ZU7erM3C_tjasQ9Ok2e9T1VvOJm at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Hi All,

Yes the same..
And also tried several fonts, including monospaced fonts..

Ragards..


On Fri, Jul 23, 2010 at 12:03 PM, Gilbertson, Paul <paulbe at ceh.ac.uk> wrote:

> Ibrahim,
>
> Have you checked that the font files are the same on both machines?
>
> Regards,
> Paul Gilbertson
>
> > -----Original Message-----
> > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-
> > bounces at lists.osgeo.org] On Behalf Of Ibrahim Saricicek
> > Sent: 23 July 2010 09:47
> > To: mapserver-users at lists.osgeo.org
> > Subject: [mapserver-users] Re: Rendering Problem
> >
> >
> > Hi all,
> >
> > I couldn't still find a way to solve the problem discussed on;
> > http://osgeo-org.1803224.n2.nabble.com/Rendering-Problem-
> > td5069072.html#a5098281.
> >
> > Waiting for any advice..
> > Thanks in advence..
> > --
> > View this message in context: http://osgeo-
> > org.1803224.n2.nabble.com/Rendering-Problem-tp5069072p5328796.html
> > Sent from the Mapserver - User mailing list archive at Nabble.com.
> > _______________________________________________
> > mapserver-users mailing list
> > mapserver-users at lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
> --
> This message (and any attachments) is for the recipient only. NERC
> is subject to the Freedom of Information Act 2000 and the contents
> of this email and any reply you make may be disclosed by NERC unless
> it is exempt from release under the Act. Any material supplied to
> NERC may be stored in an electronic records management system.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100723/c0699ffd/attachment-0001.html

------------------------------

Message: 3
Date: Fri, 23 Jul 2010 17:12:07 +0530
From: venkat <ven.tammineni at gmail.com>
Subject: [mapserver-users] Reg:- Connecting Mapserver with Oracle
        Spatial using asp.net
To: mapserver-announce at lists.osgeo.org,
        mapserver-users at lists.osgeo.org,        mapserver-users at lists.umn.edu
Message-ID:
        <AANLkTikEPptSVJjgdRHpc=r94zp2k89cNHcesepaCOdL at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Dear All,

   I would like to connect Mapserver with Oracle 10g Spatial .,when i try to
connect using Oracle spatial I am getting error  "Oracle Spatial is not
supported".


Please let me know...Where I am doing wrong.I am waiting for your great
response.



Here is my mapfile code.

LAYER
    NAME "India National Highways"
    TYPE Line

    CONNECTIONTYPE oraclespatial
    CONNECTION "GIS/gis123"
    DATA "the_geom FROM INDIANATIONALHIGHWAYS USING SRID 24047"
   # LABELITEM "nh_no_"
    Status OFF
    DUMP TRUE

       CLASS
        NAME 'NATIONAL HIGHWAYS'

   STYLE
                COLOR  249 139 42
            End


   End # end of the class
  END # end of the Layer


Thanks and Regards,

Venkat
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100723/2d175f49/attachment-0001.html

------------------------------

Message: 4
Date: Fri, 23 Jul 2010 15:16:33 +0300
From: "Rahkonen Jukka" <Jukka.Rahkonen at mmmtike.fi>
Subject: Re: [mapserver-users] Reg:- Connecting Mapserver with Oracle
        Spatialusing asp.net
To: "venkat" <ven.tammineni at gmail.com>,
        <mapserver-users at lists.osgeo.org>
Message-ID:
        <CC197224AC75CE4DB23F739B16891B86E34886 at tikka.haapa.mmm.fi>
Content-Type: text/plain;       charset="iso-8859-1"

Hi,

Most probably the message you see is telling it all: your Mapserver version does not support Oracle. If you work with Windows the MS4W comes with Oracle support but it must be activated first by following the instructions which come with the delivery. I would also suggest reading at least the documents http://mapserver.org/input/vector/oracle.html
and http://mapserver.org/installation/oracle.html


-Jukka Rahkonen-


venkat wrote:

Dear All,

   I would like to connect Mapserver with Oracle 10g Spatial .,when i try to
connect using Oracle spatial I am getting error  "Oracle Spatial is not
supported".


Please let me know...Where I am doing wrong.I am waiting for your great
response.



Here is my mapfile code.

LAYER
    NAME "India National Highways"
    TYPE Line

    CONNECTIONTYPE oraclespatial
    CONNECTION "GIS/gis123"
    DATA "the_geom FROM INDIANATIONALHIGHWAYS USING SRID 24047"
   # LABELITEM "nh_no_"
    Status OFF
    DUMP TRUE

       CLASS
        NAME 'NATIONAL HIGHWAYS'

   STYLE
                COLOR  249 139 42
            End


   End # end of the class
  END # end of the Layer


Thanks and Regards,

Venkat





------------------------------

Message: 5
Date: Fri, 23 Jul 2010 09:19:40 -0300
From: Jeff McKenna <jmckenna at gatewaygeomatics.com>
Subject: Re: [mapserver-users] Reg:- Connecting Mapserver with Oracle
        Spatial using asp.net
To: MapServer <mapserver-users at lists.osgeo.org>
Message-ID: <4C4988DC.1090901 at gatewaygeomatics.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Hello,

You are trying to connect directly from MapServer to OracleSpatial, so
you must compile MapServer with OracleSpatial support; to verify that
you have done this correctly, at the commandline execute "mapserv -v"
and look for "INPUT=ORACLESPATIAL" in the response.

-jeff


--
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/




venkat wrote:
> Dear All,
>
>    I would like to connect Mapserver with Oracle 10g Spatial .,when i
> try to connect using Oracle spatial I am getting error  "Oracle Spatial
> is not supported".
>
>
> Please let me know...Where I am doing wrong.I am waiting for your great
> response.
>
>
>
> Here is my mapfile code.
>
> LAYER
>     NAME "India National Highways"
>     TYPE Line
>
>     CONNECTIONTYPE oraclespatial
>     CONNECTION "GIS/gis123"
>     DATA "the_geom FROM INDIANATIONALHIGHWAYS USING SRID 24047"
>    # LABELITEM "nh_no_"
>     Status OFF
>     DUMP TRUE
>
>        CLASS
>         NAME 'NATIONAL HIGHWAYS'
>
>   STYLE
>                 COLOR  249 139 42
>             End
>
>
>    End # end of the class
>   END # end of the Layer
>
>
> Thanks and Regards,
>
> Venkat
>



------------------------------

Message: 6
Date: Fri, 23 Jul 2010 14:38:59 +0200
From: Toni Pignataro <toni.pignataro at wheregroup.com>
Subject: Re: [mapserver-users] 24 bit PNG transparent symbols
To: Davide Ticozzi <davide at geosar.ch>, mapserver-users at lists.osgeo.org
Message-ID: <4C498D63.5000207 at wheregroup.com>
Content-Type: text/plain; charset=ISO-8859-15; format=flowed

Hello list,

Did any one solve this or have an idea, you Davide? I am having exactly
the same problem, i am not getting the png image transparent.
I know to use the OPACITY, but this gives tranparency to the whole layer
and is not what i need.
What i want is to set the color red in an png symbol transparent . I
created this png in Gimp with an tranparent background and filled it
with the color red (RGB 255,0,0)


My defined OUTPUTFORMAT  is:

OUTPUTFORMAT
     NAME PNG24
     DRIVER "GD/PNG"
     MIMETYPE "image/png"
     EXTENSION PNG
     IMAGEMODE RGBA
     TRANSPARENT ON
END

CLASS-section:

STYLE
            SYMBOL 'red'
            SIZE 100
            MINSIZE 100
            COLOR 255 0 0
END

Symbol-section:

SYMBOL
     NAME "red"
     TYPE PIXMAP
     IMAGE "red.png"
     TRANSPARENT 100
END

So my questions are the following:

1. Due to the mapserverdocumentation it says for TRANSPARENT in the
SYMBOL-section "[color index]". What does this mean?
2. The COLOR defined in the STYLE-section: is  this the color on which
the transparency applies?
So her i would place 255 0 0, because this is my color where i want the
transparency?


Thanks for any suggestions,
Toni P.


Davide Ticozzi schrieb:
> Hi List,
>
> I'have the same question posted by Ben Brehmer in the late 2008, but
> nobody have given a response until now.
>
> I've been trying to get 24 bit PNG symbols to be transparent.
>
> I've tried both GD and AGG output. I've tried --with-experimental-png.
> I've tried editing the symbol in photoshop to be transparent.
> Basically fooled around with all the different output format options.
> I've tried both RGB and RGBA png images.
>
> 8 bit PNG symbols work just fine. But the 24 bit symbols always have a
> white and non-transparent background (see attached image).
>
> Is there any other mapfile configurations I can try before I convert
> all of my 24 bit images to 8 bit?
>
> Or maybe this is a known bug?
>
> Thanks,
>
> Dave
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users



------------------------------

Message: 7
Date: Fri, 23 Jul 2010 06:39:42 -0700 (PDT)
From: easyl <thlin.box at gmail.com>
Subject: [mapserver-users] [Info] S-57 nautical map on MapServer
To: mapserver-users at lists.osgeo.org
Message-ID: <1279892382095-5329589.post at n2.nabble.com>
Content-Type: text/plain; charset=us-ascii


Since several months I was looking for an good example or tutorial for
rendering S-57 nautical charts on MapServer.
After searching without any success I tried to build up my first map with
limit knowledge.

IMO, the most hardest part is how to render them with S-52 style standard.
(The project http://www.opencpn.org/ has done a really good work to render
nautical map in an application.)

Some resource:
http://home.gdal.org/projects/s57/index.html
http://grass.osgeo.org/wiki/S-57_data
http://www.s-57.com/

Here is a short description of what I have done.

1) Conver S-57 (*.000) files into shapefiles by using ogr2ogr.
    An S-57 file is split into several shapefiles;
    Each shapefile contains single one layer of single geometry type.

    For example:
    src.000 ------ DEPARE ------> Area    (a shapefile)
                  +                  +--> Line     (a shapefile)
                  |
                  +-- (other layer)  .........................    (a
shapefile)

   Here is the ogr2ogr commands
   > ogr2ogr -skipfailure -append -f "ESRI Shapefile" output/DEPARE/A
src.000 -nlt POLYGON DEPARE
   > ogr2ogr -skipfailure -append -f "ESRI Shapefile" output/DEPARE/L
src.000 -nlt LINESTRING DEPARE

   The SOUNDG layer must be converted with special care.
  > export OGR_S57_OPTIONS="SPLIT_MULTIPOINT=ON,ADD_SOUNDG_DEPTH=ON"
  > ogr2ogr -skipfailure -append -f "ESRI Shapefile" output/SOUNDG/P src.000
-nlt POINT SOUNDG

2) Construct mapfile
  2.1) Generally there are (at least) two things to take care: scale and
layer priority.

         S-57 data may have different scale value and overlap with each
other.
         Moreover, a S-57 data may not have a rectangle extent.

         For those reasons, I construct mapfile with the following manner:
         Sort layers after scale value, then layer priority.
         Group them if necessary.
         MAP
           LAYER
               // scale:       1:100,000
               // priority:    low
              CONNECTION "shapefile/100000/DEPARE/A/DEPARE.shp"
              DATA "DEPARE"
              GROUP "DEPARE"
           END

           LAYER
               // scale:       1:100,000
               // priority:    high
              CONNECTION "shapefile/100000/LIGHTS/P/LIGHTS.shp"
              DATA "LIGHTS"
              GROUP "LIGHTS"
           END

           LAYER
               // scale:       1:10,000
               // priority:    low
              CONNECTION "shapefile/10000/DEPARE/A/DEPARE.shp"
              DATA "DEPARE"
              GROUP "DEPARE"
           END

           LAYER
               // scale:       1:10,000
               // priority:    high
              CONNECTION "shapefile/10000/LIGHTS/P/LIGHTS.shp"
              DATA "LIGHTS"
              GROUP "LIGHTS"
           END
         END

  2.2) apply style. It is the hardest part.
         Here I give abother two examples.

  LAYER
    NAME DEPARE_A_1500000_1
    GROUP "DEPARE"
    STATUS ON
    TYPE POLYGON
    CONNECTIONTYPE OGR
    CONNECTION "shapefile/1500000/DEPARE/A/DEPARE.shp"
    PROCESSING "CLOSE_CONNECTION=DEFER"
    PROCESSING "LABEL_NO_CLIP=ON"
    DATA "DEPARE"
    PROJECTION
      "proj=longlat"
      "ellps=WGS84"
      "datum=WGS84"
      "no_defs"
    END
    CLASSITEM DRVAL1
    CLASS
      EXPRESSION ([DRVAL1] < 3)
      STYLE
        COLOR 115 182 239
      END
    END
    CLASS
      EXPRESSION ([DRVAL1] >= 3 && [DRVAL1] < 8)
      STYLE
        COLOR 156 198 247
      END
    END
    CLASS
      EXPRESSION ([DRVAL1] >= 8)
      STYLE
        COLOR 214 235 239
      END
    END
  END


  LAYER
    NAME LIGHTS_P_1500_1
    GROUP "LIGHTS"
    STATUS ON
    TYPE POINT
    #MAXSCALEDENOM 1501
    CONNECTIONTYPE OGR
    CONNECTION "shapefile/1500/LIGHTS/P/LIGHTS.shp"
    PROCESSING "CLOSE_CONNECTION=DEFER"
    PROCESSING "LABEL_NO_CLIP=ON"
    DATA "LIGHTS"
    PROJECTION
      "proj=longlat"
      "ellps=WGS84"
      "datum=WGS84"
      "no_defs"
    END
    CLASSITEM COLOUR
    CLASS
      EXPRESSION ([COLOUR] == 3)
      STYLE
        COLOR 255 0 0
        SIZE [VALNMR]
        OPACITY 50
        OUTLINECOLOR 0 0 0
      END
    END
    CLASS
      EXPRESSION ([COLOUR] == 4)
      STYLE
        COLOR 0 255 0
        SIZE [VALNMR]
        OPACITY 50
        OUTLINECOLOR 0 0 0
      END
    END
    ...
  END

  Here is the result:
http://osgeo-org.1803224.n2.nabble.com/file/n5329589/s57MS.png
http://osgeo-org.1803224.n2.nabble.com/file/n5329589/s57MS.PNG s57MS.PNG
  Of course, it needs still a lot of symbols, color encoding, customized
style after standards ....

I have wrote some script to automatically convert S-57 files and construct
mapfile (manually writing a mapfile for 100+ layers from 20+ S-57 files is
not practical...). If anyone has interest, I can share them or even make a
project to let everyone contribute.....

Now the task to be done is to encode every possible style in
mapfile............................:(

Any suggestion is welcome!




--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Info-S-57-nautical-map-on-MapServer-tp5329589p5329589.html
Sent from the Mapserver - User mailing list archive at Nabble.com.


------------------------------

_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


End of mapserver-users Digest, Vol 30, Issue 48
***********************************************

This E-mail contains privileged and confidential information intended
only for the individual or entity named in the message.  If the reader
of this message is not the intended recipient, or the agent responsible
to deliver it to the intended recipient, you are hereby notified that
any review, dissemination, distribution or copying of this communication
is prohibited.  If this communication was received in error, please
notify the sender by reply E-mail immediately, and delete and destroy
the original message.


More information about the mapserver-users mailing list