Hi QGIS doesnt have language bindings for java so I guess you are calling qgis as a system process? The screenshot command line option is using the same (gui based) application binary as QGIS desktop - hence the possibility for the visual side effects. For a more robust solution I would suggest making a simple libqgis_core based command line app to load your maps and create an image output. There are a number of examples for python and c++ available, and the tests/src/core unit tests have additional routines that can be adopted as the basis for such a simple command line app.
Regards Tim 2008/1/16, Tolga Tanriverdi <[EMAIL PROTECTED]>: > I'm using java for my project > > -----Original Message----- > From: Tim Sutton [mailto:[EMAIL PROTECTED] > Sent: 16 Ocak 2008 Çarşamba 11:29 > To: Tolga Tanriverdi > Cc: qgis-user@lists.qgis.org > Subject: Re: [Qgis-user] gps problem > > Hi > > 2008/1/15, Tolga Tanriverdi <[EMAIL PROTECTED]>: > > > > > > > > > > Hi > > I'm new to whole qgis thing and I'm trying to develop a gis application > > with using qgis but I want to use qgis as a command line tool > > Which language are you developing with - python or c++? > > Regards > > Tim > > > > so I have created the project with qgis gui and saved it as a qgis project, > > now what I want is to send qgis a gpx file for using it's gps addon and take > > the snapshot of the project as a png file with --snapshot parameter > > however I couldnt find any way to give gpx file name as a project parameter > > does anyone know how can i do that ? > > My second question is when I called qgis with --snapshot parameter a gui of > > qgis appears for an instance is there a way to stop this? > > Thanks > > > > > > > > Tolga Tanrıverdi > > > > Aydın Yazılım ve Elektronik Sanayii A.Ş > > > > Ağ Sistem Mühendisi > > > > (0312)2101565-134 > > > > > > _______________________________________________ > > Qgis-user mailing list > > Qgis-user@lists.qgis.org > > http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-user > > > > > > > -- > Tim Sutton > QGIS Project Steering Committee Member - Release Manager > Visit http://qgis.org for a great open source GIS > openModeller Desktop Developer > Visit http://openModeller.sf.net for a great open source ecological > niche modelling tool > Home Page: http://tim.linfiniti.com > Skype: timlinux > Irc: timlinux on #qgis at freenode.net > > > Bu e-posta, mesaji alici kisminda belirtilmis olan kullanici icindir. Mesajin > alicisi siz degilseniz dogrudan veya dolayli olarak mesaji kullanmayiniz, > acmayiniz, dagitmayainiz, yazicidan dokumunu almayiniz veya herhangi bir > kismini kopyalamayiniz. Yanlislikla bu mesaj size ulasmissa lutfen, siliniz > ve tum kopyalarini yok ederek mesaji gonderene acilen haber veriniz. Bu mesaj > icerisinde belirtilenler sadece gondericinin kisisel gorusleridir. Bu > gorusler Aydın Yazılım ve Elektronik Sanayii A.Ş. (AYESAŞ)'ın goruslerini > yansitmadigi gibi, AYESAŞ'ı baglayici da degildir. Bu mesajin iceriginde ya > da eklerinde yer alan bilgilerin dogrulugu, butunlugu ve guncelligi AYESAŞ > tarafindan garanti edilmemektedir ve bilinen viruslere karsi kontrolleri > yapilmis olarak yollanan mesajin sitenizde yaratabilecegi zararlardan AYESAŞ > sorumlu tutulamaz. > > This email is intended solely for the use of the individual or entity to whom > it is adressed. If you are not the intended adressee of this message, you > should not use, open, disseminate, distrubute, print or copy this e-mail. If > you have received this email in error. please delete it from your system and > notify the sender immediately. Aydın Yazılım ve Elektronik Sanayii A.Ş. > (AYESAŞ) does not accept any legal responsibility whatsoever for the contents > of this message. Any opinions contained in this message are those of the > author and are not given or endorsed by the AYESAŞ. AYESAŞ does not warrant > the accuracy, integrity and currency of the information transmitted with this > message. This message has been detected for all known computer viruses thence > AYESAŞ is not liable for the occurrence of any system corruption caused by > this message. > -- Tim Sutton QGIS Project Steering Committee Member - Release Manager Visit http://qgis.org for a great open source GIS openModeller Desktop Developer Visit http://openModeller.sf.net for a great open source ecological niche modelling tool Home Page: http://tim.linfiniti.com Skype: timlinux Irc: timlinux on #qgis at freenode.net _______________________________________________ Qgis-user mailing list Qgis-user@lists.qgis.org http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-user