Re: [Qgis-developer] Problems with Atlas and Map dimensions on composer using Python

2013-06-25 Thread Stott James
Hi Vincent,

Done. 

http://hub.qgis.org/issues/8154

Thanks,

James

-Opprinnelig melding-
Fra: Vincent Picavet [mailto:vincent...@oslandia.com] 
Sendt: 24. juni 2013 16:55
Til: qgis-developer@lists.osgeo.org
Kopi: Stott James
Emne: Re: [Qgis-developer] Problems with Atlas and Map dimensions on composer 
using Python

Hello James,

Could you open a ticket for that problem on QGIS bugtracker, and attach your 
files there ?
Thanks,
Vincent

Le lundi 24 juin 2013 16:44:37, Stott James a écrit :
 Hi all,
 
 Is anyone else having problems with using atlas with python?
 
 I am writing some python code that uses the Atlas functionality in 
 master to create a PDF / jpg for each of my 5000 records.
 
 I can produce a jpg/pdf for each feature, however the composerMap 
 object does not stay the same size.
 
 I found this bug report which describes the issue. This report is 
 listed as
 fixed:
 
 http://hub.qgis.org/issues/6956
 
 I have set the following two lines in my code:
 
 myAtlas.setFixedScale( False )
 myAtlas.setMargin(0.1)
 
 If I set this up from within QGIS, it works perfectly. It is only 
 through Python I have problems.
 
 Here are the example exported jpgs:
 
 Generated inside QGIS GUI
 
 https://docs.google.com/file/d/0B6r5nAOdEBZrbFk0UUdxOVdTRVk/edit?usp=s
 harin
 g
 
 Generated from python
 
 https://docs.google.com/file/d/0B6r5nAOdEBZrZVJmWlpBb1c4Q2M/edit?usp=s
 harin
 g
 
 I have also included a stripped down version of my code, along with a 
 sample shapefile (this isn't the data I am planning to use it with, 
 but it doesn't work with either the sample or the real data).
 
 https://docs.google.com/file/d/0B6r5nAOdEBZrRUpzZm81cU1pUkk/edit?usp=s
 harin
 g
 
 Using master, updated today from OsGeo4W.
 
 Many thanks,
 
 James Stott
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Problems with Atlas and Map dimensions on composer using Python

2013-06-24 Thread Vincent Picavet
Hello James,

Could you open a ticket for that problem on QGIS bugtracker, and attach your 
files there ?
Thanks,
Vincent

Le lundi 24 juin 2013 16:44:37, Stott James a écrit :
 Hi all,
 
 Is anyone else having problems with using atlas with python?
 
 I am writing some python code that uses the Atlas functionality in master
 to create a PDF / jpg for each of my 5000 records.
 
 I can produce a jpg/pdf for each feature, however the composerMap object
 does not stay the same size.
 
 I found this bug report which describes the issue. This report is listed as
 fixed:
 
 http://hub.qgis.org/issues/6956
 
 I have set the following two lines in my code:
 
 myAtlas.setFixedScale( False )
 myAtlas.setMargin(0.1)
 
 If I set this up from within QGIS, it works perfectly. It is only through
 Python I have problems.
 
 Here are the example exported jpgs:
 
 Generated inside QGIS GUI
 
 https://docs.google.com/file/d/0B6r5nAOdEBZrbFk0UUdxOVdTRVk/edit?usp=sharin
 g
 
 Generated from python
 
 https://docs.google.com/file/d/0B6r5nAOdEBZrZVJmWlpBb1c4Q2M/edit?usp=sharin
 g
 
 I have also included a stripped down version of my code, along with a
 sample shapefile (this isn't the data I am planning to use it with, but it
 doesn't work with either the sample or the real data).
 
 https://docs.google.com/file/d/0B6r5nAOdEBZrRUpzZm81cU1pUkk/edit?usp=sharin
 g
 
 Using master, updated today from OsGeo4W.
 
 Many thanks,
 
 James Stott
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


[Qgis-developer] Problems with Atlas and Map dimensions on composer using Python

2013-06-24 Thread Stott James
Hi all,

Is anyone else having problems with using atlas with python?

I am writing some python code that uses the Atlas functionality in master to 
create a PDF / jpg for each of my 5000 records.

I can produce a jpg/pdf for each feature, however the composerMap object does 
not stay the same size.

I found this bug report which describes the issue. This report is listed as 
fixed:

http://hub.qgis.org/issues/6956

I have set the following two lines in my code:

myAtlas.setFixedScale( False )
myAtlas.setMargin(0.1)

If I set this up from within QGIS, it works perfectly. It is only through 
Python I have problems.

Here are the example exported jpgs:

Generated inside QGIS GUI

https://docs.google.com/file/d/0B6r5nAOdEBZrbFk0UUdxOVdTRVk/edit?usp=sharing

Generated from python

https://docs.google.com/file/d/0B6r5nAOdEBZrZVJmWlpBb1c4Q2M/edit?usp=sharing

I have also included a stripped down version of my code, along with a sample 
shapefile (this isn't the data I am planning to use it with, but it doesn't 
work with either the sample or the real data).

https://docs.google.com/file/d/0B6r5nAOdEBZrRUpzZm81cU1pUkk/edit?usp=sharing

Using master, updated today from OsGeo4W.

Many thanks,

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


Re: [Qgis-developer] Problems with Atlas and Map dimensions on composer using Python

2013-06-24 Thread Alexander Bruy
Hi,

I have similar issue: composer map changes its dimensions when
scale and extents changed. I posted question in this list some time
ago [0].

Seems it is impossible to keep composer map size and position
locked. IMO this is big issue that makes composer templates
useless in some cases.

[0] http://www.mail-archive.com/qgis-developer@lists.osgeo.org/msg15587.html

2013/6/24 Stott James fmro...@fylkesmannen.no:
 Hi all,

 Is anyone else having problems with using atlas with python?

 I am writing some python code that uses the Atlas functionality in master to
 create a PDF / jpg for each of my 5000 records.

 I can produce a jpg/pdf for each feature, however the composerMap object
 does not stay the same size.

 I found this bug report which describes the issue. This report is listed as
 fixed:

 http://hub.qgis.org/issues/6956

 I have set the following two lines in my code:

 myAtlas.setFixedScale( False )
 myAtlas.setMargin(0.1)

 If I set this up from within QGIS, it works perfectly. It is only through
 Python I have problems.



 Here are the example exported jpgs:



 Generated inside QGIS GUI



 https://docs.google.com/file/d/0B6r5nAOdEBZrbFk0UUdxOVdTRVk/edit?usp=sharing



 Generated from python



 https://docs.google.com/file/d/0B6r5nAOdEBZrZVJmWlpBb1c4Q2M/edit?usp=sharing



 I have also included a stripped down version of my code, along with a sample
 shapefile (this isn’t the data I am planning to use it with, but it doesn’t
 work with either the sample or the real data).



 https://docs.google.com/file/d/0B6r5nAOdEBZrRUpzZm81cU1pUkk/edit?usp=sharing



 Using master, updated today from OsGeo4W.



 Many thanks,



 James Stott

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