[mapserver-users] MSCompanion version 1.0 Release Candidate 1 is Available

2009-04-16 Thread enri
Hi, 
 
After several days of test with cooperation from some kind friends, the release 
candidate 1 of version 1.0 is available now, changes happened since the beta2 
include:
1. Bug Fixed: Class legend can not show in layers tree and Style preview 
does not work on some version of Windows. 
2. Bug Fixed: Error caused by RichEdit? on MSCompanion start. 
3. Optimized the procedure of path search on start up, add a status text 
box to show the search progress. 
 
Because these changes are very important to help you avoiding critical problems 
when you use MSCompanion, so this RC1 comes out a little earlier than planning. 
Please visit http://code.google.com/p/mscompanion/ to get it as usual.
 
In addtion I will continue debugging the latest version, the main work will be 
documenting the user manual for MSCompanion before the offical V1.0 release. I 
wish you report bug you meet when you use this version to 
mscompan...@googlegroups.com or enri.z...@gmail.com, so that I can present you 
a better result.
 
Best regards,
Enri





网易邮箱,中国第一大电子邮件服务商___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] FW: ogr/mysql layer imagemap template using php mapscript?

2009-04-16 Thread P.Romero

I still have yet to receive any feedback on this question.
This is probably the 4th-5th time I've asked.
Is my message being completely ignored?
Please help... 

-Original Message-
From: P.Romero [mailto:romero...@hotmail.com]
Sent: 2009-04-13 10:58 PM
To: 'mapserver-users@lists.osgeo.org'
Subject: ogr/mysql layer  imagemap template using php mapscript?

Ive asked this question several times already, but have never received a
useful response. If there are any php-mapscript experts reading this, please
help...

Im trying to create an imagemap based on an html template and a points
layer, which uses an ogr/mysql connection to query a database table and
retrieve a set of points.

It's based on a combination of the following two examples:

http://mapserver.org/input/vector/mysql.html?highlight=ovf
http://mapserver.org/output/imagemaps.html?highlight=imagemap

As described in the 2nd example, I can access successfully access my
imagemap html png output using a url like the following:

http://myurl/cgi-bin/mapserv?map=myfile.mapmode=nquerysearchmap=true

The problem is that I want to use php-mapscript, instead of using the
cgi-bin url. The main reasons for this are to be able to post-process the
raw imagemap html code  control how  when the html and the png image are
sent back to the user's browser.

I tried doing this:

//Read  draw the map file
$map = ms_newMapObj(myMapFile.map);
$img=$map-draw();

//pass the resulting map png's url back 
//to the html template through $tmparray variable 
$tmparray[img_url] = $img-saveWebImage();

//Process the query template
$html=$map-processquerytemplate($tmparray);

//Now, echo or process the raw html as necessary 
echo $html;

This almost seemed to work. The 'processquerytemplate()' function *did*
return the imagemap html, but the actual data points from my layer were
absent in the html; i.e., there were no 'area' tags in the imagemap code, so
the imagemap was empty. However, my layer WAS correctly executing the
mysql/ogr data query  drawing my points, as the points WERE visible in the
png output.

So the basic question is:
How do I go about correctly processing the template using php-mapscript, so
that the data from my points layer will be included in the imagemap html?

I hope this is the info you'll need to help figure this out.
Please let me know if you have questions, or if I need to include more
details.

Thanks again,
P.Romero

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


Re: [mapserver-users] SV: Use of a Colortable

2009-04-16 Thread Peter Rose

Hi
I have a MapServer connected to a MySQL server via PHP/MapScript based on the 
example in Bill Kropla’s book ‘Beginning MapServer Open Source GIS Develpment’, 
chapter 9.
My data is therefore stored on the MySQL server and displayed as points in 
MapServer based on the queries I give it. 

I really like the method Espen suggested as I wouldn't have to change my 
database. 
However, I can't get the EXPRESSION to work like Espen suggested. 

I think it might be because I use MySQL and not postgis but I don't know?

Do any of you know what I can do to run an EXPRESSION against a value read from 
MySQL?

Thanks for any suggestion. 
Peter
-- 
View this message in context: 
http://n2.nabble.com/Use-of-a-Colortable-tp2638330p2643025.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


Re: [mapserver-users] SV: Use of a Colortable

2009-04-16 Thread Alexander Petkov
On Thu, Apr 16, 2009 at 10:09 AM, Peter Rose peter_r...@hotmail.com wrote:

 Hi
 I have a MapServer connected to a MySQL server via PHP/MapScript based on the 
 example in Bill Kropla’s book ‘Beginning MapServer Open Source GIS 
 Develpment’, chapter 9.
 My data is therefore stored on the MySQL server and displayed as points in 
 MapServer based on the queries I give it.

 I really like the method Espen suggested as I wouldn't have to change my 
 database.
 However, I can't get the EXPRESSION to work like Espen suggested.

 I think it might be because I use MySQL and not postgis but I don't know?

 Do any of you know what I can do to run an EXPRESSION against a value read 
 from MySQL?

 Thanks for any suggestion.
 Peter

Hi Peter:

Posting the contents of your mapfile will help with troubleshooting.
Feel free to ommit conn info.

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


RE: [mapserver-users] SV: Use of a Colortable

2009-04-16 Thread Fawcett, David
Probably also helpful to include a your OVF file contents in this case
too.

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Alexander
Petkov
Sent: Thursday, April 16, 2009 11:22 AM
To: Peter Rose
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] SV: Use of a Colortable


On Thu, Apr 16, 2009 at 10:09 AM, Peter Rose peter_r...@hotmail.com
wrote:

 Hi
 I have a MapServer connected to a MySQL server via PHP/MapScript based

 on the example in Bill Kropla's book 'Beginning MapServer Open Source 
 GIS Develpment', chapter 9. My data is therefore stored on the MySQL 
 server and displayed as points in MapServer based on the queries I 
 give it.

 I really like the method Espen suggested as I wouldn't have to change 
 my database. However, I can't get the EXPRESSION to work like Espen 
 suggested.

 I think it might be because I use MySQL and not postgis but I don't 
 know?

 Do any of you know what I can do to run an EXPRESSION against a value 
 read from MySQL?

 Thanks for any suggestion.
 Peter

Hi Peter:

Posting the contents of your mapfile will help with troubleshooting.
Feel free to ommit conn info.

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


[mapserver-users] Labeling via OGR, MySQL table

2009-04-16 Thread Jay Kapalczynski
I am plotting a few points via an OVF file and MySQL table
The points show up fine...
As soon as I try to label from the MySQL table the Star points disappear...
I imagine I have some syntax issues or missing something in the map file (See 
below)

Any thoughts?

THANKS

HERE ARE THE POINTS
LAYER # Points from the MySQL Database
NAME Database
STATUS DEFAULT
TYPE POINT
CONNECTIONTYPE OGR
CONNECTION './Coordinatedata1.ovf'
DATA 'Coordinatedata'
CLASS
   #NAME ID
   STYLE
   SYMBOL star
   SIZE 15
   COLOR 238 0 0
   END
END
END

CANT GET THE LABELS TO SHOW UP
  LAYER # Points from the MySQL Database
NAME Database
STATUS DEFAULT
TYPE POINT
CONNECTIONTYPE OGR
CONNECTION './Coordinatedata1.ovf'
DATA 'Coordinatedata'
LABELITEM 'Name'
LABELCACHE ON
CLASS
LABEL
 COLOR 0 0 0
  SIZE 7
END
END
END


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


[mapserver-users] RE: Labeling via OGR, MySQL table

2009-04-16 Thread Jay Kapalczynski
This is my ovf file: Name is the field I want to label on...
Anyone have any thoughts?

OGRVRTDataSource
OGRVRTLayer name=Coordinatedata

SrcDataSourceMYSQL:coordinates_database,user=Jay,password=Passw0rd,host=127.0.0.1,port=3306,tables=coordinates/SrcDataSource
SrcSQLSELECT X,Y,Name FROM coordinates/SrcSQL
GeometryTypewkbPoint/GeometryType
GeometryField encoding=PointFromColumns 
x=X y=Y/
/OGRVRTLayer
/OGRVRTDataSource



From: Jay Kapalczynski
Sent: Thursday, April 16, 2009 12:02 PM
To: mapserver-users@lists.osgeo.org
Subject: Labeling via OGR, MySQL table

I am plotting a few points via an OVF file and MySQL table
The points show up fine...
As soon as I try to label from the MySQL table the Star points disappear...
I imagine I have some syntax issues or missing something in the map file (See 
below)

Any thoughts?

THANKS

HERE ARE THE POINTS
LAYER # Points from the MySQL Database
NAME Database
STATUS DEFAULT
TYPE POINT
CONNECTIONTYPE OGR
CONNECTION './Coordinatedata1.ovf'
DATA 'Coordinatedata'
CLASS
   #NAME ID
   STYLE
   SYMBOL star
   SIZE 15
   COLOR 238 0 0
   END
END
END

CANT GET THE LABELS TO SHOW UP
  LAYER # Points from the MySQL Database
NAME Database
STATUS DEFAULT
TYPE POINT
CONNECTIONTYPE OGR
CONNECTION './Coordinatedata1.ovf'
DATA 'Coordinatedata'
LABELITEM 'Name'
LABELCACHE ON
CLASS
LABEL
 COLOR 0 0 0
  SIZE 7
END
END
END


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


[mapserver-users] RE: Labeling via OGR, MySQL table

2009-04-16 Thread Jay Kapalczynski
I was able to get some text to display with this:
ALTHOUGH I could only get the fields that were Numeric to label...cant get text 
fields to display.

Is this a syntax thing or is it not possible?

OGRVRTDataSource
OGRVRTLayer name=Coordinatedata

SrcDataSourceMYSQL:coordinates_database,user=Jay,password=Letmein,host=127.0.0.1,port=3306,tables=coordinates/SrcDataSource
SrcSQLSELECT X,Y,ID FROM coordinates/SrcSQL
GeometryTypewkbPoint/GeometryType
GeometryField encoding=PointFromColumns 
x=X y=Y/
/OGRVRTLayer
/OGRVRTDataSource




   LAYER # Points from the MySQL Database
NAME Database
STATUS DEFAULT
TYPE ANNOTATION
CONNECTIONTYPE OGR
CONNECTION './Coordinatedata1.ovf'
DATA 'Coordinatedata'
LABELITEM 'ID'
LABELCACHE ON
CLASS
LABEL
POSITION CC
FONT vera_sans
TYPE TRUETYPE
COLOR 0 0 0
OUTLINECOLOR 255 255 128
SIZE 7
END
END
END

From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Jay Kapalczynski
Sent: Thursday, April 16, 2009 1:29 PM
To: 'mapserver-users@lists.osgeo.org'
Subject: [mapserver-users] RE: Labeling via OGR, MySQL table

This is my ovf file: Name is the field I want to label on...
Anyone have any thoughts?

OGRVRTDataSource
OGRVRTLayer name=Coordinatedata

SrcDataSourceMYSQL:coordinates_database,user=Jay,password=Passw0rd,host=127.0.0.1,port=3306,tables=coordinates/SrcDataSource
SrcSQLSELECT X,Y,Name FROM coordinates/SrcSQL
GeometryTypewkbPoint/GeometryType
GeometryField encoding=PointFromColumns 
x=X y=Y/
/OGRVRTLayer
/OGRVRTDataSource



From: Jay Kapalczynski
Sent: Thursday, April 16, 2009 12:02 PM
To: mapserver-users@lists.osgeo.org
Subject: Labeling via OGR, MySQL table

I am plotting a few points via an OVF file and MySQL table
The points show up fine...
As soon as I try to label from the MySQL table the Star points disappear...
I imagine I have some syntax issues or missing something in the map file (See 
below)

Any thoughts?

THANKS

HERE ARE THE POINTS
LAYER # Points from the MySQL Database
NAME Database
STATUS DEFAULT
TYPE POINT
CONNECTIONTYPE OGR
CONNECTION './Coordinatedata1.ovf'
DATA 'Coordinatedata'
CLASS
   #NAME ID
   STYLE
   SYMBOL star
   SIZE 15
   COLOR 238 0 0
   END
END
END

CANT GET THE LABELS TO SHOW UP
  LAYER # Points from the MySQL Database
NAME Database
STATUS DEFAULT
TYPE POINT
CONNECTIONTYPE OGR
CONNECTION './Coordinatedata1.ovf'
DATA 'Coordinatedata'
LABELITEM 'Name'
LABELCACHE ON
CLASS
LABEL
 COLOR 0 0 0
  SIZE 7
END
END
END


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


RE:[mapserver-users] Mapfile Editor - MSCompanion version 1.0 beta2is available

2009-04-16 Thread enri
Nelson Correia,

Thank you very much for your information, I will try my best to get rid of the 
bugs you mentioned, and resolve the rest problems in the coming version by 
enhancement.

And, some words to explain some problems item by item:

Regarding the preview problem, the preview is now shown on the layer tree, but 
it still doesn't appear on the Style Properties dialog. I hit the preview 
button, but nothing happens.
about  preview problem, it is caused by the invalid path of layer data, if 
MSCompanion can not figure out where the data is, this problem could happen.  
You are encouraged to use the dialogs to set the paths of layers specifics, and 
save the result, problems should disapear next time you open the saved file. 

I am tracking some bug, problems and features I find useful and here are them:

- I always have to change the map properties to use absolute paths and then to 
use relative paths again, in order to use MSCompanion. This 
is a little bit annoying, since I have to do this every time I start 
MSCompanion.

I suggest you use absolute paths and save it, next time you may need not do 
that again. But I will try to repeat the problem and find a resolution.

- When I edit a layer/class and cancel my edition, why do it redraw the map? I 
have several large shapefiles and it is stressfull when I 
cancel my changes and still have to wait a few seconds to continue working.

Yes, that's a problem now, I will fix it.

- The mouse scroll doesn't work pretty well on the MapFile text editor.

Yes, it's true. Frankly I don't find a way to satisfy myself by now, as a 
compensation, you can use the scroll bar by the time.

- The update button on the text editor became desabled when I click it and 
then cancel the update.

I will test it.

- The layers tree is not updated when I add a class/layer through the text 
editor.

Yes, when you update the mapfile by text editor, you must reopen the file to 
view the changes on map.

- I think it should be a way of updating the information from the mapfile, for 
exemple to allow us to edit it with an external editor and 
see the changes in MSCompanion without restarting it.

Good suggestion, but in my mind it is a little difficult by now, I will 
consider that in the future versions. 

- The styles in MSCompanion allow us to define a min and max scale for them, 
but I didn't find any support for it in the MapServer 
documentation and it doesn't seem to work. Is it a bug?

I got this from 
http://www.mapserver.org/development/rfc/ms-rfc-45.html?highlight=rfc, but I 
don't know if it is implemented.

- I think that would be very useful the ability to do pan on the map. 
Currently it is a little bit difficult to change the view port 
mantaining the scale.

You are correct, I will do that.

Thanks again.

Best regards,
Enri

_

 

I hope this is useful for you.

 

Best regards,

 

Nelson Correia


 
 Date: Thu, 16 Apr 2009 18:08:26 +0800
 From: z...@163.com
 To: nelson...@hotmail.com
 CC: mapserver-users@lists.osgeo.org
 Subject: Re: [mapserver-users] Mapfile Editor - MSCompanion version 1.0beta2 
 is available
 
 Nelson Correia,
 
 The release candidate 1 of MSCompanion version1.0 is available now, the 
 problems these days occured should be fixed now. Please get it at 
 http://code.google.com/p/mscompanion/ again. 
 
 Enri
 
 
 === 2009-04-16 02:18:00 you wrote:===
 
 
  
 
 No, there isn't any problem when I do that. And the problems I've reported 
 don't happen with the alpha 3 version.
 
  
 
 Nelson Correia
  
 
 
 Date: Thu, 16 Apr 2009 00:38:45 +0800
 From: e...@163.com
 To: nelson...@hotmail.com
 Subject: Re:FW: [mapserver-users] Mapfile Editor - MSCompanion version 1.0 
 beta2 is available
 
 
 Hi, Nelson Correia,
  
 Are you sure the paths are correct? And is there any problem about the 
 mapfile content edit when you shift from map window to it?
  
 Thanks for you information.
  
 Best regards,
 Enri
 
 
 在2009-04-15,Nelson Correia nelson...@hotmail.com 写道:
 
 
  Oh, I've just noticed that this preview doesn't appear either on the Style 
  Properties dialog.
  
 Nelson Correia
  
 
 
 From: nelson...@hotmail.com
 To: e...@163.com
 Subject: RE: [mapserver-users] Mapfile Editor - MSCompanion version 1.0 
 beta2 is available
 Date: Wed, 15 Apr 2009 13:19:09 +
 
 
 
  
 Hi,
  
 The new version now runs properly without those exceptions I've mentioned.
  
 So far I've encountered one problem (relative to the version I was using): 
 it doesn't show the preview of the class styles on the left menu. It now 
 shows the same arrow that the one that indicates the selected item of the 
 menu. I think that the preview of the style is very usefull, specially when 
 you have lots of layers, each one with several classes.
  
 Nelson Correia
  
 
 
 Date: Wed, 15 Apr 2009 11:39:24 +0800
 From: e...@163.com
 To: nelson...@hotmail.com
 Subject: RE: [mapserver-users] Mapfile Editor - MSCompanion version 1.0