4 Replies Latest reply: Apr 16, 2014 8:34 AM by NilsO RSS

    Map_request not using size_hint

    NilsO

      Hi,

       

      we'd like to query mapviewer using an xml map_request. The output is supposed to use some sort of a fixed zoom.

      To achieve this we tried to use the size_hint parameter with a bounding_theme.

       

      <?xml version="1.0" standalone="yes"?>

      <map_request datasource="source" format="PNG_STREAM" width="1298" height="1082" antialiase="true" bgcolor="#c3c3c3" srid="31466">

      <bounding_themes size_hint="1234">qyThemeBasedFOI0</bounding_themes>

      <themes>

      <theme name="qyThemeBasedFOI0" template_theme="theme" render_labels="false" datasource="source">

      <binding_parameters>

      <parameter value="14000"></parameter>

      <parameter value="16000"></parameter>

      </binding_parameters>

      </theme>

      </themes>

      </map_request>

       

      From my point of view this should set the vertical size to 1234 meters (coordinate-system uses meter as unit).

      Switching to other numbers than 1234 doesn't change the result at all.

       

      Is the parameter broken or am I mistaken about the use of it?

       

      Thanks in advance,

      NilsO

        • 1. Re: Map_request not using size_hint
          B Hall

          Nilso,

           

          You will have a better chance getting this answered in the mapviewer forum:

           

          MapViewer

           

          Bryan

          • 2. Re: Map_request not using size_hint
            NilsO

            Moved to MapViewer-Forum.

             

            Thanks Bryan

            • 3. Re: Map_request not using size_hint
              jsharma-Oracle

              What is the generated query? Set the log level to finest and check it after issuing the request.

              The size_hint is used to define the bounding box added to the query.

              The MBR of the result may be different (i.e. smaller or larger than the one used in the query).

              • 4. Re: Map_request not using size_hint
                NilsO

                Shortened output from logfile:

                 

                FINEST: Theme query [ QYD_SATT_GP_BAUFELDGRENZE ]: SELECT /*+ index(GP_BAUFELDGRENZE GP_BAUFELDGRENZE_SIDX) */ ID, GEOM, 'C.QY_EG_BAUFELDGRENZE', BAUFELDNUMMER, 'T.GP_BAUFELDNR', 1, 'rule#0', BAUFELDNUMMER, FLAECHE_TXT FROM GP_BAUFELDGRENZE WHERE 's'='s'  AND (FLAECHE >= :1 AND FLAECHE <= :2)

                INFO: [ QYD_SATT_GP_BAUFELDGRENZE ] sql exec time: 210ms, total time loading 7 features: 310ms.

                FINEST: mbr of all bounding themes: java.awt.geom.Rectangle2D$Double[x=2574640.868581982,y=5727712.757607207,w=1900.1805893070996,h=1583.9718009475619]

                INFO:  **** time spent on loading features: 320ms.

                FINEST: xfm: 0.6830929687968844 0.0 0.0 -0.6830929687968844 -1758719.074505455 3913642.3120096964

                FINER: time to render theme QYTHEMEBASEDFOI0 with 7 styled features: 30ms