RE: [mapserver-users] Problems labelling using Halo option

2010-10-04 Thread David Alda Fernandez de Lezea
 
Assefa,

Sorry for my late response, I've been working in something else. I've checked 
the file 
C:/ms4w/Apache/htdocs/ogcservices/tmp/4ca47709_100_1._sld.map

LAYER
CONNECTION user=postgres password= dbname=VITICOLA_IMPRESIONES 
host=192.168.1.161 port=5432
CONNECTIONTYPE POSTGIS
DATA the_geom FROM vinedos using unique gid using SRID=23030
DUMP TRUE
METADATA
  wms_srs EPSG:23030
  wms_extent  47 470 61 482
  wms_transparent true
  wms_namevinedos
  wms_format  image/gif
  gml_include_items   all
  wms_server_version  1.1.1
  wms_title   vinedos
END
NAME vinedos
PROCESSING LABEL_NO_CLIP=ON
PROJECTION
  init=epsg:23030
END
STATUS ON
TYPE POLYGON
UNITS METERS
CLASS
  NAME Unknown
  EXPRESSION ( ([provincia] = 1)  And  ( ([municipio] = 43)  And  ( 
([poligono] = 4)  And  ( ([parcela] = 880)  And  ([recinto] = 1) ) ) ) )
  LABEL
ANGLE AUTO
ANTIALIAS TRUE
FONT times-bold
MAXSIZE 256
MINSIZE 4
SIZE 18
TYPE TRUETYPE
BUFFER 0
COLOR 255 255 255
FORCE FALSE
MINDISTANCE -1
MINFEATURESIZE -1
OFFSET 0 0
OUTLINECOLOR 255 255 255
OUTLINEWIDTH 0
PARTIALS TRUE
POSITION CC
  END
  STYLE
ANGLE 360
OPACITY 100
OUTLINECOLOR 0 0 0
SIZE 2
SYMBOL sld_line_symbol_dash
  END
  TEXT ([poligono]-[parcela]-[recinto])
END
  END

OUTLINEWIDTH  shouldn't be greater than 0??

What do you think?

By the way, I forgot to mention that I'm working with MS4W 2.3.1 which includes 
MapServer 5.2.1.

About the font issue, it's like if MapServer, when it doesn't the font I 
specify in FONSET, it takes a default font and it applies the HALO correctly, 
but when I try to change the size, it doesn't work, the returned image has the 
same font size. Maybe is something related with the SLD. It's difficult to 
explain.


Un saludo,
 
··

David Alda Fernández de Lezea
Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y Biodiversidad
 
IKT
Granja Modelo s/n · 01192 · Arkaute (Araba)

··
Tlfnos.: 945-00-32-95 Fax: 945-00.32.90
··
email: da...@ikt.esweb: www.ikt.es
··

-Mensaje original-
De: Yewondwossen Assefa [mailto:yass...@dmsolutions.ca] 
Enviado el: jueves, 30 de septiembre de 2010 14:21
Para: David Alda Fernandez de Lezea
CC: mapserver-users@lists.osgeo.org
Asunto: Re: [mapserver-users] Problems labelling using Halo option


  Hi,

Check the file
C:/ms4w/Apache/htdocs/ogcservices/tmp/4ca47709_100_1._sld.map and the layer 
where the sld is applied, the label object should have the outlinecolor set if 
it worked properly. Is that the case? I am not sure I understand the font 
issue, but you can also see what font was set fir that label object.

regards,


On 30/09/2010 7:43 AM, David Alda Fernandez de Lezea wrote:
 Assefa,

 Yes, it's valid. It works, but not with desired behaviour. It draws the 
 polygons with the labels but without the Halo effect.

 I forgot to put xml headers in the previous email.

 ?xml version=1.0 encoding=UTF-8?
   StyledLayerDescriptor version=1.0.0  
 xsi:schemaLocation=http://www.opengis.net/sld
   StyledLayerDescriptor.xsd xmlns=http://www.opengis.net/sld;
   xmlns:ogc=http://www.opengis.net/ogc;
   xmlns:xlink=http://www.w3.org/1999/xlink;
   xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;

 I also forgot to mention that if I putCssParameter 
 name=font-familyVerdana/CssParameter  for example, and Verdana does not 
 exist in my fontset, it does the labelling properly (including Halo), but 
 it's like if mapserver gets some default values, because the size has changed 
 and even though I change it in th e SLD, the size keeps the same.



 WMS Log

 [Thu Sep 30 13:39:53 2010].513000 CGI Request 1 on process 256 [Thu 
 Sep 30 13:39:53 2010].685000 msApplySLD(): Map file after SLD was applied 
 C:/ms4w/Apache/htdocs/ogcservices/tmp/4ca47709_100_1._sld.map[Thu Sep 30 
 13:39:53 2010].826000 msDrawRasterLayerLow(orto0): entering.
 [Thu Sep 30 13:40:02 2010].216000 msDrawMap(): Layer 4 (orto0), 8.390s 
 [Thu Sep 30 13:40:03 2010].606000 msDrawMap(): Layer 0 
 (vinedos_sigpac), 1.390s [Thu Sep 30 13:40:04 2010].122000 
 msDrawMap(): Layer 3 (vinedos_disolve_bn), 0.516s [Thu Sep 30 13:40:04 
 2010].513000 msDrawMap(): Layer 2 (vinedos_disolve), 0.391s [Thu Sep 
 30 13:40:05 2010].919000 msDrawMap(): Layer 1 (vinedos), 1.406s [Thu 
 Sep 30 13:40:07

[mapserver-users] GetFeatureInfo over OGR OCI Layer

2010-10-01 Thread David Alda Fernandez de Lezea
Hi list, 

I'm trying to execute a GetFeatureInfo request over an Oracle layer via OGR. I 
can view the content of the layer, but when I make the request I don't get any 
result. I mean, I receive an empty GML. My layer config:

LAYER
STATUS ON
CONNECTION OCI:admcarto/admca...@ora10gex
CONNECTIONTYPE OGR
DATA GV_SIGPAC_REC_ED50 #todo el sigpac
NAME RecintosSigpacOGR
PROJECTION
init=epsg:23030
END
DUMP TRUE
TYPE POLYGON
METADATA
wms_title   Recintos Sigpac 2009
wms_srs EPSG:23030
wms_nameRecintosSigpacOGR
wms_server_version  1.1.1
wms_format  image/gif
wms_transparent true
wms_extent  46 469 61 
482
wms_include_items   all
gml_include_items all
END 
MAXSCALE 1

TEMPLATE ms_template.html
PROCESSING LABEL_NO_CLIP=ON
PROCESSING CLOSE_CONNECTION=DEFER
SYMBOLSCALE 5000

#Simbologia
CLASSGROUP Simbologia_Recintos
CLASS
TEXT ([PARCELA]:[RECINTO])
STYLE
OUTLINECOLOR 0 234 0
END
LABEL
COLOR 254 254 255
OUTLINECOLOR 0 0 0
TYPE truetype
FONT sans
SIZE 6
POSITION cc
PARTIALS TRUE
END
NAME RecintosSigPac
GROUP Referencia_Sigpac
END

CLASS
STYLE
OUTLINECOLOR 0 234 0
WIDTH 1
END
NAME RecintosSigPac
GROUP Predeterminado
END

END

Resultant file

?xml version=1.0 encoding=ISO-8859-1?

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;
/msGMLOutput

Any ideas? Something wrong configured?

Thanks.
 
 
Un saludo,
 
··

David Alda Fernández de Lezea
Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y Biodiversidad
 
IKT
Granja Modelo s/n · 01192 · Arkaute (Araba)

··
Tlfnos.: 945-00-32-95 Fax: 945-00.32.90
··
email: da...@ikt.esweb: www.ikt.es
··
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Problems labelling using Halo option

2010-09-30 Thread David Alda Fernandez de Lezea
Hi list,

I'm developing a program that generates some images from a WMS with a dynamic 
generated SLD. The problem is that I'm telling MapServer to generate some 
labels with Halo, to make them easy to read, using the following code:

NamedLayer
Namevinedos/Name
UserStyleName/NameTitle/TitleAbstract/Abstract
FeatureTypeStyle
Rule
Filter
And
PropertyIsEqualToPropertyNameprovincia/PropertyNameLiteral1/Literal/PropertyIsEqualTo
PropertyIsEqualToPropertyNamemunicipio/PropertyNameLiteral43/Literal/PropertyIsEqualTo
PropertyIsEqualToPropertyNamepoligono/PropertyNameLiteral4/Literal/PropertyIsEqualTo
PropertyIsEqualToPropertyNameparcela/PropertyNameLiteral880/Literal/PropertyIsEqualTo
PropertyIsEqualToPropertyNamerecinto/PropertyNameLiteral1/Literal/PropertyIsEqualTo
/And
/Filter
PolygonSymbolizer
Stroke
CssParameter name=stroke#00/CssParameter
CssParameter name=stroke-width2/CssParameter
CssParameter name=stroke-dasharray5 5 5 5/CssParameter
/Stroke
/PolygonSymbolizer
TextSymbolizer
Label
PropertyNamepoligono/PropertyName-PropertyNameparcela/PropertyName-PropertyNamerecinto/PropertyName
/Label
Font
CssParameter name=font-familytimes/CssParameter
CssParameter name=font-size18/CssParameter
CssParameter name=font-weightbold/CssParameter
/Font
LabelPlacement
PointPlacement
AnchorPointAnchorPointX0.5/AnchorPointXAnchorPointY0.5/AnchorPointY
/AnchorPoint
/PointPlacement
/LabelPlacement
Halo
Radius
Literal2/Literal
/Radius
Fill
CssParameter name=fill#FF/CssParameter
CssParameter name=fill-opacity0.85/CssParameter
/Fill
/Halo
Fill
CssParameter name=fill#00/CssParameter
CssParameter name=fill-opacity0.65/CssParameter
/Fill
/TextSymbolizer
/Rule
/FeatureTypeStyle
/UserStyle
/NamedLayer

But when I receive the image the Halo is not applied (see attached file). My 
mapfile is as follows:

NAME WMSSERVER

STATUS ON
EXTENT 46 471 61 482 # Euskadi  
SHAPEPATH extra/shapes/
FONTSET extra/fonts/fonts.txt
SYMBOLSET extra/symbols/symbols.sym


IMAGETYPE image/png; mode=24bit

OUTPUTFORMAT
   NAME png
   DRIVER AGG/PNG
   MIMETYPE image/png
   IMAGEMODE RGBA
   EXTENSION png
   FORMATOPTION TRANSPARENT=ON
   FORMATOPTION INTERLACE=OFF
END
OUTPUTFORMAT
  NAME jpeg
  DRIVER GD/JPEG
  MIMETYPE image/jpeg
  IMAGEMODE RGB
  EXTENSION jpg
END
IMAGECOLOR 255 255 255
UNITS METERS

DEBUG ON
CONFIG MS_ERRORFILE 
C:/ms4w/Apache/htdocs/ogcservices/logs/wms_impresiones_lotes_log.log
DEBUG 5


WEB
IMAGEPATH C:/ms4w/Apache/htdocs/ogcservices/tmp/
IMAGEURL tmp/
METADATA  
wms_name  IKT WMS Server
wms_title Servidor WMS IKT - Impresiones 
Lotes
wms_onlineresource
http://192.168.1.161/cgi-bin/mapserv.exe?map=../htdocs/ogcservices/impresiones_lotes_wms.map;
wms_srs   EPSG:23030 EPSG:4326
wms_transparent   true
wms_abstract  Servicio de mapas WMS de IKT 
Nekazal Teknologia. Powered by Apache and UMN MapServer. Servicio WMS para las 
impresiones por lotes.
wms_keywordlist   IKT,Euskadi,Mapas 
Euskadi
wms_feature_info_mime_type   application/vnd.ogc.gml
labelcache_map_edge_buffer -10 
END
END

PROJECTION
init=epsg:23030
END

LAYER
STATUS ON
CONNECTIONTYPE postgis
CONNECTION user=postgres password= 
dbname=VITICOLA_IMPRESIONES host=192.168.1.161 port=5432
NAME vinedos

PROJECTION
init=epsg:23030
END
DUMP TRUE
TYPE POLYGON
METADATA
wms_title   vinedos
wms_srs EPSG:23030
wms_namevinedos
wms_server_version  1.1.1
wms_format  image/gif
wms_transparent true
wms_extent  47 470 61 
482
gml_include_items   all
END 
#Sentencia SQL para obtener los datos
DATA the_geom FROM vinedos using unique gid using SRID=23030

CLASS
  

RE: [mapserver-users] Problems labelling using Halo option

2010-09-30 Thread David Alda Fernandez de Lezea
Assefa, 
 
Yes, it's valid. It works, but not with desired behaviour. It draws the 
polygons with the labels but without the Halo effect.

I forgot to put xml headers in the previous email.

?xml version=1.0 encoding=UTF-8?
StyledLayerDescriptor version=1.0.0  
xsi:schemaLocation=http://www.opengis.net/sld 
StyledLayerDescriptor.xsd xmlns=http://www.opengis.net/sld;
xmlns:ogc=http://www.opengis.net/ogc;  
xmlns:xlink=http://www.w3.org/1999/xlink;  
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 
I also forgot to mention that if I put CssParameter 
name=font-familyVerdana/CssParameter for example, and Verdana does not 
exist in my fontset, it does the labelling properly (including Halo), but it's 
like if mapserver gets some default values, because the size has changed and 
even though I change it in th e SLD, the size keeps the same.



WMS Log

[Thu Sep 30 13:39:53 2010].513000 CGI Request 1 on process 256
[Thu Sep 30 13:39:53 2010].685000 msApplySLD(): Map file after SLD was applied 
C:/ms4w/Apache/htdocs/ogcservices/tmp/4ca47709_100_1._sld.map[Thu Sep 30 
13:39:53 2010].826000 msDrawRasterLayerLow(orto0): entering.
[Thu Sep 30 13:40:02 2010].216000 msDrawMap(): Layer 4 (orto0), 8.390s
[Thu Sep 30 13:40:03 2010].606000 msDrawMap(): Layer 0 (vinedos_sigpac), 1.390s
[Thu Sep 30 13:40:04 2010].122000 msDrawMap(): Layer 3 (vinedos_disolve_bn), 
0.516s
[Thu Sep 30 13:40:04 2010].513000 msDrawMap(): Layer 2 (vinedos_disolve), 0.391s
[Thu Sep 30 13:40:05 2010].919000 msDrawMap(): Layer 1 (vinedos), 1.406s
[Thu Sep 30 13:40:07 2010].106000 msDrawMap(): Layer 7 (vinedos_parcelas), 
1.187s
[Thu Sep 30 13:40:07 2010].106000 msDrawLabelCache(): 
labelcache_map_edge_buffer = -10
[Thu Sep 30 13:40:07 2010].106000 msDrawMap(): Drawing Label Cache, 0.000s
[Thu Sep 30 13:40:07 2010].106000 msDrawMap() total time: 13.343s
[Thu Sep 30 13:40:08 2010].606000 msSaveImage() total time: 1.500s
[Thu Sep 30 13:40:08 2010].606000 mapserv request processing time (msLoadMap 
not incl.): 15.093s
[Thu Sep 30 13:40:08 2010].637000 msFreeMap(): freeing map at 015C6820.

Thanks.



De: Yewondwossen Assefa [mailto:yass...@dmsolutions.ca] 
Enviado el: jueves, 30 de septiembre de 2010 13:24
Para: David Alda Fernandez de Lezea
CC: mapserver-users@lists.osgeo.org
Asunto: Re: [mapserver-users] Problems labelling using Halo option


Hi there,

 Is the sld xml you are using valid?  Grabbing it from this e-mail, It seems to 
not validate (several  PropertyName  tags). It might just a copy paste but 
make sure of that.  
You can aslo set your map in debug mode ( DEBUG 5 for example) and check your 
logs to see if the xml was parsed properly and if that is the case you should 
also be able a tmp file of your map file after SLD was applied

regards,


On 30/09/2010 3:34 AM, David Alda Fernandez de Lezea wrote: 

Hi list,

I'm developing a program that generates some images from a WMS with a 
dynamic generated SLD. The problem is that I'm telling MapServer to generate 
some labels with Halo, to make them easy to read, using the following code:

NamedLayer
Namevinedos/Name
UserStyleName/NameTitle/TitleAbstract/Abstract
FeatureTypeStyle
Rule
Filter
And

PropertyIsEqualToPropertyNameprovincia/PropertyNameLiteral1/Literal/PropertyIsEqualTo

PropertyIsEqualToPropertyNamemunicipio/PropertyNameLiteral43/Literal/PropertyIsEqualTo

PropertyIsEqualToPropertyNamepoligono/PropertyNameLiteral4/Literal/PropertyIsEqualTo

PropertyIsEqualToPropertyNameparcela/PropertyNameLiteral880/Literal/PropertyIsEqualTo

PropertyIsEqualToPropertyNamerecinto/PropertyNameLiteral1/Literal/PropertyIsEqualTo
/And
/Filter
PolygonSymbolizer
Stroke
CssParameter name=stroke#00/CssParameter
CssParameter name=stroke-width2/CssParameter
CssParameter name=stroke-dasharray5 5 5 5/CssParameter
/Stroke
/PolygonSymbolizer
TextSymbolizer
Label

PropertyNamepoligono/PropertyName-PropertyNameparcela/PropertyName-PropertyNamerecinto/PropertyName
/Label
Font
CssParameter name=font-familytimes/CssParameter
CssParameter name=font-size18/CssParameter
CssParameter name=font-weightbold/CssParameter
/Font
LabelPlacement
PointPlacement

AnchorPointAnchorPointX0.5/AnchorPointXAnchorPointY0.5/AnchorPointY
/AnchorPoint
/PointPlacement
/LabelPlacement
Halo
Radius
Literal2/Literal
/Radius
Fill
CssParameter name=fill#FF/CssParameter
CssParameter name=fill-opacity0.85/CssParameter
/Fill
/Halo
Fill
CssParameter name=fill#00/CssParameter
CssParameter name=fill-opacity0.65/CssParameter

RE: [mapserver-users] Question about oracle spatial configuration change [SOLVED]

2010-07-16 Thread David Alda Fernandez de Lezea
Alan,

Thanks for you response. It seems that there was a problem with user created. 
Something was wrong. Now it's fixed. Thanks.

Regards.
 
 
Un saludo,
 
··

David Alda Fernández de Lezea
Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y Biodiversidad
 
IKT
Granja Modelo s/n · 01192 · Arkaute (Araba)

··
Tlfnos.: 945-00-32-95 Fax: 945-00.32.90
··
email: da...@ikt.esweb: www.ikt.es
··

-Mensaje original-
De: Alan Boudreault [mailto:aboudrea...@mapgears.com] 
Enviado el: miércoles, 14 de julio de 2010 15:57
Para: mapserver-users@lists.osgeo.org
CC: David Alda Fernandez de Lezea
Asunto: Re: [mapserver-users] Question about oracle spatial configuration change

Normally, you shouldn't have to change anything else. Have you tried to connect 
to the DB with your new user from the oracle sqlplus and did a select
* from your_table_name ? 

Thanks,
Alan

On July 14, 2010 08:07:05 am David Alda Fernandez de Lezea wrote:
 Hi list,
 
 We were working with mapserver 5.6.1 and oracle spatial, and we have 
 change  the user (the new one has less privileges - it cannot modify 
 anything  stored in the DB) that connects to oracle spatial, and now 
 we cannot  connect to the layers stored in oracle. We get the following 
 message:
 
 [Wed Jul 14 14:01:29 2010].755000 CGI Request 1 on process 2648 [Wed 
 Jul 14 14:01:30 2010].38 msOracleSpatialLayerGetItems(): Query  
 error. Cannot retrieve column list [Wed Jul 14 14:01:30 2010].38
  msDrawMap(): Image handling error. Failed to draw layer named  
 'provincias'. [Wed Jul 14 14:01:30 2010].38 mapserv request 
 processing  time (msLoadMap not incl.): 0.625s [Wed Jul 14 14:01:30 
 2010].38
  msFreeMap(): freeing map at 019AB590. [Wed Jul 14 14:01:32 
 2010].52  CGI Request 1 on process 1924 [Wed Jul 14 14:01:32 
 2010].661000 msOracleSpatialLayerGetItems(): Query  error. Cannot 
 retrieve column list [Wed Jul 14 14:01:32 2010].661000
  msDrawMap(): Image handling error. Failed to draw layer named  
 'provincias'. [Wed Jul 14 14:01:32 2010].661000 mapserv request 
 processing  time (msLoadMap not incl.): 0.141s [Wed Jul 14 14:01:32 
 2010].661000
  msFreeMap(): freeing map at 019AB590. [Wed Jul 14 14:01:33 
 2010].36000 CGI  Request 1 on process 2408 [Wed Jul 14 14:01:33 
 2010].161000 msOracleSpatialLayerGetItems(): Query  error. Cannot 
 retrieve column list [Wed Jul 14 14:01:33 2010].161000
  msDrawMap(): Image handling error. Failed to draw layer named  
 'provincias'. [Wed Jul 14 14:01:33 2010].161000 mapserv request 
 processing  time (msLoadMap not incl.): 0.125s [Wed Jul 14 14:01:33 
 2010].161000
  msFreeMap(): freeing map at 019AB590. [Wed Jul 14 14:01:33 
 2010].505000  CGI Request 1 on process 2064 [Wed Jul 14 14:01:33 
 2010].677000 msOracleSpatialLayerGetItems(): Query  error. Cannot 
 retrieve column list [Wed Jul 14 14:01:33 2010].677000
  msDrawMap(): Image handling error. Failed to draw layer named  
 'provincias'. [Wed Jul 14 14:01:33 2010].677000 mapserv request 
 processing  time (msLoadMap not incl.): 0.172s [Wed Jul 14 14:01:33 
 2010].677000
  msFreeMap(): freeing map at 019AB590. [Wed Jul 14 14:01:33 
 2010].989000  CGI Request 1 on process 3216 [Wed Jul 14 14:01:34 
 2010].13 msOracleSpatialLayerGetItems(): Query  error. Cannot 
 retrieve column list [Wed Jul 14 14:01:34 2010].13
  msDrawMap(): Image handling error. Failed to draw layer named  
 'provincias'. [Wed Jul 14 14:01:34 2010].13 mapserv request 
 processing  time (msLoadMap not incl.): 0.141s [Wed Jul 14 14:01:34 
 2010].13
  msFreeMap(): freeing map at 019AB590.
 
 Do we have to refresh something or do somethign else?
 
 Layer config:
 
 CONNECTIONTYPE oraclespatial
 CONNECTION newuser/newp...@ora10gex
 
 If configure the layer with the old user, it works.
 
 Thanks.
 
 Un saludo,
 
 ··
 ·
 ···
 
 David Alda Fernández de Lezea
 Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y 
 Biodiversidad
 
 IKT
 Granja Modelo s/n · 01192 · Arkaute (Araba)
 
 ···
 ··· Tlfnos.: 945-00-32-95 Fax: 945-00.32.90
 ···
 ··· email: da...@ikt.esweb: www.ikt.es
  
 ··
   ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo

[mapserver-users] Question about PropertyIsLike SLD

2010-07-05 Thread David Alda Fernandez de Lezea
Hi list, 

I'm trying to make work a SLD with a PorpertyIsLike Filter, but when get the 
images back, the filter is no applied, maybe I'm just doing something wrong. I 
want to perform this: 

(vi_vinedo_ like '%some_value%') 

And in the SLD I've put this:

FilterPropertyIsLike wildCard=\*\ singleChar=\.\ 
escapeChar=\!\PropertyNamevi_vinedo_/PropertyNameLiteral*+ id 
+*/Literal/PropertyIsLike/Filter

But the filter is not applied and I get drawn all the features. What could be 
happening??

MapServer 5.2.1

Thanks.
 
 
Un saludo,
 
··

David Alda Fernández de Lezea
Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y Biodiversidad
 
IKT
Granja Modelo s/n · 01192 · Arkaute (Araba)

··
Tlfnos.: 945-00-32-95 Fax: 945-00.32.90
··
email: da...@ikt.esweb: www.ikt.es
··
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


RE: [mapserver-users] Problems with mapserver wrapper script [SOLVED]

2010-07-02 Thread David Alda Fernandez de Lezea
 
Jukka,

 Another possibility is in one unnecessary = sign. Try  SetEnvIf Request_URI 
 /cgi-bin/wms_dgis.exe 

Tha was the mistake (Aaargh!!! What a silly a thing!!!). I removed = and 
worked perfectly.

Thanks

 
 
Un saludo,
 
··

David Alda Fernández de Lezea
Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y Biodiversidad
 
IKT
Granja Modelo s/n · 01192 · Arkaute (Araba)

··
Tlfnos.: 945-00-32-95 Fax: 945-00.32.90
··
email: da...@ikt.esweb: www.ikt.es
··

-Mensaje original-
De: Rahkonen Jukka [mailto:jukka.rahko...@mmmtike.fi] 
Enviado el: jueves, 01 de julio de 2010 14:00
Para: David Alda Fernandez de Lezea; mapserver-users@lists.osgeo.org
Asunto: Re: [mapserver-users] Problems with mapserver wrapper script

Hi,

I do not see anything wrong in it. It should work and perhaps give you another 
error as I am getting from Mapserver 5.2.1
msWMSDispatch(): WMS server error. Incomplete WMS request: VERSION parameter 

I would have a try by including the drive letter in the mapfile path and 
restarting Apache, but I fear it does not help. Another possibility is in one 
unnecessary = sign. Try  SetEnvIf Request_URI /cgi-bin/wms_dgis.exe 

-Jukka Rahkonen-


 -Alkuperäinen viesti-
 Lähettäjä: mapserver-users-boun...@lists.osgeo.org
 [mailto:mapserver-users-boun...@lists.osgeo.org] Puolesta David Alda 
 Fernandez de Lezea
 Lähetetty: 1. heinäkuuta 2010 14:37
 Vastaanottaja: mapserver-users@lists.osgeo.org
 Aihe: [mapserver-users] Problems with mapserver wrapper script
 
 Hi list,
 
 I'm facing a small problem. I've copied mapserv.exe to a new file 
 called wms_dgis.exe, I added to httpd.conf the following line
 
 SetEnvIf Request_URI =/cgi-bin/wms_dgis.exe 
 MS_MAPFILE=/ms4w/Apache/htdocs/MFD/wms_dgis.map
 
 I also changed the onlineresource value of the mapfile to
 
 wms_onlineresource  
 http://192.168.1.65/cgi-bin/wms_dgis.exe?;
 
 When I type in the web browser the url 
 http://192.168.1.65/cgi-bin/wms_dgis.exe?, I get:
 
 No query information to decode. QUERY_STRING is set, but empty. 
 
 So I think I'm on the right way, but when I make a getCapabilities 
 request like:
 
 http://192.168.1.65/cgi-bin/wms_dgis.exe?SERVICE=WMSREQUEST=G
etCapabilities
 
 I get:
 
 loadMap(): Web application error. CGI variable map is not set.
 
 I've looked into Apache's access.log but I don't see anything odd.
 
 MS4W package
 Mapserver 5.6.1
 Win XP
 
 Am I doing something wrong??
  
  
 Un saludo,
  
 ··
 
 
 David Alda Fernández de Lezea
 Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y 
 Biodiversidad
  
 IKT
 Granja Modelo s/n · 01192 · Arkaute (Araba)
 
 ··
 
 Tlfnos.: 945-00-32-95 Fax: 945-00.32.90
 ··
 
 email: da...@ikt.esweb: www.ikt.es
 ··
 
 ___
 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] Problems with mapserver wrapper script

2010-07-01 Thread David Alda Fernandez de Lezea
Hi list,

I'm facing a small problem. I've copied mapserv.exe to a new file called 
wms_dgis.exe, I added to httpd.conf the following line 

SetEnvIf Request_URI =/cgi-bin/wms_dgis.exe 
MS_MAPFILE=/ms4w/Apache/htdocs/MFD/wms_dgis.map

I also changed the onlineresource value of the mapfile to

wms_onlineresourcehttp://192.168.1.65/cgi-bin/wms_dgis.exe?;

When I type in the web browser the url 
http://192.168.1.65/cgi-bin/wms_dgis.exe?, I get:

No query information to decode. QUERY_STRING is set, but empty. 

So I think I'm on the right way, but when I make a getCapabilities request like:

http://192.168.1.65/cgi-bin/wms_dgis.exe?SERVICE=WMSREQUEST=GetCapabilities

I get:

loadMap(): Web application error. CGI variable map is not set.

I've looked into Apache's access.log but I don't see anything odd.

MS4W package
Mapserver 5.6.1
Win XP

Am I doing something wrong??
 
 
Un saludo,
 
··

David Alda Fernández de Lezea
Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y Biodiversidad
 
IKT
Granja Modelo s/n · 01192 · Arkaute (Araba)

··
Tlfnos.: 945-00-32-95 Fax: 945-00.32.90
··
email: da...@ikt.esweb: www.ikt.es
··
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Problems loading gml file in desktop gis retrieved from wfs

2010-06-30 Thread David Alda Fernandez de Lezea
Hi list,

I'm having some problems loading a getFeature gml file retrieved from a WFS 
served by MapServer. I can't load it in gvSIG, nor in uDig and in Qgis. How 
many different ways are there to retrieve information from a WFS server?

MapServer Version:
5.6.1 (the on included in ms4w package)

My WFS Server

MAP
NAME wfs_server
STATUS ON

EXTENT 46 471 61 482 # Euskadi

PROJECTION
init=epsg:23030
END

SHAPEPATH shapes/
FONTSET misc/fonts/fonts.txt

IMAGETYPE image/png; mode=24bit
IMAGECOLOR 255 255 255
UNITS METERS

DEBUG ON
CONFIG MS_ERRORFILE C:/ms4w/Apache/htdocs/MFD/tmp/ms_wfs.log
DEBUG 5

WEB
IMAGEPATH MFD/tmp/
IMAGEURL tmp/
METADATA
wfs_title IKT WFS Server ## REQUIRED
wfs_abstract Servicio de mapas WFS de IKT 
Nekazal Teknologia. Powered by Apache and UMN MapServer ## REQUIRED
wfs_onlineresource 
http://192.168.1.65/cgi-bin/mapserv.exe?map=../htdocs/MFD/ejemplo_wfs.map; ## 
Recommended
wfs_srs EPSG:23030 ## Recommended
wfs_keywordlist   
IKT,Euskadi,Mapas Euskadi
wfs_fees  none
wfs_accessconstraints Ninguna
ows_contactorganization   http://www.ikt.es;
wfs_geometry_element_name MS_GEOMETRY
END
END

LAYER
DEBUG 5
NAME RecintosSigpac
PROJECTION
init=epsg:23030
END
METADATA
wfs_title Recintos Sigpac 2009 ## REQUIRED
wfs_abstract Recintos
wfs_name RecintosSigpac
wfs_geometry_element_name MS_GEOMETRY
wfs_srs EPSG:23030 ## Recommended
wfs_extent  463506.9978541628 
4702558.185239193 603185.4988525142 4811754.780732273
gml_featureid gid ## REQUIRED
gml_include_items all
END
TYPE POLYGON

CONNECTIONTYPE oraclespatial
CONNECTION admcarto/admca...@ora10gex

DATA GEOMETRY FROM (SELECT * FROM 
GT_SIGPAC_REC_2010_ED50) USING UNIQUE gid SRID 82337 #todo el sigpac

DUMP TRUE ## REQUIRED

CLASS
NAME Municipios_Gipuzkoa
STYLE
OUTLINECOLOR 255 255 255
END
TEMPLATE ms_template.html
END


STATUS ON
END # Layer

END # Map File


And the GML I get from WFS:

?xml version='1.0' encoding=ISO-8859-1 ?
wfs:FeatureCollection
   xmlns:ms=http://mapserver.gis.umn.edu/mapserver;
   xmlns:gml=http://www.opengis.net/gml;
   xmlns:wfs=http://www.opengis.net/wfs;
   xmlns:ogc=http://www.opengis.net/ogc;
   xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
   xsi:schemaLocation=http://mapserver.gis.umn.edu/mapserver 
http://192.168.1.65/cgi-bin/mapserv.exe?map=../htdocs/MFD/ejemplo_wfs.mapamp;SERVICE=WFSamp;VERSION=1.1.0amp;REQUEST=DescribeFeatureTypeamp;TYPENAME=RecintosSigpacamp;OUTPUTFORMAT=SFE_XMLSCHEMA
  http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd; 
numberOfFeatures=1
  gml:boundedBy
gml:Envelope srsName=EPSG:23030
gml:lowerCorner524635.754527 4758483.496388/gml:lowerCorner
gml:upperCorner526082.056246 4759821.057789/gml:upperCorner
/gml:Envelope
  /gml:boundedBy
gml:featureMember
  ms:RecintosSigpac gml:id=RecintosSigpac.318187
gml:boundedBy
gml:Envelope srsName=EPSG:23030
gml:lowerCorner524635.754527 
4758483.496388/gml:lowerCorner
gml:upperCorner526082.056246 
4759821.057789/gml:upperCorner
/gml:Envelope
/gml:boundedBy
ms:msGeometry
  gml:MultiSurface 

[mapserver-users] GetFeatureInfo from a JavaScript client

2010-06-10 Thread David Alda Fernandez de Lezea

Hi folks,

My situation: We've developed a GIS web viewer based on OpenLayers, with some 
particular configurations, and is located in a server, let's called Server A, 
and we also have some other web applications that include this viewer to show 
some information and they're located in Server B. The thing is that to avoid 
the cross-domain problem we've created an ASP script located in Server B that 
calls mapserver to receive the getfeatureinfo request, but when I try it in my 
web browser I get the following message:

mapserv(): Web application error. Traditional BROWSE mode requires a TEMPLATE 
in the WEB section, but none was provided.

MapFile:

MAP
NAME WMSSERVER
STATUS ON   
EXTENT 46 469 61 482 # Euskadi

SHAPEPATH shapes_estaticos/
FONTSET misc/fonts/fonts.txt

UNITS METERS

DEBUG ON
CONFIG MS_ERRORFILE C:/ms4w/Apache/htdocs/MFD/tmp/ms_wms.log
DEBUG 5

OUTPUTFORMAT
   NAME gif
   DRIVER GD/GIF
   MIMETYPE image/gif
   IMAGEMODE PC256
   EXTENSION gif
END
WEB
IMAGEPATH C:/ms4w/Apache/htdocs/MFD/tmp/
IMAGEURL tmp/
METADATA  
wms_name  IKT WMS Server
wms_server_version  1.1.1
wms_title Servidor WMS IKT
wms_onlineresource
http://192.168.1.65/cgi-bin/mapserv.exe?map=../htdocs/MFD/ejemplo_wms.map;
wms_srs   EPSG:23030 EPSG:4326
wms_transparent   true
wms_abstract  Servicio de mapas WMS 
de IKT Nekazal Teknologia. Powered by Apache and UMN MapServer
wms_keywordlist   IKT,Euskadi,Mapas 
Euskadi
wms_feature_info_mime_type   application/vnd.ogc.gml
labelcache_map_edge_buffer -10 
END
END

PROJECTION
init=epsg:23030
END

LAYER
STATUS ON
CONNECTIONTYPE oraclespatial
CONNECTION admcarto/admca...@ora10gex
NAME RecintosSigpac
PROJECTION
init=epsg:23030
END
DUMP TRUE
TYPE POLYGON
METADATA
wms_title Recintos Sigpac 2009
wms_srs EPSG:23030
wms_nameRecintosSigpac
wms_server_version  1.1.1
wms_format  image/gif
wms_transparent true
END 
MAXSCALE 25000
DATA GEOMETRY FROM (SELECT * FROM GT_SIGPAC_REC_2010_ED50) 
USING UNIQUE gid SRID 82337 #todo el sigpac

CLASS
NAME Recintos
STYLE
OUTLINECOLOR 0 234 0
END
TEMPLATE ms_template.html
END
END
END

I've got ms_template.html created with the magic string. 

What I'm doing wrong??

Thanks.
 
 
Un saludo,
 
··

David Alda Fernández de Lezea
Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y Biodiversidad
 
IKT
Granja Modelo s/n · 01192 · Arkaute (Araba)

··
Tlfnos.: 945-00-32-95 Fax: 945-00.32.90
··
email: da...@ikt.esweb: www.ikt.es
··
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


RE: [mapserver-users] GetFeatureInfo from a JavaScript client [SOLVED]

2010-06-10 Thread David Alda Fernandez de Lezea
Hi Jukka,

Definetaly you're a Master!! That pointed me the right way. The asp web proxy 
was truncating the url passed as parameter to him, so I made some changes and 
it worked.

Thanks man, what a relief...

Regards,
 
Un saludo,
 
··

David Alda Fernández de Lezea
Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y Biodiversidad
 
IKT
Granja Modelo s/n · 01192 · Arkaute (Araba)

··
Tlfnos.: 945-00-32-95 Fax: 945-00.32.90
··
email: da...@ikt.esweb: www.ikt.es
··

-Mensaje original-
De: Rahkonen Jukka [mailto:jukka.rahko...@mmmtike.fi] 
Enviado el: jueves, 10 de junio de 2010 12:15
Para: David Alda Fernandez de Lezea; mapserver-users@lists.osgeo.org
Asunto: Re: [mapserver-users] GetFeatureInfo from a JavaScript client

Hi,

Mapserver does probably not receive a valid GetFeatureInfo request. Open the 
Apache access log file and see what is coming in. You can also test the request 
from browser.

-Jukka Rahkonen-

David Alda Fernandez de Lezea wrote: 


 Hi folks,

 My situation: We've developed a GIS web viewer based on OpenLayers, with some 
 particular configurations, and is located in a server, let's called Server 
 A, and we also have some other web applications that include this viewer to 
 show some information and they're located in Server B. The thing is that to 
 avoid the cross-domain problem we've created an ASP script located in Server 
 B that calls mapserver to receive the getfeatureinfo request, but when I try 
 it in my web browser I get the following message:

 mapserv(): Web application error. Traditional BROWSE mode requires a TEMPLATE 
 in the WEB section, but none was provided.

MapFile:

MAP
NAME WMSSERVER
STATUS ON   
EXTENT 46 469 61 482 # Euskadi

SHAPEPATH shapes_estaticos/
FONTSET misc/fonts/fonts.txt

UNITS METERS

DEBUG ON
CONFIG MS_ERRORFILE C:/ms4w/Apache/htdocs/MFD/tmp/ms_wms.log
DEBUG 5

OUTPUTFORMAT
   NAME gif
   DRIVER GD/GIF
   MIMETYPE image/gif
   IMAGEMODE PC256
   EXTENSION gif
END
WEB
IMAGEPATH C:/ms4w/Apache/htdocs/MFD/tmp/
IMAGEURL tmp/
METADATA  
wms_name  IKT WMS Server
wms_server_version  1.1.1
wms_title Servidor WMS IKT
wms_onlineresource
http://192.168.1.65/cgi-bin/mapserv.exe?map=../htdocs/MFD/ejemplo_wms.map;
wms_srs   EPSG:23030 EPSG:4326
wms_transparent   true
wms_abstract  Servicio de mapas WMS 
de IKT Nekazal Teknologia. Powered by Apache and UMN MapServer
wms_keywordlist   IKT,Euskadi,Mapas 
Euskadi
wms_feature_info_mime_type   application/vnd.ogc.gml
labelcache_map_edge_buffer -10 
END
END

PROJECTION
init=epsg:23030
END

LAYER
STATUS ON
CONNECTIONTYPE oraclespatial
CONNECTION admcarto/admca...@ora10gex
NAME RecintosSigpac
PROJECTION
init=epsg:23030
END
DUMP TRUE
TYPE POLYGON
METADATA
wms_title Recintos Sigpac 2009
wms_srs EPSG:23030
wms_nameRecintosSigpac
wms_server_version  1.1.1
wms_format  image/gif
wms_transparent true
END 
MAXSCALE 25000
DATA GEOMETRY FROM (SELECT * FROM GT_SIGPAC_REC_2010_ED50) 
USING UNIQUE gid SRID 82337 #todo el sigpac

CLASS
NAME Recintos
STYLE
OUTLINECOLOR 0 234 0
END
TEMPLATE ms_template.html
END
END
END

I've got ms_template.html created with the magic string. 

What I'm doing wrong??

Thanks.
 
 
Un saludo

RE: [mapserver-users] GetFeatureInfo request doubts

2010-05-24 Thread David Alda Fernandez de Lezea
Hello Jukka, 

I think now I've understood how getFeatureInfo works in mapserver.

Thanks.

-Mensaje original-
De: Rahkonen Jukka [mailto:jukka.rahko...@mmmtike.fi] 
Enviado el: viernes, 21 de mayo de 2010 14:18
Para: David Alda Fernandez de Lezea; mapserver-users@lists.osgeo.org
Asunto: Re: [mapserver-users] GetFeatureInfo request doubts

Hi,

This is indeed a little bit odd.

This is captured from http://mapserver.org/ogc/wms_server.html

# GetFeatureInfo: return info about feature(s) at a query (mouse click) 
location. MapServer supports 3 types of responses to this request:

* text/plain output with attribute info.
* text/html output using MapServer query templates specified in the CLASS 
template parameter. The MIME type returned by the Class templates defaults to 
text/html and can be controlled using the metadata wms_feature_info_mime_type.
* application/vnd.ogc.gml, GML.1 or GML for GML features.



For making the layer queryable at all there must have a TEMPLATE line in LAYER 
definitions.
TEMPLATE d:/program files/ms4w/apps/template.html

The template file must exist and it must validate the security test Templates 
must contain the magic string 'mapserver template' in the first line of the 
template.

Now when you have TEMPLATE set and valid template file on disk your server 
should support GetFeatureInfo. The only supported info_format now it 
text/plain. However, it does not give any other info about features than a 
feature ID.
You must add first a line into LAYER-METADATA wms_include_items all starts 
to sent all the attributes wms_include_items SPA,SCI,SCI2  selects the 
named attributes. Attributes must be comma separated but there must not be any 
white space characters.

Now you should be able to get results as plain text.  Adding support for gml 
output is done by adding DUMP TRUE into LAYER definitions.  Now 
INFO_FORMAT=application/vnd.ogc.gml  However, you will need to define what will 
be includen in the output by adding gml_include_items all or something.

If you want to give also output as text/html you must do two further things:
- add to LAYER wms_feature_info_mime_type text/html
- creare valid template, header and footer documents on server. You did have a 
template file already, that is compulsory for making GetFeatureInfo work at 
all, but until now it could be just a fake file.

There is some extra magic with metadata inputs, for example ows_include_items 
should be enought instead of using both the wms_include_items and gml_include 
items.  But by remembering these four things, reading the documentation and 
experimenting you will do it.

TEMPLATE - to turn it on
DUMP TRUE - to make it support gml
wms_feature_info_mime_type - to make it support text/html ***_include_items 
- to make is send some usable info

I hope I have understood it right, I have not used GetFeatureInfo very often.

-Jukka Rahkonen-




 -Alkuperäinen viesti-
 Lähettäjä: mapserver-users-boun...@lists.osgeo.org
 [mailto:mapserver-users-boun...@lists.osgeo.org] Puolesta David Alda 
 Fernandez de Lezea
 Lähetetty: 21. toukokuuta 2010 14:29
 Vastaanottaja: mapserver-users@lists.osgeo.org
 Aihe: [mapserver-users] GetFeatureInfo request doubts
 
 Hi,
 
 I've got a WMS service through MapServer, and I want that the layers 
 served in it be queryable through Desktop GIS software. How many ways 
 are there to present the information?? I'm going crazy because of the 
 documentation, I don't understand the differences between using 
 wms_feture_info_mime_type or DUMP TRUE, etc.
 
 Can someone help me?
 
 Thanks. 
  
 Un saludo,
  
 ··
 
 
 David Alda Fernández de Lezea
 Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y 
 Biodiversidad
  
 IKT
 Granja Modelo s/n · 01192 · Arkaute (Araba)
 
 ··
 
 Tlfnos.: 945-00-32-95 Fax: 945-00.32.90
 ··
 
 email: da...@ikt.esweb: www.ikt.es
 ··
 
 ___
 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 request doubts

2010-05-21 Thread David Alda Fernandez de Lezea
Hi, 

I've got a WMS service through MapServer, and I want that the layers served in 
it be queryable through Desktop GIS software. How many ways are there to 
present the information?? I'm going crazy because of the documentation, I don't 
understand the differences between using wms_feture_info_mime_type or DUMP 
TRUE, etc.

Can someone help me?

Thanks. 
 
Un saludo,
 
··

David Alda Fernández de Lezea
Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y Biodiversidad
 
IKT
Granja Modelo s/n · 01192 · Arkaute (Araba)

··
Tlfnos.: 945-00-32-95 Fax: 945-00.32.90
··
email: da...@ikt.esweb: www.ikt.es
··
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


RE: [mapserver-users] Re: Combination of MapServer and Desktop GIS

2010-05-07 Thread David Alda Fernandez de Lezea
 
I'm using it with openlayers for a web app, can I take those tiles and use them 
with mapserver too?? How?? That could be the solution!!

Thanks.

 
 
Un saludo,
 
··

David Alda Fernández de Lezea
Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y Biodiversidad
 
IKT
Granja Modelo s/n · 01192 · Arkaute (Araba)

··
Tlfnos.: 945-00-32-95 Fax: 945-00.32.90
··
email: da...@ikt.esweb: www.ikt.es
··

-Mensaje original-
De: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] En nombre de mattmendick
Enviado el: jueves, 06 de mayo de 2010 18:47
Para: mapserver-users@lists.osgeo.org
Asunto: [mapserver-users] Re: Combination of MapServer and Desktop GIS


You could also use something more specific to caching wms tiles like tilecache. 
 (http://tilecache.org/) It works pretty well for me, it considerably speeds up 
the serving of our tiles.

-Matt Mendick
--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Combination-of-MapServer-and-Desktop-GIS-tp5013556p5015215.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
___
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] Combination of MapServer and Desktop GIS

2010-05-06 Thread David Alda Fernandez de Lezea

Hello,

Does Map Server cache or store (in HDD) the images of GetMap requests made via 
a Desktop GIS such as gvSIG or Qgis, in order to get a better performance??

If it's possible how can I configure it??

Thanks.
 
 
Un saludo,
 
··

David Alda Fernández de Lezea
Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y Biodiversidad
 
IKT
Granja Modelo s/n · 01192 · Arkaute (Araba)

··
Tlfnos.: 945-00-32-95 Fax: 945-00.32.90
··
email: da...@ikt.esweb: www.ikt.es
··
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


RE: [mapserver-users] Combination of MapServer and Desktop GIS

2010-05-06 Thread David Alda Fernandez de Lezea
Thanks. 


-Mensaje original-
De: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] En nombre de Daniel
Morissette
Enviado el: jueves, 06 de mayo de 2010 15:41
Para: mapserver-users@lists.osgeo.org
Asunto: Re: [mapserver-users] Combination of MapServer and Desktop GIS

David Alda Fernandez de Lezea wrote:
 Hello,
 
 Does Map Server cache or store (in HDD) the images of GetMap requests
made via a Desktop GIS such as gvSIG or Qgis, in order to get a better
performance??
 
 If it's possible how can I configure it??
 

No, MapServer doesn't cache WMS GetMap responses, but you could likely
use a regular Web caching proxy to do that. For instance, I have heard
of people using Squid as a caching proxy for regular website in the
past.

Note that the order of parameters in a WMS GetMap request may vary
depending on the client that generates the request, and this means that
two requests for the same map, but in which the GetMap parameters are in
a different order, may not be detected as being identical by a web
proxy. However, multiple requests coming from the same client (e.g. all
requests from gvSIG) should all use the same ordering and all be cached
efficiently by a proxy.

Daniel
--
Daniel Morissette
http://www.mapgears.com/
___
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] Problems using SortBy in GetFeature request

2010-04-19 Thread David Alda Fernandez de Lezea
 
Thanks.

 
 
Un saludo,
 
··

David Alda Fernández de Lezea
Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y Biodiversidad
 
IKT
Granja Modelo s/n · 01192 · Arkaute (Araba)

··
Tlfnos.: 945-00-32-95 Fax: 945-00.32.90
··
email: da...@ikt.esweb: www.ikt.es
··

-Mensaje original-
De: bart...@osgis.nl [mailto:bart...@osgis.nl] 
Enviado el: viernes, 16 de abril de 2010 15:05
Para: David Alda Fernandez de Lezea
CC: mapserver-users@lists.osgeo.org
Asunto: Re: [mapserver-users] Problems using SortBy in GetFeature request

It's not yet implemented.

Best regards,
Bart


 Hello,

 I'm trying to use SortBy tag in a WFS getfeature request. I't seems 
 that is not working.

 I'm doing it like this:

 wfs:Query
 ...
 ogc:Filter
 ...
 /ogc:Filter
 ogc:SortBy
 ogc:SortPropertyogc:PropertyNamePOLIGONO/ogc:PropertyName/ogc:S
 ortProperty
 ogc:SortOrderASC/ogc:SortOrder
 /ogc:SortBy
 /wfs:Query

 Is this ticket (http://trac.osgeo.org/mapserver/ticket/3357) realated 
 to it?


 Un saludo,

 ··
 

 David Alda Fernández de Lezea
 Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y 
 Biodiversidad

 IKT
 Granja Modelo s/n · 01192 · Arkaute (Araba)

 ··
 Tlfnos.: 945-00-32-95 Fax: 945-00.32.90
 ··
 email: da...@ikt.esweb: www.ikt.es
 ··
  ___
 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] Problems using SortBy in GetFeature request

2010-04-16 Thread David Alda Fernandez de Lezea

Hello, 

I'm trying to use SortBy tag in a WFS getfeature request. I't seems that is not 
working. 

I'm doing it like this:

wfs:Query
...
ogc:Filter
...
/ogc:Filter
ogc:SortBy
ogc:SortPropertyogc:PropertyNamePOLIGONO/ogc:PropertyName/ogc:SortProperty
ogc:SortOrderASC/ogc:SortOrder
/ogc:SortBy
/wfs:Query

Is this ticket (http://trac.osgeo.org/mapserver/ticket/3357) realated to it?
 
 
Un saludo,
 
··

David Alda Fernández de Lezea
Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y Biodiversidad
 
IKT
Granja Modelo s/n · 01192 · Arkaute (Araba)

··
Tlfnos.: 945-00-32-95 Fax: 945-00.32.90
··
email: da...@ikt.esweb: www.ikt.es
··
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Problems using SortBy in GetFeature request

2010-04-16 Thread David Alda Fernandez de Lezea
Hello, 

I'm trying to use SortBy tag in a WFS getfeature request. I't seems that is not 
working. 

I'm doing it like this:

wfs:Query
...
ogc:Filter
...
/ogc:Filter
ogc:SortBy
ogc:SortPropertyogc:PropertyNamePOLIGONO/ogc:PropertyName/ogc:SortProperty
ogc:SortOrderASC/ogc:SortOrder
/ogc:SortBy
/wfs:Query

Is this ticket (http://trac.osgeo.org/mapserver/ticket/3357) realated to it?
 
 
Un saludo,
 
··

David Alda Fernández de Lezea
Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y Biodiversidad
 
IKT
Granja Modelo s/n · 01192 · Arkaute (Araba)

··
Tlfnos.: 945-00-32-95 Fax: 945-00.32.90
··
email: da...@ikt.esweb: www.ikt.es
··
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


RE: [mapserver-users] Strange Behaviour with getFeature using POST method and more than one typename

2010-04-14 Thread David Alda Fernandez de Lezea
Assefa,

 From the url you sent, you seem to  be on a windows machine, is that
correct?
Yes, I'm currently on a windows machine. I've got ms4w package (MS4W
Base Installer v2.3.1 (Dec 2, 2008) to be precise)

  I am trying to see if it is possible to provide you binaries 
with the patch. I can provide this service for a fee myself or though an
associate.

Does this mean that I have to pay to get the binaries with the patch?

We are planning to to get this working in production level, so it would
be desirable to have a stable version of MapServer. What would you
recommend as best (not to much complicated and short in time) solution?

Thanks.


-Mensaje original-
De: Yewondwossen Assefa [mailto:yass...@dmsolutions.ca] 
Enviado el: martes, 13 de abril de 2010 18:42
Para: David Alda Fernandez de Lezea
Asunto: Re: [mapserver-users] Strange Behaviour with getFeature using
POSTmethod and more than one typename

David Alda Fernandez de Lezea wrote:
 Assefa,

 Thanks one more time. I hope this will be a strong reason to migrate 
 to the latest version. Until that happens, I don't know really how I 
 have to proceed to update my mapserver version with this patch. Should

 I re-compile the application?? How should I proceed??

   
 Yes you need to recompile or get binaries that has the patch.  From the
url you sent, you seem to  be on a windows machine, is that correct? If
that is the case, where did you get your binaries (ms4w, other 
sources)?   I am trying to see if it is possible to provide you binaries

with the patch. I can provide this service for a fee myself or though an
associate.

Let me know.

best regards,

 Thanks.

 -Mensaje original-
 De: Yewondwossen Assefa [mailto:yass...@dmsolutions.ca] Enviado el: 
 martes, 13 de abril de 2010 16:22
 Para: David Alda Fernandez de Lezea
 CC: mapserver-users@lists.osgeo.org
 Asunto: Re: [mapserver-users] Strange Behaviour with getFeature using 
 POSTmethod and more than one typename

 David Alda Fernandez de Lezea wrote:
   
 Assefa,

 I'm using version 5.2.1, but we are not sure if we are going to 
 migrate or not.
 This is what I get:

   
 
 I was able to reproduce the problem. I have entered a bug for it [1] 
 and prepared patches for different versions of Mapserver. Please check

 the bug and update it if that works for you. As I mentioned, this 
 should not happen with current trunk version.

 [1]: http://trac.osgeo.org/mapserver/ticket/3430

 best regards

   
 Request:

 ?xml version=1.0 ?wfs:GetFeature service=WFS version=1.1.0
 outputFormat=text/xml;
 subtype=gml/3.1.1xmlns:wfs=http://www.opengis.net/wfs;
 xmlns:ogc=http://www.opengis.net/ogcxmlns:xsi=http://www.w3.org/20
 0 1/ XMLSchema-instance 
 xsi:schemaLocation=http://www.opengis.net/wfs
 ../wfs/1.1.0/WFS.xsd
 wfs:Query typeName=PoligonosSigpac ogc:Filter ogc:Or 
 PropertyIsEqualToogc:PropertyNameGID/ogc:PropertyNameLiteral1
 
 /L
 iteral/PropertyIsEqualTo
 PropertyIsEqualToogc:PropertyNameGID/ogc:PropertyNameLiteral6
 5
 /
 Literal/PropertyIsEqualTo
 PropertyIsEqualToogc:PropertyNameGID/ogc:PropertyNameLiteral1
 9
 7
 /Literal/PropertyIsEqualTo
 PropertyIsEqualToogc:PropertyNameGID/ogc:PropertyNameLiteral2
 4
 5
 /Literal/PropertyIsEqualTo
 /ogc:Or
 /ogc:Filter
 /wfs:Query
 /wfs:GetFeature

 Debug info of the request:

 [Tue Apr 13 14:05:51 2010].39000 CGI Request 1 on process 3408 [Tue 
 Apr 13 14:05:51 2010].54000 msOracleSpatialLayerOpen called with:
 GEOMETRY FROM (SELECT * FROM GX_SIGPAC_POLIGONOS) USING UNIQUE gid 
 SRID
 82337
 [Tue Apr 13 14:05:51 2010].164000 msOracleSpatialLayerOpen. Shared 
 connection not available. Creating one.
 [Tue Apr 13 14:05:51 2010].164000
 msConnPoolRegister(PoligonosSigpac,admcarto/admca...@ora10gex,01C6FA4
 8
 ) [Tue Apr 13 14:05:51 2010].164000 msOracleSpatialLayerFreeItemInfo 
 was called.
 [Tue Apr 13 14:05:51 2010].164000 msOracleSpatialLayerGetItems was 
 called.
 [Tue Apr 13 14:05:51 2010].164000 msOracleSpatialLayerInitItemInfo 
 was
 

   
 called.
 [Tue Apr 13 14:05:51 2010].164000 msOracleSpatialLayerFreeItemInfo 
 was
 

   
 called.
 [Tue Apr 13 14:05:51 2010].164000 msOracleSpatialLayerClose was
 
 called.
   
 Layer name: PoligonosSigpac. Layer connection:
 admcarto/admca...@ora10gex
 [Tue Apr 13 14:05:51 2010].164000 msOracleSpatialLayerClose. Cleaning

 layerinfo handlers.
 [Tue Apr 13 14:05:51 2010].164000 msOracleSpatialLayerClose. Cleaning

 Oracle Cache.
 [Tue Apr 13 14:05:51 2010].164000 msOracleSpatialLayerClose. Release 
 the Oracle Pool.
 [Tue Apr 13 14:05:51 2010].164000
 msConnPoolRelease(PoligonosSigpac,admcarto/admca...@ora10gex,01C6FA48
 )
 [Tue Apr 13 14:05:51 2010].164000
 msConnPoolClose(admcarto/admca...@ora10gex,01C6FA48)
 [Tue Apr 13 14:05:51 2010].164000 msOracleSpatialLayerOpen called
 
 with:
   
 GEOMETRY FROM (SELECT * FROM GX_SIGPAC_POLIGONOS) USING UNIQUE gid 
 SRID
 82337
 [Tue Apr 13 14:05:51 2010].21 msOracleSpatialLayerOpen. Shared 
 connection not available. Creating one

RE: [mapserver-users] Strange Behaviour with getFeature using POST method and more than one typename

2010-04-14 Thread David Alda Fernandez de Lezea
Assefa,

 From the url you sent, you seem to  be on a windows machine, is that
correct?
Yes, I'm currently on a windows machine. I've got ms4w package (MS4W
Base Installer v2.3.1 (Dec 2, 2008) to be precise)

  I am trying to see if it is possible to provide you binaries
with the patch. I can provide this service for a fee myself or though an
associate.

Does this mean that I have to pay to get the binaries with the patch?

We are planning to to get this working in production level, so it would
be desirable to have a stable version of MapServer. What would you
recommend as best (not too much complicated and short in time) solution?

Thanks.


-Mensaje original-
De: Yewondwossen Assefa [mailto:yass...@dmsolutions.ca] 
Enviado el: martes, 13 de abril de 2010 18:42
Para: David Alda Fernandez de Lezea
Asunto: Re: [mapserver-users] Strange Behaviour with getFeature using
POSTmethod and more than one typename

David Alda Fernandez de Lezea wrote:
 Assefa,

 Thanks one more time. I hope this will be a strong reason to migrate 
 to the latest version. Until that happens, I don't know really how I 
 have to proceed to update my mapserver version with this patch. Should

 I re-compile the application?? How should I proceed??

   
 Yes you need to recompile or get binaries that has the patch.  From the
url you sent, you seem to  be on a windows machine, is that correct? If
that is the case, where did you get your binaries (ms4w, other 
sources)?   I am trying to see if it is possible to provide you binaries

with the patch. I can provide this service for a fee myself or though an
associate.

Let me know.

best regards,



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


RE: [mapserver-users] Strange Behaviour with getFeature using POSTmethod and more than one typename

2010-04-13 Thread David Alda Fernandez de Lezea
Hi again,

If I use GET Method and FILTER parameter in URL something like:

http://192.168.1.65/cgi-bin/mapserv.exe?map=../htdocs/MFD/ejemplo_wfs.mapSERVICE=WFSVERSION=1.1.0REQUEST=GetFeatureTYPENAME=PoligonosSigpacMAXFEATURES=1000FILTER=FilterOrPropertyIsEqualToPropertyNameGID/PropertyNameLiteral16/Literal/PropertyIsEqualToPropertyIsEqualToPropertyNameGID/PropertyNameLiteral29/Literal/PropertyIsEqualToPropertyIsEqualToPropertyNameGID/PropertyNameLiteral160/Literal/PropertyIsEqualToPropertyIsEqualToPropertyNameGID/PropertyNameLiteral529/Literal/PropertyIsEqualTo/Or/Filter

I get again the first two features OK but the following ones are repeated, they 
are equal to the GID=29. Is this a kind of bug or something like that? I don't 
understand it. Maybe is something wrong with my layer:

LAYER
NAME PoligonosSigpac
PROJECTION
init=epsg:23030
END
METADATA
wfs_title Poligonos Sigpac 2009 ## REQUIRED
wfs_abstract Poligonos
wfs_name PoligonosSigpac
wfs_geometry_element_name MS_GEOMETRY
wfs_srs EPSG:23030 ## Recommended
wfs_extent  463498.785171405 4702415.34945634 
603167.123773832 4811812.82264918
gml_featureid gid ## REQUIRED
gml_exclude_items all
END
TYPE POLYGON

CONNECTIONTYPE oraclespatial
CONNECTION admcarto/admca...@ora10gex

DATA GEOMETRY FROM (SELECT * FROM GX_SIGPAC_POLIGONOS) USING UNIQUE 
gid SRID 82337 #todo el sigpac

DUMP TRUE ## REQUIRED

CLASS
NAME Poligonos
STYLE
OUTLINECOLOR 255 255 255
END
TEMPLATE ttt_query.html
END


STATUS ON
END # Layer


Or Maybe at mapfile level:

NAME wfs_server
STATUS ON

EXTENT 46 471 61 482 

PROJECTION
init=epsg:23030
END

SHAPEPATH shapes/
FONTSET misc/fonts/fonts.txt
SYMBOLSET misc/symbols/symbols.sym

IMAGETYPE image/png; mode=24bit
IMAGECOLOR 255 255 255
UNITS METERS

DEBUG ON
CONFIG MS_ERRORFILE C:/ms4w/Apache/htdocs/MFD/tmp/ms_wfs.log
DEBUG 5

WEB
IMAGEPATH MFD/tmp/
IMAGEURL tmp/
METADATA
wfs_title IKT WFS Server ## REQUIRED
wfs_abstract Servicio de mapas WFS de IKT 
Nekazal Teknologia. Powered by Apache and UMN MapServer ## REQUIRED
wfs_onlineresource 
http://192.168.1.65/cgi-bin/mapserv.exe?map=../htdocs/MFD/ejemplo_wfs.map; ## 
Recommended
wfs_srs EPSG:23030 ## Recommended
wfs_keywordlist   
IKT,Euskadi,Mapas Euskadi
wfs_fees  none
wfs_accessconstraints Ninguna
ows_contactorganization   http://www.ikt.es;
wfs_geometry_element_name MS_GEOMETRY
END
END

Please, any idea is appreciated. Hope someone can help. I can't believe 
MapServer can't do this, it's impossible.

Thanks.

-Mensaje original-
De: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] En nombre de David Alda 
Fernandez de Lezea
Enviado el: lunes, 12 de abril de 2010 13:20
Para: mapserver-users@lists.osgeo.org
Asunto: RE: [mapserver-users] Strange Behaviour with getFeature using 
POSTmethod and more than one typename

 
Assefa,

Thanks for your response. I had that configured in the waye you told me this is 
what I get:

[Fri Apr 09 11:24:45 2010].725000 CGI Request 1 on process 1948 [Fri Apr 09 
11:24:46 2010].37000 mapserv request processing time (msLoadMap not incl.): 
0.312s [Fri Apr 09 11:24:46 2010].37000 msFreeMap(): freeing map at 015D60B8.

 You should be able to check then the query sent to the oracle db and that 
 might give your more hints.

Where I can view the query sent to Oracle??

Thanks.

-Mensaje original-
De: Yewondwossen Assefa [mailto:yass...@dmsolutions.ca] Enviado el: viernes, 09 
de abril de 2010 14:19
Para: David Alda Fernandez de Lezea
CC: mapserver-users@lists.osgeo.org
Asunto: Re: [mapserver-users] Strange Behaviour with getFeature using POST 
method and more than one typename

David,

 You could possibly get more hints if you put you map in debug mode and see the 
logs. You can add something like this in your map

RE: [mapserver-users] Strange Behaviour with getFeature usingv POST method and more than one typename

2010-04-13 Thread David Alda Fernandez de Lezea
Jukka,

Thanks for your response. I made the test you told me and it worked (buff, what 
a relief!!). I've made several tests with different number of features to get 
(1, 5, 10, 50), and I get the expected response. I would like to test it using 
a PostGis Layer, but I can't find the way to make it work (I think is the 
definition of the layer). It should be something like this:

LAYER

NAME ParcelasPG
STATUS ON
PROJECTION
init=epsg:23030
END

METADATA
wfs_title Parcelas Sigpac 2009 - Shape ## REQUIRED
wfs_abstract Parcelas
wfs_name ParcelasPG
wfs_srs EPSG:23030 ## Recommended
gml_featureid gid ## REQUIRED
gml_exclude_items all
END

TYPE POLYGON
CONNECTIONTYPE postgis
CONNECTION user=postgres password= dbname=LANDAGIS_V3 
host=localhost
PROCESSING CLOSE_CONNECTION=DEFER
DATA the_geom FROM tb_parcelas_geo using unique gid using SRID=23030

CLASS
STYLE
COLOR 255 123 0
OUTLINECOLOR 0 0 0
END
END
END

On the other subject, it seems that there's a problem with Oracle spatial. What 
could be happening??Is there a way to see what queries are sent to Oracle 
Spatial, because maybe that's the problem, the queries are badformed??

Thanks for your help.

-Mensaje original-
De: Rahkonen Jukka [mailto:jukka.rahko...@mmmtike.fi] 
Enviado el: martes, 13 de abril de 2010 11:33
Para: David Alda Fernandez de Lezea; mapserver-users@lists.osgeo.org
Asunto: Re: [mapserver-users] Strange Behaviour with getFeature usingPOSTmethod 
and more than one typename

Hi,

I created a WFS service from a scratch by using shapefile as a data source. I 
made a similar query as you did, GET with FILTER having four different numbers 
in PropertyIsEqualTo sections and OR condition. Mapserver version 5.2.1 gives 
me a correct result both with WFS 1.0.0 and 1.1.0.

Now we know that Mapserver can do it but we do not know yet why it does not do 
it for you. I would suggest you to repeat my test by converting some part of 
your Oracle data into shapefile and making a new feature type out of that. Test 
if your four-GID filter works all right against shapefile. If yes, then it 
might be something Oracle specific.

Copy-pasting your request makes me think that there may be an extra white space 
here:
PropertyName GID/PropertyNameLiteral160
Check it first.

-Jukka Rahkonen-


David Alda Fernandez de Lezea wrote:
 
 Hi again,
 
 If I use GET Method and FILTER parameter in URL something like:
 
 http://192.168.1.65/cgi-bin/mapserv.exe?map=../htdocs/MFD/ejem
plo_wfs.mapSERVICE=WFSVERSION=1.1.0 
REQUEST=GetFeatureTYPENAME=PoligonosSigpacMAXFEATURES=1000
FILTER=FilterOrPropertyIsEqualToPropertyName 
GID/PropertyNameLiteral16/Literal/PropertyIsEqualToPr
 opertyIsEqualToPropertyNameGID/PropertyNameLiteral29/L
iteral/PropertyIsEqualToPropertyIsEqualToPropertyName 
iteralGID/PropertyNameLiteral160/Literal/PropertyIsEqualToP
 ropertyIsEqualToPropertyNameGID/PropertyNameLiteral529
/Literal/PropertyIsEqualTo/Or/Filter
 
 I get again the first two features OK but the following ones are 
 repeated, they are equal to the GID=29. Is this a kind of bug or 
 something like that? I don't understand it. Maybe is something wrong 
 with my layer:
 
 LAYER
   NAME PoligonosSigpac
   PROJECTION
   init=epsg:23030
   END
   METADATA
   wfs_title Poligonos Sigpac 2009 ## REQUIRED
   wfs_abstract Poligonos
   wfs_name PoligonosSigpac
   wfs_geometry_element_name MS_GEOMETRY
   wfs_srs EPSG:23030 ## Recommended
   wfs_extent  463498.785171405 
 4702415.34945634 603167.123773832 4811812.82264918
   gml_featureid gid ## REQUIRED
   gml_exclude_items all
   END
   TYPE POLYGON
   
   CONNECTIONTYPE oraclespatial
   CONNECTION admcarto/admca...@ora10gex
   
   DATA GEOMETRY FROM (SELECT * FROM GX_SIGPAC_POLIGONOS) USING UNIQUE 
 gid SRID 82337 #todo el sigpac
   
   DUMP TRUE ## REQUIRED
   
   CLASS
   NAME Poligonos
   STYLE
   OUTLINECOLOR 255 255 255
   END
   TEMPLATE ttt_query.html
   END
   
   
   STATUS ON
 END # Layer
 
 
 Or Maybe at mapfile level:
 
 NAME wfs_server
   STATUS ON
   
   EXTENT 46 471 61 482
   
   PROJECTION
   init=epsg:23030
   END
   
   SHAPEPATH shapes/
   FONTSET misc/fonts/fonts.txt
   SYMBOLSET misc/symbols/symbols.sym

RE: [mapserver-users] Strange Behaviour with getFeature using POSTmethod and more than one typename

2010-04-13 Thread David Alda Fernandez de Lezea
 509574.010192 4726314.790726 509582.411063 4726337.494658
509588.746614 4726354.089853 509590.306503 4726373.079837 509588.785093
4726395.714195 509589.159036 4726428.142939 509586.513898 4726468.897948
509580.573918 4726498.972400 509573.997242 4726532.685311 509573.068354
4726558.894677 509575.920317 4726586.952209 509572.188843 4726628.850585
509577.842121 472.927146 509582.722965 4726692.539553 509584.190067
4726728.907009 509594.120718 4726772.043630 509603.691208 4726797.541556
509614.372955 4726828.700161 509624.999798 4726854.832516 509636.123603
4726879.038872 509645.984773 4726902.666407 509654.924986 4726936.735984
509633.800419 4726939.982883 509615.464111 4726942.786946 509610.608762
4726943.534132 509591.104806 4726946.653103 509545.242065 4726954.743305
509500.390426 4726961.606574 509497.354986 4726962.077105 509435.379554
4726973.962128 509417.054136 4726978.981980 509410.081899 4726981.345977
509377.700548 4726992.331730 509329.754895 4727007.792288 509320.449810
4727009.017684 509313.575740 4727009.911284 509290.453359 4727023.534700
509246.101320 4727047.554498 509207.617401 4727068.343281 509164.381481
4727089.898530 509126.277006 4727109.673721 509090.098268 4727132.337059
509067.768835 4727149.275826 509058.801415 4727160.228632 509043.970678
4727181.626407 509041.508058 4727185.188064 509023.025734 4727211.151228
509012.704374 4727218.006912 508979.662832 4727236.458496 508957.605756
4727250.317101 508956.849909 4727250.790819 508945.237337 4727258.091705
508943.616432 4727258.545691 508937.242692 4727260.343164 508930.999465
4727262.094273 508920.106433 4727265.161095 508877.586291 4727276.312974
508840.171674 4727284.213916 508836.024080 4727284.75 508803.990153
4727288.933371 508767.495442 4727291.614218 508746.759555 4727292.732835
508712.381656 4727293.722635 508668.513405 4727296.264416 508636.606992
4727297.415920 508604.852191 4727298.120986 508564.557869 4727297.680078
508531.128179 4727298.113485 508492.603378 4727299.164420 508458.641561
4727302.445701 508425.942066 4727306.547768 508385.948362 4727313.023936
508370.140478 4727315.545819 /gml:posList
  /gml:LinearRing
/gml:exterior
  /gml:Polygon
/ms:msGeometry
  /ms:PoligonosSigpac
/gml:featureMember
/wfs:FeatureCollection

-Mensaje original-
De: Yewondwossen Assefa [mailto:yass...@dmsolutions.ca] 
Enviado el: martes, 13 de abril de 2010 13:09
Para: David Alda Fernandez de Lezea
CC: mapserver-users@lists.osgeo.org
Asunto: Re: [mapserver-users] Strange Behaviour with getFeature using
POSTmethod and more than one typename

David,
 Assefa,

 Thanks for your response. I had that configured in the waye you told
me this is what I get:

 [Fri Apr 09 11:24:45 2010].725000 CGI Request 1 on process 1948 [Fri
Apr 09 11:24:46 2010].37000 mapserv request processing time (msLoadMap
not incl.): 0.312s [Fri Apr 09 11:24:46 2010].37000 msFreeMap(): freeing
map at 015D60B8.

   
 You should be able to check then the query sent to the oracle db and
that might give your more hints.
 

 Where I can view the query sent to Oracle??

 Thanks.

   
I forgot to mention that you also need to have the debug statement  in
your layer for layer specific debug output in oracle.

Layer
 
 DEBUG 5
 ...
END

I am not sure what version of MapServer your are using, but you should
if not already (and possiible) upgrade to 5.6.3 or the trunk version
from svn. Both have a lot more debugging information for the oracle
spatial.



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


RE: [mapserver-users] Strange Behaviour with getFeature using POSTmethod and more than one typename

2010-04-13 Thread David Alda Fernandez de Lezea
Assefa,

Thanks one more time. I hope this will be a strong reason to migrate to
the latest version. Until that happens, I don't know really how I have
to proceed to update my mapserver version with this patch. Should I
re-compile the application?? How should I proceed??

Thanks.

-Mensaje original-
De: Yewondwossen Assefa [mailto:yass...@dmsolutions.ca] 
Enviado el: martes, 13 de abril de 2010 16:22
Para: David Alda Fernandez de Lezea
CC: mapserver-users@lists.osgeo.org
Asunto: Re: [mapserver-users] Strange Behaviour with getFeature using
POSTmethod and more than one typename

David Alda Fernandez de Lezea wrote:
 Assefa,

 I'm using version 5.2.1, but we are not sure if we are going to 
 migrate or not.
 This is what I get:

   
I was able to reproduce the problem. I have entered a bug for it [1] and
prepared patches for different versions of Mapserver. Please check the
bug and update it if that works for you. As I mentioned, this should not
happen with current trunk version.

[1]: http://trac.osgeo.org/mapserver/ticket/3430

best regards

 Request:

 ?xml version=1.0 ?wfs:GetFeature service=WFS version=1.1.0
 outputFormat=text/xml;
 subtype=gml/3.1.1xmlns:wfs=http://www.opengis.net/wfs;
 xmlns:ogc=http://www.opengis.net/ogcxmlns:xsi=http://www.w3.org/200
 1/ XMLSchema-instance xsi:schemaLocation=http://www.opengis.net/wfs
 ../wfs/1.1.0/WFS.xsd
 wfs:Query typeName=PoligonosSigpac ogc:Filter ogc:Or 
 PropertyIsEqualToogc:PropertyNameGID/ogc:PropertyNameLiteral1
 /L
 iteral/PropertyIsEqualTo
 PropertyIsEqualToogc:PropertyNameGID/ogc:PropertyNameLiteral65
 /
 Literal/PropertyIsEqualTo
 PropertyIsEqualToogc:PropertyNameGID/ogc:PropertyNameLiteral19
 7
 /Literal/PropertyIsEqualTo
 PropertyIsEqualToogc:PropertyNameGID/ogc:PropertyNameLiteral24
 5
 /Literal/PropertyIsEqualTo
 /ogc:Or
 /ogc:Filter
 /wfs:Query
 /wfs:GetFeature

 Debug info of the request:

 [Tue Apr 13 14:05:51 2010].39000 CGI Request 1 on process 3408 [Tue 
 Apr 13 14:05:51 2010].54000 msOracleSpatialLayerOpen called with:
 GEOMETRY FROM (SELECT * FROM GX_SIGPAC_POLIGONOS) USING UNIQUE gid 
 SRID
 82337
 [Tue Apr 13 14:05:51 2010].164000 msOracleSpatialLayerOpen. Shared 
 connection not available. Creating one.
 [Tue Apr 13 14:05:51 2010].164000
 msConnPoolRegister(PoligonosSigpac,admcarto/admca...@ora10gex,01C6FA48
 ) [Tue Apr 13 14:05:51 2010].164000 msOracleSpatialLayerFreeItemInfo 
 was called.
 [Tue Apr 13 14:05:51 2010].164000 msOracleSpatialLayerGetItems was 
 called.
 [Tue Apr 13 14:05:51 2010].164000 msOracleSpatialLayerInitItemInfo was

 called.
 [Tue Apr 13 14:05:51 2010].164000 msOracleSpatialLayerFreeItemInfo was

 called.
 [Tue Apr 13 14:05:51 2010].164000 msOracleSpatialLayerClose was
called.
 Layer name: PoligonosSigpac. Layer connection:
 admcarto/admca...@ora10gex
 [Tue Apr 13 14:05:51 2010].164000 msOracleSpatialLayerClose. Cleaning 
 layerinfo handlers.
 [Tue Apr 13 14:05:51 2010].164000 msOracleSpatialLayerClose. Cleaning 
 Oracle Cache.
 [Tue Apr 13 14:05:51 2010].164000 msOracleSpatialLayerClose. Release 
 the Oracle Pool.
 [Tue Apr 13 14:05:51 2010].164000
 msConnPoolRelease(PoligonosSigpac,admcarto/admca...@ora10gex,01C6FA48)
 [Tue Apr 13 14:05:51 2010].164000
 msConnPoolClose(admcarto/admca...@ora10gex,01C6FA48)
 [Tue Apr 13 14:05:51 2010].164000 msOracleSpatialLayerOpen called
with:
 GEOMETRY FROM (SELECT * FROM GX_SIGPAC_POLIGONOS) USING UNIQUE gid 
 SRID
 82337
 [Tue Apr 13 14:05:51 2010].21 msOracleSpatialLayerOpen. Shared 
 connection not available. Creating one.
 [Tue Apr 13 14:05:51 2010].21
 msConnPoolRegister(PoligonosSigpac,admcarto/admca...@ora10gex,01C6FA48
 ) [Tue Apr 13 14:05:51 2010].226000 msOracleSpatialLayerFreeItemInfo 
 was called.
 [Tue Apr 13 14:05:51 2010].226000 msOracleSpatialLayerWhichShapes was 
 called.
 [Tue Apr 13 14:05:51 2010].226000 msOracleSpatialLayerWhichShapes. 
 Using this Sql to retrieve the data: SELECT gid, GEOMETRY FROM (SELECT
* FROM
 GX_SIGPAC_POLIGONOS) WHERE   (GID= 1)  Or  ( (GID= 65)  Or  ( (GID=
197)
 Or  (GID= 245) ) )   AND SDO_FILTER( GEOMETRY,
MDSYS.SDO_GEOMETRY(2003,
 82337,
 NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(4634
 98
 .785,4702415.35,603167.124,4811812.82) ),'querytype=window') = 'TRUE'
 [Tue Apr 13 14:05:51 2010].257000 msOracleSpatialLayerFreeItemInfo was

 called.
 [Tue Apr 13 14:05:51 2010].257000 msOracleSpatialLayerClose was
called.
 Layer name: PoligonosSigpac. Layer connection:
 admcarto/admca...@ora10gex
 [Tue Apr 13 14:05:51 2010].257000 msOracleSpatialLayerClose. Cleaning 
 layerinfo handlers.
 [Tue Apr 13 14:05:51 2010].257000 msOracleSpatialLayerClose. Cleaning 
 Oracle Cache.
 [Tue Apr 13 14:05:51 2010].257000 msOracleSpatialLayerClose. Release 
 the Oracle Pool.
 [Tue Apr 13 14:05:51 2010].257000
 msConnPoolRelease(PoligonosSigpac,admcarto/admca...@ora10gex,01C6FA48)
 [Tue Apr 13 14:05:51 2010].257000
 msConnPoolClose(admcarto/admca...@ora10gex,01C6FA48)
 [Tue Apr 13 14:05:51 2010].288000

RV: [mapserver-users] Strange Behaviour with getFeature using POST method and more than one typename

2010-04-12 Thread David Alda Fernandez de Lezea
Hello, 

I've sent this message several hours ago, but still isn't be received in the 
mailing lists. It happens to me very frecuently to send a message and take like 
2 hours for the to get my message. Is there something wrong with my emails?

Thanks.

-Mensaje original-
De: David Alda Fernandez de Lezea 
Enviado el: lunes, 12 de abril de 2010 13:20
Para: mapserver-users@lists.osgeo.org
Asunto: RE: [mapserver-users] Strange Behaviour with getFeature using POST 
method and more than one typename

 
Assefa,

Thanks for your response. I had that configured in the waye you told me this is 
what I get:

[Fri Apr 09 11:24:45 2010].725000 CGI Request 1 on process 1948 [Fri Apr 09 
11:24:46 2010].37000 mapserv request processing time (msLoadMap not incl.): 
0.312s [Fri Apr 09 11:24:46 2010].37000 msFreeMap(): freeing map at 015D60B8.

 You should be able to check then the query sent to the oracle db and that 
 might give your more hints.

Where I can view the query sent to Oracle??

Thanks.

-Mensaje original-
De: Yewondwossen Assefa [mailto:yass...@dmsolutions.ca] Enviado el: viernes, 09 
de abril de 2010 14:19
Para: David Alda Fernandez de Lezea
CC: mapserver-users@lists.osgeo.org
Asunto: Re: [mapserver-users] Strange Behaviour with getFeature using POST 
method and more than one typename

David,

 You could possibly get more hints if you put you map in debug mode and see the 
logs. You can add something like this in your map:

CONFIG  MS_ERRORFILE f:/tmp/ms_error.log
DEBUG 5

You should be able to check then the query sent to the oracle db and that might 
give your more hints.

regards,

David Alda Fernandez de Lezea wrote:
 Hi list,

 I'm having a strange behaviour when receiving data from getFeature request. I 
 prepare a request that is intended to mark some parcels from two different 
 layers (these layers are stored in Oracle Spatial). The request looks like:

 ?xml version=1.0 ?
 wfs:GetFeature service=WFS version=1.1.0 outputFormat=text/xml; 
 subtype=gml/3.1.1 xmlns:wfs=http://www.opengis.net/wfs;
 xmlns:ogc=http://www.opengis.net/ogc; 
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
 xsi:schemaLocation=http://www.opengis.net/wfs ../wfs/1.1.0/WFS.xsd 
 wfs:Query typeName=RecintosSigpac ogc:Filter ogc:Or ogc:And 
 PropertyIsEqualToPropertyNamePROVINCIA/PropertyNameLiteral1/L
 iteral/PropertyIsEqualTo
 PropertyIsEqualToPropertyNameMUNICIPIO/PropertyNameLiteral1/L
 iteral/PropertyIsEqualTo
 PropertyIsEqualToPropertyNamePOLIGONO/PropertyNameLiteral1/Li
 teral/PropertyIsEqualTo
 PropertyIsEqualToPropertyNamePARCELA/PropertyNameLiteral1/Lit
 eral/PropertyIsEqualTo
 PropertyIsEqualToPropertyNameRECINTO/PropertyNameLiteral1/Lit
 eral/PropertyIsEqualTo
 /ogc:And
 ogc:And
 PropertyIsEqualToPropertyNamePROVINCIA/PropertyNameLiteral1/L
 iteral/PropertyIsEqualTo
 PropertyIsEqualToPropertyNameMUNICIPIO/PropertyNameLiteral1/L
 iteral/PropertyIsEqualTo
 PropertyIsEqualToPropertyNamePOLIGONO/PropertyNameLiteral1/Li
 teral/PropertyIsEqualTo
 PropertyIsEqualToPropertyNamePARCELA/PropertyNameLiteral20/Li
 teral/PropertyIsEqualTo
 PropertyIsEqualToPropertyNameRECINTO/PropertyNameLiteral1/Lit
 eral/PropertyIsEqualTo
 /ogc:And
 ogc:And
 PropertyIsEqualToPropertyNamePROVINCIA/PropertyNameLiteral1/L
 iteral/PropertyIsEqualTo
 PropertyIsEqualToPropertyNameMUNICIPIO/PropertyNameLiteral1/L
 iteral/PropertyIsEqualTo
 PropertyIsEqualToPropertyNamePOLIGONO/PropertyNameLiteral1/Li
 teral/PropertyIsEqualTo
 PropertyIsEqualToPropertyNamePARCELA/PropertyNameLiteral24/Li
 teral/PropertyIsEqualTo
 PropertyIsEqualToPropertyNameRECINTO/PropertyNameLiteral1/Lit
 eral/PropertyIsEqualTo
 /ogc:And
 /ogc:Or
 /ogc:Filter
 /wfs:Query
 wfs:Query typeName=ParcelasSigpac
 ogc:Filter
 ogc:Or
 ogc:And
 PropertyIsEqualToPropertyNamePROVINCIA/PropertyNameLiteral1/L
 iteral/PropertyIsEqualTo
 PropertyIsEqualToPropertyNameMUNICIPIO/PropertyNameLiteral1/L
 iteral/PropertyIsEqualTo
 PropertyIsEqualToPropertyNamePOLIGONO/PropertyNameLiteral1/Li
 teral/PropertyIsEqualTo
 PropertyIsEqualToPropertyNamePARCELA/PropertyNameLiteral29/Li
 teral/PropertyIsEqualTo
 /ogc:And
 ogc:And
 PropertyIsEqualToPropertyNamePROVINCIA/PropertyNameLiteral1/L
 iteral/PropertyIsEqualTo
 PropertyIsEqualToPropertyNameMUNICIPIO/PropertyNameLiteral1/L
 iteral/PropertyIsEqualTo
 PropertyIsEqualToPropertyNamePOLIGONO/PropertyNameLiteral1/Li
 teral/PropertyIsEqualTo
 PropertyIsEqualToPropertyNamePARCELA/PropertyNameLiteral5/Lit
 eral/PropertyIsEqualTo
 /ogc:And
 /ogc:Or
 /ogc:Filter
 /wfs:Query
 /wfs:GetFeature

 All the features that I want to mark using these filters are unique rows in 
 Oracle Spatial. Using my Ajax app I get the following response:

 ?xml version='1.0' encoding=ISO-8859-1 ? wfs:FeatureCollection
xmlns:ms=http://mapserver.gis.umn.edu/mapserver;
xmlns:gml=http://www.opengis.net/gml;
xmlns:wfs=http://www.opengis.net/wfs;
xmlns:ogc=http://www.opengis.net/ogc;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance

RE: [mapserver-users] Strange Behaviour with getFeature using POST method and more than one typename

2010-04-12 Thread David Alda Fernandez de Lezea
 
Assefa,

Thanks for your response. I had that configured in the waye you told me this is 
what I get:

[Fri Apr 09 11:24:45 2010].725000 CGI Request 1 on process 1948
[Fri Apr 09 11:24:46 2010].37000 mapserv request processing time (msLoadMap not 
incl.): 0.312s
[Fri Apr 09 11:24:46 2010].37000 msFreeMap(): freeing map at 015D60B8.

 You should be able to check then the query sent to the oracle db and that 
 might give your more hints.

Where I can view the query sent to Oracle??

Thanks.

-Mensaje original-
De: Yewondwossen Assefa [mailto:yass...@dmsolutions.ca] 
Enviado el: viernes, 09 de abril de 2010 14:19
Para: David Alda Fernandez de Lezea
CC: mapserver-users@lists.osgeo.org
Asunto: Re: [mapserver-users] Strange Behaviour with getFeature using POST 
method and more than one typename

David,

 You could possibly get more hints if you put you map in debug mode and see the 
logs. You can add something like this in your map:

CONFIG  MS_ERRORFILE f:/tmp/ms_error.log
DEBUG 5

You should be able to check then the query sent to the oracle db and that might 
give your more hints.

regards,

David Alda Fernandez de Lezea wrote:
 Hi list,

 I'm having a strange behaviour when receiving data from getFeature request. I 
 prepare a request that is intended to mark some parcels from two different 
 layers (these layers are stored in Oracle Spatial). The request looks like:

 ?xml version=1.0 ?
 wfs:GetFeature service=WFS version=1.1.0 outputFormat=text/xml; 
 subtype=gml/3.1.1 xmlns:wfs=http://www.opengis.net/wfs; 
 xmlns:ogc=http://www.opengis.net/ogc; 
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
 xsi:schemaLocation=http://www.opengis.net/wfs ../wfs/1.1.0/WFS.xsd 
 wfs:Query typeName=RecintosSigpac ogc:Filter ogc:Or ogc:And 
 PropertyIsEqualToPropertyNamePROVINCIA/PropertyNameLiteral1/L
 iteral/PropertyIsEqualTo 
 PropertyIsEqualToPropertyNameMUNICIPIO/PropertyNameLiteral1/L
 iteral/PropertyIsEqualTo 
 PropertyIsEqualToPropertyNamePOLIGONO/PropertyNameLiteral1/Li
 teral/PropertyIsEqualTo 
 PropertyIsEqualToPropertyNamePARCELA/PropertyNameLiteral1/Lit
 eral/PropertyIsEqualTo 
 PropertyIsEqualToPropertyNameRECINTO/PropertyNameLiteral1/Lit
 eral/PropertyIsEqualTo
 /ogc:And
 ogc:And
 PropertyIsEqualToPropertyNamePROVINCIA/PropertyNameLiteral1/L
 iteral/PropertyIsEqualTo 
 PropertyIsEqualToPropertyNameMUNICIPIO/PropertyNameLiteral1/L
 iteral/PropertyIsEqualTo 
 PropertyIsEqualToPropertyNamePOLIGONO/PropertyNameLiteral1/Li
 teral/PropertyIsEqualTo 
 PropertyIsEqualToPropertyNamePARCELA/PropertyNameLiteral20/Li
 teral/PropertyIsEqualTo 
 PropertyIsEqualToPropertyNameRECINTO/PropertyNameLiteral1/Lit
 eral/PropertyIsEqualTo
 /ogc:And
 ogc:And
 PropertyIsEqualToPropertyNamePROVINCIA/PropertyNameLiteral1/L
 iteral/PropertyIsEqualTo 
 PropertyIsEqualToPropertyNameMUNICIPIO/PropertyNameLiteral1/L
 iteral/PropertyIsEqualTo 
 PropertyIsEqualToPropertyNamePOLIGONO/PropertyNameLiteral1/Li
 teral/PropertyIsEqualTo 
 PropertyIsEqualToPropertyNamePARCELA/PropertyNameLiteral24/Li
 teral/PropertyIsEqualTo 
 PropertyIsEqualToPropertyNameRECINTO/PropertyNameLiteral1/Lit
 eral/PropertyIsEqualTo
 /ogc:And
 /ogc:Or
 /ogc:Filter
 /wfs:Query
 wfs:Query typeName=ParcelasSigpac
 ogc:Filter
 ogc:Or
 ogc:And
 PropertyIsEqualToPropertyNamePROVINCIA/PropertyNameLiteral1/L
 iteral/PropertyIsEqualTo 
 PropertyIsEqualToPropertyNameMUNICIPIO/PropertyNameLiteral1/L
 iteral/PropertyIsEqualTo 
 PropertyIsEqualToPropertyNamePOLIGONO/PropertyNameLiteral1/Li
 teral/PropertyIsEqualTo 
 PropertyIsEqualToPropertyNamePARCELA/PropertyNameLiteral29/Li
 teral/PropertyIsEqualTo
 /ogc:And
 ogc:And
 PropertyIsEqualToPropertyNamePROVINCIA/PropertyNameLiteral1/L
 iteral/PropertyIsEqualTo 
 PropertyIsEqualToPropertyNameMUNICIPIO/PropertyNameLiteral1/L
 iteral/PropertyIsEqualTo 
 PropertyIsEqualToPropertyNamePOLIGONO/PropertyNameLiteral1/Li
 teral/PropertyIsEqualTo 
 PropertyIsEqualToPropertyNamePARCELA/PropertyNameLiteral5/Lit
 eral/PropertyIsEqualTo
 /ogc:And
 /ogc:Or
 /ogc:Filter
 /wfs:Query
 /wfs:GetFeature

 All the features that I want to mark using these filters are unique rows in 
 Oracle Spatial. Using my Ajax app I get the following response:

 ?xml version='1.0' encoding=ISO-8859-1 ? wfs:FeatureCollection
xmlns:ms=http://mapserver.gis.umn.edu/mapserver;
xmlns:gml=http://www.opengis.net/gml;
xmlns:wfs=http://www.opengis.net/wfs;
xmlns:ogc=http://www.opengis.net/ogc;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://mapserver.gis.umn.edu/mapserver 
 http://192.168.1.65/cgi-bin/mapserv.exe?map=../htdocs/MFD/ejemplo_wfs.mapamp;SERVICE=WFSamp;VERSION=1.1.0amp;REQUEST=DescribeFeatureTypeamp;TYPENAME=RecintosSigpac,ParcelasSigpacamp;OUTPUTFORMAT=text/xml;
  subtype=gml/3.1.1  http://www.opengis.net/wfs 
 http://schemas.opengis.net/wfs/1.1.0/wfs.xsd;
   gml:boundedBy
   gml:Envelope srsName=EPSG:23030
   gml:lowerCorner538881.736860 
 4744342.676060

RE: [mapserver-users] Strange Behaviour with getFeature using POSTmethod and more than one typename

2010-04-09 Thread David Alda Fernandez de Lezea
Hello again, 

I've been testing this a bit more, and it seems to behppening the same with 
only one typename so maybe it's somethign I'm making wrong or something I 
configured wrong as well. Also, if I request for only two features there's no 
problem but if I try to get more, the there are repeated or missing fetures.

My wfs layer is configured like this:

LAYER
NAME RecintosSigpac
PROJECTION
init=epsg:23030
END
METADATA
wfs_title Recintos Sigpac 2009 ## REQUIRED
wfs_abstract Recintos
wfs_name Recintos
wfs_geometry_element_name MS_GEOMETRY
wfs_srs EPSG:23030 ## Recommended
wfs_extent  463506.9978541628 
4702558.185239193 603185.4988525142 4811754.780732273
gml_featureid gid ## REQUIRED
gml_exclude_items all
END
TYPE POLYGON

CONNECTIONTYPE oraclespatial
CONNECTION admcarto/admca...@ora10gex

DATA GEOMETRY FROM (SELECT * FROM GX_SIGPAC_RECINTOS) 
USING UNIQUE gid SRID 82337 #todo el sigpac

DUMP TRUE ## REQUIRED

CLASS
NAME Municipios_Gipuzkoa
STYLE
OUTLINECOLOR 255 255 255
END
TEMPLATE ttt_query.html
END


STATUS ON
END # Layer

The filter I want to make is something like this (SQL-like notation):

(PROVINCIA = 1 AND MUNICIPIO = 1 AND POLIGONO = 1 AND PARCELA = 20 AND RECINTO 
= 1) OR (PROVINCIA = 1 AND MUNICIPIO = 1 AND POLIGONO = 1 AND PARCELA = 86 AND 
RECINTO = 1) OR (PROVINCIA = 1 AND MUNICIPIO = 1 AND POLIGONO = 1 AND PARCELA = 
16 AND RECINTO = 1) etc. 

And what I get when I make it is something like:

ogc:Filter ogc:Or ogc:And 
PropertyIsEqualToPropertyNamePROVINCIA/PropertyNameLiteral1/Literal/PropertyIsEqualTo
PropertyIsEqualToPropertyNameMUNICIPIO/PropertyNameLiteral1/Literal/PropertyIsEqualTo
PropertyIsEqualToPropertyNamePOLIGONO/PropertyNameLiteral1/Literal/PropertyIsEqualTo
PropertyIsEqualToPropertyNamePARCELA/PropertyNameLiteral16/Literal/PropertyIsEqualTo
PropertyIsEqualToPropertyNameRECINTO/PropertyNameLiteral1/Literal/PropertyIsEqualTo
/ogc:And
ogc:And
PropertyIsEqualToPropertyNamePROVINCIA/PropertyNameLiteral1/Literal/PropertyIsEqualTo
PropertyIsEqualToPropertyNameMUNICIPIO/PropertyNameLiteral1/Literal/PropertyIsEqualTo
PropertyIsEqualToPropertyNamePOLIGONO/PropertyNameLiteral1/Literal/PropertyIsEqualTo
PropertyIsEqualToPropertyNamePARCELA/PropertyNameLiteral20/Literal/PropertyIsEqualTo
PropertyIsEqualToPropertyNameRECINTO/PropertyNameLiteral1/Literal/PropertyIsEqualTo
/ogc:And
ogc:And
PropertyIsEqualToPropertyNamePROVINCIA/PropertyNameLiteral1/Literal/PropertyIsEqualTo
PropertyIsEqualToPropertyNameMUNICIPIO/PropertyNameLiteral1/Literal/PropertyIsEqualTo
PropertyIsEqualToPropertyNamePOLIGONO/PropertyNameLiteral1/Literal/PropertyIsEqualTo
PropertyIsEqualToPropertyNamePARCELA/PropertyNameLiteral86/Literal/PropertyIsEqualTo
PropertyIsEqualToPropertyNameRECINTO/PropertyNameLiteral1/Literal/PropertyIsEqualTo
/ogc:And
/ogc:Or
/ogc:Filter

Is this correct???

Thanks again.


-Mensaje original-
De: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] En nombre de David Alda 
Fernandez de Lezea
Enviado el: jueves, 08 de abril de 2010 16:58
Para: mapserver-users@lists.osgeo.org
Asunto: [mapserver-users] Strange Behaviour with getFeature using POSTmethod 
and more than one typename


Hi list,

I'm having a strange behaviour when receiving data from getFeature request. I 
prepare a request that is intended to mark some parcels from two different 
layers (these layers are stored in Oracle Spatial). The request looks like:

?xml version=1.0 ?
wfs:GetFeature service=WFS version=1.1.0 outputFormat=text/xml; 
subtype=gml/3.1.1 xmlns:wfs=http://www.opengis.net/wfs; 
xmlns:ogc=http://www.opengis.net/ogc; 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
xsi:schemaLocation=http://www.opengis.net/wfs ../wfs/1.1.0/WFS.xsd 
wfs:Query typeName=RecintosSigpac ogc:Filter ogc:Or ogc:And 
PropertyIsEqualToPropertyNamePROVINCIA/PropertyNameLiteral1/Literal/PropertyIsEqualTo
PropertyIsEqualToPropertyNameMUNICIPIO/PropertyNameLiteral1/Literal/PropertyIsEqualTo

[mapserver-users] Strange Behaviour with getFeature using POST method and more than one typename

2010-04-08 Thread David Alda Fernandez de Lezea

Hi list,

I'm having a strange behaviour when receiving data from getFeature request. I 
prepare a request that is intended to mark some parcels from two different 
layers (these layers are stored in Oracle Spatial). The request looks like:

?xml version=1.0 ?
wfs:GetFeature service=WFS version=1.1.0 outputFormat=text/xml; 
subtype=gml/3.1.1 xmlns:wfs=http://www.opengis.net/wfs; 
xmlns:ogc=http://www.opengis.net/ogc; 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
xsi:schemaLocation=http://www.opengis.net/wfs ../wfs/1.1.0/WFS.xsd
wfs:Query typeName=RecintosSigpac
ogc:Filter
ogc:Or
ogc:And
PropertyIsEqualToPropertyNamePROVINCIA/PropertyNameLiteral1/Literal/PropertyIsEqualTo
PropertyIsEqualToPropertyNameMUNICIPIO/PropertyNameLiteral1/Literal/PropertyIsEqualTo
PropertyIsEqualToPropertyNamePOLIGONO/PropertyNameLiteral1/Literal/PropertyIsEqualTo
PropertyIsEqualToPropertyNamePARCELA/PropertyNameLiteral1/Literal/PropertyIsEqualTo
PropertyIsEqualToPropertyNameRECINTO/PropertyNameLiteral1/Literal/PropertyIsEqualTo
/ogc:And
ogc:And
PropertyIsEqualToPropertyNamePROVINCIA/PropertyNameLiteral1/Literal/PropertyIsEqualTo
PropertyIsEqualToPropertyNameMUNICIPIO/PropertyNameLiteral1/Literal/PropertyIsEqualTo
PropertyIsEqualToPropertyNamePOLIGONO/PropertyNameLiteral1/Literal/PropertyIsEqualTo
PropertyIsEqualToPropertyNamePARCELA/PropertyNameLiteral20/Literal/PropertyIsEqualTo
PropertyIsEqualToPropertyNameRECINTO/PropertyNameLiteral1/Literal/PropertyIsEqualTo
/ogc:And
ogc:And
PropertyIsEqualToPropertyNamePROVINCIA/PropertyNameLiteral1/Literal/PropertyIsEqualTo
PropertyIsEqualToPropertyNameMUNICIPIO/PropertyNameLiteral1/Literal/PropertyIsEqualTo
PropertyIsEqualToPropertyNamePOLIGONO/PropertyNameLiteral1/Literal/PropertyIsEqualTo
PropertyIsEqualToPropertyNamePARCELA/PropertyNameLiteral24/Literal/PropertyIsEqualTo
PropertyIsEqualToPropertyNameRECINTO/PropertyNameLiteral1/Literal/PropertyIsEqualTo
/ogc:And
/ogc:Or
/ogc:Filter
/wfs:Query
wfs:Query typeName=ParcelasSigpac
ogc:Filter
ogc:Or
ogc:And
PropertyIsEqualToPropertyNamePROVINCIA/PropertyNameLiteral1/Literal/PropertyIsEqualTo
PropertyIsEqualToPropertyNameMUNICIPIO/PropertyNameLiteral1/Literal/PropertyIsEqualTo
PropertyIsEqualToPropertyNamePOLIGONO/PropertyNameLiteral1/Literal/PropertyIsEqualTo
PropertyIsEqualToPropertyNamePARCELA/PropertyNameLiteral29/Literal/PropertyIsEqualTo
/ogc:And
ogc:And
PropertyIsEqualToPropertyNamePROVINCIA/PropertyNameLiteral1/Literal/PropertyIsEqualTo
PropertyIsEqualToPropertyNameMUNICIPIO/PropertyNameLiteral1/Literal/PropertyIsEqualTo
PropertyIsEqualToPropertyNamePOLIGONO/PropertyNameLiteral1/Literal/PropertyIsEqualTo
PropertyIsEqualToPropertyNamePARCELA/PropertyNameLiteral5/Literal/PropertyIsEqualTo
/ogc:And
/ogc:Or
/ogc:Filter
/wfs:Query
/wfs:GetFeature

All the features that I want to mark using these filters are unique rows in 
Oracle Spatial. Using my Ajax app I get the following response:

?xml version='1.0' encoding=ISO-8859-1 ?
wfs:FeatureCollection
   xmlns:ms=http://mapserver.gis.umn.edu/mapserver;
   xmlns:gml=http://www.opengis.net/gml;
   xmlns:wfs=http://www.opengis.net/wfs;
   xmlns:ogc=http://www.opengis.net/ogc;
   xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
   xsi:schemaLocation=http://mapserver.gis.umn.edu/mapserver 
http://192.168.1.65/cgi-bin/mapserv.exe?map=../htdocs/MFD/ejemplo_wfs.mapamp;SERVICE=WFSamp;VERSION=1.1.0amp;REQUEST=DescribeFeatureTypeamp;TYPENAME=RecintosSigpac,ParcelasSigpacamp;OUTPUTFORMAT=text/xml;
 subtype=gml/3.1.1  http://www.opengis.net/wfs 
http://schemas.opengis.net/wfs/1.1.0/wfs.xsd;
  gml:boundedBy
gml:Envelope srsName=EPSG:23030
gml:lowerCorner538881.736860 4744342.676060/gml:lowerCorner
gml:upperCorner539514.702532 4744971.618431/gml:upperCorner
/gml:Envelope
  /gml:boundedBy
gml:featureMember
  ms:RecintosSigpac gml:id=RecintosSigpac.752
gml:boundedBy
gml:Envelope srsName=EPSG:23030
gml:lowerCorner539098.554563 
4744632.941135/gml:lowerCorner
gml:upperCorner539191.352464 
4744726.952445/gml:upperCorner
/gml:Envelope
/gml:boundedBy
ms:msGeometry
  gml:Polygon srsName=EPSG:23030
gml:exterior
  gml:LinearRing
gml:posList srsDimension=2539146.378383 4744724.433931 
539145.235158 4744724.343655 539141.209291 4744724.134593 539098.862296 
4744721.948469 539098.790865 4744711.615815 539098.554563 4744677.257422 
539100.133554 4744665.742677 539101.989421 4744645.274892 539102.338824 
4744636.815604 539147.216698 4744634.836696 539183.793353 4744632.941135 
539191.352464 4744725.909256 539176.751878 4744726.952445 539160.884500 
4744725.549674 539146.378383 4744724.433931 /gml:posList
  /gml:LinearRing
/gml:exterior
  /gml:Polygon
/ms:msGeometry
  /ms:RecintosSigpac
/gml:featureMember
gml:featureMember
  ms:RecintosSigpac 

RV: [mapserver-users] Looking for advice for OGC Services Server hardware requirements

2010-03-10 Thread David Alda Fernandez de Lezea
Nobody suggests anything??

-Mensaje original-
De: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] En nombre de David Alda 
Fernandez de Lezea
Enviado el: martes, 09 de marzo de 2010 11:35
Para: mapserver-users@lists.osgeo.org
Asunto: [mapserver-users] Looking for advice for OGC Services Serverhardware 
requirements


Hello list,

In our company, we are planning to set up a OGC Services Server using MapServer 
(we are currently using version 5.2.1, and at the moment it's working fine) to 
serve amounts of geographical data. We are going to serve big raster files (45 
GB aprox each raster), so we need a big HDD (we know this). We are planning to 
have this raster files tiled with TileCache. We also are going to serve data 
via MapServer from another server in which we have an Oracle Spatial DataBase 
with very big tables and millions of rows, so we think that the communication 
between these 2 servers should be very fluid.

All this services will be consumed by our own employees (50 aprox) or other 
people using desktop GIS software like gvSIG, Kosmo or ArcGIS.

Besides, we are developing some web applications using OpenLayers, and this web 
apps will also consume those ogc services.

 So, our doubts have to do with the following subjects:
 - Processor
 - RAM Memory
 - HDD (we know that has to be large, i.e. 1TB - 2TB)
 - Number of network adapters (is advisable to have more than one?)
 - Which OS is best for MapServer, Linux or Windows 2003 (in terms of 
performance)
 - Other suggestions...

IMPORTANT: Take into account that this is going to be at PRODUCTION LEVEL.

Hope someone can help me. Thanks!!
 
Un saludo,
 
··

David Alda Fernández de Lezea
Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y Biodiversidad
 
IKT
Granja Modelo s/n · 01192 · Arkaute (Araba)

··
Tlfnos.: 945-00-32-95 Fax: 945-00.32.90
··
email: da...@ikt.esweb: www.ikt.es
··
___
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] Looking for advice for OGC Services Server hardware requirements

2010-03-10 Thread David Alda Fernandez de Lezea
Thanks Luigi, I'll have a look.

-Mensaje original-
De: Luigi Castro Cardeles [mailto:luigi.carde...@gmail.com] 
Enviado el: miércoles, 10 de marzo de 2010 14:43
Para: Fuchs Juan Carlos
CC: David Alda Fernandez de Lezea; mapserver-users@lists.osgeo.org
Asunto: Re: [mapserver-users] Looking for advice for OGC Services Server 
hardware requirements

Hi,

Maybe this can help you.
http://2009.foss4g.org/presentations/#presentation_109

[]'s
Luigi Castro Cardeles



2010/3/10 Fuchs Juan Carlos jf...@indec.mecon.gov.ar:
 Hi David
 Check out Building a GIS System Architecture Design Strategies for 
 Managers from Dave Peters - Esri Press. Just as a start point.
 Cheers
 JC



 -Mensaje original-
 De: David Alda Fernandez de Lezea [mailto:da...@ikt.es] Enviado el: 
 Miércoles, 10 de Marzo de 2010 08:21 a.m.
 Para: mapserver-users@lists.osgeo.org
 Asunto: RV: [mapserver-users] Looking for advice for OGC Services 
 Server hardware requirements


 Nobody suggests anything??

 -Mensaje original-
 De: mapserver-users-boun...@lists.osgeo.org
 [mailto:mapserver-users-boun...@lists.osgeo.org] En nombre de David 
 Alda Fernandez de Lezea Enviado el: martes, 09 de marzo de 2010 11:35
 Para: mapserver-users@lists.osgeo.org
 Asunto: [mapserver-users] Looking for advice for OGC Services 
 Serverhardware requirements


 Hello list,

 In our company, we are planning to set up a OGC Services Server using 
 MapServer (we are currently using version 5.2.1, and at the moment 
 it's working fine) to serve amounts of geographical data. We are going 
 to serve big raster files (45 GB aprox each raster), so we need a big 
 HDD (we know this). We are planning to have this raster files tiled 
 with TileCache. We also are going to serve data via MapServer from 
 another server in which we have an Oracle Spatial DataBase with very 
 big tables and millions of rows, so we think that the communication 
 between these 2 servers should be very fluid.

 All this services will be consumed by our own employees (50 aprox) or 
 other people using desktop GIS software like gvSIG, Kosmo or ArcGIS.

 Besides, we are developing some web applications using OpenLayers, and 
 this web apps will also consume those ogc services.

  So, our doubts have to do with the following subjects:
  - Processor
  - RAM Memory
  - HDD (we know that has to be large, i.e. 1TB - 2TB)
  - Number of network adapters (is advisable to have more than one?)
  - Which OS is best for MapServer, Linux or Windows 2003 (in terms of
 performance)
  - Other suggestions...

 IMPORTANT: Take into account that this is going to be at PRODUCTION LEVEL.

 Hope someone can help me. Thanks!!

 Un saludo,

 ··
 ··
 ··

 David Alda Fernández de Lezea
 Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y 
 Biodiversidad

 IKT
 Granja Modelo s/n · 01192 · Arkaute (Araba)

 ··
 ··
 ··
 Tlfnos.: 945-00-32-95                         Fax: 945-00.32.90 
 ··
 ··
 ··
 email: da...@ikt.es                                web: www.ikt.es 
 ··
 ··
 ··
 ___
 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 mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


RE: [mapserver-users] Looking for advice for OGC Services Serverhardware requirements

2010-03-10 Thread David Alda Fernandez de Lezea
Steve,

Thanks for your response. 

The thing is that the technology we have to use is MapServer + TileCache + OL, 
so there's no possible discussion about this, it's not my decision. We have now 
everything setted up in a test environment (it's an Intel Core 2 Duo E4600 at 
2.4 GHz PC with 2 GB of RAM, and it's used for some other tasks, apart from web 
mapping). I think that the performance now it's OK, but not for a production 
level, I just needed some guidelines or suggestions on hardware requirements 
for a server that will serve geographical data.

I'll have to investigate a bit more with the information taken from your 
responses.

Thanks again.

David.

-Mensaje original-
De: Steve Kelly [mailto:st...@sjk.net.au] 
Enviado el: miércoles, 10 de marzo de 2010 13:08
Para: David Alda Fernandez de Lezea
Asunto: RE: [mapserver-users] Looking for advice for OGC Services 
Serverhardware requirements

David, 

If you want we can have a skype chat and I can help you with some of the 
settings and setting things up - we render billions of images here a year using 
mapserver.

I am also keen to talk to you about our tilecache technology and map engine (to 
replace openlayers and the tilecahce you are  using) 

If you want to have a talk over Skype - add me Stephen.kelly2 (I am based in 
Australia GMT+10) 

But am around for the next hour or so on and off 

I look forward to a chat 

Thanks
Steve



-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of David Alda 
Fernandez de Lezea
Sent: Wednesday, 10 March 2010 9:30 PM
To: mapserver-users@lists.osgeo.org
Subject: RV: [mapserver-users] Looking for advice for OGC Services 
Serverhardware requirements

Nobody suggests anything??

-Mensaje original-
De: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] En nombre de David Alda 
Fernandez de Lezea Enviado el: martes, 09 de marzo de 2010 11:35
Para: mapserver-users@lists.osgeo.org
Asunto: [mapserver-users] Looking for advice for OGC Services Serverhardware 
requirements


Hello list,

In our company, we are planning to set up a OGC Services Server using MapServer 
(we are currently using version 5.2.1, and at the moment it's working fine) to 
serve amounts of geographical data. We are going to serve big raster files (45 
GB aprox each raster), so we need a big HDD (we know this). We are planning to 
have this raster files tiled with TileCache. We also are going to serve data 
via MapServer from another server in which we have an Oracle Spatial DataBase 
with very big tables and millions of rows, so we think that the communication 
between these 2 servers should be very fluid.

All this services will be consumed by our own employees (50 aprox) or other 
people using desktop GIS software like gvSIG, Kosmo or ArcGIS.

Besides, we are developing some web applications using OpenLayers, and this web 
apps will also consume those ogc services.

 So, our doubts have to do with the following subjects:
 - Processor
 - RAM Memory
 - HDD (we know that has to be large, i.e. 1TB - 2TB)
 - Number of network adapters (is advisable to have more than one?)
 - Which OS is best for MapServer, Linux or Windows 2003 (in terms of 
performance)
 - Other suggestions...

IMPORTANT: Take into account that this is going to be at PRODUCTION LEVEL.

Hope someone can help me. Thanks!!
 
Un saludo,
 
··

David Alda Fernández de Lezea
Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y Biodiversidad
 
IKT
Granja Modelo s/n · 01192 · Arkaute (Araba)

··
Tlfnos.: 945-00-32-95 Fax: 945-00.32.90
··
email: da...@ikt.esweb: www.ikt.es
··
___
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


RE: RV: [mapserver-users] Looking for advice for OGC Services Server hardware requirements

2010-03-10 Thread David Alda Fernandez de Lezea
Hi Frank,

I know it's difficult to answer those questions, I just needed some guidelines, 
or some indications of where search. I appreciate the answers and help of these 
kind people. Now I have some ideas.

Thanks.

David.

-Mensaje original-
De: Frank Warmerdam [mailto:warmer...@pobox.com] 
Enviado el: miércoles, 10 de marzo de 2010 16:21
Para: David Alda Fernandez de Lezea
Asunto: Re: RV: [mapserver-users] Looking for advice for OGC Services Server 
hardware requirements

David Alda Fernandez de Lezea wrote:
 Nobody suggests anything??

David,

Hardware requirement requests traditionally do not result in specific answers.  
Really you need to benchmark your workload to have a good sense.  There are 
just too many variables.

I think folks have just given up trying to respond to them because they are 
essentially unanswerable.

Best regards,
-- 
---+
---+--
I set the clouds in motion - turn up   | Frank Warmerdam, warmer...@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush| Geospatial Programmer for Rent

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


[mapserver-users] Looking for advice for OGC Services Server hardware requirements

2010-03-09 Thread David Alda Fernandez de Lezea

Hello list,

In our company, we are planning to set up a OGC Services Server using MapServer 
(we are currently using version 5.2.1, and at the moment it's working fine) to 
serve amounts of geographical data. We are going to serve big raster files (45 
GB aprox each raster), so we need a big HDD (we know this). We are planning to 
have this raster files tiled with TileCache. We also are going to serve data 
via MapServer from another server in which we have an Oracle Spatial DataBase 
with very big tables and millions of rows, so we think that the communication 
between these 2 servers should be very fluid.

All this services will be consumed by our own employees (50 aprox) or other 
people using desktop GIS software like gvSIG, Kosmo or ArcGIS.

Besides, we are developing some web applications using OpenLayers, and this web 
apps will also consume those ogc services.

 So, our doubts have to do with the following subjects:
 - Processor
 - RAM Memory
 - HDD (we know that has to be large, i.e. 1TB - 2TB)
 - Number of network adapters (is advisable to have more than one?)
 - Which OS is best for MapServer, Linux or Windows 2003 (in terms of 
performance)
 - Other suggestions...

IMPORTANT: Take into account that this is going to be at PRODUCTION LEVEL.

Hope someone can help me. Thanks!!
 
Un saludo,
 
··

David Alda Fernández de Lezea
Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y Biodiversidad
 
IKT
Granja Modelo s/n · 01192 · Arkaute (Araba)

··
Tlfnos.: 945-00-32-95 Fax: 945-00.32.90
··
email: da...@ikt.esweb: www.ikt.es
··
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Access to a remote raster file in wms-mapfile

2010-02-03 Thread David Alda Fernandez de Lezea

Hi list,

I'm trying to access a remote raster file stored in NAS device (Iomega 
StorCenter Pro NAS 150D) which ip address is (192.168.1.4).

In my mapfile I'm putting the url like this:

DATA \\192.168.1.4\ortofotos\EUSKADI_2009_ED50.ecw

But when I try to load the wms layer, I don't get anything and mapserver throws 
the following error:

...
[Wed Feb 03 09:11:13 2010].67000 msDrawRaster(): Unable to access file. 
\\192.168.1.4\ortofotos\EUSKADI_2009_ED50.ecw using full path 
\\192.168.1.4\ortofotos\EUSKADI_2009_ED50.ecw
[Wed Feb 03 09:11:13 2010].67000 Unable to open file 
\\192.168.1.4\ortofotos\EUSKADI_2009_ED50.ecw for layer orto0 ... ignoring this 
missing data.
[Wed Feb 03 09:11:13 2010].67000 msDrawMap(): Layer 1 (orto0), 0.000s
...

The thing, is that if I type this url in my web browser, I get the file 
downloading. What I'm doing wrong? Any ideas?

Thanks in advance.
 
 
Un saludo,
 
··

David Alda Fernández de Lezea
Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y Biodiversidad
 
IKT
Granja Modelo s/n · 01192 · Arkaute (Araba)

··
Tlfnos.: 945-00-32-95 Fax: 945-00.32.90
··
email: da...@ikt.esweb: www.ikt.es
··
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


RE: [mapserver-users] Access to a remote raster file in wms-mapfile

2010-02-03 Thread David Alda Fernandez de Lezea
,
 
··

David Alda Fernández de Lezea
Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y Biodiversidad
 
IKT
Granja Modelo s/n · 01192 · Arkaute (Araba)

··
Tlfnos.: 945-00-32-95 Fax: 945-00.32.90
··
email: da...@ikt.esweb: www.ikt.es
··

-Mensaje original-
De: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] En nombre de Rahkonen Jukka
Enviado el: miércoles, 03 de febrero de 2010 23:23
Para: mapserver-users@lists.osgeo.org
Asunto: Re: [mapserver-users] Access to a remote raster file in wms-mapfile

Hi,

I guess that you will also need to configure Apache server so that it gives an 
access to the remote disk.  I have not done it with IP-address but by assigning 
a drive letter for it first.  This has a side effect that Apache cannot be 
installed as Windows service in a simple way.

-Jukka Rahkonen-


Daniel Morissette wrote:

I'd suggest you start by making sure GDAL can open the file:

1- Does gdalinfo --formats list the ECW format?

2- Check that you are able to open the file with
 gdalinfo \\192.168.1.4\ortofotos\EUSKADI_2009_ED50.ecw

Daniel

David Alda Fernandez de Lezea wrote:
 Hi list,
 
 I'm trying to access a remote raster file stored in NAS device (Iomega 
 StorCenter Pro NAS 150D) which ip address is (192.168.1.4).
 
 In my mapfile I'm putting the url like this:
 
 DATA \\192.168.1.4\ortofotos\EUSKADI_2009_ED50.ecw
 
 But when I try to load the wms layer, I don't get anything and mapserver 
 throws the following error:
 
 ...
 [Wed Feb 03 09:11:13 2010].67000 msDrawRaster(): Unable to access 
 file. \\192.168.1.4\ortofotos\EUSKADI_2009_ED50.ecw using full path 
 \\192.168.1.4\ortofotos\EUSKADI_2009_ED50.ecw
 [Wed Feb 03 09:11:13 2010].67000 Unable to open file 
 \\192.168.1.4\ortofotos\EUSKADI_2009_ED50.ecw for layer orto0 ... ignoring 
 this missing data.
 [Wed Feb 03 09:11:13 2010].67000 msDrawMap(): Layer 1 (orto0), 0.000s 
 ...
 
 The thing, is that if I type this url in my web browser, I get the file 
 downloading. What I'm doing wrong? Any ideas?
 
 Thanks in advance.
  
  
 Un saludo,
  
 ··
 
 
 David Alda Fernández de Lezea
 Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y 
 Biodiversidad
  
 IKT
 Granja Modelo s/n · 01192 · Arkaute (Araba)
 
 ··
 Tlfnos.: 945-00-32-95 Fax: 945-00.32.90
 ··
 email: da...@ikt.esweb: www.ikt.es
 ··
  ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users


--
Daniel Morissette
http://www.mapgears.com/
___
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


RE: [mapserver-users] Usage of Vendor Option [SOLVED]

2009-11-26 Thread David Alda Fernandez de Lezea
Hello, 

sorry for my late response, I've been working in something else and didn't have 
time to check this out. I have tested what you told me. Well, half tested. I 
didn't where to put 'Partials=true' (in sld file or in map file at layer 
level??), so I didn't put it anywhere, and also removed from my SLD the tag 
'VendorOption name=grouptrue/VendorOption', just to see what could 
happened, and it worked perfectly. Just to understand a little bit, can you 
make a short explanation of why do I have to do this to make it work. Also, 
where do I have to put 'Partials=true' if it's necessary?? Take into account 
that I work with external SLD files and not with layer inner style.

Once again, thanks.
 


 
 
Un saludo,
 
··

David Alda Fernández de Lezea
Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y Biodiversidad
 
IKT
Granja Modelo s/n · 01192 · Arkaute (Araba)

··
Tlfnos.: 945-00-32-95 Fax: 945-00.32.90
··
email: da...@ikt.esweb: www.ikt.es
··

-Mensaje original-
De: Stephen Woodbridge [mailto:wood...@swoodbridge.com] 
Enviado el: lunes, 23 de noviembre de 2009 16:47
Para: David Alda Fernandez de Lezea
CC: Yewondwossen Assefa; mapserver-users@lists.osgeo.org
Asunto: Re: [mapserver-users] Usage of Vendor Option

David,

Try using
   labelcache_map_edge_buffer -10  at map level WEB METADATA
   PROCESSING LABEL_NO_CLIP=ON at layer level
   Partials=true with labels

-Steve W.


David Alda Fernandez de Lezea wrote:
  
 Hello,
 
 Thanks for your response. Just to clarify I've just added the comments bellow:
 
From a quick test I did locally using latest MapServer, I don;t see any 
particular issues with your sld. I was able to generate the labels as 
expected. 
 
 I'm also able to generate the labels, but the problem is that some of them 
 are cut and thay are also repeated over the polygon. See attached file.
 
 Note that the anchor position is only used when labeling point features.
 
 I thought it could be possible to add a label in the centroid of the polygon, 
 and just one label.
 
 Are each polygon formed with one shape or could one polygon be formed by 
 several adjacent shapes?
 
 I don't understand what you mean here. I'm using Oracle Spatial as DataSource 
 and my layer is a polygon table.
 
 You can also check the log files and see what your layer looks like after 
 the sld is applied: add something like this in your map file for example:
 CONFIG  MS_ERRORFILE f:/logs/my_log_file.log
 DEBUG 5
 
 Here is what I get from the log file
 
 [Mon Nov 23 08:54:37 2009].387000 msApplySLD(): Map file after SLD was 
 applied C:/ms4w/Apache/htdocs/MFD/tmp/4b0a3fbd_1058_1._sld.map[Mon Nov 
 23 08:54:37 2009].512000 msDrawMap(): Layer 5 (municipios), 0.093s 
 [Mon Nov 23 08:54:37 2009].512000 msDrawMap(): Drawing Label Cache, 
 0.000s [Mon Nov 23 08:54:37 2009].512000 msDrawMap() total time: 
 0.093s [Mon Nov 23 08:54:37 2009].528000 msSaveImage() total time: 0.016s 
 [Mon Nov 23 08:54:37 2009].528000 mapserv request processing time (msLoadMap 
 not incl.): 0.172s [Mon Nov 23 08:54:37 2009].528000 msFreeMap(): freeing map 
 at 015968D8.
 
 An then I go to the file referenced in the log and I see a mapfile with the 
 following lines, but I don't know what exaclty do I have to find...
 
 
 MAP
   EXTENT 46 4708766.29018245 61 4821233.70981755
   FONTSET misc/fonts/fonts.txt
   IMAGECOLOR 255 255 255
   IMAGETYPE png24
   SYMBOLSET misc/symbols/symbols.sym
   SHAPEPATH shapes/
   SIZE 1152 864
   STATUS ON
   UNITS METERS
   CONFIG MS_ERRORFILE C:/ms4w/Apache/htdocs/MFD/tmp/ms_wms.log
   NAME WMSSERVER
 
   DEBUG 5
   OUTPUTFORMAT
 NAME png24
 MIMETYPE image/png; mode=24bit
 DRIVER GD/PNG
 EXTENSION png
 IMAGEMODE RGB
 TRANSPARENT FALSE
   END
 
   OUTPUTFORMAT
 NAME png
 MIMETYPE image/png
 DRIVER AGG/PNG
 EXTENSION png
 IMAGEMODE RGBA
 TRANSPARENT TRUE
 FORMATOPTION TRANSPARENT=ON
 FORMATOPTION INTERLACE=OFF
   END
 
   SYMBOL
 NAME sld_line_symbol
 TYPE ELLIPSE
 FILLED TRUE
 POINTS
   1 1
 END
   END
 
   PROJECTION
 init=epsg:23030
   END
   LEGEND
 IMAGECOLOR 255 255 255
 KEYSIZE 20 10
 KEYSPACING 5 5
 LABEL
   SIZE MEDIUM
   TYPE BITMAP
   BUFFER 0
   COLOR 0 0 0
   FORCE FALSE
   MINDISTANCE -1
   MINFEATURESIZE -1
   OFFSET 0 0
   PARTIALS TRUE
 END
 POSITION LL
 STATUS OFF
   END
 
   QUERYMAP
 COLOR 255 255 0
 SIZE -1 -1
 STATUS OFF
 STYLE HILITE
   END
 
   SCALEBAR
 ALIGN CENTER
 COLOR 0 0 0
 IMAGECOLOR 255 255 255

RE: [mapserver-users] Usage of Vendor Option

2009-11-20 Thread David Alda Fernandez de Lezea
Hi Barend, 

Sorry, I didn't know there was a problem with my emails. I've removed the 
styling-format of my email.

I'll repeat my question in case, someone didn't read the email because of that 
problem you mentioned.

I've got a SLD that I apply to a polygon layer and I want to add a label to 
identify those polygons. I manage to add the the labels but my problem is that 
the labels are repeated a lot of times into the polygons and furthermore they 
don't appear on the centroif of my polygon. Here is my TextSymbolizer tag:
 
TextSymbolizer
sld:MinScaleDenominator3000/sld:MinScaleDenominator
sld:MaxScaleDenominator5000/sld:MaxScaleDenominator
Label
 ogc:PropertyNameMUNICIPIO/ogc:PropertyName 
/Label 
Font 
 CssParameter name=font-familyArial/CssParameter 
 CssParameter name=font-weightbold/CssParameter 
 CssParameter name=font-size8/CssParameter 
/Font 
!-- this centers the label on the polygon's centroid--
LabelPlacement
  PointPlacement 
  AnchorPoint
AnchorPointX0.5/AnchorPointX
AnchorPointY0.5/AnchorPointY
  /AnchorPoint
  /PointPlacement 
/LabelPlacement
 !--  make the label easy to read--
Halo
   Radius
   ogc:Literal2/ogc:Literal
   /Radius
   Fill
  CssParameter name=fill#FF/CssParameter
  CssParameter name=fill-opacity0.85/CssParameter
   /Fill
/Halo
Fill
 CssParameter name=fill#00/CssParameter  
/Fill
!-- This labels each name only once, not every shape with that name --
VendorOption name=grouptrue/VendorOption
  /TextSymbolizer

Hope that somenone can help me.

Thanks.





Hi David,

On a totally different subject: Are you aware that on some email readers (mine 
certainly), all your emails are viryually unreadable becuase your logo keeps 
getting repeated in the backgorund (see atached screenshot)?


--
Barend Köbben
International Institute for Geo-Information Sciences and Earth Observation 
(ITC) PO Box 6, 7500AA Enschede, The Netherlands
+31 (0)53 4874253




International Institute for Geo-Information Science and Earth Observation (ITC)
Chamber of Commerce: 410 27 560

E-mail disclaimer
The information in this e-mail, including any attachments, is intended for the 
addressee only. If you are not the intended recipient, you are hereby notified 
that any disclosure, copying, distribution or action in relation to the content 
of this information is strictly prohibited. If you have received this e-mail by 
mistake, please delete the message and any attachment and inform the sender by 
return e-mail. ITC accepts no liability for any error or omission in the 
message content or for damage of any kind that may arise as a result of e-mail 
transmission.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


RE: [mapserver-users] Problems with SLD

2009-11-19 Thread David Alda Fernandez de Lezea
/AnchorPointY

/AnchorPoint
  
/PointPlacement 

/LabelPlacement

 !--  make 
the label easy to read--
Halo  


  Radius

ogc:Literal2/ogc:Literal

  /Radius

  Fill

CssParameter name=fill#FF/CssParameter

CssParameter name=fill-opacity0.85/CssParameter   


  /Fill
/Halo
Fill

CssParameter name=fill#00/CssParameter
/Fill
!-- 
This labels each name only once, not every shape with that name --

VendorOption name=grouptrue/VendorOption

/TextSymbolizer
/Rule
/FeatureTypeStyle
/UserStyle
/NamedLayer
/StyledLayerDescriptor



 
 
Un saludo,
 
··

David Alda Fernández de Lezea
Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y Biodiversidad
 
IKT
Granja Modelo s/n · 01192 · Arkaute (Araba)

··
Tlfnos.: 945-00-32-95 Fax: 945-00.32.90
··
email: da...@ikt.esweb: www.ikt.es
··

-Mensaje original-
De: Yewondwossen Assefa [mailto:yass...@dmsolutions.ca] 
Enviado el: miércoles, 18 de noviembre de 2009 17:22
Para: David Alda Fernandez de Lezea
CC: mapserver-users@lists.osgeo.org
Asunto: Re: [mapserver-users] Problems with SLD


David Alda Fernandez de Lezea wrote:
 Hello,
  
 I'm quite new in MapServer, and I'm trying to apply some SLD's to a 
 polygon layer served via WMS with MapServer, and I want these ploygons 
 to have some transparency, and I specify the field fill-opacity to 0.5 
 but in the returned image the polygon is filled with opacity = 1. What 
 could be happening??
  
 Thanks.
  

  

David,

 The fill-opacity parameter should be supported as MapServer version 5.2. Note 
also that style level opacity is only available through the AGG format.  If 
both these cases are met and you still have an issue, you can send me/point me 
to your sld and I can give it a quick look.

regards,

--

Assefa Yewondwossen   
Software Analyst   

Email: ass...@dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


[mapserver-users] Usage of Vendor Option

2009-11-19 Thread David Alda Fernandez de Lezea
Hi,
 
I've got a SLD that I apply to a polygon layer and I want to add a label to 
identify those polygons. I manage to add the the labels but my problem is that 
the labels are repeated a lot of times into the polygons and furthermore they 
don't appear on the centroif of my polygon. Here is my TextSymbolizer tag:
 
TextSymbolizer
sld:MinScaleDenominator3000/sld:MinScaleDenominator
sld:MaxScaleDenominator5000/sld:MaxScaleDenominator
Label
 ogc:PropertyNameMUNICIPIO/ogc:PropertyName 
/Label 
Font 
 CssParameter name=font-familyArial/CssParameter 
 CssParameter name=font-weightbold/CssParameter 
 CssParameter name=font-size8/CssParameter 
/Font 
!-- this centers the label on the polygon's centroid--
LabelPlacement
  PointPlacement 
  AnchorPoint
AnchorPointX0.5/AnchorPointX
AnchorPointY0.5/AnchorPointY
  /AnchorPoint
  /PointPlacement 
/LabelPlacement
 !--  make the label easy to read--
Halo
   Radius
   ogc:Literal2/ogc:Literal
   /Radius
   Fill
  CssParameter name=fill#FF/CssParameter
  CssParameter name=fill-opacity0.85/CssParameter
   /Fill
/Halo
Fill
 CssParameter name=fill#00/CssParameter  
/Fill
!-- This labels each name only once, not every shape with that name --
VendorOption name=grouptrue/VendorOption
  /TextSymbolizer
 

 

 

Un saludo,

 

··


David Alda Fernández de Lezea

Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y Biodiversidad

 

IKT

Granja Modelo s/n · 01192 · Arkaute (Araba)


··
Tlfnos.: 945-00-32-95 Fax: 945-00.32.90
··
email: da...@ikt.esweb: www.ikt.es 
http://www.ikt.es/ 
··

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


[mapserver-users] Problems with SLD

2009-11-18 Thread David Alda Fernandez de Lezea
Hello, 
 
I'm quite new in MapServer, and I'm trying to apply some SLD's to a polygon 
layer served via WMS with MapServer, and I want these ploygons to have some 
transparency, and I specify the field fill-opacity to 0.5 but in the returned 
image the polygon is filled with opacity = 1. What could be happening??
 
Thanks.
 

 

 

Un saludo,

 

··


David Alda Fernández de Lezea

Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y Biodiversidad

 

IKT

Granja Modelo s/n · 01192 · Arkaute (Araba)


··
Tlfnos.: 945-00-32-95 Fax: 945-00.32.90
··
email: da...@ikt.esweb: www.ikt.es 
http://www.ikt.es/ 
··

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