Re: [mapserver-users] Mapscript and wms client

2011-09-05 Thread Chris Jackson
Hi Brent and Armin

The GetCapapabilies bit threw me!  Well the one I am trying to load is GEBCO
which I think is up.  Having said that I have just changed the wms_name and
reloaded the map and it works (maybe it just needed some sleep)..!

Out of interest how do you specify a given layer from the WMS in the mapfile
code and is the wms_name just a friendly name you use or specific to the WMS
too?

Separately Google maps layers, mapfiles and GDAL, from what I read loading
tiles this way this breaks Google's T&C because it bypasses their APIs,
anyone have a view?

My GEBCO code is:

LAYER # GEBCO WMS map
NAME 'gebco'
TYPE RASTER
OFFSITE  0 0 0
STATUS   On
CONNECTIONTYPE WMS
CONNECTION "
http://www.gebco.net/data_and_products/gebco_web_services/web_map_service/mapserv
?"

METADATA
  "wms_srs" "EPSG:4326"
  "wms_name" "gebco_08_grid"
  "wms_server_version" "1.1.1"
  "wms_format" "image/jpeg"
END

PROJECTION
  "init=epsg:4326"
END
  END


Cheers
Chris

On 5 September 2011 23:06, Brent Fraser  wrote:

>  Chris,
>
> I don't think NASA's JPL is serving data anymore (although it does return
> a  GetCapapabilies XML).
>
> Best Regards,
> Brent Fraser
>
>
> On 9/5/2011 3:53 PM, Chris Jackson wrote:
>
> Hi
>
>  I am trying to use a remote WMS service in my mapfile and am not having
> any luck.  I resorted to the MapServer tutorial example and still had no
> luck:
>
>LAYER # MODIS WMS map from JPL
> NAME modis_jpl
> TYPE RASTER
> OFFSITE  0 0 0
> STATUS   On
> CONNECTIONTYPE WMS
> CONNECTION "http://wms.jpl.nasa.gov/wms.cgi?";
>
>  METADATA
>   "wms_srs" "EPSG:4326"
>   "wms_name" "modis"
>   "wms_server_version" "1.1.1"
>"wms_format" "image/jpeg"
> END
>
>  PROJECTION
>   "init=epsg:4326"
> END
>   END # Modis WMS image ends here
>
>  Mapscript has wms client enabled so am I missing another setting required
> in the mapfile?
>
>  Thanks
> Chris
>
>
> ___
> mapserver-users mailing 
> listmapserver-users@lists.osgeo.orghttp://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] Re: WMS/WFS Mapserver Projection Error

2011-09-05 Thread Rahkonen Jukka
Hi,

Have a try with "wfs_getcapabilities_version" metadata that is mentioned in 
http://mapserver.org/ogc/wfs_server.html

-Jukka Rahkonen-



Lähettäjä: Lucho [mailto:lucho1...@gmail.com]
Lähetetty: 6. syyskuuta 2011 1:05
Vastaanottaja: Rahkonen Jukka
Kopio: mapserver-users@lists.osgeo.org
Aihe: Re: WMS/WFS Mapserver Projection Error

Thanks, list...

As Jukka said, the problem was in the way of how the WFS 1.1.0 standard works 
with the BBOX Envelope.

I've changed the order of the variables in which the coordinate values were 
captured on my web client, using the order given by the GetFeature request on 
WFS 1.0.0, and that's it!!! It works now.

Unfortunately, i do not know if there is any form of specify the version of WFS 
service in the metadata of my mapfile.

Best wishes,

On 5 September 2011 05:37, Rahkonen Jukka 
mailto:jukka.rahko...@mmmtike.fi>> wrote:
Hi,

Your failing client is most probably sending WFS 1.1.0 version GetFeature 
request and therefore Mapserver is sending the coordinates in 
Latitude-Longitude order.  This is how the WFS 1.1.0 says it should be. 
According to the WFS 1.1.0 standard your client is doing it wrong. Lots of 
people have said that the WFS 1.1.0 standard is stupid.
If your client supports WFS 1.0.0 use that and the map will look good.  Have a 
try with your browser and you will see what I mean

http://your_server/cgi-bin/mapserv?service=WFS&version=1.0.0&request=GetFeature&typeName=your_typename&maxFeatures=1&map=your_mapfile
http://your_server/cgi-bin/mapserv?service=WFS&version=1.1.0&request=GetFeature&typeName=your_typename&maxFeatures=1&map=your_mapfile

-Jukka Rahkonen-

Lucho  wrote:


Hi List,

I have a problem with some data when I'm publishing a WMS and then, publish the 
same data in a WFS service. Everithing is ok speaking about attending requests, 
but when I get the data with some clients, it seems that WFS has a total 
different projection.

The image attached explain better the situation.

In Quantum GIS the two services working well, but in other clients I have this 
problem. The data are in EPSG:4326

Any ideas?

Best regards,

--
LUIS FERNANDO ORTIZ REYES
INGENIERO DE SISTEMAS
UNIVERSIDAD DISTRITAL



--
LUIS FERNANDO ORTIZ REYES
INGENIERO DE SISTEMAS
UNIVERSIDAD DISTRITAL
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Coloring vectordata by features/infos

2011-09-05 Thread Robert Sanson
Hi Michael
 
Take a look at CLASS and EXPRESSION: http://mapserver.org/mapfile/class.html 
 
Here is an example from one of my map files:
 
LAYER
  NAME rivers
  GROUP "Topos"
  TYPE LINE
  STATUS ON
  DATA ../data/aus/rivers
  PROJECTION
   "init=epsg:4283"
  END
  MAXSCALE 1000
  MINSCALE 75000
  CLASSITEM "PERENNIAL"
  CLASS
EXPRESSION /1/
NAME "Permanent"
STYLE
  WIDTH 2
  COLOR 115 178 255
END
  END
  CLASS
EXPRESSION /2/
NAME "Seasonal"
STYLE
  WIDTH 1
  COLOR 115 178 255
END
  END #CLASS
END
 
Regards,
 
Robert

>>> "Michael G."  6/09/2011 11:10 a.m. >>>
Hmm, any hints for what I should search for?


Am 04.09.2011 19:35, schrieb Michael G.:
> Hello,
> 
> I am rendering vectordata from a PostGIS database which works like a charm.
> My layer definition looks like this:
> LAYER
> NAME "vector"
> METADATA
> "wms_include_items" "all"
> "wms_title" "dortmund_basic"
> END
> TEMPLATE gfi.html
> TYPE POLYGON
> ## Should be inherited from MAP level, but is good practice to have
> here, too: ##(or not? <.<)
> #PROJECTION
> #   "init=epsg:900913"
> #END
> DUMP true
> 
> CONNECTIONTYPE postgis
> CONNECTION "host=x dbname=x user=x password=x port=5432"
> DATA "the_geom FROM x"
> 
> CLASS
> STYLE
> COLOR 200 50 50
> OUTLINECOLOR 60 60 60
> #SYMBOL 0
> ANTIALIAS true
> OPACITY 80  # in percent
> END
> END
> END
> 
> Right now, I have not fully grasped how features/information is saved along
> with the vector data in the PostGIS database, but I am also not maintaining
> it. Supposingly we will have a float-value saved along with every vector.
> Can someone explain or give me hints, how I could map such a value which is
> saved along into a color? Like a brighter shade of red the higher the value 
> is?
> 
> Sincerely
> Michael Gajda
> ___
> 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


This email and any attachments are confidential and intended solely for the 
addressee(s). If you are not the intended recipient, please notify us 
immediately and then delete this email from your system.

This message has been scanned for Malware and Viruses by Websense Hosted 
Security.
www.websense.com
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Coloring vectordata by features/infos

2011-09-05 Thread Michael G.
Hmm, any hints for what I should search for?


Am 04.09.2011 19:35, schrieb Michael G.:
> Hello,
> 
> I am rendering vectordata from a PostGIS database which works like a charm.
> My layer definition looks like this:
> LAYER
> NAME "vector"
> METADATA
> "wms_include_items" "all"
> "wms_title" "dortmund_basic"
> END
> TEMPLATE gfi.html
> TYPE POLYGON
> ## Should be inherited from MAP level, but is good practice to have
> here, too: ##(or not? <.<)
> #PROJECTION
> #   "init=epsg:900913"
> #END
> DUMP true
> 
> CONNECTIONTYPE postgis
> CONNECTION "host=x dbname=x user=x password=x port=5432"
> DATA "the_geom FROM x"
> 
> CLASS
> STYLE
> COLOR 200 50 50
> OUTLINECOLOR 60 60 60
> #SYMBOL 0
> ANTIALIAS true
> OPACITY 80  # in percent
> END
> END
> END
> 
> Right now, I have not fully grasped how features/information is saved along
> with the vector data in the PostGIS database, but I am also not maintaining
> it. Supposingly we will have a float-value saved along with every vector.
> Can someone explain or give me hints, how I could map such a value which is
> saved along into a color? Like a brighter shade of red the higher the value 
> is?
> 
> Sincerely
> Michael Gajda
> ___
> 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] Mapscript and wms client

2011-09-05 Thread Armin Burger

Chris

Is it just this specific WMS or any other as well? I think the NASA JPL 
is very often not working or responding (it currently returns HTTP error 
403 for getCapalities). It's even more like I cannot remember anymore 
when it was working... Maybe the URL has just changed...


Armin

On 05/09/2011 23:53, Chris Jackson wrote:

Hi

I am trying to use a remote WMS service in my mapfile and am not having
any luck.  I resorted to the MapServer tutorial example and still had no
luck:

   LAYER # MODIS WMS map from JPL
 NAME modis_jpl
 TYPE RASTER
 OFFSITE  0 0 0
 STATUS   On
 CONNECTIONTYPE WMS
 CONNECTION "http://wms.jpl.nasa.gov/wms.cgi?";

 METADATA
"wms_srs" "EPSG:4326"
"wms_name" "modis"
"wms_server_version" "1.1.1"
"wms_format" "image/jpeg"
 END

 PROJECTION
"init=epsg:4326"
 END
   END # Modis WMS image ends here

Mapscript has wms client enabled so am I missing another setting
required in the mapfile?

Thanks
Chris



___
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] Mapscript and wms client

2011-09-05 Thread Brent Fraser

Chris,

I don't think NASA's JPL is serving data anymore (although it does 
return a  GetCapapabilies XML).


Best Regards,
Brent Fraser


On 9/5/2011 3:53 PM, Chris Jackson wrote:

Hi

I am trying to use a remote WMS service in my mapfile and am not 
having any luck.  I resorted to the MapServer tutorial example and 
still had no luck:


  LAYER # MODIS WMS map from JPL
NAME modis_jpl
TYPE RASTER
OFFSITE  0 0 0
STATUS   On
CONNECTIONTYPE WMS
CONNECTION "http://wms.jpl.nasa.gov/wms.cgi?";

METADATA
  "wms_srs" "EPSG:4326"
  "wms_name" "modis"
  "wms_server_version" "1.1.1"
  "wms_format" "image/jpeg"
END

PROJECTION
  "init=epsg:4326"
END
  END # Modis WMS image ends here

Mapscript has wms client enabled so am I missing another setting 
required in the mapfile?


Thanks
Chris


___
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] Re: WMS/WFS Mapserver Projection Error

2011-09-05 Thread Lucho
Thanks, list...

As Jukka said, the problem was in the way of how the WFS 1.1.0 standard
works with the BBOX Envelope.

I've changed the order of the variables in which the coordinate values were
captured on my web client, using the order given by the GetFeature request
on WFS 1.0.0, and that's it!!! It works now.

Unfortunately, i do not know if there is any form of specify the version of
WFS service in the metadata of my mapfile.

Best wishes,

On 5 September 2011 05:37, Rahkonen Jukka  wrote:

> **
> Hi,
>
> Your failing client is most probably sending WFS 1.1.0 version GetFeature
> request and therefore Mapserver is sending the coordinates in
> Latitude-Longitude order.  This is how the WFS 1.1.0 says it should
> be. According to the WFS 1.1.0 standard your client is doing it wrong. Lots
> of people have said that the WFS 1.1.0 standard is stupid.
> If your client supports WFS 1.0.0 use that and the map will look good.
> Have a try with your browser and you will see what I mean
>
>
> http://your_server/cgi-bin/mapserv?service=WFS&version=1.0.0&request=GetFeature&typeName=your_typename&maxFeatures=1&map=your_mapfile
>
> http://your_server/cgi-bin/mapserv?service=WFS&version=1.1.0&request=GetFeature&typeName=your_typename&maxFeatures=1&map=your_mapfile
>
> -Jukka Rahkonen-
>
> Lucho  wrote:
>
>
>
>  Hi List,
>
> I have a problem with some data when I'm publishing a WMS and then, publish
> the same data in a WFS service. Everithing is ok speaking about attending
> requests, but when I get the data with some clients, it seems that WFS has a
> total different projection.
>
> The image attached explain better the situation.
>
> In Quantum GIS the two services working well, but in other clients I have
> this problem. The data are in EPSG:4326
>
> Any ideas?
>
> Best regards,
>
> --
> LUIS FERNANDO ORTIZ REYES
> INGENIERO DE SISTEMAS
> UNIVERSIDAD DISTRITAL
>
>


-- 
LUIS FERNANDO ORTIZ REYES
INGENIERO DE SISTEMAS
UNIVERSIDAD DISTRITAL
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Mapscript and wms client

2011-09-05 Thread Chris Jackson
Hi

I am trying to use a remote WMS service in my mapfile and am not having any
luck.  I resorted to the MapServer tutorial example and still had no luck:

  LAYER # MODIS WMS map from JPL
NAME modis_jpl
TYPE RASTER
OFFSITE  0 0 0
STATUS   On
CONNECTIONTYPE WMS
CONNECTION "http://wms.jpl.nasa.gov/wms.cgi?";

METADATA
  "wms_srs" "EPSG:4326"
  "wms_name" "modis"
  "wms_server_version" "1.1.1"
  "wms_format" "image/jpeg"
END

PROJECTION
  "init=epsg:4326"
END
  END # Modis WMS image ends here

Mapscript has wms client enabled so am I missing another setting required in
the mapfile?

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


Re: [mapserver-users] template in class

2011-09-05 Thread Steve Lime
A class template basically allows you to change the output
presentation for one class versus another. For example I might want to
display data for a "forest" landuse type totally different from a
"prairie" type. Or I might want to make only one class queryable and
not others. It's a lightly used option to be sure...

Steve

On Mon, Sep 5, 2011 at 5:33 AM, JIAJIA WANG  wrote:
> Yes, I have.
> But I still don't understand why define a template under class level.
> I just wonder when it can be used if you defined a template under class
> level.
> The template defined under layer level will be used when request GetFeature
> service.
> But how about the one under class level.
> JJ
> On Mon, Sep 5, 2011 at 5:28 PM, Havard Tveite  wrote:
>>
>> Have you had a look at http://mapserver.org/mapfile/template.html ?
>>
>> Håvard
>>
>> On 9/5/2011 8:44 AM, jjwang wrote:
>>>
>>> Hi all,
>>>
>>> In mapfile, under the class level, you can define a 'template'.
>>> What's this used for?
>>> And how to write the template?
>>> I'm assuming it's relevant to the getFeature request.
>>> I want the class info to be included in  the response of the getFeature
>>> request.
>>> How can I do this?
>>> Best show me some examples?
>>>
>>> Thanks in advance.
>>>
>>> JJ
>>>
>>> --
>>> View this message in context:
>>> http://osgeo-org.1803224.n2.nabble.com/template-in-class-tp6759942p6759942.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
>>>
>>
>> --
>> Håvard Tveite
>> Department of Mathematical Sciences and Technology, UMB
>> Drøbakveien 31, POBox 5003, N-1432 Ås, NORWAY
>> Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt/
>
>
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


RE: [mapserver-users] Re: Invalid SRS given: SRS must be valid fo r all requested layers. EPSG 23030

2011-09-05 Thread Fuchs Juan Carlos
Estimada Amalia:
si no entiendo mal lo que Rahkonen Jukka está tratando de decirte
es que el "extend" del mapa tiene número muy extraños
si el sistema EPSG:23030 tiene unidades en metros algo tipo -82.65algo
29.43algo -82.05algo 29.94algo 
da muy chiquito
tal vez son valores de un sistema en grados como el 4326? Lat. Long.??
Deberías pasar los valores en metros tal como lo despliega el GV sig en
pantalla cuando despliegas tu cartografia.
Saludos
JC



-Mensaje original-
De: Mr. Puneet Kishor [mailto:punk.k...@gmail.com]
Enviado el: Martes, 30 de Agosto de 2011 01:59 p.m.
Para: Amalia Carolina Canavire
CC: Rahkonen Jukka; mapserver-users@lists.osgeo.org; Lista de Usuarios
de gvSIG
Asunto: Re: [mapserver-users] Re: Invalid SRS given: SRS must be valid
for all requested layers. EPSG 23030



On Aug 30, 2011, at 11:21 AM, Amalia Carolina Canavire wrote:

> hi ,I don't good speak english, but i don't understand you, when you say
> "Projection must be in meters which seem to be the unit for the EPSG:23030
> units", you can specify in where may correction in this code, please.
thank
> for you time and helping.


Your declared projection "EPSG:23030" uses meters, but your extent `EXTENT
-82.658149 29.4353788 -82.05008 29.943614` is definitely not
in meters (unless, you are plotting a very tiny and strange area of the
world that is only a few centimeters wide and long). Make sure your extent
and projection units match.


> 
> 2011/8/30 Rahkonen Jukka 
> 
>> Hi,
>> 
>> I do not understand Spanish but it looks like you have something wrong
with
>> projections.
>> 
>> MAP
>> EXTENT -82.658149 29.4353788 -82.05008 29.943614
>> PROJECTION
>> "init=epsg:23030"
>>  END
>> 
>> Projection must be in meters which seem to be the unit for the EPSG:23030
>> units
>> 
>>
http://www.epsg-registry.org/report.htm?type=selection&entity=urn:ogc:def:cr
s:EPSG::23030&reportDetail=short&style=urn:uuid:report-style:default-with-co
de&style_name=OGP%20Default%20With%20Code&title=
>> 
>> The same with "wms_extent" "-82.658149 29.4353788
-82.05008
>> 29.943614"
>> use extents in the EPSG:23030 system and units.
>> 
>> -Jukka Rahkonen-
>> 
>> 
>> 
>> Lähettäjä: mapserver-users-boun...@lists.osgeo.org [
>> mapserver-users-boun...@lists.osgeo.org] käyttäjän Amalia Carolina
>> Canavire [acarolin...@gmail.com] puolesta
>> Lähetetty: 30. elokuuta 2011 16:55
>> Vastaanottaja: Lista de Usuarios de gvSIG;
mapserver-users@lists.osgeo.org
>> Aihe: [mapserver-users] msWMSLoadGetMapParams(): WMS server error.
Invalid
>> SRS given: SRS must be valid for all requested layers. EPSG 23030
>> 
>> Hola gente, una duda  usando gvsig para poder generar una vista desde un
>> .shp debo seleccionar una proyección epsg 23030, porque no me reconece
epsg
>> 4326 (con esta opción mi vista es vacia , a que se debe?
>> Estoy usando gvsig 1.1 por la extensión de publicación, sobre ubuntu.
>> Debido a ello , por las dudas, respeto esta proyección epsg 23030, cuando
>> utilizo  vista desde wms, me muestra sin problema, ahora cuando lo hago
para
>> web, me sale el error de :
>> msWMSLoadGetMapParams(): WMS server error. Invalid SRS given: SRS must be
>> valid for all requested layers .
>> 
>> Si cambio la proyeccion a 4326, no sale el error pero no me muestra nada.
>> Mi codigo es el sgte:
>> 
>> 
>> 
>> MAP
>>  NAME map_generated_by_gvsig
>>  SIZE 600 400
>>  EXTENT -82.658149 29.4353788 -82.05008 29.943614
>>  SYMBOLSET "dmwms1.sym"
>>  FONTSET "fonts.txt"
>>  LEGEND
>> IMAGECOLOR -1 -1 -1
>> LABEL
>>FONT "vera"
>>ANGLE FOLLOW
>>COLOR 0 0 0
>>ENCODING "UTF-8"
>>TYPE truetype
>>SIZE 8
>> END
>> STATUS ON
>> TRANSPARENT ON
>>  END
>>  WEB
>> METADATA
>>"wms_encoding" "UTF-8"
>>"wms_title" "Mapserver WMS"
>>"wms_abstract" ""
>>"wms_srs" " EPSG:23030"
>>"wms_onlineresource" "
>>
http://localhost/cgi-bin/mapserv?map=%2Fvar%2Fwww%2FgisParcelsFL%2Fmap%2Fdmw
ms1.map
>> "
>> END
>>  END
>>  PROJECTION
>> "init=epsg:23030"
>>  END
>>  LAYER
>> NAME "tl_2010_12001_roads.shp"
>> STATUS ON
>> TYPE LINE
>> DATA
>> "/var/www/gisParcelsFL/tl_2010_12001_roads/tl_2010_12001_roads.shp"
>> MAXSCALE -1.0
>> MINSCALE -1.0
>> TRANSPARENCY 100
>> SIZEUNITS pixels
>> LABELITEM "FULLNAME"
>> PROJECTION
>>"init=epsg:23030"
>> END
>> CLASS
>>STYLE
>>   COLOR 153 153 153
>>   WIDTH 1
>>END
>>NAME "default"
>>LABEL
>>   FONT "vera"
>>   ANGLE FOLLOW
>>   COLOR 0 0 0
>>   TYPE truetype
>>   SIZE 7.0
>>END
>> END
>> METADATA
>>"wms_title" "tl_2010_12001_roads.shp"
>>"wms_abstract" "generated by gvSIG"
>>"wms_extent" "-82.658149 29.4353788 -82.05008
>> 29.943614"
>>"gml_includ

Re: [mapserver-users] msQueryByFilter(): Search returned no results.

2011-09-05 Thread Steve Lime
You could try defining a smaller bbox in lat/lon,something tighter to your
actual AOI. -Steve

2011/9/5 Michal Šrédl :
> Hi Steve,
>
> may be you are right, because when I replace epsg:102067 with
> epsg:3035 it works fine
>
> Cheers,
>
> Michal
>
> 2011/8/29 Steve Lime :
>> Looking at the code the correct projection work is done. I wonder if
>> there's something funky projecting the globe (-180 -90 180 90) to
>> epsg:102067.
>>
>> Steve
>>
>> 2011/8/26 Steve Lime :
>>> Ok, definitely a bug here... Will take a look. Steve
>>>
>>> 2011/8/26 Michal Šrédl :
 Hi Steve,

 for epsg:4326 and url

 http://localhost//cgi-bin/ows?mode=itemnquery&qlayer=typ&qitem=zver&qstring=2

 it says

 msQueryByAttributes(): Search returned no results. No matching
 record(s) found, layer and area of interest do not overlap.

 Cheers,

 Mike

 2011/8/26 Steve Lime :
> You must have a default mapfile set in apache, that's cool. Use the 
> second URL.
>
> Change qstring_validation to qstring_validation_pattern from my first
> message, my mistake.
>
> Steve
>
> 2011/8/26 Michal Šrédl :
>> Hi Steve,
>>
>> regardless of the projection settings, I get the following result:
>>
>> For
>>
>>  http://localhost//cgi-bin/ows?map=mapfile&mode=itemnquery&qlayer=typ&qitem=zver&qstring=2
>>
>> I see
>>
>>  msLoadMap(): Regular expression error. MS_DEFAULT_MAPFILE_PATTERN
>> validation failed. msEvalRegex(): Regular expression error. String
>> failed expression test.
>>
>> And for
>>
>>  http://localhost//cgi-bin/ows?mode=itemnquery&qlayer=typ&qitem=zver&qstring=2
>>
>> I see
>>
>>  mapserv(): Web application error. Parameter 'qstring' value fails to
>> validate. msValidateParameter(): Regular expression error. Parameter
>> pattern validation failed.
>>
>> Cheers,
>>
>> Michal
>>
>>
>> 2011/8/26 Steve Lime :
>>> I would agree this sounds like a bug. The map extent *should* be
>>> projected to the layer extent and that's what's used to identify
>>> candidate features. Can you check what happens with a native mapserver
>>> attribute query in this case? If possible try this:
>>>
>>> 1) set your MAP projection back to geographic, and restore your
>>> geographic map extent.
>>> 2) add this line to the layer metadata 'qstring_validation' '^[0-9]$'
>>> 3) go to the following URL:
>>>
>>>  http://localhost//cgi-bin/ows?map=[yourmapfile]&mode=itemnquery&qlayer=typ&qitem=zver&qstring=2
>>>
>>> and see what happens.
>>>
>>> This will run a different query function msQueryByAttributes() that's
>>> not new to 6.0.x.
>>>
>>> Steve
>>>
>>> 2011/8/26 Michal Šrédl :
 Hi Jukka,

 the current settings returns expected result with &srsName=EPSG:4326
 as well. The original settings doesn't work neither with
 &srsName=EPSG:4326 nor &srsName=EPSG::102067.

 Yes, it looks like there would be a problem in case of several WFS
 layers with different projections of the source data.

 Cheers,

 Mike

 2011/8/26 Rahkonen Jukka :
> Hi,
>
> Good that you could make it to work. However, this feels maybe like a 
> bug if it means that using ogc:PropertyIsEqualTo filter without any 
> other filter works only if projection of the source data is the same 
> than the default output projection from WFS.
>
> Could you have one more trial with the original settings and see if 
> adding &srsName=EPSG:4326 or &srsName=EPSG::102067 is changing 
> anything? And also if your current setting gives correct result with 
> &srsName=EPSG:4326.
>
> -Jukka Rahkonen.
>
> Michal Šrédl wrote:
>
>
>> Hi all,
>
>> problem solved. I needed to set:
>
>> EXTENT -905000 -123 -40 -90
>
> and
>
> PROJECTION
> ##  "init=epsg:4326"
>  "init=epsg:102067"
> END
>
> (Epsg 102067 is the projection of the layer being filtered.)
>
> Thank you very much again,
>
> Michal
>
>
> 2011/8/25 Michal Šrédl :
>> Hi Steve,
>>
>> Thanks a lot. The extent should be large enough to encompass all the
>> features. Here comes the whole mapfile:
>>
>> MAP
>> NAME "MIS WFS Server"
>> STATUS ON
>> SIZE 500 500
>> EXTENT -180 -90 180 90
>> SHAPEPATH "data/"
>> IMAGECOLOR 255 255 255
>> CONFIG MS_ERRORFILE "log/mapserv.log"
>> DEBUG 5
>>
>> WEB
>>  IMAGEPATH "/var/www/tmp/"
>>  IMAGE

Re: [mapserver-users] How can I set the output format of WFS getfeature request to text/html?

2011-09-05 Thread Rahkonen Jukka
Hi,

Probably the best I could do for you would be to encourage you do your own 
homeworks and read some basic documents about WFS and WMS, but ok, take these 
advice for free.

Text/html is not WFS outputformat. It is WMS GetFeatureInfo outputformat. 
Default outputformat for WFS is GML but additional ones can be added with OGR 
Output http://mapserver.org/output/ogr_output.html

In another question you asked about templates. They exist for configuring 
text/html output, for example WMS GetFeatureInfo when request is done with 
outputformat=text/html. It may be that configuring a text/html output for 
GetFeatureInso is not extremely well documented so you here is an example that 
is not tested but should be close to a working set.

Mapfile
LAYER
 NAME "GetFeatureInfo_layer"
 TYPE POLYGON
 STATUS ON
 DATA "GetFeatureInfo.shp"
 UNITS METERS
 DUMP TRUE
 DEBUG 5
 SIZEUNITS PIXELS
 TOLERANCE 3
 HEADER"\data\template\GetFeatureInfo_header.html"
 TEMPLATE  "\data\template\GetFeatureInfo_template.html"
 FOOTER"\data\template\GetFeatureInfo_footer.html"
 TOLERANCEUNITS PIXELS
 METADATA
"wms_include_items" "GetFeatureInfo_items"
"wms_title""GetFeatureInfo_layer"
"wms_srs" "EPSG:4326"
 END
 PROJECTION
"init=epsg:4326" 
 END
 END
 
Header template






Maisemapiirrehaun tulos


   
  GetFeatureInfo Report
 
Title for ATTR1
Title for ATTR2
Title for ATTR3
Title for ATTR4

Body template



 [item name=ATTR1 format="$value" escape=none]
 [item name=ATTR2 format="$value" escape=none]
 [item name=ATTR3 format="$value" escape=none]
 [item name=ATTR4 format="$value" escape=none]


Footer template



  
 



-Jukka Rahkonen-


 

> -Alkuperäinen viesti-
> Lähettäjä: mapserver-users-boun...@lists.osgeo.org 
> [mailto:mapserver-users-boun...@lists.osgeo.org] Puolesta jjwang
> Lähetetty: 5. syyskuuta 2011 5:11
> Vastaanottaja: mapserver-users@lists.osgeo.org
> Aihe: [mapserver-users] How can I set the output format of 
> WFS getfeature request to text/html?
> 
> The default output format is gml.
> How can I set the output format of WFS getfeature request to 
> text/html?
> I tried to add "outputformat=text/html" to the query string.
> But I got an error message "msWFSGetFeature(): WFS server 
> error. 'text/html'
> is not a permitted output format for layer 'nt', review wfs_formats
> setting."
> So I added *"wfs_formats" "text/html"* to the map file both 
> map level and
> layer level.
> Still doesn't work.
> 
> JJ
> 
> --
> View this message in context: 
> http://osgeo-org.1803224.n2.nabble.com/How-can-I-set-the-outpu
> t-format-of-WFS-getfeature-request-to-text-html-tp6759614p6759614.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


VS: [mapserver-users] WMS/WFS Mapserver Projection Error

2011-09-05 Thread Rahkonen Jukka
Hi,

Your failing client is most probably sending WFS 1.1.0 version GetFeature 
request and therefore Mapserver is sending the coordinates in 
Latitude-Longitude order.  This is how the WFS 1.1.0 says it should be. 
According to the WFS 1.1.0 standard your client is doing it wrong. Lots of 
people have said that the WFS 1.1.0 standard is stupid.
If your client supports WFS 1.0.0 use that and the map will look good.  Have a 
try with your browser and you will see what I mean

http://your_server/cgi-bin/mapserv?service=WFS&version=1.0.0&request=GetFeature&typeName=your_typename&maxFeatures=1&map=your_mapfile
http://your_server/cgi-bin/mapserv?service=WFS&version=1.1.0&request=GetFeature&typeName=your_typename&maxFeatures=1&map=your_mapfile

-Jukka Rahkonen-

Lucho  wrote:


Hi List,

I have a problem with some data when I'm publishing a WMS and then, publish the 
same data in a WFS service. Everithing is ok speaking about attending requests, 
but when I get the data with some clients, it seems that WFS has a total 
different projection.

The image attached explain better the situation.

In Quantum GIS the two services working well, but in other clients I have this 
problem. The data are in EPSG:4326

Any ideas?

Best regards,

--
LUIS FERNANDO ORTIZ REYES
INGENIERO DE SISTEMAS
UNIVERSIDAD DISTRITAL
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] template in class

2011-09-05 Thread JIAJIA WANG
Yes, I have.
But I still don't understand why define a template under class level.
I just wonder when it can be used if you defined a template under class
level.
The template defined under layer level will be used when request GetFeature
service.
But how about the one under class level.

JJ

On Mon, Sep 5, 2011 at 5:28 PM, Havard Tveite  wrote:

> Have you had a look at 
> http://mapserver.org/mapfile/**template.html?
>
> Håvard
>
>
> On 9/5/2011 8:44 AM, jjwang wrote:
>
>> Hi all,
>>
>> In mapfile, under the class level, you can define a 'template'.
>> What's this used for?
>> And how to write the template?
>> I'm assuming it's relevant to the getFeature request.
>> I want the class info to be included in  the response of the getFeature
>> request.
>> How can I do this?
>> Best show me some examples?
>>
>> Thanks in advance.
>>
>> JJ
>>
>> --
>> View this message in context: http://osgeo-org.1803224.n2.**
>> nabble.com/template-in-class-**tp6759942p6759942.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
>>
>>
> --
> Håvard Tveite
> Department of Mathematical Sciences and Technology, UMB
> Drøbakveien 31, POBox 5003, N-1432 Ås, NORWAY
> Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt/
>
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] WMS/WFS Mapserver Projection Error

2011-09-05 Thread Lucho
Hi List,

I have a problem with some data when I'm publishing a WMS and then, publish
the same data in a WFS service. Everithing is ok speaking about attending
requests, but when I get the data with some clients, it seems that WFS has a
total different projection.

The image attached explain better the situation.

In Quantum GIS the two services working well, but in other clients I have
this problem. The data are in EPSG:4326

Any ideas?

Best regards,

-- 
LUIS FERNANDO ORTIZ REYES
INGENIERO DE SISTEMAS
UNIVERSIDAD DISTRITAL
<>___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users