Re: [Qgis-user] my QGIS 2.18 won't load usgs geojson feed not a valid source....
Try https rather than http. We're under a directive from the Office of Management and Budget to convert all Federal web sites to use https only by December 31st. Peter On Thu, Dec 8, 2016 at 3:01 PM, Chris Housewrote: > Unfortunately, its not a vm. I am in a area with no networking so I'm > tethered on my phone. All other internet (thunderbird email, firefox, > pidgin etc..) works great. However, I wouldn't be surprised if this is > networking then > > On Dec 8, 2016 2:25 PM, "Randal Hale" > wrote: >> >> Let me see if I can break it on my end. It's opening for me and I just >> opened it with a random win protocol I just picked. >> >> Lemme do some digging - I'm not entirely sure why yours isn't opening. I'm >> running xubuntu 16.04 and qgis 2.18.1 and it works. >> >> Are you in a Virtual Machine or installed on a computer? This is going to >> sound stupid but is your networking up? Can you ping something on the >> outside world. I just turned networking off and got the same error. I'm >> hoping you're about to save you're in a VM and maybe the networking is being >> weird. >> >> Randy >> >> On 12/08/2016 02:11 PM, Chris House wrote: >> >> Initially I left it as utf-8 but when that didn't work thought maybe there >> was a reason to switch to the win encodingso utf-8 not working either. >> >> On Dec 8, 2016 2:06 PM, "Randal Hale" >> wrote: >>> >>> I would leave (or change) the encoding to UTF-8. It opened for me with >>> that setting. >>> >>> Randy >>> >>> >>> On 12/08/2016 01:57 PM, Chris House wrote: >>> >>> I am on ubuntu 16.04 and I am unable to do something i've done in >>> windows. I am trying to pull the geoson earth quake feed from usgs. >>> >>> The link to the feeds is here... >>> >>> http://earthquake.usgs.gov/earthquakes/feed/v1.0/geojson.php >>> >>> ...the actual feed I used is this one (there are several on the above >>> link) >>> >>> >>> http://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_month.geojson >>> >>> I am told by my QGIS installation of 2.18 on Ubuntu 16.04 that it is not >>> a valid source. Anyone else have this problem and/or can get it to work? >>> >>> 1) add vector >>> 2) change source type to protocol >>> 3) encoding is set to win 1532 >>> 4) protocal type geojson >>> 5)geoson feed url >>> >>> Invalid Data Source: >>> http://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_month.geojson >>> is not a valid or recognized data source >>> >>> >>> >>> Thanks for your help!! >>> >>> --Chris >>> >>> >>> ___ >>> 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 >>> >>> -- >>> - >>> Randal Hale >>> North River Geographic Systems, Inc >>> http://www.northrivergeographic.com >>> 423.653.3611 rjh...@northrivergeographic.com >>> twitter:rjhale >> >> -- >> - >> Randal Hale >> North River Geographic Systems, Inc >> http://www.northrivergeographic.com >> 423.653.3611 rjh...@northrivergeographic.com >> twitter:rjhale > > > ___ > 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 -- Peter N. Schweitzer (U.S. Geological Survey, Reston, VA 20192) (703) 648-6533 email: pschweit...@usgs.gov http://geology.usgs.gov/peter/ https://orcid.org/-0002-9532-6681 ___ 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] xml metadata in PostGIS table
Richard, In PostgreSQL, I store some whole documents as XML, using create table something ( rec_id integer, record xml ); and then insert like this: insert into something (rec_id,record) values ( 1,XMLPARSE (DOCUMENT '<...')); By defining the field "record" as xml, I can use XML functions within PostgreSQL to look at the contents (though I rarely do this). But the parsing step also catches improper XML and rejects the insert with an error message, very helpful. Is this the sort of information you're after? Peter On Tue, Sep 13, 2016 at 11:08 AM, Richard McDonnellwrote: > Hello all, > I apologise if this is the incorrect forum for this question, but... > Im looking to create a table and I want to insert the xml as an attribute. > Anyone who uses the database stored styling in QGIS will have an idea what > Im on about. > I have thousands of these xml files and I want to insert the contents of > each file. > I have looked, but cant find it anywhere about the whole document in one > field. > Any help appreciated. > Regards, > > Richard. > > OPW - Ag féachaint don am atá le teacht - Ag caomhnú ón am atá thart > OPW - Looking to the future - Caring for the past > > *** > Email Disclaimer: http://www.opw.ie/en/disclaimer/ > > ___ > 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 -- Peter N. Schweitzer (U.S. Geological Survey, Reston, VA 20192) (703) 648-6533 email: pschweit...@usgs.gov http://geology.usgs.gov/peter/ ___ 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] QML reference, symbolize synonyms alike
With many thanks to Richard McDonnell, his suggestion of using rules instead of categories solved the problem I had. The result is http://mrdata.usgs.gov/geology/state/lithclass.qml with context provided by http://mrdata.usgs.gov/geology/state/ I'm still a little puzzled by what's required and what is not required in the QML file; I'm guessing that the solution would be to delve into the QGIS source code, but it would be nice to have at least a rudimentary document; I simply used the automatically-generated qml as an example, then omitted a lot of things, but was pleased at how simple I could make it and have it still work. Thanks! Peter On Thu, Oct 15, 2015 at 6:46 AM, Richard McDonnell <richard.mcdonn...@opw.ie> wrote: > Peter > > I would advise you to use the QGIS rule based symbology to do what you > require, the filter would be something like:- > > your attribute_column _name = 'carbonate rock' OR area_code = 'carbonate' > > keeping it simple!! > > This should do the trick for you. > Regards, > > Richard. > > > On 14/10/2015 17:20, Schweitzer, Peter wrote: > > Is there a QML reference document? > > What I really want to do is specify that two different category values > will have the same symbol, like this: > label="Carbonate rock"/> > > I want to read this as > > when the value of the attribute is EITHER "carbonate rock" OR > "carbonate", render the feature using the symbol named "64" > > But this does not have the effect that I want, so I'm thinking > incorrectly about how the QML file works. > > I would welcome advice on how to do what I want, or direction to the > QML reference, or both. > > Thanks! > > Peter > > > OPW - Ag féachaint don am atá le teacht - Ag caomhnú ón am atá thart > OPW - Looking to the future - Caring for the past > > Email Disclaimer: http://www.opw.ie/en/disclaimer/ > > ___ > Qgis-user mailing list > Qgis-user@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/qgis-user -- Peter N. Schweitzer (U.S. Geological Survey, Reston, VA 20192) (703) 648-6533 email: pschweit...@usgs.gov http://geology.usgs.gov/peter/ ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
[Qgis-user] QML reference, symbolize synonyms alike
Is there a QML reference document? What I really want to do is specify that two different category values will have the same symbol, like this: I want to read this as when the value of the attribute is EITHER "carbonate rock" OR "carbonate", render the feature using the symbol named "64" But this does not have the effect that I want, so I'm thinking incorrectly about how the QML file works. I would welcome advice on how to do what I want, or direction to the QML reference, or both. Thanks! Peter -- Peter N. Schweitzer (U.S. Geological Survey, Reston, VA 20192) (703) 648-6533 email: pschweit...@usgs.gov http://geology.usgs.gov/peter/ ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user