Re: [mapserver-users] MapScript resultsGetShape confusion [solved!]

2010-06-02 Thread Christian Jauvin
that (to my knowledge) with MS in [5.6.0, 5.6.2]. By the way, an initial observation I made was wrong: it also affects the PHP version, and the workaround is the same. Best regards, Christian On Tue, Jun 1, 2010 at 5:02 PM, Daniel Morissette wrote: > Christian Jauvin wrote: >> &g

Re: [mapserver-users] MapScript resultsGetShape confusion

2010-06-01 Thread Christian Jauvin
> Errr... sorry, all that time I thought you were using shapefiles. In fact I use both, but then it's only the PG connection type that is causing the issue. I did what you suggested, and added: CONFIG "MS_ERRORFILE" "" CONFIG "CPL_DEBUG" "ON" DEBUG 5 to my mapfile, and performed my query again.

Re: [mapserver-users] MapScript resultsGetShape confusion

2010-06-01 Thread Christian Jauvin
Hi Daniel, > About the Python issue, if you can file a ticket with a small testcase to > reproduce (data + mapfile + exact steps to reproduce) then one of us could > try to have a look. I just checked using the latest "python-mapscript 5.6.3-2~lucid1" package from UbuntuGIS, and it has the same i

[mapserver-users] Re: [mapserver-dev] MapScript resultsGetShape confusion

2010-06-01 Thread Christian Jauvin
hape > ids, so you should use them when you read shapes by id and not going through > a query/resultset. > > In 5.6.2 or in 5.6.3, some of the drivers that were still not using the new > query mechanism properly have been fixed and that could explain the > different behavior that

[mapserver-users] MapScript resultsGetShape confusion

2010-05-27 Thread Christian Jauvin
Hi, I've been using the new layerObj.resultsGetShape function with MS >= 5.6.0, both with Python and PHP MapScript. (1) My first issue is that it seems that something changed with version 5.6.3 of Python MS (I'm using MS4W beta 11) because calls to that function that used to work now hangs the se

[mapserver-users] Publishing a dynamically created (and transient) map

2010-03-12 Thread Christian Jauvin
Hi, In a surveillance application I am creating (DraconesPH), I build new maps by dynamically adding features on static layers (for instance, convex hull polygons computed with PostGIS, illustrating the results of a cluster detection algorithm). Someone asked me recently if there was a way to pub

[mapserver-users] Announcement: DraconesPH, a surveillance app built with Dracones

2010-02-10 Thread Christian Jauvin
n the Dracones site: http://surveillance.mcgill.ca/dracones/draconesph/index.php Best regards, Christian Jauvin ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] javscript controls for Zoom and Pan

2010-01-29 Thread Christian Jauvin
Hi Matias, I will take the occasion to suggest that you also take a look at Dracones, a new framework I recently released for MapServer, which provides easy handling of basic mapping services like pan and zoom, among other things: http://surveillance.mcgill.ca/dracones/ Best, Christian 2010/1

[mapserver-users] Announcement: Dracones, a web mapping framework for MapServer

2010-01-20 Thread Christian Jauvin
ge of issues and possibilities. This work is still in Alpha stage, and I will be of course very interested to hear the community's comments and suggestions. Best regards, Christian Jauvin ___ mapserver-users mailing list mapserver-users@lists.osge

[mapserver-users] Re: MS4W Beta 7 -- Python-Mapscript -- queryByRect strange behavior

2009-11-09 Thread Christian Jauvin
t would be greatly appreciated! Thanks, Christian On Mon, Nov 9, 2009 at 2:46 PM, Daniel Morissette wrote: > Christian Jauvin wrote: >> if succ == MS_SUCCESS: >>     n_res = layer.getNumResults() >>     for j in range(n_res): >>         res = layer.getResult(j) >

[mapserver-users] Re: Querying type=circle layer

2009-04-08 Thread Christian Jauvin
Sorry not "shapeindex".. "index" On Wed, Apr 8, 2009 at 11:06 AM, Christian Jauvin wrote: > I found the answer to my question: > > You have to manually add a "shapeindex" value for each feature that > you add, and it has to start from zero. > >

[mapserver-users] Re: Querying type=circle layer

2009-04-08 Thread Christian Jauvin
I found the answer to my question: You have to manually add a "shapeindex" value for each feature that you add, and it has to start from zero. Christian On Tue, Apr 7, 2009 at 5:23 PM, Christian Jauvin wrote: > Hi, > > I use Python-Mapscript 5.2 on Windows. I have a layer

[mapserver-users] Querying type=circle layer

2009-04-07 Thread Christian Jauvin
Hi, I use Python-Mapscript 5.2 on Windows. I have a layer of type=circle on which I dynamically add features: layer = .. circle_shape = shapeObj(MS_SHAPE_LINE) p1 = pointObj(..) p2 = pointObj(..) line = lineObj() line.add(p1) line.add(p2) circle_shape.add(line) layer.addFeature(circle_shape) The

[mapserver-users] Getteing the intersection of two layers

2008-11-06 Thread Christian Jauvin
Hi Everyone, I have two layers that I want to intersect: one with points, and one with multiple polygons representing the regions of a territory. The first approach I just tried is doing it programmatically, through Python/MS: I first union all the region polygons, and then get the convex hull o

Re: [mapserver-users] Problem with Python Mapscript / Projection(MS4W) + new question

2008-11-05 Thread Christian Jauvin
t; > > > -----Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Christian > Jauvin > Sent: Wednesday, November 05, 2008 10:12 AM > To: Umberto Nicoletti > Cc: mapserver-users@lists.osgeo.org > Subject: Re: [mapserver-users] Problem

[mapserver-users] Cannot register on MS site

2008-11-05 Thread Christian Jauvin
Hi, I don't know if this is the right place to signal a problem with the MS site, but since I can't even send an email through the site.. Since yesterday, I try to register as a new user at: http://mapserver.gis.umn.edu/join_form but the system won't accept any email address I supply, even thou

Re: [mapserver-users] Problem with Python Mapscript / Projection (MS4W)

2008-11-05 Thread Christian Jauvin
parmor, depending on your platform. > > Umberto > > On Wed, Nov 5, 2008 at 6:12 AM, Christian Jauvin <[EMAIL PROTECTED]> wrote: >> Hi, >> >> I get a "MapServerError: msProcessProjection(): Projection library >> error. Permission denied" error while

[mapserver-users] Problem with Python Mapscript / Projection (MS4W)

2008-11-04 Thread Christian Jauvin
Hi, I get a "MapServerError: msProcessProjection(): Projection library error. Permission denied" error while using Python/MapScript (MS4W 2.3, MapServer 5), after having included a PROJECTION "init=epsg:" END directive in a mapfile layer. I guess that it has something to do with an Apache