[mapserver-users] WMS GetFeatureInfo on a WFS layer

2010-03-24 Thread Yves Jacolin
Hi,

I added a WFS layer in my mapfile and I am using MapServer as a WMS server.
I would like to send a GetFeatureInfo request on this WFS layer but I always
get a Search return no result as answer.

Is it possible to request such layer? I get same problem with an OGR
connection (mapInfo file). Does the problem could occur only with a polyline
feature if we click always too far of the feature?

Or the problem occur from the WFS service?

The WFS service I want to request in my WMS service is
http://carto.ecologie.gouv.fr/MEDD/wms.php?service_idx=17Wmap=sacarte.map

Thanks in advance for your help,

Y.
-- 
Yves Jacolin
Responsable Formation et Support
Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac Cedex
Tel : + 33 (0)4 79 26 57 97
http://www.camptocamp.com
yves.jaco...@camptocamp.com
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] PHP MapScript: shape-classindex is always 0

2010-03-24 Thread Peter Hopfgartner

Hello

As I interpreted this, classindex should point to the right class of the 
instantiated shape. Unfortunatly, classindex is always 0.


As a test I have a LAYER with 2 classes,
   CLASS
  NAME 'class1'
  EXPRESSION (([class] eq 1))
  STYLE
SYMBOL circle
SIZE 7.0
OUTLINECOLOR 0 0 0
COLOR 0 128 0
  END
   END
   CLASS
  NAME 'class2'
  EXPRESSION (([class] eq 2))
  STYLE
SYMBOL circle
SIZE 7.0
OUTLINECOLOR 0 0 0
COLOR 0 0 128
  END
   END

In the PostGIS database are 4 point, 2 with class=1 and 2 with class=2, 
the generated map image shows the expected colors.


The following script:

?php
$mapfile = 'test.map';
$map = ms_newmapobj($mapfile);
$layer = $map-getLayerByName('test');
$status = $layer-open();
$status = $layer-whichShapes($map-extent);
while ($shape = $layer-nextShape())
{
  echo index: {$shape-index}\tclassindex: {$shape-classindex}\n;
}
$layer-close();
?

the following output:

index: 0classindex: 0
index: 1classindex: 0
index: 2classindex: 0
index: 3classindex: 0

which is not what I expected.

Am I missing something obvious or is this a MapServer bug?

Regards,

Peter

--

Dott. Peter Hopfgartner

R3 GIS Srl - GmbH
Via Johann Kravogl-Str. 2
I-39012 Meran/Merano (BZ)
Email: peter.hopfgart...@r3-gis.com
Tel. : +39 0473 494949
Fax  : +39 0473 069902
www  : http://www.r3-gis.com

XING : http://www.xing.com/go/invita/8917535 


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


RE: [mapserver-users] ONE PASS QUERY (RFC 52) - FEATURE OR BUG?

2010-03-24 Thread Lime, Steve D (DNR)
I think that would probably eliminate the WFS issues we saw in 5.6 where OGC 
filters didn't map cleanly to a core query as we'd essentially be adding a new 
and more flexible core query. I'm not so sure that
it would address a common use case for old behavior. For example, it seems that 
folks like to start with a core query against a number of layers (e.g. find me 
all restaurants, bars, and coffee shops within a
certain bbox) and then they (through subsequent UI interactions) augment that 
original set of results by adding or removing features in a number of layers 
based on new queries, often a point query. I 
think that would be very hard to manage through a single filter. It's easy to 
do, however, via a list of feature IDs.

I still think adding a filterObj and a msLayerWhichShapesFiltered() is a good 
idea and want to see this in 6.0.

In addition, I was thinking that:

 1) we could use shapeindex to hold a global feature ID (OID, row id, etc...), 
and tileindex (for non-tiled shapefile/raster layers) to hold a result set 
specific row id
 2) driver specific version of msLayerNextShape(...) would set shapeindex and 
optionally tileindex (for example, the shapefile driver would only set the 
former, postgis would set both)
 3) driver specific versions of msLayerGetShape(...) would be charged with 
making the decision on doing either a random access query (select ... where 
oid=x) or leveraging the existing result set based 
 on the passed tileIndex (msLayerResultsGetShape(...) goes away)
 4) resurrect the old query file writer (in addition to the new one). That code 
wrote the shapeindex and tileindex but we'd only cache the tileindex for tiled 
shapefile/raster layers
 5) resurrect the old query file reader and it would load a query in a state 
that wouldn't have the tileindexes so old, slow processing would result for 
RDBMS layers

Knowing when the result set processing (e.g. via WFS, templates and query maps) 
should set things up for old vs. new is a bit tricky. Right now there's a flag 
set in the result cache that I believe only
the GML writer respects. It shows that it's possible to support both worlds 
though. That flag could trigger old/new file IO and result cache processing. 

I need to resolve this with the parallel discussion Tamas and Frank were having.

My 2 cents anyway...

Steve


From: mapserver-users-boun...@lists.osgeo.org 
[mapserver-users-boun...@lists.osgeo.org] On Behalf Of Paul Ramsey 
[pram...@cleverelephant.ca]
Sent: Monday, March 22, 2010 11:25 PM
To: Lime, Steve D (DNR)
Cc: mapserver-users@lists.osgeo.org; BrainDrain
Subject: Re: [mapserver-users] ONE PASS QUERY (RFC 52) - FEATURE OR BUG?

Is it better to back out to the old behaviour or would defining a
filter object that allows complex query logic meet the need in a more
direct way? (Ie, is running multiple queries a feature or a workaround
for an even older limitation?)

P.

On Mon, Mar 22, 2010 at 9:21 PM, Lime, Steve D (DNR)
steve.l...@state.mn.us wrote:
 I think we're in need of a RFC 52a. Clearly the compound query handling the 
 old approach afforded is of value to a group of users and that wasn't 
 accounted for in the initial RFC. The work around Assefa had to do with WFS 
 and a certain subset of OGC filters at the sprint is evidence that the 
 approach was even used in the core code (I wasn't aware of that at the time). 
 We (in 5.6.3) developed a work around that retains two sets of indexes one 
 suitable for random access and one for a specific result set (e.g. cursor). 
 It uses the already present tileindex property of a shapeObj to store the 
 latter. I think we can have the best of both here by storing the two indexes 
 and potentially we can revert to a single getShape() function in MapScript 
 and revive the old queryfile format as a option as well. Just needs to be 
 planned for now that the full impacts are better understood.

 Steve
 
 From: mapserver-users-boun...@lists.osgeo.org 
 [mapserver-users-boun...@lists.osgeo.org] On Behalf Of Frank Warmerdam 
 [warmer...@pobox.com]
 Sent: Monday, March 22, 2010 10:16 PM
 To: Tamas Szekeres
 Cc: mapserver-users@lists.osgeo.org; BrainDrain
 Subject: Re: [mapserver-users] ONE PASS QUERY (RFC 52) - FEATURE OR BUG?

 Tamas Szekeres wrote:
 In my understanding with the original approach the driver should:

 1. Retain the result set of the queries at the layer (ie. in the
 layerinfo structure) until the layer is open and no subsequent
 whichShapes is called to 'invalidate' the query.

 Tamas,

 Your point here is that the query result should live until
 invalidated by another whichShapes, right?  I would agree with
 that, but draw on a layer does do a whichShapes, right?  So a
 draw is expected to invalidate a query, right?

 2. Provide such index in shapeObj which would allow to retieve in a
 subsequent resultsGetShape within the result set.

 ok

 3. Retain the random access 

[mapserver-users] help with AGG support

2010-03-24 Thread Julie Knoll
Hi,

I have installed packages for agg-2.5 and agg-devel-2.5 on our server.
Compling mapserver using ./configure --with-php=/usr/include/php
--with-postgis --with-proj --with-geos --with-freetype --with-agg=/usr works
fine. However make returns the following errors. Could someone please help?
The server is CentOS 5.4

/usr/include/agg2/agg_pixfmt_rgba.h:1637: error: no type named ‘row_data’ in
‘class mapserv_row_ptr_cacheint’
/usr/include/agg2/agg_pixfmt_rgba.h:1675: error: no type named ‘row_data’ in
‘class mapserv_row_ptr_cacheint’
mapagg.cpp: In member function ‘void
AGGMapserverRenderer::renderEllipse(double, double, double, double, double,
agg::rgba8, agg::rgba8, double)’:
mapagg.cpp:299: error: ‘class agg::path_storage’ has no member named
‘transform’
mapagg.cpp: In function ‘void msCircleDrawShadeSymbolAGG(symbolSetObj*,
imageObj*, pointObj*, double, styleObj*, double)’:
mapagg.cpp:1077: error: ‘class agg::path_storage’ has no member named
‘transform’
mapagg.cpp:1101: error: ‘class agg::path_storage’ has no member named
‘transform’
mapagg.cpp:1144: error: ‘class agg::path_storage’ has no member named
‘transform’
mapagg.cpp:1177: error: ‘class agg::path_storage’ has no member named
‘transform’
mapagg.cpp: In function ‘void msDrawMarkerSymbolAGG(symbolSetObj*,
imageObj*, pointObj*, styleObj*, double)’:
mapagg.cpp:1300: error: ‘class agg::path_storage’ has no member named
‘transform’
mapagg.cpp: In function ‘void drawPolylineMarkers(imageObj*, shapeObj*,
symbolSetObj*, styleObj*, double)’:
mapagg.cpp:1426: error: ‘class agg::path_storage’ has no member named
‘transform’
mapagg.cpp:1427: error: ‘class agg::path_storage’ has no member named
‘transform’
mapagg.cpp:1428: error: ‘class agg::path_storage’ has no member named
‘transform’
mapagg.cpp: In function ‘void msDrawLineSymbolAGG(symbolSetObj*, imageObj*,
shapeObj*, styleObj*, double)’:
mapagg.cpp:1713: error: ‘class agg::path_storage’ has no member named
‘transform’
mapagg.cpp: In function ‘void msDrawShadeSymbolAGG(symbolSetObj*, imageObj*,
shapeObj*, styleObj*, double)’:
mapagg.cpp:1831: error: ‘class agg::path_storage’ has no member named
‘transform’
mapagg.cpp:1878: error: ‘class agg::path_storage’ has no member named
‘transform’
mapagg.cpp:1926: error: ‘class agg::path_storage’ has no member named
‘transform’
make: *** [mapagg.o] Error 1

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


Re: [mapserver-users] help with AGG support

2010-03-24 Thread Alan Boudreault
Julie, what mapserver version are you using? AGG is already included in 
mapserver 5.6.x source. Just compile with --with-agg option. I'm not sure MS 
has been tested with agg 2.5.

Alan

On March 24, 2010 10:22:35 am Julie Knoll wrote:
 Hi,
 
 I have installed packages for agg-2.5 and agg-devel-2.5 on our server.
 Compling mapserver using ./configure --with-php=/usr/include/php
 --with-postgis --with-proj --with-geos --with-freetype --with-agg=/usr
  works fine. However make returns the following errors. Could someone
  please help? The server is CentOS 5.4
 
 /usr/include/agg2/agg_pixfmt_rgba.h:1637: error: no type named ‘row_data’
  in ‘class mapserv_row_ptr_cacheint’
 /usr/include/agg2/agg_pixfmt_rgba.h:1675: error: no type named ‘row_data’
  in ‘class mapserv_row_ptr_cacheint’
 mapagg.cpp: In member function ‘void
 AGGMapserverRenderer::renderEllipse(double, double, double, double, double,
 agg::rgba8, agg::rgba8, double)’:
 mapagg.cpp:299: error: ‘class agg::path_storage’ has no member named
 ‘transform’
 mapagg.cpp: In function ‘void msCircleDrawShadeSymbolAGG(symbolSetObj*,
 imageObj*, pointObj*, double, styleObj*, double)’:
 mapagg.cpp:1077: error: ‘class agg::path_storage’ has no member named
 ‘transform’
 mapagg.cpp:1101: error: ‘class agg::path_storage’ has no member named
 ‘transform’
 mapagg.cpp:1144: error: ‘class agg::path_storage’ has no member named
 ‘transform’
 mapagg.cpp:1177: error: ‘class agg::path_storage’ has no member named
 ‘transform’
 mapagg.cpp: In function ‘void msDrawMarkerSymbolAGG(symbolSetObj*,
 imageObj*, pointObj*, styleObj*, double)’:
 mapagg.cpp:1300: error: ‘class agg::path_storage’ has no member named
 ‘transform’
 mapagg.cpp: In function ‘void drawPolylineMarkers(imageObj*, shapeObj*,
 symbolSetObj*, styleObj*, double)’:
 mapagg.cpp:1426: error: ‘class agg::path_storage’ has no member named
 ‘transform’
 mapagg.cpp:1427: error: ‘class agg::path_storage’ has no member named
 ‘transform’
 mapagg.cpp:1428: error: ‘class agg::path_storage’ has no member named
 ‘transform’
 mapagg.cpp: In function ‘void msDrawLineSymbolAGG(symbolSetObj*, imageObj*,
 shapeObj*, styleObj*, double)’:
 mapagg.cpp:1713: error: ‘class agg::path_storage’ has no member named
 ‘transform’
 mapagg.cpp: In function ‘void msDrawShadeSymbolAGG(symbolSetObj*,
  imageObj*, shapeObj*, styleObj*, double)’:
 mapagg.cpp:1831: error: ‘class agg::path_storage’ has no member named
 ‘transform’
 mapagg.cpp:1878: error: ‘class agg::path_storage’ has no member named
 ‘transform’
 mapagg.cpp:1926: error: ‘class agg::path_storage’ has no member named
 ‘transform’
 make: *** [mapagg.o] Error 1
 
 Thanks
 

-- 
Alan Boudreault
Mapgears
http://www.mapgears.com
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] help with AGG support

2010-03-24 Thread Julie Knoll
Actually we are using version 5.4.

I just tried compiling 5.6.3 and got a new set of errors on make
(non-related to agg)

mapstring.c: In function ‘msConvertWideStringToUTF8’:
mapstring.c:1542: warning: dereferencing type-punned pointer will break
strict-aliasing rules
mapstring.c:1544: error: ‘errno’ undeclared (first use in this function)
mapstring.c:1544: error: (Each undeclared identifier is reported only once
mapstring.c:1544: error: for each function it appears in.)
mapstring.c:1545: error: ‘E2BIG’ undeclared (first use in this function)
mapstring.c:1548: error: ‘EILSEQ’ undeclared (first use in this function)
mapstring.c:1551: error: ‘EINVAL’ undeclared (first use in this function)
make: *** [mapstring.o] Error 1

I then tried version 5.6.1 which compiled and installed perfectly, but when
trying to actually draw a map, it reported an error with my postgis layer:

[Wed Mar 24 09:49:48 2010].943741 msPostGISLayerGetItems(): Query error.
Error (ERROR:  column box does not exist
LINE 1: ...om geom_cassidi_states where the_geom  setsrid(!BOX!,4269)...
 ^
) executing SQL: select * from (select the_geom, state_name, gid from
geom_cassidi_states where the_geom  setsrid(!BOX!,4269)) as foo where
false limit 0


so not sure what to do now ...


On Wed, Mar 24, 2010 at 9:52 AM, Alan Boudreault
aboudrea...@mapgears.comwrote:

 Julie, what mapserver version are you using? AGG is already included in
 mapserver 5.6.x source. Just compile with --with-agg option. I'm not sure
 MS
 has been tested with agg 2.5.

 Alan

 On March 24, 2010 10:22:35 am Julie Knoll wrote:
  Hi,
 
  I have installed packages for agg-2.5 and agg-devel-2.5 on our server.
  Compling mapserver using ./configure --with-php=/usr/include/php
  --with-postgis --with-proj --with-geos --with-freetype --with-agg=/usr
   works fine. However make returns the following errors. Could someone
   please help? The server is CentOS 5.4
 
  /usr/include/agg2/agg_pixfmt_rgba.h:1637: error: no type named ‘row_data’
   in ‘class mapserv_row_ptr_cacheint’
  /usr/include/agg2/agg_pixfmt_rgba.h:1675: error: no type named ‘row_data’
   in ‘class mapserv_row_ptr_cacheint’
  mapagg.cpp: In member function ‘void
  AGGMapserverRenderer::renderEllipse(double, double, double, double,
 double,
  agg::rgba8, agg::rgba8, double)’:
  mapagg.cpp:299: error: ‘class agg::path_storage’ has no member named
  ‘transform’
  mapagg.cpp: In function ‘void msCircleDrawShadeSymbolAGG(symbolSetObj*,
  imageObj*, pointObj*, double, styleObj*, double)’:
  mapagg.cpp:1077: error: ‘class agg::path_storage’ has no member named
  ‘transform’
  mapagg.cpp:1101: error: ‘class agg::path_storage’ has no member named
  ‘transform’
  mapagg.cpp:1144: error: ‘class agg::path_storage’ has no member named
  ‘transform’
  mapagg.cpp:1177: error: ‘class agg::path_storage’ has no member named
  ‘transform’
  mapagg.cpp: In function ‘void msDrawMarkerSymbolAGG(symbolSetObj*,
  imageObj*, pointObj*, styleObj*, double)’:
  mapagg.cpp:1300: error: ‘class agg::path_storage’ has no member named
  ‘transform’
  mapagg.cpp: In function ‘void drawPolylineMarkers(imageObj*, shapeObj*,
  symbolSetObj*, styleObj*, double)’:
  mapagg.cpp:1426: error: ‘class agg::path_storage’ has no member named
  ‘transform’
  mapagg.cpp:1427: error: ‘class agg::path_storage’ has no member named
  ‘transform’
  mapagg.cpp:1428: error: ‘class agg::path_storage’ has no member named
  ‘transform’
  mapagg.cpp: In function ‘void msDrawLineSymbolAGG(symbolSetObj*,
 imageObj*,
  shapeObj*, styleObj*, double)’:
  mapagg.cpp:1713: error: ‘class agg::path_storage’ has no member named
  ‘transform’
  mapagg.cpp: In function ‘void msDrawShadeSymbolAGG(symbolSetObj*,
   imageObj*, shapeObj*, styleObj*, double)’:
  mapagg.cpp:1831: error: ‘class agg::path_storage’ has no member named
  ‘transform’
  mapagg.cpp:1878: error: ‘class agg::path_storage’ has no member named
  ‘transform’
  mapagg.cpp:1926: error: ‘class agg::path_storage’ has no member named
  ‘transform’
  make: *** [mapagg.o] Error 1
 
  Thanks
 

 --
 Alan Boudreault
 Mapgears
 http://www.mapgears.com

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


Re: [mapserver-users] WMS GetFeatureInfo on a WFS layer

2010-03-24 Thread Barend Köbben
The service you mention is a WMS service, are you sure you have added it as
a WFS client layer, that seem impossible to do...?


-- 
Barend Köbben
Senior Lecturer
ITC ­ University of Twente, Faculty of Geo-Information Science and
Earth Observation
PO Box 6, 7500AA Enschede, The Netherlands
+31 (0)53 4874253



On 24-03-10 10:24, Yves Jacolin yves.jaco...@camptocamp.com wrote:

 Hi,
 
 I added a WFS layer in my mapfile and I am using MapServer as a WMS server. I
 would like to send a GetFeatureInfo request on this WFS layer but I always get
 a Search return no result as answer.
 
 Is it possible to request such layer? I get same problem with an OGR
 connection (mapInfo file). Does the problem could occur only with a polyline
 feature if we click always too far of the feature?
 
 Or the problem occur from the WFS service?
 
 The WFS service I want to request in my WMS service is
 http://carto.ecologie.gouv.fr/MEDD/wms.php?service_idx=17Wmap=sacarte.map
 
 Thanks in advance for your help,
 
 Y.

Faculty of Geo-Information Science and Earth Observation (ITC)
University of Twente

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] help with AGG support

2010-03-24 Thread Alan Boudreault
With mapserver 5.6.3, could you try to open the mapstring.c file and add the 
following include at the line 40:
#include errno.h 

Fixed by FrankW in http://trac.osgeo.org/mapserver/changeset/9998

Alan

On March 24, 2010 11:04:23 am Julie Knoll wrote:
 Actually we are using version 5.4.
 
 I just tried compiling 5.6.3 and got a new set of errors on make
 (non-related to agg)
 
 mapstring.c: In function ‘msConvertWideStringToUTF8’:
 mapstring.c:1542: warning: dereferencing type-punned pointer will break
 strict-aliasing rules
 mapstring.c:1544: error: ‘errno’ undeclared (first use in this function)
 mapstring.c:1544: error: (Each undeclared identifier is reported only once
 mapstring.c:1544: error: for each function it appears in.)
 mapstring.c:1545: error: ‘E2BIG’ undeclared (first use in this function)
 mapstring.c:1548: error: ‘EILSEQ’ undeclared (first use in this function)
 mapstring.c:1551: error: ‘EINVAL’ undeclared (first use in this function)
 make: *** [mapstring.o] Error 1
 
 I then tried version 5.6.1 which compiled and installed perfectly, but when
 trying to actually draw a map, it reported an error with my postgis layer:
 
 [Wed Mar 24 09:49:48 2010].943741 msPostGISLayerGetItems(): Query error.
 Error (ERROR:  column box does not exist
 LINE 1: ...om geom_cassidi_states where the_geom  setsrid(!BOX!,4269)...
  ^
 ) executing SQL: select * from (select the_geom, state_name, gid from
 geom_cassidi_states where the_geom  setsrid(!BOX!,4269)) as foo where
 false limit 0
 
 
 so not sure what to do now ...
 
 
 On Wed, Mar 24, 2010 at 9:52 AM, Alan Boudreault
 
 aboudrea...@mapgears.comwrote:
  Julie, what mapserver version are you using? AGG is already included in
  mapserver 5.6.x source. Just compile with --with-agg option. I'm not
  sure MS
  has been tested with agg 2.5.
 
  Alan
 
  On March 24, 2010 10:22:35 am Julie Knoll wrote:
   Hi,
  
   I have installed packages for agg-2.5 and agg-devel-2.5 on our server.
   Compling mapserver using ./configure --with-php=/usr/include/php
   --with-postgis --with-proj --with-geos --with-freetype --with-agg=/usr
works fine. However make returns the following errors. Could someone
please help? The server is CentOS 5.4
  
   /usr/include/agg2/agg_pixfmt_rgba.h:1637: error: no type named
   ‘row_data’ in ‘class mapserv_row_ptr_cacheint’
   /usr/include/agg2/agg_pixfmt_rgba.h:1675: error: no type named
   ‘row_data’ in ‘class mapserv_row_ptr_cacheint’
   mapagg.cpp: In member function ‘void
   AGGMapserverRenderer::renderEllipse(double, double, double, double,
 
  double,
 
   agg::rgba8, agg::rgba8, double)’:
   mapagg.cpp:299: error: ‘class agg::path_storage’ has no member named
   ‘transform’
   mapagg.cpp: In function ‘void msCircleDrawShadeSymbolAGG(symbolSetObj*,
   imageObj*, pointObj*, double, styleObj*, double)’:
   mapagg.cpp:1077: error: ‘class agg::path_storage’ has no member named
   ‘transform’
   mapagg.cpp:1101: error: ‘class agg::path_storage’ has no member named
   ‘transform’
   mapagg.cpp:1144: error: ‘class agg::path_storage’ has no member named
   ‘transform’
   mapagg.cpp:1177: error: ‘class agg::path_storage’ has no member named
   ‘transform’
   mapagg.cpp: In function ‘void msDrawMarkerSymbolAGG(symbolSetObj*,
   imageObj*, pointObj*, styleObj*, double)’:
   mapagg.cpp:1300: error: ‘class agg::path_storage’ has no member named
   ‘transform’
   mapagg.cpp: In function ‘void drawPolylineMarkers(imageObj*, shapeObj*,
   symbolSetObj*, styleObj*, double)’:
   mapagg.cpp:1426: error: ‘class agg::path_storage’ has no member named
   ‘transform’
   mapagg.cpp:1427: error: ‘class agg::path_storage’ has no member named
   ‘transform’
   mapagg.cpp:1428: error: ‘class agg::path_storage’ has no member named
   ‘transform’
   mapagg.cpp: In function ‘void msDrawLineSymbolAGG(symbolSetObj*,
 
  imageObj*,
 
   shapeObj*, styleObj*, double)’:
   mapagg.cpp:1713: error: ‘class agg::path_storage’ has no member named
   ‘transform’
   mapagg.cpp: In function ‘void msDrawShadeSymbolAGG(symbolSetObj*,
imageObj*, shapeObj*, styleObj*, double)’:
   mapagg.cpp:1831: error: ‘class agg::path_storage’ has no member named
   ‘transform’
   mapagg.cpp:1878: error: ‘class agg::path_storage’ has no member named
   ‘transform’
   mapagg.cpp:1926: error: ‘class agg::path_storage’ has no member named
   ‘transform’
   make: *** [mapagg.o] Error 1
  
   Thanks
 
  --
  Alan Boudreault
  Mapgears
  http://www.mapgears.com
 

-- 
Alan Boudreault
Mapgears
http://www.mapgears.com
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] help with AGG support

2010-03-24 Thread Julie Knoll
That worked perfectly and didn't cause the postgis error like in 5.6.1,
Thank you!!!

On Wed, Mar 24, 2010 at 10:15 AM, Alan Boudreault
aboudrea...@mapgears.comwrote:

 With mapserver 5.6.3, could you try to open the mapstring.c file and add
 the
 following include at the line 40:
 #include errno.h

 Fixed by FrankW in http://trac.osgeo.org/mapserver/changeset/9998

 Alan

 On March 24, 2010 11:04:23 am Julie Knoll wrote:
  Actually we are using version 5.4.
 
  I just tried compiling 5.6.3 and got a new set of errors on make
  (non-related to agg)
 
  mapstring.c: In function ‘msConvertWideStringToUTF8’:
  mapstring.c:1542: warning: dereferencing type-punned pointer will break
  strict-aliasing rules
  mapstring.c:1544: error: ‘errno’ undeclared (first use in this function)
  mapstring.c:1544: error: (Each undeclared identifier is reported only
 once
  mapstring.c:1544: error: for each function it appears in.)
  mapstring.c:1545: error: ‘E2BIG’ undeclared (first use in this function)
  mapstring.c:1548: error: ‘EILSEQ’ undeclared (first use in this function)
  mapstring.c:1551: error: ‘EINVAL’ undeclared (first use in this function)
  make: *** [mapstring.o] Error 1
 
  I then tried version 5.6.1 which compiled and installed perfectly, but
 when
  trying to actually draw a map, it reported an error with my postgis
 layer:
 
  [Wed Mar 24 09:49:48 2010].943741 msPostGISLayerGetItems(): Query error.
  Error (ERROR:  column box does not exist
  LINE 1: ...om geom_cassidi_states where the_geom 
 setsrid(!BOX!,4269)...
   ^
  ) executing SQL: select * from (select the_geom, state_name, gid from
  geom_cassidi_states where the_geom  setsrid(!BOX!,4269)) as foo where
  false limit 0
 
 
  so not sure what to do now ...
 
 
  On Wed, Mar 24, 2010 at 9:52 AM, Alan Boudreault
 
  aboudrea...@mapgears.comwrote:
   Julie, what mapserver version are you using? AGG is already included in
   mapserver 5.6.x source. Just compile with --with-agg option. I'm not
   sure MS
   has been tested with agg 2.5.
  
   Alan
  
   On March 24, 2010 10:22:35 am Julie Knoll wrote:
Hi,
   
I have installed packages for agg-2.5 and agg-devel-2.5 on our
 server.
Compling mapserver using ./configure --with-php=/usr/include/php
--with-postgis --with-proj --with-geos --with-freetype
 --with-agg=/usr
 works fine. However make returns the following errors. Could someone
 please help? The server is CentOS 5.4
   
/usr/include/agg2/agg_pixfmt_rgba.h:1637: error: no type named
‘row_data’ in ‘class mapserv_row_ptr_cacheint’
/usr/include/agg2/agg_pixfmt_rgba.h:1675: error: no type named
‘row_data’ in ‘class mapserv_row_ptr_cacheint’
mapagg.cpp: In member function ‘void
AGGMapserverRenderer::renderEllipse(double, double, double, double,
  
   double,
  
agg::rgba8, agg::rgba8, double)’:
mapagg.cpp:299: error: ‘class agg::path_storage’ has no member named
‘transform’
mapagg.cpp: In function ‘void
 msCircleDrawShadeSymbolAGG(symbolSetObj*,
imageObj*, pointObj*, double, styleObj*, double)’:
mapagg.cpp:1077: error: ‘class agg::path_storage’ has no member named
‘transform’
mapagg.cpp:1101: error: ‘class agg::path_storage’ has no member named
‘transform’
mapagg.cpp:1144: error: ‘class agg::path_storage’ has no member named
‘transform’
mapagg.cpp:1177: error: ‘class agg::path_storage’ has no member named
‘transform’
mapagg.cpp: In function ‘void msDrawMarkerSymbolAGG(symbolSetObj*,
imageObj*, pointObj*, styleObj*, double)’:
mapagg.cpp:1300: error: ‘class agg::path_storage’ has no member named
‘transform’
mapagg.cpp: In function ‘void drawPolylineMarkers(imageObj*,
 shapeObj*,
symbolSetObj*, styleObj*, double)’:
mapagg.cpp:1426: error: ‘class agg::path_storage’ has no member named
‘transform’
mapagg.cpp:1427: error: ‘class agg::path_storage’ has no member named
‘transform’
mapagg.cpp:1428: error: ‘class agg::path_storage’ has no member named
‘transform’
mapagg.cpp: In function ‘void msDrawLineSymbolAGG(symbolSetObj*,
  
   imageObj*,
  
shapeObj*, styleObj*, double)’:
mapagg.cpp:1713: error: ‘class agg::path_storage’ has no member named
‘transform’
mapagg.cpp: In function ‘void msDrawShadeSymbolAGG(symbolSetObj*,
 imageObj*, shapeObj*, styleObj*, double)’:
mapagg.cpp:1831: error: ‘class agg::path_storage’ has no member named
‘transform’
mapagg.cpp:1878: error: ‘class agg::path_storage’ has no member named
‘transform’
mapagg.cpp:1926: error: ‘class agg::path_storage’ has no member named
‘transform’
make: *** [mapagg.o] Error 1
   
Thanks
  
   --
   Alan Boudreault
   Mapgears
   http://www.mapgears.com
 

 --
 Alan Boudreault
 Mapgears
 http://www.mapgears.com

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org

Re: [mapserver-users] help with AGG support

2010-03-24 Thread Frank Warmerdam

Julie Knoll wrote:
That worked perfectly and didn't cause the postgis error like in 5.6.1, 
Thank you!!!


On Wed, Mar 24, 2010 at 10:15 AM, Alan Boudreault 
aboudrea...@mapgears.com mailto:aboudrea...@mapgears.com wrote:


With mapserver 5.6.3, could you try to open the mapstring.c file and
add the
following include at the line 40:
#include errno.h

Fixed by FrankW in http://trac.osgeo.org/mapserver/changeset/9998


Folks,

I'll just note that I have filed a ticket on this:

 http://trac.osgeo.org/mapserver/ticket/3401

and fixed it in 5.6 branch as well. The problem seems not to affect
maximal builds which pull in lots of supporting libraries since one of them
is apparently pulling in errno.h for us so I don't think it is a particularly
critical bug in 5.6.3.  I believe it was introduced with 5.6.3 and does not
affect earlier versions.

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


RE: [mapserver-users] html query templates

2010-03-24 Thread Lime, Steve D (DNR)
You didn't say if you're doing this in old or new style templates, but 
regardless you'd need to do this in javascript. I can illustrate easiest with a 
new style template since it's all in one place but the idea applies to either:

!-- MapServer Template --
script
  var length=0;
[resultset layer=layer1]
  [feature]
length += [length];
  [/feature]
[/resultset]
  alert(total length= + length);
/script

So, for each feature in layer1 we add to the overall length variable and then 
output it at the end. Does this help?

Steve

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Eric Weisbender
Sent: Friday, March 19, 2010 3:38 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] html query templates

I am trying to calculate the sum of several numeric values returned in a query 
template.  Is there a cgi variable for this or a way to distinguish say the 
first [length] of a line segment returned as apposed to subsequent [length] 
values returned for the same poly line shape.

Eric


___
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] query multiple layers

2010-03-24 Thread Eric Weisbender
I am querying one specific layer and values from that layer using qlayer, 
qitem, and qstring.  e.g. qlayer=tlineqitem=nameqsting=happyjack.   My 
questions would be how to do this on 2 specific layers at the same time/same 
query.

Thanks,
EW

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


RE: [mapserver-users] query multiple layers

2010-03-24 Thread Lime, Steve D (DNR)
You can't do attribute queries on multiple layers at the same time, sorry.

Steve

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Eric Weisbender
Sent: Wednesday, March 24, 2010 4:00 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] query multiple layers

I am querying one specific layer and values from that layer using qlayer, 
qitem, and qstring.  e.g. qlayer=tlineqitem=nameqsting=happyjack.   My 
questions would be how to do this on 2 specific layers at the same time/same 
query.

Thanks,
EW

___
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


AW: [mapserver-users] WMS GetFeatureInfo on a WFS layer

2010-03-24 Thread Arnd Wippermann
Hi,
 
as I know, you cann't request a WMS or WFS through a connection in your
mapfile (results to Search return no result). Only with own data added as
shapefile and so on, you can get a result for GetfeatureInfo requests.
Wether mapinfo via ogr cann't request, i have no clue. But I would think, it
should be possible.
 
I have checked, that the url is a valid wfs server, also it seems, that it
points to a wms server.
 
Arnd

  _  

Von: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] Im Auftrag von Yves Jacolin
Gesendet: Mittwoch, 24. März 2010 10:24
An: mapserver-users
Betreff: [mapserver-users] WMS GetFeatureInfo on a WFS layer


Hi,

I added a WFS layer in my mapfile and I am using MapServer as a WMS server.
I would like to send a GetFeatureInfo request on this WFS layer but I always
get a Search return no result as answer.

Is it possible to request such layer? I get same problem with an OGR
connection (mapInfo file). Does the problem could occur only with a polyline
feature if we click always too far of the feature?

Or the problem occur from the WFS service?

The WFS service I want to request in my WMS service is
http://carto.ecologie.gouv.fr/MEDD/wms.php?service_idx=17W
http://carto.ecologie.gouv.fr/MEDD/wms.php?service_idx=17Wmap=sacarte.map
map=sacarte.map

Thanks in advance for your help,

Y.
-- 
Yves Jacolin
Responsable Formation et Support
Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac Cedex
Tel : + 33 (0)4 79 26 57 97
http://www.camptocamp.com
yves.jaco...@camptocamp.com

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


[mapserver-users] WMS Server problem

2010-03-24 Thread Tony Baylis
Hi guys,

Apologies for adding another question related to a similar previous post but
I too am having problems getting MapServer to serve a WMS layer.  At this
stage I can't get a GetCapabilities (it wants to download the mapserv file)
or Mode=map to work via the browser. I have been able to get the layer to
render correctly using openLayers in WMS mode however.

Below is my basic mapfile and openLayers file.  Note I have stripped most of
the styling out of the mapfile.

Tony

MAPFILE

MAP
  NAME Roads250k
  SIZE 800 500
  STATUS ON
  EXTENT 140 -23.25 150 -17
  UNITS DD
  SYMBOLSET /var/www/remwms/htdocs/includes/symbols.sym
  FONTSET /usr/share/fonts/truetype/font.list
  SHAPEPATH /var/www/rem_openlayers/Data/
  DEBUG 2
  CONFIG MS_ERRORFILE /var/www/ms_tmp/ms_error.txt

  OUTPUTFORMAT
  NAME AGGA
  MIMETYPE image/png
  DRIVER AGG/PNG
  EXTENSION png
  IMAGEMODE RGBA
  TRANSPARENT ON
  END

  PROJECTION
  init=epsg:4283
  END

  WEB
  IMAGEPATH /var/www/ms_tmp/
  IMAGEURL http://mapserver1/ms_tmp/;
  METADATA
wms_version 1.1.1
wms_title Geography250k
wms_onlineresource 
http://mapserver1/cgi-bin/mapserv?map=/var/www/rem_openlayers/roads250k.map;

wms_srs EPSG:4283 EPSG:4326
  END
  END

  LAYER
  NAME Roads_250k
  GROUP Geography
  EXTENT 140 -23.25 150 -17
  CONNECTIONTYPE postgis
  CONNECTION host=localhost port=5432 dbname=ga_250k user=postgres
password=postgres
  DATA  wkb_geometry FROM topo250k_majorroads using unique ogc_fid
using srid=4283
  METADATA
  wms_title roads250k
  wms_group_title Geography
  END
   PROJECTION
  init=epsg:4283
  END
  TYPE LINE
  DUMP TRUE
  STATUS ON
  CLASS
  COLOR 255 64 64
  END
  END

END

OPENLAYERS

html xmlns=http://www.w3.org/1999/xhtml;
  head
titleOpen Layers MapServer/title
  style type=text/css
#map {
width: 800px;
height: 550px;
border: 3px solid black;
}
/style
script src='
http://maps.google.com/maps?file=apiamp;v=2amp;key=ABQIjpkAC9ePGem0lIq5XcMiuhR_wWLPFku8Ix9i2SXYRVK3e45q1BQUd_beF8dtzKET_EteAjPdGDwqpQ
'/script
  script src=http://www.openlayers.org/api/OpenLayers.js;/script
  script type=text/javascript

var lon = 147;
var lat = -20;
var zoom = 6;
  var map;
  var layer;
  var gsat = new OpenLayers.Layer.Google(
Google Earth,
{type: G_HYBRID_MAP, numZoomLevels: 30}
);
  var qld_epm = new OpenLayers.Layer.WMS( Current EPM's,
  
http://atlas.information.qld.gov.au/ArcGIS/services/IRTM/MapServer/WMSServer
?,
  {isBaseLayer:false, transparent:true, layers: 56} );

  var mapserver_wms = new OpenLayers.Layer.WMS ( Geography 250k,
  
http://mapserver1/cgi-bin/mapserv?map=/var/www/rem_openlayers/roads250k.map
,
  {layers: roads250k, isBaseLayer:false,
transparent:true} );
function init(){
map = new OpenLayers.Map( 'map', {

  controls: [
  new OpenLayers.Control.LayerSwitcher( {title: Layer
Control} ),
  new OpenLayers.Control.Navigation(),
  new OpenLayers.Control.ScaleLine(),
  new OpenLayers.Control.MousePosition(),
  new OpenLayers.Control.PanZoomBar( {title: Navigation
Bar} )]
});
map.addLayers([gsat,qld_epm,mapserver_wms]);
map.setCenter(new OpenLayers.LonLat(lon, lat), zoom);
}

/script
  /head
  body onload=init()
div id=map/div
  /body
/html
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users