<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic QGIS python command in Databricks notebook in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/qgis-python-command-in-databricks-notebook/m-p/95651#M39139</link>
    <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to run a qgis python script in a databricks notebook. Currently, databricks doesn't recognize the qgis package.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, i'd like to run this small example :&amp;nbsp;&lt;/P&gt;&lt;P&gt;from qgis.core import *&lt;/P&gt;&lt;P&gt;# Supply path to qgis install location&lt;BR /&gt;QgsApplication.setPrefixPath("/path/to/qgis/installation", True)&lt;/P&gt;&lt;P&gt;# Create a reference to the QgsApplication. Setting the&lt;BR /&gt;# second argument to False disables the GUI.&lt;BR /&gt;qgs = QgsApplication([], False)&lt;/P&gt;&lt;P&gt;# Load providers&lt;BR /&gt;qgs.initQgis()&lt;/P&gt;&lt;P&gt;# Write your code here to load some layers, use processing&lt;BR /&gt;# algorithms, etc.&lt;/P&gt;&lt;P&gt;# Finally, exitQgis() is called to remove the&lt;BR /&gt;# provider and layer registries from memory&lt;BR /&gt;qgs.exitQgis()&lt;/P&gt;</description>
    <pubDate>Wed, 23 Oct 2024 07:06:20 GMT</pubDate>
    <dc:creator>emiliec</dc:creator>
    <dc:date>2024-10-23T07:06:20Z</dc:date>
    <item>
      <title>QGIS python command in Databricks notebook</title>
      <link>https://community.databricks.com/t5/data-engineering/qgis-python-command-in-databricks-notebook/m-p/95651#M39139</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to run a qgis python script in a databricks notebook. Currently, databricks doesn't recognize the qgis package.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, i'd like to run this small example :&amp;nbsp;&lt;/P&gt;&lt;P&gt;from qgis.core import *&lt;/P&gt;&lt;P&gt;# Supply path to qgis install location&lt;BR /&gt;QgsApplication.setPrefixPath("/path/to/qgis/installation", True)&lt;/P&gt;&lt;P&gt;# Create a reference to the QgsApplication. Setting the&lt;BR /&gt;# second argument to False disables the GUI.&lt;BR /&gt;qgs = QgsApplication([], False)&lt;/P&gt;&lt;P&gt;# Load providers&lt;BR /&gt;qgs.initQgis()&lt;/P&gt;&lt;P&gt;# Write your code here to load some layers, use processing&lt;BR /&gt;# algorithms, etc.&lt;/P&gt;&lt;P&gt;# Finally, exitQgis() is called to remove the&lt;BR /&gt;# provider and layer registries from memory&lt;BR /&gt;qgs.exitQgis()&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2024 07:06:20 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/qgis-python-command-in-databricks-notebook/m-p/95651#M39139</guid>
      <dc:creator>emiliec</dc:creator>
      <dc:date>2024-10-23T07:06:20Z</dc:date>
    </item>
    <item>
      <title>Re: QGIS python command in Databricks notebook</title>
      <link>https://community.databricks.com/t5/data-engineering/qgis-python-command-in-databricks-notebook/m-p/96996#M39391</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;QGIS is not directly usable in Scala or Spark environments as it is a standalone Geographic Information System (GIS) application, installing and using it directly within Databricks may not be straightforward due to the specific environment and dependencies required by QGIS.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;For geospatial analysis within a Scala/Spark context, you might want to consider using GeoSpark, GeoPandas, Shapely or another JVM-compatible geospatial library.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2024 14:02:13 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/qgis-python-command-in-databricks-notebook/m-p/96996#M39391</guid>
      <dc:creator>VZLA</dc:creator>
      <dc:date>2024-10-31T14:02:13Z</dc:date>
    </item>
  </channel>
</rss>

