Xavier, I have tested your code under windows and linux and worked for me. I have got: Nombre d'éléments 10
However on linux i did not want to bother with gdiplus.dll and friends so i have rewritten the code as a console app that creates a new Form1 and invokes the button1_Click(). And I have also switched to png instead of swf because i have not compiled mapserver with SWF before. Would you confirm that using it as a console app with png output makes crash for you? Would you post your exception information? Thanks, Tamas 2006/6/22, Xavier Mauclaire <[EMAIL PROTECTED]>:
Tamas This program has been created with VS2003. Under windows (.net) it works well. It has been compiled under linux with mono (file compile.sh) and tested under linux too. When running under linux it doesn't not work For the error you get, change, in the mapfile test.map the line IMAGETYPE swf By IMAGETYPE png Mapserver a been compiled with the swf option Do you want to have a chat on IRC? regards ----------------------------------------- Xavier Mauclaire Service informatique GEOTER SAS 3, rue Jean Monnet 34830 Clapiers France Tél.: +33 (0)4.67.59.18.11 Fax: +33 (0)4.67.59.18.24 Email: [EMAIL PROTECTED] Web site: http://www.geoter.fr ------------------------------------------------------- -----Message d'origine----- De : Tamas Szekeres [mailto:[EMAIL PROTECTED] Envoyé : jeudi 22 juin 2006 13:53 À : Xavier Mauclaire Objet : Re: [UMN_MAPSERVER-USERS] Mapscript ,Mono, Apache and Linux : a great story Hi Xavier, I 've tested on windows and i got: loadOutputFormat(): General error message. OUTPUTFORMAT clause references driver SWF, but this driver isn't configured. at mapObj..ctor(String filename) at Test1.Form1.button1_Click(Object sender, EventArgs e) in c:\cvs\xavier\test\test\form1.cs:line 124 using your mapscript_csharp.dll. I am not so familiar with swf so give me some help. I am a bit confused whether you are tesing on windows or linux. regards, Tamas PS: I could not identify you on the mapserver IRC line :( 2006/6/22, Xavier Mauclaire <[EMAIL PROTECTED]>: > Hi tamas > > You will find joined the file test.zip containing a little forms > programs using the mapserver getfeature function In the interface, > when you click on the button, the programs scratches like Mapserver. > You will notce that the code is not very clean (sorry). > Thre is another problem if i want to access séquentially to each > feature of a layer. If i use a while loop with testing the value of > the spaheObj returned by the function getfeature,this loop is infinite > because this function always returns a non NULL value. I saw this problem with windows. > This is why i used a for loop. > > regards > > > > > ----------------------------------------- > Xavier Mauclaire > Service informatique > GEOTER SAS > 3, rue Jean Monnet > 34830 Clapiers France > Tél.: +33 (0)4.67.59.18.11 > Fax: +33 (0)4.67.59.18.24 > Email: [EMAIL PROTECTED] > Web site: http://www.geoter.fr > ------------------------------------------------------- > > > > -----Message d'origine----- > De : Tamas Szekeres [mailto:[EMAIL PROTECTED] Envoyé : jeudi 22 > juin 2006 00:45 À : 'Xavier Mauclaire' > Objet : RE: [UMN_MAPSERVER-USERS] Mapscript ,Mono, Apache and Linux : > a great story > > I'm afraid i not understand exactly your application model. I am not > falmiliar with flash. > > Could you explain the usage sequence in more detail and the steps to > test this problem? > > I will trying look into it tomorrow then. > How should i configure apache for your app? > > > Tamas > > > -----Original Message----- > From: Xavier Mauclaire [mailto:[EMAIL PROTECTED] > Sent: Thursday, June 22, 2006 12:02 AM > To: 'Tamas Szekeres' > Subject: RE: [UMN_MAPSERVER-USERS] Mapscript ,Mono, Apache and Linux : > a great story > > I'm going to use the dynamic layer so i'm going to update the source > > what about installing the 4.6 version of mapserver on the linux server ? > > The server scratches when i want to create a information form. This > form is launch by the flash program. It uses the web > getparcellereglement.aspx (client data(xml) are send using POST > method) This verb is managed by the GetParcelleReglement.cs class. > This class initializes mapserver and computes data. Finally it > redirects to parcellereglement.aspx to display informations. > > > I installed gaim to have discussion and i' connecting to the > mapserver forum. my alias is xavier34 regards > > ----------------------------------------- > Xavier Mauclaire > Ingénieur Informaticien > GEOTER SAS > 3, rue Jean Monnet > 34830 Clapiers France > Tél.: +33 (0)4.67.59.18.11 > Fax: +33 (0)4.67.59.18.24 > Email: [EMAIL PROTECTED] > Web site: http://www.geoter.fr > ------------------------------------------------------- > > > > -----Message d'origine----- > De : Tamas Szekeres [mailto:[EMAIL PROTECTED] Envoyé : mercredi 21 > juin > 2006 23:37 À : 'Xavier Mauclaire' > Cc : [email protected] > Objet : RE: [UMN_MAPSERVER-USERS] Mapscript ,Mono, Apache and Linux : > a great story > > > >I did not include your code at this time because (if i understood > >your last email, the modification was about the dynamic creation of > >LayerObjet object. > >My last answer was about this. I wrote that i disabled the function > >to make a test and i prodcued the same error with the getfeature Do > >you want that i make the test? > >Most of the error are on the getfeature function but not all. > > Xavier, > > If you aren't using dynamically created layerObj classObj and styleObj > with a parent object given in the constructor that change is not to be made. > > >I get the problem when i'm connecting to the web site with my browser > > You have several aspx files, what is the URL you are using? > > >I can make an mono console application that create mapserver output > >file > and > >test the result > > That would make the things much more easier. > > > Best Regards, > > > Tamas > > -- > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.1.394 / Virus Database: 268.9.2/372 - Release Date: 2006.06.21. > > > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.1.394 / Virus Database: 268.9.2/372 - Release Date: 2006.06.21. > > > -- > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.1.394 / Virus Database: 268.9.2/372 - Release Date: 2006.06.21. > > > > >
