Constructing query to return values from all polygons that line passes through using SpatiaLite? [closed]Seek assistance with: SQL Server 2008 Query that takes values from a column in another table (or from a flat file)How to combine Spatialite DatabasesHow to create a spatial view when allowing multiple selection in qgis’s edit widget “value relation”?problem merging polygons based on a column value - using SpatialiteExplicitly close a OGR result object from a call to ExecuteSQLFind start of riverDump a GeoJSON FeatureCollection from Spatialite query with PythonUsing nearest neighbor query in SpatiaLite?Update query adding values from multi column case statement in QGISQuerying geometry in perimeter or square with SpatiaLite?

Multi tool use
Multi tool use

What is the effect of the Feeblemind spell on Ability Score Improvements?

Wiring a 4 channel relay - is this possible?

Polynomial division: Is this trick obvious?

How to continually let my readers know what time it is in my story, in an organic way?

When did game consoles begin including FPUs?

Capital gains on stocks sold to take initial investment off the table

tikz drawing rectangle discretized with triangle lattices and its centroids

What do you call the hair or body hair you trim off your body?

Why did the metro bus stop at each railway crossing, despite no warning indicating a train was coming?

2 parabolas through 4 points

How to rename multiple files in a directory at the same time

Single word that parallels "Recent" when discussing the near future

Will the volt, ampere, ohm or other electrical units change on May 20th, 2019?

Were any of the books mentioned in this scene from the movie Hackers real?

Why did Varys remove his rings?

Developers demotivated due to working on same project for more than 2 years

Is my test coverage up to snuff?

God-Pharaoh's Statue and Finale Of Promise

Who commanded or executed this action in Game of Thrones S8E5?

Formal Definition of Dot Product

Which creature is depicted in this Xanathar's Guide illustration of a war mage?

Is the seat-belt sign activation when a pilot goes to the lavatory standard procedure?

How will the lack of ground stations affect navigation?

Why did the UK remove the 'European Union' from its passport?



Constructing query to return values from all polygons that line passes through using SpatiaLite? [closed]


Seek assistance with: SQL Server 2008 Query that takes values from a column in another table (or from a flat file)How to combine Spatialite DatabasesHow to create a spatial view when allowing multiple selection in qgis’s edit widget “value relation”?problem merging polygons based on a column value - using SpatialiteExplicitly close a OGR result object from a call to ExecuteSQLFind start of riverDump a GeoJSON FeatureCollection from Spatialite query with PythonUsing nearest neighbor query in SpatiaLite?Update query adding values from multi column case statement in QGISQuerying geometry in perimeter or square with SpatiaLite?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















I want an SQL query in Spatialite to return a list of values (Primary Key in this case, but could be any value) from all the polygons which are crossed by a line. Say, for example, a footpath passes through several fields and I want a table of the field numbers of all the fields the footpath passes through.



I've tried playing around with st_crosses, but that only returns a single result.










share|improve this question















closed as off-topic by Jochen Schwarze, PolyGeo May 4 at 20:56


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "When seeking help to debug/write/improve code always provide the desired behavior, a specific problem/error and the shortest code (as formatted text, not pictures) needed to reproduce it in the question body. Providing a clear problem statement and a code attempt helps others to help you." – Jochen Schwarze, PolyGeo
If this question can be reworded to fit the rules in the help center, please edit the question.






















    0















    I want an SQL query in Spatialite to return a list of values (Primary Key in this case, but could be any value) from all the polygons which are crossed by a line. Say, for example, a footpath passes through several fields and I want a table of the field numbers of all the fields the footpath passes through.



    I've tried playing around with st_crosses, but that only returns a single result.










    share|improve this question















    closed as off-topic by Jochen Schwarze, PolyGeo May 4 at 20:56


    This question appears to be off-topic. The users who voted to close gave this specific reason:


    • "When seeking help to debug/write/improve code always provide the desired behavior, a specific problem/error and the shortest code (as formatted text, not pictures) needed to reproduce it in the question body. Providing a clear problem statement and a code attempt helps others to help you." – Jochen Schwarze, PolyGeo
    If this question can be reworded to fit the rules in the help center, please edit the question.


















      0












      0








      0








      I want an SQL query in Spatialite to return a list of values (Primary Key in this case, but could be any value) from all the polygons which are crossed by a line. Say, for example, a footpath passes through several fields and I want a table of the field numbers of all the fields the footpath passes through.



      I've tried playing around with st_crosses, but that only returns a single result.










      share|improve this question
















      I want an SQL query in Spatialite to return a list of values (Primary Key in this case, but could be any value) from all the polygons which are crossed by a line. Say, for example, a footpath passes through several fields and I want a table of the field numbers of all the fields the footpath passes through.



      I've tried playing around with st_crosses, but that only returns a single result.







      spatialite query spatial-query






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited May 4 at 20:56









      PolyGeo

      54.3k1782251




      54.3k1782251










      asked May 4 at 7:35









      IsaacsonIsaacson

      496313




      496313




      closed as off-topic by Jochen Schwarze, PolyGeo May 4 at 20:56


      This question appears to be off-topic. The users who voted to close gave this specific reason:


      • "When seeking help to debug/write/improve code always provide the desired behavior, a specific problem/error and the shortest code (as formatted text, not pictures) needed to reproduce it in the question body. Providing a clear problem statement and a code attempt helps others to help you." – Jochen Schwarze, PolyGeo
      If this question can be reworded to fit the rules in the help center, please edit the question.







      closed as off-topic by Jochen Schwarze, PolyGeo May 4 at 20:56


      This question appears to be off-topic. The users who voted to close gave this specific reason:


      • "When seeking help to debug/write/improve code always provide the desired behavior, a specific problem/error and the shortest code (as formatted text, not pictures) needed to reproduce it in the question body. Providing a clear problem statement and a code attempt helps others to help you." – Jochen Schwarze, PolyGeo
      If this question can be reworded to fit the rules in the help center, please edit the question.




















          1 Answer
          1






          active

          oldest

          votes


















          4














          Try ST_INTERSECTS:



          select polygons.*
          from polygons, lines
          where st_intersects(polygons.geometry, lines.geometry)





          share|improve this answer































            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            4














            Try ST_INTERSECTS:



            select polygons.*
            from polygons, lines
            where st_intersects(polygons.geometry, lines.geometry)





            share|improve this answer





























              4














              Try ST_INTERSECTS:



              select polygons.*
              from polygons, lines
              where st_intersects(polygons.geometry, lines.geometry)





              share|improve this answer



























                4












                4








                4







                Try ST_INTERSECTS:



                select polygons.*
                from polygons, lines
                where st_intersects(polygons.geometry, lines.geometry)





                share|improve this answer















                Try ST_INTERSECTS:



                select polygons.*
                from polygons, lines
                where st_intersects(polygons.geometry, lines.geometry)






                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited May 6 at 6:08

























                answered May 4 at 7:50









                BERABERA

                18.3k62145




                18.3k62145













                    M,WuXIR5PtOVqrnvHQYN
                    wtrWeXvv cc9 M hLR7D,WyJh9I0E Np,U06029S,OeJLmEPrdZaalT8XJYojswzjtCyK9D

                    Popular posts from this blog

                    RemoteApp sporadic failureWindows 2008 RemoteAPP client disconnects within a matter of minutesWhat is the minimum version of RDP supported by Server 2012 RDS?How to configure a Remoteapp server to increase stabilityMicrosoft RemoteApp Active SessionRDWeb TS connection broken for some users post RemoteApp certificate changeRemote Desktop Licensing, RemoteAPPRDS 2012 R2 some users are not able to logon after changed date and time on Connection BrokersWhat happens during Remote Desktop logon, and is there any logging?After installing RDS on WinServer 2016 I still can only connect with two users?RD Connection via RDGW to Session host is not connecting

                    Vilaño, A Laracha Índice Patrimonio | Lugares e parroquias | Véxase tamén | Menú de navegación43°14′52″N 8°36′03″O / 43.24775, -8.60070

                    Cegueira Índice Epidemioloxía | Deficiencia visual | Tipos de cegueira | Principais causas de cegueira | Tratamento | Técnicas de adaptación e axudas | Vida dos cegos | Primeiros auxilios | Crenzas respecto das persoas cegas | Crenzas das persoas cegas | O neno deficiente visual | Aspectos psicolóxicos da cegueira | Notas | Véxase tamén | Menú de navegación54.054.154.436928256blindnessDicionario da Real Academia GalegaPortal das Palabras"International Standards: Visual Standards — Aspects and Ranges of Vision Loss with Emphasis on Population Surveys.""Visual impairment and blindness""Presentan un plan para previr a cegueira"o orixinalACCDV Associació Catalana de Cecs i Disminuïts Visuals - PMFTrachoma"Effect of gene therapy on visual function in Leber's congenital amaurosis"1844137110.1056/NEJMoa0802268Cans guía - os mellores amigos dos cegosArquivadoEscola de cans guía para cegos en Mortágua, PortugalArquivado"Tecnología para ciegos y deficientes visuales. Recopilación de recursos gratuitos en la Red""Colorino""‘COL.diesis’, escuchar los sonidos del color""COL.diesis: Transforming Colour into Melody and Implementing the Result in a Colour Sensor Device"o orixinal"Sistema de desarrollo de sinestesia color-sonido para invidentes utilizando un protocolo de audio""Enseñanza táctil - geometría y color. Juegos didácticos para niños ciegos y videntes""Sistema Constanz"L'ocupació laboral dels cecs a l'Estat espanyol està pràcticament equiparada a la de les persones amb visió, entrevista amb Pedro ZuritaONCE (Organización Nacional de Cegos de España)Prevención da cegueiraDescrición de deficiencias visuais (Disc@pnet)Braillín, un boneco atractivo para calquera neno, con ou sen discapacidade, que permite familiarizarse co sistema de escritura e lectura brailleAxudas Técnicas36838ID00897494007150-90057129528256DOID:1432HP:0000618D001766C10.597.751.941.162C97109C0155020