Re: [mapserver-users] Mapcache GetLegendGraphic request...

2013-04-25 Thread Paul james
I added one extra parameter with my request (so It dont use the mapcache)

 url = layer.getFullRequestString({
REQUEST: 'GetLegendGraphic',
WIDTH: null,
HEIGHT: null,
EXCEPTIONS: 'application/vnd.ogc.se_xml',
LAYER: layerName,
LAYERS: null,
STYLE: null,
STYLES: null,
SRS: null,
FORMAT: 'image/gif',
TIME: null,
SCALE: olmap.getScale()
  }, 'localhost/cgi-bin/mapserver.exe?map')   //ADDED THAT


On Wed, Apr 24, 2013 at 10:04 PM, Worth Lutz w...@mindspring.com wrote:

  Did you figure this out? I need to know how to do this also.

 ** **

 Worth

 ** **
  --

 *From:* mapserver-users-boun...@lists.osgeo.org [mailto:
 mapserver-users-boun...@lists.osgeo.org] *On Behalf Of *Paul james
 *Sent:* Monday, March 18, 2013 3:32 PM
 *To:* mapserver-users@lists.osgeo.org
 *Subject:* [mapserver-users] Mapcache GetLegendGraphic request...

 ** **

 Hello...

  

 How can I configure mapcache to accept GetLegendGraphic request ?

  

 Is that possible? Or maybe do I need to add a forwarding_rule to that kind
 of request? But how?

  

 Thanks
   --

 No virus found in this message.
 Checked by AVG - www.avg.com
 Version: 2013.0.2904 / Virus Database: 2641/6184 - Release Date: 03/17/13*
 ***

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


[mapserver-users] GetFeatureInfo encoding with HTML template...

2013-04-24 Thread Paul james
Hello...

I´m using a SQL Server 2008 database and I´m having problem with
GetFeatureInfo accents using HTML templates...
I need to set encoding to UTF-8...

I added that to header.html template:

   meta http-equiv=content-type content=text/html;
charset=UTF-8/meta

No success at all... Tried to force html response header on IIS to UTF-8,
no success as well...

How can I solve that problem?

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


Re: [mapserver-users] GetFeatureInfo encoding with HTML template...

2013-04-24 Thread Paul james
Tried ISO-8859-1 encondig and it worked fine!

Thanks


On Wed, Apr 24, 2013 at 9:21 AM, Rahkonen Jukka
jukka.rahko...@mmmtike.fiwrote:

  Hi,

 ** **

 The same http header works for me as

   !-- MapServer Template --

   html

   head

   link rel=stylesheet href=style.css type=text/css /

 meta http-equiv=content-type content=text/html;
 charset=ISO-8859-1/meta

 ** **

 I do not understand why it does not work for you. What Mapserver do you
 use? Are you sure that you edit the right file? May sound stupid but it has
 happened to me often.

 ** **

 -Jukka Rahkonen-

 ** **

 ** **

 Paul james wrote:

 ** **

 Hello...

  

 I´m using a SQL Server 2008 database and I´m having problem with
 GetFeatureInfo accents using HTML templates... 

 I need to set encoding to UTF-8...

  

 I added that to header.html template:

  

meta http-equiv=content-type content=text/html;
 charset=UTF-8/meta

  

 No success at all... Tried to force html response header on IIS to UTF-8,
 no success as well...

  

 How can I solve that problem?

  

 Thanks

  

  

 ___
 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] Mapcache FCGI with IIS...

2013-03-18 Thread Paul james
Thanks Steve!

I got it! Just had to set IIS FASTCGI settings and add one variable with
xml config path!

Works like a charm !


On Tue, Mar 12, 2013 at 2:16 PM, Stephen Woodbridge wood...@swoodbridge.com
 wrote:

 Paul,

 I have always use the apache module, so this might be useless info. I
 guessing that you would configure it under IIS like any other FCGI module.
 The trick is that you need to inform it where its mapcache.xml config file
 is located. In apache that is passed as an envronment variable. Then you
 should be able to hit the configured url for the service.

 http://sever/mapcache.exe/demo
 http://sever/mapcache.exe?demo

 And it should respond with the demo service page if that is configured in
 the mapcache.xml.

 This might give you some ideas:
 http://lists.osgeo.org/**pipermail/mapserver-dev/2012-**
 February/012007.htmlhttp://lists.osgeo.org/pipermail/mapserver-dev/2012-February/012007.html

 -Steve W


 On 3/12/2013 12:38 PM, Paul james wrote:

 Thanks...
 I compiled mapcache with success ... mapcache_seed is working fine...
 But I dont know how use the FastCGI module (mapcache.exe) ... I created
 a FastCGI 'Module Mapping' in IIS pointing to mapcache.exe ... But how
 can I use that in my atual map? I didnt find any tutorial/guide how use
 Mapcache as FastCGI independent module...
 Paul


 On Mon, Mar 11, 2013 at 3:05 PM, Jeff McKenna
 jmcke...@gatewaygeomatics.com 
 mailto:jmckenna@**gatewaygeomatics.comjmcke...@gatewaygeomatics.com
 

 wrote:




 On 2013-03-11 2:42 PM, Paul james wrote:
   Thanks Jeff...
  
   I updated my mapache (master) and now I only got 1 unresolved
 symbol :
  
  */Creating library cgi\mapcache.lib and object cgi\mapcache.exp
   mapcache.obj : error LNK2019: unresolved external symbol
   __imp__apr_date_parse_http4 referenced in function
 _fcgi_write_response
   cgi\mapcache.exe : fatal error LNK1120: 1 unresolved externals
   NMAKE : fatal error U1077: 'C:\Program Files (x86)\Microsoft
 Visual
   Studio 11.0\VC\BIN\cl.EXE' : return code '0x2'
   Stop./*
   *//*
   Do you have any idea how can I fix that?
  
   Thanks
  

 Since that function comes from the APR library (apr-util i think),
 maybe
 make sure you set all the APR declarations in your nmake.opt

 -jeff



 --
 Jeff McKenna
 MapServer Consulting and Training Services
 http://www.gatewaygeomatics.**com/ http://www.gatewaygeomatics.com/



 __**_
 mapserver-users mailing list
 mapserver-users@lists.osgeo.**org 
 mapserver-users@lists.osgeo.orgmailto:
 mapserver-users@lists.**osgeo.org mapserver-users@lists.osgeo.org
 
 http://lists.osgeo.org/**mailman/listinfo/mapserver-**usershttp://lists.osgeo.org/mailman/listinfo/mapserver-users





 __**_
 mapserver-users mailing list
 mapserver-users@lists.osgeo.**org mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/**mailman/listinfo/mapserver-**usershttp://lists.osgeo.org/mailman/listinfo/mapserver-users


 __**_
 mapserver-users mailing list
 mapserver-users@lists.osgeo.**org mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/**mailman/listinfo/mapserver-**usershttp://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] Mapcache GetLegendGraphic request...

2013-03-18 Thread Paul james
Hello...

How can I configure mapcache to accept GetLegendGraphic request ?

Is that possible? Or maybe do I need to add a forwarding_rule to that kind
of request? But how?

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


Re: [mapserver-users] Mapcache FCGI with IIS...

2013-03-12 Thread Paul james
Thanks...

I compiled mapcache with success ... mapcache_seed is working fine...

But I dont know how use the FastCGI module (mapcache.exe) ... I created a
FastCGI 'Module Mapping' in IIS pointing to mapcache.exe ... But how can I
use that in my atual map? I didnt find any tutorial/guide how use Mapcache
as FastCGI independent module...

Paul


On Mon, Mar 11, 2013 at 3:05 PM, Jeff McKenna jmcke...@gatewaygeomatics.com
 wrote:




 On 2013-03-11 2:42 PM, Paul james wrote:
  Thanks Jeff...
 
  I updated my mapache (master) and now I only got 1 unresolved symbol :
 
 */Creating library cgi\mapcache.lib and object cgi\mapcache.exp
  mapcache.obj : error LNK2019: unresolved external symbol
  __imp__apr_date_parse_http4 referenced in function _fcgi_write_response
  cgi\mapcache.exe : fatal error LNK1120: 1 unresolved externals
  NMAKE : fatal error U1077: 'C:\Program Files (x86)\Microsoft Visual
  Studio 11.0\VC\BIN\cl.EXE' : return code '0x2'
  Stop./*
  *//*
  Do you have any idea how can I fix that?
 
  Thanks
 

 Since that function comes from the APR library (apr-util i think), maybe
 make sure you set all the APR declarations in your nmake.opt

 -jeff



 --
 Jeff McKenna
 MapServer Consulting and Training Services
 http://www.gatewaygeomatics.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] Mapcache FCGI with IIS...

2013-03-11 Thread Paul james
I´m trying to compile mapcache with FastCGI support, but so far no
success...

I got that error (VS2012 compiler) :

*Creating library cgi\mapcache.lib and object cgi\mapcache.exp
mapcache.obj : error LNK2019: unresolved external symbol **
__imp__apr_date_parse_http@4* __imp__apr_date_parse_http@4* referenced in
function _fcgi_write_response
mapcache.lib(configuration_xml.obj) : error LNK2019: unresolved external
symbol_mapcache_source_dummy_create referenced in function _parseSource
cgi\mapcache.exe : fatal error LNK1120: 2 unresolved externals
NMAKE : fatal error U1077: 'C:\Program Files (x86)\Microsoft Visual Studio
11.0 \VC\BIN\cl.EXE' : return code '0x2'
Stop.*
**
Any help?



On Tue, Mar 5, 2013 at 4:15 PM, Paul james paulj...@gmail.com wrote:

 Hey...

 Is it possible to use Mapcache cgi with IIS?
 If so, is there any place where I can download de mapcache fcgi binary?

 Thanks

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


Re: [mapserver-users] Mapcache FCGI with IIS...

2013-03-11 Thread Paul james
Thanks Jeff...

I updated my mapache (master) and now I only got 1 unresolved symbol :

   *Creating library cgi\mapcache.lib and object cgi\mapcache.exp
mapcache.obj : error LNK2019: unresolved external symbol
__imp__apr_date_parse_http4 referenced in function _fcgi_write_response
cgi\mapcache.exe : fatal error LNK1120: 1 unresolved externals
NMAKE : fatal error U1077: 'C:\Program Files (x86)\Microsoft Visual Studio
11.0\VC\BIN\cl.EXE' : return code '0x2'
Stop.*
**
Do you have any idea how can I fix that?

Thanks


On Mon, Mar 11, 2013 at 1:19 PM, Jeff McKenna jmcke...@gatewaygeomatics.com
 wrote:

 On 2013-03-11 1:15 PM, Paul james wrote:
  I´m trying to compile mapcache with FastCGI support, but so far no
  success...
 
  I got that error (VS2012 compiler) :
 
  */Creating library cgi\mapcache.lib and object cgi\mapcache.exp
  mapcache.obj : error LNK2019: unresolved external symbol
  /**/__imp__apr_date_parse_http@4/*
  mailto:__imp__apr_date_parse_http@4*/referenced in function
  _fcgi_write_response
  mapcache.lib(configuration_xml.obj) : error LNK2019: unresolved external
  symbol_mapcache_source_dummy_create referenced in function _parseSource
  cgi\mapcache.exe : fatal error LNK1120: 2 unresolved externals
  NMAKE : fatal error U1077: 'C:\Program Files (x86)\Microsoft Visual
  Studio 11.0 \VC\BIN\cl.EXE' : return code '0x2'
  Stop./*
  **
  Any help?
 

 I recently committed many changes to allow MapCache-master to compile on
 Windows
 (
 https://github.com/mapserver/mapcache/commit/bf74c798b55b1e1d602f4b78535363d79d003952
 ),
 but I have not attempted FastCGI support.

 -jeff



 --
 Jeff McKenna
 MapServer Consulting and Training Services
 http://www.gatewaygeomatics.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] Mapcache FCGI with IIS...

2013-03-05 Thread Paul james
Hey...

Is it possible to use Mapcache cgi with IIS?
If so, is there any place where I can download de mapcache fcgi binary?

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


[mapserver-users] Openlayers + Bing Maps with Mapserver WMS projection error...

2010-08-11 Thread Paul james
Hey guys...
When using Bing maps as base layer, I have huge difference between my data
... Both are using WGS84 projection...
The image is attached...

Any idea?

Thanks

My WMS map:
MAP
...
  PROJECTION
+init=epsg:4326
  END

 WEB
IMAGEPATH 'D:\Temp'
IMAGEURL '/tmp/'
QUERYFORMAT 'text/html'

METADATA
wms_title WMS Server  ##required
wms_onlineresource http://localhost/cgi-bin/mapserv.exe?;
##required
wms_srs   EPSG:4269 EPSG:4326 EPSG:42304 EPSG:42101
EPSG:900913  ##recommended
wms_feature_info_mime_type text/html
labelcache_map_edge_buffer
  -10
END
END
...

LAYER
NAME STATE
METADATA
wms_titleSTATE   ##required
wms_feature_info_mime_type text/html
END

TYPE polygon
STATUS ON
INCLUDE Connection.map
DATA ...
PROCESSING CLOSE_CONNECTION=DEFER
PROCESSING LABEL_NO_CLIP=ON

PROJECTION
init=epsg:4326
END
...


My Openlayers config:

 map = new OpenLayers.Map('Test', {
 resolutions: [0.09524345064126273, 0.0730199788249681,
0.047621725320631365, 0.031747816880420915, 0.015873908440210457,
0.009524345064126272, 0.0031747816880420914, 0.0015873908440210457,
0.0007936954220105228, 0.00031747816880420915],
projection: EPSG:4326,
displayProjection: new OpenLayers.Projection(EPSG:4326),
tileSize: new OpenLayers.Size(400, 400),
maxExtent: new OpenLayers.Bounds(-102.2607421875, -46.142578125,
4.7021484375, 13.623046875)
});
attachment: bing4.gif___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Openlayers + Bing Maps with Mapserver WMS projection error...

2010-08-11 Thread Paul james
Thanks for the help...
I tried use spherical marcator like that:

 var bing= new OpenLayers.Layer.VirtualEarth(Shaded, {
   type: VEMapStyle.Shaded, numZoomLevels: 10,sphericalMercator: true
  });

And use that projection in mapfile and openlayers:
PROJECTION
+init=epsg:3857

Openlayers
 map = new OpenLayers.Map('Test', {
 resolutions: [0.09524345064126273, 0.0730199788249681,
0.047621725320631365, 0.031747816880420915, 0.015873908440210457,
0.009524345064126272, 0.0031747816880420914, 0.0015873908440210457,
0.0007936954220105228, 0.00031747816880420915],
projection: EPSG:4326,
maxExtent: new OpenLayers.Bounds(-102.2607421875, -46.142578125,
4.7021484375, 13.623046875)
});


But using that, my wms layers disappear... To other projection maybe?

Any idea?

Thanks


On Wed, Aug 11, 2010 at 12:35 PM, Edward Mac Gillavry 
emacgilla...@hotmail.com wrote:

  Bing maps is also using EPSG: 900913, EPSG:3785 or EPSG:3857 whichever is
 the latest... That should do the trick.

 HTH

 Edward



 --
 Date: Wed, 11 Aug 2010 11:12:47 -0300
 From: paulj...@gmail.com
 To: mapserver-users@lists.osgeo.org
 Subject: [mapserver-users] Openlayers + Bing Maps with Mapserver WMS
 projection error...


 Hey guys...
 When using Bing maps as base layer, I have huge difference between my data
 ... Both are using WGS84 projection...
 The image is attached...

 Any idea?

 Thanks

 My WMS map:
 MAP
 ...
   PROJECTION
 +init=epsg:4326
   END

  WEB
 IMAGEPATH 'D:\Temp'
 IMAGEURL '/tmp/'
 QUERYFORMAT 'text/html'

 METADATA
 wms_title WMS Server  ##required
 wms_onlineresource http://localhost/cgi-bin/mapserv.exe?;
 ##required
 wms_srs   EPSG:4269 EPSG:4326 EPSG:42304 EPSG:42101
 EPSG:900913  ##recommended
 wms_feature_info_mime_type text/html
 labelcache_map_edge_buffer
   -10
 END
 END
 ...

 LAYER
 NAME STATE
 METADATA
 wms_titleSTATE   ##required
 wms_feature_info_mime_type text/html
 END

 TYPE polygon
 STATUS ON
 INCLUDE Connection.map
 DATA ...
 PROCESSING CLOSE_CONNECTION=DEFER
 PROCESSING LABEL_NO_CLIP=ON

 PROJECTION
 init=epsg:4326
 END
 ...


 My Openlayers config:

  map = new OpenLayers.Map('Test', {
  resolutions: [0.09524345064126273, 0.0730199788249681,
 0.047621725320631365, 0.031747816880420915, 0.015873908440210457,
 0.009524345064126272, 0.0031747816880420914, 0.0015873908440210457,
 0.0007936954220105228, 0.00031747816880420915],
 projection: EPSG:4326,
 displayProjection: new OpenLayers.Projection(EPSG:4326),
 tileSize: new OpenLayers.Size(400, 400),
 maxExtent: new OpenLayers.Bounds(-102.2607421875, -46.142578125,
 4.7021484375, 13.623046875)
 });

 ___ 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] Especific Circle Symbol...

2010-06-10 Thread Paul james
Hello guys...

I´m trying to draw a BLACK CIRCLE, with Red borders, and with a small white
circle inside ...

Any help?


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


Re: [mapserver-users] Especific Circle Symbol...

2010-06-10 Thread Paul james
Thanks all!
It worked fine...

Paul

On Thu, Jun 10, 2010 at 11:53 AM, Jeff McKenna 
jmcke...@gatewaygeomatics.com wrote:

 Paul james wrote:

 Hello guys...

 I´m trying to draw a BLACK CIRCLE, with Red borders, and with a small
 white circle inside ...


 Hello Paul,

 That should be possible, with the 2 layers of TYPE CIRCLE (see example in
 http://www.mapserver.org/mapfile/layer.html).  You might want to try that,
 and then if you are still having problems include your sample layers in your
 next email to this email list.


 -jeff


 --
 Jeff McKenna
 MapServer Consulting and Training Services
 http://www.gatewaygeomatics.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] Map background color using OL/WMS

2010-05-26 Thread Paul james
Thanks for help...

I changed the background in Openlayers CSS config:

 div.olMap {
background-color: #e6fefe;
}

Paul

On Tue, May 25, 2010 at 6:02 PM, Thomasch thomas...@gmx.de wrote:

 Am 25.05.2010 21:36, schrieb Paul james:

  Thanks Thomas...
 But how can I change the backround in Client Side?


 Just find the Id of your DIV containing yout map and change the backgound
 Color. Maybe there is in the Styles Secion someting like

style

#map {
width: 800px;
height: 500px;
float: left;
border: 1px solid #ccc;
}
 [...]
/style

 Just add background-color:#FF like

style

#map {
width: 800px;
height: 500px;
float: left;
border: 1px solid #ccc;
background-color:#FF
}
 [...]
/style


 Thomasch
 ___
 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] Map background color using OL/WMS

2010-05-25 Thread Paul james
Thanks Jeff...
But do you know how change map background ? Using Mapscript IMAGECOLOR works
fine...
With CGI/WMS/OL i cant get that to work...

Paul

On Tue, May 25, 2010 at 9:23 AM, Jeff McKenna jmcke...@gatewaygeomatics.com
 wrote:

 Paul james wrote:

 Hello all...
 I have a Mapserver WMS application (using OL) ...
 How can I set the map background color?
 I tried to use :
 MAP
   IMAGECOLOR 230 254 254
 ...
 Without success...

 Tried too :
 METADATA
wms_bgcolor 0x8B

 No color change...


 To test your MapServer mapfile I recommend using the shp2img commandline
  utility (http://www.mapserver.org/utilities/shp2img.html).  Once you have
 shp2img's resulting map image looking like you want, then you can test in
 your application.  (this is how I would debug your problem, if I was hitting
 your issue)

 -jeff


 --
 Jeff McKenna
 MapServer Consulting and Training Services
 http://www.gatewaygeomatics.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] Map background color using OL/WMS

2010-05-25 Thread Paul james
Thanks Thomas...
But how can I change the backround in Client Side?

Paul

Just a guess - I think you have to change the backround of your Map in the
 Client Side. If you don't have only one Layer, your wms Layers should be
 transparent. And as wms serves only Layers, there is no way to change the
 backgroundcolor on Server Side.

 But maybe I'm wrong


 Thomasch

 ___
 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] Map background color using OL/WMS

2010-05-24 Thread Paul james
Hello all...
I have a Mapserver WMS application (using OL) ...
How can I set the map background color?
I tried to use :
MAP
   IMAGECOLOR 230 254 254
...
Without success...

Tried too :
METADATA
wms_bgcolor 0x8B

No color change...

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


Re: [mapserver-users] How to do that kind of querying using CGI (with Openlayers)

2010-03-31 Thread Paul james
Thanks Richard...
Could you send me a sample how to highlight the road using CGI/OL?

Thanks



On Mon, Mar 29, 2010 at 7:23 PM, Richard Greenwood 
richard.greenw...@gmail.com wrote:

 One approach is to use a very simple template to retrieve the min/max
 extent from MapServer. Then parse the extent in javascript and use
 that to set the OL extent. So basically you are making two calls to
 MapServer, one to get the extent and another one to highlight the
 road. The template for the extent would look something like
[MINX] [MINY] [MAXX] [MAXY]
 Better check the documentation on that as I forget if it's MINX or
 something slightly different.

 Rich


 On Mon, Mar 29, 2010 at 2:02 PM, Paul james paulj...@gmail.com wrote:
  Hello guys...
 
  The application has a Search Window, with all Roads listed...
  The user will choose one road, so my map should highlight that road and
 zoom
  in (if possible)...
 
  I already did that using C# Mapscript, but I dont know how to do that
 using
  CGI/OL...
 
  Any ideas?
 
  Thanks
 
  Paul
 
  ___
  mapserver-users mailing list
  mapserver-users@lists.osgeo.org
  http://lists.osgeo.org/mailman/listinfo/mapserver-users
 
 



 --
 Richard Greenwood
 richard.greenw...@gmail.com
 www.greenwoodmap.com

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


[mapserver-users] How to do that kind of querying using CGI (with Openlayers)

2010-03-29 Thread Paul james
Hello guys...

The application has a Search Window, with all Roads listed...
The user will choose one road, so my map should highlight that road and zoom
in (if possible)...

I already did that using C# Mapscript, but I dont know how to do that using
CGI/OL...

Any ideas?

Thanks

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


Re: [mapserver-users] Re: Getfeatureinfo and MSsql 2008 server

2010-03-08 Thread Paul james
Now It´s working Tamas...
I´ll test more later...

Thanks !

Paul

On Sat, Mar 6, 2010 at 6:56 PM, Tamas Szekeres szeker...@gmail.com wrote:

 I've just applied a couple of fixes in both the development and the stable
 branches with regards to the MSSQL2008 driver.

 The details of the fixes have been added to.
 http://trac.osgeo.org/mapserver/ticket/3058

 Ready to use binaries containing the recent fixes are available at:

 http://vbkto.dyndns.org/sdk/

 Any feedback and further testing efforts would be helpful, before we issue
 the next stable release 5.6.2 (hopefully in the next week)

 Best regards,

 Tamas



 2010/3/3 Paul james paulj...@gmail.com


 Hi
 I´m sending a point table that I´m using to test...


 Layer definition :
 LAYER
 NAME Test
 METADATA
 wms_titleTest   ##required

 wms_feature_info_mime_type text/html
 END
 TYPE POINT
 STATUS ON
 INCLUDE Connection.map
 DATA the_geom from tblGeo_Porto USING UNIQUE CodigoPorto USING
 SRID=0

 TOLERANCE 14
 TEMPLATE query.html

 CLASS
 TEMPLATE dummy
 NAME Test
 STYLE
 SYMBOL 'test_15'
 COLOR 0 0 0
 ANTIALIAS TRUE
 END
 END
 END

 Nquery CGI call :

 http://localhost/cgi-bin-last/mapserv.exe?map=Map.mapmode=nqueryLAYERS=Testmapext=-54.463422851562+-28.5204328125+-54.155805664062+-28.267747265625imgext=-54.463422851562+-28.5204328125+-54.155805664062+-28.267747265625map_size=1221+670imgxy=1221+670imgbox=0+0+1221+670

 I got :
 Content-type: text/html

 Using Postgis (same code) works fine...

 If you need, I can send the GetFeatureInfo code as well... But I think
 it´s the same bug ...

 The db data is attached...

 Paul




 On Tue, Mar 2, 2010 at 8:01 PM, Tamas Szekeres szeker...@gmail.comwrote:

 Paul

 It would be helpful to have some test data to reproduce your problem.

 In the meantime I've found an issue with regards of the query handling in
 the sql2008 driver and working on a fix right now, however I'm not sure if
 it is related to the problem of yours.

 Best regards,

 Tamas


 2010/3/2 Paul james paulj...@gmail.com

 Hi ...

 I have the same error here using Getfeature and Mssql2008... Works fine
 with Postgis connection ...

 My last test was using Getfeature with a Point Layer... The message
 returned was :


 Content-type: application/vnd.ogc.se_xml

 ?xml version='1.0' encoding=ISO-8859-1 standalone=no ?
 !DOCTYPE ServiceExceptionReport SYSTEM 
 http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd;
 ServiceExceptionReport version=1.1.1
 ServiceException
 /ServiceException
 /ServiceExceptionReport

 No error reported using DEBUG mode...

 The query generated was :

 SELECT convert(varchar(max), oid),convert(varchar(max),
 id),the_geom.STAsBinary(),convert(varchar(20), oid) from viw_test WHERE
 the_geom.STIntersects(Geometry::STGeomFromText('POLYGON((-62.4340041752662
 -11.1071026733531,-61.8187697837838 -11.1071026733531,-61.8187697837838
 -10.4918682818707,-62.4340041752662 -10.4918682818707,-62.4340041752662
 -11.1071026733531))',0)) = 1

 That query executed in Analyser return the right result:
 0x0101917EFB3A104FC061A6ED5F598925C0

 Using CGI NQuery also doesnt work, returning :
 Content-type: text/html

 If you need more details, let me know...

 Paul




 On Tue, Mar 2, 2010 at 5:34 AM, Afroz Kannancheri afr...@gmail.comwrote:


 Dear Tamas,
  Heres the debug log obtained when i clicked on the polygon

 [Tue Mar 02 12:28:47 2010].113000 msMSSQL2008LayerOpen called
 datastatement:
 geom from region1 USING UNIQUE id USING SRID=4326
 [Tue Mar 02 12:28:47 2010].113000 MSMSSQL2008LayerOpen -- shared
 connection
 not available.
 [Tue Mar 02 12:28:47 2010].957000

 msConnPoolRegister(region1,server=3.254.254.34;uid=sa;pwd=pwd;database=map;Integrated
 Security=false,01E39FC0)
 [Tue Mar 02 12:28:47 2010].957000 msMSSQL2008LayerParseData: unique
 column =
 id, srid='4326', geom_column_name = geom, table_name=region1
 [Tue Mar 02 12:28:47 2010].957000 msMSSQL2008LayerFreeItemInfo called
 [Tue Mar 02 12:28:47 2010].957000 in msMSSQL2008LayerGetItems  (find
 column
 names)
 [Tue Mar 02 12:28:48 2010].113000 msMSSQL2008LayerInitItemInfo called
 [Tue Mar 02 12:28:48 2010].113000 msMSSQL2008LayerInitItemInfo called
 [Tue Mar 02 12:28:48 2010].113000 msMSSQL2008LayerWhichShapes called
 [Tue Mar 02 12:28:48 2010].113000 query_string_temp:SELECT
 convert(varchar(max), ID),convert(varchar(max),
 name),convert(varchar(max),
 flag1),convert(varchar(max), flag2),convert(varchar(max),
 flag3),geom.STAsBinary(),convert(varchar(20), id) from region1 WHERE
 geom.STIntersects(Geometry::STGeomFromText('POLYGON((55.4843749962207
 -4.59960928778372,56.5390624973545 -4.59960928778372,56.5390624973545
 -3.54492178664993,55.4843749962207 -3.54492178664993,55.4843749962207
 -4.59960928778372))',4326)) = 1
 [Tue Mar 02 12:28:48 2010

[mapserver-users] Re: Getfeatureinfo and MSsql 2008 server

2010-03-03 Thread Paul james
Hi
I´m sending a point table that I´m using to test...

Layer definition :
LAYER
NAME Test
METADATA
wms_titleTest   ##required

wms_feature_info_mime_type text/html
END
TYPE POINT
STATUS ON
INCLUDE Connection.map
DATA the_geom from tblGeo_Porto USING UNIQUE CodigoPorto USING
SRID=0

TOLERANCE 14
TEMPLATE query.html

CLASS
TEMPLATE dummy
NAME Test
STYLE
SYMBOL 'test_15'
COLOR 0 0 0
ANTIALIAS TRUE
END
END
END

Nquery CGI call :
http://localhost/cgi-bin-last/mapserv.exe?map=Map.mapmode=nqueryLAYERS=Testmapext=-54.463422851562+-28.5204328125+-54.155805664062+-28.267747265625imgext=-54.463422851562+-28.5204328125+-54.155805664062+-28.267747265625map_size=1221+670imgxy=1221+670imgbox=0+0+1221+670

I got :
Content-type: text/html

Using Postgis (same code) works fine...

If you need, I can send the GetFeatureInfo code as well... But I think it´s
the same bug ...

The db data is attached...

Paul




On Tue, Mar 2, 2010 at 8:01 PM, Tamas Szekeres szeker...@gmail.com wrote:

 Paul

 It would be helpful to have some test data to reproduce your problem.

 In the meantime I've found an issue with regards of the query handling in
 the sql2008 driver and working on a fix right now, however I'm not sure if
 it is related to the problem of yours.

 Best regards,

 Tamas


 2010/3/2 Paul james paulj...@gmail.com

 Hi ...

 I have the same error here using Getfeature and Mssql2008... Works fine
 with Postgis connection ...

 My last test was using Getfeature with a Point Layer... The message
 returned was :


 Content-type: application/vnd.ogc.se_xml

 ?xml version='1.0' encoding=ISO-8859-1 standalone=no ?
 !DOCTYPE ServiceExceptionReport SYSTEM 
 http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd;
 ServiceExceptionReport version=1.1.1
 ServiceException
 /ServiceException
 /ServiceExceptionReport

 No error reported using DEBUG mode...

 The query generated was :

 SELECT convert(varchar(max), oid),convert(varchar(max),
 id),the_geom.STAsBinary(),convert(varchar(20), oid) from viw_test WHERE
 the_geom.STIntersects(Geometry::STGeomFromText('POLYGON((-62.4340041752662
 -11.1071026733531,-61.8187697837838 -11.1071026733531,-61.8187697837838
 -10.4918682818707,-62.4340041752662 -10.4918682818707,-62.4340041752662
 -11.1071026733531))',0)) = 1

 That query executed in Analyser return the right result:
 0x0101917EFB3A104FC061A6ED5F598925C0

 Using CGI NQuery also doesnt work, returning :
 Content-type: text/html

 If you need more details, let me know...

 Paul




 On Tue, Mar 2, 2010 at 5:34 AM, Afroz Kannancheri afr...@gmail.comwrote:


 Dear Tamas,
  Heres the debug log obtained when i clicked on the polygon

 [Tue Mar 02 12:28:47 2010].113000 msMSSQL2008LayerOpen called
 datastatement:
 geom from region1 USING UNIQUE id USING SRID=4326
 [Tue Mar 02 12:28:47 2010].113000 MSMSSQL2008LayerOpen -- shared
 connection
 not available.
 [Tue Mar 02 12:28:47 2010].957000

 msConnPoolRegister(region1,server=3.254.254.34;uid=sa;pwd=pwd;database=map;Integrated
 Security=false,01E39FC0)
 [Tue Mar 02 12:28:47 2010].957000 msMSSQL2008LayerParseData: unique
 column =
 id, srid='4326', geom_column_name = geom, table_name=region1
 [Tue Mar 02 12:28:47 2010].957000 msMSSQL2008LayerFreeItemInfo called
 [Tue Mar 02 12:28:47 2010].957000 in msMSSQL2008LayerGetItems  (find
 column
 names)
 [Tue Mar 02 12:28:48 2010].113000 msMSSQL2008LayerInitItemInfo called
 [Tue Mar 02 12:28:48 2010].113000 msMSSQL2008LayerInitItemInfo called
 [Tue Mar 02 12:28:48 2010].113000 msMSSQL2008LayerWhichShapes called
 [Tue Mar 02 12:28:48 2010].113000 query_string_temp:SELECT
 convert(varchar(max), ID),convert(varchar(max),
 name),convert(varchar(max),
 flag1),convert(varchar(max), flag2),convert(varchar(max),
 flag3),geom.STAsBinary(),convert(varchar(20), id) from region1 WHERE
 geom.STIntersects(Geometry::STGeomFromText('POLYGON((55.4843749962207
 -4.59960928778372,56.5390624973545 -4.59960928778372,56.5390624973545
 -3.54492178664993,55.4843749962207 -3.54492178664993,55.4843749962207
 -4.59960928778372))',4326)) = 1
 [Tue Mar 02 12:28:48 2010].394000 msMSSQL2008LayerClose datastatement:
 geom
 from region1 USING UNIQUE id USING SRID=4326
 [Tue Mar 02 12:28:48 2010].394000

 msConnPoolRelease(region1,server=3.254.254.34;uid=sa;pwd=pwd;database=map;Integrated
 Security=false,01E39FC0)
 [Tue Mar 02 12:28:48 2010].394000

 msConnPoolClose(server=3.254.254.34;uid=sa;pwd=pwd;database=map;Integrated
 Security=false,01E39FC0)
 [Tue Mar 02 12:28:48 2010].41 freeLayer(): freeing layer at 01E15180.

 Thnx
 Afroz
 --
 View this message in context:
 http://n2.nabble.com/Getfeatureinfo-and-MSsql-2008-server-tp4631781p4659685.html
 Sent from the Mapserver - User mailing list archive at Nabble.com

Re: [mapserver-users] Getfeatureinfo and MSsql 2008 server

2010-02-25 Thread Paul james
The Mssql2008 driver is incomplete...
GetFeatureInfo, Nquery, Query doesnt work at all...

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

Paul

On Thu, Feb 25, 2010 at 7:57 AM, Afroz Kannancheri afr...@gmail.com wrote:


 Hi All,

 I have a layer drawn from the shape information stored in MSSQL 2008
 server.
 The layer has around 300 polygons which are drawn perfectly on a world base
 map.
 When i try to get the details for each polygon using the Getfeatureinfo
 during the click event, i get the following error from MSSQL 2008 server.

 msMSSQL2008LayerGetShape(): Query error. Error executing MSSQL2008 SQL
 statement: SELECT convert(varchar(max), numb1),convert(varchar(max),
 poprate),geom.STAsBinary(),convert(varchar(20), ID) from table1 WHERE
 geom.STIntersects(Geometry::STGeomFromText('POLYGON((-16.4101563310658
 17.724609875,-16.4101563310658 17.724609875,-16.4101563310658
 17.724609875,-16.4101563310658 17.724609875,-16.4101563310658
 17.724609875))',0)) = 1 -[Microsoft][ODBC SQL Server Driver][SQL Server]A
 .NET Framework error occurred during execution of user defined routine or
 aggregate 'geometry': System.FormatException: 24118: The Polygon input is
 not valid because the exterior ring does not have enough points. Each ring
 of a polygon must contain at least three distinct points.
 System.FormatException: at
 Microsoft.SqlServer.Types.GeometryDataBuilder.EndFigure() at

 Microsoft.SqlServer.Types.OpenGisWktReader.ParseLineStringText(FigureAttributes
 attributes) at
 Microsoft.SqlServer.Types.OpenGisWktReader.ParsePolygonText()
 at Microsoft.SqlServer.Types.OpenGisWktReader.ParsePolygonTaggedText() at
 Microsoft.SqlServer.Types.OpenGisWktReader.ParseGeometryTaggedText() at
 Microsoft.SqlServer.Types.OpenGisWktReader.ReadGeometry() at
 Microsoft.SqlServer.Types.SqlGeometry.STGeomFromText(SqlChars
 geometryTaggedText, Int32 srid)


 Has anyone faced such an issue before.


 Thanks and regards
 AFroz Kannancheri
 --
 View this message in context:
 http://n2.nabble.com/Getfeatureinfo-and-MSsql-2008-server-tp4631781p4631781.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] Symbol problem (trunked) using tiled OpenLayers...

2010-02-22 Thread Paul james
Hello guys...
My annotation layer :

LAYER
NAME Test
METADATA
wms_titleTest
wms_feature_info_mime_type text/html
END
TYPE ANNOTATION
STATUS ON
INCLUDE Connection.map
DATA ...
LABELITEM 'road'
CLASS
TEMPLATE dummy
STYLE
SYMBOL 'RoadFed'
END
LABEL
TYPE TRUETYPE
FONT Arial
SIZE 7
COLOR 70 70 70
MINDISTANCE 100
MINFEATURESIZE 10
PARTIALS FALSE
BUFFER 10
END
END
END


Some symbol are trunked... See the image attached...
Any idea?

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


Re: [mapserver-users] Symbol problem (trunked) using tiled OpenLayers...

2010-02-22 Thread Paul james
Yes...
Is there any way to fix that ? Because openlayers without tiles is pretty
useless for me...

Thanks

On Mon, Feb 22, 2010 at 3:08 PM, Stephen Woodbridge wood...@swoodbridge.com
 wrote:

 Paul are you doing tiles?

 -Steve W

 Paul james wrote:

 Hello guys...
 My annotation layer :

 LAYER
NAME Test
METADATA
wms_titleTestwms_feature_info_mime_type
 text/html
END
TYPE ANNOTATION
STATUS ON
INCLUDE Connection.map
DATA ...
LABELITEM 'road'
CLASS
TEMPLATE dummy
STYLE
SYMBOL 'RoadFed'
END
LABEL
TYPE TRUETYPE
FONT Arial
SIZE 7
COLOR 70 70 70
MINDISTANCE 100
MINFEATURESIZE 10
PARTIALS FALSE
BUFFER 10
END
END  END


 Some symbol are trunked... See the image attached...
 Any idea?

 Thanks

 


 

 ___
 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] Symbol problem (trunked) using tiled OpenLayers...

2010-02-22 Thread Paul james
That worked...

Thanks all!

Paul

On Mon, Feb 22, 2010 at 4:37 PM, Stephen Woodbridge wood...@swoodbridge.com
 wrote:

 Paul james wrote:

 Yes...
 Is there any way to fix that ? Because openlayers without tiles is
 pretty useless for me...


 Maybe, try adding this to you mapfile:

  WEB
METADATA
  labelcache_map_edge_buffer -10
END
  END

 and see if that helps.

 -Steve

  Thanks


 On Mon, Feb 22, 2010 at 3:08 PM, Stephen Woodbridge 
 wood...@swoodbridge.com mailto:wood...@swoodbridge.com wrote:

Paul are you doing tiles?

-Steve W

Paul james wrote:

Hello guys...
My annotation layer :

LAYER
   NAME Test
   METADATA
   wms_titleTest
 wms_feature_info_mime_type text/html
   END
   TYPE ANNOTATION
   STATUS ON
   INCLUDE Connection.map
   DATA ...
   LABELITEM 'road'
   CLASS
   TEMPLATE dummy
   STYLE
   SYMBOL 'RoadFed'
   END
   LABEL
   TYPE TRUETYPE
   FONT Arial
   SIZE 7
   COLOR 70 70 70
   MINDISTANCE 100
   MINFEATURESIZE 10
   PARTIALS FALSE
   BUFFER 10
   END
   END  END


Some symbol are trunked... See the image attached...
Any idea?

Thanks


  



  

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
mailto: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] Layer (line) with LABELITEM...

2010-02-03 Thread Paul james
Hi Steve!
Is it posible to do that now with new mapserver?

Thanks

On Mon, Oct 20, 2008 at 5:40 PM, Steve Lime steve.l...@dnr.state.mn.uswrote:

 Hi Paul: For now you must have 2 layers. There's no way to make one
 style apply
 to the line work and the another to a label marker. That may change in
 5.4 but for
 now you're stuck with 2.

 Steve

  Paul james paulj...@gmail.com 10/17/08 12:44 PM 
  Hello guys...
 I have 2 layers, LINE and ANNOTATION...
 Like that :

 LAYER
NAME TestLINE
TYPE LINE
  ...
CLASS
  STYLE
SYMBOL 'circle'
SIZE 16
COLOR 175 175 175
  END  ## BG
  STYLE
SYMBOL 'circle'
SIZE 12
COLOR 247 190 33
  END
  MAXSCALE 4
END
CLASS
  MINSCALE 40001
  #NAME 'US Interstate'  ## Using Interstate Shield Symbol
 Instead
  STYLE
SYMBOL 'circle'
SIZE 14
COLOR 175 175 175
  END  ## BG
  STYLE
SYMBOL 'circle'
SIZE 10
COLOR 247 190 33
  END
  MAXSCALE 45000
END
END

 And I have a ANNOTATION to label the TestLINE layer:
 LAYER
NAME 'road_sym'
TYPE ANNOTATION
LABELITEM 'roadnumber'
CLASS
  STYLE
SYMBOL 'road'
SIZE 28
COLOR 255 0 0
  END
  STYLE
SYMBOL 'road'
SIZE 28
COLOR 115 113 206
OUTLINECOLOR 254 254 254
  END
  LABEL
TYPE TRUETYPE
FONT Arial
SIZE 8
COLOR 254 254 254
MINDISTANCE 100
MINFEATURESIZE 10
OFFSET 0 0
PARTIALS FALSE
  END
  MAXSCALE 2000
END
  END

 That works great...
 But, Is that possible to make just one layer with lines and annotation..
 I
 tried using LABELITEM and LABEL on LINE layer... But where Am I supposed
 to
 write the label Style ?

 []́s


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


Re: [mapserver-users] Re: WMSGetFeatureInfo problem (No results, using OL)

2010-01-27 Thread Paul james
Hi !

I dont think that it is the problem, because WMSGetFeatureInfo is generating
the correct url (I think)...

Anyway I tested querying only 1 single layer and got the same result...

Dammit :(

Thanks anyway

Stella

On Wed, Jan 27, 2010 at 12:24 PM, Eichner, Andreas - SID-NLKM 
andreas.eich...@sid.sachsen.de wrote:


 Hi Stella,

 according to
 http://dev.openlayers.org/docs/files/OpenLayers/Control/WMSGetFeatureInfo-js.htmlthe
  WMSGetFeatureInfo control's constructor takes an array of
 OpenLayers.Layer.WMS objects. But you give it the list you used to draw as
 one layer. So you should create two OpenLayers.Layer.WMS objects, one for
 layer Test1 and one for Test2 and then give the control an array of
 them.
 So if I'm correct it should look something like that:

 var _test1 = new OpenLayers.Layer.WMS(
   MyLayer 1,
   _mapfilex,
   {
layers: [ 'Test1'],
format: image/png,
transparent: true
   },
   {
isBaseLayer: false,
buffer: 0,
visibility: true
   }
 );
 var _test2 = new OpenLayers.Layer.WMS(
   MyLayer 2,
   _mapfilex,
   {
layers: [ 'Test2'],
format: image/png,
transparent: true
   },
   {
isBaseLayer: false,
buffer: 0,
visibility: true
   }
 );
 var infoCtl = new OpenLayers.Control.WMSGetFeatureInfo({
  layers: Array(_test1, _test2),
  title: 'Click on the map to get information on
 layers',
  queryVisible: true,
  infoFormat: 'text/html'
  });
 infoCtl.events.register(getfeatureinfo,map,showInfo);

 function showInfo(evt) {
  alert(evt.text);
 }

 Also I don't know how MapServer handles queries to two or more layers if at
 least one of them declares header or footer - it might happen that a layer
 without a header is processed before one with. And from what you got back I
 suggest that MapServer processes each layer if it was queried alone and
 therefore outputs the HTTP Content-type header after processing the first
 layer.


 Mit freundlichen Grüßen,

 Andreas Eichner
  ___
 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] Help with NQuery error (CGI)

2009-12-15 Thread Paul james
Hi Steve...
Any update on MSSQL2008 driver to solve that bug?

Thanks

On Fri, Oct 30, 2009 at 2:48 PM, Steve Lime steve.l...@dnr.state.mn.uswrote:

 Probably. Does a point query work? I reassigned the ticket to the keeper
 of the SQLServer
 driver in hopes that it gets attention.

 Curiously, have you tried 5.6 at all with SQLServer?

 Steve

  On 10/30/2009 at 12:22 PM, in message
 33fad6880910301022s40c76f88ha011362964e21...@mail.gmail.com, Paul
  james
 paulj...@gmail.com wrote:
  I think so...
  Is it related with that ticket?
  http://trac.osgeo.org/mapserver/ticket/3058
 
  Paul
 
  On Fri, Oct 30, 2009 at 1:53 PM, Steve Lime
 steve.l...@dnr.state.mn.uswrote:
 
  Odd. Unfortunately I can't debug anything related to MSSQL2008,
 perhaps
  the driver isn't
  supporting functions necessary to complete a query?
 
  Steve
 
   On 10/30/2009 at 6:33 AM, in message
  33fad6880910300433i342c619am99935a6078966...@mail.gmail.com, Paul
   james
  paulj...@gmail.com wrote:
   Hey Steve...
  
   Yes I had...
   QUERYMAP
COLOR 255 0 0
SIZE -1 -1
STATUS ON
STYLE hilite
   END
  
   With Status OFF I got that :
   Content-type: text/html
  
   Using MSSQL2008
  
   Paul
  
  
   On Thu, Oct 29, 2009 at 6:13 PM, Steve Lime
  steve.l...@dnr.state.mn.uswrote:
  
   Do you have a querymap object configured with status on? I would
  guess
   so in order to see that
   error. What happens if you set STATUS OFF in the querymap?
  
On 10/29/2009 at 7:57 AM, in message
   33fad6880910290557m71ee3fdatd470590e3256f...@mail.gmail.com,
 Paul
   james
   paulj...@gmail.com wrote:
 Hello guys...
Ím got this error when trying to execute a Nquery :
   
  
  
  
 
 
 

 http://localhost/cgi-bin-54/mapserv.exe?map=Map.mapmode=nqueryLAYERS=TESTmape

 
 
   x
  
   
  
  
  
 
 
 

 t=-58.358076171875+-11.42570625+-57.193525390625+-10.37101875imgext=-58.35807
 
   61718
   
  
  
  
 
 
 

 75+-11.42570625+-57.193525390625+-10.37101875map_size=1221+762imgxy=1221+762i
 
   mgb
ox=0+0+1221+762
   
msDrawMap(): Image handling error. Failed to draw layer named
   'TEST'.
   
But, If I execute the same url with mode=map, the image is
   generated
fine... What this error means?
   
   
TEST Layer
   
 LAYER
  NAME TEST
  GROUP TE
  TYPE polygon
  STATUS ON
  CONNECTIONTYPE PLUGIN
  PLUGIN msplugin_mssql2008.dll
  CONNECTION server=X;Integrated
   Security=false;database=X;uid=X;pwd=X
  DATA the_geom from viw USING UNIQUE oid USING SRID=0
  CLASS
   TEMPLATE template.html
   NAME X
   STYLE
OUTLINECOLOR 150 150 150
WIDTH 1
   END
  END
 END
   
Thanks
   
Paul
  
 

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


Re: [mapserver-users] Help with NQuery error (CGI)

2009-11-03 Thread Paul james
Thanks Steve...
Trying execute a query point like that:
http://localhost/cgi-bin-last/mapserv.exe?map=C:/map.mapmode=queryLAYERS=UFmapext=-56.798017578125+-14.26017890625+-56.578291015625+-14.04045234375imgext=-56.798017578125+-14.26017890625+-56.578291015625+-14.04045234375map_size=1217+680imgxy=1217+680img.x=608.5img.y=340

 generated that error :

msMSSQL2008LayerGetShape(): Query error. Error executing MSSQL2008 SQL
statement: SELECT convert(varchar(max), oid),convert(varchar(max),
codigouf),convert(varchar(max), codigoregiao),convert(varchar(max),
nomeuf),convert(varchar(max),
siglauf),the_geom.STAsBinary(),convert(varchar(20), oid) from viwgeo_uf
WHERE
the_geom.STIntersects(Geometry::STGeomFromText('POLYGON((-56.6879924952826
-14.1504774265924,-56.6879924952826 -14.1504774265924,-56.6879924952826
-14.1504774265924,-56.6879924952826 -14.1504774265924,-56.6879924952826
-14.1504774265924))',0)) = 1

System.FormatException: 24305: The Polygon input is not valid because the
ring does not have enough distinct points. Each ring of a polygon must
contain at least three distinct points. System.FormatException: at
Microsoft.SqlServer.Types.Validator.Execute(Transition transition) at
Microsoft.SqlServer.Types.Validator.EndFigure() at
Microsoft.SqlServer.Types.ForwardingGeoDataSink.EndFigure() at
Microsoft.SqlServer.Types.OpenGisWktReader.ParseLineStringText() at
Microsoft.SqlServer.Types.OpenGisWktReader.ParsePolygonText() at
Microsoft.SqlServer.Types.OpenGisWktReader.ParseTaggedText(OpenGisType type)
at Microsoft.SqlServer.Types.OpenGisWktReader.Read(OpenGisType type, Int32
srid) at Microsoft.SqlServer.Types.SqlGeometry.GeometryFromText(OpenGisType
type, SqlChars text, Int32 srid) at
Microsoft.SqlServer.Types.SqlGeometry.STGeom


Paul


On Fri, Oct 30, 2009 at 2:48 PM, Steve Lime steve.l...@dnr.state.mn.uswrote:

 Probably. Does a point query work? I reassigned the ticket to the keeper
 of the SQLServer
 driver in hopes that it gets attention.

 Curiously, have you tried 5.6 at all with SQLServer?

 Steve

  On 10/30/2009 at 12:22 PM, in message
 33fad6880910301022s40c76f88ha011362964e21...@mail.gmail.com, Paul
  james
 paulj...@gmail.com wrote:
  I think so...
  Is it related with that ticket?
  http://trac.osgeo.org/mapserver/ticket/3058
 
  Paul
 
  On Fri, Oct 30, 2009 at 1:53 PM, Steve Lime
 steve.l...@dnr.state.mn.uswrote:
 
  Odd. Unfortunately I can't debug anything related to MSSQL2008,
 perhaps
  the driver isn't
  supporting functions necessary to complete a query?
 
  Steve
 
   On 10/30/2009 at 6:33 AM, in message
  33fad6880910300433i342c619am99935a6078966...@mail.gmail.com, Paul
   james
  paulj...@gmail.com wrote:
   Hey Steve...
  
   Yes I had...
   QUERYMAP
COLOR 255 0 0
SIZE -1 -1
STATUS ON
STYLE hilite
   END
  
   With Status OFF I got that :
   Content-type: text/html
  
   Using MSSQL2008
  
   Paul
  
  
   On Thu, Oct 29, 2009 at 6:13 PM, Steve Lime
  steve.l...@dnr.state.mn.uswrote:
  
   Do you have a querymap object configured with status on? I would
  guess
   so in order to see that
   error. What happens if you set STATUS OFF in the querymap?
  
On 10/29/2009 at 7:57 AM, in message
   33fad6880910290557m71ee3fdatd470590e3256f...@mail.gmail.com,
 Paul
   james
   paulj...@gmail.com wrote:
 Hello guys...
Ím got this error when trying to execute a Nquery :
   
  
  
  
 
 
 

 http://localhost/cgi-bin-54/mapserv.exe?map=Map.mapmode=nqueryLAYERS=TESTmape

 
 
   x
  
   
  
  
  
 
 
 

 t=-58.358076171875+-11.42570625+-57.193525390625+-10.37101875imgext=-58.35807
 
   61718
   
  
  
  
 
 
 

 75+-11.42570625+-57.193525390625+-10.37101875map_size=1221+762imgxy=1221+762i
 
   mgb
ox=0+0+1221+762
   
msDrawMap(): Image handling error. Failed to draw layer named
   'TEST'.
   
But, If I execute the same url with mode=map, the image is
   generated
fine... What this error means?
   
   
TEST Layer
   
 LAYER
  NAME TEST
  GROUP TE
  TYPE polygon
  STATUS ON
  CONNECTIONTYPE PLUGIN
  PLUGIN msplugin_mssql2008.dll
  CONNECTION server=X;Integrated
   Security=false;database=X;uid=X;pwd=X
  DATA the_geom from viw USING UNIQUE oid USING SRID=0
  CLASS
   TEMPLATE template.html
   NAME X
   STYLE
OUTLINECOLOR 150 150 150
WIDTH 1
   END
  END
 END
   
Thanks
   
Paul
  
 

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


Re: [mapserver-users] Help with NQuery error (CGI)

2009-10-30 Thread Paul james
Hey Steve...

Yes I had...
QUERYMAP
 COLOR 255 0 0
 SIZE -1 -1
 STATUS ON
 STYLE hilite
END

With Status OFF I got that :
Content-type: text/html

Using MSSQL2008

Paul


On Thu, Oct 29, 2009 at 6:13 PM, Steve Lime steve.l...@dnr.state.mn.uswrote:

 Do you have a querymap object configured with status on? I would guess
 so in order to see that
 error. What happens if you set STATUS OFF in the querymap?

  On 10/29/2009 at 7:57 AM, in message
 33fad6880910290557m71ee3fdatd470590e3256f...@mail.gmail.com, Paul
 james
 paulj...@gmail.com wrote:
   Hello guys...
  Ím got this error when trying to execute a Nquery :
 

 http://localhost/cgi-bin-54/mapserv.exe?map=Map.mapmode=nqueryLAYERS=TESTmapex

 

 t=-58.358076171875+-11.42570625+-57.193525390625+-10.37101875imgext=-58.3580761718
 

 75+-11.42570625+-57.193525390625+-10.37101875map_size=1221+762imgxy=1221+762imgb
  ox=0+0+1221+762
 
  msDrawMap(): Image handling error. Failed to draw layer named
 'TEST'.
 
  But, If I execute the same url with mode=map, the image is
 generated
  fine... What this error means?
 
 
  TEST Layer
 
   LAYER
NAME TEST
GROUP TE
TYPE polygon
STATUS ON
CONNECTIONTYPE PLUGIN
PLUGIN msplugin_mssql2008.dll
CONNECTION server=X;Integrated
 Security=false;database=X;uid=X;pwd=X
DATA the_geom from viw USING UNIQUE oid USING SRID=0
CLASS
 TEMPLATE template.html
 NAME X
 STYLE
  OUTLINECOLOR 150 150 150
  WIDTH 1
 END
END
   END
 
  Thanks
 
  Paul

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


Re: [mapserver-users] Help with NQuery error (CGI)

2009-10-30 Thread Paul james
I think so...
Is it related with that ticket?
http://trac.osgeo.org/mapserver/ticket/3058

Paul

On Fri, Oct 30, 2009 at 1:53 PM, Steve Lime steve.l...@dnr.state.mn.uswrote:

 Odd. Unfortunately I can't debug anything related to MSSQL2008, perhaps
 the driver isn't
 supporting functions necessary to complete a query?

 Steve

  On 10/30/2009 at 6:33 AM, in message
 33fad6880910300433i342c619am99935a6078966...@mail.gmail.com, Paul
  james
 paulj...@gmail.com wrote:
  Hey Steve...
 
  Yes I had...
  QUERYMAP
   COLOR 255 0 0
   SIZE -1 -1
   STATUS ON
   STYLE hilite
  END
 
  With Status OFF I got that :
  Content-type: text/html
 
  Using MSSQL2008
 
  Paul
 
 
  On Thu, Oct 29, 2009 at 6:13 PM, Steve Lime
 steve.l...@dnr.state.mn.uswrote:
 
  Do you have a querymap object configured with status on? I would
 guess
  so in order to see that
  error. What happens if you set STATUS OFF in the querymap?
 
   On 10/29/2009 at 7:57 AM, in message
  33fad6880910290557m71ee3fdatd470590e3256f...@mail.gmail.com, Paul
  james
  paulj...@gmail.com wrote:
Hello guys...
   Ím got this error when trying to execute a Nquery :
  
 
 
 

 http://localhost/cgi-bin-54/mapserv.exe?map=Map.mapmode=nqueryLAYERS=TESTmape

  x
 
  
 
 
 

 t=-58.358076171875+-11.42570625+-57.193525390625+-10.37101875imgext=-58.35807
  61718
  
 
 
 

 75+-11.42570625+-57.193525390625+-10.37101875map_size=1221+762imgxy=1221+762i
  mgb
   ox=0+0+1221+762
  
   msDrawMap(): Image handling error. Failed to draw layer named
  'TEST'.
  
   But, If I execute the same url with mode=map, the image is
  generated
   fine... What this error means?
  
  
   TEST Layer
  
LAYER
 NAME TEST
 GROUP TE
 TYPE polygon
 STATUS ON
 CONNECTIONTYPE PLUGIN
 PLUGIN msplugin_mssql2008.dll
 CONNECTION server=X;Integrated
  Security=false;database=X;uid=X;pwd=X
 DATA the_geom from viw USING UNIQUE oid USING SRID=0
 CLASS
  TEMPLATE template.html
  NAME X
  STYLE
   OUTLINECOLOR 150 150 150
   WIDTH 1
  END
 END
END
  
   Thanks
  
   Paul
 

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


[mapserver-users] Help with NQuery error (CGI)

2009-10-29 Thread Paul james
Hello guys...
I´m got this error when trying to execute a Nquery :
http://localhost/cgi-bin-54/mapserv.exe?map=Map.mapmode=nqueryLAYERS=TESTmapext=-58.358076171875+-11.42570625+-57.193525390625+-10.37101875imgext=-58.358076171875+-11.42570625+-57.193525390625+-10.37101875map_size=1221+762imgxy=1221+762imgbox=0+0+1221+762

msDrawMap(): Image handling error. Failed to draw layer named 'TEST'.

But, If I execute the same url with mode=map, the image is generated
fine... What this error means?


TEST Layer

 LAYER
  NAME TEST
  GROUP TE
  TYPE polygon
  STATUS ON
  CONNECTIONTYPE PLUGIN
  PLUGIN msplugin_mssql2008.dll
  CONNECTION server=X;Integrated Security=false;database=X;uid=X;pwd=X
  DATA the_geom from viw USING UNIQUE oid USING SRID=0
  CLASS
   TEMPLATE template.html
   NAME X
   STYLE
OUTLINECOLOR 150 150 150
WIDTH 1
   END
  END
 END

Thanks

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


Re: [mapserver-users] Help with NQuery error (CGI) using MSSQL2008

2009-10-29 Thread Paul james
It´s not the case... I´m using Layers on URL and the output is in
template.html...

I executed the same test using POSTGIS connection, and It worked fine ,,, I
got my template filled up as result...
Is there any difference using nquery with MSSQL2008 or maybe is a bug ?

Thanks

Paul

On Thu, Oct 29, 2009 at 11:06 AM, Bob Basques
bob.basq...@ci.stpaul.mn.uswrote:

  I'm no expert on this one, but . . .

 If you do an NQUERY Mapserver needs to know which layer you plan on
 querying, either by name, explicitly through the call (layer=??) or by
 having the mapfile give them up by default (STATUS=default ??), either way,
 mapserver need to know somehow what to apply the query to, I think.

 Also, how do you want mapserver to output the results of the NQUERY? by
 templated output or . . .  you can use NQUERYMAP I believe to get an image
 back of the NQUERY . . .

 bobb



  Paul james paulj...@gmail.com wrote:

 Hello guys...

 I´m got this error when trying to execute a Nquery :


 http://localhost/cgi-bin-54/mapserv.exe?map=Map.mapmode=nqueryLAYERS=TESTmapext=-58.358076171875+-11.42570625+-57.193525390625+-10.37101875imgext=-58.358076171875+-11.42570625+-57.193525390625+-10.37101875map_size=1221+762imgxy=1221+762imgbox=0+0+1221+762

  msDrawMap(): Image handling error. Failed to draw layer named 'TEST'.

 But, If I execute the same url with mode=map, the image is generated
 fine... What this error means?

  TEST Layer

  LAYER
 NAME TEST
 GROUP TE
 TYPE polygon
 STATUS ON
 CONNECTIONTYPE PLUGIN
 PLUGIN msplugin_mssql2008.dll
 CONNECTION server=X;Integrated Security=false;database=X;uid=X;pwd=X
 DATA the_geom from viw USING UNIQUE oid USING SRID=0
 CLASS
 TEMPLATE template.html
 NAME X
 STYLE
 OUTLINECOLOR 150 150 150
 WIDTH 1
 END
 END
 END


 Thanks

 Paul

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


Re: [mapserver-users] Mapserver CGI 5.4 crashed my app (Windows 2003)

2009-10-22 Thread Paul james
Hi Tamas!
Thanks...

Yes, thats working on Windows 2003/XP...
The problem is happening only on Windows 7 (IIS 7.5)  now...
  HTTP Error 502.2 - Bad Gateway

Do you have any idea what is that? Its work fine with postgis...
Paul


On Wed, Oct 21, 2009 at 5:00 PM, Tamas Szekeres szeker...@gmail.com wrote:

 Paul,

 I've set up your data but it works for me:

 http://vbkto.dyndns.org/cgi-bin/mapserv.exe?mode=mapmap=mssql2008.map

 tried with the following binaries:

 http://vbkto.dyndns.org/sdk/release-1500-gdal-1-6-mapserver-5-4.zip
 http://vbkto.dyndns.org/sdk/release-1500-gdal-mapserver.zip

 My mapfile:


 MAP
 NAME SQL2008
 STATUS ON
  SIZE 500 500
 IMAGETYPE PNG
 IMAGECOLOR 254 254 254

 EXTENT -79.7892 -44.2426 -24.9958 -9.11775

 LAYER

 NAME tblGeo_AmericaSul
 TYPE POLYGON
 CONNECTIONTYPE PLUGIN
 PLUGIN msplugin_mssql2008.dll
 CONNECTION
 server=.\MSSQLSERVER2008;database=Maps;Integrated Security=true
 DATA the_geom from tblGeo_AmericaSul USING UNIQUE
 CodigoAmericaSul USING SRID=0
 STATUS DEFAULT

 CLASS
 STYLE
 COLOR 255 0 0
 END

 END
 END
 END


 Best regards,

 Tamas





 2009/10/21 Paul james paulj...@gmail.com

  Tamas, the actual error generated is:
 HTTP Error 502.2 - Bad Gateway
 The specified CGI application misbehaved by not returning a complete set
 of HTTP headers. The headers it did return are .

 Using Windos 7 (IIS 7)

 Testing on Windows 2003, I got just a Blank image (no error message)...

 You can use the same mssql2008 data I sended you last time...

 Paul

   On Tue, Oct 20, 2009 at 4:56 PM, Tamas Szekeres szeker...@gmail.comwrote:

 Paul,

 I couldn't reproduce your problem by using my data and the recent mapserv
 version.
 http://vbkto.dyndns.org/cgi-bin/mapserv.exe?mode=mapmap=sql2008.map

 Could you provide your data for testing?

 Best regards,

 Tamas


 2009/10/20 Paul james paulj...@gmail.com

  Hello Tamas
 Did you test that?
 Paul
   On Mon, Oct 19, 2009 at 3:40 PM, Paul james paulj...@gmail.comwrote:

  Testing :

 http://localhost/cgi-bin-54/mapserv.exe?map=C:/Mapserver/Mapfile/map.mapmode=map

 Using Postgis connection works fine with same setup...
 Using that mapfile with MAPSCRIPT/C# works fine as well...

 The problem is CGI + MSSQL2008 Plugin


 Mapfile:

  MAP
  EXTENT -79.7892 -34.2426 -24.9958 6.11775
  FONTSET ..\Fontes\Fontes.txt
  IMAGECOLOR 230 254 254
  IMAGETYPE png
  SIZE 400 200
  STATUS ON
  UNITS dd
  NAME Geral
  OUTPUTFORMAT
   NAME png
   MIMETYPE image/png
   DRIVER GD/PNG
   EXTENSION png
   IMAGEMODE PC256
   TRANSPARENT TRUE
  END

  PROJECTION
   'proj=longlat'
   'ellps=WGS84'
   'datum=WGS84'
   'no_defs'
  END

  WEB
   IMAGEPATH 'C:\map\temp'
   IMAGEURL '/tmp/'
   QUERYFORMAT text/html
   LEGENDFORMAT text/html
   BROWSEFORMAT text/html
  END

  LEGEND
   STATUS ON
   KEYSIZE 18 12
   KEYSPACING 10 5
   IMAGECOLOR 255 255 255
   LABEL
TYPE BITMAP
SIZE MEDIUM
COLOR 0 0 89
   END
   TEMPLATE ..\template.html
  END

 QUERYMAP
   COLOR 255 0 0
   SIZE -1 -1
   STATUS ON
   STYLE hilite
  END

  REFERENCE
   EXTENT -79.7892 -34.2426 -24.9958 6.11775
   IMAGE ..\reference.png
   STATUS on
   SIZE 221 150
   MINBOXSIZE 5
   MAXBOXSIZE 150
   COLOR -1 -1 -1
   OUTLINECOLOR 255 0 0
   MARKERSIZE 8
  END

   LAYER
   NAME test
   GROUP tests
   TYPE POLYGON
   STATUS ON
   CONNECTIONTYPE PLUGIN
   PLUGIN msplugin_mssql2008.dll
   CONNECTION server=x;Integrated
 Security=false;database=x;uid=x;pwd=x
   DATA the_geom from viwgeo_paisbrasil USING UNIQUE oid USING SRID=0
   CLASS
COLOR 255 200 255
   END
  END
 END






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


Re: [mapserver-users] Mapserver CGI 5.4 crashed my app (Windows 2003)

2009-10-22 Thread Paul james
I got it work...
It was a IIS 7.5 Mapping problem...
My bad...
Sorry

Paul

On Thu, Oct 22, 2009 at 12:03 PM, Milo van der Linden mlin...@zeelandnet.nl
 wrote:

 I had my IIS crash so severe after a windows update once that it forced
 me to switch to ms4w...

 Mostly, it has to do with rights/authentication. Are you sure your IIS
 user is allowed to connect to your database?

 Daniel Walton schreef:
  Paul,
 
  I got various errors with MapServer running in IIS 7.5 until I
  installed the latest build of PHP. Don't know if you've done that
  already, but I thought I would mention it.
 
  Regards,
 
  Dan Walton
  gisfiretools.com http://gisfiretools.com
 
 
  On Thu, Oct 22, 2009 at 9:29 AM, Paul james paulj...@gmail.com
  mailto:paulj...@gmail.com wrote:
 
  Hi Tamas!
  Thanks...
 
  Yes, thats working on Windows 2003/XP...
  The problem is happening only on Windows 7 (IIS 7.5)  now...
 
 
 
 
 
  HTTP Error 502.2 - Bad Gateway
 
  Do you have any idea what is that? Its work fine with postgis...
 
  Paul
 
 
  On Wed, Oct 21, 2009 at 5:00 PM, Tamas Szekeres
   szeker...@gmail.com mailto:szeker...@gmail.com wrote:
 
  Paul,
 
  I've set up your data but it works for me:
 
 
 http://vbkto.dyndns.org/cgi-bin/mapserv.exe?mode=mapmap=mssql2008.map
  
 http://vbkto.dyndns.org/cgi-bin/mapserv.exe?mode=mapmap=mssql2008.map
 
  tried with the following binaries:
 
 
 http://vbkto.dyndns.org/sdk/release-1500-gdal-1-6-mapserver-5-4.zip
  http://vbkto.dyndns.org/sdk/release-1500-gdal-mapserver.zip
 
  My mapfile:
 
 
  MAP
  NAME SQL2008
  STATUS ON
   SIZE 500 500
  IMAGETYPE PNG
  IMAGECOLOR 254 254 254
 
  EXTENT -79.7892 -44.2426 -24.9958 -9.11775
 
  LAYER
 
  NAME tblGeo_AmericaSul
  TYPE POLYGON
 
  CONNECTIONTYPE PLUGIN
  PLUGIN msplugin_mssql2008.dll
  CONNECTION
  server=.\MSSQLSERVER2008;database=Maps;Integrated Security=true
  DATA the_geom from tblGeo_AmericaSul USING
  UNIQUE CodigoAmericaSul USING SRID=0
  STATUS DEFAULT
 
  CLASS
  STYLE
  COLOR 255 0 0
  END
 
  END
  END
  END
 
 
  Best regards,
 
  Tamas
 
 
 
 
 
  2009/10/21 Paul james paulj...@gmail.com
  mailto:paulj...@gmail.com
 
  Tamas, the actual error generated is:
  HTTP Error 502.2 - Bad Gateway
 
  The specified CGI application misbehaved by not returning
  a complete set of HTTP headers. The headers it did return
  are .
 
  Using Windos 7 (IIS 7)
 
  Testing on Windows 2003, I got just a Blank image (no
  error message)...
 
  You can use the same mssql2008 data I sended you last time...
 
  Paul
 
  On Tue, Oct 20, 2009 at 4:56 PM, Tamas Szekeres
  szeker...@gmail.com mailto:szeker...@gmail.com wrote:
 
  Paul,
 
  I couldn't reproduce your problem by using my data and
  the recent mapserv version.
 
 http://vbkto.dyndns.org/cgi-bin/mapserv.exe?mode=mapmap=sql2008.map
  
 http://vbkto.dyndns.org/cgi-bin/mapserv.exe?mode=mapmap=sql2008.map
 
  Could you provide your data for testing?
 
  Best regards,
 
  Tamas
 
 
  2009/10/20 Paul james paulj...@gmail.com
  mailto:paulj...@gmail.com
 
  Hello Tamas
  Did you test that?
  Paul
  On Mon, Oct 19, 2009 at 3:40 PM, Paul james
  paulj...@gmail.com mailto:paulj...@gmail.com
   wrote:
 
   Testing :
 
 http://localhost/cgi-bin-54/mapserv.exe?map=C:/Mapserver/Mapfile/map.mapmode=map
  
 http://localhost/cgi-bin-54/mapserv.exe?map=C:/Mapserver/Mapfile/map.mapmode=map
 
 
  Using Postgis connection works fine with same
  setup...
  Using that mapfile with MAPSCRIPT/C# works
  fine as well...
 
  The problem is CGI + MSSQL2008 Plugin
 
 
  Mapfile:
 
   MAP
   EXTENT -79.7892 -34.2426 -24.9958 6.11775
   FONTSET ..\Fontes\Fontes.txt
   IMAGECOLOR 230 254 254
   IMAGETYPE png
   SIZE 400 200
   STATUS

Re: [mapserver-users] Mapserver CGI 5.4 crashed my app (Windows 2003)

2009-10-21 Thread Paul james
Tamas, the actual error generated is:
HTTP Error 502.2 - Bad Gateway
The specified CGI application misbehaved by not returning a complete set of
HTTP headers. The headers it did return are .

Using Windos 7 (IIS 7)

Testing on Windows 2003, I got just a Blank image (no error message)...

You can use the same mssql2008 data I sended you last time...

Paul

On Tue, Oct 20, 2009 at 4:56 PM, Tamas Szekeres szeker...@gmail.com wrote:

 Paul,

 I couldn't reproduce your problem by using my data and the recent mapserv
 version.
 http://vbkto.dyndns.org/cgi-bin/mapserv.exe?mode=mapmap=sql2008.map

 Could you provide your data for testing?

 Best regards,

 Tamas


 2009/10/20 Paul james paulj...@gmail.com

  Hello Tamas
 Did you test that?
 Paul
   On Mon, Oct 19, 2009 at 3:40 PM, Paul james paulj...@gmail.com wrote:

  Testing :

 http://localhost/cgi-bin-54/mapserv.exe?map=C:/Mapserver/Mapfile/map.mapmode=map

 Using Postgis connection works fine with same setup...
 Using that mapfile with MAPSCRIPT/C# works fine as well...

 The problem is CGI + MSSQL2008 Plugin


 Mapfile:

  MAP
  EXTENT -79.7892 -34.2426 -24.9958 6.11775
  FONTSET ..\Fontes\Fontes.txt
  IMAGECOLOR 230 254 254
  IMAGETYPE png
  SIZE 400 200
  STATUS ON
  UNITS dd
  NAME Geral
  OUTPUTFORMAT
   NAME png
   MIMETYPE image/png
   DRIVER GD/PNG
   EXTENSION png
   IMAGEMODE PC256
   TRANSPARENT TRUE
  END

  PROJECTION
   'proj=longlat'
   'ellps=WGS84'
   'datum=WGS84'
   'no_defs'
  END

  WEB
   IMAGEPATH 'C:\map\temp'
   IMAGEURL '/tmp/'
   QUERYFORMAT text/html
   LEGENDFORMAT text/html
   BROWSEFORMAT text/html
  END

  LEGEND
   STATUS ON
   KEYSIZE 18 12
   KEYSPACING 10 5
   IMAGECOLOR 255 255 255
   LABEL
TYPE BITMAP
SIZE MEDIUM
COLOR 0 0 89
   END
   TEMPLATE ..\template.html
  END

 QUERYMAP
   COLOR 255 0 0
   SIZE -1 -1
   STATUS ON
   STYLE hilite
  END

  REFERENCE
   EXTENT -79.7892 -34.2426 -24.9958 6.11775
   IMAGE ..\reference.png
   STATUS on
   SIZE 221 150
   MINBOXSIZE 5
   MAXBOXSIZE 150
   COLOR -1 -1 -1
   OUTLINECOLOR 255 0 0
   MARKERSIZE 8
  END

   LAYER
   NAME test
   GROUP tests
   TYPE POLYGON
   STATUS ON
   CONNECTIONTYPE PLUGIN
   PLUGIN msplugin_mssql2008.dll
   CONNECTION server=x;Integrated Security=false;database=x;uid=x;pwd=x
   DATA the_geom from viwgeo_paisbrasil USING UNIQUE oid USING SRID=0
   CLASS
COLOR 255 200 255
   END
  END
 END




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


Re: [mapserver-users] Mapserver CGI 5.4 crashed my app (Windows 2003)

2009-10-19 Thread Paul james
 Testing :
http://localhost/cgi-bin-54/mapserv.exe?map=C:/Mapserver/Mapfile/map.mapmode=map

Using Postgis connection works fine with same setup...
Using that mapfile with MAPSCRIPT/C# works fine as well...

The problem is CGI + MSSQL2008 Plugin


Mapfile:

 MAP
 EXTENT -79.7892 -34.2426 -24.9958 6.11775
 FONTSET ..\Fontes\Fontes.txt
 IMAGECOLOR 230 254 254
 IMAGETYPE png
 SIZE 400 200
 STATUS ON
 UNITS dd
 NAME Geral
 OUTPUTFORMAT
  NAME png
  MIMETYPE image/png
  DRIVER GD/PNG
  EXTENSION png
  IMAGEMODE PC256
  TRANSPARENT TRUE
 END

 PROJECTION
  'proj=longlat'
  'ellps=WGS84'
  'datum=WGS84'
  'no_defs'
 END

 WEB
  IMAGEPATH 'C:\map\temp'
  IMAGEURL '/tmp/'
  QUERYFORMAT text/html
  LEGENDFORMAT text/html
  BROWSEFORMAT text/html
 END

 LEGEND
  STATUS ON
  KEYSIZE 18 12
  KEYSPACING 10 5
  IMAGECOLOR 255 255 255
  LABEL
   TYPE BITMAP
   SIZE MEDIUM
   COLOR 0 0 89
  END
  TEMPLATE ..\template.html
 END

QUERYMAP
  COLOR 255 0 0
  SIZE -1 -1
  STATUS ON
  STYLE hilite
 END

 REFERENCE
  EXTENT -79.7892 -34.2426 -24.9958 6.11775
  IMAGE ..\reference.png
  STATUS on
  SIZE 221 150
  MINBOXSIZE 5
  MAXBOXSIZE 150
  COLOR -1 -1 -1
  OUTLINECOLOR 255 0 0
  MARKERSIZE 8
 END

  LAYER
  NAME test
  GROUP tests
  TYPE POLYGON
  STATUS ON
  CONNECTIONTYPE PLUGIN
  PLUGIN msplugin_mssql2008.dll
  CONNECTION server=x;Integrated Security=false;database=x;uid=x;pwd=x
  DATA the_geom from viwgeo_paisbrasil USING UNIQUE oid USING SRID=0
  CLASS
   COLOR 255 200 255
  END
 END
END
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Mapserver CGI 5.4 crashed my app (Windows 2003)

2009-10-16 Thread Paul james
Hello !
I got the same error again, but using now MSSQL2008 :
The specified CGI application misbehaved by not returning a complete set of
HTTP headers. The headers it did return are .

Using MSSQL2008 plugin (CGI) ... With Postgis is working great...

Tried with :
- MSVC2008 (Win32) -development
- MSVC2008 (Win32) -stable

Any idea?

Thanks


On Tue, Jun 23, 2009 at 11:04 AM, stela anders stelaand...@gmail.comwrote:

  Great Tamas! Worked now...
 You found the problem!  Congrats!
 :*


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


Re: [mapserver-users] Problem using getShape with MsSql2008 (Mapscript C#)

2009-08-07 Thread Paul james
The layer geometry is fine...
I´m sending a shape property screenshot...

Paul

On Fri, Aug 7, 2009 at 5:25 AM, Tamas Szekeres szeker...@gmail.com wrote:

 Paul,

 There is a function (find_bounds) calculating the bounds in mapmssql2008.c
 which should provide correct results.
 Could you check whether the returned geometry is correct by dumping the
 point coordinates of each lines in mapscript?

 Best regards,

 Tamas


 2009/8/6 Paul james paulj...@gmail.com

 Just an update...
 The shape values are all there... The only thing is wrong is the bounds
 (-1) ...


 On Wed, Aug 5, 2009 at 5:44 PM, Paul james paulj...@gmail.com wrote:

 I´ll check...
 But the same layer/id worked fine using Postgis... So I should be a
 bug...

 Paul


 On Wed, Aug 5, 2009 at 5:38 PM, Tamas Szekeres szeker...@gmail.comwrote:

 Hi,

 I think you should check the sql statement submitted by the driver by
 using the SQL Profiler. I suspect no records have been retrieved during the
 fetch.

 Best regards,

 Tamas


 2009/8/5 Paul james paulj...@gmail.com

  Hello guys...
 That code is working fine with Postgis:

 _layer.open();
 var _shape = new shapeObj((int)_layer.type);
 _layer.getShape(_shape, 0, __id.ToInt32());

 The _shape.bounds are all -1 using MsSql2008 ...

 Any idea?

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






attachment: shape.PNG___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Problem using getShape with MsSql2008 (Mapscript C#)

2009-08-06 Thread Paul james
Just an update...
The shape values are all there... The only thing is wrong is the bounds (-1)
...

On Wed, Aug 5, 2009 at 5:44 PM, Paul james paulj...@gmail.com wrote:

 I´ll check...
 But the same layer/id worked fine using Postgis... So I should be a bug...

 Paul


 On Wed, Aug 5, 2009 at 5:38 PM, Tamas Szekeres szeker...@gmail.comwrote:

 Hi,

 I think you should check the sql statement submitted by the driver by
 using the SQL Profiler. I suspect no records have been retrieved during the
 fetch.

 Best regards,

 Tamas


 2009/8/5 Paul james paulj...@gmail.com

  Hello guys...
 That code is working fine with Postgis:

 _layer.open();
 var _shape = new shapeObj((int)_layer.type);
 _layer.getShape(_shape, 0, __id.ToInt32());

 The _shape.bounds are all -1 using MsSql2008 ...

 Any idea?

 ___
 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] [OffTopic]Convert Postgis table to MSSQL 2008 ...

2009-07-22 Thread Paul james
Hello guys...
How can I convert a Postgis table to MS SQL 2008?

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


Re: [mapserver-users] Zoom to given coordinate(lat/lon) using Mapscript...

2009-07-15 Thread Paul james
Thanks Tamas!


On Tue, Jul 14, 2009 at 5:30 PM, Tamas Szekeres szeker...@gmail.com wrote:

 Paul,

 Assuming the desired coordinates are in the same spatial reference system
 as the layer you could use mapObj.setCenter and mapObj.scaleExtent.

 Best regards,

 Tamas



 2009/7/14 Paul james paulj...@gmail.com

 How can I do that?

 Paul

 ___
 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] Zoom to given coordinate(lat/lon) using Mapscript...

2009-07-14 Thread Paul james
How can I do that?

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


Re: [mapserver-users] Querying map using CGI ...

2009-06-24 Thread Paul james
Thanks Steve!
Thats grea...
But I´m looking for more material about that, without sucefully...
Could you point me docs/tutorial/specification about templates/query?

Paul

On Tue, Jun 23, 2009 at 7:09 PM, Steve Lime steve.l...@dnr.state.mn.uswrote:

 The CGI provides to results via templates. Templates operate on the
 resultCacheMemberObj
 contents and do a layer.getFeature behind the scenes. You need only
 concern yourself
 with the presentation piece. Through templates you can:

  - output, and to a certain extent format, attributes
  - output and format coordinates and bounding boxes
  - limit the number of features output
  - control output order of layers
  - define custom mime-types

 RFC 36 is a good place to start for the newer template support. I think
 I've posted a few
 examples to the list as well.
 (http://mapserver.org/development/rfc/ms-rfc-36.html)

 Steve

  On 6/23/2009 at 9:42 AM, in message
 33fad6880906230742o2036ea6ctae3a3cc003145...@mail.gmail.com, Paul
 james
 paulj...@gmail.com wrote:
  Thanks Steve! Great explanation!
  But, in mapscript I got the querýs result getting
 resultCacheMemberObj and
  layer.getFeature...
  How can I do something like that using cgi?
 
  Paul
 
 
  On Mon, Jun 22, 2009 at 6:29 PM, Steve Lime
 steve.l...@dnr.state.mn.uswrote:
 
  Querying is controlled via the mode parameter. Mode=query does a
 point
  query returning at most 1 result in one layer. Mode=nquery allows
 you
  to query multiple layers and return multiple results from either a
 point or
  a rect. MapServer looks at the various additional supplied
 parameters to
  decide whether to do a point or rect query.
 
  For example, this url will drop a point through all queryable layers
 that
  have status DEFAULT (since I'm not explicitly turning anything on)
 
 
 http://mapserv.org/cgi-bin/mapserv?map=foo.mapmapxy=x+ymode=nquery

 
  and this will do a bbox query:
 
 
 
 

 http://mapserv.org/cgi-bin/mapserv?map=foo.mapmapext=minx+miny+maxx+maxymode=n

  query
 
  You can turn layers on with the layer or layers parameters and can
 restrict
  queries to one layer (if necessary) using qlayer.
 
   mode=query ~ queryByPoint with MS_SINGLE
   mode=nquery ~ queryByPoint with MS_MULTIPLE or queryByRect
 
  The qlayer parameter has the effect of running the query methods on
 a
  layerObj while without it you're running on the whole mapObj.
 
  Does this help?
 
  Steve
 
   On 6/22/2009 at 4:02 PM, in message
  33fad6880906221402qde8375bj252c48b367d7e...@mail.gmail.com, Paul
 james
  paulj...@gmail.com wrote:
   Hello guys, I pretty lost with CGI...
   Using mapscript, I can get query results with functions
 queryByPoint and
   queryByRect...
   How can I do that in CGI mode?
  
   Thanks
  
   Paul
 
 

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


Re: [mapserver-users] Querying map using CGI ...

2009-06-23 Thread Paul james
Thanks Steve! Great explanation!
But, in mapscript I got the query´s result getting resultCacheMemberObj and
layer.getFeature...
How can I do something like that using cgi?

Paul


On Mon, Jun 22, 2009 at 6:29 PM, Steve Lime steve.l...@dnr.state.mn.uswrote:

 Querying is controlled via the mode parameter. Mode=query does a point
 query returning at most 1 result in one layer. Mode=nquery allows you
 to query multiple layers and return multiple results from either a point or
 a rect. MapServer looks at the various additional supplied parameters to
 decide whether to do a point or rect query.

 For example, this url will drop a point through all queryable layers that
 have status DEFAULT (since I'm not explicitly turning anything on)

  http://mapserv.org/cgi-bin/mapserv?map=foo.mapmapxy=x+ymode=nquery

 and this will do a bbox query:


 http://mapserv.org/cgi-bin/mapserv?map=foo.mapmapext=minx+miny+maxx+maxymode=nquery

 You can turn layers on with the layer or layers parameters and can restrict
 queries to one layer (if necessary) using qlayer.

  mode=query ~ queryByPoint with MS_SINGLE
  mode=nquery ~ queryByPoint with MS_MULTIPLE or queryByRect

 The qlayer parameter has the effect of running the query methods on a
 layerObj while without it you're running on the whole mapObj.

 Does this help?

 Steve

  On 6/22/2009 at 4:02 PM, in message
 33fad6880906221402qde8375bj252c48b367d7e...@mail.gmail.com, Paul james
 paulj...@gmail.com wrote:
  Hello guys, I pretty lost with CGI...
  Using mapscript, I can get query results with functions queryByPoint and
  queryByRect...
  How can I do that in CGI mode?
 
  Thanks
 
  Paul


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


Re: [mapserver-users] Re: Upgrading 5.2 - 5.4 generating CGI error on IIS(5.1 and 6.0) ... Possible BUG?

2009-06-23 Thread Paul james
Tamas, You are right !
It is working fine now...

Thanks

Paul

On Tue, Jun 23, 2009 at 11:47 AM, Tamas Szekeres szeker...@gmail.comwrote:

 Paul,

 The problem described in this thread sounds like it may be dedicated to a
 problem discovered recently in geos-3-1 branch causing the application to
 crash/hang during the process termination. You said you've been using MS4W
 3.0 beta2 or the packages from
 http://vbkto.dyndns.org:1280/sdk/Default.aspx both have been using
 geos-3-1 in the packages up to this time.
 Since fastCGI keeps mapserv.exe running that would explain why this issue
 doesn't come up with the FCGI mode.

 I've now reverted to use geos-3-0 in the packages at
 http://vbkto.dyndns.org:1280/sdk/Default.aspx

 Feel free to test with the recent versions and let me know about the
 details.

 Best regards,

 Tamas



 2009/6/10 Paul james paulj...@gmail.com

 I tested with a Shapefile, same bug with 5.4 and CGI Working fine with
 fastcgi...

 Paul



 On Wed, Jun 10, 2009 at 1:14 PM, Tamas Szekeres szeker...@gmail.comwrote:

 It would anyway be helpful if you could describe the steps to reproduce
 the issue. I'm afraid I won't be able to find out the problem without
 inspecting that locally by using a debug version of the builds. There have
 been a lot of changes between 5.2 and 5.4 so it's quite difficult to
 identify the location and the related changeset just by looking into the
 change log in the subversion.

 Best regards,

 Tamas



 2009/6/10 Brian Fischer bfisc...@houstoneng.com

  I would agree with Paul.  I am running 5.2 and previous version just
 fine as well.



 *Brian Fischer,* CFM  GIS Project Manager
 *Houston Engineering, Inc.*
 Phone: W: 763.493.4522 / M: 763.229.2734



 *From:* Paul james [mailto:paulj...@gmail.com]
 *Sent:* Wednesday, June 10, 2009 8:46 AM
 *To:* Tamas Szekeres
 *Cc:* Brian Fischer; mapserver-users@lists.osgeo.org; Daniel
 Morissette; Steve Lime

 *Subject:* Re: [mapserver-users] Re: Upgrading 5.2 - 5.4 generating
 CGI error on IIS(5.1 and 6.0) ... Possible BUG?



 I don´t think its related to security settings... I can run the CGI on
 5.2 ... And as well with fastcgi on 5.4 ...
 Anyway I gave all permission to all user in mapserver directory and app
 directory... Nothing changes...

 Anyone test that with Postgis layer? I´m trying to get a shapefile to
 test ...

 Paul

 On Tue, Jun 9, 2009 at 7:02 PM, Tamas Szekeres szeker...@gmail.com
 wrote:

 Paul,

 I've just tried with the latest 5.4 version and worked fine though I'm
 using OGR/mapinfo.tab data source.

 I suspect you may run into a problem related to the possible differences
 in the security settings. Some files may not be accessible by the current
 user executing mapserv.exe which may be IUSR_[computername] for the 
 normal
 CGI and NT AUTHORITY/NETWORK SERVICE for the fast cgi option by default.

 Best regards,

 Tamas

  2009/6/9 Paul james paulj...@gmail.com



 Just one update in my tests...
 Using FASTCGI It worked FINE (mapserver 5.4)...

 I added a bug ticket : http://trac.osgeo.org/mapserver/ticket/3049

 Paul



 On Tue, Jun 2, 2009 at 10:12 AM, Paul james paulj...@gmail.com wrote:

 Probably is a mapserver CGI bug...








 Paul



 On Sat, May 30, 2009 at 11:56 PM, Brian Fischer 
 bfisc...@houstoneng.com wrote:

 Paul,

 Just to let you know you are not alone.  I am experiencing the same
 problem with MS4W 3.0 beta 1 and 2.  I’ve reported it as a bug to the MS4W
 project.  Here’s a link to the bug report
 http://bugzilla.maptools.org/show_bug.cgi?id=2043.   I haven’t heard
 anything back on a solution yet.  I’m not sure if this is a MapServer bug 
 or
 a bug with the way the MS4W package was compiled.  It runs fine of Apache
 for me.



 Brian Fischer

 Houston Engineering, Inc.



 *From:* mapserver-users-boun...@lists.osgeo.org [mailto:
 mapserver-users-boun...@lists.osgeo.org] *On Behalf Of *Paul james
 *Sent:* Friday, May 29, 2009 1:08 PM
 *To:* Steve Lime
 *Cc:* mapserver-users@lists.osgeo.org; Daniel Morissette
 *Subject:* Re: [mapserver-users] Re: Upgrading 5.2 - 5.4 generating
 CGI error on IIS(5.1 and 6.0) ... Possible BUG?




 http://localhost/cgi-bin/mapserv.exe?map=C%3A%2Finetpub%2Fwwwroot%2FOpenlayer%2FFiles%2FMapserver%2FMap.mapmode=mapmap_imagetype=pngmapext=-180+0+-90+90imgext=-180+0+-90+90map_size=256+256imgx=128imgy=128imgxy=256+256

 Paul

 On Fri, May 29, 2009 at 3:01 PM, Steve Lime steve.l...@dnr.state.mn.us
 wrote:

 What's the full URL submitted against the CGI?

  On 5/29/2009 at 12:59 PM, in message
 33fad6880905291059i5602a89q84d7673ddcfff...@mail.gmail.com, Paul
 james

 paulj...@gmail.com wrote:
  1 -  I tried with 1500,1400,1310,development version(1500) and ms4w
 beta...
  2 -  Ím using normal CGI
  3 - My tests are only with Postgis... Íll generate a shapefile to
 test
  later ...
 
  Paul
 
  On Fri, May 29, 2009 at 2:27 PM, Tamas Szekeres szeker...@gmail.com
 wrote:
 
  Hi Paul,
 
  Did you experience the same with the release-1310 and release

[mapserver-users] Querying map using CGI ...

2009-06-22 Thread Paul james
Hello guys, I pretty lost with CGI...
Using mapscript, I can get query results with functions queryByPoint and
queryByRect...
How can I do that in CGI mode?

Thanks

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


Re: [mapserver-users] LABEL problem using CGI...

2009-06-17 Thread Paul james
Thanks!

Paul

On Wed, Jun 17, 2009 at 10:01 AM, David Nugent
dav...@datalinktech.com.auwrote:

 On Wed, 17 Jun 2009 22:31:50 +1000, Paul james paulj...@gmail.com wrote:

  You are right...
 It is Tiled (using OL)...
 In that case, How can I fix that effect?


 This should be in an FAQ :-) It has been answered at least 4 times here in
 the last couple months...

 Add

  PROCESSING LABEL_NO_CLIP=ON

 to your LAYER.

 YYMV, but I've noticed a side-effect of using this that I've been unable to
 quantify. However it does stop the repetition of labels at the boundaries
 so it solves your problem.

 For me it seems to create another problem - clipping of labels at (meta)
 tile
 boundaries regardless what I'm setting LABELCACHE_MAP_EDGE_BUFFER to in the
 mapscript that renders the tiles. I made my metatiles larger to reduce this
 effect but have been meaning to try again with PARTIALS TRUE and not
 setting
 LABELCACHE_MAP_EDGE_BUFFER, which in theory should work.


 Regards,
 David

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


[mapserver-users] LABEL problem using CGI...

2009-06-16 Thread Paul james
Hello guys...

My layer:

LAYER
NAME SouthAmerica
GROUP limit
TYPE POLYGON
STATUS default
CONNECTIONTYPE POSTGIS
CONNECTION x
DATA x
LABELITEM name
CLASS
COLOR 242 239 213
STYLE
OUTLINECOLOR 190 190 190
WIDTH 1
END
LABEL
COLOR 72 72 72
TYPE TRUETYPE
FONT Arial
SIZE 10
ANTIALIAS TRUE
POSITION AUTO
PARTIALS FALSE
MINDISTANCE 0
BUFFER 3
PRIORITY 1
END
END
END


How we can see in picture (attached) the coutry´s name are repeated... Using
mapscript it is not happen...

I´m using Mapserver 5.4 with fastcgi...

[]´s
attachment: map.GIF___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Re: Upgrading 5.2 - 5.4 generating CGI error on IIS(5.1 and 6.0) ... Possible BUG?

2009-06-10 Thread Paul james
I don´t think its related to security settings... I can run the CGI on 5.2
... And as well with fastcgi on 5.4 ...
Anyway I gave all permission to all user in mapserver directory and app
directory... Nothing changes...

Anyone test that with Postgis layer? I´m trying to get a shapefile to test
...

Paul

On Tue, Jun 9, 2009 at 7:02 PM, Tamas Szekeres szeker...@gmail.com wrote:

 Paul,

 I've just tried with the latest 5.4 version and worked fine though I'm
 using OGR/mapinfo.tab data source.

 I suspect you may run into a problem related to the possible differences in
 the security settings. Some files may not be accessible by the current user
 executing mapserv.exe which may be IUSR_[computername] for the normal CGI
 and NT AUTHORITY/NETWORK SERVICE for the fast cgi option by default.

 Best regards,

 Tamas


 2009/6/9 Paul james paulj...@gmail.com

 Just one update in my tests...
 Using FASTCGI It worked FINE (mapserver 5.4)...

 I added a bug ticket : http://trac.osgeo.org/mapserver/ticket/3049

 Paul


 On Tue, Jun 2, 2009 at 10:12 AM, Paul james paulj...@gmail.com wrote:

 Probably is a mapserver CGI bug...

 Paul

 On Sat, May 30, 2009 at 11:56 PM, Brian Fischer bfisc...@houstoneng.com
  wrote:

  Paul,

 Just to let you know you are not alone.  I am experiencing the same
 problem with MS4W 3.0 beta 1 and 2.  I’ve reported it as a bug to the MS4W
 project.  Here’s a link to the bug report
 http://bugzilla.maptools.org/show_bug.cgi?id=2043.   I haven’t heard
 anything back on a solution yet.  I’m not sure if this is a MapServer bug 
 or
 a bug with the way the MS4W package was compiled.  It runs fine of Apache
 for me.



 Brian Fischer

 Houston Engineering, Inc.



 *From:* mapserver-users-boun...@lists.osgeo.org [mailto:
 mapserver-users-boun...@lists.osgeo.org] *On Behalf Of *Paul james
 *Sent:* Friday, May 29, 2009 1:08 PM
 *To:* Steve Lime
 *Cc:* mapserver-users@lists.osgeo.org; Daniel Morissette
 *Subject:* Re: [mapserver-users] Re: Upgrading 5.2 - 5.4 generating
 CGI error on IIS(5.1 and 6.0) ... Possible BUG?




 http://localhost/cgi-bin/mapserv.exe?map=C%3A%2Finetpub%2Fwwwroot%2FOpenlayer%2FFiles%2FMapserver%2FMap.mapmode=mapmap_imagetype=pngmapext=-180+0+-90+90imgext=-180+0+-90+90map_size=256+256imgx=128imgy=128imgxy=256+256

 Paul

 On Fri, May 29, 2009 at 3:01 PM, Steve Lime steve.l...@dnr.state.mn.us
 wrote:

 What's the full URL submitted against the CGI?

  On 5/29/2009 at 12:59 PM, in message
 33fad6880905291059i5602a89q84d7673ddcfff...@mail.gmail.com, Paul
 james

 paulj...@gmail.com wrote:
  1 -  I tried with 1500,1400,1310,development version(1500) and ms4w
 beta...
  2 -  Ím using normal CGI
  3 - My tests are only with Postgis... Íll generate a shapefile to
 test
  later ...
 
  Paul
 
  On Fri, May 29, 2009 at 2:27 PM, Tamas Szekeres szeker...@gmail.com
 wrote:
 
  Hi Paul,
 
  Did you experience the same with the release-1310 and release-1400
  versions? Did you experience the same with the development version?
  Are you using fastCGI or normal cgi?
  Is this just a PostGIS related problem or you get the same with a
 simple
  shapefile?
 
  Sorry for the bunch of the questions...
 
  Best regards,
 
  Tamas
 
 
 
  2009/5/29 Paul james paulj...@gmail.com
 
  Yes Daniel...  I deleted all previous files and put only 5.4
 files... My
  mapscript application is working fine on 5.4...
  But the CGI dont...
  Tested on Windows XP (IIS 5.1) and Windows 2003(IIS 6.0)...
 
  Paul
 
 
  On Fri, May 29, 2009 at 12:56 PM, Daniel Morissette 
  dmorisse...@mapgears.com wrote:
 
  Paul james wrote:
 
  Hi Daniel...
  I got the binaries from Tamas build :
  http://vbkto.dyndns.org:1280/sdk/Default.aspx
  And from MS4W 3.0 beta2...
  Same result with both...
 
  That error you got is my fault... I took off the :
  IMAGE ..\Map.png
  from REFERENCE definition when copy the code to email...
 
  My application works fine with 5.2 binary in iis 5.1 and 6.0
  Just replacing with 5.4 binary I got that 502 error...
 
 
  Hopefully you always make sure you update all DLLs as well when
 you
  replace with 5.4 binary? Even if the DLLs have the same names,
 if they
  come from different build environments or versions they may not
 be
  compatible and could cause the kind of crashes that you are
 experiencing.
 
 
  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



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


Re: [mapserver-users] Re: Upgrading 5.2 - 5.4 generating CGI error on IIS(5.1 and 6.0) ... Possible BUG?

2009-06-10 Thread Paul james
I tested with a Shapefile, same bug with 5.4 and CGI Working fine with
fastcgi...

Paul


On Wed, Jun 10, 2009 at 1:14 PM, Tamas Szekeres szeker...@gmail.com wrote:

 It would anyway be helpful if you could describe the steps to reproduce the
 issue. I'm afraid I won't be able to find out the problem without inspecting
 that locally by using a debug version of the builds. There have been a lot
 of changes between 5.2 and 5.4 so it's quite difficult to identify the
 location and the related changeset just by looking into the change log in
 the subversion.

 Best regards,

 Tamas



 2009/6/10 Brian Fischer bfisc...@houstoneng.com

  I would agree with Paul.  I am running 5.2 and previous version just fine
 as well.



 *Brian Fischer,* CFM  GIS Project Manager
 *Houston Engineering, Inc.*
 Phone: W: 763.493.4522 / M: 763.229.2734



 *From:* Paul james [mailto:paulj...@gmail.com]
 *Sent:* Wednesday, June 10, 2009 8:46 AM
 *To:* Tamas Szekeres
 *Cc:* Brian Fischer; mapserver-users@lists.osgeo.org; Daniel Morissette;
 Steve Lime

 *Subject:* Re: [mapserver-users] Re: Upgrading 5.2 - 5.4 generating CGI
 error on IIS(5.1 and 6.0) ... Possible BUG?



 I don´t think its related to security settings... I can run the CGI on 5.2
 ... And as well with fastcgi on 5.4 ...
 Anyway I gave all permission to all user in mapserver directory and app
 directory... Nothing changes...

 Anyone test that with Postgis layer? I´m trying to get a shapefile to test
 ...

 Paul

 On Tue, Jun 9, 2009 at 7:02 PM, Tamas Szekeres szeker...@gmail.com
 wrote:

 Paul,

 I've just tried with the latest 5.4 version and worked fine though I'm
 using OGR/mapinfo.tab data source.

 I suspect you may run into a problem related to the possible differences
 in the security settings. Some files may not be accessible by the current
 user executing mapserv.exe which may be IUSR_[computername] for the normal
 CGI and NT AUTHORITY/NETWORK SERVICE for the fast cgi option by default.

 Best regards,

 Tamas

  2009/6/9 Paul james paulj...@gmail.com



 Just one update in my tests...
 Using FASTCGI It worked FINE (mapserver 5.4)...

 I added a bug ticket : http://trac.osgeo.org/mapserver/ticket/3049

 Paul



 On Tue, Jun 2, 2009 at 10:12 AM, Paul james paulj...@gmail.com wrote:

 Probably is a mapserver CGI bug...








 Paul



 On Sat, May 30, 2009 at 11:56 PM, Brian Fischer bfisc...@houstoneng.com
 wrote:

 Paul,

 Just to let you know you are not alone.  I am experiencing the same
 problem with MS4W 3.0 beta 1 and 2.  I’ve reported it as a bug to the MS4W
 project.  Here’s a link to the bug report
 http://bugzilla.maptools.org/show_bug.cgi?id=2043.   I haven’t heard
 anything back on a solution yet.  I’m not sure if this is a MapServer bug or
 a bug with the way the MS4W package was compiled.  It runs fine of Apache
 for me.



 Brian Fischer

 Houston Engineering, Inc.



 *From:* mapserver-users-boun...@lists.osgeo.org [mailto:
 mapserver-users-boun...@lists.osgeo.org] *On Behalf Of *Paul james
 *Sent:* Friday, May 29, 2009 1:08 PM
 *To:* Steve Lime
 *Cc:* mapserver-users@lists.osgeo.org; Daniel Morissette
 *Subject:* Re: [mapserver-users] Re: Upgrading 5.2 - 5.4 generating CGI
 error on IIS(5.1 and 6.0) ... Possible BUG?




 http://localhost/cgi-bin/mapserv.exe?map=C%3A%2Finetpub%2Fwwwroot%2FOpenlayer%2FFiles%2FMapserver%2FMap.mapmode=mapmap_imagetype=pngmapext=-180+0+-90+90imgext=-180+0+-90+90map_size=256+256imgx=128imgy=128imgxy=256+256

 Paul

 On Fri, May 29, 2009 at 3:01 PM, Steve Lime steve.l...@dnr.state.mn.us
 wrote:

 What's the full URL submitted against the CGI?

  On 5/29/2009 at 12:59 PM, in message
 33fad6880905291059i5602a89q84d7673ddcfff...@mail.gmail.com, Paul
 james

 paulj...@gmail.com wrote:
  1 -  I tried with 1500,1400,1310,development version(1500) and ms4w
 beta...
  2 -  Ím using normal CGI
  3 - My tests are only with Postgis... Íll generate a shapefile to
 test
  later ...
 
  Paul
 
  On Fri, May 29, 2009 at 2:27 PM, Tamas Szekeres szeker...@gmail.com
 wrote:
 
  Hi Paul,
 
  Did you experience the same with the release-1310 and release-1400
  versions? Did you experience the same with the development version?
  Are you using fastCGI or normal cgi?
  Is this just a PostGIS related problem or you get the same with a
 simple
  shapefile?
 
  Sorry for the bunch of the questions...
 
  Best regards,
 
  Tamas
 
 
 
  2009/5/29 Paul james paulj...@gmail.com
 
  Yes Daniel...  I deleted all previous files and put only 5.4
 files... My
  mapscript application is working fine on 5.4...
  But the CGI dont...
  Tested on Windows XP (IIS 5.1) and Windows 2003(IIS 6.0)...
 
  Paul
 
 
  On Fri, May 29, 2009 at 12:56 PM, Daniel Morissette 
  dmorisse...@mapgears.com wrote:
 
  Paul james wrote:
 
  Hi Daniel...
  I got the binaries from Tamas build :
  http://vbkto.dyndns.org:1280/sdk/Default.aspx
  And from MS4W 3.0 beta2...
  Same result with both...
 
  That error you got is my fault... I took off the :
  IMAGE

Re: [mapserver-users] Re: Upgrading 5.2 - 5.4 generating CGI error on IIS(5.1 and 6.0) ... Possible BUG?

2009-06-09 Thread Paul james
Just one update in my tests...
Using FASTCGI It worked FINE (mapserver 5.4)...

I added a bug ticket : http://trac.osgeo.org/mapserver/ticket/3049

Paul

On Tue, Jun 2, 2009 at 10:12 AM, Paul james paulj...@gmail.com wrote:

 Probably is a mapserver CGI bug...

 Paul

 On Sat, May 30, 2009 at 11:56 PM, Brian Fischer 
 bfisc...@houstoneng.comwrote:

  Paul,

 Just to let you know you are not alone.  I am experiencing the same
 problem with MS4W 3.0 beta 1 and 2.  I’ve reported it as a bug to the MS4W
 project.  Here’s a link to the bug report
 http://bugzilla.maptools.org/show_bug.cgi?id=2043.   I haven’t heard
 anything back on a solution yet.  I’m not sure if this is a MapServer bug or
 a bug with the way the MS4W package was compiled.  It runs fine of Apache
 for me.



 Brian Fischer

 Houston Engineering, Inc.



 *From:* mapserver-users-boun...@lists.osgeo.org [mailto:
 mapserver-users-boun...@lists.osgeo.org] *On Behalf Of *Paul james
 *Sent:* Friday, May 29, 2009 1:08 PM
 *To:* Steve Lime
 *Cc:* mapserver-users@lists.osgeo.org; Daniel Morissette
 *Subject:* Re: [mapserver-users] Re: Upgrading 5.2 - 5.4 generating CGI
 error on IIS(5.1 and 6.0) ... Possible BUG?




 http://localhost/cgi-bin/mapserv.exe?map=C%3A%2Finetpub%2Fwwwroot%2FOpenlayer%2FFiles%2FMapserver%2FMap.mapmode=mapmap_imagetype=pngmapext=-180+0+-90+90imgext=-180+0+-90+90map_size=256+256imgx=128imgy=128imgxy=256+256

 Paul

 On Fri, May 29, 2009 at 3:01 PM, Steve Lime steve.l...@dnr.state.mn.us
 wrote:

 What's the full URL submitted against the CGI?

  On 5/29/2009 at 12:59 PM, in message
 33fad6880905291059i5602a89q84d7673ddcfff...@mail.gmail.com, Paul
 james

 paulj...@gmail.com wrote:
  1 -  I tried with 1500,1400,1310,development version(1500) and ms4w
 beta...
  2 -  Ím using normal CGI
  3 - My tests are only with Postgis... Íll generate a shapefile to
 test
  later ...
 
  Paul
 
  On Fri, May 29, 2009 at 2:27 PM, Tamas Szekeres szeker...@gmail.com
 wrote:
 
  Hi Paul,
 
  Did you experience the same with the release-1310 and release-1400
  versions? Did you experience the same with the development version?
  Are you using fastCGI or normal cgi?
  Is this just a PostGIS related problem or you get the same with a
 simple
  shapefile?
 
  Sorry for the bunch of the questions...
 
  Best regards,
 
  Tamas
 
 
 
  2009/5/29 Paul james paulj...@gmail.com
 
  Yes Daniel...  I deleted all previous files and put only 5.4
 files... My
  mapscript application is working fine on 5.4...
  But the CGI dont...
  Tested on Windows XP (IIS 5.1) and Windows 2003(IIS 6.0)...
 
  Paul
 
 
  On Fri, May 29, 2009 at 12:56 PM, Daniel Morissette 
  dmorisse...@mapgears.com wrote:
 
  Paul james wrote:
 
  Hi Daniel...
  I got the binaries from Tamas build :
  http://vbkto.dyndns.org:1280/sdk/Default.aspx
  And from MS4W 3.0 beta2...
  Same result with both...
 
  That error you got is my fault... I took off the :
  IMAGE ..\Map.png
  from REFERENCE definition when copy the code to email...
 
  My application works fine with 5.2 binary in iis 5.1 and 6.0
  Just replacing with 5.4 binary I got that 502 error...
 
 
  Hopefully you always make sure you update all DLLs as well when
 you
  replace with 5.4 binary? Even if the DLLs have the same names,
 if they
  come from different build environments or versions they may not
 be
  compatible and could cause the kind of crashes that you are
 experiencing.
 
 
  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] Re: Upgrading 5.2 - 5.4 generating CGI error on IIS(5.1 and 6.0) ... Possible BUG?

2009-06-02 Thread Paul james
Probably is a mapserver CGI bug...

Paul

On Sat, May 30, 2009 at 11:56 PM, Brian Fischer bfisc...@houstoneng.comwrote:

  Paul,

 Just to let you know you are not alone.  I am experiencing the same problem
 with MS4W 3.0 beta 1 and 2.  I’ve reported it as a bug to the MS4W project.
 Here’s a link to the bug report
 http://bugzilla.maptools.org/show_bug.cgi?id=2043.   I haven’t heard
 anything back on a solution yet.  I’m not sure if this is a MapServer bug or
 a bug with the way the MS4W package was compiled.  It runs fine of Apache
 for me.



 Brian Fischer

 Houston Engineering, Inc.



 *From:* mapserver-users-boun...@lists.osgeo.org [mailto:
 mapserver-users-boun...@lists.osgeo.org] *On Behalf Of *Paul james
 *Sent:* Friday, May 29, 2009 1:08 PM
 *To:* Steve Lime
 *Cc:* mapserver-users@lists.osgeo.org; Daniel Morissette
 *Subject:* Re: [mapserver-users] Re: Upgrading 5.2 - 5.4 generating CGI
 error on IIS(5.1 and 6.0) ... Possible BUG?




 http://localhost/cgi-bin/mapserv.exe?map=C%3A%2Finetpub%2Fwwwroot%2FOpenlayer%2FFiles%2FMapserver%2FMap.mapmode=mapmap_imagetype=pngmapext=-180+0+-90+90imgext=-180+0+-90+90map_size=256+256imgx=128imgy=128imgxy=256+256

 Paul

 On Fri, May 29, 2009 at 3:01 PM, Steve Lime steve.l...@dnr.state.mn.us
 wrote:

 What's the full URL submitted against the CGI?

  On 5/29/2009 at 12:59 PM, in message
 33fad6880905291059i5602a89q84d7673ddcfff...@mail.gmail.com, Paul
 james

 paulj...@gmail.com wrote:
  1 -  I tried with 1500,1400,1310,development version(1500) and ms4w
 beta...
  2 -  Ím using normal CGI
  3 - My tests are only with Postgis... Íll generate a shapefile to
 test
  later ...
 
  Paul
 
  On Fri, May 29, 2009 at 2:27 PM, Tamas Szekeres szeker...@gmail.com
 wrote:
 
  Hi Paul,
 
  Did you experience the same with the release-1310 and release-1400
  versions? Did you experience the same with the development version?
  Are you using fastCGI or normal cgi?
  Is this just a PostGIS related problem or you get the same with a
 simple
  shapefile?
 
  Sorry for the bunch of the questions...
 
  Best regards,
 
  Tamas
 
 
 
  2009/5/29 Paul james paulj...@gmail.com
 
  Yes Daniel...  I deleted all previous files and put only 5.4
 files... My
  mapscript application is working fine on 5.4...
  But the CGI dont...
  Tested on Windows XP (IIS 5.1) and Windows 2003(IIS 6.0)...
 
  Paul
 
 
  On Fri, May 29, 2009 at 12:56 PM, Daniel Morissette 
  dmorisse...@mapgears.com wrote:
 
  Paul james wrote:
 
  Hi Daniel...
  I got the binaries from Tamas build :
  http://vbkto.dyndns.org:1280/sdk/Default.aspx
  And from MS4W 3.0 beta2...
  Same result with both...
 
  That error you got is my fault... I took off the :
  IMAGE ..\Map.png
  from REFERENCE definition when copy the code to email...
 
  My application works fine with 5.2 binary in iis 5.1 and 6.0
  Just replacing with 5.4 binary I got that 502 error...
 
 
  Hopefully you always make sure you update all DLLs as well when
 you
  replace with 5.4 binary? Even if the DLLs have the same names,
 if they
  come from different build environments or versions they may not
 be
  compatible and could cause the kind of crashes that you are
 experiencing.
 
 
  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


[mapserver-users] Re: Upgrading 5.2 - 5.4 generating CGI error on IIS(5.1 and 6.0) ... Possible BUG?

2009-05-29 Thread Paul james
Just some more information about the problem...
The error was generated by IIS (5.1 and 6.0) ... Looking the Logfile, It is
a 502 error :

*502* - Web server received an invalid response while acting as a gateway or
proxy.

*502.1* - CGI application timeout.
*502.2* - Error in CGI application.

It only happens with Mapserver 5.4 ... With 5.2 version, thats 100%
working...

Paul

On Thu, May 28, 2009 at 5:43 PM, Paul james paulj...@gmail.com wrote:

 I got that error when try to enter :
 http://localhost/cgi-bin/mapserv.exe?map=C:/map.map
 CGI ErrorThe specified CGI application misbehaved by not returning a
 complete set of HTTP headers. The headers it did return are:


 My Map:

 MAP
 EXTENT -79.7892 -34.2426 -24.9958 6.11775
 FONTSET Fonts\Fonts.txt
 IMAGECOLOR 230 254 254
 IMAGETYPE png
 SIZE 800 600
 STATUS ON
 UNITS dd
 NAME Test

 OUTPUTFORMAT
 NAME png
 MIMETYPE image/png
 DRIVER GD/PNG
 EXTENSION png
 IMAGEMODE PC256
 TRANSPARENT FALSE
 END

 PROJECTION
 'proj=longlat'
 'ellps=WGS84'
 'datum=WGS84'
 'no_defs'
 END

 WEB
 IMAGEPATH 'C:\map\temp'
 IMAGEURL '/tmp/'
 QUERYFORMAT text/html
 LEGENDFORMAT text/html
 BROWSEFORMAT text/html
 END

 QUERYMAP
 COLOR 255 0 0
 SIZE -1 -1
 STATUS ON
 STYLE hilite
 END

 REFERENCE
 EXTENT -79.7892 -34.2426 -24.9958 6.11775
 STATUS on
 SIZE 221 150
 MINBOXSIZE 5
 MAXBOXSIZE 150
 COLOR -1 -1 -1
 OUTLINECOLOR 255 0 0
 MARKERSIZE 8
 END

 LAYER
 NAME Test
 GROUP Tests
 TYPE POLYGON
 STATUS default
 CONNECTIONTYPE POSTGIS
 CONNECTION user=xpassword=xdbname=x host=x port=5432
 DATA the_geom from viwgeo_x USING UNIQUE oid USING SRID=-1
 CLASS
 COLOR 255 0 255
 END
 END

 END



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


Re: [mapserver-users] Re: Upgrading 5.2 - 5.4 generating CGI error on IIS(5.1 and 6.0) ... Possible BUG?

2009-05-29 Thread Paul james
Hi Daniel...
I got the binaries from Tamas build :
http://vbkto.dyndns.org:1280/sdk/Default.aspx
And from MS4W 3.0 beta2...
Same result with both...

That error you got is my fault... I took off the :
IMAGE ..\Map.png
from REFERENCE definition when copy the code to email...

My application works fine with 5.2 binary in iis 5.1 and 6.0
Just replacing with 5.4 binary I got that 502 error...

Paul

On Fri, May 29, 2009 at 12:20 PM, Daniel Morissette 
dmorisse...@mapgears.com wrote:

 Paul james wrote:

 Just some more information about the problem...
 The error was generated by IIS (5.1 and 6.0) ... Looking the Logfile, It
 is a 502 error :

 *502* - Web server received an invalid response while acting as a gateway
 or proxy.

*502.1* - CGI application timeout.
*502.2* - Error in CGI application.

 It only happens with Mapserver 5.4 ... With 5.2 version, thats 100%
 working...


 Where did you get your binaries? Are you using MS4W?

 This may be a sign of a problem with your build or bug in MapServer, but
 we'd need a testcase to reproduce it in order to help. I tried just loading
 your mapfile and get the following error:

 loadReferenceMap(): General error message. No image defined for the
 reference map.

 I don't know if that's an indication of the problem, but anyway, if the 502
 error persists you could try to package a small testcase (mapfile + data +
 test url) that can be used to reproduce the issue and file a ticket.

 Daniel
 --
 Daniel Morissette
 http://www.mapgears.com/

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


Re: [mapserver-users] Re: Upgrading 5.2 - 5.4 generating CGI error on IIS(5.1 and 6.0) ... Possible BUG?

2009-05-29 Thread Paul james
Yes Daniel...  I deleted all previous files and put only 5.4 files... My
mapscript application is working fine on 5.4...
But the CGI dont...
Tested on Windows XP (IIS 5.1) and Windows 2003(IIS 6.0)...

Paul

On Fri, May 29, 2009 at 12:56 PM, Daniel Morissette 
dmorisse...@mapgears.com wrote:

 Paul james wrote:

 Hi Daniel...
 I got the binaries from Tamas build :
 http://vbkto.dyndns.org:1280/sdk/Default.aspx
 And from MS4W 3.0 beta2...
 Same result with both...

 That error you got is my fault... I took off the :
 IMAGE ..\Map.png
 from REFERENCE definition when copy the code to email...

 My application works fine with 5.2 binary in iis 5.1 and 6.0
 Just replacing with 5.4 binary I got that 502 error...


 Hopefully you always make sure you update all DLLs as well when you
 replace with 5.4 binary? Even if the DLLs have the same names, if they
 come from different build environments or versions they may not be
 compatible and could cause the kind of crashes that you are experiencing.


 Daniel
 --
 Daniel Morissette
 http://www.mapgears.com/

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


Re: [mapserver-users] Re: Upgrading 5.2 - 5.4 generating CGI error on IIS(5.1 and 6.0) ... Possible BUG?

2009-05-29 Thread Paul james
1 -  I tried with 1500,1400,1310,development version(1500) and ms4w beta...
2 -  I´m using normal CGI
3 - My tests are only with Postgis... I´ll generate a shapefile to test
later ...

Paul

On Fri, May 29, 2009 at 2:27 PM, Tamas Szekeres szeker...@gmail.com wrote:

 Hi Paul,

 Did you experience the same with the release-1310 and release-1400
 versions? Did you experience the same with the development version?
 Are you using fastCGI or normal cgi?
 Is this just a PostGIS related problem or you get the same with a simple
 shapefile?

 Sorry for the bunch of the questions...

 Best regards,

 Tamas



 2009/5/29 Paul james paulj...@gmail.com

 Yes Daniel...  I deleted all previous files and put only 5.4 files... My
 mapscript application is working fine on 5.4...
 But the CGI dont...
 Tested on Windows XP (IIS 5.1) and Windows 2003(IIS 6.0)...

 Paul


 On Fri, May 29, 2009 at 12:56 PM, Daniel Morissette 
 dmorisse...@mapgears.com wrote:

 Paul james wrote:

 Hi Daniel...
 I got the binaries from Tamas build :
 http://vbkto.dyndns.org:1280/sdk/Default.aspx
 And from MS4W 3.0 beta2...
 Same result with both...

 That error you got is my fault... I took off the :
 IMAGE ..\Map.png
 from REFERENCE definition when copy the code to email...

 My application works fine with 5.2 binary in iis 5.1 and 6.0
 Just replacing with 5.4 binary I got that 502 error...


 Hopefully you always make sure you update all DLLs as well when you
 replace with 5.4 binary? Even if the DLLs have the same names, if they
 come from different build environments or versions they may not be
 compatible and could cause the kind of crashes that you are experiencing.


 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] Re: Upgrading 5.2 - 5.4 generating CGI error on IIS(5.1 and 6.0) ... Possible BUG?

2009-05-29 Thread Paul james
http://localhost/cgi-bin/mapserv.exe?map=C%3A%2Finetpub%2Fwwwroot%2FOpenlayer%2FFiles%2FMapserver%2FMap.mapmode=mapmap_imagetype=pngmapext=-180+0+-90+90imgext=-180+0+-90+90map_size=256+256imgx=128imgy=128imgxy=256+256

Paul

On Fri, May 29, 2009 at 3:01 PM, Steve Lime steve.l...@dnr.state.mn.uswrote:

 What's the full URL submitted against the CGI?

  On 5/29/2009 at 12:59 PM, in message
 33fad6880905291059i5602a89q84d7673ddcfff...@mail.gmail.com, Paul
 james
 paulj...@gmail.com wrote:
  1 -  I tried with 1500,1400,1310,development version(1500) and ms4w
 beta...
  2 -  Ím using normal CGI
  3 - My tests are only with Postgis... Íll generate a shapefile to
 test
  later ...
 
  Paul
 
  On Fri, May 29, 2009 at 2:27 PM, Tamas Szekeres szeker...@gmail.com
 wrote:
 
  Hi Paul,
 
  Did you experience the same with the release-1310 and release-1400
  versions? Did you experience the same with the development version?
  Are you using fastCGI or normal cgi?
  Is this just a PostGIS related problem or you get the same with a
 simple
  shapefile?
 
  Sorry for the bunch of the questions...
 
  Best regards,
 
  Tamas
 
 
 
  2009/5/29 Paul james paulj...@gmail.com
 
  Yes Daniel...  I deleted all previous files and put only 5.4
 files... My
  mapscript application is working fine on 5.4...
  But the CGI dont...
  Tested on Windows XP (IIS 5.1) and Windows 2003(IIS 6.0)...
 
  Paul
 
 
  On Fri, May 29, 2009 at 12:56 PM, Daniel Morissette 
  dmorisse...@mapgears.com wrote:
 
  Paul james wrote:
 
  Hi Daniel...
  I got the binaries from Tamas build :
  http://vbkto.dyndns.org:1280/sdk/Default.aspx
  And from MS4W 3.0 beta2...
  Same result with both...
 
  That error you got is my fault... I took off the :
  IMAGE ..\Map.png
  from REFERENCE definition when copy the code to email...
 
  My application works fine with 5.2 binary in iis 5.1 and 6.0
  Just replacing with 5.4 binary I got that 502 error...
 
 
  Hopefully you always make sure you update all DLLs as well when
 you
  replace with 5.4 binary? Even if the DLLs have the same names,
 if they
  come from different build environments or versions they may not
 be
  compatible and could cause the kind of crashes that you are
 experiencing.
 
 
  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


[mapserver-users] Mapserver layer + Openlayers = Random pink tiles...

2009-05-28 Thread Paul james
Hello guys...
I know It is a Openlayer question, but maybe someone here can help-me...


I did a simple sample to show my problem... My layer sometimes is 100%
showed, but when I zoom, several pink layers appears... Its absolute
RANDOM...

-- If I click right on the image, and get the image URL and PASTE on
browser, I CAN SEE THE IMAGE... So It was created fine...
Help? I´m getting crazy ...

ps.: Using Windows XP + IIS

Code:

Javascript :
var map, layer;

function init() {
map = new OpenLayers.Map('map', {
numZoomLevels: 14,
units: meters,
controls: [
new OpenLayers.Control.ZoomToMaxExtent(),
new OpenLayers.Control.PanZoomBar({ zoomWorldIcon: true
}),
new OpenLayers.Control.LayerSwitcher({ 'ascending':
false }),
new OpenLayers.Control.MousePosition(),
new OpenLayers.Control.MouseDefaults(),
new OpenLayers.Control.KeyboardDefaults()
]
});
OpenLayers.IMAGE_RELOAD_ATTEMPTS = 10;
layer = new OpenLayers.Layer.MapServer(Sample, 
http://localhost/cgi-bin/mapserv.exe;, { map: C:/Sample/Openlayer/Map.map,
layers: Test });

map.addLayer(layer);
map.zoomToMaxExtent();




Mapfile

MAP
EXTENT -79.7892 -34.2426 -24.9958 6.11775
FONTSET Fonts\Fonts.txt
IMAGECOLOR 230 254 254
IMAGETYPE png
SIZE 800 600
STATUS ON
UNITS dd
NAME Test

OUTPUTFORMAT
NAME png
MIMETYPE image/png
DRIVER GD/PNG
EXTENSION png
IMAGEMODE PC256
TRANSPARENT FALSE
END

PROJECTION
'proj=longlat'
'ellps=WGS84'
'datum=WGS84'
'no_defs'
END

WEB
IMAGEPATH 'C:\map\temp'
IMAGEURL '/tmp/'
QUERYFORMAT text/html
LEGENDFORMAT text/html
BROWSEFORMAT text/html
END

QUERYMAP
COLOR 255 0 0
SIZE -1 -1
STATUS ON
STYLE hilite
END

REFERENCE
EXTENT -79.7892 -34.2426 -24.9958 6.11775
STATUS on
SIZE 221 150
MINBOXSIZE 5
MAXBOXSIZE 150
COLOR -1 -1 -1
OUTLINECOLOR 255 0 0
MARKERSIZE 8
END

LAYER
NAME Test
GROUP Tests
TYPE POLYGON
STATUS default
CONNECTIONTYPE POSTGIS
CONNECTION user=xpassword=xdbname=x host=x port=5432
DATA the_geom from viwgeo_x USING UNIQUE oid USING SRID=-1
CLASS
COLOR 255 0 255
END
END

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


Re: [mapserver-users] Mapserver layer + Openlayers = Random pink tiles...

2009-05-28 Thread Paul james
Hi Daniel!
I ckecked the IIS Log...
And I´m getting 403 to the pink tiles :
16:06:04 127.0.0.1 GET /cgi-bin/mapserv.exe 403

The IIS specification :

*403 *- Forbidden. IIS defines a number of different 403 errors that
indicate a more specific cause of the error:

*403.1* - Execute access forbidden.
*403.2* - Read access forbidden.
*403.3* - Write access forbidden.
*403.4* - SSL required.
*403.5* - SSL 128 required.
*403.6* - IP address rejected.
*403.7* - Client certificate required.
*403.8* - Site access denied.
*403.9* - Too many users.
*403.10* - Invalid configuration.
*403.11* - Password change.
*403.12* - Mapper denied access.
*403.13* - Client certificate revoked.
*403.14* - Directory listing denied.
*403.15* - Client Access Licenses exceeded.
*403.16* - Client certificate is untrusted or invalid.
*403.17* - Client certificate has expired or is not yet valid.
*403.18* - Cannot execute requested URL in the current application pool.
This error code is specific to IIS 6.0.
*403.19* - Cannot execute CGIs for the client in this application pool. This
error code is specific to IIS 6.0.
*403.20* - Passport logon failed. This error code is specific to IIS 6.0.


Do you know how to fix that?

Thanks

On Thu, May 28, 2009 at 12:12 PM, Daniel Morissette 
dmorisse...@mapgears.com wrote:

 Paul james wrote:


 -- If I click right on the image, and get the image URL and PASTE on
 browser, I CAN SEE THE IMAGE... So It was created fine...
 Help? I´m getting crazy ...

 ps.: Using Windows XP + IIS


 Did you check your IIS logs? It could be that you have too many connections
 at the same time when OpenLayers loads the map and IIS rejects some of them.

 --
 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] Mapserver layer + Openlayers = Random pink tiles...

2009-05-28 Thread Paul james
You are right :P
To increase number connections on XP : http://www.dslreports.com/faq/10253

Thanks Daniel!

On Thu, May 28, 2009 at 2:29 PM, Daniel Morissette dmorisse...@mapgears.com
 wrote:

 Paul james wrote:

 Hi Daniel!
 I ckecked the IIS Log...
 And I´m getting 403 to the pink tiles :
 16:06:04 127.0.0.1 GET /cgi-bin/mapserv.exe 403

 The IIS specification :

 *403 *- Forbidden. IIS defines a number of different 403 errors that
 indicate a more specific cause of the error:

  [...]


 Do you know how to fix that?


 You mean, other than using Apache?  ;)  ;)

 Seriously, you probably need to increase the number of concurrent
 connections that your IIS will accept, but I have no clue how to do it.

 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


[mapserver-users] Upgrading 5.2 - 5.4 generating CGI error...

2009-05-28 Thread Paul james
I got that error when try to enter :
http://localhost/cgi-bin/mapserv.exe?map=C:/map.map
CGI ErrorThe specified CGI application misbehaved by not returning a
complete set of HTTP headers. The headers it did return are:


My Map:

MAP
EXTENT -79.7892 -34.2426 -24.9958 6.11775
FONTSET Fonts\Fonts.txt
IMAGECOLOR 230 254 254
IMAGETYPE png
SIZE 800 600
STATUS ON
UNITS dd
NAME Test

OUTPUTFORMAT
NAME png
MIMETYPE image/png
DRIVER GD/PNG
EXTENSION png
IMAGEMODE PC256
TRANSPARENT FALSE
END

PROJECTION
'proj=longlat'
'ellps=WGS84'
'datum=WGS84'
'no_defs'
END

WEB
IMAGEPATH 'C:\map\temp'
IMAGEURL '/tmp/'
QUERYFORMAT text/html
LEGENDFORMAT text/html
BROWSEFORMAT text/html
END

QUERYMAP
COLOR 255 0 0
SIZE -1 -1
STATUS ON
STYLE hilite
END

REFERENCE
EXTENT -79.7892 -34.2426 -24.9958 6.11775
STATUS on
SIZE 221 150
MINBOXSIZE 5
MAXBOXSIZE 150
COLOR -1 -1 -1
OUTLINECOLOR 255 0 0
MARKERSIZE 8
END

LAYER
NAME Test
GROUP Tests
TYPE POLYGON
STATUS default
CONNECTIONTYPE POSTGIS
CONNECTION user=xpassword=xdbname=x host=x port=5432
DATA the_geom from viwgeo_x USING UNIQUE oid USING SRID=-1
CLASS
COLOR 255 0 255
END
END

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


Re: [mapserver-users] Get the nearest layer with mapscript...

2009-05-20 Thread Paul james
Hi David...
In my system the user SELECT the active layer (dropdown), and so he can
query it selecting a a area or a point 

But, I´d like to take off that dropdown to select active layer... And when
user click on map to query, I figure out what layer was clicked and query
that...

Paul

On Wed, May 20, 2009 at 10:44 AM, Fawcett, David
david.fawc...@state.mn.uswrote:

  Paul,

 I would guess that this really is about the client-side map interface and
 not about MapServer.  Does your interface only allow them to click/select
 the topmost layer?  Do you pick which layer is selectable?  Do you let them
 pick which layer is selectable?  Is it random?

 Tells us more about the client-side app.

 David.

  -Original Message-
 *From:* mapserver-users-boun...@lists.osgeo.org [mailto:
 mapserver-users-boun...@lists.osgeo.org] *On Behalf Of *Paul james
 *Sent:* Wednesday, May 20, 2009 7:55 AM
 *To:* mapserver-users@lists.osgeo.org
 *Subject:* Re: [mapserver-users] Get the nearest layer with mapscript...

 Thanks Pano...
 But It´s not that simple...
 What I need is figure out what LAYER was clicked...

 Paul

 On Wed, May 20, 2009 at 6:43 AM, Pano Voudouris 
 pvoudou...@gaiocorp.comwrote:

  Probably don’t understand what exactly you are trying to achieve here
 but it is not as simple as map.getLayer(0) to get the topmost layer? And
 once you have the layer object use one of the query function to select the
 record? E.g.  myLayerObj.queryByPoint ?



 Pano



 *From:* mapserver-users-boun...@lists.osgeo.org [mailto:
 mapserver-users-boun...@lists.osgeo.org] *On Behalf Of *Paul james
 *Sent:* 19 May 2009 21:46
 *To:* mapserver-users@lists.osgeo.org
 *Subject:* [mapserver-users] Get the nearest layer with mapscript...



 Hello guys...
 I have several layers (lines, points, poly) ...
 I´m developing a measure tool... User can click on map and I have to
 select that layer to calculate de Area with postgis...

 I´m trying to do that WITHOUT using LAYER ACTIVE SYSTEM...

 Is That possible using mapscript? How Can I find the nearest and toppest
 layer ?

 Thanks!

 Paul

 ___
 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] Get the nearest layer with mapscript...

2009-05-20 Thread Paul james
Hi Steve!
I didn't know that mapObj could call queryByPoint as well ... Thanks...
But, How can I get the feature selected after query ?

Using LayerObj I did that (using layer.getNumResults() )

if (_layer.queryByPoint(MapaObj, _point, 0, -2) == 0)
{
for (int i = 0; i  _layer.getNumResults(); i++)
{
resultCacheMemberObj _result = _layer.getResult(i);

return _result.shapeindex.ToString();
}
}

How can I do that using MapObj ?

thanks!


On Wed, May 20, 2009 at 10:51 AM, Steve Lime steve.l...@dnr.state.mn.uswrote:

 If you're doing point queries MapServer/MapScript can do this for you.
 You do a
 mapObj.queryByPoint with the MS_SINGLE mode and then the function will
 identify
 the closest feature (considering TOLERANCEs!) in the top-most ACTIVE
 layer.

 This site uses this to it's advantage...

  http://www.dnr.state.mn.us/maps/compass.html

 A query drops through the layers until a match is hit.

 Even with other geometry types based on what was described you can
 probably do
 it pretty easily. You'd use one of the other query methods and then once
 the query
 is done loop through your layer stack backwards (e.g. starting at the
 top) and stop
 when you find one with results.

 Steve

  Paul james paulj...@gmail.com 05/20/09 7:56 AM 
 Thanks Pano...
 But It́s not that simple...
 What I need is figure out what LAYER was clicked...

 Paul

 On Wed, May 20, 2009 at 6:43 AM, Pano Voudouris
 pvoudou...@gaiocorp.comwrote:

   Probably don’t understand what exactly you are trying to achieve here
 but
  it is not as simple as map.getLayer(0) to get the topmost layer? And
 once
  you have the layer object use one of the query function to select the
  record? E.g.  myLayerObj.queryByPoint ?
 
 
 
  Pano
 
 
 
  *From:* mapserver-users-boun...@lists.osgeo.org [mailto:
  mapserver-users-boun...@lists.osgeo.org] *On Behalf Of *Paul james
  *Sent:* 19 May 2009 21:46
  *To:* mapserver-users@lists.osgeo.org
  *Subject:* [mapserver-users] Get the nearest layer with mapscript...
 
 
 
  Hello guys...
  I have several layers (lines, points, poly) ...
  Ím developing a measure tool... User can click on map and I have to
  select that layer to calculate de Area with postgis...
 
   Ím trying to do that WITHOUT using LAYER ACTIVE SYSTEM...
 
   Is That possible using mapscript? How Can I find the nearest and
 toppest
  layer ?
 
  Thanks!
 
  Paul
 
  ___
  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] Get the nearest layer with mapscript...

2009-05-20 Thread Paul james
Thanks Steve...
That worked !

On Wed, May 20, 2009 at 1:34 PM, Steve Lime steve.l...@dnr.state.mn.uswrote:

 You just need another loop...

 for( ...each layer...) {
  layer = ... mapObj get layer ...

  ... now your getNumResults() loop ...
 }

 Steve

  Paul james paulj...@gmail.com 05/20/09 9:54 AM 
 Hi Steve!
 I didn't know that mapObj could call queryByPoint as well ... Thanks...
 But, How can I get the feature selected after query ?

 Using LayerObj I did that (using layer.getNumResults() )

 if (_layer.queryByPoint(MapaObj, _point, 0, -2) == 0)
{
for (int i = 0; i  _layer.getNumResults(); i++)
{
resultCacheMemberObj _result = _layer.getResult(i);

return _result.shapeindex.ToString();
}
}

 How can I do that using MapObj ?

 thanks!


 On Wed, May 20, 2009 at 10:51 AM, Steve Lime
 steve.l...@dnr.state.mn.uswrote:

  If you're doing point queries MapServer/MapScript can do this for you.
  You do a
  mapObj.queryByPoint with the MS_SINGLE mode and then the function will
  identify
  the closest feature (considering TOLERANCEs!) in the top-most ACTIVE
  layer.
 
  This site uses this to it's advantage...
 
   http://www.dnr.state.mn.us/maps/compass.html
 
  A query drops through the layers until a match is hit.
 
  Even with other geometry types based on what was described you can
  probably do
  it pretty easily. You'd use one of the other query methods and then
 once
  the query
  is done loop through your layer stack backwards (e.g. starting at the
  top) and stop
  when you find one with results.
 
  Steve
 
   Paul james paulj...@gmail.com 05/20/09 7:56 AM 
  Thanks Pano...
  But It́s not that simple...
  What I need is figure out what LAYER was clicked...
 
  Paul
 
  On Wed, May 20, 2009 at 6:43 AM, Pano Voudouris
  pvoudou...@gaiocorp.comwrote:
 
Probably don’t understand what exactly you are trying to achieve
 here
  but
   it is not as simple as map.getLayer(0) to get the topmost layer? And
  once
   you have the layer object use one of the query function to select
 the
   record? E.g.  myLayerObj.queryByPoint ?
  
  
  
   Pano
  
  
  
   *From:* mapserver-users-boun...@lists.osgeo.org [mailto:
   mapserver-users-boun...@lists.osgeo.org] *On Behalf Of *Paul james
   *Sent:* 19 May 2009 21:46
   *To:* mapserver-users@lists.osgeo.org
   *Subject:* [mapserver-users] Get the nearest layer with mapscript...
  
  
  
   Hello guys...
   I have several layers (lines, points, poly) ...
   Ím developing a measure tool... User can click on map and I have to
   select that layer to calculate de Area with postgis...
  
Ím trying to do that WITHOUT using LAYER ACTIVE SYSTEM...
  
Is That possible using mapscript? How Can I find the nearest and
  toppest
   layer ?
  
   Thanks!
  
   Paul
  
   ___
   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] Get the nearest layer with mapscript...

2009-05-19 Thread Paul james
Hello guys...
I have several layers (lines, points, poly) ...
I´m developing a measure tool... User can click on map and I have to select
that layer to calculate de Area with postgis...
I´m trying to do that WITHOUT using LAYER ACTIVE SYSTEM...
Is That possible using mapscript? How Can I find the nearest and toppest
layer ?

Thanks!

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


[mapserver-users] KML for mapscript Map...

2009-04-08 Thread Paul james
Hello...
Is it possible to get KML from Mapscript(c#) map?

How?

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


Re: [mapserver-users] KML for mapscript Map...

2009-04-08 Thread Paul james
Thanks again Tamas !

Could you send me the link ?

[]´s

On Wed, Apr 8, 2009 at 6:03 PM, Tamas Szekeres szeker...@gmail.com wrote:

 Rendering as KML is not yet supported by MapServer, but these's an
 outstanding Google SoC project addressing this issue.

 Best regards,

 Tamas



 2009/4/8 Paul james paulj...@gmail.com

 Hello...
 Is it possible to get KML from Mapscript(c#) map?

 How?

 Thanks!

 ___
 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] getExtent(c#) with Postgis data ...

2009-04-07 Thread Paul james
Thanks Tamas...

But now I´m a little lost... Am I supposed to create a OGR layer?
Do you have any sample how to get extent´s layer using OGR?

P

On Mon, Apr 6, 2009 at 6:30 PM, Tamas Szekeres szeker...@gmail.com wrote:

 Choose a package with the best match for your compiler and architecture
 from here:
 http://vbkto.dyndns.org:1280/sdk/index.html


 Best regards,

 Tamas



 2009/4/6 Paul james paulj...@gmail.com

 Where can I find ogr_csharp.dll ?

 Thanks Tamas!

 Paul


 On Mon, Apr 6, 2009 at 6:22 PM, Tamas Szekeres szeker...@gmail.comwrote:

 Paul,

 Unfortunately this function is not implemented by the MapServer postgis
 driver, you might want to use the OGR C# API (ie. ogr_csharp.dll)  for this
 purpose.


 Best regards,

 Tamas



 2009/4/6 Paul james paulj...@gmail.com

 All value from getExtent (Postgis layer) is : 3.4028234663852886E+38

 Is it a bug?



 On Mon, Apr 6, 2009 at 5:56 PM, Tamas Szekeres szeker...@gmail.comwrote:

 Why don't? That function have already been exposed for *layerObj* with
 the following signature:

 *public rectObj getExtent(void)*

 Best regards,

 Tamas



 2009/4/6 Paul james paulj...@gmail.com

  Hello, It seems that getExtent (c#) is not implemented...
 Any other solution to get extent of a layer using mapscript?

 Paul

 ___
 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] getExtent(c#) with Postgis data ...

2009-04-07 Thread Paul james
Thanks!
But I resolved my problem using shapeObj, without OGR...
My code:

_layer.open();
shapeObj _shape = new shapeObj((int)_layer.type);
_layer.getShape(_shape, -1, Convert.ToInt32(__id));

_map.extent.maxx = _shape.bounds.maxx +0.1;
_map.extent.maxy = _shape.bounds.maxy + 0.1;
_map.extent.minx = _shape.bounds.minx - 0.1;
_map.extent.miny = _shape.bounds.miny - 0.1;

On Tue, Apr 7, 2009 at 3:29 PM, Tamas Szekeres szeker...@gmail.com wrote:

 Paul,

 You can refer to the ogrinfo C# sample application in the gdal source tree:
 http://trac.osgeo.org/gdal/browser/trunk/gdal/swig/csharp/apps/ogrinfo.cs

 Best regards,

 Tamas



 2009/4/7 Paul james paulj...@gmail.com

 Thanks Tamas...

 But now I´m a little lost... Am I supposed to create a OGR layer?
 Do you have any sample how to get extent´s layer using OGR?

 P


 On Mon, Apr 6, 2009 at 6:30 PM, Tamas Szekeres szeker...@gmail.comwrote:

 Choose a package with the best match for your compiler and architecture
 from here:
 http://vbkto.dyndns.org:1280/sdk/index.html


 Best regards,

 Tamas



 2009/4/6 Paul james paulj...@gmail.com

 Where can I find ogr_csharp.dll ?

 Thanks Tamas!

 Paul


 On Mon, Apr 6, 2009 at 6:22 PM, Tamas Szekeres szeker...@gmail.comwrote:

 Paul,

 Unfortunately this function is not implemented by the MapServer postgis
 driver, you might want to use the OGR C# API (ie. ogr_csharp.dll)  for 
 this
 purpose.


 Best regards,

 Tamas



 2009/4/6 Paul james paulj...@gmail.com

 All value from getExtent (Postgis layer) is : 3.4028234663852886E+38

 Is it a bug?



 On Mon, Apr 6, 2009 at 5:56 PM, Tamas Szekeres 
 szeker...@gmail.comwrote:

 Why don't? That function have already been exposed for *layerObj*with 
 the following signature:

 *public rectObj getExtent(void)*

 Best regards,

 Tamas



 2009/4/6 Paul james paulj...@gmail.com

  Hello, It seems that getExtent (c#) is not implemented...
 Any other solution to get extent of a layer using mapscript?

 Paul

 ___
 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] setFilter problem (c#)

2009-04-06 Thread Paul james
Hi Tamas!
It´s a Postgis layer...And the extent is fine...
Any ideia?

Thanks

On Sat, Apr 4, 2009 at 3:52 PM, Tamas Szekeres szeker...@gmail.com wrote:

 Paul,

 Which data source are you using? It highly depends on the type of the data
 source how the filter is interpreted by mapserver.
 Are you sure there are matching features within the extent you have?

 Best regards,

 Tamas



 2009/4/3 Paul james paulj...@gmail.com

 Hello guys...
 I got a problem...
 My code :

 
 var _filter = ('[gid]'='10');
 var _layer = _map.MapObj.getLayerByName(X);

 var _lC = _layer.clone();
 _lC.setFilter(_filter);
 _lC.name = Dummy;
 _lC.status = 1;
 _lC.getClass(0).getStyle(0).color.setRGB(0, 250, 250);
 _lC.getClass(0).getStyle(0).outlinecolor.setRGB(0, 250, 0);
 _map.MapObj.insertLayer(_lC, _map.MapObj.numlayers-1);
 
 -

 No error, but the filter layer doest appear... If I took of the filter
 line, the layer shows up ok...

 Any idea?

 []´s

 ___
 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] setFilter problem (c#)

2009-04-06 Thread Paul james
Thanks Tamas...
I found the problem...

The correct filter to postgis is :

(gid='10')

On Mon, Apr 6, 2009 at 12:11 PM, Tamas Szekeres szeker...@gmail.com wrote:

 Then the filter is passed directly to the database in the SQL WHERE clause.
 You might want to enable logging the SQL statements at the server and see
 what gets executed when the layer is drawn.

 Best regards,

 Tamas



 2009/4/6 Paul james paulj...@gmail.com

 Hi Tamas!
 It´s a Postgis layer...And the extent is fine...
 Any ideia?

 Thanks


 On Sat, Apr 4, 2009 at 3:52 PM, Tamas Szekeres szeker...@gmail.comwrote:

 Paul,

 Which data source are you using? It highly depends on the type of the
 data source how the filter is interpreted by mapserver.
 Are you sure there are matching features within the extent you have?

 Best regards,

 Tamas



 2009/4/3 Paul james paulj...@gmail.com

  Hello guys...
 I got a problem...
 My code :

 
 var _filter = ('[gid]'='10');
 var _layer = _map.MapObj.getLayerByName(X);

 var _lC = _layer.clone();
 _lC.setFilter(_filter);
 _lC.name = Dummy;
 _lC.status = 1;
 _lC.getClass(0).getStyle(0).color.setRGB(0, 250, 250);
 _lC.getClass(0).getStyle(0).outlinecolor.setRGB(0, 250, 0);
 _map.MapObj.insertLayer(_lC, _map.MapObj.numlayers-1);
 
 -

 No error, but the filter layer doest appear... If I took of the filter
 line, the layer shows up ok...

 Any idea?

 []´s

 ___
 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] getExtent(c#) with Postgis data ...

2009-04-06 Thread Paul james
Hello, It seems that getExtent (c#) is not implemented...
Any other solution to get extent of a layer using mapscript?

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


Re: [mapserver-users] getExtent(c#) with Postgis data ...

2009-04-06 Thread Paul james
All value from getExtent (Postgis layer) is : 3.4028234663852886E+38

Is it a bug?


On Mon, Apr 6, 2009 at 5:56 PM, Tamas Szekeres szeker...@gmail.com wrote:

 Why don't? That function have already been exposed for *layerObj* with the
 following signature:

 *public rectObj getExtent(void)*

 Best regards,

 Tamas



 2009/4/6 Paul james paulj...@gmail.com

 Hello, It seems that getExtent (c#) is not implemented...
 Any other solution to get extent of a layer using mapscript?

 Paul

 ___
 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] getExtent(c#) with Postgis data ...

2009-04-06 Thread Paul james
Where can I find ogr_csharp.dll ?

Thanks Tamas!

Paul

On Mon, Apr 6, 2009 at 6:22 PM, Tamas Szekeres szeker...@gmail.com wrote:

 Paul,

 Unfortunately this function is not implemented by the MapServer postgis
 driver, you might want to use the OGR C# API (ie. ogr_csharp.dll)  for this
 purpose.


 Best regards,

 Tamas



 2009/4/6 Paul james paulj...@gmail.com

 All value from getExtent (Postgis layer) is : 3.4028234663852886E+38

 Is it a bug?



 On Mon, Apr 6, 2009 at 5:56 PM, Tamas Szekeres szeker...@gmail.comwrote:

 Why don't? That function have already been exposed for *layerObj* with
 the following signature:

 *public rectObj getExtent(void)*

 Best regards,

 Tamas



 2009/4/6 Paul james paulj...@gmail.com

  Hello, It seems that getExtent (c#) is not implemented...
 Any other solution to get extent of a layer using mapscript?

 Paul

 ___
 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] setFilter problem (c#)

2009-04-03 Thread Paul james
Hello guys...
I got a problem...
My code :


var _filter = ('[gid]'='10');
var _layer = _map.MapObj.getLayerByName(X);

var _lC = _layer.clone();
_lC.setFilter(_filter);
_lC.name = Dummy;
_lC.status = 1;
_lC.getClass(0).getStyle(0).color.setRGB(0, 250, 250);
_lC.getClass(0).getStyle(0).outlinecolor.setRGB(0, 250, 0);
_map.MapObj.insertLayer(_lC, _map.MapObj.numlayers-1);

-

No error, but the filter layer doest appear... If I took of the filter line,
the layer shows up ok...

Any idea?

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


[mapserver-users] Re: setFilter problem (c#)

2009-04-03 Thread Paul james
I forgot, my mapserver version 5.2.0

Thanks

On Fri, Apr 3, 2009 at 3:21 PM, Paul james paulj...@gmail.com wrote:

 Hello guys...
 I got a problem...
 My code :

 
 var _filter = ('[gid]'='10');
 var _layer = _map.MapObj.getLayerByName(X);

 var _lC = _layer.clone();
 _lC.setFilter(_filter);
 _lC.name = Dummy;
 _lC.status = 1;
 _lC.getClass(0).getStyle(0).color.setRGB(0, 250, 250);
 _lC.getClass(0).getStyle(0).outlinecolor.setRGB(0, 250, 0);
 _map.MapObj.insertLayer(_lC, _map.MapObj.numlayers-1);
 
 -

 No error, but the filter layer doest appear... If I took of the filter
 line, the layer shows up ok...

 Any idea?

 []´s

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


[mapserver-users] WMS Google Layer !

2009-03-09 Thread Paul james
Hello guys...
I´m trying to add a Google Maps WMS layer on mapserver... Without sucess ...
If someone could help me on that, It will be great !

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


Re: [mapserver-users] Mapserver.org sample ...

2009-01-13 Thread Paul james
Thanks !
Can you point me some quickstart with openlayer + mapserver + tilecache? I´m
kind lost on it...
I have a custom app using mapscript + postgis... And I´d like to make a
version using openlayers and tilecache...



On Tue, Jan 13, 2009 at 2:03 PM, Christopher Schmidt 
crschm...@metacarta.com wrote:

 On Tue, Jan 13, 2009 at 12:57:24PM -0300, Paul james wrote:
  Thanks Tamas...
  Is It possible to use OpenLayers with mapscript?

 In what way? OpenLayers would typically take over many of the roles that
 a custom application would -- building your application in Javascript
 instead of PHP. Depending on what you are doing with mapScript, it may
 be possibl t simply use MapServer as a CGI instead, or it may be
 possible to implement what you want such that OpenLayers can ccomplish
 it.

 
 
  On Tue, Jan 13, 2009 at 12:47 PM, Tamas Szekeres szeker...@gmail.com
 wrote:
 
   Paul,
  
   This kind of functionality requires some client side scripting like
   javascript implemented by OpenLayers in this particular case.
  
   Best regards,
  
   Tamas
  
  
   2009/1/13 Paul james paulj...@gmail.com
  
 Hello guys...
   Looking at mapserver.org map sample. I´d like to know how can I do
   something like that ... Can someone point me the right direction to do
 that?
   Is it possible to use mapscript c# to do that?
  
   Thanks
  
   ___
   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


 --
 Christopher Schmidt
 MetaCarta

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


[mapserver-users] Mapscript + google maps layer?

2008-11-03 Thread Paul james
Hello guys!
Is it possible to add a google layer in my Mapserver/Mapscript app?
How?

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


[mapserver-users] Symbol rendering performance (image x vector x font)

2008-10-21 Thread Paul james
Hello guys!
I´d like to know if exist significant performance differences between these
tree kinds of symbol : image(pixmap), vector and font(TRUETYPE)... Which one
is the best choose (performance)

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


Re: [mapserver-users] AGG output with mapscript C# 5.2 problem...

2008-10-17 Thread Paul james
Hi Tamas...
That problem only occurs when I use that layer:

LAYER  #11
NAME Test
GROUP GROUP1
TYPE LINE
STATUS ON
CONNECTIONTYPE POSTGIS
CONNECTION X
DATA X
SIZEUNITS meters
CLASS
TEMPLATE dummy
NAME Teste
COLOR 0 0 0
STYLE
COLOR 0 0 0
WIDTH 1
END
STYLE
SYMBOL dash
WIDTH 1
COLOR 0 0 0
OFFSET 3 -99
END
END
END

SYMBOL
NAME 'dash'
PATTERN 13 13 END
TYPE SIMPLE
END



On Thu, Oct 16, 2008 at 6:09 PM, Tamas Szekeres [EMAIL PROTECTED] wrote:

 Paul,

 Could you provide further information (sampe app, data, mapfile) to
 reproduce the problem?

 Best regards,

 Tamas



 2008/10/16 Paul james [EMAIL PROTECTED]:
  Hello guys...
  I´m using lastest MS4W mapscript compilation (5.2) ...
 
  So, I tried to use AGG output like that:
  MAP
  ...
  IMAGETYPE png
  ...
  OUTPUTFORMAT
  NAME 'AGG'
  DRIVER AGG/PNG
  IMAGEMODE RGB
END
 
  I got I image, but in GD .. So I tried to modify the IMAGETYPE, like
 that:
  IMAGETYPE AGG
 
  And I got a error (System.AccessViolationException) ...
 
  Any ideias ?
 
  Thanks
 
  ___
  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] geomfromtext (POSTGIS) in C# or other language...

2008-09-18 Thread Paul james
Hello Guys...
I´d like to add a point in a Postgis layer... I´m able to do this using
geomfromtext function (postgis)...
I´d like to do that in C#  ...
Is that possible?

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


Re: [mapserver-users] geomfromtext (POSTGIS) in C# or other language...

2008-09-18 Thread Paul james
Thanks Thamas...
Thats sounds great...
But, after I used Geometry.CreateFromWkt function to convert my geometry,
how can I add it to the PostGis Layer?

On Thu, Sep 18, 2008 at 12:06 PM, Tamas Szekeres [EMAIL PROTECTED]wrote:

 Paul,

 You could probably use the GDAL C# bindings and the
 Geometry.CreateFromWkt function for this purpose.
 For more information see the createdata.cs example in the gdal source tree.

 Best regards,

 Tamas


 2008/9/18 Paul james [EMAIL PROTECTED]:
   Hello Guys...
  I´d like to add a point in a Postgis layer... I´m able to do this using
  geomfromtext function (postgis)...
  I´d like to do that in C#  ...
  Is that possible?
 
  Thankz
  ___
  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] Problem with Label ...

2008-05-29 Thread Paul james
Hi Guys... Take a look in the attached image ...
Why is mapserver putting white space after text? In the database is
everthing ok, with no space at all...

ps.: I added BACKGROUNDCOLOR to label to show up the problem... Using latest
ms4w compiled version for C# + oracle...

My Mapfile:

LAYER  #6
  NAME BASE
  GROUP x
  TYPE POINT
  STATUS ON
  CONNECTIONTYPE oraclespatial
  CONNECTION x/y
  DATA GEOM from GEO_BASE USING UNIQUE ID VERSION 10G
  LABELITEM NAME
  CLASS
   TEMPLATE dummy
   NAME BASES
   STYLE
SYMBOL circle
MINSIZE 9
MAXSIZE 9
COLOR 255 255 13
OUTLINECOLOR 0 0 0
   END
   LABEL
BACKGROUNDCOLOR X X X
COLOR X X X
FONT arial
TYPE TRUETYPE
SIZE 10
ANTIALIAS TRUE
POSITION AUTO
PARTIALS FALSE
BUFFER 3
   END
  END
 END
attachment: Mapserver Label.GIF___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Retrieve column names from getFeature ...

2008-05-29 Thread Paul james
Hello all...
I have this code in mapscript (c#):

...
resultCacheMemberObj _result = _layer.getResult(i);
_layer.open();
shapeObj _obj = _layer.getFeature(_result.shapeindex, _result.tileindex);
_layer.close();
...

So, in my _obj.values I have a array with db data... Is it posible to get
the column name ?

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


Re: [mapserver-users] Problem with Label ...

2008-05-29 Thread Paul james
Thanks Stephen !
I´ll waiting for news !

[]´s


On 5/29/08, Stephen Woodbridge [EMAIL PROTECTED] wrote:

 Paul,

 hmmm, I'm sure I ran int this problem before, but I can not find any
 reference in my notes and I do not have access the oracle installation any
 more. I did a quick scan of all the oracle bugs and did not see it. maybe
 the problem I had was not oracle specific and was fixed, but might have been
 missed in the oracle branch of the code. I would write a bug up on it.

 -Steve

 Paul james wrote:

 Hello...
 Thank you for reply...
 I´m using version 5.0.2, compiled for C# + Oracle (MS4W Binary)  There are
 some others layers with same mapfile definition, but without that bug.. Its
 very strange...
  []´s
  On 5/29/08, *Stephen Woodbridge* [EMAIL PROTECTED] mailto:
 [EMAIL PROTECTED] wrote:

Hi Paul,

I believe this was a bug that has fixed. What version of mapserver
are you using?

-Steve W

Paul james wrote:

Hi Guys... Take a look in the attached image ...
Why is mapserver putting white space after text? In the database
is everthing ok, with no space at all...
 ps.: I added BACKGROUNDCOLOR to label to show up the problem...
Using latest ms4w compiled version for C# + oracle...
 My Mapfile:

LAYER  #6
 NAME BASE
 GROUP x
 TYPE POINT
 STATUS ON
 CONNECTIONTYPE oraclespatial
 CONNECTION x/y
 DATA GEOM from GEO_BASE USING UNIQUE ID VERSION 10G
 LABELITEM NAME
 CLASS
  TEMPLATE dummy
  NAME BASES
  STYLE
   SYMBOL circle  MINSIZE 9
   MAXSIZE 9
   COLOR 255 255 13
   OUTLINECOLOR 0 0 0
  END
  LABEL
   BACKGROUNDCOLOR X X X
   COLOR X X X
   FONT arialTYPE TRUETYPE
   SIZE 10
   ANTIALIAS TRUE
   POSITION AUTO
   PARTIALS FALSE
   BUFFER 3
  END
 END
 END



  



  

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
mailto: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] C# functon resultCacheMemberObj shapeindex ... Posible bug?

2008-05-20 Thread Paul james
I´m using Postgis...
My mapfile:

  MAP
 EXTENT -79.7892 -34.2426 -24.9958 6.11775
 FONTSET fonts.txt
 IMAGECOLOR 255 255 255
 IMAGETYPE png
 SYMBOLSET symbols.sym
 SIZE 400 200
 STATUS ON
 UNITS dd
 NAME World

 OUTPUTFORMAT
  NAME gif
  MIMETYPE image/png
  DRIVER gd/png
  EXTENSION png
  IMAGEMODE rgb
  TRANSPARENT FALSE
 END

 QUERYMAP
  COLOR 255 0 0
  SIZE -1 -1
  STATUS ON
  STYLE hilite
 END

 LAYER  #With string PK
  NAME city
  GROUP GROUP1
  TYPE POLYGON
  STATUS ON
  CONNECTIONTYPE POSTGIS
  CONNECTION user=X password=x dbname=tblX host=localhost
  DATA geom from tblX USING UNIQUE idX USING SRID=4291
  CLASS
   TEMPLATE dummy
   NAME x
   COLOR 255 255 185
   OUTLINECOLOR 110 110 110
  END
 END
END


On 5/19/08, Tamas Szekeres [EMAIL PROTECTED] wrote:

 Hi,

 Which driver are you using, how the mapfile looks like?


 Tamas


 2008/5/19 Paul james [EMAIL PROTECTED]:
  Hello guys...
  I have a table with a character(11) PK...
  When I trie to get the shapes with queryByRect, all results are with
  shapeindex equal 0 (zero) ...
  If I tried that with a table with a integer PK, everthing works perfect..
  My code:
 
  layerObj _layer = mapObj.getLayerByName(__layer);
  if (_layer.queryByRect(mapObj, _oGeo) == 0)
  {
 for (int i = 0; i  _layer.getNumResults(); i++)
 {
  resultCacheMemberObj _result = _layer.getResult(i);
   //_result.shapeindex == 0
  shapeObj _obj = new shapeObj(-1); //dummy
 _layer.open();
 _layer.getShape(_obj, -1, _result.shapeindex);
}
  }
 
 
 
  Any solutions?
 
  []´s
 
  ___
  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] C# functon resultCacheMemberObj shapeindex ... Posible bug?

2008-05-19 Thread Paul james
Hello guys...
I have a table with a character(11) PK...
When I trie to get the shapes with queryByRect, all results are with
shapeindex equal 0 (zero) ...
If I tried that with a table with a integer PK, everthing works perfect..
My code:

layerObj _layer = mapObj.getLayerByName(__layer);
if (_layer.queryByRect(mapObj, _oGeo) == 0)
{
   for (int i = 0; i  _layer.getNumResults(); i++)
   {
resultCacheMemberObj _result = _layer.getResult(i);
 //_result.shapeindex == 0
shapeObj _obj = new shapeObj(-1); //dummy
   _layer.open();
   _layer.getShape(_obj, -1, _result.shapeindex);
  }
}



Any solutions?

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