PyQGIS: how to remove crs popup box when displaying vector layer

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP



PyQGIS: how to remove crs popup box when displaying vector layer



I am trying to import a csv file and display it on a map. however, a crs pop up box keeps displaying everytime when trying to run QGSVectorLayer.



the code is as below.


InFlnm='exportvesseltrackhourly.csv'
InDrPth='C:/PyQGIS/'
InDrPth='C:/PyQGIS/'
InFlPth="file:///"+InDrPth+InFlnm
uri = InFlPth+"?crs=epsg:32365&delimiter=%s&xField=%s&yField=%s" %",","LON","LAT")
vlayer = QgsVectorLayer(uri, "test", "delimitedtext")
QgsProject.instance().addMapLayer(vlayer)









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

make 2 or more post in bootsrap

Store custom data using WC_Cart add_to_cart() method in Woocommerce 3

Firebase Auth - with Email and Password - Check user already registered