[mapserver-users] RE: Problems with Query Template (Chameleon)

2011-05-04 Thread Andy Hird
Jeff,

I have ruled it out from being a chameleon issue - as the issue still occurs
when using the ITASCA demo.  to replicate I created a tab file using ogr2ogr
ie:
(in Dos)
cd C:\ms4w\apps\mapserv-demo\data
ogr2ogr -f MapInfo File lakespy2.Tab lakespy2.shp
I then adjusted the ITASCA.map file to reference the newly created Tab file
instead of the shape and the querying then no longer worked for that layer.

This is good in some ways as I guess its a MapServer issue rather than the
add-ons.

However with reference to the first point you make would you be able to
offer any more advise as I am uncertain as to what/how to do what you
describe.
make sure GDAL/OGR is accessing your file properly (testing with the
ogrinfo command on your old installation version and with your new
installation GDAL version, and compare the ogrinfo results) 


If anyone can help I would be very grateful

Thanks

Andy

--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Problems-with-Query-Template-Chameleon-tp6252878p6330562.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Out of Office AutoReply: Problems with Query Template (Chameleon)

2011-05-04 Thread Andy Hird
I am currently out of the Office and will be back on the 3rd May 2011 - Please 
contact supp...@aligned-assets.co.uk




The information contained in or attached to this message is the responsibility 
of the sender and is meant for the confidential use of the intended recipients. 
 It does not necessarily represent the position of Aligned Assets.  If you are 
not an intended recipient you are notified that you have received this 
communication in error and that review, dissemination or copying of this 
communication is prohibited.

If you have received this in error, please notify us.

Aligned Assets Limited
Unit 5
River Court
Albert Drive
Sheerwater
Woking
GU21 5RP
Company Registration No: 4610724



--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Problems-with-Query-Template-Chameleon-tp6252878p6330717.html
Sent from the Mapserver - User mailing list archive at Nabble.com.___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] RE: Problems with Query Template (Chameleon)

2011-05-04 Thread Andy Hird
Jeff

 

Your quite right. Sorry I do not know what happened there  (I have
swapped settings so much on my pc here I guess I failed to swap
something back).

 

I can confirm it works in ITASCA demo, but does not within Chameleon.  

 

Easily recreated by Installing Chameleon and doing the same sort of
thing

(In Dos)

cd C:\ms4w\apps\chameleon\samples\data

ogr2ogr -f MapInfo File popplace.Tab popplace.shp

 

Then change map file and goto the demo url 

http://localhost/chameleon/samples/sample_basic_jsapi.phtml

 

Now when I click on one of the cities I get an actual error (which may
be progress)

 

Warning: array_merge(): Argument #1 is not an array in
C:\ms4w\apps\chameleon\htdocs\common\wrapper\map_query.php on line 577
Warning: Invalid argument supplied for foreach() in
C:\ms4w\apps\chameleon\htdocs\widgets\Query\QueryResults.phtml on line
294

 

Looks like the Chameleon List is rarely used these days and
unfortunately I have no budget available to get this issue
professionally sorted,  Its looking like I am up a creek with no
paddle...

 

Thanks in advance

 

Andy

 

From: Jeff McKenna [via OSGeo.org]
[mailto:ml-node+6330714-2002393781-329...@n2.nabble.com] 
Sent: 04 May 2011 14:04
To: Andy Hird
Subject: RE: Problems with Query Template (Chameleon)

 

On 11-05-04 9:07 AM, Andy Hird wrote: 


 Jeff, 
 
 I have ruled it out from being a chameleon issue - as the issue still
occurs 
 when using the ITASCA demo.  to replicate I created a tab file using
ogr2ogr 
 ie: 
 (in Dos) 
 cd C:\ms4w\apps\mapserv-demo\data 
 ogr2ogr -f MapInfo File lakespy2.Tab lakespy2.shp 
 I then adjusted the ITASCA.map file to reference the newly created Tab
file 
 instead of the shape and the querying then no longer worked for that
layer. 
 


Hello Andy, 

I am not sure what is happening for you.  I just installed a fresh MS4W 
version 3.0.2, then created lakespy2.tab as you did, and then modified 
the itasca.map file to point to the tab file (using the mapfile example 
from http://www.mapserver.org/input/vector/mapinfo.html), and I am able 
to query the tab file in the Itasca application. 

Note that if you are stuck on something you can always contact a 
MapServer service provider like us that offers professional support for 
MapServer. 

-jeff 


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




___ 
mapserver-users mailing list 
[hidden email] 
http://lists.osgeo.org/mailman/listinfo/mapserver-users



  _  

If you reply to this email, your message will be added to the discussion
below:

http://osgeo-org.1803224.n2.nabble.com/Problems-with-Query-Template-Cham
eleon-tp6252878p6330714.html 

To unsubscribe from Problems with Query Template (Chameleon), click here
http://osgeo-org.1803224.n2.nabble.com/template/NamlServlet.jtp?macro=u
nsubscribe_by_codenode=6252878code=YW5keS5oaXJkQGFsaWduZWQtYXNzZXRzLmN
vLnVrfDYyNTI4Nzh8MjAyOTU1Nzk4OQ== . 


The information contained in or attached to this message is the responsibility 
of the sender and is meant for the confidential use of the intended recipients. 
 It does not necessarily represent the position of Aligned Assets.  If you are 
not an intended recipient you are notified that you have received this 
communication in error and that review, dissemination or copying of this 
communication is prohibited.

If you have received this in error, please notify us.

Aligned Assets Limited
Unit 5
River Court
Albert Drive
Sheerwater
Woking
GU21 5RP
Company Registration No: 4610724


--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Problems-with-Query-Template-Chameleon-tp6252878p6331102.html
Sent from the Mapserver - User mailing list archive at Nabble.com.___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] RE: Problems with Query Template

2011-05-03 Thread Andy Hird

Steve,

Thanks so much for the reply and apologies for long delay (have been on 
holiday).

I have carried out the url line you specified
http://localhost/cgi-bin/mapserv.exe?MAP=/ms4w/apps/MFRS_Maps/Map/MFRS_Maps.mapqlayer=Wardsqindex=1mode=indexquery

and the result is as follows:

1.  Internet Explorer Returns:
msQueryByIndex(): Search returned no results. Not valid record request.
2.  In my ms_error.txt file I am returned with:
[Tue May 03 16:12:13 2011].244000 CGI Request 1 on process 7676
[Tue May 03 16:12:13 2011].244000 msQueryByIndex(): Search returned no 
results. Not valid record request.
[Tue May 03 16:12:13 2011].244000 msFreeMap(): freeing map at 01C8AF68.

I have tried to look up what the message means and I can only assume its an 
issue with the Template side of things?

Using my shape file layer:
http://localhost/cgi-bin/mapserv.exe?MAP=/ms4w/apps/MFRS_Maps/Map/MFRS_Maps.mapqlayer=10K+StreetViewqindex=1mode=indexquery

I get this back:
msQueryByIndex(): Search returned no results. Not valid record request. 
msRASTERLayerGetShape(): General error message. Out of range shape index 
requested. Requested -1 but only 0 shapes available.

I am really quite stumped and unfortunately running out of time to throw at 
this.  Any help would help greatly.

Thanks in advance

Andy
--

Message: 1
Date: Wed, 13 Apr 2011 13:59:34 -0500
From: Lime, Steve D (DNR) steve.l...@state.mn.us
Subject: [mapserver-users] RE: Problems with Query Template
(Chameleon)
To: Andy Hird andy.h...@aligned-assets.co.uk,
mapserver-users@lists.osgeo.org mapserver-users@lists.osgeo.org
Message-ID:
a7f7b3043d3bf0438f1206baa3c9933c0831712...@mnmail05.ead.state.mn.us
Content-Type: text/plain; charset=utf-8

There’s nothing in the templates that would care about the data source be it 
shapefile or mapinfo tab file. If it were something like missing attributes you 
should get the template content back but without tags being processed. Can you 
take this outside of Chameleon to debug?

You could issue a query against the MasterMap Area layer and see what happens. 
For example:

  
http://yourserver/cgi-bin/mapserv.exe?/yourmapfile.mapqlayer=MasterMap+Areaqindex=1mode=indexquery

That should pull the first record from the MasterMap Area layer.

Steve

From: Andy Hird [mailto:andy.h...@aligned-assets.co.uk]
Sent: Tuesday, April 12, 2011 4:28 PM
To: Lime, Steve D (DNR); mapserver-users@lists.osgeo.org
Subject: RE: Problems with Query Template (Chameleon)

Steve

Thanks for the reply.

There are no errors being logged and as I say it works for files which are not 
MapInfo Tab files. For instance the following works fine.

LAYER
NAME 10K StreetView
STATUS ON
TYPE RASTER
MINSCALEDENOM 6000#600
MAXSCALEDENOM 22499 #2999
TILEINDEX C:\ms4w\apps\\data\10K.shp
TILEITEM LOCATION
CLASS
TEMPLATE templates/.html  #TOLERANCE 6 TOLERANCEUNITS PIXELS
END
END

I assume that this is because it’s a shp file which has a dbf file.

This does not work:

LAYER
NAME MasterMap Area
TYPE POLYGON
MINSCALEDENOM 1
MAXSCALEDENOM 5999
STATUS ON
CONNECTIONTYPE OGR
CONNECTION C:\ms4w\apps\\data\MM_Topo_Area.TAB
STYLEITEM AUTO
CLASS
TEMPLATE templates/.html  #TOLERANCE 6 TOLERANCEUNITS PIXELS
END # Class section
HEADER templates/_header.html
FOOTER templates/_footer.html
END

Its bugging me like crazy as I can’t figure it out, - the second part of my 
question was:
“However If someone can provide example of placing a button on a html page 
that would call query functionality that would be very helpful too.”

If it’s easier for someone to advise on that it would be appreciated.

Thanks

Andy

From: Lime, Steve D (DNR) [mailto:steve.l...@state.mn.us]
Sent: 11 April 2011 22:49
To: Andy Hird; mapserver-users@lists.osgeo.org
Subject: RE: Problems with Query Template (Chameleon)

Not a Chameleon user so I may not be of much help. Any errors being logged? 
What does the template file look like? It’s possible that ms4w_2.3.1’s 
MapServer did not require a magic string be on the first line of the template. 
In new versions it is required. Basically the first line of a template must 
contain the string “MapServer Template”. Typically you’d put that in a 
HTML comment, e.g.:

!—MapServer Tempate --
...template follows...

That’s my first guess anyway.

Steve


From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Andy Hird
Sent: Friday, April 08, 2011 3:00 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Problems with Query Template (Chameleon)

Hi there  - really need some help if you can please regarding Template Query 
feature, and I have googled to exhaustion :-/

Background:
I have an existing Map file referencing MapInfo Tab files running under 
ms4w_2.3.1  chameleon_ms4w-2.4.1
I have installed ms4w

[mapserver-users] RE: Problems with Query Template (Chameleon)

2011-04-12 Thread Andy Hird
Steve

 

Thanks for the reply.

 

There are no errors being logged and as I say it works for files which are not 
MapInfo Tab files. For instance the following works fine.

 

LAYER

NAME 10K StreetView

STATUS ON

TYPE RASTER

MINSCALEDENOM 6000#600

MAXSCALEDENOM 22499 #2999

TILEINDEX C:\ms4w\apps\\data\10K.shp

TILEITEM LOCATION

CLASS

TEMPLATE templates/.html  #TOLERANCE 6 TOLERANCEUNITS PIXELS 

END

END

 

I assume that this is because it’s a shp file which has a dbf file.

 

This does not work:

 

LAYER

NAME MasterMap Area

TYPE POLYGON

MINSCALEDENOM 1

MAXSCALEDENOM 5999

STATUS ON

CONNECTIONTYPE OGR

CONNECTION C:\ms4w\apps\\data\MM_Topo_Area.TAB

STYLEITEM AUTO

CLASS

TEMPLATE templates/.html  #TOLERANCE 6 TOLERANCEUNITS PIXELS 

END # Class section

HEADER templates/_header.html

FOOTER templates/_footer.html

END

 

Its bugging me like crazy as I can’t figure it out, - the second part of my 
question was:

“However If someone can provide example of placing a button on a html page that 
would call query functionality that would be very helpful too.”

 

If it’s easier for someone to advise on that it would be appreciated.

 

Thanks 

 

Andy

 

From: Lime, Steve D (DNR) [mailto:steve.l...@state.mn.us] 
Sent: 11 April 2011 22:49
To: Andy Hird; mapserver-users@lists.osgeo.org
Subject: RE: Problems with Query Template (Chameleon)

 

Not a Chameleon user so I may not be of much help. Any errors being logged? 
What does the template file look like? It’s possible that ms4w_2.3.1’s 
MapServer did not require a magic string be on the first line of the template. 
In new versions it is required. Basically the first line of a template must 
contain the string “MapServer Template”. Typically you’d put that in a HTML 
comment, e.g.:

 

!—MapServer Tempate --

...template follows...

 

That’s my first guess anyway.

 

Steve

 

 

From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Andy Hird
Sent: Friday, April 08, 2011 3:00 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Problems with Query Template (Chameleon)

 

Hi there  - really need some help if you can please regarding Template Query 
feature, and I have googled to exhaustion :-/

 

Background:

I have an existing Map file referencing MapInfo Tab files running under 
ms4w_2.3.1  chameleon_ms4w-2.4.1

I have installed ms4w - V3.0.1 and chameleon V2.6.0

Copied my Map file across and made the necessary adjustments to get it working.

 

However when using the Query Widget (info of layers at mouse click) against 
MapInfo Layers it is no longer returning results, and yet it did previously.  

My knowledge is not that great in php etc – but I suspect that its requiring a 
dbf rather than MapInfo Tab as it does work with a shp, dbf set of files.

 

Can Anyone help please as I really struggling – ideally I just want to use the 
old widget.

 

However If someone can provide example of placing a button on a html page that 
would call query functionality that would be very helpful too.

 

Thanks in advance

 

Andy

 

 



The information contained in or attached to this message is the responsibility 
of the sender and is meant for the confidential use of the intended recipients. 
It does not necessarily represent the position of Aligned Assets. If you are 
not an intended recipient you are notified that you have received this 
communication in error and that review, dissemination or copying of this 
communication is prohibited.

If you have received this in error, please notify us.

Aligned Assets Limited
Unit 5
River Court
Albert Drive
Sheerwater
Woking
GU21 5RP
Company Registration No: 4610724


 

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


[mapserver-users] Problems with Query Template (Chameleon)

2011-04-08 Thread Andy Hird
Hi there  - really need some help if you can please regarding Template
Query feature, and I have googled to exhaustion :-/

 

Background:

I have an existing Map file referencing MapInfo Tab files running under
ms4w_2.3.1  chameleon_ms4w-2.4.1

I have installed ms4w - V3.0.1 and chameleon V2.6.0

Copied my Map file across and made the necessary adjustments to get it
working.

 

However when using the Query Widget (info of layers at mouse click)
against MapInfo Layers it is no longer returning results, and yet it did
previously.  

My knowledge is not that great in php etc - but I suspect that its
requiring a dbf rather than MapInfo Tab as it does work with a shp, dbf
set of files.

 

Can Anyone help please as I really struggling - ideally I just want to
use the old widget.

 

However If someone can provide example of placing a button on a html
page that would call query functionality that would be very helpful too.

 

Thanks in advance

 

Andy

 


The information contained in or attached to this message is the responsibility 
of the sender and is meant for the confidential use of the intended recipients. 
 It does not necessarily represent the position of Aligned Assets.  If you are 
not an intended recipient you are notified that you have received this 
communication in error and that review, dissemination or copying of this 
communication is prohibited.

If you have received this in error, please notify us.

Aligned Assets Limited
Unit 5
River Court
Albert Drive
Sheerwater
Woking
GU21 5RP
Company Registration No: 4610724
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users