send parameters to arc gis script through a web interface

What's the oldest plausible frozen specimen for a Jurassic Park style story-line?

Eww, those bytes are gross

Crack the bank account's password!

How would an AI self awareness kill switch work?

Are the positive and negative planes inner or outer planes in the Great Wheel cosmology model?

Why is it that Bernie Sanders is always called a "socialist"?

Integration of two exponential multiplied by each other

Microtypography protrusion with Polish quotation marks

A starship is travelling at 0.9c and collides with a small rock. Will it leave a clean hole through, or will more happen?

Small Stakes NLH 1-2 $300 Cap - What did villain have?

Does diversity provide anything that meritocracy does not?

Why is a temp table a more efficient solution to the Halloween Problem than an eager spool?

What is the difference between "...", '...', $'...', and $"..." quotes?

What is a good reason for every spaceship to carry a weapon on board?

What can I do to encourage my players to use their consumables?

Potential client has a problematic employee I can't work with

Midterm in Mathematics Courses

Subsurf on a crown. How can I smooth some edges and keep others sharp?

What language shall they sing in?

Count repetitions of an array

Custom shape shows unwanted extra line

When obtaining gender reassignment/plastic surgery overseas, is an emergency travel document required to return home?

Do authors have to be politically correct in article-writing?

What to do with threats of blacklisting?



send parameters to arc gis script through a web interface














0















I have written a simple Script in ArcGIS environment and I want to run the script through a PHP programme. At present, I am trying this withing Localhost. In my script, I have defined two parameters. My script is mentioned below;



import arcpy
from arcpy import env
import os
import sys
print("Hellow")
E=sys.argv[1]
E1=sys.argv[2]
arcpy.AddMessage(E+"It is running")
print(E1)


My expectation is to send 2 parameters to this arc script through a web interface.
In my PHP programme, I have called the following command to execute my script.



$output = shell_exec("C:wampwwwsshphp_arc1test.py '". $_GET['EmployeeID']."' '".$meek1."'");
echo $output;


This is working. But I am just getting the "Hellow" as a result.I am not getting the other results(data given as parameters).



Can anyone help me to make this successful?









share





























    0















    I have written a simple Script in ArcGIS environment and I want to run the script through a PHP programme. At present, I am trying this withing Localhost. In my script, I have defined two parameters. My script is mentioned below;



    import arcpy
    from arcpy import env
    import os
    import sys
    print("Hellow")
    E=sys.argv[1]
    E1=sys.argv[2]
    arcpy.AddMessage(E+"It is running")
    print(E1)


    My expectation is to send 2 parameters to this arc script through a web interface.
    In my PHP programme, I have called the following command to execute my script.



    $output = shell_exec("C:wampwwwsshphp_arc1test.py '". $_GET['EmployeeID']."' '".$meek1."'");
    echo $output;


    This is working. But I am just getting the "Hellow" as a result.I am not getting the other results(data given as parameters).



    Can anyone help me to make this successful?









    share



























      0












      0








      0








      I have written a simple Script in ArcGIS environment and I want to run the script through a PHP programme. At present, I am trying this withing Localhost. In my script, I have defined two parameters. My script is mentioned below;



      import arcpy
      from arcpy import env
      import os
      import sys
      print("Hellow")
      E=sys.argv[1]
      E1=sys.argv[2]
      arcpy.AddMessage(E+"It is running")
      print(E1)


      My expectation is to send 2 parameters to this arc script through a web interface.
      In my PHP programme, I have called the following command to execute my script.



      $output = shell_exec("C:wampwwwsshphp_arc1test.py '". $_GET['EmployeeID']."' '".$meek1."'");
      echo $output;


      This is working. But I am just getting the "Hellow" as a result.I am not getting the other results(data given as parameters).



      Can anyone help me to make this successful?









      share
















      I have written a simple Script in ArcGIS environment and I want to run the script through a PHP programme. At present, I am trying this withing Localhost. In my script, I have defined two parameters. My script is mentioned below;



      import arcpy
      from arcpy import env
      import os
      import sys
      print("Hellow")
      E=sys.argv[1]
      E1=sys.argv[2]
      arcpy.AddMessage(E+"It is running")
      print(E1)


      My expectation is to send 2 parameters to this arc script through a web interface.
      In my PHP programme, I have called the following command to execute my script.



      $output = shell_exec("C:wampwwwsshphp_arc1test.py '". $_GET['EmployeeID']."' '".$meek1."'");
      echo $output;


      This is working. But I am just getting the "Hellow" as a result.I am not getting the other results(data given as parameters).



      Can anyone help me to make this successful?







      arcgis-desktop arcpy python python-script-tool php





      share














      share












      share



      share








      edited 1 min ago









      Michael Stimson

      21.5k22360




      21.5k22360










      asked 1 min ago









      Shanaka HerathShanaka Herath

      757




      757






















          0






          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "79"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f313584%2fsend-parameters-to-arc-gis-script-through-a-web-interface%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Geographic Information Systems Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f313584%2fsend-parameters-to-arc-gis-script-through-a-web-interface%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Щит и меч (фильм) Содержание Названия серий | Сюжет |...

          Венесуэла на летних Олимпийских играх 2000 Содержание Состав...

          Meter-Bus Содержание Параметры шины | Стандартизация |...