Re: [Qgis-user] change CRS of WFS layer

2013-06-13 Thread Richard Duivenvoorde

On 13-06-13 05:12, Paul Haakma wrote:

Hi All

Does anyone know of a way to change the crs of a wfs layer? The 'Add WFS
Layer' dialog box has a 'Change' button but it does not allow you to
alter the CRS at all.

The data set I am trying to access is from LINZ
http://data.linz.govt.nz/ and according to their notes it is possible to
alter the CRS within the request - as per quote copied from their help
notes:

The easiest way to re-project your data on the fly is to add the
‘SRSName’ parameter and an EPSG coordinate system id
http://www.epsg-registry.org/ to your request:

SRSName=SRSName

For example, a request of a NZ Government GNSS CORS layer in NZTM2000
http://www.linz.govt.nz/geodetic/datums-projections-heights/projections/new-zealand-transverse-mercator-2000
 (EPSG:2193)
would look like the following:

http://wfs.data.linz.govt.nz/your-API-key/v/x1029/wfs?service=WFSrequest=GetCapabilities*SRSName=EPSG:2193*


So it is possible but QGIS currently seems to not allow it? Does anyone
know of a way to override this?



Have you tried to just put it in the WFS url, so adding 
SRSName=EPSG:2193 (maybe try with and without caps)


Or else, try if via the python console, see:

http://www.qgis.nl/2012/10/15/english-python-one-liners-for-adding-wms-wmts-wfs-layers/?lang=en

If you sent me a key to try, I can do some testing.

Regards,

Richard Duivenvoorde
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] change CRS of WFS layer

2013-06-12 Thread Paul Haakma
Hi All

Does anyone know of a way to change the crs of a wfs layer? The 'Add WFS
Layer' dialog box has a 'Change' button but it does not allow you to alter
the CRS at all.

The data set I am trying to access is from LINZ http://data.linz.govt.nz/ and
according to their notes it is possible to alter the CRS within the request
- as per quote copied from their help notes:

The easiest way to re-project your data on the fly is to add the ‘SRSName’
parameter and an EPSG coordinate system id http://www.epsg-registry.org/ to
your request:

SRSName=SRSName

For example, a request of a NZ Government GNSS CORS layer in
NZTM2000http://www.linz.govt.nz/geodetic/datums-projections-heights/projections/new-zealand-transverse-mercator-2000
(EPSG:2193)
would look like the following:

http://wfs.data.linz.govt.nz/
your-API-key/v/x1029/wfs?service=WFSrequest=GetCapabilities*
SRSName=EPSG:2193*

So it is possible but QGIS currently seems to not allow it? Does anyone
know of a way to override this?

Note - downloading and re-projecting is not a solution in this case, I want
the dataset (legal title boundaries) streamed live to various users. If I
leave it in it's current CRS (4167) which is unprojected, it displays
correctly when using on-the-fly reprojection within QGIS, but then trying
to access the $area for a label or using the identify tool crashes QGIS.

Am using Windows version, version 009a7d on Win 8 and also tried latest
build from a couple of nights ago on a Win 7 machine.

Any help appreciated. (Apologies if this comes through twice)

-- 
-Paul
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Change CRS of WFS layer

2011-04-26 Thread Giovanni Manghi
Hi,

 When I load a layer from Geoserver using the wfs plugin, how do I
 change the declared layer srs to a different crs? The Change... button
 in the plugin doesn't allow me to select other crs. Only the declared
 srs of the wfs layer is available.



you can't, a specific wfs layer can be served only in one CRS, at least
on UMN Mapserver.

Nevertheless you can reproject as you want the wfs layer as any other
vector layer.

Cheers

-- Giovanni --

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Change CRS of WFS layer

2011-04-26 Thread Hilmy Hashim
But isn't wfs suppose to allow you change the CRS and have it serve the
reprojected data? In any case, what is the purpose of the CRS Change button
in the plugin?

My problem is, qgis does not at the moment handle my projections (EPSG:3168
and 3375) correctly. This is my work-around using wfs from Geoserver,

Thanks and regards

*Hilmy*


On Wed, Apr 27, 2011 at 3:10 AM, Giovanni Manghi
giovanni.man...@gmail.comwrote:

 Hi,

  When I load a layer from Geoserver using the wfs plugin, how do I
  change the declared layer srs to a different crs? The Change... button
  in the plugin doesn't allow me to select other crs. Only the declared
  srs of the wfs layer is available.



 you can't, a specific wfs layer can be served only in one CRS, at least
 on UMN Mapserver.

 Nevertheless you can reproject as you want the wfs layer as any other
 vector layer.

 Cheers

 -- Giovanni --


___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Change CRS of WFS layer

2011-04-26 Thread Giovanni Manghi
Hi,

On Wed, 2011-04-27 at 03:18 +0800, Hilmy Hashim wrote:
 But isn't wfs suppose to allow you change the CRS and have it serve
 the reprojected data? In any case, what is the purpose of the CRS
 Change button in the plugin?


this is from the Mapserver manual

Contrary to WMS, the OGC WFS specification doesn’t allow a layer
(feature type) to be advertised in more than one SRS. Also, there is no
default SRS that applies to all layers by default in the OGC WFS spec.
However, it is possible to have every layer in a WFS server advertised
in a different SRS.


so it seems it is really a protocol limitation.




 My problem is, qgis does not at the moment handle my projections
 (EPSG:3168 and 3375) correctly. 

how so?


cheers

-- Giovanni --


___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Change CRS of WFS layer

2011-04-26 Thread Hilmy Hashim
Yes, I was just reading that. I was confusing it with wms. So I should set
the CRS at the server end.

But I still wonder about the Change button in the plugin...?

Thanks and regards.

*Hilmy*


On Wed, Apr 27, 2011 at 3:41 AM, Giovanni Manghi
giovanni.man...@gmail.comwrote:

 Hi,

 On Wed, 2011-04-27 at 03:18 +0800, Hilmy Hashim wrote:
  But isn't wfs suppose to allow you change the CRS and have it serve
  the reprojected data? In any case, what is the purpose of the CRS
  Change button in the plugin?


 this is from the Mapserver manual

 Contrary to WMS, the OGC WFS specification doesn’t allow a layer
 (feature type) to be advertised in more than one SRS. Also, there is no
 default SRS that applies to all layers by default in the OGC WFS spec.
 However, it is possible to have every layer in a WFS server advertised
 in a different SRS.


 so it seems it is really a protocol limitation.




  My problem is, qgis does not at the moment handle my projections
  (EPSG:3168 and 3375) correctly.

 how so?


 cheers

 -- Giovanni --



___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user