[mapserver-users] MapServer seems to always use GDAL driver with cascaded WMS (instead of AGG)

2010-04-27 Thread SAEZ Laurent - CETE Méditerr./DI/ETER

Hi,

I have some troubles using AGG with cascaded WMS.
I have my first mapfile that exposes WMS layers (MapServer is used as a 
WMS server and a WMS client ) : refs.map
I have a second mapfile that contains a Postgis layer (this mapfile uses 
only MapServer as WMS server) : roads.map
I'm using MapServer 5.6.3 with patch r9635 on Debian (to advertise my 
desired GetMap formats in the WMS/Capabilities) .
I can get nice PNG with AGG when I request directly my second mapfile 
routier.map (using mapserver only as WMS server).
But if I request my first mapfile (that then requests my second mapfile 
using MapServer as WMS client), I get PNG with bad aliasing (AGG does 
not seem to be used!).


I looked at the mapserv.log (for the WMS/GetMap that requests the 
cascaded WMS) and I saw : msDrawGDAL(): red,green,blue,alpha bands = 
1,2,3,4

Does msDrawGDAL meen that DGAL driver is used instead of AGG driver ?

Thanks for your reply.
Laurent
NB : Sorry for my poor English...

An excerpt from my first mapfile (refs.map):
MAP
...
   OUTPUTFORMAT
 NAME PNG
 DRIVER AGG/PNG
 MIMETYPE image/png
 IMAGEMODE RGBA
 TRANSPARENT ON
   END
   ...
   WEB
 ...
 METADATA
...
wms_getmap_formatlist image/png,image/jpg,image/jpeg
 END
   END
   LAYER
 NAME my_layer
 ...
 CONNECTIONTYPE WMS
 http://my_domain/cgi-bin/mapserv?map=/my_path/roads.map;
 METADATA
   WMS_NAME my_roads
   wms_server_version  1.1.1
   wms_format image/png
   ...
 END
   END
   ...
END


An excerpt from my second mapfile (roads.map) :
MAP
...
   OUTPUTFORMAT
 NAME PNG
 DRIVER AGG/PNG
 MIMETYPE image/png
 IMAGEMODE RGBA
 TRANSPARENT ON
   END
   ...
   WEB
 ...
 METADATA
...
wms_getmap_formatlist image/png
 END
   END
   LAYER
 NAME my_roads
 ...
 CONNECTIONTYPEpostgis
   ...
   END
...
END

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


[mapserver-users] WMS GetLegendGraphic truncated

2010-04-07 Thread SAEZ Laurent - CETE Méditerr./DI/ETER

Hi,

I have some problems with WMS / GetLegendGraphic.
The raster genered by mapserver is truncated. I haven't found a logic 
explanation to that behavior.

It seems that the issue does not depend on the width of the CLASS NAME.
It's not the first time I have this issue.

Examples :
http://mapserveur.application.developpement-durable.gouv.fr/map/mapserv?map%3D%2Fopt%2Fdata%2Fcarto%2Fcartelie%2Fprod%2FPNE_IG%2FAccessibilite_commune_DDDtest.i2.mapSERVICE=WMSVERSION=1.1.1REQUEST=GetLegendGraphicFORMAT=image/pngLAYER=c_Accessibilite_EPCI_DDD_Classes_Pourcentage_ERP_intercom_1_2
http://mapserveur.application.developpement-durable.gouv.fr/map/mapserv?map%3D%2Fopt%2Fdata%2Fcarto%2Fcartelie%2Fprod%2FPNE_IG%2FAccessibilite_commune_DDDtest.i2.mapSERVICE=WMSVERSION=1.1.1REQUEST=GetLegendGraphicFORMAT=image/pngLAYER=c_Accessibilite_geofla2008_commune_DDD_Valeurs_CCAPH

I've read the tickets but I've seen nothing interesting...
So, I need help !

Regards

Laurent

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


[mapserver-users]    Re: WMS GetfeatureInfo (GetMap Formats)

2010-04-05 Thread SAEZ Laurent - CETE Méditerr./DI/ETER

Hi,
Thank you Daniel for you answer.
I'll try your solution.
Best regards
Laurent

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


[mapserver-users] WMS GetfeatureInfo (GetMap Formats)

2010-04-02 Thread SAEZ Laurent - CETE Méditerr./DI/ETER

Hi,

I have some problems with WMS / GetCapabilities responses .
The format proposed in section GetMap are not really those that can 
provide MapServer.
According to the documentation 
(http://mapserver.org/ogc/wms_client.html): ...  Also note that WMS 
Servers only advertize supported formats that are part of the GD/GDAL 
libraries.. And unfortunately this is true!
If I add one OUTPUTFORMAT  that uses the driver AGG to generate (for 
example image / png) that format is no longer presented in the WMS / 
GetCapabilities.


Some software, such as MapInfo ®, interrogates, and it is normal, the 
server in a format advertized in the GetCapabilities. So I'm stuck and I 
can't use my WMS layers in MapInfo ® because the styles I use in my 
mapfiles require the AGG driver.


Do you have a solution to manage the advertiz of formats in the WMS / 
GetCapabilities GetMap for?

I tried Wms_getmap_formatlist , but it changes nothing.

Regards

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


[mapserver-users] WMS client and layers using different CRS namespace prefix

2009-01-30 Thread SAEZ Laurent - CETE Méditerr./DI/ETER

Hi list,

I have a question about WMS Client behavior.
I have already post this question in the OGC forum... but nobody answered !
I hope that someone of this MapServer Community has an opinion about it.

In OpenGIS Implementation Specification documents, we can read :
Maps from multiples servers may be overlaid only if all the selected  
servers have at least one CRS in common.
In France, IGN (Instut Géographique National) has defined his own  
namespace to define french CRS by references. This namespace prefix is  
IGNF. For example, IGNF:LAMB93 references RGF93 - Lambert 93.

My question is very simple ?
Does a WMS client have to determine if CRS using different namespace  
prefixes are equivalent ? Confused
E.g. IGNF:LAMB93 is equivalent to EPSG:2154. In this case, does a WMS  
client have to overlay layers in IGNF:LAMB93 and layers in EPSG:2154 ?


Regards

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


[mapserver-users] WMS filter with PropertyIsLike/matchCase doesn't work

2008-08-06 Thread SAEZ Laurent - CETE Méditerr./DI/ETER

Hi list,

I have to make WMS and WFS CaseInsensitive requests.
In this example I use a TAB file and I search a city with its name.
I have a city called milla. In the TAB file the data is : Milla

I have tried WMS request with filter/PropertyIsEqualTo/matchCase and it 
works fine !

http://localhost/cgi-bin/mapserv.exe?map=C:\mapfiles\casse_couche_locale.i2.mapLAYERS=c_COMMUNESLD_BODY=%3CStyledLayerDescriptor%20version%3D%221.0.0%22%3E%3CNamedLayer%3E%3CName%3Ec_COMMUNE%3C%2FName%3E%3CUserStyle%3E%3CFeatureTypeStyle%3E%3CRule%3E%3CFilter%3E%3CPropertyIsEqualTo%20matchCase=%22false%22%3E%3CPropertyName%3ENOM_COM%3C%2FPropertyName%3E%3CLiteral%3Emillas%3C%2FLiteral%3E%3C%2FPropertyIsEqualTo%3E%3C%2FFilter%3E%3CPolygonSymbolizer%3E%3CFill%3E%3CGraphicFill%3E%3CGraphic%3E%3CMark%3E%3CWellKnownName%3Ecross%3C%2FWellKnownName%3E%3CFill%3E%3CCssParameter%20name%3D%22fill%22%3E%23A5F38D%3C%2FCssParameter%3E%3C%2FFill%3E%3C%2FMark%3E%3CSize%3E8.0%3C%2FSize%3E%3C%2FGraphic%3E%3C%2FGraphicFill%3E%3C%2FFill%3E%3CStroke%3E%3CCssParameter%20name%3D%22stroke%22%3E%23A5F38D%3C%2FCssParameter%3E%3CCssParameter%20name%3D%22stroke-width%22%3E2.0%3C%2FCssParameter%3E%3C%2FStroke%3E%3C%2FPolygonSymbolizer%3E%3C%2FRule%3E%3C%2FFeatureTypeStyle%3E%3C%2FUserStyle%3E%3C%2FNamedLayer%3E%3C%2FStyledLayerDescriptor%3EISBASELAYER=falseTRANSPARENT=trueFORMAT=image%2FpngSERVICE=WMSVERSION=1.1.1REQUEST=GetMapSTYLES=EXCEPTIONS=application%2Fvnd.ogc.se_inimageSRS=EPSG%3A27582BBOX=626217.062495,1746065.974996,627776.087504,1747105.325002WIDTH=900HEIGHT=600

But I need to use matchCase with PropertyIsLike. I have tried but I've 
nothing returned !

http://localhost/cgi-bin/mapserv.exe?map=C:\mapfiles\casse_couche_locale.i2.mapLAYERS=c_COMMUNESLD_BODY=%3CStyledLayerDescriptor%20version%3D%221.0.0%22%3E%3CNamedLayer%3E%3CName%3Ec_COMMUNE%3C%2FName%3E%3CUserStyle%3E%3CFeatureTypeStyle%3E%3CRule%3E%3CFilter%3E%3CPropertyIsLike%20wildCard%3D%22*%22%20singleChar%3D%22%23%22%20escapeChar%3D%22!%22%20escape%3D%22!%22%20matchCase%3D%22false%22%3E%3CPropertyName%3ENOM_COM%3C%2FPropertyName%3E%3CLiteral%3E*milla*%3C%2FLiteral%3E%3C%2FPropertyIsLike%3E%3C%2FFilter%3E%3CPolygonSymbolizer%3E%3CFill%3E%3CGraphicFill%3E%3CGraphic%3E%3CMark%3E%3CWellKnownName%3Ecross%3C%2FWellKnownName%3E%3CFill%3E%3CCssParameter%20name%3D%22fill%22%3E%23A5F38D%3C%2FCssParameter%3E%3C%2FFill%3E%3C%2FMark%3E%3CSize%3E8.0%3C%2FSize%3E%3C%2FGraphic%3E%3C%2FGraphicFill%3E%3C%2FFill%3E%3CStroke%3E%3CCssParameter%20name%3D%22stroke%22%3E%23A5F38D%3C%2FCssParameter%3E%3CCssParameter%20name%3D%22stroke-width%22%3E2.0%3C%2FCssParameter%3E%3C%2FStroke%3E%3C%2FPolygonSymbolizer%3E%3C%2FRule%3E%3C%2FFeatureTypeStyle%3E%3C%2FUserStyle%3E%3C%2FNamedLayer%3E%3C%2FStyledLayerDescriptor%3EISBASELAYER=falseTRANSPARENT=trueFORMAT=image%2FpngSERVICE=WMSVERSION=1.1.1REQUEST=GetMapSTYLES=EXCEPTIONS=application%2Fvnd.ogc.se_inimageSRS=EPSG%3A27582BBOX=626217.062495,1746065.974996,627776.087504,1747105.325002WIDTH=900HEIGHT=600

Is it normal ?

Regards

Laurent


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


[mapserver-users] WFS GetFeature with PostGIS database : the PostGIS request is not well formated (with string fields that contains only numbers)

2008-07-24 Thread SAEZ Laurent - CETE Méditerr./DI/ETER

Hi List,

I have a PostGIS database.
I have a point table representing plots.
I have to select a plot using several fields :

   * num_dep (string) : departement code,
   * nom_com (string) : city name,
   * section (string) : section number,
   * numero (string) : plot number.

I use MapServer 4.99 and Postgersql 8.1.

All my fields are strings.
Result of DescribeFeatureType request :
complexType name=bdparcellaire_numeroType
 complexContent
   extension base=gml:AbstractFeatureType
 sequence
   element name=geometry type=gml:PointPropertyType 
minOccurs=0 maxOccurs=1/

   element name=code_dep type=string/
   element name=nom_com type=string/
   element name=section type=string/
   element name=numero type=string/
   element name=gid type=string/
   element name=oid type=string/
 /sequence
   /extension
 /complexContent
/complexType

When I do a WFS GetFeature request, mapserver doesn't format correctly 
strings fields that contains only numbers.
Example : (to select the plot where num_dep='66' and nom_com='Baixas' 
and section='0A' and numero='2651')

http://mapserver_i2.cete-mediterranee.i2/maps/mapserv?map=%2Fdata%2Fcarto%2Fref%2Fbdparcellaire%2Fbdparcellaire_2007_iso.map=SERVICE=WFSVERSION=1.0.0REQUEST=GetFeatureTYPENAME=bdparcellaire_numeroFILTER=%28%3CFilter%3E%3CAnd%3E%3CPropertyIsEqualTo%3E%3CPropertyName%3Ecode_dep%3C%2FPropertyName%3E%3CLiteral%3E66%3C%2FLiteral%3E%3C%2FPropertyIsEqualTo%3E%3CPropertyIsEqualTo%3E%3CPropertyName%3Enom_com%3C%2FPropertyName%3E%3CLiteral%3EBaixas%3C%2FLiteral%3E%3C%2FPropertyIsEqualTo%3E%3CPropertyIsEqualTo%3E%3CPropertyName%3Esection%3C%2FPropertyName%3E%3CLiteral%3E0A%3C%2FLiteral%3E%3C%2FPropertyIsEqualTo%3E%3CPropertyIsEqualTo%3E%3CPropertyName%3Enumero%3C%2FPropertyName%3E%3CLiteral%3E2651%3C%2FLiteral%3E%3C%2FPropertyIsEqualTo%3E%3C%2FAnd%3E%3C%2FFilter%3E%29

For human people :
map=/data/carto/ref/bdparcellaire/bdparcellaire_2007_iso.map=
SERVICE=WFS
VERSION=1.0.0
REQUEST=GetFeature
TYPENAME=bdparcellaire_numero
FILTER=(
Filter
 And
   PropertyIsEqualTo
 PropertyNamecode_dep/PropertyName
 Literal66/Literal
   /PropertyIsEqualTo
   PropertyIsEqualTo
 PropertyNamenom_com/PropertyName
 LiteralBaixas/Literal
   /PropertyIsEqualTo
   PropertyIsEqualTo
 PropertyNamesection/PropertyName
 Literal0A/Literal
   /PropertyIsEqualTo
   PropertyIsEqualTo
 PropertyNamenumero/PropertyName
 Literal2651/Literal
   /PropertyIsEqualTo
 /And
/Filter)

MapServer sends this instruction to PostGIS :
LOG:  instruction : DECLARE mycursor BINARY CURSOR FOR SELECT 
asbinary(force_collection(force_2d(the_geom)),'NDR'),oid::text from 
(select code_dep, nom_com, section, numero, gid, the_geom, oid FROM 
localisant) as foo WHERE ( (code_dep= 66)  And  ( (nom_com= 'Baixas')  
And  ( (section= '0A')  And  (numero= 2651) ) ) ) and (the_geom  
setSRID( 'BOX3D(47650 1620400,1197850 2677450)'::BOX3D,27582) )


We can see that code_dep and numero are not quoted. It's not a problem 
in this example, but when I search the plot with the numero=0256, search 
returned no results. The plot exists ! The right request in PostGIS 
returns the plot.

It seems that not '0256' is search but 256.
Is it a bug ? I think so !
For me it's very very very very disturbing.
I can't use mapserver as a WFS server to select plot !
I hope someone could help me !

Regards

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


Re: [mapserver-users] GetFeatureInfo from PostGis database

2008-07-01 Thread SAEZ Laurent - CETE Méditerr./DI/ETER

Hi Guillaume,

You're right. A friend of mine has told me the same thing this morning. 
It works goo ! Youpi !


Thank you very much for your help

Regards

Le 01/07/2008 07:53,  Guillaume Sueur (par Internet) a écrit  :

add gid to the SQL string :

DATA  the_geom FROM (select gid, numero, feuille,
 the_geom FROM localisant) as foo USING UNIQUE gid USING SRID=27582

and try to use EPSG:27572 as 27582 is deprecated.

Regards,
GUillaume



SAEZ Laurent - CETE Méditerr./DI/ETER a écrit :
  

Hi,

I've tried to use the gid column, but the getfeatureinfo reports me an
error :
Postgresql reports the error as #39;ERREUR:  la colonne «gid»
n#39;existe pas
#39;
The error tells me that the gid column doesn't exist. You can trust me,
I have a field called gid.

Thanks

Le 30/06/2008 19:49,  Bart van den Eijnden (OSGIS) (par Internet) a
écrit  :


You shouldn't use the geometry column as the unique column (USING
UNIQUE X).

Try an integer type column for that.

Best regards,
Bart

SAEZ Laurent - CETE Méditerr./DI/ETER wrote:
  

Hi list,

I'm trying to access data fields using getfeatureinfo from a PostGIS
database.
I've read some articles about it, but it seems that I'm a newbie.
I've no problem with data access when I do some getmap requests.

Here is a part of my mapfile :

   LAYER
   NAMEbdparcellaire_numero
   TYPEannotation
   STATUS ON
   DUMP TRUE
   TEMPLATE blank.html
   MINSCALE 100
   MAXSCALE 1
   CONNECTIONTYPEpostgis
   CONNECTIONuser=toto password=toto
dbname=bdparcellaire_2007 host=172.23.208.134 port=5432
   
   LABELITEMnumero

   CLASS
 LABEL
   TYPE TRUETYPE
   WRAP #
   COLOR 0 0 0
   OUTLINECOLOR 254 254 254
   FONT arial
   SIZE 9
   POSITION CC
   FORCE false
   PARTIALS false
 END
END
   METADATA
   WMS_TITLE Numéros de parcelle (Données BD Parcellaire® -
Copyright IGN)
   wms_abstract Visible entre les échelles 1/100 et 1/10
000wms_srs EPSG:27582 EPSG:27581 EPSG:27583
EPSG:27584 EPSG:27591 EPSG:27592 EPSG:27593 EPSG:27594 EPSG:2154
EPSG:23030 EPSG:23031 EPSG:23032 EPSG:32630 EPSG:32631 EPSG:32632
EPSG:4326
   wms_extent 47650 1620400 1197850 2677450   
WMS_ENCODING UTF-8

   GML_INCLUDE_ITEMS all
   END
   END

When I try this getfeatureinfo request, the XML returned is not
complete :

The request :
http://myIP/cgi-bin/mapserv?map=/data/carto/ref/bdparcellaire/bdparcellaire_2007_direct.mapSERVICE=WMSVERSION=1.1.1REQUEST=GetFeatureInfoSRS=EPSG%3A27582WIDTH=600HEIGHT=400BBOX=643470,1743572,643590,1743652LAYERS=bdparcellaire_numeroSTYLES=FORMAT=image%2FpngQUERY_LAYERS=bdparcellaire_numeroX=167Y=175INFO_FORMAT=application%2Fvnd.ogc.gmlFEATURE_COUNT=999


The entire XML :
?xml version=1.0 encoding=UTF-8?

msGMLOutput
xmlns:gml=http://www.opengis.net/gml;
xmlns:xlink=http://www.w3.org/1999/xlink;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
   bdparcellaire_numero_layer


Why it doesn't work ?
I know that it should be in my DATA object in my mapfile, but I don't
know what exactly...

Thanks a lot...
___
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] GetFeatureInfo from PostGis database

2008-06-30 Thread SAEZ Laurent - CETE Méditerr./DI/ETER

Hi list,

I'm trying to access data fields using getfeatureinfo from a PostGIS 
database.

I've read some articles about it, but it seems that I'm a newbie.
I've no problem with data access when I do some getmap requests.

Here is a part of my mapfile :

   LAYER
   NAMEbdparcellaire_numero
   TYPEannotation
   STATUS ON
   DUMP TRUE
   TEMPLATE blank.html
   MINSCALE 100
   MAXSCALE 1
   CONNECTIONTYPEpostgis
   CONNECTIONuser=toto password=toto 
dbname=bdparcellaire_2007 host=172.23.208.134 port=5432
   DATAthe_geom FROM (select numero, feuille, the_geom 
FROM localisant) as foo USING UNIQUE the_geom USING SRID=27582

   LABELITEMnumero
   CLASS
 LABEL
   TYPE TRUETYPE
   WRAP #
   COLOR 0 0 0
   OUTLINECOLOR 254 254 254
   FONT arial
   SIZE 9
   POSITION CC
   FORCE false
   PARTIALS false
 END
END
   METADATA
   WMS_TITLE Numéros de parcelle (Données BD Parcellaire® - 
Copyright IGN)
   wms_abstract Visible entre les échelles 1/100 et 1/10 
000 
   wms_srs EPSG:27582 EPSG:27581 EPSG:27583 EPSG:27584 
EPSG:27591 EPSG:27592 EPSG:27593 EPSG:27594 EPSG:2154 EPSG:23030 
EPSG:23031 EPSG:23032 EPSG:32630 EPSG:32631 EPSG:32632 EPSG:4326
   wms_extent 47650 1620400 1197850 2677450 
   WMS_ENCODING UTF-8

   GML_INCLUDE_ITEMS all
   END
   END

When I try this getfeatureinfo request, the XML returned is not complete :

The request : 
http://myIP/cgi-bin/mapserv?map=/data/carto/ref/bdparcellaire/bdparcellaire_2007_direct.mapSERVICE=WMSVERSION=1.1.1REQUEST=GetFeatureInfoSRS=EPSG%3A27582WIDTH=600HEIGHT=400BBOX=643470,1743572,643590,1743652LAYERS=bdparcellaire_numeroSTYLES=FORMAT=image%2FpngQUERY_LAYERS=bdparcellaire_numeroX=167Y=175INFO_FORMAT=application%2Fvnd.ogc.gmlFEATURE_COUNT=999


The entire XML :
?xml version=1.0 encoding=UTF-8?

msGMLOutput
xmlns:gml=http://www.opengis.net/gml;
xmlns:xlink=http://www.w3.org/1999/xlink;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
   bdparcellaire_numero_layer


Why it doesn't work ?
I know that it should be in my DATA object in my mapfile, but I don't 
know what exactly...


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


Re: [mapserver-users] GetFeatureInfo from PostGis database

2008-06-30 Thread SAEZ Laurent - CETE Méditerr./DI/ETER

Hi,

I've tried to use the gid column, but the getfeatureinfo reports me an 
error :
Postgresql reports the error as #39;ERREUR:  la colonne «gid» 
n#39;existe pas

#39;
The error tells me that the gid column doesn't exist. You can trust me, 
I have a field called gid.


Thanks

Le 30/06/2008 19:49,  Bart van den Eijnden (OSGIS) (par Internet) a 
écrit  :
You shouldn't use the geometry column as the unique column (USING 
UNIQUE X).


Try an integer type column for that.

Best regards,
Bart

SAEZ Laurent - CETE Méditerr./DI/ETER wrote:

Hi list,

I'm trying to access data fields using getfeatureinfo from a PostGIS 
database.

I've read some articles about it, but it seems that I'm a newbie.
I've no problem with data access when I do some getmap requests.

Here is a part of my mapfile :

   LAYER
   NAMEbdparcellaire_numero
   TYPEannotation
   STATUS ON
   DUMP TRUE
   TEMPLATE blank.html
   MINSCALE 100
   MAXSCALE 1
   CONNECTIONTYPEpostgis
   CONNECTIONuser=toto password=toto 
dbname=bdparcellaire_2007 host=172.23.208.134 port=5432
   DATAthe_geom FROM (select numero, feuille, 
the_geom FROM localisant) as foo USING UNIQUE the_geom USING SRID=27582

   LABELITEMnumero
   CLASS
 LABEL
   TYPE TRUETYPE
   WRAP #
   COLOR 0 0 0
   OUTLINECOLOR 254 254 254
   FONT arial
   SIZE 9
   POSITION CC
   FORCE false
   PARTIALS false
 END
END
   METADATA
   WMS_TITLE Numéros de parcelle (Données BD Parcellaire® - 
Copyright IGN)
   wms_abstract Visible entre les échelles 1/100 et 1/10 
000wms_srs EPSG:27582 EPSG:27581 EPSG:27583 
EPSG:27584 EPSG:27591 EPSG:27592 EPSG:27593 EPSG:27594 EPSG:2154 
EPSG:23030 EPSG:23031 EPSG:23032 EPSG:32630 EPSG:32631 EPSG:32632 
EPSG:4326
   wms_extent 47650 1620400 1197850 2677450
WMS_ENCODING UTF-8

   GML_INCLUDE_ITEMS all
   END
   END

When I try this getfeatureinfo request, the XML returned is not 
complete :


The request : 
http://myIP/cgi-bin/mapserv?map=/data/carto/ref/bdparcellaire/bdparcellaire_2007_direct.mapSERVICE=WMSVERSION=1.1.1REQUEST=GetFeatureInfoSRS=EPSG%3A27582WIDTH=600HEIGHT=400BBOX=643470,1743572,643590,1743652LAYERS=bdparcellaire_numeroSTYLES=FORMAT=image%2FpngQUERY_LAYERS=bdparcellaire_numeroX=167Y=175INFO_FORMAT=application%2Fvnd.ogc.gmlFEATURE_COUNT=999 



The entire XML :
?xml version=1.0 encoding=UTF-8?

msGMLOutput
xmlns:gml=http://www.opengis.net/gml;
xmlns:xlink=http://www.w3.org/1999/xlink;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
   bdparcellaire_numero_layer


Why it doesn't work ?
I know that it should be in my DATA object in my mapfile, but I don't 
know what exactly...


Thanks a lot...
___
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] Expression encoding must be in the same encoding than the data

2008-06-25 Thread SAEZ Laurent - CETE Méditerr./DI/ETER

Hi list,

Encoding in expression is not very simple...
I have :

   * mapserver 4.99,
   * a mapfile utf-8 encoded,
   * a mapinfo file create on windows (encoding cp1252),
   * one class using a field which contain this value : Départementale.

If I write in the mapfile the following expression :
...
CLASS
NAME Départementale
EXPRESSION Départementale
...

This class is not in the raster returned by the WMS/GetMap request.
To obtain this class I have to encode the string expression in the same 
encoding than the data (mapinfo tab) :


CLASS
NAME Départementale
EXPRESSION D?partementale

So it's strange to encode a string in cp1252 (or iso-8859-1) in a file 
encoding in utf-8.


Is there a way to tell mapserver that my layer is cp1252 encoded ?

Thanks for help

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


Re: [mapserver-users] Expression encoding must be in the same encoding than the data

2008-06-25 Thread SAEZ Laurent - CETE Méditerr./DI/ETER

Thank you,

But my problem is not concerning labels but the raster with polylines.
I'm aware that there is a solution for labels.
I'm interestring with the solution for the geometry returned by my 
classification.


Best regards

Laurent

Le 25/06/2008 13:09,  Tamas Szekeres (par Internet) a écrit  :

Hi,

It seem you should have libiconv compiled in, and specify the encoding
in the label definitions, like:

LABEL
  ...
  ENCODING ISO-8859-1
END


Best regards,

Tamas



2008/6/25 SAEZ Laurent - CETE Méditerr./DI/ETER
[EMAIL PROTECTED]:
  

Hi list,

Encoding in expression is not very simple...
I have :

mapserver 4.99,
a mapfile utf-8 encoded,
a mapinfo file create on windows (encoding cp1252),
one class using a field which contain this value : Départementale.

If I write in the mapfile the following expression :
...
CLASS
NAME Départementale
EXPRESSION Départementale
...

This class is not in the raster returned by the WMS/GetMap request.
To obtain this class I have to encode the string expression in the same
encoding than the data (mapinfo tab) :

CLASS
NAME Départementale
EXPRESSION D�partementale

So it's strange to encode a string in cp1252 (or iso-8859-1) in a file
encoding in utf-8.

Is there a way to tell mapserver that my layer is cp1252 encoded ?

Thanks for help


___
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] VRT into a symbol definition

2008-06-23 Thread SAEZ Laurent - CETE Méditerr./DI/ETER

Hi list,

I've tried to use VRT files into a symbol definition, but it doesn't 
work. It will be fine.
I've to reproduce MapInfo® hatches. MapInfo® uses raster to make 
hatches. I've recovered all the raster. But I need to reproduce all 
front colors and all background colors.
So, I've tried to make VRT files instead of generating all real raster 
files. It seems to be not possible...
So I've had to make thousands real raster files. I've written few lines 
code to make all vrt files and I've used gdal_translate to make all real 
raster files.

Is there a solution to use VRT file into a symbol definition ?

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


[mapserver-users] VRT into a symbol definition

2008-06-20 Thread SAEZ Laurent - CETE Méditerr./DI/ETER

Hi list,

I've tried to use VRT files into a symbol definition, but it doesn't 
work. It will be fine.
I've to reproduce MapInfo® hatches. MapInfo® uses raster to make 
hatches. I've recovered all the raster. But I need to reproduce all 
front colors and all background colors.
So, I've tried to make VRT files instead of generating all real raster 
files. It seems to be not possible...
So I've had to make thousands real raster files. I've written few lines 
code to make all vrt files and I've used gdal_translate to make all real 
raster files.

Is there a solution to use VRT file into a symbol definition ?

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