Re: [mapserver-users] Symbols in KML outout

2014-10-16 Thread Peter Hopfgartner
Just as a quick fix, I'd propose to drop the href node if no reasonable 
value is given. Anything more elaborate can be added later on. Comments?


Peter

On 10/15/2014 11:57 AM, Peter Hopfgartner wrote:
From http://mapserver.org/output/kml_output.html#id2, it should be 
possible to have icons for sysmbols. The pixmap of the ison should be 
referenced in the href node.

In my output, the href ode looks like:

href(null)/href

Is there anything I missed?

Regards,

Peter




--
Peter Hopfgartner
R3 GIS Srl - GmbH
Via Johann Kravogl-Str. 2
I-39012 Meran/Merano (BZ)
web  : www.r3-gis.com
mail : peter.hopfgart...@r3-gis.com
phone: +39 0473 494949
fax  : +39 0473 069902

ATTENZIONE! Le informazioni contenute nella presente e-mail e nei documenti 
eventualmente allegati sono confidenziali. La loro diffusione, distribuzione 
e/o riproduzione da parte di terzi, senza autorizzazione del mittente è vietata 
e può violare il D. Lgs. 196/2003. In caso di ricezione per errore, Vogliate 
immediatamente informare il mittente del messaggio e distruggere la e-mail.

ACHTUNG! Die in dieser Nachricht oder in den beigelegten Dokumenten 
beinhalteten Informationen sind streng vertraulich. Ihre Verbreitung und/oder 
ihre Wiedergabe durch Dritte ist ohne Erlaubnis des Absenders verboten und 
verstößt gegen das Legislativdekret 196/2003. Sollten Sie diese Mitteilung 
irrtümlicherweise erhalten haben, bitten wir Sie uns umgehend zu informieren 
und anschließend die Mitteilung zu vernichten.

WARNING! This e-mail may contain confidential and/or privileged information. If 
you are not the intended recipient (or have received this e-mail in error) 
please notify the sender immediately and destroy this e-mail. Any unauthorised 
copying, disclosure or distribution of the material in this e-mail is strictly 
forbidden and could be against the law (D. Lgs. 196/2003)

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


Re: [mapserver-users] Symbols in KML outout

2014-10-16 Thread Eichner, Andreas - SID
Never used it but it seems the KML driver creates PNG images on the fly and 
returns them as href. This seems to be independent of the type of symbol. So 
you should make sure MS is able to write those images into /tmp or 
$MS_TEMPPATH. The (null) indicates that it was unable to do so.

HTH

Von: mapserver-users-boun...@lists.osgeo.org 
[mapserver-users-boun...@lists.osgeo.org]quot; im Auftrag von quot;Peter 
Hopfgartner [peter.hopfgart...@r3-gis.com]
Gesendet: Donnerstag, 16. Oktober 2014 10:09
An: mapserver-users@lists.osgeo.org
Betreff: Re: [mapserver-users] Symbols in KML outout

Just as a quick fix, I'd propose to drop the href node if no reasonable
value is given. Anything more elaborate can be added later on. Comments?

Peter

On 10/15/2014 11:57 AM, Peter Hopfgartner wrote:
 From http://mapserver.org/output/kml_output.html#id2, it should be
 possible to have icons for sysmbols. The pixmap of the ison should be
 referenced in the href node.
 In my output, the href ode looks like:

 href(null)/href

 Is there anything I missed?

 Regards,

 Peter



--
Peter Hopfgartner
R3 GIS Srl - GmbH
Via Johann Kravogl-Str. 2
I-39012 Meran/Merano (BZ)
web  : www.r3-gis.com
mail : peter.hopfgart...@r3-gis.com
phone: +39 0473 494949
fax  : +39 0473 069902

ATTENZIONE! Le informazioni contenute nella presente e-mail e nei documenti 
eventualmente allegati sono confidenziali. La loro diffusione, distribuzione 
e/o riproduzione da parte di terzi, senza autorizzazione del mittente è vietata 
e può violare il D. Lgs. 196/2003. In caso di ricezione per errore, Vogliate 
immediatamente informare il mittente del messaggio e distruggere la e-mail.

ACHTUNG! Die in dieser Nachricht oder in den beigelegten Dokumenten 
beinhalteten Informationen sind streng vertraulich. Ihre Verbreitung und/oder 
ihre Wiedergabe durch Dritte ist ohne Erlaubnis des Absenders verboten und 
verstößt gegen das Legislativdekret 196/2003. Sollten Sie diese Mitteilung 
irrtümlicherweise erhalten haben, bitten wir Sie uns umgehend zu informieren 
und anschließend die Mitteilung zu vernichten.

WARNING! This e-mail may contain confidential and/or privileged information. If 
you are not the intended recipient (or have received this e-mail in error) 
please notify the sender immediately and destroy this e-mail. Any unauthorised 
copying, disclosure or distribution of the material in this e-mail is strictly 
forbidden and could be against the law (D. Lgs. 196/2003)

___
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] [EXTERNAL] Re: Symbols in KML outout

2014-10-16 Thread Smith, Michael ERDC-RDE-CRREL-NH
You also have to make sure that the IMAGEURL is a full web URL not just a
path.

Mike

On 10/16/14, 8:56 AM, Eichner, Andreas - SID
andreas.eich...@sid.sachsen.de wrote:

Never used it but it seems the KML driver creates PNG images on the fly
and returns them as href. This seems to be independent of the type of
symbol. So you should make sure MS is able to write those images into
/tmp or $MS_TEMPPATH. The (null) indicates that it was unable to do so.

HTH

Von: mapserver-users-boun...@lists.osgeo.org
[mapserver-users-boun...@lists.osgeo.org]quot; im Auftrag von
quot;Peter Hopfgartner [peter.hopfgart...@r3-gis.com]
Gesendet: Donnerstag, 16. Oktober 2014 10:09
An: mapserver-users@lists.osgeo.org
Betreff: Re: [mapserver-users] Symbols in KML outout

Just as a quick fix, I'd propose to drop the href node if no reasonable
value is given. Anything more elaborate can be added later on. Comments?

Peter

On 10/15/2014 11:57 AM, Peter Hopfgartner wrote:
 From http://mapserver.org/output/kml_output.html#id2, it should be
 possible to have icons for sysmbols. The pixmap of the ison should be
 referenced in the href node.
 In my output, the href ode looks like:

 href(null)/href

 Is there anything I missed?

 Regards,

 Peter



--
Peter Hopfgartner
R3 GIS Srl - GmbH
Via Johann Kravogl-Str. 2
I-39012 Meran/Merano (BZ)
web  : www.r3-gis.com
mail : peter.hopfgart...@r3-gis.com
phone: +39 0473 494949
fax  : +39 0473 069902

ATTENZIONE! Le informazioni contenute nella presente e-mail e nei
documenti eventualmente allegati sono confidenziali. La loro diffusione,
distribuzione e/o riproduzione da parte di terzi, senza autorizzazione
del mittente è vietata e può violare il D. Lgs. 196/2003. In caso di
ricezione per errore, Vogliate immediatamente informare il mittente del
messaggio e distruggere la e-mail.

ACHTUNG! Die in dieser Nachricht oder in den beigelegten Dokumenten
beinhalteten Informationen sind streng vertraulich. Ihre Verbreitung
und/oder ihre Wiedergabe durch Dritte ist ohne Erlaubnis des Absenders
verboten und verstößt gegen das Legislativdekret 196/2003. Sollten Sie
diese Mitteilung irrtümlicherweise erhalten haben, bitten wir Sie uns
umgehend zu informieren und anschließend die Mitteilung zu vernichten.

WARNING! This e-mail may contain confidential and/or privileged
information. If you are not the intended recipient (or have received this
e-mail in error) please notify the sender immediately and destroy this
e-mail. Any unauthorised copying, disclosure or distribution of the
material in this e-mail is strictly forbidden and could be against the
law (D. Lgs. 196/2003)

___
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


[mapserver-users] WMS rendering

2014-10-16 Thread Francesco Palermo

Hello,
I'm experimenting the use of Mapserver as WMS and I'm encountering some 
problems on map rendering. I'm using a shapefile as a map source and 
it's a map of points (generated by a csv using ogr2ogr - Could I use 
directly csv with Mapserver? I don't know). I can't get the rendering of 
this map using for example QGIS or this URL in the browser (which I hope 
it's correct):

http://localhost/cgi-bin/mapserv?map=/home/francesco/shared/mapserver/wms.mapSERVICE=WMSVERSION=1.1.1REQUEST=GetMapSTYLES=SRS=EPSG:4326BBOX=9.2990,43.0105,9.4894,43.0524WIDTH=500HEIGHT=300FORMAT=image/pngLAYERS=test;

This is the mapfile:
MAP
NAME test
STATUS ON
SIZE 500 300
IMAGETYPE PNG
EXTENT 9.2990 43.0105 9.4894 43.0524
UNITS METERS
DEBUG 5
PROJECTION
   init=epsg:4269
END
WEB
TEMPLATE template.html
IMAGEPATH /var/www/html/tmp/
IMAGEURL /tmp/
METADATA
wms_title   WMS Demo Server
wms_onlineresource http://localhost/cgi-bin/mapserv?;
wms_srs   EPSG:42304 EPSG:42101 EPSG:4269 EPSG:4326
wms_enable_request *
END
END
#IMAGECOLOR 255 255 255
TRANSPARENT ON
SHAPEPATH oilspill/
OUTPUTFORMAT
  NAME png
  DRIVER AGG/PNG
  MIMETYPE image/png
  IMAGEMODE RGB
  EXTENSION png
  FORMATOPTION GAMMA=0.75
END
SYMBOL
  NAME square
  TYPE vector
  POINTS
0 0
0 1
1 1
1 0
0 0
  END
  FILLED true
  ANCHORPOINT 0.5 0.5
END
LAYER
  NAME test
  TYPE POINT
  STATUS DEFAULT
  DATA timestep24
  DEBUG 5
  SIZEUNITS meters
  PROJECTION
   init=epsg:4269
  END
  METADATA
wms_titletest
  END
  CLASSITEM weight
  CLASS
  STYLE
  COLOR #1014FF
  SYMBOL square
  SIZE 0.0019
  END
  END
END
END

Any suggestions? Are there any errors in the mapfile? Or am I wrong in 
the procedure?


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


Re: [mapserver-users] WMS rendering

2014-10-16 Thread Jörg Thomsen
Hello Francesco,

no error-message, only a blank image?
What's in the error-log? The MS_ERRORFILE ist set in httpd.conf?

I think symbol is veryvery small. Try = 1.

You can use a csv-file in MapServer via OGR :)
http://mapserver.org/input/vector/ogr.html

Jörg

Am 16.10.2014 um 17:04 schrieb Francesco Palermo:
 Hello,
 I'm experimenting the use of Mapserver as WMS and I'm encountering some
 problems on map rendering. I'm using a shapefile as a map source and
 it's a map of points (generated by a csv using ogr2ogr - Could I use
 directly csv with Mapserver? I don't know). I can't get the rendering of
 this map using for example QGIS or this URL in the browser (which I hope
 it's correct):
 http://localhost/cgi-bin/mapserv?map=/home/francesco/shared/mapserver/wms.mapSERVICE=WMSVERSION=1.1.1REQUEST=GetMapSTYLES=SRS=EPSG:4326BBOX=9.2990,43.0105,9.4894,43.0524WIDTH=500HEIGHT=300FORMAT=image/pngLAYERS=test;
 
 
 This is the mapfile:
 MAP
 NAME test
 STATUS ON
 SIZE 500 300
 IMAGETYPE PNG
 EXTENT 9.2990 43.0105 9.4894 43.0524
 UNITS METERS
 DEBUG 5
 PROJECTION
init=epsg:4269
 END
 WEB
 TEMPLATE template.html
 IMAGEPATH /var/www/html/tmp/
 IMAGEURL /tmp/
 METADATA
 wms_title   WMS Demo Server
 wms_onlineresource http://localhost/cgi-bin/mapserv?;
 wms_srs   EPSG:42304 EPSG:42101 EPSG:4269 EPSG:4326
 wms_enable_request *
 END
 END
 #IMAGECOLOR 255 255 255
 TRANSPARENT ON
 SHAPEPATH oilspill/
 OUTPUTFORMAT
   NAME png
   DRIVER AGG/PNG
   MIMETYPE image/png
   IMAGEMODE RGB
   EXTENSION png
   FORMATOPTION GAMMA=0.75
 END
 SYMBOL
   NAME square
   TYPE vector
   POINTS
 0 0
 0 1
 1 1
 1 0
 0 0
   END
   FILLED true
   ANCHORPOINT 0.5 0.5
 END
 LAYER
   NAME test
   TYPE POINT
   STATUS DEFAULT
   DATA timestep24
   DEBUG 5
   SIZEUNITS meters
   PROJECTION
init=epsg:4269
   END
   METADATA
 wms_titletest
   END
   CLASSITEM weight
   CLASS
   STYLE
   COLOR #1014FF
   SYMBOL square
   SIZE 0.0019
   END
   END
 END
 END
 
 Any suggestions? Are there any errors in the mapfile? Or am I wrong in
 the procedure?
 
 Thanks,
 Francesco
 ___
 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] WMS rendering

2014-10-16 Thread thomas bonfort
sizeunits meters along with size 0.0019 is very probably false unless
you're mapping microscopic particles :) try removing the sizeunits
parameter completely and setting size to something visible in pixels
(e.g. 3-5), once that is working you can start looking into
scale-dependant rendering with sizeunits

--
thomas

On 16 October 2014 17:04, Francesco Palermo palermo.fran...@gmail.com wrote:
 Hello,
 I'm experimenting the use of Mapserver as WMS and I'm encountering some
 problems on map rendering. I'm using a shapefile as a map source and it's a
 map of points (generated by a csv using ogr2ogr - Could I use directly csv
 with Mapserver? I don't know). I can't get the rendering of this map using
 for example QGIS or this URL in the browser (which I hope it's correct):
 http://localhost/cgi-bin/mapserv?map=/home/francesco/shared/mapserver/wms.mapSERVICE=WMSVERSION=1.1.1REQUEST=GetMapSTYLES=SRS=EPSG:4326BBOX=9.2990,43.0105,9.4894,43.0524WIDTH=500HEIGHT=300FORMAT=image/pngLAYERS=test;

 This is the mapfile:
 MAP
 NAME test
 STATUS ON
 SIZE 500 300
 IMAGETYPE PNG
 EXTENT 9.2990 43.0105 9.4894 43.0524
 UNITS METERS
 DEBUG 5
 PROJECTION
init=epsg:4269
 END
 WEB
 TEMPLATE template.html
 IMAGEPATH /var/www/html/tmp/
 IMAGEURL /tmp/
 METADATA
 wms_title   WMS Demo Server
 wms_onlineresource http://localhost/cgi-bin/mapserv?;
 wms_srs   EPSG:42304 EPSG:42101 EPSG:4269 EPSG:4326
 wms_enable_request *
 END
 END
 #IMAGECOLOR 255 255 255
 TRANSPARENT ON
 SHAPEPATH oilspill/
 OUTPUTFORMAT
   NAME png
   DRIVER AGG/PNG
   MIMETYPE image/png
   IMAGEMODE RGB
   EXTENSION png
   FORMATOPTION GAMMA=0.75
 END
 SYMBOL
   NAME square
   TYPE vector
   POINTS
 0 0
 0 1
 1 1
 1 0
 0 0
   END
   FILLED true
   ANCHORPOINT 0.5 0.5
 END
 LAYER
   NAME test
   TYPE POINT
   STATUS DEFAULT
   DATA timestep24
   DEBUG 5
   SIZEUNITS meters
   PROJECTION
init=epsg:4269
   END
   METADATA
 wms_titletest
   END
   CLASSITEM weight
   CLASS
   STYLE
   COLOR #1014FF
   SYMBOL square
   SIZE 0.0019
   END
   END
 END
 END

 Any suggestions? Are there any errors in the mapfile? Or am I wrong in the
 procedure?

 Thanks,
 Francesco
 ___
 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