Re: [mapserver-users] Is there a way to convert a QGIS layout into a ".map" file?

2015-03-19 Thread Jeff McKenna

On 2015-03-19 7:58 AM, deduikertjes wrote:


You can do this conversion by python-mapscript. The rt_mapserver_plugins
uses this technique.

By the way the SLD export contains a bug on negative values (all ready
reported by Maarten Tromp).


I noticed the use of Python mapscript by that plugin, very nice.  There 
must be some way we can get these two project teams (QGIS and MapServer) 
to work together.


-jeff







--
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Is there a way to convert a QGIS layout into a ".map" file?

2015-03-19 Thread deduikertjes
Rahkonen Jukka (MML) wrote
> Hi,
> 
> The SLD output of QGIS can be good but I am not so sure how good Mapserver
> is with importing SLD. That could be tested through WMS GetMap and &SLD=
> or with &SLD_BODY= but there is no tool for converting SLD into layer
> styles as text which could be saved and used in static mapfiles, or is
> there?
> 
> -Jukka Rahkonen-

You can do this conversion by python-mapscript. The rt_mapserver_plugins
uses this technique.

By the way the SLD export contains a bug on negative values (all ready
reported by Maarten Tromp).



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Re-Is-there-a-way-to-convert-a-QGIS-layout-into-a-map-file-tp5194108p5194413.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Is there a way to convert a QGIS layout into a ".map" file?

2015-03-19 Thread Rahkonen Jukka (MML)
Hi,

Hi,

The SLD output of QGIS can be good but I am not so sure how good Mapserver is 
with importing SLD. That could be tested through WMS GetMap and &SLD= or with 
&SLD_BODY= but there is no tool for converting SLD into layer styles as text 
which could be saved and used in static mapfiles, or is there?

-Jukka Rahkonen-

-Alkuperäinen viesti-
Lähettäjä: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] Puolesta b.j.kob...@utwente.nl
Lähetetty: 19. maaliskuuta 2015 9:38
Vastaanottaja: jmcke...@gatewaygeomatics.com; mapserver-users@lists.osgeo.org
Aihe: Re: [mapserver-users] Is there a way to convert a QGIS layout into a 
".map" file?

I am all for QGIS-MapServer integration!
As an aside, getting QGIS styling per se into MapServer can of course also be 
done through SLD: QGIS SLD export is pretty good -- although of course will 
only give you layer styles, not a full map setup.

--
Barend Köbben



On 19-03-15 00:10, "Jeff McKenna"  wrote:

>I wonder the same, especially seeing that plugin code living on GitHub.
>  Think of how QGIS has become the frontend for GRASS, it 
>could(should!) be the frontend for MapServer.
>
>There is definitely huge momentum in the QGIS community (I've even been 
>asked to attend their first QGIS conference, and followup dev meeting, 
>in May).  I can imagine/dream of a joint MapServer/QGIS code sprint, 
>totally funded (as a few of the OpenLayers3 sprints were) happening 
>someday. Would be amazing.
>
>-jeff
>
>
>
>
>On 2015-03-18 2:50 PM, Lime, Steve D (MNIT) wrote:
>> I've wondered if we could/should pull the plug-in into the MapServer 
>>project itself.
>>
>> -Original Message-
>> From: mapserver-users-boun...@lists.osgeo.org
>>[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Rahkonen 
>>Jukka (MML)
>> Sent: Wednesday, March 18, 2015 3:16 AM
>> To: Michael Kleih; mapserver-users@lists.osgeo.org
>> Subject: Re: [mapserver-users] Is there a way to convert a QGIS 
>>layout into a ".map" file?
>>
>> Hi,
>>
>> There is this plugin
>>http://plugins.qgis.org/plugins/rt_mapserver_exporter/
>> and old documentation
>>http://docs.qgis.org/1.8/en/docs/user_manual/plugins/plugins_mapserver
>>_ex
>>port.html
>>
>> Unfortunately the plugin makes mapfiles which were usable as-is with 
>>Mapserver 5.x but not since that. It also creates mapfiles which I do 
>>not like a lot because it is lazy with PROJECTION blocks etc. but that 
>>is at least partly matter of taste. But if you know how to write valid 
>>mapfiles for Mapserver v. 6.x and above then that plugin does make 
>>usable templates which can save time. It would be nice to get that 
>>plugin up-to-date.
>>
>> Other alternatives which do not help with QGIS styles but are worth 
>>having a look:  http://scribeui.org/ and 
>>http://gisinternals.com/mapmanager.html
>>
>> -Jukka Rahkonen-
>>
>>
>>
>> Michael Kleih wrote:
>>
>>> Hello all,
>>> I am using Mapserver since nearly 20 years and like it a lot.
>>> QGIS is getting better and better and it would be nice to layout a 
>>>map in QGIS and then convert it to a ".map"-file to be used with Mapserver.
>>> Does anybody know if this is possible?
>>
>>> Thanks to all,
>>> Michael
>> ___
>> mapserver-users mailing list
>> mapserver-users@lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>> ___
>> mapserver-users mailing list
>> mapserver-users@lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>> ___
>> mapserver-users mailing list
>> mapserver-users@lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>
>
>
>--
>Jeff McKenna
>MapServer Consulting and Training Services 
>http://www.gatewaygeomatics.com/ 
>___
>mapserver-users mailing list
>mapserver-users@lists.osgeo.org
>http://lists.osgeo.org/mailman/listinfo/mapserver-users

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Is there a way to convert a QGIS layout into a ".map" file?

2015-03-19 Thread b.j.kobben
I am all for QGIS-MapServer integration!
As an aside, getting QGIS styling per se into MapServer can of course also
be done through SLD: QGIS SLD export is pretty good -- although of course
will only give you layer styles, not a full map setup.

--
Barend Köbben



On 19-03-15 00:10, "Jeff McKenna"  wrote:

>I wonder the same, especially seeing that plugin code living on GitHub.
>  Think of how QGIS has become the frontend for GRASS, it could(should!)
>be the frontend for MapServer.
>
>There is definitely huge momentum in the QGIS community (I've even been
>asked to attend their first QGIS conference, and followup dev meeting,
>in May).  I can imagine/dream of a joint MapServer/QGIS code sprint,
>totally funded (as a few of the OpenLayers3 sprints were) happening
>someday. Would be amazing.
>
>-jeff
>
>
>
>
>On 2015-03-18 2:50 PM, Lime, Steve D (MNIT) wrote:
>> I've wondered if we could/should pull the plug-in into the MapServer
>>project itself.
>>
>> -Original Message-
>> From: mapserver-users-boun...@lists.osgeo.org
>>[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Rahkonen
>>Jukka (MML)
>> Sent: Wednesday, March 18, 2015 3:16 AM
>> To: Michael Kleih; mapserver-users@lists.osgeo.org
>> Subject: Re: [mapserver-users] Is there a way to convert a QGIS layout
>>into a ".map" file?
>>
>> Hi,
>>
>> There is this plugin
>>http://plugins.qgis.org/plugins/rt_mapserver_exporter/
>> and old documentation
>>http://docs.qgis.org/1.8/en/docs/user_manual/plugins/plugins_mapserver_ex
>>port.html
>>
>> Unfortunately the plugin makes mapfiles which were usable as-is with
>>Mapserver 5.x but not since that. It also creates mapfiles which I do
>>not like a lot because it is lazy with PROJECTION blocks etc. but that
>>is at least partly matter of taste. But if you know how to write valid
>>mapfiles for Mapserver v. 6.x and above then that plugin does make
>>usable templates which can save time. It would be nice to get that
>>plugin up-to-date.
>>
>> Other alternatives which do not help with QGIS styles but are worth
>>having a look:  http://scribeui.org/ and
>>http://gisinternals.com/mapmanager.html
>>
>> -Jukka Rahkonen-
>>
>>
>>
>> Michael Kleih wrote:
>>
>>> Hello all,
>>> I am using Mapserver since nearly 20 years and like it a lot.
>>> QGIS is getting better and better and it would be nice to layout a map
>>>in QGIS and then convert it to a ".map"-file to be used with Mapserver.
>>> Does anybody know if this is possible?
>>
>>> Thanks to all,
>>> Michael
>> ___
>> mapserver-users mailing list
>> mapserver-users@lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>> ___
>> mapserver-users mailing list
>> mapserver-users@lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>> ___
>> mapserver-users mailing list
>> mapserver-users@lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>
>
>
>-- 
>Jeff McKenna
>MapServer Consulting and Training Services
>http://www.gatewaygeomatics.com/
>___
>mapserver-users mailing list
>mapserver-users@lists.osgeo.org
>http://lists.osgeo.org/mailman/listinfo/mapserver-users

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Is there a way to convert a QGIS layout into a ".map" file?

2015-03-18 Thread Ben Madin
+1

On Thursday, March 19, 2015, Lime, Steve D (MNIT) 
wrote:

> I've wondered if we could/should pull the plug-in into the MapServer
> project itself.
>
> -Original Message-
> From: mapserver-users-boun...@lists.osgeo.org  [mailto:
> mapserver-users-boun...@lists.osgeo.org ] On Behalf Of
> Rahkonen Jukka (MML)
> Sent: Wednesday, March 18, 2015 3:16 AM
> To: Michael Kleih; mapserver-users@lists.osgeo.org 
> Subject: Re: [mapserver-users] Is there a way to convert a QGIS layout
> into a ".map" file?
>
> Hi,
>
> There is this plugin
> http://plugins.qgis.org/plugins/rt_mapserver_exporter/
> and old documentation
> http://docs.qgis.org/1.8/en/docs/user_manual/plugins/plugins_mapserver_export.html
>
> Unfortunately the plugin makes mapfiles which were usable as-is with
> Mapserver 5.x but not since that. It also creates mapfiles which I do not
> like a lot because it is lazy with PROJECTION blocks etc. but that is at
> least partly matter of taste. But if you know how to write valid mapfiles
> for Mapserver v. 6.x and above then that plugin does make usable templates
> which can save time. It would be nice to get that plugin up-to-date.
>
> Other alternatives which do not help with QGIS styles but are worth having
> a look:  http://scribeui.org/ and  http://gisinternals.com/mapmanager.html
>
> -Jukka Rahkonen-
>
>
>
> Michael Kleih wrote:
>
> > Hello all,
> > I am using Mapserver since nearly 20 years and like it a lot.
> > QGIS is getting better and better and it would be nice to layout a map
> in QGIS and then convert it to a ".map"-file to be used with Mapserver.
> > Does anybody know if this is possible?
>
> > Thanks to all,
> > Michael
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org 
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org 
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org 
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>


-- 
Sent from my iPhone.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Is there a way to convert a QGIS layout into a ".map" file?

2015-03-18 Thread Jeff McKenna
I wonder the same, especially seeing that plugin code living on GitHub. 
 Think of how QGIS has become the frontend for GRASS, it could(should!) 
be the frontend for MapServer.


There is definitely huge momentum in the QGIS community (I've even been 
asked to attend their first QGIS conference, and followup dev meeting, 
in May).  I can imagine/dream of a joint MapServer/QGIS code sprint, 
totally funded (as a few of the OpenLayers3 sprints were) happening 
someday. Would be amazing.


-jeff




On 2015-03-18 2:50 PM, Lime, Steve D (MNIT) wrote:

I've wondered if we could/should pull the plug-in into the MapServer project 
itself.

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Rahkonen Jukka 
(MML)
Sent: Wednesday, March 18, 2015 3:16 AM
To: Michael Kleih; mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Is there a way to convert a QGIS layout into a 
".map" file?

Hi,

There is this plugin http://plugins.qgis.org/plugins/rt_mapserver_exporter/
and old documentation 
http://docs.qgis.org/1.8/en/docs/user_manual/plugins/plugins_mapserver_export.html

Unfortunately the plugin makes mapfiles which were usable as-is with Mapserver 
5.x but not since that. It also creates mapfiles which I do not like a lot 
because it is lazy with PROJECTION blocks etc. but that is at least partly 
matter of taste. But if you know how to write valid mapfiles for Mapserver v. 
6.x and above then that plugin does make usable templates which can save time. 
It would be nice to get that plugin up-to-date.

Other alternatives which do not help with QGIS styles but are worth having a 
look:  http://scribeui.org/ and  http://gisinternals.com/mapmanager.html

-Jukka Rahkonen-



Michael Kleih wrote:


Hello all,
I am using Mapserver since nearly 20 years and like it a lot.
QGIS is getting better and better and it would be nice to layout a map in QGIS and then 
convert it to a ".map"-file to be used with Mapserver.
Does anybody know if this is possible?



Thanks to all,
Michael

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users




--
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Is there a way to convert a QGIS layout into a ".map" file?

2015-03-18 Thread Lime, Steve D (MNIT)
I've wondered if we could/should pull the plug-in into the MapServer project 
itself.

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Rahkonen Jukka 
(MML)
Sent: Wednesday, March 18, 2015 3:16 AM
To: Michael Kleih; mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Is there a way to convert a QGIS layout into a 
".map" file?

Hi,

There is this plugin http://plugins.qgis.org/plugins/rt_mapserver_exporter/
and old documentation 
http://docs.qgis.org/1.8/en/docs/user_manual/plugins/plugins_mapserver_export.html

Unfortunately the plugin makes mapfiles which were usable as-is with Mapserver 
5.x but not since that. It also creates mapfiles which I do not like a lot 
because it is lazy with PROJECTION blocks etc. but that is at least partly 
matter of taste. But if you know how to write valid mapfiles for Mapserver v. 
6.x and above then that plugin does make usable templates which can save time. 
It would be nice to get that plugin up-to-date.

Other alternatives which do not help with QGIS styles but are worth having a 
look:  http://scribeui.org/ and  http://gisinternals.com/mapmanager.html 

-Jukka Rahkonen-



Michael Kleih wrote: 

> Hello all,
> I am using Mapserver since nearly 20 years and like it a lot.
> QGIS is getting better and better and it would be nice to layout a map in 
> QGIS and then convert it to a ".map"-file to be used with Mapserver. 
> Does anybody know if this is possible?

> Thanks to all,
> Michael
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Is there a way to convert a QGIS layout into a ".map" file?

2015-03-18 Thread Jörg Thomsen
Am 18.03.2015 um 13:20 schrieb Jeff McKenna:
> Hi Michael,
> 
> I am with you on how important QGIS is for our workflow.
> 
> I am aware of a MapServer plugin that is designed for QGIS 2.x, however
> I use the standalone QGIS always, so I have yet to be able to test it
> (it is however available with OSGeo4W apparently).  Give it a try:
> https://plugins.qgis.org/plugins/rt_mapserver_exporter/

it works for file-datasources and there is a wrong definition for
postgis-connections ('USING UNIQUE epsg' instead of 'USING SRID epsg').
But you should have to look at the mapfile in any case.

For finding and using the extension in qgis you have enable the
experimantal plugins.

Jörg

> 
> The code for it lives on GitHub
> (https://github.com/faunalia/rt_mapserver_exporter), so maybe some
> passionate MapServer devs can contribute.
> 
> -jeff
> 

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Is there a way to convert a QGIS layout into a ".map" file?

2015-03-18 Thread Jeff McKenna

Hi Michael,

I am with you on how important QGIS is for our workflow.

I am aware of a MapServer plugin that is designed for QGIS 2.x, however 
I use the standalone QGIS always, so I have yet to be able to test it 
(it is however available with OSGeo4W apparently).  Give it a try: 
https://plugins.qgis.org/plugins/rt_mapserver_exporter/


The code for it lives on GitHub 
(https://github.com/faunalia/rt_mapserver_exporter), so maybe some 
passionate MapServer devs can contribute.


-jeff

--
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/



On 2015-03-18 4:47 AM, Michael Kleih wrote:


Hello all,
I am using Mapserver since nearly 20 years and like it a lot.
QGIS is getting better and better and it would be nice to layout a map
in QGIS and then convert it to a ".map"-file to be used with Mapserver.
Does anybody know if this is possible?

Thanks to all,
Michael



___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Is there a way to convert a QGIS layout into a ".map" file?

2015-03-18 Thread Rahkonen Jukka (MML)
Hi,

There is this plugin http://plugins.qgis.org/plugins/rt_mapserver_exporter/
and old documentation 
http://docs.qgis.org/1.8/en/docs/user_manual/plugins/plugins_mapserver_export.html

Unfortunately the plugin makes mapfiles which were usable as-is with Mapserver 
5.x but not since that. It also creates mapfiles which I do not like a lot 
because it is lazy with PROJECTION blocks etc. but that is at least partly 
matter of taste. But if you know how to write valid mapfiles for Mapserver v. 
6.x and above then that plugin does make usable templates which can save time. 
It would be nice to get that plugin up-to-date.

Other alternatives which do not help with QGIS styles but are worth having a 
look:  http://scribeui.org/ and  http://gisinternals.com/mapmanager.html 

-Jukka Rahkonen-



Michael Kleih wrote: 

> Hello all,
> I am using Mapserver since nearly 20 years and like it a lot.
> QGIS is getting better and better and it would be nice to layout a map in 
> QGIS and then convert it to a ".map"-file to be used with Mapserver. 
> Does anybody know if this is possible?

> Thanks to all,
> Michael
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Is there a way to convert a QGIS layout into a ".map" file?

2015-03-18 Thread Michael Kleih


Hello all,
I am using Mapserver since nearly 20 years and like it a lot.
QGIS is getting better and better and it would be nice to layout a map 
in QGIS and then convert it to a ".map"-file to be used with Mapserver. 
Does anybody know if this is possible?


Thanks to all,
Michael
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users