[prev in list] [next in list] [prev in thread] [next in thread]
List: qgis-developer
Subject: Re: [Qgis-developer] Get the qgis project into the browser...
From: Christopher Stark <christopherstark () gmx ! de>
Date: 2011-11-08 8:05:47
Message-ID: 4EB8E2DB.3080605 () gmx ! de
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Hi Andreas,
I would like to choose the easiest way of displaying a complex
Qgis-project within a browser. I'm not sure if doing this with WMS or
the Qgis webclient is the easiest way.
Basically I want something like tilemill but with tilemill the whole
styling thing is a bit too complicated. So if it's possible with qgis to
simply display a complex map-projects with diagrams, raster-layers and
labeling in the browser that would be perfect for me. Later I would like
to have a look into TileCache (in order to use this for a website) but
for now being able to simply display the project in the browser is all I
want.
Christopher
Am 07.11.2011 20:59, schrieb Andreas Neumann:
> Hi Christopher,
>
> What are your goals? To setup a WMS server or to setup a Web-GIS with
> QGIS Webclient?
>
> One option to test if QGIS server is working properly as a WMS server,
> is to use QGIS desktop as a WMS client.
>
> QGIS web client is a different story to setup. First let us know what
> your goals are.
>
> Andreas
>
> On 11/07/2011 04:28 PM, Christopher Stark wrote:
> > Hi,
> >
> > I tried to make this qgis project visible in the browser:
> >
> > http://www.christopherstark.de/extern/qgis-server2.jpg
> >
> > I installed qgis server and it seems to work. When I use this URL below
> > (I think I changed it correctly to my settings) in the browser there is
> > only a white screen and no map.
> >
> > http://localhost/cgi-bin/qgistest1/qgis_mapserv.fcgi?SERVICE=WMS&VERSION=1.3.0&REQ \
> > UEST=GetMap&BBOX=54.215710,10.017432,50.05100,15.0004508&CRS=EPSG:4326&WIDTH=1077&HEIGHT=552&LAYERS=ostdeutschland-mercator2&FORMAT=image/png&DPI=96
> >
> > Can anyone here help me to get the right url in order to make the map
> > visible in the browser?
> >
> >
> > best regards
> > Christopher
> >
> >
> >
> > Am 19.10.2011 10:39, schrieb Noli Sicad:
> > > I guess you have read this,
> > >
> > >
> > >
> > > Noli
> > >
> > > On 10/19/11, Noli Sicad <nsicad@gmail.com> wrote:
> > > > Hi Christopher,
> > > >
> > > > The code that I posted is not complete.
> > > >
> > > > Did you include OpenLayers.js and CSS for the openlayers?
> > > >
> > > > Visit this link and to see the whole code,
> > > >
> > > > http://linfiniti.com/2011/09/qgis-server-with-tilecache/
> > > >
> > > > It seem the link is not working now. However, you browse the any
> > > > openlayers example and see how the post that I copied from Tim's is
> > > > used.
> > > >
> > > > Noli
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > On 10/19/11, Christopher Stark <christopherstark@gmx.de> wrote:
> > > > > Hi Noli,
> > > > >
> > > > > which parts in this code do I have to modify for my Qgis Server Project?
> > > > > I pasted this code into a html (index2.html) file within var/www/ but
> > > > > there is nothing displayed when I open
> > > > >
> > > > > localhost/index2.html
> > > > >
> > > > > best regards
> > > > > Christopher
> > > > >
> > > > >
> > > > > Am 16.10.2011 04:40, schrieb Noli Sicad:
> > > > > > > The most common web client being Openlayers, this will require work on
> > > > > > > your part, mainly a few lines of javascript in a web page. You might be
> > > > > > > able to use it directly in Geocommons or in Mapfish (also takes setup).
> > > > > > This is how Tim used it for OpenLayers client (below).
> > > > > >
> > > > > > Very few documentation how to actually use in OpenLayers and WMS.
> > > > > >
> > > > > > Noli
> > > > > >
> > > > > > ##############################################
> > > > > > <script type="text/javascript">
> > > > > > var map, layer;
> > > > > > function init(){
> > > > > > var MapOptions = {
> > > > > > projection: new OpenLayers.Projection("EPSG:32633"),
> > > > > > units: "m",
> > > > > > masxScale: 19567.879237500,
> > > > > > //maxScale:1000,
> > > > > > //minScale:17000000,
> > > > > > numZoomLevels: 10,
> > > > > > resolutions: [19567.8792375, 9783.93961875,
> > > > > > 4891.969809375, 2445.9849046875, 1222.99245234375, 611.496226171875,
> > > > > > 305.7481130859375, 152.87405654296876, 76.43702827148438,
> > > > > > 38.21851413574219],
> > > > > > maxExtent: new
> > > > > > OpenLayers.Bounds(-918304.23600184,6418410.00099619,1957227.50491800,7976533.94886646),
> > > > > >
> > > > > > fractionalZoom: false,
> > > > > > transitionEffect:"resize",
> > > > > > };
> > > > > >
> > > > > > map = new OpenLayers.Map( 'map', MapOptions );
> > > > > > layer = new OpenLayers.Layer.WMS( "OpenLayers WMS",
> > > > > > "http://maps.linfiniti.com/cgi-bin/tilecache.cgi",
> > > > > > {layers: 'utno-test'} );
> > > > > > map.addLayer(layer);
> > > > > > map.zoomToMaxExtent();
> > > > > > }
> > > > > > </script>
> > > > > > </head>
> > > > > > <body onload="init()">
> > > > > > <div id="map" class="map"></div>
> > > > > > </body>
> > > > > >
> > > > > > #########################################################
> > > > > > _______________________________________________
> > > > > > Qgis-developer mailing list
> > > > > > Qgis-developer@lists.osgeo.org
> > > > > > http://lists.osgeo.org/mailman/listinfo/qgis-developer
> >
> >
> > _______________________________________________
> > Qgis-developer mailing list
> > Qgis-developer@lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/qgis-developer
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer
[Attachment #5 (text/html)]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<title></title>
</head>
<body text="#000066" bgcolor="#ffffff">
<font face="Verdana">Hi Andreas,<br>
<br>
I would like to choose the easiest way of displaying a complex
Qgis-project within a browser. I'm not sure if doing this with WMS
or the Qgis webclient is the easiest way.<br>
Basically I want something like tilemill but with tilemill the
whole styling thing is a bit too complicated. So if it's possible
with qgis to simply display a complex map-projects with diagrams,
raster-layers and labeling in the browser that would be perfect
for me. Later I would like to have a look into TileCache (in order
to use this for a website) but for now being able to simply
display the project in the browser is all I want.<br>
<br>
Christopher<br>
<br>
</font><br>
Am 07.11.2011 20:59, schrieb Andreas Neumann:
<blockquote cite="mid:4EB8388D.4020203@carto.net" type="cite">
<pre wrap="">Hi Christopher,
What are your goals? To setup a WMS server or to setup a Web-GIS with
QGIS Webclient?
One option to test if QGIS server is working properly as a WMS server,
is to use QGIS desktop as a WMS client.
QGIS web client is a different story to setup. First let us know what
your goals are.
Andreas
On 11/07/2011 04:28 PM, Christopher Stark wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hi,
I tried to make this qgis project visible in the browser:
<a class="moz-txt-link-freetext" \
href="http://www.christopherstark.de/extern/qgis-server2.jpg">http://www.christopherstark.de/extern/qgis-server2.jpg</a>
I installed qgis server and it seems to work. When I use this URL below
(I think I changed it correctly to my settings) in the browser there is
only a white screen and no map.
<a class="moz-txt-link-freetext" \
href="http://localhost/cgi-bin/qgistest1/qgis_mapserv.fcgi?SERVICE=WMS&VERSION=1.3 \
.0&REQUEST=GetMap&BBOX=54.215710,10.017432,50.05100,15.0004508&CRS=EPSG:43 \
26&WIDTH=1077&HEIGHT=552&LAYERS=ostdeutschland-mercator2&FORMAT=image/ \
png&DPI=96">http://localhost/cgi-bin/qgistest1/qgis_mapserv.fcgi?SERVICE=WMS&V \
ERSION=1.3.0&REQUEST=GetMap&BBOX=54.215710,10.017432,50.05100,15.0004508&C \
RS=EPSG:4326&WIDTH=1077&HEIGHT=552&LAYERS=ostdeutschland-mercator2&FORMAT=image/png&DPI=96</a>
Can anyone here help me to get the right url in order to make the map
visible in the browser?
best regards
Christopher
Am 19.10.2011 10:39, schrieb Noli Sicad:
</pre>
<blockquote type="cite">
<pre wrap="">I guess you have read this,
Noli
On 10/19/11, Noli Sicad <a class="moz-txt-link-rfc2396E" \
href="mailto:nsicad@gmail.com"><nsicad@gmail.com></a> wrote: </pre>
<blockquote type="cite">
<pre wrap="">Hi Christopher,
The code that I posted is not complete.
Did you include OpenLayers.js and CSS for the openlayers?
Visit this link and to see the whole code,
<a class="moz-txt-link-freetext" \
href="http://linfiniti.com/2011/09/qgis-server-with-tilecache/">http://linfiniti.com/2011/09/qgis-server-with-tilecache/</a>
It seem the link is not working now. However, you browse the any
openlayers example and see how the post that I copied from Tim's is
used.
Noli
On 10/19/11, Christopher Stark <a class="moz-txt-link-rfc2396E" \
href="mailto:christopherstark@gmx.de"><christopherstark@gmx.de></a> wrote: \
</pre> <blockquote type="cite">
<pre wrap="">Hi Noli,
which parts in this code do I have to modify for my Qgis Server Project?
I pasted this code into a html (index2.html) file within var/www/ but
there is nothing displayed when I open
localhost/index2.html
best regards
Christopher
Am 16.10.2011 04:40, schrieb Noli Sicad:
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">The most common web client being Openlayers, this will \
require work on your part, mainly a few lines of javascript in a web page. You might \
be able to use it directly in Geocommons or in Mapfish (also takes setup).
</pre>
</blockquote>
<pre wrap="">This is how Tim used it for OpenLayers client (below).
Very few documentation how to actually use in OpenLayers and WMS.
Noli
##############################################
<script type="text/javascript">
var map, layer;
function init(){
var MapOptions = {
projection: new OpenLayers.Projection("EPSG:32633"),
units: "m",
masxScale: 19567.879237500,
//maxScale:1000,
//minScale:17000000,
numZoomLevels: 10,
resolutions: [19567.8792375, 9783.93961875,
4891.969809375, 2445.9849046875, 1222.99245234375, 611.496226171875,
305.7481130859375, 152.87405654296876, 76.43702827148438,
38.21851413574219],
maxExtent: new
OpenLayers.Bounds(-918304.23600184,6418410.00099619,1957227.50491800,7976533.94886646),
fractionalZoom: false,
transitionEffect:"resize",
};
map = new OpenLayers.Map( 'map', MapOptions );
layer = new OpenLayers.Layer.WMS( "OpenLayers WMS",
<a class="moz-txt-link-rfc2396E" \
href="http://maps.linfiniti.com/cgi-bin/tilecache.cgi">"http://maps.linfiniti.com/cgi-bin/tilecache.cgi"</a>,
{layers: 'utno-test'} );
map.addLayer(layer);
map.zoomToMaxExtent();
}
</script>
</head>
<body onload="init()">
<div id="map" class="map"></div>
</body>
#########################################################
_______________________________________________
Qgis-developer mailing list
<a class="moz-txt-link-abbreviated" \
href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a> <a \
class="moz-txt-link-freetext" \
href="http://lists.osgeo.org/mailman/listinfo/qgis-developer">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a>
</pre>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
<pre wrap="">
_______________________________________________
Qgis-developer mailing list
<a class="moz-txt-link-abbreviated" \
href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a> <a \
class="moz-txt-link-freetext" \
href="http://lists.osgeo.org/mailman/listinfo/qgis-developer">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a>
</pre>
</blockquote>
<pre wrap="">
_______________________________________________
Qgis-developer mailing list
<a class="moz-txt-link-abbreviated" \
href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a> <a \
class="moz-txt-link-freetext" \
href="http://lists.osgeo.org/mailman/listinfo/qgis-developer">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a>
</pre>
</blockquote>
</body>
</html>
_______________________________________________
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic