Problem with the ST_Contains function in PostGIS on the comparison query Unicorn Meta Zoo #1:...

What's the difference between using dependency injection with a container and using a service locator?

Will I lose my paid in full property

Did the Roman Empire have penal colonies?

Do I need to protect SFP ports and optics from dust/contaminants? If so, how?

"Whatever a Russian does, they end up making the Kalashnikov gun"? Are there any similar proverbs in English?

Putting Ant-Man on house arrest

Are all CP/M-80 implementations binary compatible?

With indentation set to `0em`, when using a line break, there is still an indentation of a size of a space

Mistake in years of experience in resume?

std::is_constructible on incomplete types

Would reducing the reference voltage of an ADC have any effect on accuracy?

Co-worker works way more than he should

A Paper Record is What I Hamper

A strange hotel

How can I wire a 9-position switch so that each position turns on one more LED than the one before?

What is the best way to deal with NPC-NPC combat?

Is it acceptable to use working hours to read general interest books?

Does Feeblemind produce an ongoing magical effect that can be dispelled?

Why does the Cisco show run command not show the full version, while the show version command does?

Protagonist's race is hidden - should I reveal it?

How would I use different systems of magic when they are capable of the same effects?

Bayes factor vs P value

What *exactly* is electrical current, voltage, and resistance?

How to open locks without disable device?



Problem with the ST_Contains function in PostGIS on the comparison query



Unicorn Meta Zoo #1: Why another podcast?
Announcing the arrival of Valued Associate #679: Cesar Manaraspatial query st_contains postgisPostGIS ST_Contains Function ErrorPostGIS ST_Contains query returns nullProblem with result of query in PostGISProblem PostGIS Spatial Query ST_Contains ST_Disjoint ST_IntersectsCan't import shapefile to PostGISLoading raster in postgis via raster2pgsqlpostgis ST_Contains with ST_Buffer performance issuespsycopg2 : Query Postgis FunctionRunning Query of pgRouting and PostGIS - dijkstra_sp_delta()?





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







0















I want to check if a point is on a polygon or not with this query:



SELECT ST_Contains ( '0103000000010000001400000011FF156A9E352541DE2D18CE2EDF1641DA40D5EDA53425414BFB34C40DE116410C49814A47342541E03EC0B0AEE1164194440E3141342541638E57EDB7E11641E2B88DC4533525416A9861CD8FE4164182375DD534362541E671078BE8E61641EC780186613625419003FF582BE716411A0222D26536254174E4D7CB1DE71641195A908B3A362541D73F1E1BDDE61641DB6FA22766352541A38CA432A6E41641C98F7B295A3525416FB5DA2F86E4164135573DAE193525412473EC34DBE31641265EE823E73425415B50633155E31641458741D34B3425411ECF425BB9E1164109AF25A1AA342541827D572618E11641230D54A315372541ADA50DFF6EDC164170CF51B328372541D967C1404ADC16415CF9C9F5243725411AF9DD043EDC1641530190A4173625412453692245DE164111FF156A9E352541DE2D18CE2EDF1641' '0101000000B1DE9305D01C2541FB428F9E6C211741') I res


Normally he must return true or false as the case but give the error:



Warning: pg_query (): Query failed: ERROR: function st_contains (unknown, unknown) is not unique LINE 1: SELECT ST_Contains ('0103000000010000001400000011FF156A9E3525 ... ^ HINT: cast in C:  xampp  htdocs  dashboard  project_na_convertire_dxf  new.php on line 116


Can anyone help me with a nice advice?



Thank you!










share|improve this question





























    0















    I want to check if a point is on a polygon or not with this query:



    SELECT ST_Contains ( '0103000000010000001400000011FF156A9E352541DE2D18CE2EDF1641DA40D5EDA53425414BFB34C40DE116410C49814A47342541E03EC0B0AEE1164194440E3141342541638E57EDB7E11641E2B88DC4533525416A9861CD8FE4164182375DD534362541E671078BE8E61641EC780186613625419003FF582BE716411A0222D26536254174E4D7CB1DE71641195A908B3A362541D73F1E1BDDE61641DB6FA22766352541A38CA432A6E41641C98F7B295A3525416FB5DA2F86E4164135573DAE193525412473EC34DBE31641265EE823E73425415B50633155E31641458741D34B3425411ECF425BB9E1164109AF25A1AA342541827D572618E11641230D54A315372541ADA50DFF6EDC164170CF51B328372541D967C1404ADC16415CF9C9F5243725411AF9DD043EDC1641530190A4173625412453692245DE164111FF156A9E352541DE2D18CE2EDF1641' '0101000000B1DE9305D01C2541FB428F9E6C211741') I res


    Normally he must return true or false as the case but give the error:



    Warning: pg_query (): Query failed: ERROR: function st_contains (unknown, unknown) is not unique LINE 1: SELECT ST_Contains ('0103000000010000001400000011FF156A9E3525 ... ^ HINT: cast in C:  xampp  htdocs  dashboard  project_na_convertire_dxf  new.php on line 116


    Can anyone help me with a nice advice?



    Thank you!










    share|improve this question

























      0












      0








      0








      I want to check if a point is on a polygon or not with this query:



      SELECT ST_Contains ( '0103000000010000001400000011FF156A9E352541DE2D18CE2EDF1641DA40D5EDA53425414BFB34C40DE116410C49814A47342541E03EC0B0AEE1164194440E3141342541638E57EDB7E11641E2B88DC4533525416A9861CD8FE4164182375DD534362541E671078BE8E61641EC780186613625419003FF582BE716411A0222D26536254174E4D7CB1DE71641195A908B3A362541D73F1E1BDDE61641DB6FA22766352541A38CA432A6E41641C98F7B295A3525416FB5DA2F86E4164135573DAE193525412473EC34DBE31641265EE823E73425415B50633155E31641458741D34B3425411ECF425BB9E1164109AF25A1AA342541827D572618E11641230D54A315372541ADA50DFF6EDC164170CF51B328372541D967C1404ADC16415CF9C9F5243725411AF9DD043EDC1641530190A4173625412453692245DE164111FF156A9E352541DE2D18CE2EDF1641' '0101000000B1DE9305D01C2541FB428F9E6C211741') I res


      Normally he must return true or false as the case but give the error:



      Warning: pg_query (): Query failed: ERROR: function st_contains (unknown, unknown) is not unique LINE 1: SELECT ST_Contains ('0103000000010000001400000011FF156A9E3525 ... ^ HINT: cast in C:  xampp  htdocs  dashboard  project_na_convertire_dxf  new.php on line 116


      Can anyone help me with a nice advice?



      Thank you!










      share|improve this question














      I want to check if a point is on a polygon or not with this query:



      SELECT ST_Contains ( '0103000000010000001400000011FF156A9E352541DE2D18CE2EDF1641DA40D5EDA53425414BFB34C40DE116410C49814A47342541E03EC0B0AEE1164194440E3141342541638E57EDB7E11641E2B88DC4533525416A9861CD8FE4164182375DD534362541E671078BE8E61641EC780186613625419003FF582BE716411A0222D26536254174E4D7CB1DE71641195A908B3A362541D73F1E1BDDE61641DB6FA22766352541A38CA432A6E41641C98F7B295A3525416FB5DA2F86E4164135573DAE193525412473EC34DBE31641265EE823E73425415B50633155E31641458741D34B3425411ECF425BB9E1164109AF25A1AA342541827D572618E11641230D54A315372541ADA50DFF6EDC164170CF51B328372541D967C1404ADC16415CF9C9F5243725411AF9DD043EDC1641530190A4173625412453692245DE164111FF156A9E352541DE2D18CE2EDF1641' '0101000000B1DE9305D01C2541FB428F9E6C211741') I res


      Normally he must return true or false as the case but give the error:



      Warning: pg_query (): Query failed: ERROR: function st_contains (unknown, unknown) is not unique LINE 1: SELECT ST_Contains ('0103000000010000001400000011FF156A9E3525 ... ^ HINT: cast in C:  xampp  htdocs  dashboard  project_na_convertire_dxf  new.php on line 116


      Can anyone help me with a nice advice?



      Thank you!







      postgis






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 10 mins ago









      CoderCoder42CoderCoder42

      324




      324






















          1 Answer
          1






          active

          oldest

          votes


















          1














          You should tell PostGreSQL those 2 values are geometries, because it doesn't know which type they are. They could just as wel be texts.



          You also missed a comma:



          If you use:



          SELECT ST_Contains ( '0103000000010000001400000011FF156A9E352541DE2D18CE2EDF1641DA40D5EDA53425414BFB34C40DE116410C49814A47342541E03EC0B0AEE1164194440E3141342541638E57EDB7E11641E2B88DC4533525416A9861CD8FE4164182375DD534362541E671078BE8E61641EC780186613625419003FF582BE716411A0222D26536254174E4D7CB1DE71641195A908B3A362541D73F1E1BDDE61641DB6FA22766352541A38CA432A6E41641C98F7B295A3525416FB5DA2F86E4164135573DAE193525412473EC34DBE31641265EE823E73425415B50633155E31641458741D34B3425411ECF425BB9E1164109AF25A1AA342541827D572618E11641230D54A315372541ADA50DFF6EDC164170CF51B328372541D967C1404ADC16415CF9C9F5243725411AF9DD043EDC1641530190A4173625412453692245DE164111FF156A9E352541DE2D18CE2EDF1641'::Geometry, '0101000000B1DE9305D01C2541FB428F9E6C211741'::Geometry) 


          It gives false as the result.





          share
























            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%2f320799%2fproblem-with-the-st-contains-function-in-postgis-on-the-comparison-query%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            1














            You should tell PostGreSQL those 2 values are geometries, because it doesn't know which type they are. They could just as wel be texts.



            You also missed a comma:



            If you use:



            SELECT ST_Contains ( '0103000000010000001400000011FF156A9E352541DE2D18CE2EDF1641DA40D5EDA53425414BFB34C40DE116410C49814A47342541E03EC0B0AEE1164194440E3141342541638E57EDB7E11641E2B88DC4533525416A9861CD8FE4164182375DD534362541E671078BE8E61641EC780186613625419003FF582BE716411A0222D26536254174E4D7CB1DE71641195A908B3A362541D73F1E1BDDE61641DB6FA22766352541A38CA432A6E41641C98F7B295A3525416FB5DA2F86E4164135573DAE193525412473EC34DBE31641265EE823E73425415B50633155E31641458741D34B3425411ECF425BB9E1164109AF25A1AA342541827D572618E11641230D54A315372541ADA50DFF6EDC164170CF51B328372541D967C1404ADC16415CF9C9F5243725411AF9DD043EDC1641530190A4173625412453692245DE164111FF156A9E352541DE2D18CE2EDF1641'::Geometry, '0101000000B1DE9305D01C2541FB428F9E6C211741'::Geometry) 


            It gives false as the result.





            share




























              1














              You should tell PostGreSQL those 2 values are geometries, because it doesn't know which type they are. They could just as wel be texts.



              You also missed a comma:



              If you use:



              SELECT ST_Contains ( '0103000000010000001400000011FF156A9E352541DE2D18CE2EDF1641DA40D5EDA53425414BFB34C40DE116410C49814A47342541E03EC0B0AEE1164194440E3141342541638E57EDB7E11641E2B88DC4533525416A9861CD8FE4164182375DD534362541E671078BE8E61641EC780186613625419003FF582BE716411A0222D26536254174E4D7CB1DE71641195A908B3A362541D73F1E1BDDE61641DB6FA22766352541A38CA432A6E41641C98F7B295A3525416FB5DA2F86E4164135573DAE193525412473EC34DBE31641265EE823E73425415B50633155E31641458741D34B3425411ECF425BB9E1164109AF25A1AA342541827D572618E11641230D54A315372541ADA50DFF6EDC164170CF51B328372541D967C1404ADC16415CF9C9F5243725411AF9DD043EDC1641530190A4173625412453692245DE164111FF156A9E352541DE2D18CE2EDF1641'::Geometry, '0101000000B1DE9305D01C2541FB428F9E6C211741'::Geometry) 


              It gives false as the result.





              share


























                1












                1








                1







                You should tell PostGreSQL those 2 values are geometries, because it doesn't know which type they are. They could just as wel be texts.



                You also missed a comma:



                If you use:



                SELECT ST_Contains ( '0103000000010000001400000011FF156A9E352541DE2D18CE2EDF1641DA40D5EDA53425414BFB34C40DE116410C49814A47342541E03EC0B0AEE1164194440E3141342541638E57EDB7E11641E2B88DC4533525416A9861CD8FE4164182375DD534362541E671078BE8E61641EC780186613625419003FF582BE716411A0222D26536254174E4D7CB1DE71641195A908B3A362541D73F1E1BDDE61641DB6FA22766352541A38CA432A6E41641C98F7B295A3525416FB5DA2F86E4164135573DAE193525412473EC34DBE31641265EE823E73425415B50633155E31641458741D34B3425411ECF425BB9E1164109AF25A1AA342541827D572618E11641230D54A315372541ADA50DFF6EDC164170CF51B328372541D967C1404ADC16415CF9C9F5243725411AF9DD043EDC1641530190A4173625412453692245DE164111FF156A9E352541DE2D18CE2EDF1641'::Geometry, '0101000000B1DE9305D01C2541FB428F9E6C211741'::Geometry) 


                It gives false as the result.





                share













                You should tell PostGreSQL those 2 values are geometries, because it doesn't know which type they are. They could just as wel be texts.



                You also missed a comma:



                If you use:



                SELECT ST_Contains ( '0103000000010000001400000011FF156A9E352541DE2D18CE2EDF1641DA40D5EDA53425414BFB34C40DE116410C49814A47342541E03EC0B0AEE1164194440E3141342541638E57EDB7E11641E2B88DC4533525416A9861CD8FE4164182375DD534362541E671078BE8E61641EC780186613625419003FF582BE716411A0222D26536254174E4D7CB1DE71641195A908B3A362541D73F1E1BDDE61641DB6FA22766352541A38CA432A6E41641C98F7B295A3525416FB5DA2F86E4164135573DAE193525412473EC34DBE31641265EE823E73425415B50633155E31641458741D34B3425411ECF425BB9E1164109AF25A1AA342541827D572618E11641230D54A315372541ADA50DFF6EDC164170CF51B328372541D967C1404ADC16415CF9C9F5243725411AF9DD043EDC1641530190A4173625412453692245DE164111FF156A9E352541DE2D18CE2EDF1641'::Geometry, '0101000000B1DE9305D01C2541FB428F9E6C211741'::Geometry) 


                It gives false as the result.






                share











                share


                share










                answered 4 mins ago









                Michel StuytsMichel Stuyts

                1,228915




                1,228915






























                    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%2f320799%2fproblem-with-the-st-contains-function-in-postgis-on-the-comparison-query%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 Содержание Параметры шины | Стандартизация |...