2039 Commits

Author SHA1 Message Date
mhugent
e5d2bd729d snapping tolerance from QgsProject, line color and width will follow
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2580 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-01-04 21:53:53 +00:00
timlinux
e274226551 Added properties for digitising line width, colour and snapping tolerance. Added option for selecting selection colour. These still need to be wired up to the relevent implementing classes.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2579 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-01-04 21:08:55 +00:00
mcoletti
5e59884368 Now appropriately whines when attempting to open a project file that has no
layers instead of just crashing.


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2578 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-01-04 21:01:41 +00:00
timlinux
584cc0aa92 Changing projection in project props dialog will notify all layers to change their coordinateTransform->destWKT to the selection made in the properties dialog.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2577 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-01-04 00:44:23 +00:00
timlinux
4b116dd12c Perform inverseTransform of the canvas extents so that a QgsRect in the layers native coordinate system can be used to select features in layer draw process. Added some debug to qgscoordtransform and a simple call to inverseTransform(float,float) during initialise to test if its working.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2576 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-01-03 23:08:08 +00:00
mhugent
7b24f92a44 snapping tolerance for the multi... feature types
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2575 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-01-03 21:56:03 +00:00
gsherman
8dfff4ea76 Minor changes to projection rendering code -- nothing works yet
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2574 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-01-03 04:20:46 +00:00
timlinux
1e09322d82 Added accessor for coordinateTransformation object to maplayer.
Added methods to carry out inverseTransforms to QgsCoordinateTransform. This allows us to calculate the reverse projection (i.e. project projection -> layer projection) which is needed when doing things like selected features based on user interaction.


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2573 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-01-03 03:00:21 +00:00
timlinux
14a4b816a5 Project a rectangle in a single operation
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2572 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-01-03 02:18:33 +00:00
timlinux
6791acadb6 Debug output for map to pixel conversions
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2571 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-01-03 01:41:42 +00:00
gsherman
80ea040ec5 Polish translation provided by Mateusz ��oskot
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2570 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-01-03 00:56:55 +00:00
mhugent
d9d63c8ceb I should also add that snapping tolerance is already implemented for point, line, polygon and not yet for the multi... types
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2569 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-01-02 23:09:22 +00:00
mhugent
22f9438635 Implemented snapping tolerance for vector digitising. There is currently no GUI to set it. If someone already likes to test this (experimental) feature, QgsVectorLayer::mSnappingTolerance needs to be hardcoded (e.g. in the constructor of QgsVectorLayer)
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2568 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-01-02 22:46:22 +00:00
timlinux
5fa20b40be Fix path errror
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2567 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-01-02 01:14:29 +00:00
gsherman
474eefa90f Changes to install the wkt resource file in <prefix>/share/qgis/resources
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2566 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-01-02 00:50:43 +00:00
timlinux
b1188870aa Macosx friendliness for finding wkt_refs. Makefile to add wkt_refs to install path
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2565 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-01-02 00:39:14 +00:00
timlinux
94d69be157 Added ouput project specification to project props dialog...still a work in progress....
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2564 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-01-02 00:25:53 +00:00
timlinux
e85fc9c07f List of projection definitions to be used for projection implementation
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2563 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-01-02 00:18:27 +00:00
timlinux
23a6f56e33 Ever so important commit - new splash for next release.....
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2562 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-01-01 23:42:06 +00:00
larsl
fffca9bd84 Fixed bug that crashed QGIS when loading vector layers from a project file
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2561 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-01-01 18:14:52 +00:00
stevehalasz
b8fd19f285 * don't leak the fileDialog if no file is chosen
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2560 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-01-01 17:05:28 +00:00
larsl
0890ee247d ** Fixed a bug that crashed QGIS when loading rasters from a project file, pt 2
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2559 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-01-01 14:02:27 +00:00
larsl
3d953ce962 ** Fixed a bug that crashed QGIS when loading rasters from a project file
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2558 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-01-01 13:52:51 +00:00
timlinux
7cfd1e47d9 Fix bug where qgis crashed if a shapefile has no spatial ref system defined
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2557 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-01-01 11:39:48 +00:00
timlinux
9959b84512 Initial commit of projextion integration.....dont get too happy cause its still not working yet...though it behaves nicely and doesnt kill qgis if it cant set up the projection environment properly. I believe the problem may be resolved by linking to libproj during build, because currently I get errors like this:
ERROR 6: Failed to initialize PROJ.4 with `+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs '.
The OGR Coordinate transformation for this layer could not be set
INPUT: PROJCS["Alaska_Albers_Equal_Area_Conic",GEOGCS["GCS_North_American_1927",DATUM["North_American_Datum_1927",SPHEROID["Clarke_1866",6378206.4,294.9786982]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Albers_Conic_Equal_Area"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["longitude_of_center",-154.0],PARAMETER["Standard_Parallel_1",55.0],PARAMETER["Standard_Parallel_2",65.0],PARAMETER["latitude_of_center",50.0],UNIT["Meter",1.0]]
OUTPUT: GEOGCS["WGS 84",   DATUM["WGS_1984",     SPHEROID["WGS 84",6378137,298.257223563,       AUTHORITY["EPSG",7030]],     TOWGS84[0,0,0,0,0,0,0],     AUTHORITY["EPSG",6326]],   PRIMEM["Greenwich",0,AUTHORITY["EPSG",8901]],   UNIT["DMSH",0.0174532925199433,AUTHORITY["EPSG",9108]],   AXIS["Lat",NORTH],   AXIS["Long",EAST],   AUTHORITY["EPSG",4326]]


Ill try to track down the source of the problem following this commit.


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2556 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-01-01 02:04:50 +00:00
stevehalasz
c705bf5785 * remember last directory used for project Open or Save As
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2555 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-12-31 19:52:50 +00:00
timlinux
06ea29358c Fixes to get this class to compile...
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2554 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-12-31 09:59:01 +00:00
mcoletti
be57f1155e Fixes for const-correctness not propogated properly to sub-classes.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2553 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-12-31 00:30:32 +00:00
mcoletti
665fdb62fa Fix saveAsShapefile bug due to previous const-correctness fix.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2552 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-12-31 00:29:22 +00:00
mcoletti
002006db82 removed redundant saveAsShapefile() member left over from manual conflict resolution
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2551 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-12-30 23:35:37 +00:00
mcoletti
be20b51852 Version 0.6.0devel2
* endian() refactoring
* some delimited text provider refactoring
* some member functions made const correct


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2550 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-12-30 22:25:29 +00:00
mcoletti
c3ea8bcfa6 - rolled forward endian() changes in QgsDataProvider class hierarchy
- rolled forward const-correctness changes from src directory

- in delimited text provider plug-in consolidated how data is parsed into a
  single function from three almost identical, but separate, functions; now
  uses QDataStream for building WKBPoint objects

- QgsDelimitedTextProvider::getFirstFeature() now works

S: ----------------------------------------------------------------------


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2549 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-12-30 22:20:49 +00:00
mcoletti
683d2978af - re-factored how endian-ness is implemented [0]
- made some functions const-correct [1]

- minor code beautifying via calls to indent and manual tweaking


Notes:

[0] Generalized endian() to QgsDataProvider since most child implementations
were just copies of the same code.  Made endian() virtual so that children are
free to provide their own implementations.  Also now use htonl() for endian()
detection and conversion.

However QgsVectorLayer still has separate endian() implementation.  This
functionality should probably be further generalized to a QGIS utility
function suite since endian detection is used in multiple locations.

Also now use specific enumerated typedef for endian-ness instead of magic
integer numbers.

[1] Although made great strides in making some members const-correct, there
are still so very many member functions that could be const in all classes
that aren't.


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2548 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-12-30 22:14:49 +00:00
mhugent
302ebd3685 added acetate line layers for digitizing in qgsmapcanvas. Like this, the map canvas can be moved and the previousle digitized (but unfinished object) is still visible
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2547 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-12-30 21:22:43 +00:00
larsl
367fc71af8 ** Implemented getProjectionWKT() in QgsGPXProvider
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2546 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-12-30 21:18:01 +00:00
timlinux
578d455a45 Implemented placeholder getProjectionWKT in each provider....
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2545 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-12-30 18:08:57 +00:00
timlinux
957de75c40 Refactored DataProvider to push some vector specific methods down to qgsvectordataprovider. Doing this will allow me to use the dataprovider ABC for the soon to be implemented raster providers - which will in turn provide a cleaner based for projection support. Also added getProjectionWKT virtual method to maplayer and did (concrete) implementation for raster and (placeholder) implementation for vector. Next step will be to implement a getProjectionWKT method in the dataprovider interface with maplayer will delegate to, allowing the retrival of projection info to be handled on a case by case basis in each provider...
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2544 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-12-30 17:32:28 +00:00
timlinux
b78357ada3 Get rid of more QgsMapToPixel refs
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2543 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-12-30 11:43:20 +00:00
timlinux
54b9562524 Fix incorrect ctor and dtor names
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2542 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-12-30 11:41:24 +00:00
gsherman
729b40032d Minor modification/formatting
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2541 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-12-30 04:44:07 +00:00
gsherman
5e50e5e0c0 Exception class for coordinate system tranformations
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2540 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-12-30 04:40:53 +00:00
timlinux
f1a6883cd1 Add coordinate transform back to makefile
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2539 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-12-30 03:29:40 +00:00
timlinux
3a2063e77f This is a new version of this class intended to handle projecting a point from one coordnate system to another...
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2538 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-12-30 03:16:19 +00:00
timlinux
c1ead5f361 Added refactored qgsmaptopixel
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2537 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-12-30 02:59:30 +00:00
timlinux
d7e6f025c7 Refactored QgsCoordinateTransform to QgsMapToPixel
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2536 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-12-30 02:52:37 +00:00
gsherman
639d51a827 Fix for bug 1090940 Zoom to all on empty map
Added a count function to the maplayer registry singelton


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2535 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-12-30 01:07:22 +00:00
mhugent
8f5e6077f0 updated the german translation
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2534 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-12-29 21:05:31 +00:00
gsherman
f3903819b4 update japanese translation
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2533 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-12-24 01:06:07 +00:00
gsherman
227cd25aed Fix for bug 1090436 (removed CVS from list of installed files)
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2532 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-12-23 17:16:15 +00:00
gsherman
1781eef006 Update French translation from lroubeyrie
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2529 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-12-23 05:45:45 +00:00