[Gfoss] WMS??

Salve a tutti....
Sto cercando di creare un WMS ma con scarsi risultati!
Il problema sta quando cerco di visualizzarlo (aggiungerlo) in qualche sw
GIS.
L'unico che non mi da problemi e QGIS, mentre in uDIG, gvSIG, ArcGIS 9.2
(tutti all'ultima versione) non riesco
a visualizzare le mie mappe.

di seguito il mapfile:
###########MAPFILE############################
MAP
NAME "WMS-test"
STATUS ON
SIZE 400 300
SYMBOLSET "../ditradata/symbols/symbols35.sym"
EXTENT 2614649 4320194 2653614 4344669
UNITS METERS
SHAPEPATH "../CMS"
IMAGECOLOR 255 255 255
FONTSET "../CMS/font/font.txt"
IMAGETYPE PNG
PROJECTION
  "init=epsg:3004" ##required
END
# OUTPUTFORMAT
# NAME jpeg
# DRIVER "GD/JPEG"
# # quality setting: 0 is minimum quality, 100 is maximum quality
# FORMATOPTION QUALITY=70
# # data format
# MIMETYPE "image/jpeg"
# # currently, there is no real grayscale jpeg output available
# IMAGEMODE RGB
# EXTENSION "jpg"
# END

OUTPUTFORMAT
  NAME png
  DRIVER "GD/PNG"
  MIMETYPE "image/png"
  IMAGEMODE RGB
  FORMATOPTION INTERLACE=OFF
  TRANSPARENT OFF
END

OUTPUTFORMAT
  NAME png8
  DRIVER "GD/PNG"
  MIMETYPE "image/png"
  IMAGEMODE PC256
  FORMATOPTION INTERLACE=OFF
  TRANSPARENT OFF
END

WEB
  IMAGEPATH "/mapserver/wms_tmp/"
  IMAGEURL "/wms_tmp/"
  METADATA
    "wms_title" "WMS Demo Server" ##required
    "wms_abstract" "Web Map Service"
    "wms_onlineresource" "http://debian/cgi-bin/mapserv?" ##required
    #"wms_srs" "EPSG:26592 EPSG:3004" ##recommended
    "wms_getfeatureinfo"
"http://debian/cgi-bin/mapserv?map=/home/sam/www/WMS/wms.map&"
    "wms_featureinfoformat" "text/plain"
   # "wms_feature_info_mime_type" "text/html"
  END
END

#
# Start of layer definitions
#

LAYER
  NAME "DEM"
  TYPE Raster
  STATUS ON
  DATA '../CMS/dem.tif'
  #MINSCALE 80000
  
  PROJECTION
    "init=epsg:3004"
  END
  METADATA
   "wms_title" "Modello digitale del Terreno" ##required
   "wms_include_items" "all"
   "wms_srs" "EPSG:3004"
  END # Metadata
END # Layer

LAYER
  NAME "Limiti Amministartivi"
  METADATA
    "wms_title" "Comuni" ##required
    "wms_include_items" "all"
    "wms_srs" "EPSG:3004"
  END
  TYPE POLYGON
  STATUS ON
  TRANSPARENCY 45
  DATA comu_savuto

  TEMPLATE 'dummy'
  DUMP TRUE
  LABELITEM "NOME_COM"
  PROJECTION
    "init=epsg:3004" ##recommended
  END
  CLASSITEM 'NOME_COM'
  CLASS
    Name 'Limiti'
    COLOR 55 245 0
    SYMBOL 'square'
    OUTLINECOLOR 0 0 0
    SIZE 8
    LABEL
      FONT arial
      TYPE truetype
      ANTIALIAS false
      SIZE 8
      COLOR 0 0 0
      POSITION cc
      PARTIALS FALSE
      FORCE true
      OFFSET 0 0
      #OUTLINECOLOR 0 0 0
    END #Label
    TEMPLATE 'dummy'
  END # Class
# CLASS
# NAME "Comuni"
# STYLE
# COLOR 200 255 0
# OUTLINECOLOR 120 120 120
# END
# END
END # Layer

LAYER
  NAME "Rete Stradale"
  TYPE line
  DATA "strade"
  LABELITEM "NOME"
  LABELMAXSCALE 10000
  PROJECTION
    "init=epsg:3004"
  END
  METADATA
    "wms_title" "Strade" ##required
    "wms_include_items" "all"
    "wms_srs" "EPSG:3004"
  END
  CLASS
    Name 'strade'
    COLOR 51 255 0
    SYMBOL 'circle'
     LABEL
      ANGLE auto
      FONT arial
      TYPE truetype
      ANTIALIAS false
      SIZE 8
      OUTLINECOLOR 255 255 255
      COLOR 0 0 0
      POSITION uc
      PARTIALS FALSE
      FORCE false
      OFFSET 0 0
      #OUTLINECOLOR 0 0 0
    END #Label
    SIZE 4
    TEMPLATE dummy
  END # Class
END # Layer

LAYER
  NAME "Idrografia"
  TYPE line
  DATA "elementi_idrici"
  STATUS OFF

  PROJECTION
    "init=epsg:3004"
  END
  METADATA
    "wms_title" "Elementi Idrici" ##required
    "wms_include_items" "all"
    "wms_srs" "EPSG:3004"
  END
# CLASSITEM toponimo
# CLASS
# NAME "Fiume Crati"
# EXPRESSION "Fiume Crati"
# COLOR 0 0 255
# SYMBOL 'circle'
# SIZE 4
# TEMPLATE dummy
# END # Class
# CLASS
# NAME "Fiume Amato"
# EXPRESSION "Fiume Amato"
# COLOR 0 0 255
# SYMBOL 'circle'
# SIZE 4
# TEMPLATE dummy
# END # Class
# CLASS
# NAME "Fiume Tacina"
# EXPRESSION "Fiume Tacina"
# COLOR 0 0 255
# SYMBOL 'circle'
# SIZE 4
# TEMPLATE dummy
# END # Class
# CLASS
# NAME "Fiume Savuto"
# EXPRESSION "Fiume Savuto"
# COLOR 0 0 255
# SYMBOL 'circle'
# SIZE 4
# TEMPLATE dummy
# END # Class
# CLASS
# NAME "Fiume Neto"
# EXPRESSION "Fiume Neto"
# COLOR 0 0 255
# SYMBOL 'circle'
# SIZE 4
# TEMPLATE dummy
# END # Class
# CLASS
# NAME "Fiume TRIONTO"
# EXPRESSION "Fiume TRIONTO"
# COLOR 0 0 255
# SYMBOL 'circle'
# SIZE 4
# TEMPLATE dummy
# END # Class
  CLASS
    Name 'elementi_idrici'
    COLOR 0 0 255
    SYMBOL 'circle'
    SIZE 2
    TEMPLATE 'dummy'
  END # Class
END # Layer

LAYER
  NAME "Sentieri"
  METADATA
    "wms_title" "Sentieri naturalistici" ##required
    "wms_include_items" "all"
    "wms_srs" "EPSG:3004"
  END
  TYPE LINE
  STATUS ON
  DATA sentieri
  TEMPLATE 'dummy'
  PROJECTION
    "init=epsg:3004" ##recommended
  END
  CLASSITEM "RIF"
  CLASS
  NAME 'A3'
  EXPRESSION "A3"
  STYLE
   COLOR 0 0 0
   SYMBOL 'punkt'
   SIZE 7
  END
  STYLE
   COLOR 255 255 0
   SYMBOL 'punkt'
   SIZE 5
  END
  STYLE
   COLOR 0 0 0
   SYMBOL 'line-a3'
   SIZE 1
  END
END
  CLASS
    Name "Sentieri"
    STYLE
    COLOR 255 50 0
    SYMBOL punkt
    SIZE 5
    END
    STYLE
    COLOR 255 255 0
    SYMBOL line-a3
    SIZE 1
    END
  END
END # Layer

LAYER
  NAME "CAI"
  #CONNECTION "user=postgres dbname=cms host=localhost port=5432"
  #DATA "the_geom from (select gid,the_geom,cod_cai from sentieri) as
newtable USING UNIQUE gid USING SRID=26592"
  #DATA "the_geom from sentieri"
  TYPE POINT
  TOLERANCE 10
  TOLERANCEUNITS pixels
  DATA "marker_gbe"
  LABELITEM "CAI"
  STATUS ON
  TEMPLATE 'dummy'
  DUMP TRUE
  PROJECTION
    "init=epsg:3004"
  END
  METADATA
    "wms_title" "Segnaletica CAI" ##required
    "wms_include_items" "all"
    "wms_srs" "EPSG:3004"
  END # Metadata
  CLASSITEM CAI
  CLASS
    Name 'marker'
    STYLE
    #COLOR 0 0 255
    SYMBOL '/home/sam/www/SISNCMS/symbol_image/cai.gif'
    SIZE 18
    END
    LABEL
      POSITION cc
      #COLOR 0 0 0
      #BACKGROUNDCOLOR 255 255 255
      #BACKGROUNDSHADOWCOLOR 255 0 0
      #BACKGROUNDSHADOWSIZE 2 2
      BUFFER 0
      TYPE truetype
      FONT arial
      SIZE 8
      MAXSIZE 14
      #SIZE small
    END #Label
    TEMPLATE 'dummy'
  END # Class
END # Layer

END # Map File
#################################################

qualcuno sa dirmi dove sto sbagliando?

--
View this message in context: http://www.nabble.com/WMS---tf3763619.html#a10638759
Sent from the Gfoss mailing list archive at Nabble.com.

E' un pò che nonci lavoro con un server wms com mapserver...
comunque come mai nella proprietà

wms_onlineresource

non vedo il dominio tuo...

lo stesso per quanto riguarda la proprietà

wms_getfeatureinfo

la maggior parte dei software lo richiedono

ma via url? con 'request=GetCapabilities', funziona?

Walter

Salvator*eL*arosa ha scritto:

Salve a tutti....
Sto cercando di creare un WMS ma con scarsi risultati!
Il problema sta quando cerco di visualizzarlo (aggiungerlo) in qualche sw
GIS.
L'unico che non mi da problemi e QGIS, mentre in uDIG, gvSIG, ArcGIS 9.2
(tutti all'ultima versione) non riesco
a visualizzare le mie mappe.

di seguito il mapfile:
###########MAPFILE############################
MAP
NAME "WMS-test"
STATUS ON
SIZE 400 300
SYMBOLSET "../ditradata/symbols/symbols35.sym"
EXTENT 2614649 4320194 2653614 4344669
UNITS METERS
SHAPEPATH "../CMS"
IMAGECOLOR 255 255 255
FONTSET "../CMS/font/font.txt"
IMAGETYPE PNG
PROJECTION
  "init=epsg:3004" ##required
END
# OUTPUTFORMAT
# NAME jpeg
# DRIVER "GD/JPEG"
# # quality setting: 0 is minimum quality, 100 is maximum quality
# FORMATOPTION QUALITY=70
# # data format
# MIMETYPE "image/jpeg"
# # currently, there is no real grayscale jpeg output available
# IMAGEMODE RGB
# EXTENSION "jpg"
# END

OUTPUTFORMAT
  NAME png
  DRIVER "GD/PNG"
  MIMETYPE "image/png"
  IMAGEMODE RGB
  FORMATOPTION INTERLACE=OFF
  TRANSPARENT OFF
END

OUTPUTFORMAT
  NAME png8
  DRIVER "GD/PNG"
  MIMETYPE "image/png"
  IMAGEMODE PC256
  FORMATOPTION INTERLACE=OFF
  TRANSPARENT OFF
END

WEB
  IMAGEPATH "/mapserver/wms_tmp/"
  IMAGEURL "/wms_tmp/"
  METADATA
    "wms_title" "WMS Demo Server" ##required
    "wms_abstract" "Web Map Service"
    "wms_onlineresource" "http://debian/cgi-bin/mapserv?" ##required
    #"wms_srs" "EPSG:26592 EPSG:3004" ##recommended
    "wms_getfeatureinfo"
"http://debian/cgi-bin/mapserv?map=/home/sam/www/WMS/wms.map&"
    "wms_featureinfoformat" "text/plain"
   # "wms_feature_info_mime_type" "text/html"
  END
END

#
# Start of layer definitions
#

LAYER
  NAME "DEM"
  TYPE Raster
  STATUS ON
  DATA '../CMS/dem.tif'
  #MINSCALE 80000
  
  PROJECTION
    "init=epsg:3004"
  END
  METADATA
   "wms_title" "Modello digitale del Terreno" ##required
   "wms_include_items" "all"
   "wms_srs" "EPSG:3004"
  END # Metadata
END # Layer

LAYER
  NAME "Limiti Amministartivi"
  METADATA
    "wms_title" "Comuni" ##required
    "wms_include_items" "all"
    "wms_srs" "EPSG:3004"
  END
  TYPE POLYGON
  STATUS ON
  TRANSPARENCY 45
  DATA comu_savuto

  TEMPLATE 'dummy'
  DUMP TRUE
  LABELITEM "NOME_COM"
  PROJECTION
    "init=epsg:3004" ##recommended
  END
  CLASSITEM 'NOME_COM'
  CLASS
    Name 'Limiti'
    COLOR 55 245 0
    SYMBOL 'square'
    OUTLINECOLOR 0 0 0
    SIZE 8
    LABEL
      FONT arial
      TYPE truetype
      ANTIALIAS false
      SIZE 8
      COLOR 0 0 0
      POSITION cc
      PARTIALS FALSE
      FORCE true
      OFFSET 0 0
      #OUTLINECOLOR 0 0 0
    END #Label
    TEMPLATE 'dummy'
  END # Class
# CLASS
# NAME "Comuni"
# STYLE
# COLOR 200 255 0
# OUTLINECOLOR 120 120 120
# END
# END
END # Layer

LAYER
  NAME "Rete Stradale"
  TYPE line
  DATA "strade"
  LABELITEM "NOME"
  LABELMAXSCALE 10000
  PROJECTION
    "init=epsg:3004"
  END
  METADATA
    "wms_title" "Strade" ##required
    "wms_include_items" "all"
    "wms_srs" "EPSG:3004"
  END
  CLASS
    Name 'strade'
    COLOR 51 255 0
    SYMBOL 'circle'
     LABEL
      ANGLE auto
      FONT arial
      TYPE truetype
      ANTIALIAS false
      SIZE 8
      OUTLINECOLOR 255 255 255
      COLOR 0 0 0
      POSITION uc
      PARTIALS FALSE
      FORCE false
      OFFSET 0 0
      #OUTLINECOLOR 0 0 0
    END #Label
    SIZE 4
    TEMPLATE dummy
  END # Class
END # Layer

LAYER
  NAME "Idrografia"
  TYPE line
  DATA "elementi_idrici"
  STATUS OFF

  PROJECTION
    "init=epsg:3004"
  END
  METADATA
    "wms_title" "Elementi Idrici" ##required
    "wms_include_items" "all"
    "wms_srs" "EPSG:3004"
  END
# CLASSITEM toponimo
# CLASS
# NAME "Fiume Crati"
# EXPRESSION "Fiume Crati"
# COLOR 0 0 255
# SYMBOL 'circle'
# SIZE 4
# TEMPLATE dummy
# END # Class
# CLASS
# NAME "Fiume Amato"
# EXPRESSION "Fiume Amato"
# COLOR 0 0 255
# SYMBOL 'circle'
# SIZE 4
# TEMPLATE dummy
# END # Class
# CLASS
# NAME "Fiume Tacina"
# EXPRESSION "Fiume Tacina"
# COLOR 0 0 255
# SYMBOL 'circle'
# SIZE 4
# TEMPLATE dummy
# END # Class
# CLASS
# NAME "Fiume Savuto"
# EXPRESSION "Fiume Savuto"
# COLOR 0 0 255
# SYMBOL 'circle'
# SIZE 4
# TEMPLATE dummy
# END # Class
# CLASS
# NAME "Fiume Neto"
# EXPRESSION "Fiume Neto"
# COLOR 0 0 255
# SYMBOL 'circle'
# SIZE 4
# TEMPLATE dummy
# END # Class
# CLASS
# NAME "Fiume TRIONTO"
# EXPRESSION "Fiume TRIONTO"
# COLOR 0 0 255
# SYMBOL 'circle'
# SIZE 4
# TEMPLATE dummy
# END # Class
  CLASS
    Name 'elementi_idrici'
    COLOR 0 0 255
    SYMBOL 'circle'
    SIZE 2
    TEMPLATE 'dummy'
  END # Class
END # Layer

LAYER
  NAME "Sentieri"
  METADATA
    "wms_title" "Sentieri naturalistici" ##required
    "wms_include_items" "all"
    "wms_srs" "EPSG:3004"
  END
  TYPE LINE
  STATUS ON
  DATA sentieri
  TEMPLATE 'dummy'
  PROJECTION
    "init=epsg:3004" ##recommended
  END
  CLASSITEM "RIF"
  CLASS
  NAME 'A3'
  EXPRESSION "A3"
  STYLE
   COLOR 0 0 0
   SYMBOL 'punkt'
   SIZE 7
  END
  STYLE
   COLOR 255 255 0
   SYMBOL 'punkt'
   SIZE 5
  END
  STYLE
   COLOR 0 0 0
   SYMBOL 'line-a3'
   SIZE 1
  END
END
  CLASS
    Name "Sentieri"
    STYLE
    COLOR 255 50 0
    SYMBOL punkt
    SIZE 5
    END
    STYLE
    COLOR 255 255 0
    SYMBOL line-a3
    SIZE 1
    END
  END
END # Layer

LAYER
  NAME "CAI"
  #CONNECTION "user=postgres dbname=cms host=localhost port=5432"
  #DATA "the_geom from (select gid,the_geom,cod_cai from sentieri) as
newtable USING UNIQUE gid USING SRID=26592"
  #DATA "the_geom from sentieri"
  TYPE POINT
  TOLERANCE 10
  TOLERANCEUNITS pixels
  DATA "marker_gbe"
  LABELITEM "CAI"
  STATUS ON
  TEMPLATE 'dummy'
  DUMP TRUE
  PROJECTION
    "init=epsg:3004"
  END
  METADATA
    "wms_title" "Segnaletica CAI" ##required
    "wms_include_items" "all"
    "wms_srs" "EPSG:3004"
  END # Metadata
  CLASSITEM CAI
  CLASS
    Name 'marker'
    STYLE
    #COLOR 0 0 255
    SYMBOL '/home/sam/www/SISNCMS/symbol_image/cai.gif'
    SIZE 18
    END
    LABEL
      POSITION cc
      #COLOR 0 0 0
      #BACKGROUNDCOLOR 255 255 255
      #BACKGROUNDSHADOWCOLOR 255 0 0
      #BACKGROUNDSHADOWSIZE 2 2
      BUFFER 0
      TYPE truetype
      FONT arial
      SIZE 8
      MAXSIZE 14
      #SIZE small
    END #Label
    TEMPLATE 'dummy'
  END # Class
END # Layer

END # Map File
#################################################

qualcuno sa dirmi dove sto sbagliando?

--
Please no .doc, .xls, .ppt, .dwg:
https://www.faunalia.it/dokuwiki/doku.php?id=public:OpenFormats

Walter Lorenzetti
email+jabber: lorenzetti@faunalia.it
www.faunalia.it
Cell: (+39) 347-6597931 Tel+Fax: (+39) 0587-213742
Piazza Garibaldi 5 - 56025 Pontedera (PI), Italy

Walter Lorenzetti-3 wrote:

E' un pò che nonci lavoro con un server wms com mapserver...
comunque come mai nella proprietà

wms_onlineresource

non vedo il dominio tuo...

lo stesso per quanto riguarda la proprietà

wms_getfeatureinfo

la maggior parte dei software lo richiedono

ma via url? con 'request=GetCapabilities', funziona?

Walter

il dominio non c'è perchè ancora non è pubblicato, funziona solo in locale!
--
View this message in context: http://www.nabble.com/WMS---tf3763619.html#a10639174
Sent from the Gfoss mailing list archive at Nabble.com.

uDig che messaggio di errore fornisce?

W

Salvator*eL*arosa ha scritto:

Walter Lorenzetti-3 wrote:
  

E' un pò che nonci lavoro con un server wms com mapserver...
comunque come mai nella proprietà

wms_onlineresource

non vedo il dominio tuo...

lo stesso per quanto riguarda la proprietà

wms_getfeatureinfo

la maggior parte dei software lo richiedono

ma via url? con 'request=GetCapabilities', funziona?

Walter

il dominio non c'è perchè ancora non è pubblicato, funziona solo in locale!
  
--
Please no .doc, .xls, .ppt, .dwg:
https://www.faunalia.it/dokuwiki/doku.php?id=public:OpenFormats

Walter Lorenzetti
email+jabber: lorenzetti@faunalia.it
www.faunalia.it
Cell: (+39) 347-6597931 Tel+Fax: (+39) 0587-213742
Piazza Garibaldi 5 - 56025 Pontedera (PI), Italy

Walter Lorenzetti-3 wrote:

ma via url? con 'request=GetCapabilities', funziona?

Walter

Ho provato via url.....mi da questo errore:

<?xml version='1.0' encoding="ISO-8859-1" standalone="no" ?>
<!DOCTYPE ServiceExceptionReport SYSTEM
"http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd&quot;&gt;
<ServiceExceptionReport version="1.1.1">
<ServiceException code="ServiceNotDefined">
msWMSDispatch: WMS server error. Required SERVICE parameter missing.
</ServiceException>
</ServiceExceptionReport>

--
View this message in context: http://www.nabble.com/WMS---tf3763619.html#a10639210
Sent from the Gfoss mailing list archive at Nabble.com.

L'url dovrebbe essere una cosa del genere:
http://debian/cgi-bin/mapserv?map=/home/sam/www/WMS/wms.map&service=wms&version=1.1.1&request=gecapabilities

poi rigurdando il map file mi sono reso conto che anche nella proprietà
"wms_onlineresource" manca la dichirazione del map= che invece è
presente nella proprietà "wms_getfeatureinfo"

W
Salvator*eL*arosa ha scritto:

Walter Lorenzetti-3 wrote:
  

ma via url? con 'request=GetCapabilities', funziona?

Walter

Ho provato via url.....mi da questo errore:

<?xml version='1.0' encoding="ISO-8859-1" standalone="no" ?>
<!DOCTYPE ServiceExceptionReport SYSTEM
"http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd&quot;&gt;
<ServiceExceptionReport version="1.1.1">
<ServiceException code="ServiceNotDefined">
msWMSDispatch: WMS server error. Required SERVICE parameter missing.
</ServiceException>
</ServiceExceptionReport>

--
Please no .doc, .xls, .ppt, .dwg:
https://www.faunalia.it/dokuwiki/doku.php?id=public:OpenFormats

Walter Lorenzetti
email+jabber: lorenzetti@faunalia.it
www.faunalia.it
Cell: (+39) 347-6597931 Tel+Fax: (+39) 0587-213742
Piazza Garibaldi 5 - 56025 Pontedera (PI), Italy

Walter Lorenzetti-3 wrote:

L'url dovrebbe essere una cosa del genere:
http://debian/cgi-bin/mapserv?map=/home/sam/www/WMS/wms.map&service=wms&version=1.1.1&request=gecapabilities

poi rigurdando il map file mi sono reso conto che anche nella proprietà
"wms_onlineresource" manca la dichirazione del map= che invece è
presente nella proprietà "wms_getfeatureinfo"

W

Si lo so ma l'ho fatto di proposito per nascondere il path del mapfile......
praticamente ho creato questo file mywms con dentro questo:

#! /bin/sh
MS_MAPFILE=/home/sam/www/WMS/wms.map
export MS_MAPFILE
/usr/lib/cgi-bin/mapserv

Grazie per le risposte!
--
View this message in context: http://www.nabble.com/WMS---tf3763619.html#a10639329
Sent from the Gfoss mailing list archive at Nabble.com.

La sezione WEB del mapfile è questa:

WEB
  IMAGEPATH "/mapserver/wms_tmp/"
  IMAGEURL "/wms_tmp/"
  METADATA
    "wms_title" "WMS Demo Server" ##required
    "wms_abstract" "Web Map Service....."
    "wms_onlineresource" "http://debian/cgi-bin/mywms?&quot; ##required
    #"wms_srs" "EPSG:26592 EPSG:3004" ##recommended
    "wms_getfeatureinfo" "http://debian/cgi-bin/mywms?&quot;
    "wms_featureinfoformat" "text/plain"
   # "wms_feature_info_mime_type" "text/html"
  END
END

--
View this message in context: http://www.nabble.com/WMS---tf3763619.html#a10640600
Sent from the Gfoss mailing list archive at Nabble.com.

Comunque via url funziona?

http://debian/cgi-bin/mapserv?service=wms&version=1.1.1&request=gecapabilities

Walter

Salvator*eL*arosa ha scritto:

La sezione WEB del mapfile è questa:

WEB
  IMAGEPATH "/mapserver/wms_tmp/"
  IMAGEURL "/wms_tmp/"
  METADATA
    "wms_title" "WMS Demo Server" ##required
    "wms_abstract" "Web Map Service....."
    "wms_onlineresource" "http://debian/cgi-bin/mywms?&quot; ##required
    #"wms_srs" "EPSG:26592 EPSG:3004" ##recommended
    "wms_getfeatureinfo" "http://debian/cgi-bin/mywms?&quot;
    "wms_featureinfoformat" "text/plain"
   # "wms_feature_info_mime_type" "text/html"
  END
END

--
Please no .doc, .xls, .ppt, .dwg:
https://www.faunalia.it/dokuwiki/doku.php?id=public:OpenFormats

Walter Lorenzetti
email+jabber: lorenzetti@faunalia.it
www.faunalia.it
Cell: (+39) 347-6597931 Tel+Fax: (+39) 0587-213742
Piazza Garibaldi 5 - 56025 Pontedera (PI), Italy

Walter Lorenzetti-3 wrote:

Comunque via url funziona?

http://debian/cgi-bin/mapserv?service=wms&version=1.1.1&request=gecapabilities

Walter

Mi da quell'errore che ho postato prima....asp meglio se riscrivo l'errore:
<?xml version='1.0' encoding="ISO-8859-1" standalone="no" ?>
<!DOCTYPE ServiceExceptionReport SYSTEM
"http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd&quot;&gt;
<ServiceExceptionReport version="1.1.1">
<ServiceException>
msWMSDispatch(): WMS server error. Incomplete or unsupported WMS request
</ServiceException>
</ServiceExceptionReport>

comunque adesso con gvSIG funziona ho cambiato solo:
"wms_onlineresource" "http://debian/cgi-bin/mapserv?&quot; in
"wms_onlineresource" "http://debian/cgi-bin/mywms?&quot;
e
"wms_getfeatureinfo"
"http://debian/cgi-bin/mapserv?&map=/home/sam/www/WMS/wms.map&quot; in
"wms_getfeatureinfo" "http://debian/cgi-bin/mywms?&quot;

ma per quanto riguarda uDIG e ArcGIS ancora don't work!

--
View this message in context: http://www.nabble.com/WMS---tf3763619.html#a10641297
Sent from the Gfoss mailing list archive at Nabble.com.

si scusa non mi ero accorto del mywms che avevi fatto:

http://debian/cgi-bin/mywms?service=wms&version=1.1.1&request=gecapabilities

così dovrebbe funzionare...

ciao
Walter

Salvator*eL*arosa ha scritto:

Walter Lorenzetti-3 wrote:
  

Comunque via url funziona?

http://debian/cgi-bin/mapserv?service=wms&version=1.1.1&request=gecapabilities

Walter

Mi da quell'errore che ho postato prima....asp meglio se riscrivo l'errore:
<?xml version='1.0' encoding="ISO-8859-1" standalone="no" ?>
<!DOCTYPE ServiceExceptionReport SYSTEM
"http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd&quot;&gt;
<ServiceExceptionReport version="1.1.1">
<ServiceException>
msWMSDispatch(): WMS server error. Incomplete or unsupported WMS request
</ServiceException>
</ServiceExceptionReport>

comunque adesso con gvSIG funziona ho cambiato solo:
"wms_onlineresource" "http://debian/cgi-bin/mapserv?&quot; in
"wms_onlineresource" "http://debian/cgi-bin/mywms?&quot;
e
"wms_getfeatureinfo"
"http://debian/cgi-bin/mapserv?&map=/home/sam/www/WMS/wms.map&quot; in
"wms_getfeatureinfo" "http://debian/cgi-bin/mywms?&quot;

ma per quanto riguarda uDIG e ArcGIS ancora don't work!

--
Please no .doc, .xls, .ppt, .dwg:
https://www.faunalia.it/dokuwiki/doku.php?id=public:OpenFormats

Walter Lorenzetti
email+jabber: lorenzetti@faunalia.it
www.faunalia.it
Cell: (+39) 347-6597931 Tel+Fax: (+39) 0587-213742
Piazza Garibaldi 5 - 56025 Pontedera (PI), Italy

si scusa non mi ero accorto del mywms che avevi fatto:

http://debian/cgi-bin/mywms?service=wms&version=1.1.1&request=gecapabilities

così dovrebbe funzionare...

così dubito (manca una t).

prova così:
http://debian/cgi-bin/mywms?service=WMS&version=1.1.1&request=GetCapabilities

:-[ La dislessia che brutta cosa!!!

:slight_smile:
ciao
Walter

Lorenzo Becchi ha scritto:

si scusa non mi ero accorto del mywms che avevi fatto:

http://debian/cgi-bin/mywms?service=wms&version=1.1.1&request=gecapabilities

così dovrebbe funzionare...
    
così dubito (manca una t).

prova così:
http://debian/cgi-bin/mywms?service=WMS&version=1.1.1&request=GetCapabilities

_______________________________________________
Gfoss mailing list
Gfoss@faunalia.com
http://www.faunalia.com/cgi-bin/mailman/listinfo/gfoss

--
Please no .doc, .xls, .ppt, .dwg:
https://www.faunalia.it/dokuwiki/doku.php?id=public:OpenFormats

Walter Lorenzetti
email+jabber: lorenzetti@faunalia.it
www.faunalia.it
Cell: (+39) 347-6597931 Tel+Fax: (+39) 0587-213742
Piazza Garibaldi 5 - 56025 Pontedera (PI), Italy

Salvo,
prova a non commentare "wms_srs" (recommended) e ad indicare un unico EPSG code.
Alcuni client GIS (giustamente!) vanno in crisi se nel service non è specificato un adeguato CRS.

In bocca al lupo!
Ciao
Antonio

Salvator*eL*arosa ha scritto:

La sezione WEB del mapfile è questa:

WEB
  IMAGEPATH "/mapserver/wms_tmp/"
  IMAGEURL "/wms_tmp/"
  METADATA
    "wms_title" "WMS Demo Server" ##required
    "wms_abstract" "Web Map Service....."
    "wms_onlineresource" "http://debian/cgi-bin/mywms?&quot; ##required #"wms_srs" "EPSG:26592 EPSG:3004" ##recommended
    "wms_getfeatureinfo" "http://debian/cgi-bin/mywms?&quot;
    "wms_featureinfoformat" "text/plain"
   # "wms_feature_info_mime_type" "text/html"
  END
END

  ------------------------------------------------------------------------

No virus found in this incoming message.
Checked by AVG Free Edition. Version: 7.5.467 / Virus Database: 269.6.8/800 - Release Date: 11/05/2007 19.34
  

Lorenzo Becchi wrote:

prova così:
http://debian/cgi-bin/mywms?service=WMS&version=1.1.1&request=GetCapabilities

Scusate il ritardo......
Adesso penso funzioni...il comando mi torna un file XML (allegato).

Oggi provo a vedere se funziona in arcgis.....
http://www.nabble.com/file/8521/mywms mywms
--
View this message in context: http://www.nabble.com/WMS---tf3763619.html#a10677792
Sent from the Gfoss mailing list archive at Nabble.com.

Scusate il ritardo......
Adesso penso funzioni...il comando mi torna un file XML (allegato).

io l'allegato non lo vedo o gli allegati non li posso vedere.

guardo la lista dal web...
http://www.faunalia.com/pipermail/gfoss/2007-May/004429.html

ciao
lorenzo

Lorenzo Becchi wrote:

io l'allegato non lo vedo o gli allegati non li posso vedere.
guardo la lista dal web...
http://www.faunalia.com/pipermail/gfoss/2007-May/004429.html
ciao
lorenzo

Scusa ma non sapendo come allegare i file ho messo
un link alla parola mywms!
Cmq dal web dovrebbe funzionare.....

--
View this message in context: http://www.nabble.com/WMS---tf3763619.html#a10680443
Sent from the Gfoss mailing list archive at Nabble.com.

Ciao,
tempo fa ho avuto un problema simile, che ho risolto aggiungendo il
parametro "ows_schemas_location":
http://mapserver.gis.umn.edu/docs/howto/wms_server/#web-object-metadata

In bocca al lupo,

a

Salvator*eL*arosa wrote:

Salve a tutti....
Sto cercando di creare un WMS ma con scarsi risultati!
Il problema sta quando cerco di visualizzarlo (aggiungerlo) in qualche sw
GIS.
L'unico che non mi da problemi e QGIS, mentre in uDIG, gvSIG, ArcGIS 9.2
(tutti all'ultima versione) non riesco
a visualizzare le mie mappe.

di seguito il mapfile:
###########MAPFILE############################
MAP
NAME "WMS-test"
STATUS ON
SIZE 400 300
SYMBOLSET "../ditradata/symbols/symbols35.sym"
EXTENT 2614649 4320194 2653614 4344669
UNITS METERS
SHAPEPATH "../CMS"
IMAGECOLOR 255 255 255
FONTSET "../CMS/font/font.txt"
IMAGETYPE PNG
PROJECTION
  "init=epsg:3004" ##required
END
# OUTPUTFORMAT
# NAME jpeg
# DRIVER "GD/JPEG"
# # quality setting: 0 is minimum quality, 100 is maximum quality
# FORMATOPTION QUALITY=70
# # data format
# MIMETYPE "image/jpeg"
# # currently, there is no real grayscale jpeg output available
# IMAGEMODE RGB
# EXTENSION "jpg"
# END

OUTPUTFORMAT
  NAME png
  DRIVER "GD/PNG"
  MIMETYPE "image/png"
  IMAGEMODE RGB
  FORMATOPTION INTERLACE=OFF
  TRANSPARENT OFF
END

OUTPUTFORMAT
  NAME png8
  DRIVER "GD/PNG"
  MIMETYPE "image/png"
  IMAGEMODE PC256
  FORMATOPTION INTERLACE=OFF
  TRANSPARENT OFF
END

WEB
  IMAGEPATH "/mapserver/wms_tmp/"
  IMAGEURL "/wms_tmp/"
  METADATA
    "wms_title" "WMS Demo Server" ##required
    "wms_abstract" "Web Map Service"
    "wms_onlineresource" "http://debian/cgi-bin/mapserv?&quot; ##required
    #"wms_srs" "EPSG:26592 EPSG:3004" ##recommended
    "wms_getfeatureinfo"
"http://debian/cgi-bin/mapserv?map=/home/sam/www/WMS/wms.map&&quot;
    "wms_featureinfoformat" "text/plain"
   # "wms_feature_info_mime_type" "text/html"
  END
END

#
# Start of layer definitions
#

LAYER
  NAME "DEM"
  TYPE Raster
  STATUS ON
  DATA '../CMS/dem.tif'
  #MINSCALE 80000
  
  PROJECTION
    "init=epsg:3004"
  END
  METADATA
   "wms_title" "Modello digitale del Terreno" ##required
   "wms_include_items" "all"
   "wms_srs" "EPSG:3004"
  END # Metadata
END # Layer

LAYER
  NAME "Limiti Amministartivi"
  METADATA
    "wms_title" "Comuni" ##required
    "wms_include_items" "all"
    "wms_srs" "EPSG:3004"
  END
  TYPE POLYGON
  STATUS ON
  TRANSPARENCY 45
  DATA comu_savuto

  TEMPLATE 'dummy'
  DUMP TRUE
  LABELITEM "NOME_COM"
  PROJECTION
    "init=epsg:3004" ##recommended
  END
  CLASSITEM 'NOME_COM'
  CLASS
    Name 'Limiti'
    COLOR 55 245 0
    SYMBOL 'square'
    OUTLINECOLOR 0 0 0
    SIZE 8
    LABEL
      FONT arial
      TYPE truetype
      ANTIALIAS false
      SIZE 8
      COLOR 0 0 0
      POSITION cc
      PARTIALS FALSE
      FORCE true
      OFFSET 0 0
      #OUTLINECOLOR 0 0 0
    END #Label
    TEMPLATE 'dummy'
  END # Class
# CLASS
# NAME "Comuni"
# STYLE
# COLOR 200 255 0
# OUTLINECOLOR 120 120 120
# END
# END
END # Layer

LAYER
  NAME "Rete Stradale"
  TYPE line
  DATA "strade"
  LABELITEM "NOME"
  LABELMAXSCALE 10000
  PROJECTION
    "init=epsg:3004"
  END
  METADATA
    "wms_title" "Strade" ##required
    "wms_include_items" "all"
    "wms_srs" "EPSG:3004"
  END
  CLASS
    Name 'strade'
    COLOR 51 255 0
    SYMBOL 'circle'
     LABEL
      ANGLE auto
      FONT arial
      TYPE truetype
      ANTIALIAS false
      SIZE 8
      OUTLINECOLOR 255 255 255
      COLOR 0 0 0
      POSITION uc
      PARTIALS FALSE
      FORCE false
      OFFSET 0 0
      #OUTLINECOLOR 0 0 0
    END #Label
    SIZE 4
    TEMPLATE dummy
  END # Class
END # Layer

LAYER
  NAME "Idrografia"
  TYPE line
  DATA "elementi_idrici"
  STATUS OFF

  PROJECTION
    "init=epsg:3004"
  END
  METADATA
    "wms_title" "Elementi Idrici" ##required
    "wms_include_items" "all"
    "wms_srs" "EPSG:3004"
  END
# CLASSITEM toponimo
# CLASS
# NAME "Fiume Crati"
# EXPRESSION "Fiume Crati"
# COLOR 0 0 255
# SYMBOL 'circle'
# SIZE 4
# TEMPLATE dummy
# END # Class
# CLASS
# NAME "Fiume Amato"
# EXPRESSION "Fiume Amato"
# COLOR 0 0 255
# SYMBOL 'circle'
# SIZE 4
# TEMPLATE dummy
# END # Class
# CLASS
# NAME "Fiume Tacina"
# EXPRESSION "Fiume Tacina"
# COLOR 0 0 255
# SYMBOL 'circle'
# SIZE 4
# TEMPLATE dummy
# END # Class
# CLASS
# NAME "Fiume Savuto"
# EXPRESSION "Fiume Savuto"
# COLOR 0 0 255
# SYMBOL 'circle'
# SIZE 4
# TEMPLATE dummy
# END # Class
# CLASS
# NAME "Fiume Neto"
# EXPRESSION "Fiume Neto"
# COLOR 0 0 255
# SYMBOL 'circle'
# SIZE 4
# TEMPLATE dummy
# END # Class
# CLASS
# NAME "Fiume TRIONTO"
# EXPRESSION "Fiume TRIONTO"
# COLOR 0 0 255
# SYMBOL 'circle'
# SIZE 4
# TEMPLATE dummy
# END # Class
  CLASS
    Name 'elementi_idrici'
    COLOR 0 0 255
    SYMBOL 'circle'
    SIZE 2
    TEMPLATE 'dummy'
  END # Class
END # Layer

LAYER
  NAME "Sentieri"
  METADATA
    "wms_title" "Sentieri naturalistici" ##required
    "wms_include_items" "all"
    "wms_srs" "EPSG:3004"
  END
  TYPE LINE
  STATUS ON
  DATA sentieri
  TEMPLATE 'dummy'
  PROJECTION
    "init=epsg:3004" ##recommended
  END
  CLASSITEM "RIF"
  CLASS
  NAME 'A3'
  EXPRESSION "A3"
  STYLE
   COLOR 0 0 0
   SYMBOL 'punkt'
   SIZE 7
  END
  STYLE
   COLOR 255 255 0
   SYMBOL 'punkt'
   SIZE 5
  END
  STYLE
   COLOR 0 0 0
   SYMBOL 'line-a3'
   SIZE 1
  END
END
  CLASS
    Name "Sentieri"
    STYLE
    COLOR 255 50 0
    SYMBOL punkt
    SIZE 5
    END
    STYLE
    COLOR 255 255 0
    SYMBOL line-a3
    SIZE 1
    END
  END
END # Layer

LAYER
  NAME "CAI"
  #CONNECTION "user=postgres dbname=cms host=localhost port=5432"
  #DATA "the_geom from (select gid,the_geom,cod_cai from sentieri) as
newtable USING UNIQUE gid USING SRID=26592"
  #DATA "the_geom from sentieri"
  TYPE POINT
  TOLERANCE 10
  TOLERANCEUNITS pixels
  DATA "marker_gbe"
  LABELITEM "CAI"
  STATUS ON
  TEMPLATE 'dummy'
  DUMP TRUE
  PROJECTION
    "init=epsg:3004"
  END
  METADATA
    "wms_title" "Segnaletica CAI" ##required
    "wms_include_items" "all"
    "wms_srs" "EPSG:3004"
  END # Metadata
  CLASSITEM CAI
  CLASS
    Name 'marker'
    STYLE
    #COLOR 0 0 255
    SYMBOL '/home/sam/www/SISNCMS/symbol_image/cai.gif'
    SIZE 18
    END
    LABEL
      POSITION cc
      #COLOR 0 0 0
      #BACKGROUNDCOLOR 255 255 255
      #BACKGROUNDSHADOWCOLOR 255 0 0
      #BACKGROUNDSHADOWSIZE 2 2
      BUFFER 0
      TYPE truetype
      FONT arial
      SIZE 8
      MAXSIZE 14
      #SIZE small
    END #Label
    TEMPLATE 'dummy'
  END # Class
END # Layer

END # Map File
#################################################

qualcuno sa dirmi dove sto sbagliando?

--
View this message in context: http://www.nabble.com/WMS---tf3763619.html#a10685314
Sent from the Gfoss mailing list archive at Nabble.com.

Salvatore, adesso va benone, è quello che ti deve rendere la GetCapabilities.

fai attenzione a questo messaggio che ho copiato da quel codice:

<!-- WARNING: The layer name 'Limiti Amministartivi' might contain spaces or invalid characters or may start with a number. This could lead to potential problems. -->

in pratica ti dice di stare attento a che nome dai al Layer.
meglio usare "limiti_amministrativi" mentre informazioni addizionali li puoi dare con il wms_title e il wms_abstract.
Non usare parole accentate e/o apostrofi nel nome layer. in pratica si consiglia l'uso dei caratteri ASCII base.

sei sulla buona strada, comunque leggiti bene la pagina di mapserver relativa al server wms:
http://mapserver.gis.umn.edu/docs/howto/wms_server

ciao
Lorenzo

Lorenzo Becchi wrote:

Salvatore, adesso va benone, è quello che ti deve rendere la
GetCapabilities.

fai attenzione a questo messaggio che ho copiato da quel codice:

<!-- WARNING: The layer name 'Limiti Amministartivi' might contain
spaces or invalid characters or may start with a number. This could lead
to potential problems. -->

in pratica ti dice di stare attento a che nome dai al Layer.
meglio usare "limiti_amministrativi" mentre informazioni addizionali li
puoi dare con il wms_title e il wms_abstract.
Non usare parole accentate e/o apostrofi nel nome layer. in pratica si
consiglia l'uso dei caratteri ASCII base.

sei sulla buona strada, comunque leggiti bene la pagina di mapserver
relativa al server wms:
http://mapserver.gis.umn.edu/docs/howto/wms_server

ciao
Lorenzo

Ok!
Cmq continua a non funzionare solo in ArcGIS 9.x! Boh!

Grazie mille...
--
View this message in context: http://www.nabble.com/WMS---tf3763619.html#a10715477
Sent from the Gfoss mailing list archive at Nabble.com.