PostgreSQL: Spatial join points to polygon, listing point attributes where multiple are joinedSimple Spatial...

How do I make my single-minded character more interested in the main story?

Minimum Viable Product for RTS game?

How to store all ctor parameters in fields

Integral problem. Unsure of the approach.

Multiple null checks in Java 8

Can a planet be tidally unlocked?

Boss asked me to sign a resignation paper without a date on it along with my new contract

How do I avoid the "chosen hero" feeling?

Coworker asking me to not bring cakes due to self control issue. What should I do?

What is the reward?

Question: "Are you hungry?" Answer: "I feel like eating."

What happens if both players misunderstand the game state until it's too late?

Is Screenshot Time-tracking Common?

Why is Shelob considered evil?

Trying to make a 3dplot

Have any astronauts or cosmonauts died in space?

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

What is an explicit bijection in combinatorics?

Taking an academic pseudonym?

What if you do not believe in the project benefits?

Reduce Reflections

Can someone explain the need for perturbation theory in QM?

How do I add a strong "onion flavor" to the biryani (in restaurant style)?

Draw triangle with text in vertices/edges



PostgreSQL: Spatial join points to polygon, listing point attributes where multiple are joined


Simple Spatial Join of Point Feature to Polygon Target Feature Not So Simple (Source Files Included)Qgis Spatial Join: numeric values change to negative valuesHow to implement 1:n joins with string attribute concatenation?Spatially join points to polygons in ArcGIS Desktop?Spatial join points and polygons in PostGIS?Alphabetical Sort within a RecordSplit multiple attributes from a big polygon to smaller onesMultiple spatial joins in PostGISIncomplete spatial join in PostgreSQLspatial join with the same merge rules for multiple fields in a single feature class













0















I have a large polygon table and a large point table in a postgis enabled PostgreSQL database.
Each point has a unique reference number (double type). I want to spatial join the points to the polygons, but where multiple points are found within a polygon, I want ALL the reference numbers to be carried across into a new column in the polygon table (a string column called ref_numb_list). Multiple reference numbers would be delimited with commas.



This functionality is available in ArcGIS spatial joins where you're able to set a 'join' merge rule for an output column. But I need to do this in PostgreSQL, via pgAdmin.










share|improve this question



























    0















    I have a large polygon table and a large point table in a postgis enabled PostgreSQL database.
    Each point has a unique reference number (double type). I want to spatial join the points to the polygons, but where multiple points are found within a polygon, I want ALL the reference numbers to be carried across into a new column in the polygon table (a string column called ref_numb_list). Multiple reference numbers would be delimited with commas.



    This functionality is available in ArcGIS spatial joins where you're able to set a 'join' merge rule for an output column. But I need to do this in PostgreSQL, via pgAdmin.










    share|improve this question

























      0












      0








      0








      I have a large polygon table and a large point table in a postgis enabled PostgreSQL database.
      Each point has a unique reference number (double type). I want to spatial join the points to the polygons, but where multiple points are found within a polygon, I want ALL the reference numbers to be carried across into a new column in the polygon table (a string column called ref_numb_list). Multiple reference numbers would be delimited with commas.



      This functionality is available in ArcGIS spatial joins where you're able to set a 'join' merge rule for an output column. But I need to do this in PostgreSQL, via pgAdmin.










      share|improve this question














      I have a large polygon table and a large point table in a postgis enabled PostgreSQL database.
      Each point has a unique reference number (double type). I want to spatial join the points to the polygons, but where multiple points are found within a polygon, I want ALL the reference numbers to be carried across into a new column in the polygon table (a string column called ref_numb_list). Multiple reference numbers would be delimited with commas.



      This functionality is available in ArcGIS spatial joins where you're able to set a 'join' merge rule for an output column. But I need to do this in PostgreSQL, via pgAdmin.







      postgis postgresql spatial-join st-dwithin






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 13 mins ago









      Theo FTheo F

      18110




      18110






















          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%2f313220%2fpostgresql-spatial-join-points-to-polygon-listing-point-attributes-where-multi%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%2f313220%2fpostgresql-spatial-join-points-to-polygon-listing-point-attributes-where-multi%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

          (145452) 2005 RN43 Классификация | Примечания | Ссылки |...

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

          Энтрерриос (город) Содержание История | Географическое...