[Qgis-user] Geojson not showing attributes for all entities
I have a geojson file, around 7700 points, 39 fields per point. When I import into QGIS, the attribute table shows only 8 rows, reports 'filtered'. When I save as .shp and use that, I see all of the points in the attribute table. I expect this may have been answered previously, but could not find anything in a search. QGIS 3.22.5, Windows 11 Pro. Thanks in advance. ___ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] perturb point locations
Thank you. This appears to be exactly what I need. I added this plugin (QGIS 2.12.2 Lyon), it shows up as installed, but I cannot see anywhere to activate it, no icon, not on any menus, toolbars, or panels. Dick Males > > > -- > > Message: 8 > Date: Wed, 27 Jan 2016 15:58:37 +0100 > From: Luigi Pirelli <lui...@gmail.com> > To: Richard Males <rbma...@gmail.com> > Cc: qgis-user <qgis-user@lists.osgeo.org> > Subject: Re: [Qgis-user] perturb point locations > Message-ID: >
Re: [Qgis-user] perturb point locations
Thank you very much. Following your steps revealed the provider, it worked as desired. Much appreciated. Dick On Wed, Jan 27, 2016 at 12:20 PM, Mike Hyslop <mdhys...@mtu.edu> wrote: > If you go to Processing > Options and expand Providers, you can find > Differential Privacy. After checking the box to activate the provider, > Differential privacy shows up in the Processing Toolbox. > > Best, > Mike > > On Wed, Jan 27, 2016 at 12:14 PM, Richard Males <rbma...@gmail.com> wrote: > >> Thank you, I had previously looked in there, did not see that specific >> algorithm. On checking again, I still do not find it, but I do find >> v.perturb under GRASS commands/vector, that seems to do the trick. I am >> still interested in the differential privacy, however. >> >> Dick >> >> On Wed, Jan 27, 2016 at 11:57 AM, Luigi Pirelli <lui...@gmail.com> wrote: >> >>> seems you shoudl look in processing... the algs are added as provider >>> >>> >>> https://github.com/SpatialVision/differential_privacy/blob/master/anon_methods.py#L51 >>> >>> bye >>> Luigi Pirelli >>> >>> >>> ** >>> * Boundless QGIS Support/Development: lpirelli AT boundlessgeo DOT com >>> * LinkedIn: https://www.linkedin.com/in/luigipirelli >>> * Stackexchange: http://gis.stackexchange.com/users/19667/luigi-pirelli >>> * GitHub: https://github.com/luipir >>> * Mastering QGIS: >>> https://www.packtpub.com/application-development/mastering-qgis >>> >>> ** >>> >>> >>> On 27 January 2016 at 17:52, Richard Males <rbma...@gmail.com> wrote: >>> > Thank you. This appears to be exactly what I need. I added this >>> plugin >>> > (QGIS 2.12.2 Lyon), it shows up as installed, but I cannot see >>> anywhere to >>> > activate it, no icon, not on any menus, toolbars, or panels. >>> > >>> > Dick Males >>> > >>> >> >>> >> >>> >> >>> >> -- >>> >> >>> >> Message: 8 >>> >> Date: Wed, 27 Jan 2016 15:58:37 +0100 >>> >> From: Luigi Pirelli <lui...@gmail.com> >>> >> To: Richard Males <rbma...@gmail.com> >>> >> Cc: qgis-user <qgis-user@lists.osgeo.org> >>> >> Subject: Re: [Qgis-user] perturb point locations >>> >> Message-ID: >>> >> >>> >>
Re: [Qgis-user] perturb point locations
Thank you, I had previously looked in there, did not see that specific algorithm. On checking again, I still do not find it, but I do find v.perturb under GRASS commands/vector, that seems to do the trick. I am still interested in the differential privacy, however. Dick On Wed, Jan 27, 2016 at 11:57 AM, Luigi Pirelli <lui...@gmail.com> wrote: > seems you shoudl look in processing... the algs are added as provider > > > https://github.com/SpatialVision/differential_privacy/blob/master/anon_methods.py#L51 > > bye > Luigi Pirelli > > > ** > * Boundless QGIS Support/Development: lpirelli AT boundlessgeo DOT com > * LinkedIn: https://www.linkedin.com/in/luigipirelli > * Stackexchange: http://gis.stackexchange.com/users/19667/luigi-pirelli > * GitHub: https://github.com/luipir > * Mastering QGIS: > https://www.packtpub.com/application-development/mastering-qgis > > ********** > > > On 27 January 2016 at 17:52, Richard Males <rbma...@gmail.com> wrote: > > Thank you. This appears to be exactly what I need. I added this plugin > > (QGIS 2.12.2 Lyon), it shows up as installed, but I cannot see anywhere > to > > activate it, no icon, not on any menus, toolbars, or panels. > > > > Dick Males > > > >> > >> > >> > >> ------ > >> > >> Message: 8 > >> Date: Wed, 27 Jan 2016 15:58:37 +0100 > >> From: Luigi Pirelli <lui...@gmail.com> > >> To: Richard Males <rbma...@gmail.com> > >> Cc: qgis-user <qgis-user@lists.osgeo.org> > >> Subject: Re: [Qgis-user] perturb point locations > >> Message-ID: > >> > >>
[Qgis-user] perturb point locations
I would like to perturb all the point locations on a layer by a random amount within a range, from say 100 feet to 500 feet. Each point should be individually perturbed with different values for the x and y, but the overall perturbation range will be the same for the layer. The purpose is to obfuscate actual locations in a data set. I have not been able to locate anything that will do this. I can use the Update All capabilities on the attribute table to get values for an attribute, e.g. attribute_x = $x+randf(100.0,500.0) but I am not clear on how to push this back to the actual x coordinate of the point. Any suggestions, including python scripting, plugins, or other approaches, will be welcome. Thanks in advance. Dick Males Cincinnati, OH USA ___ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: http://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
[Qgis-user] Problem with spatial selection on Spatialite spatial view in QGIS
spatialite_gui 1.8.0 devel QGIS 2.12.2-Lyon For work I am doing in developing a model of coastal flooding, I use spatialite as the underlying data store for the location and attributes of structures in a coastal region. In my spatialite database, I have a table with geometry (Assets), and a related table with attributes (StructureAssets) but no geometry. I make a spatial join via the query/view composer, joining the geometry and attributes into a spatial view. I can use this view as a data source in QGIS, it plots perfectly. However, when I attempt to select by a rectangle on the view, the selected points are all over the place, not in the drawn rectangle. If I export the view via the spatialite gui as a shapefile, then selection on the shape file based on the view is fine. When I create a table in spatialite from the view, and import that table into QGIS, it shows the same selection behavior as the view, i.e. no good. Any ideas or thoughts for further testing will be welcome. Thanks in advance. Dick ___ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: http://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] Exporting png or pdf from print composer does not work, empties canvas (Lyon)
Sorry, previously posted response under wrong subject: Thank you. I have been doing some additional testing, it appears to relate to having a few maps on the canvas that use the Open Street Map underlay. The behavior is pretty much as noted in the referenced issue. Even with a single OSM underlay, while I do get an export, the underlay is not complete, i.e. jagged edges where some tiles are missing in the exported png, even though they do appear on the map. I will try QuickMapServices.plugin. Thanks. Dick ___ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: http://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] Qgis-user Digest, Vol 118, Issue 49
ke sure you are in a CRS that is projected in > meters. You should be able to see it. The map should be at 0,0. > >>> > >>> All is not loss... You can reproject the map to the correct CRS using > the gdal georeferencing tool.Always back up your data before > manipulating it. > >>> Hope this helps! > >>> > >>> Nicolas Cadieux M.Sc. > >>> Les Entreprises Archéotec inc. > >>> 8548, rue Saint-Denis Montréal H2P 2H2 > >>> Téléphone: 514.381.5112 Fax: 514.381.4995 > >>> www.archeotec.ca > >>> > >>> On Dec 28, 2015 01:16, "Jan Becket [via OSGeo.org]" <[hidden email]> > wrote: > >>> After much effort, I obtained an old set of 1928-1930 USGS topo maps > of Oʻahu Island, Hawaiʻi - for a project I am working on. The maps are > without collars and used by a local archaeological firm. The geotiff maps > at first showed as completely black on my Mac system (10.10.5 - Yosemite). > However I found this link with a resultuion for the issue: > >>> > >>> > http://stackoverflow.com/questions/13925995/options-to-convert-16-bit-image > >>> > >>> I opened the 16 quads for Oʻahu in Photoshop and applied auto levels, > after which they became discernable quad maps. However, when imported into > QGIS, they are now invisible. I wonder if it is possible that I stripped > away the geotiff CRS information. Prior to the Photoshop operation, the > maps did appear correctly referenced to Oʻahu Island (although they were > totally opaque / black). > >>> > >>> Now, the maps in QGIS are not visible, although the geotiffs are > several megabytes in size and are visible when opened in Photoshop, > Preview, or whatever image viewer. > >>> > >>> I should mention that I have successfully imported other sets of USGS > maps of Oʻahu for this project - the 1902 series, the 1916 series, the 1935 > series - as well as the current series. The early maps used the Old > Hawaiian CRS (EPSG 3564) but more modern maps use WGS83, Zone 4N (EPSG > 3711). I have on the fly projection enabled and have tried many CRS > settings for the maps, but nothing results in a visible quad appearing. > >>> > >>> Suggestions very welcome ... > > - > William Kyngesburye <kyngchaos*at*kyngchaos*dot*com> > http://www.kyngchaos.com/ > > "This is a question about the past, is it? ... How can I tell that the > past isn't a fiction designed to account for the discrepancy between my > immediate physical sensations and my state of mind?" > > - The Ruler of the Universe > > > > > -- > > Message: 3 > Date: Tue, 29 Dec 2015 12:55:51 +0200 > From: Anita Graser <anitagra...@gmx.at> > To: Richard Males <rbma...@gmail.com> > Cc: qgis-user <qgis-user@lists.osgeo.org> > Subject: Re: [Qgis-user] Exporting png or pdf from print composer does > not work, empties canvas (Lyon) > Message-ID: >
[Qgis-user] Exporting png or pdf from print composer does not work, empties canvas (Lyon)
I am relatively new to print composer, but have been able to develop some nice annotated maps. I was able to successfully export to a png one time, but since then, exports to png or pdf or svg all fail and empty the canvas. If I exit out of qgis and re-start, I can find the previously populated composer with all elements intact, but I still cannot get an export. Windows 8.1, Lyon 2.12.2 Sometimes, not always, after attempting the export, qgis itself will crash. I have restarted the computer, same problem. Is this a bug, or my ignorance? I usually go for my ignorance, so asking for help, as print composer looks to be a wonderful tool. Thanks in advance Dick ___ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: http://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
[Qgis-user] Location of qgis.core and qgis.gui modules for python import?
I am trying to develop an external python script using qgis capabilities. My understanding is that I need to import qgis.core and qgis.gui. I would like to do this with the fully qualified path name of the location of these modules, but cannot seem to find them on my computer, where I have QGIS Pisa installed. Thanks in advance Dick Males Cincinnati, Ohio, USA ___ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: http://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] Copy field definitions from one vector layer to another?
The join works without a common field of any kind, which is what I wanted, but unfortunately the field names get prefixed with the join layer. When I export as shape file from the joined layer, I get field names like 'exported', 'exported_1', etc. So I don't think the join will work, since what I want to do is preserve field names, just copying them from one layer to another. Maybe some other approach? I was hoping for an existing plug-in, but have not found anything in the repository. Maybe a python script to export field names from existing layer? I will explore that approach, although I am not very familiar with python scripting for QGIS, see if I can get started. Thanks. On Tue, Oct 20, 2015 at 2:21 AM, Luca Lanteriwrote: > why do you need the same geometry type in order to make a join ? > You just need one common field. > > Luca > > 2015-10-19 21:44 GMT+02:00 Joris Hintjens : > >> I’d try “join layers” if they are the same geometry type >> >> Joris >> >> Op 17-okt.-2015, om 11:40 heeft Luca Lanteri het >> volgende geschreven: >> >> You can make a join and then save as layer >> I have been looking for a capability (plugin or native QGIS) that will >> easily copy the field definitions (not the attribute data) from one layer >> to another layer. To date I have not found it, I may be missing something >> obvious. Any help/advice much appreciated. >> >> I have a layer with a bunch of fields already defined, and another layer >> with geometry but no additional fields. I would like to add the field >> definitions from the first layer to the second layer, and then populate >> with the appropriate data for that layer. >> >> Thanks. >> >> Dick Males >> Cincinnati, Ohio, USA >> >> ___ >> 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 mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
[Qgis-user] Copy field definitions from one vector layer to another?
I have been looking for a capability (plugin or native QGIS) that will easily copy the field definitions (not the attribute data) from one layer to another layer. To date I have not found it, I may be missing something obvious. Any help/advice much appreciated. I have a layer with a bunch of fields already defined, and another layer with geometry but no additional fields. I would like to add the field definitions from the first layer to the second layer, and then populate with the appropriate data for that layer. Thanks. Dick Males Cincinnati, Ohio, USA ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
[Qgis-user] Histogram placement and problems in diagram
QGIS 2.10.1, Windows 8.1, 64-bit When I place a histogram bar on a point through the diagrams option, using a single bar on a single variable, I get odd behavior. When I place it around the point, some points have the bar ascending from the point, some descend from the point. When I increase the zoom level, all bars extend up from the point. I would like all bars to ascend from the point at any zoom level. When I place the bar over the point, rather than around the point, almost all bars seem to disappear. When I convert to a pie chart, again the 'around point' works but all circles disappear when I select 'over point'. Any guidance as to why this might be would be appreciated. Richard Males Cincinnati, OH ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
[Qgis-user] Obtaining coordinates of polygon labeling points?
QGIS has an excellent feature under the layer/labeling menu advanced tab to turn on/off labeling every part of multi-part features, e.g. polygons. This labeling of every part appears to be the only option available through labeling via properties. (Version 1.7.2), but for the world and country maps I am using, a single label per polygon is much better. My question: Is it possible to capture the calculated single label labeling position and export this in some fashion. I would like to be able to store this as a geometry column in Postgres. Thanks. Dick Males Cincinnati, OH USA ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] QGIS and Computer Security (Windows)
Thank you and to all others who have posted replies. I did not expect that this issue would call forth so many responses. There have been a number of helpful suggestions. Please note that, in some cases, the users I am trying to convince are in government agencies that have very specific and stringent policies about software installation. In one case, only authorized IT personnel are permitted to install any software on employee computers. I am not sure that these policies have come up against the world of open-source, plug-in based architecture. I don't know if it goes totally against the philosophy of QGIS, but maybe there could be a feature to allow an admin option within QGIS to require password protection before being able to fetch plugins or activate plugins. I expect that it could be defeated, but might help to allay some concerns. Under this scenario, a QGIS administrator who could get at a QGIS security options screen where various features such as downloading plugins could be enabled/disabled for a particular user installation. If anyone is interested, the project I am working on involves estimating delay on transportation networks when roads are flooded. The architecture has the road network represented in QGIS, which is then exported to a Spatialite database via a contributed plugin. From there, a C# program reads the database and does the needed shortest path and delay cost estimation calculations. Choosing this architecture has made things very modular and workable. QGIS is wonderful software, this is a terrific community. I introduced QGIS to a professor who is working on my project and uses ArcGIS, showing him the line direction decoration capability and Nathan W's lineswitch plugin, and he responded: That's interesting about QGIS, because we have had much difficulty do the same thing in ArcGIS.. Thanks again to all who have responded. Dick On Wed, Feb 22, 2012 at 5:59 PM, Martin Dobias wonder...@gmail.com wrote: On Sat, Feb 18, 2012 at 5:08 PM, Richard Males rbma...@gmail.com wrote: I would very much appreciate any thoughts on if/how QGIS currently deals with this, or references to documentation or postings on the issue. Hi Richard Contributed QGIS python plugins have similar security issues like any other extension code that can be downloaded. It is important to note that with _any_ python plugin downloaded from repository you cannot be 100% sure that no malicious code is inside. The server could have been hacked, an author's credentials could be stolen or even a previously trusted author could put on his black hat (and add some malicious code intentionally)... In case you are aiming for maximum security I would recommend to use one of following approaches: 1. host a local repository within your organization with known and safe plugins. It is really easy to set up one (a web server + repository xml file + plugin archives). A customized installation of QGIS would use this repository by default. This is a flexible approach and allows upgrading/adding plugins quickly by the admin and it is convenient for users. 2. disable python plugin installer completely in a customized installation, put there only chosen plugins. Less flexible, but more secure - no new plugins, no updates to plugins. (But still possible to add plugin installer or other plugins manually) 3. provide an installation without qgispython library - that effectively disables running python code within QGIS. Most secure, least flexible. Anyway, AFAIK qgis itself should never try to do anything where it would need admin rights. So another piece of security (for users with some admin privileges) would be to disable qgis to escalate its rights. Regards Martin ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
[Qgis-user] QGIS and Computer Security (Windows)
I am interested in promoting the use of QGIS, but some users have expressed concern about computer security issues, particularly in respect to the use of plug-ins. The concern is that a downloaded plugin may contain malware, activate malicious code, etc. I don't know if there is any innate protection within QGIS or python against bad behavior on the part of plugins, or if this is a trust issue. I have searched online and in the forums for a discussion of this issue. I posted on the help forum, the responses were anecdotal in nature (e.g., I have been using QGIS for a few years, never had a problem), not technical. I would very much appreciate any thoughts on if/how QGIS currently deals with this, or references to documentation or postings on the issue. Thank you. R. Males Cincinnati, Ohio, USA ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user