[mapserver-users] Mapserver + KML-File Problem

2010-06-24 Thread Bryan Hempen

hi there!

i have trouble displaying point of interests from a KML file.
i followed the description on http://mapserver.org/input/vector/kml.html

http://igf-project.igf.uos.de/~bhempen/Gruenderlandkarte/ is where i 
want to display the data, the template is located at 
http://igf-project.igf.uos.de/~bhempen/Gruenderlandkarte/template.html


this is the content of the mapfile:

MAP
NAME   'Gastronomapkarte'
STATUS ON
#EXTENT 3427065.20 5788323.53 3443999.37 5800691.66
#EXTENT 7.9189 52.2102 8.1716 52.3467
EXTENT 88 684 915000 686
IMAGECOLOR 255 255 255
SIZE  700 700
 SYMBOLSET'symbols/symbols.sym'
 FONTSET   'fonts/fonts.list'


 WEB
TEMPLATE  'template.html'
IMAGEPATH '/home/bhempen/public_html/routingtest/tmp/'
IMAGEURL   '/~bhempen/routingtest/tmp/'




METADATA
  'WMS_TITLE'   'Firmen'
 'WMS_FEATURE_INFO_MIME_TYPE' 'text/html'
'WMS_ONLINERESOURCE'   
'http://igf-project.igf.uos.de/cgi-bin/mapserv?map=/home/bhempen/public_html/Gruenderlandkarte/Firmen.map' 


'WMS_SRS'   EPSG:900913

  END
END



  PROJECTION
'init=epsg:900913'
END


LAYER
   NAME Firmen
   TYPE POINT
   STATUS DEFAULT
   CONNECTIONTYPE OGR
   CONNECTION Firmen.kml
   DATA Firmen
   LABELITEM NAME
   CLASS
 NAME My Places
 STYLE
   COLOR 0 255 0
   OUTLINECOLOR 255 255 255
   SYMBOL 'star'
   SIZE 10
 END
   LABEL
 SIZE TINY
 COLOR 0 0 0
 OUTLINECOLOR 255 255 255
 POSITION AUTO
   END
  END
END

END


idea anyone?

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


[mapserver-users] Mapserver + KML-File Problem

2010-06-24 Thread Bryan Hempen

hi there!

i have trouble displaying point of interests from a KML file.
i followed the description on http://mapserver.org/input/vector/kml.html

http://igf-project.igf.uos.de/~bhempen/Gruenderlandkarte/ is where i 
want to display the data, the template is located at 
http://igf-project.igf.uos.de/~bhempen/Gruenderlandkarte/template.html


this is the content of the mapfile:

MAP
NAME   'Gastronomapkarte'
STATUS ON
#EXTENT 3427065.20 5788323.53 3443999.37 5800691.66
#EXTENT 7.9189 52.2102 8.1716 52.3467
EXTENT 88 684 915000 686
IMAGECOLOR 255 255 255
SIZE  700 700
 SYMBOLSET'symbols/symbols.sym'
 FONTSET   'fonts/fonts.list'


 WEB
TEMPLATE  'template.html'
IMAGEPATH '/home/bhempen/public_html/routingtest/tmp/'
IMAGEURL   '/~bhempen/routingtest/tmp/'




METADATA
  'WMS_TITLE'   'Firmen'
 'WMS_FEATURE_INFO_MIME_TYPE' 'text/html'
'WMS_ONLINERESOURCE'   
'http://igf-project.igf.uos.de/cgi-bin/mapserv?map=/home/bhempen/public_html/Gruenderlandkarte/Firmen.map' 


'WMS_SRS'   EPSG:900913

  END
END



  PROJECTION
'init=epsg:900913'
END


LAYER
   NAME Firmen
   TYPE POINT
   STATUS DEFAULT
   CONNECTIONTYPE OGR
   CONNECTION Firmen.kml
   DATA Firmen
   LABELITEM NAME
   CLASS
 NAME My Places
 STYLE
   COLOR 0 255 0
   OUTLINECOLOR 255 255 255
   SYMBOL 'star'
   SIZE 10
 END
   LABEL
 SIZE TINY
 COLOR 0 0 0
 OUTLINECOLOR 255 255 255
 POSITION AUTO
   END
  END
END

END


idea anyone? thanks for the help.

greets
Bryan Hempen

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


[mapserver-users] Re: mapserver-users Digest, Vol 29, Issue 40 (Out of Office)

2010-06-24 Thread Heather Wirth
I will be out of the office until June 28, 2010.

 mapserver-users 06/24/10 11:00 

Send mapserver-users mailing list submissions to
mapserver-users@lists.osgeo.org

To subscribe or unsubscribe via the World Wide Web, visit
http://lists.osgeo.org/mailman/listinfo/mapserver-users
or, via email, send a message with subject or body 'help' to
mapserver-users-requ...@lists.osgeo.org

You can reach the person managing the list at
mapserver-users-ow...@lists.osgeo.org

When replying, please edit your Subject line so it is more specific
than Re: Contents of mapserver-users digest...


Today's Topics:

   1. Mapserver + KML-File Problem (Bryan Hempen)
   2. Mapserver + KML-File Problem (Bryan Hempen)


--

Message: 1
Date: Thu, 24 Jun 2010 16:36:48 +0200
From: Bryan Hempen bryanhem...@gmx.de
Subject: [mapserver-users] Mapserver + KML-File Problem
To: mapserver-users@lists.osgeo.org
Message-ID: 4c236d80.4020...@gmx.de
Content-Type: text/plain; charset=ISO-8859-15; format=flowed

hi there!

i have trouble displaying point of interests from a KML file.
i followed the description on http://mapserver.org/input/vector/kml.html

http://igf-project.igf.uos.de/~bhempen/Gruenderlandkarte/ is where i 
want to display the data, the template is located at 
http://igf-project.igf.uos.de/~bhempen/Gruenderlandkarte/template.html

this is the content of the mapfile:

MAP
NAME   'Gastronomapkarte'
STATUS ON
#EXTENT 3427065.20 5788323.53 3443999.37 5800691.66
#EXTENT 7.9189 52.2102 8.1716 52.3467
EXTENT 88 684 915000 686
IMAGECOLOR 255 255 255
SIZE  700 700
  SYMBOLSET'symbols/symbols.sym'
  FONTSET   'fonts/fonts.list'


  WEB
 TEMPLATE  'template.html'
IMAGEPATH '/home/bhempen/public_html/routingtest/tmp/'
IMAGEURL   '/~bhempen/routingtest/tmp/'




 METADATA
   'WMS_TITLE'   'Firmen'
  'WMS_FEATURE_INFO_MIME_TYPE' 'text/html'
 'WMS_ONLINERESOURCE'   
'http://igf-project.igf.uos.de/cgi-bin/mapserv?map=/home/bhempen/public_html/Gruenderlandkarte/Firmen.map'


 'WMS_SRS'   EPSG:900913

   END
END



   PROJECTION
 'init=epsg:900913'
 END


LAYER
NAME Firmen
TYPE POINT
STATUS DEFAULT
CONNECTIONTYPE OGR
CONNECTION Firmen.kml
DATA Firmen
LABELITEM NAME
CLASS
  NAME My Places
  STYLE
COLOR 0 255 0
OUTLINECOLOR 255 255 255
SYMBOL 'star'
SIZE 10
  END
LABEL
  SIZE TINY
  COLOR 0 0 0
  OUTLINECOLOR 255 255 255
  POSITION AUTO
END
   END
END

END


idea anyone?



--

Message: 2
Date: Thu, 24 Jun 2010 16:37:04 +0200
From: Bryan Hempen bryanhem...@gmx.de
Subject: [mapserver-users] Mapserver + KML-File Problem
To: mapserver-users@lists.osgeo.org
Message-ID: 4c236d90.3000...@gmx.de
Content-Type: text/plain; charset=ISO-8859-15; format=flowed

hi there!

i have trouble displaying point of interests from a KML file.
i followed the description on http://mapserver.org/input/vector/kml.html

http://igf-project.igf.uos.de/~bhempen/Gruenderlandkarte/ is where i 
want to display the data, the template is located at 
http://igf-project.igf.uos.de/~bhempen/Gruenderlandkarte/template.html

this is the content of the mapfile:

MAP
NAME   'Gastronomapkarte'
STATUS ON
#EXTENT 3427065.20 5788323.53 3443999.37 5800691.66
#EXTENT 7.9189 52.2102 8.1716 52.3467
EXTENT 88 684 915000 686
IMAGECOLOR 255 255 255
SIZE  700 700
  SYMBOLSET'symbols/symbols.sym'
  FONTSET   'fonts/fonts.list'


  WEB
 TEMPLATE  'template.html'
IMAGEPATH '/home/bhempen/public_html/routingtest/tmp/'
IMAGEURL   '/~bhempen/routingtest/tmp/'




 METADATA
   'WMS_TITLE'   'Firmen'
  'WMS_FEATURE_INFO_MIME_TYPE' 'text/html'
 'WMS_ONLINERESOURCE'   
'http://igf-project.igf.uos.de/cgi-bin/mapserv?map=/home/bhempen/public_html/Gruenderlandkarte/Firmen.map'


 'WMS_SRS'   EPSG:900913

   END
END



   PROJECTION
 'init=epsg:900913'
 END


LAYER
NAME Firmen
TYPE POINT
STATUS DEFAULT
CONNECTIONTYPE OGR
CONNECTION Firmen.kml
DATA Firmen
LABELITEM NAME
CLASS
  NAME My Places
  STYLE
COLOR 0 255 0
OUTLINECOLOR 255 255 255
SYMBOL 'star'
SIZE 10
  END
LABEL
  SIZE TINY
  COLOR 0 0 0
  OUTLINECOLOR 255 255 255
  POSITION AUTO
END
   END
END

END


idea anyone? thanks for the help.

greets
Bryan Hempen



--

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


End of mapserver-users Digest, Vol 29, Issue 40
***
___
mapserver-users mailing list

[mapserver-users] RE: mapserver-users Digest, Vol 29, Issue 39

2010-06-24 Thread Mark Volz
Paul,

We had discussed using a Virtual Host for hosting mapserver for a client.
What are the resources that you are referring to in your message?


Thanks

Mark Volz
GIS Specialist
Lyon County, MN
507-532-8218


--

Message: 1
Date: Wed, 23 Jun 2010 10:55:18 -0700
From: Paul Sorey pso...@comcast.net
Subject: Re: [mapserver-users] Adding an online map to wordpress
To: mapserver-users@lists.osgeo.org
Message-ID: 4c224a86.1080...@comcast.net
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Andrew,

I did something similar and had to set up a VPS, virtual private server, 
on Slicehost.com.  Shared hosting like GoDaddy will not allow you to put 
mapserver software on their server.

I can point you to the resources I used if that will help.

Paul Sorey



On 6/23/2010 8:34 AM, Andrew Lewin wrote:
 Dear Listers,

 I am completely new to Mapserver.  I would like to create an online,
interactive map on a wordpress site.  How would I go about doing this?  Do I
require apache server? I am hosting the wordpress site through godaddy.com,
does this matter?

 Your help is much appreciated.

 Best,

 Andrew

 Andrew Lewin, M.Sc., Adv. Dipl. GIS
 President
 Spatial-Conserve Inc.
 www.spatialconserve.com
 Email: ale...@spatialconserve.com
 Tel: (905) 639-4646
 Mobile: (905) 630-8441
 Skype: andrew.lewin99
 Follow me on Twitter: www.twitter.com/arlewin




 ___
 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] RE: mapserver-users Digest, Vol 29, Issue 39

2010-06-24 Thread Paul Sorey

Mark,

I signed up for a VPS at slicehost -- the smallest slice has been fine 
so far.


I set up Debian Lenny Linux with Apache webserver with the aid of 
slicehost articles found here:


http://wiki.slicehost.com/doku.php
http://articles.slicehost.com/sitemap

Ubuntu would also be a good choice for OS, I think.

I used the debian distro of mapserver described here:
http://packages.debian.org/source/lenny/mapserver.  It's not the latest 
version (5.0.3) but works for me.  One day I'll get around to compiling 
the latest distro for Debian.


I'm using QuantumGIS on my PC to piece together the maps from GIS files, 
and exporting them via the mapfile exporter in QGIS.  I wrote a ruby 
script to tweak the exported mapfile from QGIS to something usable for 
my mapserver implementation.


The steepest learning curves were understanding the mapfile, template 
files, and mapscript. You will have to read through a lot of the 
documentation at:  http://mapserver.org/documentation.html.  You may not 
need to use mapscript, but I have found it useful.   I'm using the Ruby 
implementation of mapscript SWIG.  There's adequate documentation at the 
mapserver.org website and on the web in general for all but the Ruby 
implementation details, for which I had to dig into the source code.  
There's more documentation on the PHP implementation, but I'm using Ruby 
on Rails to manage everything on my site, so therefore chose the Ruby 
implementation.


I also don't have much experience with CGI so I had to spend some time 
on that too.


I'm using OpenLayers javascript as the user interface for mapserver.  It 
took me a few days to get it working right.  You have to set up your 
mapfiles to enable WMS, and set up the OpenLayers code just right to 
display them.


The whole process took me several weeks of trial-and-error and study; 
now, of course, it seems easy!



Paul Sorey
Web Applications Consultant
Landscape Architect
Public Artist
http://paulsorey.com
206 948 7285










On 6/24/2010 12:22 PM, Mark Volz wrote:

Paul,

We had discussed using a Virtual Host for hosting mapserver for a client.
What are the resources that you are referring to in your message?


Thanks

Mark Volz
GIS Specialist
Lyon County, MN
507-532-8218


--

Message: 1
Date: Wed, 23 Jun 2010 10:55:18 -0700
From: Paul Soreypso...@comcast.net
Subject: Re: [mapserver-users] Adding an online map to wordpress
To: mapserver-users@lists.osgeo.org
Message-ID:4c224a86.1080...@comcast.net
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Andrew,

I did something similar and had to set up a VPS, virtual private server,
on Slicehost.com.  Shared hosting like GoDaddy will not allow you to put
mapserver software on their server.

I can point you to the resources I used if that will help.

Paul Sorey

   


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


[mapserver-users] Is there a problem with layers when serving WMS?

2010-06-24 Thread Jeff Dege
I'm putting together a map via Mapserver and WMS (MapServer version 5.6.1 on 
Ubuntu 10.04), serving a set of shapefiles.

The basic approach is to have a pair of layers for each class of highways - 
interstate, US highways, state highways, local roads, etc.  One layer in each 
pair draws the geometry, the other draws the labels.  In this way, the user can 
turn the labels on and off, as needed.

I'm having a problem with highway labels showing up nowhere near where the 
highways are.  At my outermost zoom, all I'm displaying is the major highway 
geometry and the interstate names.  That works OK.

When I zoom in a bit, to where I start displaying the US highway names, I see 
names all over the place, drawn where there are no geometries.  I zoom in a bit 
more, and they go away.  (I'm viewing this with Quantum GIS, loading the maps 
as WMS layers).

To help track down what is going on, I took one of the names, did an ogrinfo 
-where to identify that there was, in fact, a featured with that name in the 
US highways shapefile.  I then extracted just those features into a new 
shapefile, using ogr2ogr, and then loaded that as a vector layer in Quantum 
GIS.  The aim was to find out where the feature that matched that name actually 
was.

It was nowhere near the label.  I set the new vector layer to draw in red, and 
it was easy to see.  With a label from the WMS properly drawn alongside.  But 
75+ miles away, 600+ pixels across the map, was another label for that feature, 
nowhere near the feature it was supposed to be describing.

I've never seen anything quite like this.  But then, I'm just figuring out how 
to use mapserver to serve WMS.

Are there any known gotchas, when drawing label layers in WMS?

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