Skip to content

Commit e59de66

Browse files
committed
Merge branch 'master' of https://github.com/qgis/Quantum-GIS
2 parents a785fd5 + 522bbcd commit e59de66

24 files changed

+82
-77
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ ENDIF(NOT WIN32 AND NOT ANDROID)
161161
FIND_PACKAGE(Proj)
162162
FIND_PACKAGE(GEOS)
163163
FIND_PACKAGE(GDAL)
164-
FIND_PACKAGE(Expat)
164+
FIND_PACKAGE(Expat REQUIRED)
165165
FIND_PACKAGE(Spatialindex REQUIRED)
166166
FIND_PACKAGE(Qwt REQUIRED)
167167

INSTALL

+14-12
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
Quantum GIS (QGIS)
22
Building QGIS from source - step by step
3-
Tuesday October 23, 2012
3+
Friday January 04, 2013
44

55

6-
Last Updated: Tuesday October 23, 2012
7-
Last Change : Tuesday October 23, 2012
6+
Last Updated: Friday January 04, 2013
7+
Last Change : Friday January 04, 2013
88

99

1010
1. Introduction
@@ -104,13 +104,14 @@ Required build deps:
104104
- Sqlite3 >= 3.0.0
105105
- GDAL/OGR >= 1.4.x
106106
- Qwt >= 5.0
107+
- expat >= 1.95
107108

108109
Optional dependencies:
109110

110111
- for GRASS plugin - GRASS >= 6.0.0 (libraries compiled with exceptions support on Linux 32bit)
111112
- for georeferencer - GSL >= 1.8
112113
- for postgis support and SPIT plugin - PostgreSQL >= 8.0.x
113-
- for gps plugin - expat >= 1.95 and gpsbabel
114+
- for gps plugin - gpsbabel
114115
- for mapserver export and PyQGIS - Python >= 2.3 (2.5+ preferred)
115116
- for python support - SIP >= 4.8, PyQt >= must match Qt version, Qscintilla2
116117
- for qgis mapserver - FastCGI
@@ -539,7 +540,7 @@ To run QGIS just use this command
539540
==========================================
540541

541542
This section describes how to build QGIS using Visual Studio on Windows. This
542-
is currently also who the binary QGIS packages are made (earlier versions used
543+
is currently also how the binary QGIS packages are made (earlier versions used
543544
MinGW).
544545

545546
This section describes the setup required to allow Visual Studio to be used to
@@ -608,7 +609,9 @@ Earlier versions of this document also covered how to build all above
608609
dependencies. If you're interested in that, check the history of this page in the Wiki
609610
or the SVN repository.
610611

611-
=== Setting up the Visual Studio project with CMake ===
612+
613+
4.1.3. Setting up the Visual Studio project with CMake
614+
======================================================
612615

613616
To start a command prompt with an environment that both has the VC++ and the OSGeo4W
614617
variables create the following batch file (assuming the above packages were
@@ -633,7 +636,6 @@ installed in the default locations):
633636

634637
@cmd
635638

636-
637639
Start the batch file and on the command prompt checkout the QGIS source from
638640
git to the source directory Quantum-GIS:
639641

@@ -642,8 +644,8 @@ git to the source directory Quantum-GIS:
642644
Create a 'build' directory somewhere. This will be where all the build output
643645
will be generated.
644646

645-
Now run cmake-gui and in the Where is the source code: box, browse to
646-
the top level QGIS directory.
647+
Now run cmake-gui (still from cmd) and in the Where is the source code:
648+
box, browse to the top level QGIS directory.
647649

648650
In the Where to build the binaries: box, browse to the 'build' directory you
649651
created.
@@ -678,7 +680,7 @@ You will also either need to add all the dependency DLLs to the QGIS install
678680
directory or add their respective directories to your PATH.
679681

680682

681-
4.1.3. Packaging
683+
4.1.4. Packaging
682684
================
683685

684686
To create a standalone installer there is a perl script named 'creatensis.pl'
@@ -699,7 +701,7 @@ and 'bzip2') is available at:
699701
http://cygwin.com
700702

701703

702-
4.1.4. Packaging your own build of QGIS
704+
4.1.5. Packaging your own build of QGIS
703705
=======================================
704706

705707
Assuming you have completed the above packaging step, if you want to include
@@ -719,7 +721,7 @@ After this you should now have a nsis installer containing your own build
719721
of QGIS and all dependencies needed to run it on a windows machine.
720722

721723

722-
4.1.5. Osgeo4w packaging
724+
4.1.6. Osgeo4w packaging
723725
========================
724726

725727
The actual packaging process is currently not documented, for now please take a

doc/INSTALL.html

+28-21
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
66
<TITLE>Quantum GIS (QGIS)</TITLE>
77

8-
<!-- Included style.css -->
8+
<!-- Included /home/fischer/src/qgis/doc/style.css -->
99
<STYLE TYPE="text/css">
1010
body{ background: white;
1111
color: black;
@@ -77,13 +77,13 @@
7777
<DIV CLASS="header" ID="header">
7878
<H1>Quantum GIS (QGIS)</H1>
7979
<H2>Building QGIS from source - step by step</H2>
80-
<H3>Tuesday October 23, 2012</H3>
80+
<H3>Friday January 04, 2013</H3>
8181
</DIV>
8282

8383
<DIV CLASS="body" ID="body">
8484
<P>
85-
Last Updated: Tuesday October 23, 2012
86-
Last Change : Tuesday October 23, 2012
85+
Last Updated: Friday January 04, 2013
86+
Last Change : Friday January 04, 2013
8787
</P>
8888
<DIV CLASS="toc">
8989

@@ -211,6 +211,7 @@ <H1>2. Overview</H1>
211211
<LI>Sqlite3 &gt;= 3.0.0
212212
<LI>GDAL/OGR &gt;= 1.4.x
213213
<LI>Qwt &gt;= 5.0
214+
<LI>expat &gt;= 1.95
214215
</UL>
215216

216217
<P>
@@ -221,7 +222,7 @@ <H1>2. Overview</H1>
221222
<LI>for GRASS plugin - GRASS &gt;= 6.0.0 (libraries compiled with exceptions support on Linux 32bit)
222223
<LI>for georeferencer - GSL &gt;= 1.8
223224
<LI>for postgis support and SPIT plugin - PostgreSQL &gt;= 8.0.x
224-
<LI>for gps plugin - expat &gt;= 1.95 and gpsbabel
225+
<LI>for gps plugin - gpsbabel
225226
<LI>for mapserver export and PyQGIS - Python &gt;= 2.3 (2.5+ preferred)
226227
<LI>for python support - SIP &gt;= 4.8, PyQt &gt;= must match Qt version, Qscintilla2
227228
<LI>for qgis mapserver - FastCGI
@@ -861,7 +862,7 @@ <H2>4.1. Building with Microsoft Visual Studio</H2>
861862

862863
<P>
863864
This section describes how to build QGIS using Visual Studio on Windows. This
864-
is currently also who the binary QGIS packages are made (earlier versions used
865+
is currently also how the binary QGIS packages are made (earlier versions used
865866
MinGW).
866867
</P>
867868
<P>
@@ -952,24 +953,30 @@ <H3>4.1.2. Other tools and dependencies</H3>
952953
<LI>spatialite
953954
<LI>libspatialindex-devel
954955
<LI>python-qscintilla
955-
<P></P>
956+
</UL>
957+
958+
<P>
956959
This will also select packages the above packages depend on.
957-
<P></P>
960+
</P>
961+
<P>
958962
Additionally QGIS also needs the include file <CODE>unistd.h</CODE>, which normally
959963
doesn't exist on Windows. It's shipped with Flex/Bison in <CODE>GnuWin32\include</CODE>
960964
and needs to be copied into the <CODE>VC\include</CODE> directory of your Visual C++
961965
installation.
962-
<P></P>
966+
</P>
967+
<P>
963968
Earlier versions of this document also covered how to build all above
964969
dependencies. If you're interested in that, check the history of this page in the Wiki
965970
or the SVN repository.
966-
<P></P>
967-
=== Setting up the Visual Studio project with CMake ===
968-
<P></P>
971+
</P>
972+
973+
<H3>4.1.3. Setting up the Visual Studio project with CMake</H3>
974+
975+
<P>
969976
To start a command prompt with an environment that both has the VC++ and the OSGeo4W
970977
variables create the following batch file (assuming the above packages were
971978
installed in the default locations):
972-
<P></P>
979+
</P>
973980

974981
<div class="code"><PRE>
975982
@echo off
@@ -992,10 +999,10 @@ <H3>4.1.2. Other tools and dependencies</H3>
992999
@cmd
9931000
</PRE></div>
9941001

995-
<P></P>
1002+
<P>
9961003
Start the batch file and on the command prompt checkout the QGIS source from
9971004
git to the source directory <CODE>Quantum-GIS</CODE>:
998-
</UL>
1005+
</P>
9991006

10001007
<div class="code"><PRE>
10011008
git clone git://github.com/qgis/Quantum-GIS.git
@@ -1006,8 +1013,8 @@ <H3>4.1.2. Other tools and dependencies</H3>
10061013
will be generated.
10071014
</P>
10081015
<P>
1009-
Now run <CODE>cmake-gui</CODE> and in the <I>Where is the source code:</I> box, browse to
1010-
the top level QGIS directory.
1016+
Now run <CODE>cmake-gui</CODE> (still from <CODE>cmd</CODE>) and in the <I>Where is the source code:</I>
1017+
box, browse to the top level QGIS directory.
10111018
</P>
10121019
<P>
10131020
In the <I>Where to build the binaries:</I> box, browse to the 'build' directory you
@@ -1052,7 +1059,7 @@ <H3>4.1.2. Other tools and dependencies</H3>
10521059
directory or add their respective directories to your PATH.
10531060
</P>
10541061

1055-
<H3>4.1.3. Packaging</H3>
1062+
<H3>4.1.4. Packaging</H3>
10561063

10571064
<P>
10581065
To create a standalone installer there is a perl script named 'creatensis.pl'
@@ -1079,7 +1086,7 @@ <H3>4.1.3. Packaging</H3>
10791086
<A HREF="http://cygwin.com">http://cygwin.com</A>
10801087
</BLOCKQUOTE>
10811088

1082-
<H3>4.1.4. Packaging your own build of QGIS</H3>
1089+
<H3>4.1.5. Packaging your own build of QGIS</H3>
10831090

10841091
<P>
10851092
Assuming you have completed the above packaging step, if you want to include
@@ -1107,7 +1114,7 @@ <H3>4.1.4. Packaging your own build of QGIS</H3>
11071114
of QGIS and all dependencies needed to run it on a windows machine.
11081115
</P>
11091116

1110-
<H3>4.1.5. Osgeo4w packaging</H3>
1117+
<H3>4.1.6. Osgeo4w packaging</H3>
11111118

11121119
<P>
11131120
The actual packaging process is currently not documented, for now please take a
@@ -3157,5 +3164,5 @@ <H1>9. Authors and Acknowledgments</H1>
31573164

31583165
</DIV>
31593166
<!-- html code generated by txt2tags 2.6 (http://txt2tags.org) -->
3160-
<!-- cmdline: txt2tags -o INSTALL.html -t html INSTALL.t2t -->
3167+
<!-- cmdline: txt2tags -odoc/INSTALL.html -t html doc/INSTALL.t2t -->
31613168
</BODY></HTML>

doc/overview.t2t

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,15 @@ Required build deps:
2121
- Sqlite3 >= 3.0.0
2222
- GDAL/OGR >= 1.4.x
2323
- Qwt >= 5.0
24+
- expat >= 1.95
2425
-
2526

2627
Optional dependencies:
2728

2829
- for GRASS plugin - GRASS >= 6.0.0 (libraries compiled with exceptions support on Linux 32bit)
2930
- for georeferencer - GSL >= 1.8
3031
- for postgis support and SPIT plugin - PostgreSQL >= 8.0.x
31-
- for gps plugin - expat >= 1.95 and gpsbabel
32+
- for gps plugin - gpsbabel
3233
- for mapserver export and PyQGIS - Python >= 2.3 (2.5+ preferred)
3334
- for python support - SIP >= 4.8, PyQt >= must match Qt version, Qscintilla2
3435
- for qgis mapserver - FastCGI

python/plugins/GdalTools/tools/dialogSRS.py

+4-5
Original file line numberDiff line numberDiff line change
@@ -44,18 +44,17 @@ def __init__(self, title, parent=None):
4444
self.connect(buttonBox, SIGNAL("accepted()"), self.accept)
4545
self.connect(buttonBox, SIGNAL("rejected()"), self.reject)
4646

47-
def epsg(self):
48-
return "EPSG:" + str(self.selector.selectedEpsg())
47+
def authid(self):
48+
return str(self.selector.selectedAuthId()
4949

5050
def proj4string(self):
5151
return self.selector.selectedProj4String()
5252

5353
def getProjection(self):
54-
if self.selector.selectedEpsg() != 0:
55-
return self.epsg()
54+
if self.authid().startsWith("EPSG:", Qt.CaseInsensitive):
55+
return self.authid()
5656

5757
if not self.selector.selectedProj4String().isEmpty():
5858
return self.proj4string()
5959

6060
return QString()
61-

python/plugins/db_manager/layer_preview.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -105,14 +105,14 @@ def _loadTablePreview(self, table, limit=False):
105105
if not vl.isValid():
106106
self.setLayerSet( [] )
107107
else:
108-
newLayerId = vl.id() if hasattr(vl, 'id') else vl.getLayerID()
108+
newLayerId = vl.id() if hasattr(vl, 'id') else vl.id()
109109
self.setLayerSet( [ QgsMapCanvasLayer(vl) ] )
110110
QgsMapLayerRegistry.instance().addMapLayers([vl], False)
111111
self.zoomToFullExtent()
112112

113113
# remove old layer (if any) and set new
114114
if self.currentLayerId:
115-
QgsMapLayerRegistry.instance().removeMapLayer(self.currentLayerId, False)
115+
QgsMapLayerRegistry.instance().removeMapLayers([self.currentLayerId], False)
116116
self.currentLayerId = newLayerId
117117

118118
self.setRenderFlag(True)

python/plugins/fTools/tools/doGeometry.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -992,7 +992,7 @@ def simpleMeasure( self, inGeom, calcType, ellips, crs ):
992992
if calcType == 2:
993993
measure.setSourceCrs( crs )
994994
measure.setEllipsoid( ellips )
995-
measure.setProjectionsEnabled( True )
995+
measure.setEllipsoidalMode( True )
996996

997997
attr1 = measure.measure( inGeom )
998998
if inGeom.type() == QGis.Polygon:
@@ -1174,6 +1174,7 @@ def findOrCreateFields( self, vlayer ):
11741174
else:
11751175
index2 = len( fieldKeys ) + 1
11761176
newFields.append( field )
1177+
# FIXME: addAttributes was deprecated and removed
11771178
vprovider.addAttributes( newFields )
11781179
vlayer.updateFieldMap()
11791180
return ( index1, index2 )

python/plugins/fTools/tools/doRandPoints.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ def accept(self):
128128
self.tr("Created output point shapefile:\n%1\n\nWould you like to add the new layer to the TOC?").arg(outPath), QMessageBox.Yes, QMessageBox.No, QMessageBox.NoButton)
129129
if addToTOC == QMessageBox.Yes:
130130
self.vlayer = QgsVectorLayer(outPath, unicode(outName), "ogr")
131-
QgsMapLayerRegistry.instance().addMapLayer([self.vlayer])
131+
QgsMapLayerRegistry.instance().addMapLayers([self.vlayer])
132132
self.populateLayers()
133133
self.progressBar.setValue(0)
134134
self.buttonOk.setEnabled( True )

python/plugins/fTools/tools/doRegPoints.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def accept(self):
9292
addToTOC = QMessageBox.question(self, self.tr("Generate Regular Points"), self.tr("Created output point shapefile:\n%1\n\nWould you like to add the new layer to the TOC?").arg( outPath ), QMessageBox.Yes, QMessageBox.No, QMessageBox.NoButton)
9393
if addToTOC == QMessageBox.Yes:
9494
self.vlayer = QgsVectorLayer(outPath, unicode(outName), "ogr")
95-
QgsMapLayerRegistry.instance().addMapLayer([self.vlayer])
95+
QgsMapLayerRegistry.instance().addMapLayers([self.vlayer])
9696
self.populateLayers()
9797
self.progressBar.setValue(0)
9898
self.buttonOk.setEnabled( True )

python/plugins/fTools/tools/doSpatialJoin.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def accept(self):
109109
.arg(unicode(outPath)), QMessageBox.Yes, QMessageBox.No, QMessageBox.NoButton)
110110
if addToTOC == QMessageBox.Yes:
111111
self.vlayer = QgsVectorLayer(outPath, unicode(outName), "ogr")
112-
QgsMapLayerRegistry.instance().addMapLayer([self.vlayer])
112+
QgsMapLayerRegistry.instance().addMapLayers([self.vlayer])
113113
self.progressBar.setValue(0)
114114
self.buttonOk.setEnabled( True )
115115

python/plugins/fTools/tools/ftools_utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def writeVectorLayerToShape( vlayer, outputPath, encoding ):
104104
if not mCodec:
105105
return False
106106
#Here we should check that the output path is valid
107-
QgsVectorFileWriter.writeAsShapefile( vlayer, outputPath, encoding, vlayer.dataProvider().crs(), False )
107+
QgsVectorFileWriter.writeAsVectorFormat( vlayer, outputPath, encoding, vlayer.dataProvider().crs(), "ESRI Shapefile", False )
108108
return True
109109

110110
# For use with memory provider/layer, converts QGis vector type definition to simple string

python/plugins/osm/OsmLoadDlg.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ def onOK(self):
156156

157157
if replacing:
158158
# remove layers of current data first
159-
QgsMapLayerRegistry.instance().removeMapLayer(self.canvas.currentLayer().id(),True)
159+
QgsMapLayerRegistry.instance().removeMapLayers([self.canvas.currentLayer().id()],True)
160160

161161
if self.chkCustomRenderer.isChecked():
162162
styleFile=self.styleFiles[self.styleCombo.currentIndex()]

python/plugins/sextante/algs/ftools/ExportGeometryInfo.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def simpleMeasure(self, geom, method, ellips, crs):
148148
if method == 2:
149149
measure.setSourceCrs(crs)
150150
measure.setEllipsoid(ellips)
151-
measure.setProjectionsEnabled(True)
151+
measure.setEllipsoidalMode(True)
152152

153153
attr1 = measure.measure(geom)
154154
if geom.type() == QGis.Polygon:

python/plugins/sextante/algs/ftools/ftools_utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def writeVectorLayerToShape( vlayer, outputPath, encoding ):
9797
if not mCodec:
9898
return False
9999
#Here we should check that the output path is valid
100-
QgsVectorFileWriter.writeAsShapefile( vlayer, outputPath, encoding, vlayer.dataProvider().crs(), False )
100+
QgsVectorFileWriter.writeAsVectorFormat( vlayer, outputPath, encoding, vlayer.dataProvider().crs(), "ESRI Shapefile", False )
101101
return True
102102

103103
# For use with memory provider/layer, converts QGis vector type definition to simple string

python/plugins/sextante/algs/mmqgisx/mmqgisx_library.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1387,7 +1387,7 @@ def mmqgisx_hub_distance(progress, sourcelayer, hubslayer, nameattributename, un
13871387
source = feature.geometry().boundingBox().center()
13881388
distance = QgsDistanceArea()
13891389
distance.setSourceCrs(sourcelayer.dataProvider().crs().srsid())
1390-
distance.setProjectionsEnabled(1)
1390+
distance.setEllipsoidalMode(True)
13911391

13921392
closest = hubs[0]
13931393
hubdist = distance.measureLine(source, closest.point)

0 commit comments

Comments
 (0)