Calculate Polygon inside polygon djangoUse Esri Geoservices REST as backend for Python web framework...

Virginia employer terminated employee and wants signing bonus returned

How are showroom/display vehicles prepared?

meaning and function of 幸 in "则幸分我一杯羹"

Is "history" a male-biased word ("his+story")?

What are actual Tesla M60 models used by AWS?

UART pins to unpowered MCU?

Why the color red for the Republican Party

What do you call someone who likes to pick fights?

Why doesn't this Google Translate ad use the word "Translation" instead of "Translate"?

How strictly should I take "Candidates must be local"?

Plausibility of Mushroom Buildings

Database Backup for data and log files

Can I pump my MTB tire to max (55 psi / 380 kPa) without the tube inside bursting?

In the quantum hamiltonian, why does kinetic energy turn into an operator while potential doesn't?

Do I really need to have a scientific explanation for my premise?

Motivation for Zeta Function of an Algebraic Variety

Shifting between bemols (flats) and diesis (sharps)in the key signature

What was the Kree's motivation in Captain Marvel?

If I receive an SOS signal, what is the proper response?

Conservation of Mass and Energy

How is the wildcard * interpreted as a command?

How can I ensure my trip to the UK will not have to be cancelled because of Brexit?

Intuition behind counterexample of Euler's sum of powers conjecture

How to draw cubes in a 3 dimensional plane



Calculate Polygon inside polygon django


Use Esri Geoservices REST as backend for Python web framework (Django?)Batch set value/calculate field inside Cursordjango floppy forms geospatial widgets errorGeoDjango - faster way to use polygon.crosses?GeoDjango: how to calculate distance between two Point()?Get random point from django PolygonFieldcalculate difference between two interpolated grids using pythonConnecting Django to postgresqlWhy my contained Query doesnot work in spatial coordinates in GeoDjango?Converting string to float in Calculate Value for ModelBuilder?













0















I have 2 Models "Building" and "Flood", both are in srid 32651
My purpose are want to calculate how many building get hits by flood, I use :



affected = Building.objects.filter(geom__within=Flood.geom)


but somehow I get "object with type SpatialProxy for a spatial lookup parameter" , Is there something wrong with this?









share



























    0















    I have 2 Models "Building" and "Flood", both are in srid 32651
    My purpose are want to calculate how many building get hits by flood, I use :



    affected = Building.objects.filter(geom__within=Flood.geom)


    but somehow I get "object with type SpatialProxy for a spatial lookup parameter" , Is there something wrong with this?









    share

























      0












      0








      0








      I have 2 Models "Building" and "Flood", both are in srid 32651
      My purpose are want to calculate how many building get hits by flood, I use :



      affected = Building.objects.filter(geom__within=Flood.geom)


      but somehow I get "object with type SpatialProxy for a spatial lookup parameter" , Is there something wrong with this?









      share














      I have 2 Models "Building" and "Flood", both are in srid 32651
      My purpose are want to calculate how many building get hits by flood, I use :



      affected = Building.objects.filter(geom__within=Flood.geom)


      but somehow I get "object with type SpatialProxy for a spatial lookup parameter" , Is there something wrong with this?







      python geodjango django





      share












      share










      share



      share










      asked 5 mins ago









      Rikudo PainRikudo Pain

      290313




      290313






















          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%2f315155%2fcalculate-polygon-inside-polygon-django%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%2f315155%2fcalculate-polygon-inside-polygon-django%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

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

          is 'sed' thread safeWhat should someone know about using Python scripts in the shell?Nexenta bash script uses...

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