If you have a piece of text with a buffer that spans 10 tiles, and assuming you are using 2048x2048 tiles to do your tiling, I wonder what kind of text this is that can literally span 20000 pixels, and whether displaying that text on the map, rather than just overlaying that text on the map post-render, is the right call.  <br>
<br>Anyway, best of luck.<br><br>-Adam<br><div class="gmail_quote">On Wed, Nov 30, 2011 at 10:22 AM, Daniele Debernardi <span dir="ltr">&lt;<a href="mailto:daniele@geosar.ch">daniele@geosar.ch</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    I&#39;ve already tried with that solution but the problem is how to know
    how much buffer I need.<br>
    Suppose that i have a very long label that cover 10 tiles, I have to
    generate tiles with a buffer of  the size of 10 tiles to <br>
    get my text correctly. But how can I know what my label text will be
    long?<br>
    Now I&#39;m going in the direction of vector outputs hoping that they
    support all my needs (symbols and labels).<br>
    <br>
    Daniele<br>
    <br>
    Il 30.11.2011 16:03, Adam Eskreis ha scritto:
    <div><div class="h5"><blockquote type="cite">You can still buffer even if you draw in a tile based
      manner.  Suppose your buffer is 100 pixels and tile size is
      256x256.  Just pull 100 pixels more in each direction than you
      need, and then when you weave your tiles together, only draw from
      100,100 to 356,356 and cut out the rest.  See what I mean?<br>
      <br>
      <br>
      <div class="gmail_quote">On Wed, Nov 30, 2011 at 3:06 AM, Daniele
        Debernardi <span dir="ltr">&lt;<a href="mailto:daniele@geosar.ch" target="_blank">daniele@geosar.ch</a>&gt;</span>
        wrote:<br>
        <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
          <div bgcolor="#FFFFFF" text="#000000"> Tiling the map is a
            good idea, but the problem is the symbology and label that
            are drawn between 2 tiles,<br>
            with a buffer can&#39;t be possible why there is no possibility
            to know how the symbol or text will be.<br>
            <br>
            I&#39;m trying to configure php mapscript to output directly in
            pdf with CAIRO but with no success.<br>
            <br>
            MapServer version 6.1-dev OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG
            SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=CAIRO SUPPORTS=FREETYPE
            SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT
            SUPPORTS=WFS_CLIENT SUPPORTS=GEOS INPUT=POSTGIS INPUT=OGR
            INPUT=GDAL INPUT=SHAPEFILE <br>
            <br>
            setting output format driver CAIRO/PDF mimetype
            application/x-pdf imagemode RGB and extension pdf i get this
            error:<br>
            <br>
            [MapServer Error]: msSaveRasterBuffer(): unsupported image
            format<br>
            <br>
            Failed writing image to /tmp/4ed5e30c_4d9_0.pdf<br>
            <br>
            In php i have the support of pdflib lite enabled (PDFlib
            GmbH Version 7.0.5)<br>
            <br>
            Is there something particular in the configuration that I&#39;m
            missing to get pdf output work correctly?<br>
            <br>
            Thanks in advance<br>
            <br>
            Daniele<br>
            <br>
            <br>
            <br>
            Il 29.11.2011 19:00, Adam Eskreis ha scritto:
            <div>
              <div>
                <blockquote type="cite">Why don&#39;t you try requesting the
                  images in a tile-based manner so that the requests are
                  managable, and then weave them together in your
                  software?  Mapserver isn&#39;t intended to pull in tiles
                  that big.  You should be able to pull in 2048x2048
                  tiles just fine.<br>
                  <br>
                  -Adam<br>
                  <br>
                  <div class="gmail_quote">On Tue, Nov 29, 2011 at 10:51
                    AM, Stephen Woodbridge <span dir="ltr">&lt;<a href="mailto:woodbri@swoodbridge.com" target="_blank">woodbri@swoodbridge.com</a>&gt;</span>
                    wrote:<br>
                    <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                      <div>On 11/29/2011 10:02 AM, Daniele Debernardi
                        wrote:<br>
                        <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> The solution is not
                          pumping up the memory limit of the server,
                          because<br>
                          if i get 2 request at the same time<br>
                          I still have memory problem.<br>
                        </blockquote>
                        <br>
                      </div>
                      It sounds like you have not adequately sized the
                      server for the tasks you are asking it to perform.
                      Mapserver is designed for performance so that it
                      can handle requests quickly and free up the memory
                      it is using for the next request. If you start
                      swapping or paging data to disk that slows down
                      all processes and can overwhelm the system with
                      too many slow requests that are all consuming
                      memory and not exiting as fast as new requests are
                      coming in.<br>
                      <br>
                      If you are making an enhancement request for say
                      making mapserver use less memory and temporary
                      disk files or swap space at the cost of
                      performance, then you should add a ticket to the
                      tracking system. This is not a short term
                      solution.
                      <div> <br>
                        <br>
                        <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> Which is the best way
                          (output format) to generate high resolution
                          map<br>
                          images with full symbology support?<br>
                        </blockquote>
                        <br>
                      </div>
                      I defer to Thomas on this one. But he has already
                      mentioned that probably doing something like
                      direct pdf output and converting any pixmap
                      symbols into scalable symbols is the best way to
                      go.<br>
                      <br>
                      -Steve W
                      <div>
                        <div><br>
                          <br>
                          <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> Il 29.11.2011
                            15:49, Stephen Woodbridge ha scritto:<br>
                            <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> On
                              11/29/2011 3:20 AM, Daniele Debernardi
                              wrote:<br>
                              <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> Hi,<br>
                                with mapserver trunk version (but i
                                think with others too) I have to<br>
                                generate very big map to be imported in
                                a pdf file.<br>
                                I use php mapscript to generate maps
                                with 300 dpi for an A1/A0 pdf page<br>
                                or bigger.<br>
                                This mean that the map has dimensions
                                like 15000x25000 pxl and when I<br>
                                call the MapObj-&gt;draw method i get
                                this error:<br>
                                <br>
                                PHP Warning: mapObj::draw(): [MapServer
                                Error]: agg2CreateImage():<br>
                                mapagg.cpp: 708: Out of memory
                                allocating 1550851152 bytes.<br>
                                <br>
                                Map server is configured with the
                                AGG/PNG driver with imagemode RGBA.<br>
                                <br>
                                Is it normal that need so much memory to
                                generate the image?<br>
                              </blockquote>
                              <br>
                              Just for the image buffer you need
                              15000x25000x4 pixels = 1500,000,000<br>
                              and AGG might actually allocate a slight
                              larger image buffer so it<br>
                              does not create edge effects while
                              antialiasing objects close to the<br>
                              edges. So the above request does not seem
                              unreasonable.<br>
                              <br>
                              <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> I already
                                tryied the php ini_set memory_limit but
                                with a limit of 2048M<br>
                                i still have some problem with memory.<br>
                              </blockquote>
                              <br>
                              Try setting the limit a little higher like
                              to 2564-3072M can see if<br>
                              your memory problems go away. Of course
                              this assumes you have a system<br>
                              with a lot of memory.<br>
                              <br>
                              -Steve W<br>
                              <br>
                              <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> I checked
                                other possible outputs but generating
                                maps in pdf through<br>
                                Cairo driver but doc says that polygons
                                filled with symbols are not<br>
                                supported, and for that reason I cant
                                use it.<br>
                                SVG output has some limitations too like
                                line drawn without symbols or<br>
                                pixmap symbols not supported.<br>
                                <br>
                                Is there a better way to generate so big
                                map images and imported in a<br>
                                pdf file?<br>
                                <br>
                                Hope you guys can help me.<br>
                                <br>
                                Daniele<br>
_______________________________________________<br>
                                mapserver-users mailing list<br>
                                <a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>
                                <a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
                              </blockquote>
                              <br>
_______________________________________________<br>
                              mapserver-users mailing list<br>
                              <a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>
                              <a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
                            </blockquote>
                            <br>
                          </blockquote>
                          <br>
_______________________________________________<br>
                          mapserver-users mailing list<br>
                          <a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>
                          <a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
                        </div>
                      </div>
                    </blockquote>
                  </div>
                  <br>
                  <br>
                  <fieldset></fieldset>
                  <br>
                  <pre>_______________________________________________
mapserver-users mailing list
<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a>
</pre>
                </blockquote>
              </div>
            </div>
          </div>
          <br>
          _______________________________________________<br>
          mapserver-users mailing list<br>
          <a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>
          <a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
          <br>
        </blockquote>
      </div>
      <br>
    </blockquote>
    <br>
  </div></div></div>

<br>_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
<br></blockquote></div><br>