[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mapserver-users
Subject:    Re: [mapserver-users] (no subject)
From:       TDS <tds () tds-net ! de>
Date:       2015-06-18 13:00:03
Message-ID: 5582C0D3.4050208 () tds-net ! de
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hello Hosain,

numbers in english style:

77388 => non-decimal without points, commas, etc
77.388 => 77 full and 388 as decimals

Bye, Mathias
------------------------------------------------------------------------
mailto:tds@tds-net.de
------------------------------------------------------------------------
1+1=10
You have a question? - 42 or RTFM.
Am 18.06.2015 um 14:49 schrieb hosain mohammadi:
> the code below is a layer in map file  in this code i want create a 
> query in postgis for shortestpath but a the number 77 ,388 is the 
> source and target and the result create successfully but  my problem 
> is how insert  the number ( 77, 388)  in template file or insert by user
> how insert from html file
>
>
>
> LAYER
>     CONNECTION "host=localhost   dbname=network  user=postgres 
>  password=021555  port=5432"
>     CONNECTIONTYPE POSTGIS
>     DATA "geom from (SELECT  *  from pgr_dijkstra(
>
>                 'SELECT gid as id , source , target , cost FROM tehran' ,
>
> 77, 388,false , false ) a  LEFT JOIN tehran b ON (a.id2 = b.gid)) AS 
> foo using unique gid using srid=4326  "
>     NAME "shortestpath"
>     PROJECTION
>       "proj=utm"
>       "zone=39"
>       "datum=WGS84"
>       "units=m"
>       "no_defs"
>     END # PROJECTION
>     STATUS ON
>     TEMPLATE "query"
>     TILEITEM "location"
>     TYPE LINE
>     UNITS METERS
>     CLASS
>       NAME "Class (0)"
>       STYLE
>         COLOR 255 128 64
>         SIZE 8
>         WIDTH 10
>       END # STYLE
>     END # CLASS
>   END # LAYER
>
>
>
>
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users


[Attachment #5 (text/html)]

<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello Hosain,<br>
    <br>
    numbers in english style:<br>
    <br>
    77388 =&gt; non-decimal without points, commas, etc<br>
    77.388 =&gt; 77 full and 388 as decimals<br>
    <br>
    <div class="moz-signature">Bye, Mathias
      <hr>
      <font size="-1">
        <a class="moz-txt-link-freetext" \
href="mailto:tds@tds-net.de">mailto:tds@tds-net.de</a><br>  </font>
      <hr>
      <font size="-1">
        1+1=10<br>
        You have a question? - 42 or RTFM.
      </font>
    </div>
    <div class="moz-cite-prefix">Am 18.06.2015 um 14:49 schrieb hosain
      mohammadi:<br>
    </div>
    <blockquote
cite="mid:CACdVG-My3-R9Shz06d=pyTRC5eZjJ1g-v_8AQuCNM52C1ZO4zQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>the code below is a layer in map file  in this code i want
          create a query in postgis for shortestpath but a the number <font
            color="#ff0000">77</font> ,<font color="#ff0000">388</font>
          is the source and target and the result create successfully
          but  my problem is how insert  the number ( 77, 388)  in
          template file or insert by user </div>
        <div>how insert from html file </div>
        <div> </div>
        <div><br>
        </div>
        <br>
        <div><br>
        </div>
        <div>
          <div>LAYER</div>
          <div>    CONNECTION "host=localhost   dbname=network
             user=postgres  password=021555  port=5432"</div>
          <div>    CONNECTIONTYPE POSTGIS</div>
          <div>    DATA "geom from <font color="#bf9000">(SELECT  *
               from pgr_dijkstra(</font></div>
          <div><font color="#bf9000"><br>
            </font></div>
          <div><font color="#bf9000">                'SELECT gid as id ,
              source , target , cost FROM tehran' ,</font></div>
          <div><br>
          </div>
          <div>               <font color="#00ff00"> </font><font
              color="#ff0000">77</font>, <font color="#ff0000">388</font><font
              color="#00ff00">,</font><font color="#bf9000"> false ,
              false ) a  LEFT JOIN tehran b ON (a.id2 = b.gid)) AS foo
              using unique gid using srid=4326  "</font></div>
          <div>    NAME "shortestpath"</div>
          <div>    PROJECTION</div>
          <div>      "proj=utm"</div>
          <div>      "zone=39"</div>
          <div>      "datum=WGS84"</div>
          <div>      "units=m"</div>
          <div>      "no_defs"</div>
          <div>    END # PROJECTION</div>
          <div>    STATUS ON</div>
          <div>    TEMPLATE "query"</div>
          <div>    TILEITEM "location"</div>
          <div>    TYPE LINE</div>
          <div>    UNITS METERS</div>
          <div>    CLASS</div>
          <div>      NAME "Class (0)"</div>
          <div>      STYLE</div>
          <div>        COLOR 255 128 64</div>
          <div>        SIZE 8</div>
          <div>        WIDTH 10</div>
          <div>      END # STYLE</div>
          <div>    END # CLASS</div>
          <div>  END # LAYER</div>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
mapserver-users mailing list
<a class="moz-txt-link-abbreviated" \
href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a> <a \
class="moz-txt-link-freetext" \
href="http://lists.osgeo.org/mailman/listinfo/mapserver-users">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a></pre>
  </blockquote>
    <br>
  </body>
</html>



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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic