QGIS Distance Matrix execution fails Announcing the arrival of Valued Associate #679: Cesar...

Can gravitational waves pass through a black hole?

What is the numbering system used for the DSN dishes?

What helicopter has the most rotor blades?

Is it appropriate to mention a relatable company blog post when you're asked about the company?

Arriving in Atlanta (after US Preclearance in Dublin). Will I go through TSA security in Atlanta to transfer to a connecting flight?

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

Why doesn't the university give past final exams' answers?

How did Elite on the NES work?

SQL Server placement of master database files vs resource database files

Is it OK if I do not take the receipt in Germany?

TV series episode where humans nuke aliens before decrypting their message that states they come in peace

What is /etc/mtab in Linux?

Will I lose my paid in full property

Coin Game with infinite paradox

What to do with someone that cheated their way though university and a PhD program?

How would it unbalance gameplay to rule that Weapon Master allows for picking a fighting style?

Like totally amazing interchangeable sister outfit accessory swapping or whatever

Are there existing rules/lore for MTG planeswalkers?

What's called a person who works as someone who puts products on shelves in stores?

Why does Java have support for time zone offsets with seconds precision?

What do you call an IPA symbol that lacks a name (e.g. ɲ)?

Why is water being consumed when my shutoff valve is closed?

Bright yellow or light yellow?

Is there a way to fake a method response using Mock or Stubs?



QGIS Distance Matrix execution fails



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30 pm US/Eastern)Clip line vector by shape fails - error 1005QGIS select by location failingSelect by location QGIS and PostGIS. Exception: unknownCount points in polygon tool keeps failing in QGISVector Geoprocesing Intersection not working in QGIS 3.0?Error running r.thin in QGISNo Voronoi polygons createdNameError when running script QGIS Python 3Grass algorithm r.neighbors doesn't work in Qgis 3.4. How can I solve this?Error whilsted using QGIS 3.4.4 r.series batch processing





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







0















I am trying to use the distance matrix to measure the distance between a crime (input ID) to the closest subway entrance (target layer). The problem is that sometimes the matrix comes out with results, sometimes it doesn't and instead, the algorithm fails.



I get this error in the distance matrix log




Traceback (most recent call last): File
"C:/PROGRA~1/QGIS3~1.0/apps/qgis/./python/pluginsprocessingalgsqgisPointDistance.py", line 123, in processAlgorithm matType, nPoints, feedback) File
"C:/PROGRA~1/QGIS3~1.0/apps/qgis/./python/pluginsprocessingalgsqgisPointDistance.py", line 155, in linearMatrix fields, out_wkb, source.sourceCrs())
Exception: unknown



Execution failed after 1.39 seconds



Loading resulting layers Algorithm 'Distance matrix' finished











share|improve this question
















bumped to the homepage by Community 2 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
















  • Do your layers have the same crs?

    – firefly-orange
    Apr 9 '18 at 9:01











  • Yes, both layers are set to NAD83 and they both show up on the map

    – Matt Javier
    Apr 10 '18 at 12:08











  • Got a similar issue Traceback (most recent call last): File "C:/PROGRA~1/QGIS3~1.2/apps/qgis/./python/pluginsprocessingalgsqgisPointDistance.py", line 135, in processAlgorithm matType, nPoints, feedback) File "C:/PROGRA~1/QGIS3~1.2/apps/qgis/./python/pluginsprocessingalgsqgisPointDistance.py", line 177, in linearMatrix index = QgsSpatialIndex(target_source.getFeatures(QgsFeatureRequest().setSubsetOfAttributes([]).setDestinationCrs(source.sourceCrs(), context.transformContext())), feedback) Exception: unknown Execution failed after 5.16 seconds

    – dexgecko
    Sep 28 '18 at 20:37


















0















I am trying to use the distance matrix to measure the distance between a crime (input ID) to the closest subway entrance (target layer). The problem is that sometimes the matrix comes out with results, sometimes it doesn't and instead, the algorithm fails.



I get this error in the distance matrix log




Traceback (most recent call last): File
"C:/PROGRA~1/QGIS3~1.0/apps/qgis/./python/pluginsprocessingalgsqgisPointDistance.py", line 123, in processAlgorithm matType, nPoints, feedback) File
"C:/PROGRA~1/QGIS3~1.0/apps/qgis/./python/pluginsprocessingalgsqgisPointDistance.py", line 155, in linearMatrix fields, out_wkb, source.sourceCrs())
Exception: unknown



Execution failed after 1.39 seconds



Loading resulting layers Algorithm 'Distance matrix' finished











share|improve this question
















bumped to the homepage by Community 2 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
















  • Do your layers have the same crs?

    – firefly-orange
    Apr 9 '18 at 9:01











  • Yes, both layers are set to NAD83 and they both show up on the map

    – Matt Javier
    Apr 10 '18 at 12:08











  • Got a similar issue Traceback (most recent call last): File "C:/PROGRA~1/QGIS3~1.2/apps/qgis/./python/pluginsprocessingalgsqgisPointDistance.py", line 135, in processAlgorithm matType, nPoints, feedback) File "C:/PROGRA~1/QGIS3~1.2/apps/qgis/./python/pluginsprocessingalgsqgisPointDistance.py", line 177, in linearMatrix index = QgsSpatialIndex(target_source.getFeatures(QgsFeatureRequest().setSubsetOfAttributes([]).setDestinationCrs(source.sourceCrs(), context.transformContext())), feedback) Exception: unknown Execution failed after 5.16 seconds

    – dexgecko
    Sep 28 '18 at 20:37














0












0








0








I am trying to use the distance matrix to measure the distance between a crime (input ID) to the closest subway entrance (target layer). The problem is that sometimes the matrix comes out with results, sometimes it doesn't and instead, the algorithm fails.



I get this error in the distance matrix log




Traceback (most recent call last): File
"C:/PROGRA~1/QGIS3~1.0/apps/qgis/./python/pluginsprocessingalgsqgisPointDistance.py", line 123, in processAlgorithm matType, nPoints, feedback) File
"C:/PROGRA~1/QGIS3~1.0/apps/qgis/./python/pluginsprocessingalgsqgisPointDistance.py", line 155, in linearMatrix fields, out_wkb, source.sourceCrs())
Exception: unknown



Execution failed after 1.39 seconds



Loading resulting layers Algorithm 'Distance matrix' finished











share|improve this question
















I am trying to use the distance matrix to measure the distance between a crime (input ID) to the closest subway entrance (target layer). The problem is that sometimes the matrix comes out with results, sometimes it doesn't and instead, the algorithm fails.



I get this error in the distance matrix log




Traceback (most recent call last): File
"C:/PROGRA~1/QGIS3~1.0/apps/qgis/./python/pluginsprocessingalgsqgisPointDistance.py", line 123, in processAlgorithm matType, nPoints, feedback) File
"C:/PROGRA~1/QGIS3~1.0/apps/qgis/./python/pluginsprocessingalgsqgisPointDistance.py", line 155, in linearMatrix fields, out_wkb, source.sourceCrs())
Exception: unknown



Execution failed after 1.39 seconds



Loading resulting layers Algorithm 'Distance matrix' finished








qgis distance-matrix






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Apr 7 '18 at 22:57









Moh

1,3901314




1,3901314










asked Apr 7 '18 at 21:58









Matt JavierMatt Javier

1




1





bumped to the homepage by Community 2 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







bumped to the homepage by Community 2 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • Do your layers have the same crs?

    – firefly-orange
    Apr 9 '18 at 9:01











  • Yes, both layers are set to NAD83 and they both show up on the map

    – Matt Javier
    Apr 10 '18 at 12:08











  • Got a similar issue Traceback (most recent call last): File "C:/PROGRA~1/QGIS3~1.2/apps/qgis/./python/pluginsprocessingalgsqgisPointDistance.py", line 135, in processAlgorithm matType, nPoints, feedback) File "C:/PROGRA~1/QGIS3~1.2/apps/qgis/./python/pluginsprocessingalgsqgisPointDistance.py", line 177, in linearMatrix index = QgsSpatialIndex(target_source.getFeatures(QgsFeatureRequest().setSubsetOfAttributes([]).setDestinationCrs(source.sourceCrs(), context.transformContext())), feedback) Exception: unknown Execution failed after 5.16 seconds

    – dexgecko
    Sep 28 '18 at 20:37



















  • Do your layers have the same crs?

    – firefly-orange
    Apr 9 '18 at 9:01











  • Yes, both layers are set to NAD83 and they both show up on the map

    – Matt Javier
    Apr 10 '18 at 12:08











  • Got a similar issue Traceback (most recent call last): File "C:/PROGRA~1/QGIS3~1.2/apps/qgis/./python/pluginsprocessingalgsqgisPointDistance.py", line 135, in processAlgorithm matType, nPoints, feedback) File "C:/PROGRA~1/QGIS3~1.2/apps/qgis/./python/pluginsprocessingalgsqgisPointDistance.py", line 177, in linearMatrix index = QgsSpatialIndex(target_source.getFeatures(QgsFeatureRequest().setSubsetOfAttributes([]).setDestinationCrs(source.sourceCrs(), context.transformContext())), feedback) Exception: unknown Execution failed after 5.16 seconds

    – dexgecko
    Sep 28 '18 at 20:37

















Do your layers have the same crs?

– firefly-orange
Apr 9 '18 at 9:01





Do your layers have the same crs?

– firefly-orange
Apr 9 '18 at 9:01













Yes, both layers are set to NAD83 and they both show up on the map

– Matt Javier
Apr 10 '18 at 12:08





Yes, both layers are set to NAD83 and they both show up on the map

– Matt Javier
Apr 10 '18 at 12:08













Got a similar issue Traceback (most recent call last): File "C:/PROGRA~1/QGIS3~1.2/apps/qgis/./python/pluginsprocessingalgsqgisPointDistance.py", line 135, in processAlgorithm matType, nPoints, feedback) File "C:/PROGRA~1/QGIS3~1.2/apps/qgis/./python/pluginsprocessingalgsqgisPointDistance.py", line 177, in linearMatrix index = QgsSpatialIndex(target_source.getFeatures(QgsFeatureRequest().setSubsetOfAttributes([]).setDestinationCrs(source.sourceCrs(), context.transformContext())), feedback) Exception: unknown Execution failed after 5.16 seconds

– dexgecko
Sep 28 '18 at 20:37





Got a similar issue Traceback (most recent call last): File "C:/PROGRA~1/QGIS3~1.2/apps/qgis/./python/pluginsprocessingalgsqgisPointDistance.py", line 135, in processAlgorithm matType, nPoints, feedback) File "C:/PROGRA~1/QGIS3~1.2/apps/qgis/./python/pluginsprocessingalgsqgisPointDistance.py", line 177, in linearMatrix index = QgsSpatialIndex(target_source.getFeatures(QgsFeatureRequest().setSubsetOfAttributes([]).setDestinationCrs(source.sourceCrs(), context.transformContext())), feedback) Exception: unknown Execution failed after 5.16 seconds

– dexgecko
Sep 28 '18 at 20:37










1 Answer
1






active

oldest

votes


















0














The error code is not helpful for this alg.



A way that works for me is to ensure that both layer are in the exact same CRS (preferably projected) and to ensure that the output layer is not used by any process.



Trying to replace a layer that is already in use will cause this error, in that case simply remove it from the projet and it should work.






share|improve this answer
























    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%2f278609%2fqgis-distance-matrix-execution-fails%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









    0














    The error code is not helpful for this alg.



    A way that works for me is to ensure that both layer are in the exact same CRS (preferably projected) and to ensure that the output layer is not used by any process.



    Trying to replace a layer that is already in use will cause this error, in that case simply remove it from the projet and it should work.






    share|improve this answer




























      0














      The error code is not helpful for this alg.



      A way that works for me is to ensure that both layer are in the exact same CRS (preferably projected) and to ensure that the output layer is not used by any process.



      Trying to replace a layer that is already in use will cause this error, in that case simply remove it from the projet and it should work.






      share|improve this answer


























        0












        0








        0







        The error code is not helpful for this alg.



        A way that works for me is to ensure that both layer are in the exact same CRS (preferably projected) and to ensure that the output layer is not used by any process.



        Trying to replace a layer that is already in use will cause this error, in that case simply remove it from the projet and it should work.






        share|improve this answer













        The error code is not helpful for this alg.



        A way that works for me is to ensure that both layer are in the exact same CRS (preferably projected) and to ensure that the output layer is not used by any process.



        Trying to replace a layer that is already in use will cause this error, in that case simply remove it from the projet and it should work.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Oct 14 '18 at 12:58









        Al rlAl rl

        133




        133






























            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%2f278609%2fqgis-distance-matrix-execution-fails%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 Содержание Параметры шины | Стандартизация |...