Re: [Qgis-user] World vector map of utm zones
Hi, I'm going to load this to koordinates.com Does anyone know if it's copyrighted 'Public Domain'? My guess is that it is. cheers, Sam On 1/19/11, Alex Mandel wrote: > On 01/19/2011 01:02 AM, Agustin Lobo wrote: >> Can anybody point me to a vector layer >> with world UTM zones as i.e. here: >> http://www.dmap.co.uk/utmworld.htm >> ? >> >> Thanks >> Agus > > Had to dig some but the files here look promising: > http://earth-info.nga.mil/GandG/coordsys/gislayers/gislayers.html > > Glad you made me look, these will be useful. > > Thanks, > Alex > ___ > Qgis-user mailing list > Qgis-user@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/qgis-user > -- Twitter: @Acrosscanada Blogs: http://acrosscanadatrails.posterous.com/ http://Acrosscanadatrails.blogspot.com Facebook: http://www.facebook.com/sam.vekemans Skype: samvekemans IRC: irc://irc.oftc.net #osm-ca Canadian OSM channel (an open chat room) @Acrosscanadatrails ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] Primary keys composed
Hi Joaquim, QGIS currently only supports int and int4 as a primary key. Andreas On 1/19/11 5:50 PM, Joaquim Condeça wrote: Hello I'am tring to implement a data model with postgresql. The table have a primary key composed (VARCHAR) but the QGIS does not recogneize this primary key. did you have some advises? Beste Regards Joaquim condeça ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] QgsVectorLayerDataProvider problem?
On Fri, Jan 14, 2011 at 8:39 PM, Gary Smith wrote: > Hello, > > I am not sure whether this is the right forum but extensive Google searches > have not helped. I am writing a plugin to convert the segments of a polyline > to a layer of individual 2 vertex line features. > > This is the code I used to do the job > > feat = QgsFeature() > p = 0 > while p < cl.featureCount(): > cl.featureAtId(p, feat, True, True) > geom0 = QgsGeometry(feat.geometry()) > vl = QgsVectorLayer("LineString", "Mylines", "memory") > provider = vl.dataProvider() > provider.addAttributes( [ QgsField( "id" , QVariant.String), > QgsField( "agl" , QVariant.String) ]) > pnt10 = QgsPoint( geom0.vertexAt(0) ) > segfeat = QgsFeature() > itr = 1 > while ( QgsPoint( geom0.vertexAt(itr) ) <> QgsPoint(0,0) ): > pnt10 = QgsPoint( geom0.vertexAt(itr -1) ) > pnt11 = QgsPoint( geom0.vertexAt(itr) ) > newGeom = QgsGeometry.fromPolyline( [ pnt10, pnt11 ] ) > segfeat.setGeometry( newGeom ) > segfeat.setAttributeMap( { 0 : QVariant( str(itr) ), 1 : > QVariant( str(agl) ) } ) > provider.addFeatures( [segfeat] ) > itr += 1 > p += 1 > vl.commitChanges() > QgsMapLayerRegistry.instance().addMapLayer(vl) Hi Gary I'm not sure what exactly you are trying to do. From the code snippet it looks that for each feature of the original layer you create a new layer! That's probably not what you want, is it? I have few more suggestions: - iterate over the input using select() and nextFeature() methods instead of featureAtId(). Generally IDs of features are not increasing from 0. The former approach guarantees you that you will not miss any features - to work with geometry, you can call geometry's asPolyline() method to get a list of points - more convenient than calling vertexAt() - no need to call vl.commitChanges() since you do changes directly to the provider Martin ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] World vector map of utm zones
On 01/19/2011 01:02 AM, Agustin Lobo wrote: > Can anybody point me to a vector layer > with world UTM zones as i.e. here: > http://www.dmap.co.uk/utmworld.htm > ? > > Thanks > Agus Had to dig some but the files here look promising: http://earth-info.nga.mil/GandG/coordsys/gislayers/gislayers.html Glad you made me look, these will be useful. Thanks, Alex ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] Primary keys composed
create a unique field in integer. QGIS use to be happy about that. ALTER TABLE mytable ADD COLUMN uid SERIAL UNIQUE; HTH Nicklas On Wed, 2011-01-19 at 16:50 +, Joaquim Condeça wrote: > Hello > > I'am tring to implement a data model with postgresql. > > The table have a primary key composed (VARCHAR) but the QGIS does not > recogneize this primary key. > > did you have some advises? > > Beste Regards > > Joaquim condeça > ___ > Qgis-user mailing list > Qgis-user@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/qgis-user ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
[Qgis-user] Primary keys composed
Hello I'am tring to implement a data model with postgresql. The table have a primary key composed (VARCHAR) but the QGIS does not recogneize this primary key. did you have some advises? Beste Regards Joaquim condeça ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] Seems impossible to open ecw
Moin Michael, On Wed, 19. Jan 2011 at 15:33:23 +0100, Michael Weninger wrote: > I am not able to read ecw data qgis: > I have installed the qgis 1.6 with the newest libs with > osgeo4w-setup.exe on windows server 2008 R2 Enterprise 64bit > I have installed the erdas ECW SDK and copied the dll's to all the > folder like discribed in net (System32, SysWOW64, QGIS/bin,...) > But it still doesn't work. When i open an ecw this message appears: > "Nicht unterstütztes Datenformat, Pfad.ecw ist keine unterstützte > Rasterdatenquelle." > in English with my words: "path.ecw is not a supported raster data source" You also need to install gdal17-ecw. If you already did, does "gdalinfo --formats" in the OSGeo4W shell (after running gdal17) any errors (and no ECW)? Jürgen -- Jürgen E. Fischer norBIT GmbH Tel. +49-4931-918175-20 Dipl.-Inf. (FH) Rheinstraße 13Fax. +49-4931-918175-50 Software Engineer D-26506 Norden http://www.norbit.de -- norBIT Gesellschaft fuer Unternehmensberatung und Informationssysteme mbH Rheinstrasse 13, 26506 Norden GF: Jelto Buurman, HR: Amtsgericht Emden, HRB 5502 ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
[Qgis-user] Seems impossible to open ecw
Hi, I am not able to read ecw data qgis: I have installed the qgis 1.6 with the newest libs with osgeo4w-setup.exe on windows server 2008 R2 Enterprise 64bit I have installed the erdas ECW SDK and copied the dll's to all the folder like discribed in net (System32, SysWOW64, QGIS/bin,...) But it still doesn't work. When i open an ecw this message appears: "Nicht unterstütztes Datenformat, Pfad.ecw ist keine unterstützte Rasterdatenquelle." in English with my words: "path.ecw is not a supported raster data source" Are there any good suggestions for me? Thank you, Michael ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] using EPSG:1662 transformation
Hi, > but in Qgis there isn't the possibility to adjust the > reprojection with that tranformation parameter. no, at the moment you have to create customs CRSs ("settings -> custom crs..." under Windows) that include the necessary parameters. Then You can use them normally as source/target srs in your vector/raster operations. I believe that letting the user choose these parameters "on the fly" is under development, at least for the "warp" tool in raster menu. cheers -- Giovanni -- ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] using EPSG:1662 transformation
Hi Giovanni, your answer sounds very good. Both gdalwarp and OGR work fine for me with +towgs84 declaration (like +towgs84=0,0,0), but in Qgis there isn't the possibility to adjust the reprojection with that tranformation parameter. Thank you very much Michele On Tue, Jan 18, 2011 at 7:04 PM, Giovanni Manghi wrote: > Hi, > > I don't know if it can help, but I usually do Datum transformations (of > both vectors and rasters) using datum transformation grids and the CLI > interface (gdalwarp, ogr2ogr) or QGIS. > > When defining the -s_srs crs it is needed to add the "+nadgrids" > parameter and the "+wktext" parameter (the latter should not be > necessary if you use +towgs84 parameters instead of a grid file). > > In the -t_srs crs it is always needed to add a "dummy" +towgs84 > declaration (like +towgs84=0,0,0) otherwise the transformation will not > work. This is true for both the grid transformations (using +nadgrids in > s_srs) and transformations using +towgs84=... (in s_srs). > > In QGIS at the moment this means creating two custom CRSs. > > In QGIS, the "warp" interface as long as the interfaces that allow to > save a vector in a new projection, should soon alloow to choose/add > +towgs84 parameters or transformation grids "on the fly" in order to > avoid the user to create custom CRSs. > > cheers > > -- Giovanni -- > > > > > On Fri, 2011-01-14 at 16:58 +0100, Michele Beneventi wrote: >> Hi all, >> I'm using Qgis 1.6 release on windows xp pro 64-bit and in particulary >> "export to new projection" (ftools). >> >> I need to reprojct a layer from WGS84 / UTM zone 32N (EPSG:32632) to >> Monte Mario / Italy zone 1 (EPSG:3003) with the transformation 1662 >> (EPSG code). >> I try to insert the value of the transformation in "custom CRS" with >> proj4 syntax (+proj=tmerc +lat_0=0.0 +lon_0=9.0 +k=0.9996 >> +x_0=150.0 +y_0=0.0 +ellps=intl +units=m >> +towgs84=-168.6,-34,38.6,-0.374,-0.679,-1.379,-9.48 +units=m +no_defs) >> and create a new CRS target, but it seems doesn't work properly.. >> >> With gdalwarp I can put this value in the "-t_srs" parameter and run >> the command with execellent results. >> >> There is another way to customize the reprojection tool with the value >> of local parameters? >> >> Thanks in advance >> regards >> >> Michele >> ___ >> Qgis-user mailing list >> Qgis-user@lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/qgis-user > > > ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
[Qgis-user] World vector map of utm zones
Can anybody point me to a vector layer with world UTM zones as i.e. here: http://www.dmap.co.uk/utmworld.htm ? Thanks Agus ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user