Re: [Qgis-developer] Opening a Shape file with out any browsing

2013-01-22 Thread Ian Packham
Dear D Pardhu.

You should be able to find your answer to these question(s) in the Python
cookbook:

http://qgis.org/pyqgis-cookbook/

In particular the Loading Vector Layers chapter (OGR library):

http://qgis.org/pyqgis-cookbook/loadlayer.html

and maybe the Reading and Storing Settings chapter for saving or loading
project settings (depending on what you want to do...):

http://qgis.org/pyqgis-cookbook/settings.html

Regards

Ian



PARDHU D wrote
 Can anyone please send me the code for QGIS project (saved by the user) or
 What is the code for QGIS when saving as a project. I just want 
 to know the code for shape file (.shp file) in the QGIS project. 
 Mainly I want code for adding shape file without any browsing. Can any 
 one please send me a simple program for opening a shape file without 
 browsing.





--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/Opening-a-Shape-file-with-out-any-browsing-tp5028615p5028956.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Opening a Shape file with out any browsing

2013-01-21 Thread Michael Röcke
I'm not sure what you mean.
What kind of code do you need ... a simple python plugin?
What do want to do? Saving the actual (opened) user project or adding a
shapefile as a layer?
Please give some more information and maybe someone will answer you.



--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/Opening-a-Shape-file-with-out-any-browsing-tp5028615p5028732.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Opening a Shape file with out any browsing

2013-01-21 Thread Alister Hood
 Date: Mon, 21 Jan 2013 14:07:23 +0800 (SGT)
 From: PARDHU D dpardhu...@yahoo.in
 To: Qgis-developer@lists.osgeo.org Qgis-developer@lists.osgeo.org
 Subject: [Qgis-developer] Opening a Shape file with out any browsing
 Message-ID:
 1358748443.58916.yahoomail...@web190501.mail.sg3.yahoo.com
 Content-Type: text/plain; charset=utf-8
 
 Hi to all,
 
 Can anyone please send me the code for QGIS project (saved by the user) or 
 What is the code for QGIS when saving as a project. I just want
 to know the code for shape file (.shp file) in the QGIS project.
 Mainly I want code for adding shape file without any browsing. Can any
 one please send me a simple program for opening a shape file without
 browsing.
 
 Regards,
 D Pardhu.

It is unclear whether you want to know about adding layers and saving project 
files programmatically, or about what information is saved in the project file 
for the layer.
If you want to know about the latter, just save a project file then open it 
with a text editor to see.

Alister
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


[Qgis-developer] Opening a Shape file with out any browsing

2013-01-20 Thread PARDHU D
Hi to all,

Can anyone please send me the code for QGIS project (saved by the user) or What 
is the code for QGIS when saving as a project. I just want 
to know the code for shape file (.shp file) in the QGIS project. 
Mainly I want code for adding shape file without any browsing. Can any 
one please send me a simple program for opening a shape file without 
browsing.

Regards,
D Pardhu.___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer