From map_surfer@yahoo.com Mon Dec 1 14:18:34 2003 From: map_surfer@yahoo.com (Damian Schroder) Date: Mon, 1 Dec 2003 06:18:34 -0800 (PST) Subject: [maplab-users] postgis layers Message-ID: <20031201141834.15354.qmail@web80705.mail.yahoo.com> --0-870356794-1070288314=:14995 Content-Type: text/plain; charset=us-ascii Dear list, I have created an application using map lab. Everything works great and I have been able to add some nice customizations.However, when I put postgis layers in the project things start getting unstable.First, in order to get a postgis layer, I had to rem out the $oLayer->close() statement in the function processQuery( layer ) found in the map_query.php (something I'm not comfortable with doing but it works). Everything works perfect except for the drawquery() function found in the drawmap.php, and it only fails part of the time. If the postgis layer is the only active layer the drawquery() will never fail unless the rect box does not intersect a feature in the layer. The same is true if there are two postgis layers, if the rect box does not intersect one layer's features the drawquery() fails. If there is a shapefile layer with a postgis layer this does not happen, it simply returns no results found for either layer if it was not intersected. However, if a rect box is made too small (in my case 1.5 degrees by 1.5 degrees) the drawquery fails. If at full extent the rect box is approximately 115x115 pixels for a 450x450 pixel map, so the rect box is not tiny.In all this I am always able to recieve the query results even when the drawquery() fails. I am getting absolutely no response on the mapserver list. My gut tells me it is a mapserver issue (not Maplab or postgis), but I thought maybe someone has successfully used postgis layers with mapsever that could give me some insight. Thanks , Damian --------------------------------- Do you Yahoo!? Free Pop-Up Blocker - Get it now --0-870356794-1070288314=:14995 Content-Type: text/html; charset=us-ascii
Dear list,
I have created an application using map lab. Everything works great and I have been able to add some nice customizations.However, when I put postgis layers in the project things start getting unstable.First, in order to get a postgis layer, I had to rem out the $oLayer->close() statement in the function processQuery( layer ) found in the map_query.php (something I'm not comfortable with doing but it works). Everything works perfect except for the drawquery() function found in the drawmap.php, and it only fails part of the time. If the postgis layer is the only active layer the drawquery() will never fail unless the rect box does not intersect a feature in the layer. The same is true if there are two postgis layers, if the rect box does not intersect one layer's features the drawquery() fails. If there is a shapefile layer with a postgis layer this does not happen, it simply returns no results found for either layer if it was not intersected. However, if a rect box is made too small (in my case 1.5 degrees by 1.5 degrees) the drawquery fails. If at full extent the rect box is approximately 115x115 pixels for  a 450x450 pixel map, so the rect box is not tiny.In all this  I am always able to recieve the query results even when the drawquery() fails. I am getting absolutely no response on the mapserver list. My gut tells me it is a mapserver issue (not Maplab or postgis), but I thought maybe someone has successfully used postgis layers with mapsever that could give me some insight.
 
Thanks ,
 
Damian


Do you Yahoo!?
Free Pop-Up Blocker - Get it now --0-870356794-1070288314=:14995-- From zak-ms@hoppsan.org Mon Dec 1 16:09:27 2003 From: zak-ms@hoppsan.org (Zak James) Date: Mon, 1 Dec 2003 11:09:27 -0500 Subject: [maplab-users] postgis layers In-Reply-To: <20031201141834.15354.qmail@web80705.mail.yahoo.com> References: <20031201141834.15354.qmail@web80705.mail.yahoo.com> Message-ID: I think you will have to look for this to be addressed on the mapserver list, as you suggest. It's independent of maplab. Is it possible that the order or your layers is playing a role in which items are queried? -- Zak James Applications and Software Development DM Solutions Group Inc. http://www.dmsolutions.ca On Dec 1, 2003, at 9:18 AM, Damian Schroder wrote: > Dear list, > I have created an application using map lab. Everything works great > and I have been able to add some nice customizations.However, when I > put postgis layers in the project things start getting unstable.First, > in order to get a postgis layer, I had to rem out the $oLayer->close() > statement in the function processQuery( layer ) found in the > map_query.php (something I'm not comfortable with doing but it works). > Everything works perfect except for the drawquery() function found in > the drawmap.php, and it only fails part of the time. If the postgis > layer is the only active layer the drawquery() will never fail unless > the rect box does not intersect a feature in the layer. The same is > true if there are two postgis layers, if the rect box does not > intersect one layer's features the drawquery() fails. If there is a > shapefile layer with a postgis layer this does not happen, it simply > returns no results found for either layer if it was not intersected. > However, if a rect box is made to! > o small > (in my case 1.5 degrees by 1.5 degrees) the drawquery fails. If at > full extent the rect box is approximately 115x115 pixels for a > 450x450 pixel map, so the rect box is not tiny.In all this I am > always able to recieve the query results even when the drawquery() > fails. I am getting absolutely no response on the mapserver list. My > gut tells me it is a mapserver issue (not Maplab or postgis), but I > thought maybe someone has successfully used postgis layers with > mapsever that could give me some insight. > > Thanks , > > Damian > > > --------------------------------- > Do you Yahoo!? > Free Pop-Up Blocker - Get it now From map_surfer@yahoo.com Mon Dec 1 16:58:07 2003 From: map_surfer@yahoo.com (Damian Schroder) Date: Mon, 1 Dec 2003 08:58:07 -0800 (PST) Subject: [maplab-users] postgis layers In-Reply-To: Message-ID: <20031201165807.26453.qmail@web80710.mail.yahoo.com> --0-1851525761-1070297887=:26135 Content-Type: text/plain; charset=us-ascii Zak, I cannot thank you enough for atleast responding to this issue and giving me some lead. Like I mentioned before I have posted atleast 3 messages about this on both mapsever and postgis list with absolutely 0 response. For now I am going to change all vector layers to postgis layers and try to find out exactly where it is bombing out (refering to the issue of the rect box not intersecting a feature of just one of the layers causing the drawquery to fail). The incompatibility with postgis and shape file layers in regards to the drawquery() function is definately a mapserver issue. But, I think modifying some of the maplab generated code can produce an application that will support vector layers that are all postgis layers. Please keep me posted if you discover anything on this. I will post any code if I am successful. Thanks again, Damian Zak James wrote: I think you will have to look for this to be addressed on the mapserver list, as you suggest. It's independent of maplab. Is it possible that the order or your layers is playing a role in which items are queried? -- Zak James Applications and Software Development DM Solutions Group Inc. http://www.dmsolutions.ca On Dec 1, 2003, at 9:18 AM, Damian Schroder wrote: > Dear list, > I have created an application using map lab. Everything works great > and I have been able to add some nice customizations.However, when I > put postgis layers in the project things start getting unstable.First, > in order to get a postgis layer, I had to rem out the $oLayer->close() > statement in the function processQuery( layer ) found in the > map_query.php (something I'm not comfortable with doing but it works). > Everything works perfect except for the drawquery() function found in > the drawmap.php, and it only fails part of the time. If the postgis > layer is the only active layer the drawquery() will never fail unless > the rect box does not intersect a feature in the layer. The same is > true if there are two postgis layers, if the rect box does not > intersect one layer's features the drawquery() fails. If there is a > shapefile layer with a postgis layer this does not happen, it simply > returns no results found for either layer if it was not intersected. > However, if a rect box is made to! > o small > (in my case 1.5 degrees by 1.5 degrees) the drawquery fails. If at > full extent the rect box is approximately 115x115 pixels for a > 450x450 pixel map, so the rect box is not tiny.In all this I am > always able to recieve the query results even when the drawquery() > fails. I am getting absolutely no response on the mapserver list. My > gut tells me it is a mapserver issue (not Maplab or postgis), but I > thought maybe someone has successfully used postgis layers with > mapsever that could give me some insight. > > Thanks , > > Damian > > > --------------------------------- > Do you Yahoo!? > Free Pop-Up Blocker - Get it now --------------------------------- Do you Yahoo!? Free Pop-Up Blocker - Get it now --0-1851525761-1070297887=:26135 Content-Type: text/html; charset=us-ascii
Zak,
 
I cannot thank you enough for atleast responding to this issue and giving me some lead. Like I mentioned before I have posted atleast 3 messages about this on both mapsever and postgis list with absolutely 0 response. For now I am going to change all vector layers to postgis layers and try to find out exactly where it is bombing out (refering to the issue of the rect box not intersecting a feature of just one of the layers causing the drawquery to fail). The incompatibility with postgis and shape file layers in regards to the drawquery() function is definately a mapserver issue. But, I think modifying some of the maplab generated code can produce an application that will support vector layers that are all postgis layers.
 
Please keep me posted if you discover anything on this. I will post any code if I am successful.
 
Thanks again,
 
Damian
 

 


Zak James <zak-ms@hoppsan.org> wrote:
I think you will have to look for this to be addressed on the mapserver
list, as you suggest. It's independent of maplab.

Is it possible that the order or your layers is playing a role in which
items are queried?

--
Zak James
Applications and Software Development
DM Solutions Group Inc.
http://www.dmsolutions.ca

On Dec 1, 2003, at 9:18 AM, Damian Schroder wrote:

> Dear list,
> I have created an application using map lab. Everything works great
> and I have been able to add some nice customizations.However, when I
> put postgis layers in the project things start getting unstable.First,
> in order to get a postgis layer, I had to rem out the $oLayer->close()
> statement in the function processQuery( layer ) found in the
> map_query.php (something I'm not comfortable with doing but it works).
> Everything works perfect except for the drawquery() function found in
> the drawmap.php, and it only fails part of the time. If the postgis
> layer is the only active layer the drawquery() will never fail unless
> the rect box does not intersect a feature in the layer. The same is
> true if there are two postgis layers, if the rect box does not
> intersect one layer's features the drawquery() fails. If there is a
> shapefile layer with a postgis layer this does not happen, it simply
> returns no results found for either layer if it was not intersected.
> However, if a rect box is made to!
> o small
> (in my case 1.5 degrees by 1.5 degrees) the drawquery fails. If at
> full extent the rect box is approximately 115x115 pixels for a
> 450x450 pixel map, so the rect box is not tiny.In all this I am
> always able to recieve the query results even when the drawquery()
> fails. I am getting absolutely no response on the mapserver list. My
> gut tells me it is a mapserver issue (not Maplab or postgis), but I
> thought maybe someone has successfully used postgis layers with
> mapsever that could give me some insight.
>
> Thanks ,
>
> Damian
>
>
> ---------------------------------
> Do you Yahoo!?
> Free Pop-Up Blocker - Get it now


Do you Yahoo!?
Free Pop-Up Blocker - Get it now --0-1851525761-1070297887=:26135-- From warnock@dmsolutions.ca Mon Dec 1 19:42:50 2003 From: warnock@dmsolutions.ca (Fred Warnock) Date: Mon, 01 Dec 2003 14:42:50 -0500 Subject: [maplab-users] OpenMapFileBrowser() window size References: Message-ID: <3FCB99BA.8090905@dmsolutions.ca> Hi Tyler, Thanks for the feedback on that dialogue. I think that probably the least invasive solution would be to add scroolbars, and the capacity to resize, and make the dialogues a little bigger to accommodate larger text. Lately I've been working on dialogue designs that stretch and contract to fit variable window sizes, but there is always a minimum required size... I assume that your fonts were set to large because you have a high resolution set on your monitor. oh, and most of the popup ads that slip through my popup suppression are all graphics, so they circumvent the problem altogether. fred -- _________________________________________________ Fred Warnock Web, Graphic & Cartographic Design DM Solutions Group Inc. http://www.dmsolutions.ca From TMitchell@lignum.com Mon Dec 1 22:09:51 2003 From: TMitchell@lignum.com (Tyler Mitchell) Date: Mon, 1 Dec 2003 14:09:51 -0800 Subject: [maplab-users] OpenMapFileBrowser() window size In-Reply-To: <3FCB99BA.8090905@dmsolutions.ca> Message-ID: >I assume that your fonts were set to large because you have a high >resolution set on your monitor. Yes, my screen resolution is set to 1600 x 1200. I should have noted that the only problem I was having were with the buttons at the bottom of the screen. I tried added "scrollbars=yes" and it seemed to only affter the directory listing portion. I assumed I made the change in the wrong spot. >oh, and most of the popup ads that slip through my popup suppression are >all graphics, so they circumvent the problem altogether. You could always make the button panel one graphic too :) Just kidding. tyler Fred Warnock To Sent by: maplab-users-admi cc n@lists.maptools. maplab-users@dmsolutions.ca org Fax to Subject 12/01/2003 11:42 Re: [maplab-users] AM OpenMapFileBrowser() window size Hi Tyler, Thanks for the feedback on that dialogue. I think that probably the least invasive solution would be to add scroolbars, and the capacity to resize, and make the dialogues a little bigger to accommodate larger text. Lately I've been working on dialogue designs that stretch and contract to fit variable window sizes, but there is always a minimum required size... I assume that your fonts were set to large because you have a high resolution set on your monitor. oh, and most of the popup ads that slip through my popup suppression are all graphics, so they circumvent the problem altogether. fred -- _________________________________________________ Fred Warnock Web, Graphic & Cartographic Design DM Solutions Group Inc. http://www.dmsolutions.ca _______________________________________________ Maplab-users mailing list Maplab-users@lists.maptools.org http://lists.maptools.org/mailman/listinfo/maplab-users From morissette@dmsolutions.ca Tue Dec 2 05:25:43 2003 From: morissette@dmsolutions.ca (Daniel Morissette) Date: Tue, 02 Dec 2003 00:25:43 -0500 Subject: [maplab-users] postgis layers In-Reply-To: <20031201165807.26453.qmail@web80710.mail.yahoo.com> References: <20031201165807.26453.qmail@web80710.mail.yahoo.com> Message-ID: <3FCC2257.3000804@dmsolutions.ca> Damian Schroder wrote: > I cannot thank you enough for atleast responding to this issue and > giving me some lead. Like I mentioned before I have posted atleast 3 > messages about this on both mapsever and postgis list with absolutely 0 > response. Unfortunately you're in a kind of black hole when you ask questions involving MapScript and PostGIS on the lists: - The PostGIS guys don't seem to use MapScript much so they can help you only if you have a reproduceable test case that involves the mapserv CGI - I and the other MapScript developers are not PostGIS experts (like the Refractions guys are for instance), so we tend to skip PostGIS related questions on the lists because they take too much time for us to answer. I think you can help us help you by doing a little bit of extra work to submit simple reproduceable test case that either involve only the mapserv CGI, or involve only a few lines of MapScript. For instance, I read somewhere in your message that you had to comment the $layer->close() call for PostGIS layer queries to work. This looks very much like a bug and you've done a great job of isolating the problem... perhaps you could file this one in bugzilla to make sure someone addresses it when time permits. HTH Daniel -- ------------------------------------------------------------ Daniel Morissette morissette@dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From Radim Machu Tue Dec 2 13:44:55 2003 From: Radim Machu (Radim Machu) Date: Tue, 2 Dec 2003 14:44:55 +0100 Subject: [maplab-users] About the join object Message-ID: <41163482064.20031202144455@ecn.cz> Dear list-users, I watched user-list archive for threads dealing with JOIN object (I copy this message also also to those who discussed this topic), because I tested to use JOIN with Mapserver4, MapLab4 with NO success. My results are following: map file: JOIN NAME "dbSites" TYPE SINGLE TABLE "c:/ms4w/apps/maplab20/tutorial/wwf_data/dbsites.dbf" FROM "LINK" TO "LINK" END -------- error message in MapServer 4 loadClass(): Unknown identifier. (JOIN):(156) -------- error message in MapLab 4: Warning: [MapServer Error]: loadClass(): Parsing error near (JOIN):(line 205) in C:\ms4w\apps\maplab20\htdocs\common\wrapper\map_session.php on line 208 Warning: Failed to open map file c:/ms4w/tmp/ms_tmp//3fcc6bd2aec50.map in C:\ms4w\apps\maplab20\htdocs\common\wrapper\map_session.php on line 208 Fatal error: Call to a member function on a non-object in C:\ms4w\apps\maplab20\htdocs\common\wrapper\map_session.php on line 231 -------- Could anybody inform me about current status of JOIN object implementation or what I did wrong? Thanks, Radim Machu ¦> Is there any one so kind give me the ideas about how to use the join object. ¦> I've explore the mapfile reference. I still can't understand what it exactlly. ¦> I've add one under one of my Class object. I saw the name variable in join object. ¦> The reference said "Unique name for this join, and it's required". And how does "From" and ¦> "To" mean? Besides, I need a template html file to show the queries result, would u please ¦> show me some examples?Thanx! ¦> Here is part of my mapfile about join object. ¦> JOIN ¦> NAME "Buildings"------is this user defined? ¦> TYPE MULTIPLE ¦> TABLE "c:/msapps/nctu/data/buildingauth.dbf" ¦> FROM "AREA"-----is this one attribute of my table? ¦> TO "NAME"------is this one attribute of my table too? ¦> END ¦> In spite of the cofig up, is there anything else needed to set for ¦> me to query my own map? ¦> Any ideas? ¦> Best regards!!!! ¦> Kent ¦> -------------------------------------------------------------------------------- ____________________________ Tradice Bílých Karpat Hostětín 4 687 71 p. Bojkovice mailto:tbk@ecn.cz www.tradicebk.cz tel.: 572 641040, fax: 572 641854 From Tradice Bilych Karpat Tue Dec 2 11:23:24 2003 From: Tradice Bilych Karpat (Tradice Bilych Karpat) Date: Tue, 2 Dec 2003 12:23:24 +0100 Subject: [maplab-users] About the join object In-Reply-To: <005401c2dbba$26f92f60$3910718c@heihachi> References: <005401c2dbba$26f92f60$3910718c@heihachi> Message-ID: <66154991275.20031202122324@ecn.cz> Dear list-users, I watched user-list archive for threads dealing with JOIN object (I copy this message also also to those who discussed this topic), because I tested to use JOIN with Mapserver4, MapLab4 with NO success. My results are following: map file: JOIN NAME "dbSites" TYPE SINGLE TABLE "c:/ms4w/apps/maplab20/tutorial/wwf_data/dbsites.dbf" FROM "LINK" TO "LINK" END -------- error message in MapServer 4 loadClass(): Unknown identifier. (JOIN):(156) -------- error message in MapLab 4: Warning: [MapServer Error]: loadClass(): Parsing error near (JOIN):(line 205) in C:\ms4w\apps\maplab20\htdocs\common\wrapper\map_session.php on line 208 Warning: Failed to open map file c:/ms4w/tmp/ms_tmp//3fcc6bd2aec50.map in C:\ms4w\apps\maplab20\htdocs\common\wrapper\map_session.php on line 208 Fatal error: Call to a member function on a non-object in C:\ms4w\apps\maplab20\htdocs\common\wrapper\map_session.php on line 231 -------- Could anybody inform me about current status of JOIN object implementation or what I did wrong? Thanks, Radim Machu ¦> Is there any one so kind give me the ideas about how to use the join object. ¦> I've explore the mapfile reference. I still can't understand what it exactlly. ¦> I've add one under one of my Class object. I saw the name variable in join object. ¦> The reference said "Unique name for this join, and it's required". And how does "From" and ¦> "To" mean? Besides, I need a template html file to show the queries result, would u please ¦> show me some examples?Thanx! ¦> Here is part of my mapfile about join object. ¦> JOIN ¦> NAME "Buildings"------is this user defined? ¦> TYPE MULTIPLE ¦> TABLE "c:/msapps/nctu/data/buildingauth.dbf" ¦> FROM "AREA"-----is this one attribute of my table? ¦> TO "NAME"------is this one attribute of my table too? ¦> END ¦> In spite of the cofig up, is there anything else needed to set for ¦> me to query my own map? ¦> Any ideas? ¦> Best regards!!!! ¦> Kent ¦> -------------------------------------------------------------------------------- ____________________________ Tradice Bílých Karpat Hostětín 4 687 71 p. Bojkovice mailto:tbk@ecn.cz www.tradicebk.cz tel.: 572 641040, fax: 572 641854 From harato_1@yahoo.com Tue Dec 2 15:34:42 2003 From: harato_1@yahoo.com (harato) Date: Tue, 2 Dec 2003 07:34:42 -0800 (PST) Subject: [maplab-users] Can I make hatch (hachure) ? Message-ID: <20031202153442.33363.qmail@web13602.mail.yahoo.com> [English is not my natural language...] Hi, Is-it possible to have "hatch" instead of a color on a polygon layer ? ("hatch" is it the good translation of "hachure" ?) How I do with MapLab (or without MapLab) ? An example is welcome. thanks a lot. regards. Harato. __________________________________ Do you Yahoo!? Free Pop-Up Blocker - Get it now http://companion.yahoo.com/ From warnock@dmsolutions.ca Tue Dec 2 15:55:56 2003 From: warnock@dmsolutions.ca (Fred Warnock) Date: Tue, 02 Dec 2003 10:55:56 -0500 Subject: [maplab-users] Can I make hatch (hachure) ? References: <20031202153442.33363.qmail@web13602.mail.yahoo.com> Message-ID: <3FCCB60C.1000002@dmsolutions.ca> indeed you can. if you select a symbol to use and a colour, then instead of filling the polygon with the colour, you get a pattern fill of that colour. If you adjust the size you can have a bigger or smaller pattern. SYMBOL 6 COLOR 0 0 255 SIZE 8 that will give you a polygon filled with a blue grid. you can experiment with outline colour, and background colour for other effects too. have fun. -- _________________________________________________ Fred Warnock Web, Graphic & Cartographic Design DM Solutions Group Inc. http://www.dmsolutions.ca From mdoggett@coas.oregonstate.edu Tue Dec 2 19:08:42 2003 From: mdoggett@coas.oregonstate.edu (Matt Doggett) Date: Tue, 2 Dec 2003 11:08:42 -0800 Subject: [maplab-users] Query question In-Reply-To: <3FC368DA.4080501@dmsolutions.ca> Message-ID: <002001c3b907$b3820c60$2441c180@nino> Thanks Bill for tracking this down for us. This quickie patch does help fix part of the problem. I've discovered a few more "features" related to this which may or may not be intended behavior: The following behavior relates only to projected maps (data are in latlong and map is projected to aea). My unprojected maps have always behaved well. * TOLERANCE must be set in the mapfile for each LAYER you want to query. The documentation suggests a default value for TOLERANCE, but I found if it is not set in the mapfile, my point queries still return no data, even with your quick-fix. * If the user performs a point query (ie. $adMin and $adMax in query.phtml are the exact same location), then the selected query does NOT show up highlighted (yellow in my case) in the resultant map. The query results window however, does show the correct table of returned values from the query (thanks to your patch). * If the user performs a very-small rectangle query (ie. $adMax-$adMin < MIN_RECT), a point query is performed and the resultant map DOES show highlighted query results. In other words, it works fine. * Rectangle queries have always behaved normally...no matter how big or small the selected rectangle. * Unprojected maps have always behaved normally. I'm not sure where to go from here on this one. It seems to me that something is amiss in the executePointQuery() and/or executeRectQuery() functions that is somehow related to projected space/coordinates. I can get by with workarounds for now. Just thought you could use this extra information that helps explain where the problem might really be. Matt >-----Original Message----- >From: maplab-users-admin@lists.maptools.org [mailto:maplab-users- >admin@lists.maptools.org] On Behalf Of William A. Bronsema, C.E.T. >Sent: Tuesday, November 25, 2003 6:36 AM >To: Maplab-users@dmsolutions.ca >Cc: Post,Richard [NCR]; mdoggett@coas.oregonstate.edu >Subject: Re: [maplab-users] Query question > >Matt, Richard, > >Here is the code necessary to fix the problem (perhaps not the most >optimal, but it is the most self contained). This fix may or may not >make it into the next release: > >You will need to add the following code to the query.phtml file in any >application created by gmapfactory as well as the >/maplab/htdocs/gmapfactory/templates/app_query.phtml file to fix the >application itself: > >/***************************************************/ > // restrict to point if min rect is set > if ( is_numeric( $adMax[0] ) && is_numeric( $adMax[1] ) ) > { > if ( abs( $adMax[1] - $adMin[1] ) <= MIN_RECT && > abs( $adMax[0] - $adMin[0] ) <= MIN_RECT ) > { > unset( $adMax[0] ); > unset( $adMax[1] ); > } > } >/***************************************************/ > > > >This code needs to be inserted after the "setQueryLayersByName" call and >before the execute query calls (approx line 124 in my version): > > >i.e. > > // commit > $oMapQuery->setQueryLayersByName( $aszLayers ); > >********************** >INSERT HERE >********************** > > // execute query > if ( is_numeric( $adMax[0] ) && is_numeric( $adMax[1] ) ) > $oResultSet = $oMapQuery->executeRectQuery( $adMin[0], > $adMin[1],$adMax[0], $adMax[1] ); > else > $oResultSet = $oMapQuery->executePointQuery( $adMin[0], > $adMin[1] ); > >... > >HTH. > >Regards, >William A. Bronsema, C.E.T. wrote: > >> Matt, Richard, >> >> I have traced through the code and have found the problem. It appears >> that only the zoom tool uses the MIN_RECT, not the query tool. Therefore >> when a query is performed, it is always a rectangle query (in ROSA mode). >> >> If I perform a query on the "Parks" (polygon) layer using a single click >> I get results because the tiny rectangle "hits" the polygon therefore >> returning results. If I perform a single click query on the "popplace" >> (point layer) it is likely that I will not get results because the click >> would have to be on the exact location of the point (tolerance is not >> used). Make sense? >> >> I'm not sure why re-projected would behave differently (lucky hit on the >> point?). >> >> Anyway, I will file a bug about the MIN_RECT parameter not being used on >> the query tool. >> >> Regards, >> Bill >> > >-- > >William A. Bronsema, C.E.T. >Applications Developer, >DM Solutions Group Inc. > >http://www.dmsolutions.ca >email: bronsema@dmsolutions.ca >Phone: (613) 565-5056 ext.25 >Fax : (613) 565-0925 >____________________________________ > > >_______________________________________________ >Maplab-users mailing list >Maplab-users@lists.maptools.org >http://lists.maptools.org/mailman/listinfo/maplab-users From harato_1@yahoo.com Thu Dec 4 11:33:57 2003 From: harato_1@yahoo.com (harato) Date: Thu, 4 Dec 2003 03:33:57 -0800 (PST) Subject: [maplab-users] Some problem with expression and a value Message-ID: <20031204113357.84001.qmail@web13609.mail.yahoo.com> [English is not my natural language...] Hi, I've made many classes for a layer and I need to add an expression in one of them. I know the name of the field what I need but nothing appear for 1 class maybe because of the value. In the field Expression of the class (where nothing appear), I put : ([NUMAFFICHA]=5') I think my problem is the - ' - (quote) . How I can do to use this value - 5' - ? Must I need to change in my DBF/SHP/SHX, the value by a real number ? (example 50) thanks regards Harato __________________________________ Do you Yahoo!? Free Pop-Up Blocker - Get it now http://companion.yahoo.com/ From zak-ms@hoppsan.org Thu Dec 4 15:55:22 2003 From: zak-ms@hoppsan.org (Zak James) Date: Thu, 4 Dec 2003 10:55:22 -0500 Subject: [maplab-users] Some problem with expression and a value In-Reply-To: <20031204113357.84001.qmail@web13609.mail.yahoo.com> References: <20031204113357.84001.qmail@web13609.mail.yahoo.com> Message-ID: <444E60D5-2672-11D8-8936-000393D97CCC@hoppsan.org> Hi, This is really a mapserver question, since maplab just passes the values of expressions through to mapscript. You should be able to use the string (5'); you can try entering it as 5\' or "5'". If that doesn't work, ask on the mapserver-users list. zak -- Zak James Applications and Software Development DM Solutions Group Inc. http://www.dmsolutions.ca On Dec 4, 2003, at 6:33 AM, harato wrote: > [English is not my natural language...] > > Hi, > > I've made many classes for a layer and I need to add > an expression in one of them. I know the name of the > field what I need but nothing appear for 1 class maybe > because of the value. > > In the field Expression of the class (where nothing > appear), I put : > > ([NUMAFFICHA]=5') > > I think my problem is the - ' - (quote) . > > How I can do to use this value - 5' - ? > > Must I need to change in my DBF/SHP/SHX, the value by > a real number ? (example 50) > > thanks > > regards > Harato > > __________________________________ > Do you Yahoo!? > Free Pop-Up Blocker - Get it now > http://companion.yahoo.com/ > _______________________________________________ > Maplab-users mailing list > Maplab-users@lists.maptools.org > http://lists.maptools.org/mailman/listinfo/maplab-users > > From drodriguez@globtipper.com.ar Fri Dec 5 19:40:44 2003 From: drodriguez@globtipper.com.ar (Diego Rodriguez) Date: Fri, 5 Dec 2003 16:40:44 -0300 Subject: [maplab-users] Can't add a layer Message-ID: <000801c3bb67$adb67f70$1401a8c0@tipper> This is a multi-part message in MIME format. ------=_NextPart_000_0005_01C3BB4E.87143EC0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I have just installed maplab 2.1rc3 on a RedHat 9, php4.3, etc When using MapEdit to create a New Map, I can=B4t add any layer, = notheing happens when I clik the "Add Layer" butom. Does somebody know why could this happend? Thanks ------=_NextPart_000_0005_01C3BB4E.87143EC0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
I have just installed maplab 2.1rc3 on = a RedHat 9,=20 php4.3, etc
 
When using MapEdit to create a New Map, = I can=B4t add=20 any layer, notheing happens when I clik the "Add Layer" = butom.
 
Does somebody know why could this=20 happend?
 
Thanks
 
------=_NextPart_000_0005_01C3BB4E.87143EC0-- From stevenzussino@knet.ca Fri Dec 5 19:53:47 2003 From: stevenzussino@knet.ca (Steven Zussino) Date: Fri, 5 Dec 2003 13:53:47 -0600 Subject: [maplab-users] Preview isn't working after refresh in Mapedit. Message-ID: <000001c3bb6f$aad510c0$59c8a542@STEVENZUSSINO> This is a multi-part message in MIME format. ------=_NextPart_000_0005_01C3BB37.34B2BBF0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I receive the following message using Mapedit using the default = tutorial.map file after the initial refresh. (No map file or map file = empty!). =20 I am using Maplab2-1RC3, php 4.2.3, Mapserver 4.0, and RH 7.2. = Everything is configured correctly in the maplab.xml file that I know of = and in the installation information. I also am able to use Mapfactory = correctly. I would appreciate any help on the matter. Thanks. ------=_NextPart_000_0005_01C3BB37.34B2BBF0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
I receive the following message using Mapedit = using the=20 default tutorial.map file after the initial refresh.  (No map = file or=20 map file empty!). 
 
I am using Maplab2-1RC3, php 4.2.3, Mapserver 4.0, = and RH=20 7.2.   Everything is configured correctly in the maplab.xml = file that=20 I know of and in the installation information.  I also am able to = use=20 Mapfactory correctly.
 
I would appreciate any help on the matter. =20 Thanks.
 
 
------=_NextPart_000_0005_01C3BB37.34B2BBF0-- From zak-ms@hoppsan.org Fri Dec 5 20:57:36 2003 From: zak-ms@hoppsan.org (Zak James) Date: Fri, 5 Dec 2003 15:57:36 -0500 Subject: [maplab-users] Can't add a layer In-Reply-To: <000801c3bb67$adb67f70$1401a8c0@tipper> References: <000801c3bb67$adb67f70$1401a8c0@tipper> Message-ID: That mechanism for adding a layer requires you to add 'warehouse' mapfiles in your mapedit configuration file with layers within them; it is not set up in the distribution. For most purposes, you should be able to add an empty layer by selecting 'New Layer' from the 'Create New Object' pull-down list and then clicking the + button. zak -- Zak James Applications and Software Development DM Solutions Group Inc. http://www.dmsolutions.ca On Dec 5, 2003, at 2:40 PM, Diego Rodriguez wrote: > I have just installed maplab 2.1rc3 on a RedHat 9, php4.3, etc > > When using MapEdit to create a New Map, I can´t add any layer, > notheing happens when I clik the "Add Layer" butom. > > Does somebody know why could this happend? > > Thanks > From zak-ms@hoppsan.org Fri Dec 5 21:03:28 2003 From: zak-ms@hoppsan.org (Zak James) Date: Fri, 5 Dec 2003 16:03:28 -0500 Subject: [maplab-users] Preview isn't working after refresh in Mapedit. In-Reply-To: <000001c3bb6f$aad510c0$59c8a542@STEVENZUSSINO> References: <000001c3bb6f$aad510c0$59c8a542@STEVENZUSSINO> Message-ID: <79B212BD-2766-11D8-8C11-000393D97CCC@hoppsan.org> Is this error message appearing in the preview window or the main mapedit window? Does anything appear in the preview window? Have any changes been made to the tutorial map before the preview is launched? zak -- Zak James Applications and Software Development DM Solutions Group Inc. http://www.dmsolutions.ca On Dec 5, 2003, at 2:53 PM, Steven Zussino wrote: > I receive the following message using Mapedit using the default > tutorial.map file after the initial refresh. (No map file or map file > empty!). > > I am using Maplab2-1RC3, php 4.2.3, Mapserver 4.0, and RH 7.2. > Everything is configured correctly in the maplab.xml file that I know > of and in the installation information. I also am able to use > Mapfactory correctly. > > I would appreciate any help on the matter. Thanks. > > From stevenzussino@knet.ca Fri Dec 5 21:17:31 2003 From: stevenzussino@knet.ca (Steven Zussino) Date: Fri, 5 Dec 2003 15:17:31 -0600 (CST) Subject: [maplab-users] Preview isn't working after refresh in Mapedit. In-Reply-To: <79B212BD-2766-11D8-8C11-000393D97CCC@hoppsan.org> References: <000001c3bb6f$aad510c0$59c8a542@STEVENZUSSINO> <79B212BD-2766-11D8-8C11-000393D97CCC@hoppsan.org> Message-ID: <1755.66.165.200.89.1070659051.squirrel@webmail.knet.ca> I have commented out the error message in preview.phtml and the following appears instead: Warning: [MapServer Error]: msLoadMap(): in /var/www/html/mapserver/htdocs/common/wrapper/map_session.php on line 221 Warning: Failed to open map file /var/www/html/mapserver/tmp/3fd0f089c2968.map in /var/www/html/mapserver/htdocs/common/wrapper/map_session.php on line 221 Warning: [MapServer Error]: msLoadMap(): in /var/www/html/mapserver/htdocs/common/wrapper/map_session.php on line 221 Warning: [MapServer Error]: msLoadMap(): in /var/www/html/mapserver/htdocs/common/wrapper/map_session.php on line 221 Warning: Failed to open map file /var/www/html/mapserver/tmp/3fd0f089c2968.map in /var/www/html/mapserver/htdocs/common/wrapper/map_session.php on line 221 Fatal error: Call to a member function on a non-object in /var/www/html/mapserver/htdocs/mapedit/preview.php on line 309 These errors appear in the preview window. However, I am able to one successful preview but if I try to view additional layers after or zoom in I receive the previous. Also no changes to the tutorial map have been made before the preview. Thanks. > Is this error message appearing in the preview window or the main > mapedit window? Does anything appear in the preview window? > > Have any changes been made to the tutorial map before the preview is > launched? > > zak > -- > Zak James > Applications and Software Development > DM Solutions Group Inc. > http://www.dmsolutions.ca > > On Dec 5, 2003, at 2:53 PM, Steven Zussino wrote: > >> I receive the following message using Mapedit using the default >> tutorial.map file after the initial refresh. (No map file or map file >> empty!). >> >> I am using Maplab2-1RC3, php 4.2.3, Mapserver 4.0, and RH 7.2. >> Everything is configured correctly in the maplab.xml file that I know >> of and in the installation information. I also am able to use >> Mapfactory correctly. >> >> I would appreciate any help on the matter. Thanks. From zak-ms@hoppsan.org Fri Dec 5 21:30:07 2003 From: zak-ms@hoppsan.org (Zak James) Date: Fri, 5 Dec 2003 16:30:07 -0500 Subject: [maplab-users] Preview isn't working after refresh in Mapedit. In-Reply-To: <1755.66.165.200.89.1070659051.squirrel@webmail.knet.ca> References: <000001c3bb6f$aad510c0$59c8a542@STEVENZUSSINO> <79B212BD-2766-11D8-8C11-000393D97CCC@hoppsan.org> <1755.66.165.200.89.1070659051.squirrel@webmail.knet.ca> Message-ID: <32536C8B-276A-11D8-8C11-000393D97CCC@hoppsan.org> It looks like mapserver is not finding the temporary map file saved when you make a preview. The most common reason for this is that the Image Path and Image URL parameters in the web object of your map do not point to the same location. If your web server's root is /var/www/html/, then the image path could be /var/www/html/tmp/ and the image url would then be /tmp/. The image path has to be a web accessible directory. zak -- Zak James Applications and Software Development DM Solutions Group Inc. http://www.dmsolutions.ca On Dec 5, 2003, at 4:17 PM, Steven Zussino wrote: > I have commented out the error message in preview.phtml and the > following > appears instead: > > Warning: [MapServer Error]: msLoadMap(): in > /var/www/html/mapserver/htdocs/common/wrapper/map_session.php on line > 221 > > Warning: Failed to open map file > /var/www/html/mapserver/tmp/3fd0f089c2968.map in > /var/www/html/mapserver/htdocs/common/wrapper/map_session.php on line > 221 > > Warning: [MapServer Error]: msLoadMap(): in > /var/www/html/mapserver/htdocs/common/wrapper/map_session.php on line > 221 > > Warning: [MapServer Error]: msLoadMap(): in > /var/www/html/mapserver/htdocs/common/wrapper/map_session.php on line > 221 > > Warning: Failed to open map file > /var/www/html/mapserver/tmp/3fd0f089c2968.map in > /var/www/html/mapserver/htdocs/common/wrapper/map_session.php on line > 221 > > Fatal error: Call to a member function on a non-object in > /var/www/html/mapserver/htdocs/mapedit/preview.php on line 309 > > These errors appear in the preview window. However, I am able to one > successful preview but if I try to view additional layers after or > zoom in > I receive the previous. Also no changes to the tutorial map have been > made before the preview. > > Thanks. > >> Is this error message appearing in the preview window or the main >> mapedit window? Does anything appear in the preview window? >> >> Have any changes been made to the tutorial map before the preview is >> launched? >> >> zak >> -- >> Zak James >> Applications and Software Development >> DM Solutions Group Inc. >> http://www.dmsolutions.ca >> >> On Dec 5, 2003, at 2:53 PM, Steven Zussino wrote: >> >>> I receive the following message using Mapedit using the default >>> tutorial.map file after the initial refresh. (No map file or map >>> file >>> empty!). >>> >>> I am using Maplab2-1RC3, php 4.2.3, Mapserver 4.0, and RH 7.2. >>> Everything is configured correctly in the maplab.xml file that I know >>> of and in the installation information. I also am able to use >>> Mapfactory correctly. >>> >>> I would appreciate any help on the matter. Thanks. > > > _______________________________________________ > Maplab-users mailing list > Maplab-users@lists.maptools.org > http://lists.maptools.org/mailman/listinfo/maplab-users > > From gis@gisrs.com Sat Dec 6 20:21:40 2003 From: gis@gisrs.com (Stephen Wallace) Date: Sat, 6 Dec 2003 15:21:40 -0500 Subject: [maplab-users] how to move from local computer to the web Message-ID: <000001c3bc36$9237eb60$965efea9@dell> This is a multi-part message in MIME format. ------=_NextPart_000_0001_01C3BC0C.A961E360 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To the list I have been working with ms4w and MapLab using the apache server on my computer. Now I want to move the present results and future work to my web site. Can some one on the list point me to instructions on how I set up mapserver on my external web server. Thank You Stephen Wallace Email gis@gisrs.com ------=_NextPart_000_0001_01C3BC0C.A961E360 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Message
To the = list
 
I have = been working=20 with ms4w and MapLab using the apache server on my computer. Now I want = to move=20 the present results and future work to my web site. Can some one on the = list=20 point me to instructions on how I set up mapserver on my external web=20 server.
 
Thank=20 You
 
Stephen = Wallace
 
Email gis@gisrs.com
 
 
------=_NextPart_000_0001_01C3BC0C.A961E360-- From TMitchell@lignum.com Mon Dec 8 16:14:49 2003 From: TMitchell@lignum.com (Tyler Mitchell) Date: Mon, 8 Dec 2003 08:14:49 -0800 Subject: [maplab-users] how to move from local computer to the web In-Reply-To: <000001c3bc36$9237eb60$965efea9@dell> Message-ID: Hi Stephen, Congratulations on being able to make the next step! The simplest scenario would be to duplicate your ms4w and maplab setups to this external server - it depends what you mean by external and what kind of access/permissions you have. Do you have access to installing programs on the web server? I'm assuming you have an account with an ISP that you want to use which usually is pretty limited. That could be tricky and not very profitable, others on the list will probably know better. There are some mechanisms that would allow you, if possible, to have an external web page calling on mapserver on another computer - if your "local" computer is accessible via the internet, this may be the best way to go. But, granted, I'm not familiar with your setup. Let us know some more. tyler "Stephen Wallace" Sent by: To maplab-users-admi n@lists.maptools. cc org Fax to 12/06/2003 12:21 Subject PM [maplab-users] how to move from local computer to the web Please respond to To the list I have been working with ms4w and MapLab using the apache server on my computer. Now I want to move the present results and future work to my web site. Can some one on the list point me to instructions on how I set up mapserver on my external web server. Thank You Stephen Wallace Email gis@gisrs.com From TMitchell@lignum.com Mon Dec 8 16:53:15 2003 From: TMitchell@lignum.com (Tyler Mitchell) Date: Mon, 8 Dec 2003 08:53:15 -0800 Subject: [maplab-users] how to move from local computer to the web In-Reply-To: <002501c3bdaa$140aadc0$965efea9@dell> Message-ID: Can others confirm for us that if Stephen's ISP can support CGI, will that be enough? I assume also that he'll need to know whether the host O/S platform is too. Tyler "Stephen Wallace" To 12/08/2003 08:41 "'Tyler Mitchell'" AM cc Please respond to Fax to Subject RE: [maplab-users] how to move from local computer to the web Tyler You are correct that I plan on using a ISP and I do not know what my permissions are. I will check this morning. My "local computer is not connected to the web on a full time basis, so could not be used for a host. Thanks for the reply Steve -----Original Message----- From: Tyler Mitchell [mailto:TMitchell@lignum.com] Sent: December 8, 2003 11:15 AM To: gis@gisrs.com Cc: maplab-users@lists.maptools.org Subject: Re: [maplab-users] how to move from local computer to the web Hi Stephen, Congratulations on being able to make the next step! The simplest scenario would be to duplicate your ms4w and maplab setups to this external server - it depends what you mean by external and what kind of access/permissions you have. Do you have access to installing programs on the web server? I'm assuming you have an account with an ISP that you want to use which usually is pretty limited. That could be tricky and not very profitable, others on the list will probably know better. There are some mechanisms that would allow you, if possible, to have an external web page calling on mapserver on another computer - if your "local" computer is accessible via the internet, this may be the best way to go. But, granted, I'm not familiar with your setup. Let us know some more. tyler "Stephen Wallace" Sent by: To maplab-users-admi n@lists.maptools. cc org Fax to 12/06/2003 12:21 Subject PM [maplab-users] how to move from local computer to the web Please respond to To the list I have been working with ms4w and MapLab using the apache server on my computer. Now I want to move the present results and future work to my web site. Can some one on the list point me to instructions on how I set up mapserver on my external web server. Thank You Stephen Wallace Email gis@gisrs.com From zak-ms@hoppsan.org Mon Dec 8 17:07:19 2003 From: zak-ms@hoppsan.org (Zak James) Date: Mon, 8 Dec 2003 12:07:19 -0500 Subject: [maplab-users] how to move from local computer to the web In-Reply-To: References: Message-ID: Assuming this is a gmapfactory application, the server would also need mapscript, which implies php is available. zak -- Zak James Applications and Software Development DM Solutions Group Inc. http://www.dmsolutions.ca On Dec 8, 2003, at 11:53 AM, Tyler Mitchell wrote: > > > > > > Can others confirm for us that if Stephen's ISP can support CGI, will > that > be enough? I assume also that he'll need to know whether the host O/S > platform is too. > > Tyler > > > > "Stephen Wallace" > > > To > 12/08/2003 08:41 "'Tyler Mitchell'" > AM > > cc > > > Please respond to > Fax to > > > Subject > RE: [maplab-users] how to move > from > local computer to the web > > > > > > > > > > > Tyler > > You are correct that I plan on using a ISP and I do not know what my > permissions are. I will check this morning. > My "local computer is not connected to the web on a full time basis, so > could not be used for a host. > > Thanks for the reply > > Steve > > -----Original Message----- > From: Tyler Mitchell [mailto:TMitchell@lignum.com] > Sent: December 8, 2003 11:15 AM > To: gis@gisrs.com > Cc: maplab-users@lists.maptools.org > Subject: Re: [maplab-users] how to move from local computer to the web > > > > > > > > Hi Stephen, Congratulations on being able to make the next step! The > simplest scenario would be to duplicate your ms4w and maplab setups to > this external server - it depends what you mean by external and what > kind of access/permissions you have. Do you have access to installing > programs on the web server? I'm assuming you have an account with an > ISP that you want to use which usually is pretty limited. That could > be > tricky and not very profitable, others on the list will probably know > better. > > There are some mechanisms that would allow you, if possible, to have an > external web page calling on mapserver on another computer - if your > "local" computer is accessible via the internet, this may be the best > way to go. But, granted, I'm not familiar with your setup. Let us > know > some more. > > tyler > > > > > "Stephen Wallace" > > > > Sent by: > To > maplab-users-admi > > n@lists.maptools. > cc > org > > > Fax > to > > > 12/06/2003 12:21 > Subject > PM [maplab-users] how to move from > > local computer to the web > > > > Please respond to > > > > > > > > > > > > > > To the list > > I have been working with ms4w and MapLab using the apache server on my > computer. Now I want to move the present results and future work to my > web site. Can some one on the list point me to instructions on how I > set > up mapserver on my external web server. > > Thank You > > Stephen Wallace > > Email gis@gisrs.com > > > > > > > > > > _______________________________________________ > Maplab-users mailing list > Maplab-users@lists.maptools.org > http://lists.maptools.org/mailman/listinfo/maplab-users > > From gis@gisrs.com Mon Dec 8 16:41:02 2003 From: gis@gisrs.com (Stephen Wallace) Date: Mon, 8 Dec 2003 11:41:02 -0500 Subject: [maplab-users] how to move from local computer to the web In-Reply-To: Message-ID: <002501c3bdaa$140aadc0$965efea9@dell> Tyler You are correct that I plan on using a ISP and I do not know what my permissions are. I will check this morning. My "local computer is not connected to the web on a full time basis, so could not be used for a host. Thanks for the reply Steve -----Original Message----- From: Tyler Mitchell [mailto:TMitchell@lignum.com] Sent: December 8, 2003 11:15 AM To: gis@gisrs.com Cc: maplab-users@lists.maptools.org Subject: Re: [maplab-users] how to move from local computer to the web Hi Stephen, Congratulations on being able to make the next step! The simplest scenario would be to duplicate your ms4w and maplab setups to this external server - it depends what you mean by external and what kind of access/permissions you have. Do you have access to installing programs on the web server? I'm assuming you have an account with an ISP that you want to use which usually is pretty limited. That could be tricky and not very profitable, others on the list will probably know better. There are some mechanisms that would allow you, if possible, to have an external web page calling on mapserver on another computer - if your "local" computer is accessible via the internet, this may be the best way to go. But, granted, I'm not familiar with your setup. Let us know some more. tyler "Stephen Wallace" Sent by: To maplab-users-admi n@lists.maptools. cc org Fax to 12/06/2003 12:21 Subject PM [maplab-users] how to move from local computer to the web Please respond to To the list I have been working with ms4w and MapLab using the apache server on my computer. Now I want to move the present results and future work to my web site. Can some one on the list point me to instructions on how I set up mapserver on my external web server. Thank You Stephen Wallace Email gis@gisrs.com From mgleahy@fes.uwaterloo.ca Mon Dec 8 19:26:29 2003 From: mgleahy@fes.uwaterloo.ca (Mike Leahy) Date: Mon, 8 Dec 2003 14:26:29 -0500 Subject: [maplab-users] PHP MapScript DLL QueryMap class? Message-ID: <000501c3bdc1$2e3244d0$a3916181@mgltoshiba> Hello all, I'm just curious if there's any way to set parameters for the QUERYMAP in a map object using the PHP MapScript DLL (I'm using the 4.1 version right now). Basically that's the only component I can't figure out how to set when I dynamically create a map object without a mapfile. My workaround is to create a temporary mapfile that has nothing but an empty MAP and the QUERYMAP properties, then create a map object in PHP from that file. After that, everything else works great. I see there are PHP MapScript constants defined for the QueryMap object (i.e. the Querymap styles), but there is no way to change anything in the querymap. This is not a particularly huge deal, as I already have a workaround in my case, but it might be a little more efficient if a class was defined that provided access to those parameters from a PHP script. Is this something we might see in later builds...or is there an undocumented class or function that can be used? Thanks, Mike From Martin.Kiuru@Elion.ee Tue Dec 9 08:51:56 2003 From: Martin.Kiuru@Elion.ee (Martin Kiuru) Date: Tue, 9 Dec 2003 10:51:56 +0200 Subject: [maplab-users] .TAB files Message-ID: <1D6EE6E7F017B2479C94CAC3903E5DE18C0DCC@KIRJATUVI.cc.et.ee> Greetings, I have a trouble with TAB-files in MapLab 2.1-rc3. I have a map-file which uses 2 shapefiles and works fine. But when I am trying to add TAB file connected to TIFF file, which covers small part of the big map, browser MapBrowser window shows nothing, and there is no ROSA controls in the window. I tryed to add TAB via MapLab interface, after that tryed to add it manually using this sample : LAYER NAME "Builtup_Areas_tab" TYPE POLYGON CONNECTIONTYPE OGR CONNECTION "data/tab/092b06_builtup_a.tab" STATUS ON CLASS ... END ... END But there it doesn't work. I also tried to build the mapfile with only one layer, which uses TAB but without any effect. During various experiments with Extent, ROSA application starts (sometimes), but I never saw my tiff image in MapBrowser or application window. Please, give me some good advices. Here is configuration of my mapfile and .tab file. MAP NAME "EESTI" STATUS ON EXTENT 352772 6360880.68 750300 6658590.32 SIZE 600 450 SHAPEPATH "C:/ms4w/Apache/htdocs/maplab/tutorial/data" SYMBOLSET "C:/ms4w/Apache/htdocs/maplab/tutorial/etc/symbols.sym" FONTSET "C:/ms4w/Apache/htdocs/maplab/tutorial/etc/fonts.txt" IMAGETYPE png IMAGECOLOR 255 255 255 UNITS METERS WEB MINSCALE 1000 MAXSCALE 5e+007 IMAGEPATH "C:/ms4w/Apache/htdocs/maplab/tmp/img/" IMAGEURL "/maplab/tmp/img/" END QUERYMAP STATUS OFF SIZE -1 -1 COLOR 255 0 0 STYLE HILITE END LEGEND STATUS ON OUTLINECOLOR 255 255 255 IMAGECOLOR 255 255 255 POSITION LL KEYSIZE 18 12 KEYSPACING 5 5 TEMPLATE "C:/ms4w/Apache/htdocs/maplab/htdocs/mapbrowser/legend_template.html" LABEL TYPE BITMAP SIZE TINY OFFSET 0 0 BUFFER 0 MINDISTANCE -1 MINFEATURESIZE -1 COLOR 0 0 89 BACKGROUNDCOLOR 255 255 255 PARTIALS TRUE FORCE FALSE END END SCALEBAR STATUS ON COLOR 255 255 255 OUTLINECOLOR 0 0 0 BACKGROUNDCOLOR 0 0 0 IMAGECOLOR 255 255 255 UNITS KILOMETERS INTERVALS 5 SIZE 150 5 STYLE 0 POSITION LL LABEL TYPE BITMAP SIZE SMALL OFFSET 0 0 BUFFER 0 MINDISTANCE -1 MINFEATURESIZE -1 COLOR 0 0 0 PARTIALS TRUE FORCE FALSE END END OUTPUTFORMAT NAME "png" MIMETYPE "image/png" DRIVER "GD/PNG" EXTENSION "png" IMAGEMODE PC256 TRANSPARENT FALSE END ....... LAYER NAME "Raster" TYPE POLYGON CONNECTIONTYPE OGR CONNECTION "C:/ms4w/Apache/htdocs/maplab/tutorial/data/44_75_E.TAB" STATUS ON CLASS NAME"Raster" COLOR 250 175 25 OUTLINECOLOR 255 0 0 END END END ------------TAB-FILE------------- !table !version 300 !charset WindowsLatin1 Definition Table File "44_75.TIF" Type "RASTER" (650000.00,6380001.69) (0,0) Label "Pt 1", (660000.00,6380001.69) (5904,0) Label "Pt 2", (650000.00,6370000.00) (0,5905) Label "Pt 3", (660000.00,6370000.00) (5904,5905) Label "Pt 4" CoordSys Earth Projection 3, 33, "m", 24, 57.51755393056, 58, 59.33333333, 500000, 6375000 Units "m" From harato_1@yahoo.com Tue Dec 9 13:51:48 2003 From: harato_1@yahoo.com (harato) Date: Tue, 9 Dec 2003 05:51:48 -0800 (PST) Subject: [maplab-users] About Rosa Message-ID: <20031209135148.97507.qmail@web13602.mail.yahoo.com> [English is not my natural language...] Hi, I use ROSA with the GMapFactory tool (MapLab) to create a personal mapping application. I've made some translation and I want to know If I can translate directly the tooltip of the icon of Rosa ? how I can change the color of selection box (Zoom +) too ? Must I need to recompil Rosa ? Please an explain Thanks. regards. Harato. __________________________________ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.com/ From zak-ms@hoppsan.org Tue Dec 9 15:23:53 2003 From: zak-ms@hoppsan.org (Zak James) Date: Tue, 9 Dec 2003 10:23:53 -0500 Subject: [maplab-users] About Rosa In-Reply-To: <20031209135148.97507.qmail@web13602.mail.yahoo.com> References: <20031209135148.97507.qmail@web13602.mail.yahoo.com> Message-ID: Unfortunately, you will have to modify Rosa to change this. zak -- Zak James Applications and Software Development DM Solutions Group Inc. http://www.dmsolutions.ca On Dec 9, 2003, at 8:51 AM, harato wrote: > [English is not my natural language...] > > Hi, > > I use ROSA with the GMapFactory tool (MapLab) to > create a personal mapping application. I've made some > translation and I want to know If I can translate > directly the tooltip of the icon of Rosa ? > > how I can change the color of selection box (Zoom +) > too ? > > Must I need to recompil Rosa ? > > Please an explain > > Thanks. > > regards. > > Harato. > > __________________________________ > Do you Yahoo!? > New Yahoo! Photos - easier uploading and sharing. > http://photos.yahoo.com/ > _______________________________________________ > Maplab-users mailing list > Maplab-users@lists.maptools.org > http://lists.maptools.org/mailman/listinfo/maplab-users > > From zak-ms@hoppsan.org Tue Dec 9 15:30:29 2003 From: zak-ms@hoppsan.org (Zak James) Date: Tue, 9 Dec 2003 10:30:29 -0500 Subject: [maplab-users] .TAB files In-Reply-To: <1D6EE6E7F017B2479C94CAC3903E5DE18C0DCC@KIRJATUVI.cc.et.ee> References: <1D6EE6E7F017B2479C94CAC3903E5DE18C0DCC@KIRJATUVI.cc.et.ee> Message-ID: <9EAD80B6-2A5C-11D8-95AE-000393D97CCC@hoppsan.org> Can you confirm if this mapfile works in gmapfactory or the shp2img command line utility? If not, it may be better addressed on the mapserver-users list. zak -- Zak James Applications and Software Development DM Solutions Group Inc. http://www.dmsolutions.ca On Dec 9, 2003, at 3:51 AM, Martin Kiuru wrote: > Greetings, > > I have a trouble with TAB-files in MapLab 2.1-rc3. I have a map-file > which uses 2 shapefiles and works fine. But when I am trying to add TAB > file connected to TIFF file, which covers small part of the big map, > browser MapBrowser window shows nothing, and there is no ROSA controls > in the window. I tryed to add TAB via MapLab interface, after that > tryed > to add it manually using this sample : > > LAYER > NAME "Builtup_Areas_tab" > TYPE POLYGON > CONNECTIONTYPE OGR > CONNECTION "data/tab/092b06_builtup_a.tab" > STATUS ON > CLASS > ... > END > ... > END > > But there it doesn't work. I also tried to build the mapfile with only > one layer, which uses TAB but without any effect. During various > experiments with Extent, ROSA application starts (sometimes), but I > never saw my tiff image in MapBrowser or application window. > Please, give me some good advices. > > Here is configuration of my mapfile and .tab file. > > MAP > NAME "EESTI" > STATUS ON > EXTENT 352772 6360880.68 750300 6658590.32 > SIZE 600 450 > SHAPEPATH "C:/ms4w/Apache/htdocs/maplab/tutorial/data" > SYMBOLSET "C:/ms4w/Apache/htdocs/maplab/tutorial/etc/symbols.sym" > FONTSET "C:/ms4w/Apache/htdocs/maplab/tutorial/etc/fonts.txt" > IMAGETYPE png > IMAGECOLOR 255 255 255 > UNITS METERS > WEB > MINSCALE 1000 > MAXSCALE 5e+007 > IMAGEPATH "C:/ms4w/Apache/htdocs/maplab/tmp/img/" > IMAGEURL "/maplab/tmp/img/" > END > QUERYMAP > STATUS OFF > SIZE -1 -1 > COLOR 255 0 0 > STYLE HILITE > END > LEGEND > STATUS ON > OUTLINECOLOR 255 255 255 > IMAGECOLOR 255 255 255 > POSITION LL > KEYSIZE 18 12 > KEYSPACING 5 5 > TEMPLATE > "C:/ms4w/Apache/htdocs/maplab/htdocs/mapbrowser/legend_template.html" > LABEL > TYPE BITMAP > SIZE TINY > OFFSET 0 0 > BUFFER 0 > MINDISTANCE -1 > MINFEATURESIZE -1 > COLOR 0 0 89 > BACKGROUNDCOLOR 255 255 255 > PARTIALS TRUE > FORCE FALSE > END > END > SCALEBAR > STATUS ON > COLOR 255 255 255 > OUTLINECOLOR 0 0 0 > BACKGROUNDCOLOR 0 0 0 > IMAGECOLOR 255 255 255 > UNITS KILOMETERS > INTERVALS 5 > SIZE 150 5 > STYLE 0 > POSITION LL > LABEL > TYPE BITMAP > SIZE SMALL > OFFSET 0 0 > BUFFER 0 > MINDISTANCE -1 > MINFEATURESIZE -1 > COLOR 0 0 0 > PARTIALS TRUE > FORCE FALSE > END > END > OUTPUTFORMAT > NAME "png" > MIMETYPE "image/png" > DRIVER "GD/PNG" > EXTENSION "png" > IMAGEMODE PC256 > TRANSPARENT FALSE > END > > ....... > > LAYER > NAME "Raster" > TYPE POLYGON > CONNECTIONTYPE OGR > CONNECTION > "C:/ms4w/Apache/htdocs/maplab/tutorial/data/44_75_E.TAB" > STATUS ON > CLASS > NAME"Raster" > COLOR 250 175 25 > OUTLINECOLOR 255 0 0 > END > END > END > > ------------TAB-FILE------------- > > !table > !version 300 > !charset WindowsLatin1 > > Definition Table > File "44_75.TIF" > Type "RASTER" > (650000.00,6380001.69) (0,0) Label "Pt 1", > (660000.00,6380001.69) (5904,0) Label "Pt 2", > (650000.00,6370000.00) (0,5905) Label "Pt 3", > (660000.00,6370000.00) (5904,5905) Label "Pt 4" > CoordSys Earth Projection 3, 33, "m", 24, 57.51755393056, 58, > 59.33333333, 500000, 6375000 > Units "m" > > > > > _______________________________________________ > Maplab-users mailing list > Maplab-users@lists.maptools.org > http://lists.maptools.org/mailman/listinfo/maplab-users > > From mgleahy@fes.uwaterloo.ca Tue Dec 9 16:03:55 2003 From: mgleahy@fes.uwaterloo.ca (Mike Leahy) Date: Tue, 9 Dec 2003 11:03:55 -0500 Subject: [maplab-users] About Rosa In-Reply-To: <20031209135148.97507.qmail@web13602.mail.yahoo.com> Message-ID: <000801c3be6e$0e38a860$0100a8c0@MGLEAHY> Actually, you can change the tool tips - I've already done this with a viewer I have put together that has an option to select a set of pre-defined languages. See the info at http://www.maptools.org/rosa/index.phtml?page=rosa_params.html and look at the TB_BUT_?_HINT and LOADING_MSG parameters. These allow you to change the tips for the buttons as well as the loading message that appears while the applet is accessing the image data. As for changing the colour of the selection box, I don't see any options currently available for that. Good luck, Mike -----Original Message----- From: maplab-users-admin@lists.maptools.org [mailto:maplab-users-admin@lists.maptools.org] On Behalf Of harato Sent: December 9, 2003 8:52 AM To: maplab-users@lists.maptools.org Subject: [maplab-users] About Rosa [English is not my natural language...] Hi, I use ROSA with the GMapFactory tool (MapLab) to create a personal mapping application. I've made some translation and I want to know If I can translate directly the tooltip of the icon of Rosa ? how I can change the color of selection box (Zoom +) too ? Must I need to recompil Rosa ? Please an explain Thanks. regards. Harato. __________________________________ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.com/ _______________________________________________ Maplab-users mailing list Maplab-users@lists.maptools.org http://lists.maptools.org/mailman/listinfo/maplab-users From assefa@dmsolutions.ca Tue Dec 9 16:14:35 2003 From: assefa@dmsolutions.ca (Yewondwossen Assefa) Date: Tue, 09 Dec 2003 11:14:35 -0500 Subject: [maplab-users] About Rosa In-Reply-To: <20031209135148.97507.qmail@web13602.mail.yahoo.com> References: <20031209135148.97507.qmail@web13602.mail.yahoo.com> Message-ID: <3FD5F4EB.1090100@dmsolutions.ca> harato wrote: > > how I can change the color of selection box (Zoom +) > too ? > > Must I need to recompil Rosa ? > > Please an explain > Yes you will need to recompile Rosa and the change of the color should be done inside the Rectobj.java file in class draw(). You will see the It uses a black color, so you can change it to you favorite color. Hope it helps. > Thanks. > > regards. > > Harato. > > __________________________________ > Do you Yahoo!? > New Yahoo! Photos - easier uploading and sharing. > http://photos.yahoo.com/ > _______________________________________________ > Maplab-users mailing list > Maplab-users@lists.maptools.org > http://lists.maptools.org/mailman/listinfo/maplab-users > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From kwaku_duro@hotmail.com Tue Dec 9 17:10:52 2003 From: kwaku_duro@hotmail.com (paul oduro) Date: Tue, 09 Dec 2003 11:10:52 -0600 Subject: [maplab-users] missing symbol selection box Message-ID: All My system specs are as follows: win 2k svr apache 2.X mapserver 4.X maplab 2.1 (newest off the dm solutions site) php 4.3.3 I have gotten Canadian map (demo) to work. I get an error message that the symbol selection box is unavailable (paraphrase mine). I can select/browse the color box, but not the symbol selection box. Is there something I am doing wrong? Also I notice that the zoom out button is activated with a click but the zoom in button is activated by clicking and drawing a box. Is that how it is intended. Is there a more comprehensive users manual besides that which comes with the gmap zip? If not is there one in the works? _________________________________________________________________ Don’t worry if your Inbox will max out while you are enjoying the holidays. Get MSN Extra Storage! http://join.msn.com/?PAGE=features/es From zak-ms@hoppsan.org Tue Dec 9 19:05:54 2003 From: zak-ms@hoppsan.org (Zak James) Date: Tue, 9 Dec 2003 14:05:54 -0500 Subject: [maplab-users] missing symbol selection box In-Reply-To: References: Message-ID: > > I have gotten Canadian map (demo) to work. I get an error message that > the symbol selection box is unavailable (paraphrase mine). I can > select/browse the color box, but not the symbol selection box. Is > there something I am doing wrong? I thought that had been fixed, but I guess there is still a problem. Are you using 2.1RC3? > Also I notice that the zoom out button is activated with a click but > the zoom in button is activated by clicking and drawing a box. Is that > how it is intended. Yes. > Is there a more comprehensive users manual besides that which comes > with the gmap zip? If not is there one in the works? There is a tutorial with the maplab distribution that has been updated for 2.1. A more complete user manuals is planned. zak Zak James Applications and Software Development DM Solutions Group Inc. http://www.dmsolutions.ca From Martin.Kiuru@Elion.ee Wed Dec 10 06:38:50 2003 From: Martin.Kiuru@Elion.ee (Martin Kiuru) Date: Wed, 10 Dec 2003 08:38:50 +0200 Subject: [maplab-users] .TAB files Message-ID: <1D6EE6E7F017B2479C94CAC3903E5DE18C0E4D@KIRJATUVI.cc.et.ee> Yes, this mapfile works in gmapfactory. But if layer, which uses TAB-file is on, gmfactory or browser window shows nothing. If this layer is disabled, map works fine. Btw, this question is allready addressed on the mapserver-users list, and the answer is : Hi, As far as I know mapserver does not support georeference in mapinfo TAB format. OGR (gdal) supports mapinfo vector files. You sould convert your TAB to tfw file. See raster howto. Bye Zoltan Siki Is it true, that TAB format is not supported ? Thanks in advice Martin Kiuru. -----Original Message----- From: Zak James [mailto:zak-ms@hoppsan.org] Sent: Tuesday, December 09, 2003 5:30 PM To: Martin Kiuru Cc: maplab-users@lists.maptools.org Subject: Re: [maplab-users] .TAB files Can you confirm if this mapfile works in gmapfactory or the shp2img command line utility? If not, it may be better addressed on the mapserver-users list. zak -- Zak James Applications and Software Development DM Solutions Group Inc. http://www.dmsolutions.ca On Dec 9, 2003, at 3:51 AM, Martin Kiuru wrote: > Greetings, > > I have a trouble with TAB-files in MapLab 2.1-rc3. I have a map-file > which uses 2 shapefiles and works fine. But when I am trying to add > TAB file connected to TIFF file, which covers small part of the big > map, browser MapBrowser window shows nothing, and there is no ROSA > controls in the window. I tryed to add TAB via MapLab interface, after > that tryed to add it manually using this sample : > > LAYER > NAME "Builtup_Areas_tab" > TYPE POLYGON > CONNECTIONTYPE OGR > CONNECTION "data/tab/092b06_builtup_a.tab" > STATUS ON > CLASS > ... > END > ... > END > > But there it doesn't work. I also tried to build the mapfile with only > one layer, which uses TAB but without any effect. During various > experiments with Extent, ROSA application starts (sometimes), but I > never saw my tiff image in MapBrowser or application window. Please, > give me some good advices. > > Here is configuration of my mapfile and .tab file. > > MAP > NAME "EESTI" > STATUS ON > EXTENT 352772 6360880.68 750300 6658590.32 > SIZE 600 450 > SHAPEPATH "C:/ms4w/Apache/htdocs/maplab/tutorial/data" > SYMBOLSET "C:/ms4w/Apache/htdocs/maplab/tutorial/etc/symbols.sym" > FONTSET "C:/ms4w/Apache/htdocs/maplab/tutorial/etc/fonts.txt" > IMAGETYPE png > IMAGECOLOR 255 255 255 > UNITS METERS > WEB > MINSCALE 1000 > MAXSCALE 5e+007 > IMAGEPATH "C:/ms4w/Apache/htdocs/maplab/tmp/img/" > IMAGEURL "/maplab/tmp/img/" > END > QUERYMAP > STATUS OFF > SIZE -1 -1 > COLOR 255 0 0 > STYLE HILITE > END > LEGEND > STATUS ON > OUTLINECOLOR 255 255 255 > IMAGECOLOR 255 255 255 > POSITION LL > KEYSIZE 18 12 > KEYSPACING 5 5 > TEMPLATE > "C:/ms4w/Apache/htdocs/maplab/htdocs/mapbrowser/legend_template.html" > LABEL > TYPE BITMAP > SIZE TINY > OFFSET 0 0 > BUFFER 0 > MINDISTANCE -1 > MINFEATURESIZE -1 > COLOR 0 0 89 > BACKGROUNDCOLOR 255 255 255 > PARTIALS TRUE > FORCE FALSE > END > END > SCALEBAR > STATUS ON > COLOR 255 255 255 > OUTLINECOLOR 0 0 0 > BACKGROUNDCOLOR 0 0 0 > IMAGECOLOR 255 255 255 > UNITS KILOMETERS > INTERVALS 5 > SIZE 150 5 > STYLE 0 > POSITION LL > LABEL > TYPE BITMAP > SIZE SMALL > OFFSET 0 0 > BUFFER 0 > MINDISTANCE -1 > MINFEATURESIZE -1 > COLOR 0 0 0 > PARTIALS TRUE > FORCE FALSE > END > END > OUTPUTFORMAT > NAME "png" > MIMETYPE "image/png" > DRIVER "GD/PNG" > EXTENSION "png" > IMAGEMODE PC256 > TRANSPARENT FALSE > END > > ....... > > LAYER > NAME "Raster" > TYPE POLYGON > CONNECTIONTYPE OGR > CONNECTION > "C:/ms4w/Apache/htdocs/maplab/tutorial/data/44_75_E.TAB" > STATUS ON > CLASS > NAME"Raster" > COLOR 250 175 25 > OUTLINECOLOR 255 0 0 > END > END > END > > ------------TAB-FILE------------- > > !table > !version 300 > !charset WindowsLatin1 > > Definition Table > File "44_75.TIF" > Type "RASTER" > (650000.00,6380001.69) (0,0) Label "Pt 1", > (660000.00,6380001.69) (5904,0) Label "Pt 2", > (650000.00,6370000.00) (0,5905) Label "Pt 3", > (660000.00,6370000.00) (5904,5905) Label "Pt 4" > CoordSys Earth Projection 3, 33, "m", 24, 57.51755393056, 58, > 59.33333333, 500000, 6375000 > Units "m" > > > > > _______________________________________________ > Maplab-users mailing list > Maplab-users@lists.maptools.org > http://lists.maptools.org/mailman/listinfo/maplab-users > > From morissette@dmsolutions.ca Wed Dec 10 14:19:05 2003 From: morissette@dmsolutions.ca (Daniel Morissette) Date: Wed, 10 Dec 2003 09:19:05 -0500 Subject: [maplab-users] .TAB files In-Reply-To: <1D6EE6E7F017B2479C94CAC3903E5DE18C0DCC@KIRJATUVI.cc.et.ee> References: <1D6EE6E7F017B2479C94CAC3903E5DE18C0DCC@KIRJATUVI.cc.et.ee> Message-ID: <3FD72B59.6040000@dmsolutions.ca> Martin Kiuru wrote: > Greetings, > > I have a trouble with TAB-files in MapLab 2.1-rc3. I have a map-file > which uses 2 shapefiles and works fine. But when I am trying to add TAB > file connected to TIFF file, which covers small part of the big map, > browser MapBrowser window shows nothing, and there is no ROSA controls > in the window. I tryed to add TAB via MapLab interface, after that tryed > to add it manually using this sample : > > LAYER > NAME "Builtup_Areas_tab" > TYPE POLYGON > CONNECTIONTYPE OGR > CONNECTION "data/tab/092b06_builtup_a.tab" > STATUS ON > CLASS Try setting an absolute path for your TAB file CONNECTION. OGR connections were *not* relative to SHAPEPATH in MapServer version 3.6/4.0. This will be fixed in version 4.1. Daniel -- ------------------------------------------------------------ Daniel Morissette morissette@dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From gadoury@dmsolutions.ca Thu Dec 11 14:27:07 2003 From: gadoury@dmsolutions.ca (Dean Gadoury) Date: Thu, 11 Dec 2003 09:27:07 -0500 Subject: [maplab-users] problems with tutorial map Message-ID: <3FD87EBB.2000606@dmsolutions.ca> The problem is when I open the tutorial Map and then try to preview it. I get the follow errors: Warning: [MapServer Error]: msHTTPExecuteRequests(): Can't open output file /msroot/tmp/ms_tmp/107090810035560.img.tmp. in C:\ms4w\apps\maplab-2.1\htdocs\mapedit\preview.php on line 465 Warning: [MapServer Error]: msSaveImage(): (/msroot/tmp/ms_tmp/1070908100_0_0_20_10.png) in C:\ms4w\apps\maplab-2.1\htdocs\mapedit\preview.php on line 465 -THIS ONE SEVERAL LINES OF IT Fatal error: Call to a member function on a non-object in C:\ms4w\apps\maplab-2.1\htdocs\mapedit\preview.php(472) : eval()'d code on line 1 I was just wondering if you might be aware of what is causing this error. Thanks again for your time. Brent Weatherall -- ___________________________ Dean Gadoury DM Solutions Group 72 Chamberlain Ave. Third Floor Ottawa, Ontario. K1S 1V9 613 565-5056 ext. 24 gadoury@dmsolutions.ca www.dmsolutions.ca From zak-ms@hoppsan.org Sat Dec 13 18:14:39 2003 From: zak-ms@hoppsan.org (Zak James) Date: Sat, 13 Dec 2003 13:14:39 -0500 Subject: [maplab-users] problems with tutorial map In-Reply-To: <3FD87EBB.2000606@dmsolutions.ca> References: <3FD87EBB.2000606@dmsolutions.ca> Message-ID: <37194AF4-2D98-11D8-B075-000393D97CCC@hoppsan.org> You need to ensure that the values in the mapfile for image url and image temporary directory (in the web object) point to the same location. Can you verify this? zak -- Zak James Applications and Software Development DM Solutions Group Inc. http://www.dmsolutions.ca > The problem is when I open the tutorial Map and then try to preview it. > > I get the follow errors: > > Warning: [MapServer Error]: msHTTPExecuteRequests(): Can't open output > file /msroot/tmp/ms_tmp/107090810035560.img.tmp. in > C:\ms4w\apps\maplab-2.1\htdocs\mapedit\preview.php on line 465 > > Warning: [MapServer Error]: msSaveImage(): > (/msroot/tmp/ms_tmp/1070908100_0_0_20_10.png) in > C:\ms4w\apps\maplab-2.1\htdocs\mapedit\preview.php on line 465 > -THIS ONE SEVERAL LINES OF IT > > Fatal error: Call to a member function on a non-object in > C:\ms4w\apps\maplab-2.1\htdocs\mapedit\preview.php(472) : eval()'d > code on line 1 > > I was just wondering if you might be aware of what is causing this > error. > > Thanks again for your time. > > Brent Weatherall > > From =?ISO-8859-2?B?TWFyY2luICJDT0RJIiBLb7NvZHppZWo=?= Sun Dec 14 13:19:58 2003 From: =?ISO-8859-2?B?TWFyY2luICJDT0RJIiBLb7NvZHppZWo=?= (=?ISO-8859-2?B?TWFyY2luICJDT0RJIiBLb7NvZHppZWo=?=) Date: Sun, 14 Dec 2003 14:19:58 +0100 Subject: [maplab-users] Small problems with MapLab or MapServer Message-ID: <864184907.20031214141958@poczta.onet.pl> Hello from Poland ! First of all I want to thank to all MapLab/MapServer developers, it's a great tool. But I have a few problems with it :). I am using shp files as maps. But I can't preview dbf file attributes when I am using "Shape File Atributes Picker" from MapLab. Event if I'm writing real attribute (without picking) into LabelItem or for Filter or Join items they don't working. It looks like this version of MapLab or MapServer don't see them. Maybe I'm making some mistakes, which ??? Configuration : Windows XP Profesional Apache 1.3.29 PHP 4.3.2 MapServer version 4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF O UTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIEN T SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=POSTGIS INPUT=OGR INPUT=GDAL INP UT=SHAPEFILE MapLab 2.1 RC3 -- Best Regards, Marcin From =?ISO-8859-2?B?TWFyY2luICJDT0RJIiBLb7NvZHppZWo=?= Sun Dec 14 13:19:58 2003 From: =?ISO-8859-2?B?TWFyY2luICJDT0RJIiBLb7NvZHppZWo=?= (=?ISO-8859-2?B?TWFyY2luICJDT0RJIiBLb7NvZHppZWo=?=) Date: Sun, 14 Dec 2003 14:19:58 +0100 Subject: [maplab-users] Small problems with MapLab or MapServer Message-ID: <864184907.20031214141958@poczta.onet.pl> Hello from Poland ! First of all I want to thank to all MapLab/MapServer developers, it's a great tool. But I have a few problems with it :). I am using shp files as maps. But I can't preview dbf file attributes when I am using "Shape File Atributes Picker" from MapLab. Event if I'm writing real attribute (without picking) into LabelItem or for Filter or Join items they don't working. It looks like this version of MapLab or MapServer don't see them. Maybe I'm making some mistakes, which ??? Configuration : Windows XP Profesional Apache 1.3.29 PHP 4.3.2 MapServer version 4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF O UTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIEN T SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=POSTGIS INPUT=OGR INPUT=GDAL INP UT=SHAPEFILE MapLab 2.1 RC3 -- Best Regards, Marcin From spencer@dmsolutions.ca Mon Dec 15 03:51:12 2003 From: spencer@dmsolutions.ca (Paul Spencer) Date: Sun, 14 Dec 2003 22:51:12 -0500 Subject: [maplab-users] postgis layers In-Reply-To: <20031201141834.15354.qmail@web80705.mail.yahoo.com> References: <20031201141834.15354.qmail@web80705.mail.yahoo.com> Message-ID: <3FDD2FB0.4070606@magma.ca> Damian, sorry, I don't have any insight for you on this. We don't really use postgis a lot and it's hard to reproduce this for us shapefile guys ;) Cheers, Paul Damian Schroder wrote: > Dear list, > I have created an application using map lab. Everything works great and > I have been able to add some nice customizations.However, when I put > postgis layers in the project things start getting unstable.First, in > order to get a postgis layer, I had to rem out the $oLayer->close() > statement in the function processQuery( layer ) found in the > map_query.php (something I'm not comfortable with doing but it > works). Everything works perfect except for the drawquery() function > found in the drawmap.php, and it only fails part of the time. If the > postgis layer is the only active layer the drawquery() will never > fail unless the rect box does not intersect a feature in the layer. The > same is true if there are two postgis layers, if the rect box does not > intersect one layer's features the drawquery() fails. If there is a > shapefile layer with a postgis layer this does not happen, it simply! > returns no results found for either layer if it was not intersected. > However, if a rect box is made too small (in my case 1.5 degrees by 1.5 > degrees) the drawquery fails. If at full extent the rect box is > approximately 115x115 pixels for a 450x450 pixel map, so the rect box > is not tiny.In all this I am always able to recieve the query results > even when the drawquery() fails. I am getting absolutely no response on > the mapserver list. My gut tells me it is a mapserver issue (not Maplab > or postgis), but I thought maybe someone has successfully used postgis > layers with mapsever that could give me some insight. > > Thanks , > > Damian > > ------------------------------------------------------------------------ > Do you Yahoo!? > Free Pop-Up Blocker - Get it now > -- ----------------------------------------------------------------- |Paul Spencer spencer@dmsolutions.ca | |-----------------------------------------------------------------| |Applications & Software Development | |DM Solutions Group Inc http://www.dmsolutions.ca/| ----------------------------------------------------------------- From gis@gisrs.com Mon Dec 15 17:01:18 2003 From: gis@gisrs.com (Stephen Wallace) Date: Mon, 15 Dec 2003 12:01:18 -0500 Subject: [maplab-users] how to move from local computer to the web In-Reply-To: Message-ID: <005401c3c32d$0ecf7f10$965efea9@dell> Tyler Sorry to take so long in reply. I deal with two ISP's and spoke with both last week. I do not have the rights to load Mapserver. One of the two has PHP support on the server. I don't know if this useful by itself. In addition, I was told about pghoster an ISP that may have mapserver loaded and accessible for a small additional fee. Last week I sent an inquiry to pghoster but with no reply. I will try again this week. My local computer is not accessible to the internet on a regular basis, so not an option. I am still exploring other options Thanks for the assistance. Stephen Wallace -----Original Message----- From: Tyler Mitchell [mailto:TMitchell@lignum.com] Sent: December 8, 2003 11:15 AM To: gis@gisrs.com Cc: maplab-users@lists.maptools.org Subject: Re: [maplab-users] how to move from local computer to the web Hi Stephen, Congratulations on being able to make the next step! The simplest scenario would be to duplicate your ms4w and maplab setups to this external server - it depends what you mean by external and what kind of access/permissions you have. Do you have access to installing programs on the web server? I'm assuming you have an account with an ISP that you want to use which usually is pretty limited. That could be tricky and not very profitable, others on the list will probably know better. There are some mechanisms that would allow you, if possible, to have an external web page calling on mapserver on another computer - if your "local" computer is accessible via the internet, this may be the best way to go. But, granted, I'm not familiar with your setup. Let us know some more. tyler "Stephen Wallace" Sent by: To maplab-users-admi n@lists.maptools. cc org Fax to 12/06/2003 12:21 Subject PM [maplab-users] how to move from local computer to the web Please respond to To the list I have been working with ms4w and MapLab using the apache server on my computer. Now I want to move the present results and future work to my web site. Can some one on the list point me to instructions on how I set up mapserver on my external web server. Thank You Stephen Wallace Email gis@gisrs.com From s.d.king@abdn.ac.uk Fri Dec 19 13:06:14 2003 From: s.d.king@abdn.ac.uk (Stephen D. King) Date: Fri, 19 Dec 2003 13:06:14 -0000 Subject: [maplab-users] Manage Servers Problem Message-ID: I have just set up MapLab for the first time on a Windows 2003 machine with IIS 6.0. The version of MapLab is 2.1-rc3. Everything appears to be working okay apart from the Manage Servers dialogue. When I try to connect to a server (e.g. CubeSERV) I get the following message at the top of the web page: Warning: fopen() [function.fopen ]: php_hostconnect: connect failed in E:\maplab-2.1-rc3\htdocs\common\phpwms\server_data_manager.php on line 2093 Warning: fopen(http://ceoware2.ccrs.nrcan.gc.ca/cubewerx/cubeserv/cubeserv.cgi?REQUES T=Capabilities) [function.fopen ]: failed to create stream: Bad file descriptor in E:\maplab-2.1-rc3\htdocs\common\phpwms\server_data_manager.php on line 2093 I have checked my file permissions and they are okay (e.g. IUSR has write permissions). Can anyone help? Many thanks, Stephen Stephen D. King Research Assistant Department of Geography and Environment College of Physical Sciences University of Aberdeen Elphinstone Road Aberdeen AB24 3UF t. +44 (0)1224 272324 f. +44 (0)1224 272331 e. s.d.king@abdn.ac.uk w. http://www.abdn.ac.uk/~geo402 w. http://www.abdn.ac.uk/geospatial/maps From zak-ms@hoppsan.org Sat Dec 20 02:13:52 2003 From: zak-ms@hoppsan.org (Zak James) Date: Fri, 19 Dec 2003 21:13:52 -0500 Subject: [maplab-users] Manage Servers Problem In-Reply-To: References: Message-ID: <28219F99-3292-11D8-89E0-000393D97CCC@hoppsan.org> Can you connect to other servers? If so, you might want to check if allow_url_fopen is set to false in your php.ini file. What version of php are you using? -- Zak James Applications and Software Development DM Solutions Group Inc. http://www.dmsolutions.ca On Dec 19, 2003, at 8:06 AM, Stephen D. King wrote: > I have just set up MapLab for the first time on a Windows 2003 machine > with > IIS 6.0. The version of MapLab is 2.1-rc3. > Everything appears to be working okay apart from the Manage Servers > dialogue. When I try to connect to a server (e.g. CubeSERV) I get the > following message at the top of the web page: > > Warning: fopen() [function.fopen ]: > php_hostconnect: connect failed in > E:\maplab-2.1-rc3\htdocs\common\phpwms\server_data_manager.php on line > 2093 > > Warning: > fopen(http://ceoware2.ccrs.nrcan.gc.ca/cubewerx/cubeserv/cubeserv.cgi? > REQUES > T=Capabilities) [function.fopen ]: > failed to create stream: Bad file descriptor in > E:\maplab-2.1-rc3\htdocs\common\phpwms\server_data_manager.php on line > 2093 > > I have checked my file permissions and they are okay (e.g. IUSR has > write > permissions). > > Can anyone help? > > Many thanks, > Stephen > > Stephen D. King > Research Assistant > Department of Geography and Environment > College of Physical Sciences > University of Aberdeen > Elphinstone Road > Aberdeen > AB24 3UF > > t. +44 (0)1224 272324 > f. +44 (0)1224 272331 > e. s.d.king@abdn.ac.uk > w. http://www.abdn.ac.uk/~geo402 > w. http://www.abdn.ac.uk/geospatial/maps > > > > _______________________________________________ > Maplab-users mailing list > Maplab-users@lists.maptools.org > http://lists.maptools.org/mailman/listinfo/maplab-users > > From sramaswamy@ivesia.com Tue Dec 23 09:48:00 2003 From: sramaswamy@ivesia.com (R. Senthil Kumar) Date: Tue, 23 Dec 2003 15:18:00 +0530 Subject: [maplab-users] help needed Message-ID: <005901c3c939$dbbcacc0$6502a8c0@HDSC> dear all, i am trying to setup maplab and get it running for the first time. i have installed php 4.3.1 mapserver 3.6.6 maplab 2.1-rc3 on windows 2000 advanced server. soon after installation when i checked for php mapscript installation by running a test php file the output was as desired without any error message. after this i tried to run mapedit, mapbrowser and gmapfactory. when i open mapedit using http://localhost/maplab/htdocs/mapedit i get few runtime errors like unterminated string constant. when i try to open tutorial.map i am getting runtime error like "object doesnot support this property or method. when i open mapbrowser using http://localhost/maplab/htdocs/ and then open tutorial.map i am getting the following errors. Warning: MapServer Error in msLoadMap(): (OUTPUTFORMAT):(138) in C:\maplab\maplab-2.1-rc3\htdocs\common\wrapper\map_session.php on line 221 Fatal error: Failed to open map file C:/maplab/maplab-2.1-rc3/tutorial/tutorial.map in C:\maplab\maplab-2.1-rc3\htdocs\common\wrapper\map_session.php on line 221 also when i open the gmapfactory i get errors like Notice: Undefined variable: gszNewAppPathPath in C:\maplab\maplab-2.1-rc3\htdocs\gmapfactory\globprefs.php on line 76 Notice: Undefined index: gszMapFile in C:\maplab\maplab-2.1-rc3\htdocs\gmapfactory\appframeset.phtml on line 98 Notice: Undefined index: gszMapName in C:\maplab\maplab-2.1-rc3\htdocs\gmapfactory\appframeset.phtml on line 101 Notice: Undefined index: gszMapFile in C:\maplab\maplab-2.1-rc3\htdocs\gmapfactory\appframeset.phtml on line 121 No Project Selected Please use the toolbar to select a project and map file Notice: Undefined index: gszMapName in C:\maplab\maplab-2.1-rc3\htdocs\gmapfactory\no_proj.phtml on line 136 please give me your inputs, suggestions to setright the above errors. thanks in advance. r. senthil kumar From zak-ms@hoppsan.org Tue Dec 23 14:10:34 2003 From: zak-ms@hoppsan.org (Zak James) Date: Tue, 23 Dec 2003 09:10:34 -0500 Subject: [maplab-users] help needed In-Reply-To: <005901c3c939$dbbcacc0$6502a8c0@HDSC> References: <005901c3c939$dbbcacc0$6502a8c0@HDSC> Message-ID: Maplab 2.1 only works with Mapserver 4.0 and up. If you want to use Mapserver 3.6.6, you need Maplab 2.0, which is still available. As a convenience for upgrading users, Maplab 2.1 can convert a maplab 3.6.x map file to the 4.0 format. zak -- Zak James Applications and Software Development DM Solutions Group Inc. http://www.dmsolutions.ca On Dec 23, 2003, at 4:48 AM, R. Senthil Kumar wrote: > dear all, > > i am trying to setup maplab and get it running for the first time. > > i have installed > > php 4.3.1 > mapserver 3.6.6 > maplab 2.1-rc3 > > on windows 2000 advanced server. > > soon after installation when i checked for php mapscript installation > by > running a test php file the output was as desired without any error > message. > > after this i tried to run mapedit, mapbrowser and gmapfactory. > > when i open mapedit using http://localhost/maplab/htdocs/mapedit > > i get few runtime errors like unterminated string constant. > > when i try to open tutorial.map i am getting runtime error like "object > doesnot support this property or method. > > when i open mapbrowser using > http://localhost/maplab/htdocs/ and then open tutorial.map i am > getting the > following errors. > > Warning: MapServer Error in msLoadMap(): (OUTPUTFORMAT):(138) in > C:\maplab\maplab-2.1-rc3\htdocs\common\wrapper\map_session.php on line > 221 > > Fatal error: Failed to open map file > C:/maplab/maplab-2.1-rc3/tutorial/tutorial.map in > C:\maplab\maplab-2.1-rc3\htdocs\common\wrapper\map_session.php on line > 221 > > also when i open the gmapfactory i get errors like > > Notice: Undefined variable: gszNewAppPathPath in > C:\maplab\maplab-2.1-rc3\htdocs\gmapfactory\globprefs.php on line 76 > > Notice: Undefined index: gszMapFile in > C:\maplab\maplab-2.1-rc3\htdocs\gmapfactory\appframeset.phtml on line > 98 > > Notice: Undefined index: gszMapName in > C:\maplab\maplab-2.1-rc3\htdocs\gmapfactory\appframeset.phtml on line > 101 > > Notice: Undefined index: gszMapFile in > C:\maplab\maplab-2.1-rc3\htdocs\gmapfactory\appframeset.phtml on line > 121 > > > No Project Selected > Please use the toolbar to select a project and map file > > Notice: Undefined index: gszMapName in > C:\maplab\maplab-2.1-rc3\htdocs\gmapfactory\no_proj.phtml on line 136 > > please give me your inputs, suggestions to setright the above errors. > > thanks in advance. > r. senthil kumar > > _______________________________________________ > Maplab-users mailing list > Maplab-users@lists.maptools.org > http://lists.maptools.org/mailman/listinfo/maplab-users > > From zak-ms@hoppsan.org Wed Dec 24 14:58:03 2003 From: zak-ms@hoppsan.org (Zak James) Date: Wed, 24 Dec 2003 09:58:03 -0500 Subject: [maplab-users] help needed In-Reply-To: <009901c3ca12$7299a5c0$6502a8c0@HDSC> References: <005901c3c939$dbbcacc0$6502a8c0@HDSC> <009901c3ca12$7299a5c0$6502a8c0@HDSC> Message-ID: <933F2D23-3621-11D8-B003-000393D97CCC@hoppsan.org> Hi, Mapserver can't write to that temp directory for some reason. Does c:\tmp\ms_tmp exist? Does your web server have write access there? Look at that directory and see if there are any image files there as a test. Once that's working, you need to have the mapfile's imageurl and imagepath point to the same place on your server, one via a url and one via the file system. The tutorial.map file may not have this set up correctly for your system: you can edit it in a text editor to correct this. zak On Dec 24, 2003, at 6:38 AM, R. Senthil Kumar wrote: > hi zak, > > merry christmas!!! > > thanks for your inputs. now i am having the following in my windows > 2000 > advanced server. > > php 4.3.3 > mapserver 4.0 > maplab 2.1-rc3 > > i am almost through with setup of maplab. > > when i try to open or preview tutorial.map in mapedit i get the > following > error message : > > Fatal error: Failed writing image to /tmp/ms_tmp/107226493615401.png in > C:\maplab\maplab-2.1-rc3\htdocs\mapedit\preview.php on line 474 > > when i open the tutorial.map in mapbrowser the map is displayed but > with the > following errors : > > Description > Invalid imageurl in mapfile changed from /ms_tmp/ to > http://192.168.2.10/ms_tmp/. This change is necessary to properly view > your > map. It has not changed the file on disk, and will only be made > permanent if > you save your map file. in /maplab/htdocs/mapbrowser/action.phtml > Invalid imagepath in mapfile changed from /tmp/ms_tmp/ to c:/mstmp/. > This > change is necessary to properly view your map. It has not changed the > file > on disk, and will only be made permanent if you save your map file. in > /maplab/htdocs/mapbrowser/action.phtml > > > The errors listed may not interfere with your use of MapBrowser. They > may > indicate an unsupported feature, a syntax error in your MapFile, or a > non-fatal application error > > when i open the tutorial.map in gmapfactory i am getting the following > errors: > > Fatal error: Failed writing image to /tmp/ms_tmp/107226512617641.png in > C:\maplab\maplab-2.1-rc3\projects\gmf_apps\tutorial\tutorial.php on > line 550 > > please help me regarding this. > > thanks in advance > r. senthil kumar > > ----- Original Message ----- > From: "Zak James" > To: "R. Senthil Kumar" > Cc: > Sent: Tuesday, December 23, 2003 7:40 PM > Subject: Re: [maplab-users] help needed > > >> Maplab 2.1 only works with Mapserver 4.0 and up. If you want to use >> Mapserver 3.6.6, you need Maplab 2.0, which is still available. As a >> convenience for upgrading users, Maplab 2.1 can convert a maplab 3.6.x >> map file to the 4.0 format. >> >> zak >> >> -- >> Zak James >> Applications and Software Development >> DM Solutions Group Inc. >> http://www.dmsolutions.ca >> >> >> On Dec 23, 2003, at 4:48 AM, R. Senthil Kumar wrote: >> >>> dear all, >>> >>> i am trying to setup maplab and get it running for the first time. >>> >>> i have installed >>> >>> php 4.3.1 >>> mapserver 3.6.6 >>> maplab 2.1-rc3 >>> >>> on windows 2000 advanced server. >>> >>> soon after installation when i checked for php mapscript installation >>> by >>> running a test php file the output was as desired without any error >>> message. >>> >>> after this i tried to run mapedit, mapbrowser and gmapfactory. >>> >>> when i open mapedit using http://localhost/maplab/htdocs/mapedit >>> >>> i get few runtime errors like unterminated string constant. >>> >>> when i try to open tutorial.map i am getting runtime error like >>> "object >>> doesnot support this property or method. >>> >>> when i open mapbrowser using >>> http://localhost/maplab/htdocs/ and then open tutorial.map i am >>> getting the >>> following errors. >>> >>> Warning: MapServer Error in msLoadMap(): (OUTPUTFORMAT):(138) in >>> C:\maplab\maplab-2.1-rc3\htdocs\common\wrapper\map_session.php on >>> line >>> 221 >>> >>> Fatal error: Failed to open map file >>> C:/maplab/maplab-2.1-rc3/tutorial/tutorial.map in >>> C:\maplab\maplab-2.1-rc3\htdocs\common\wrapper\map_session.php on >>> line >>> 221 >>> >>> also when i open the gmapfactory i get errors like >>> >>> Notice: Undefined variable: gszNewAppPathPath in >>> C:\maplab\maplab-2.1-rc3\htdocs\gmapfactory\globprefs.php on line 76 >>> >>> Notice: Undefined index: gszMapFile in >>> C:\maplab\maplab-2.1-rc3\htdocs\gmapfactory\appframeset.phtml on line >>> 98 >>> >>> Notice: Undefined index: gszMapName in >>> C:\maplab\maplab-2.1-rc3\htdocs\gmapfactory\appframeset.phtml on line >>> 101 >>> >>> Notice: Undefined index: gszMapFile in >>> C:\maplab\maplab-2.1-rc3\htdocs\gmapfactory\appframeset.phtml on line >>> 121 >>> >>> >>> No Project Selected >>> Please use the toolbar to select a project and map file >>> >>> Notice: Undefined index: gszMapName in >>> C:\maplab\maplab-2.1-rc3\htdocs\gmapfactory\no_proj.phtml on line 136 >>> >>> please give me your inputs, suggestions to setright the above errors. >>> >>> thanks in advance. >>> r. senthil kumar >>> >>> _______________________________________________ >>> Maplab-users mailing list >>> Maplab-users@lists.maptools.org >>> http://lists.maptools.org/mailman/listinfo/maplab-users >>> >>> >> > >