Re: [mapserver-users] Apache can't start on windows

2008-08-26 Thread helen

Hi,

Thanks for ur help i get it working. The problem was i have to start the
apache from the command line. 
i think it should be told that apache can be started only from the command
line.

thanks

Helen

Jeff McKenna wrote:
> 
> This is issue was first reported on August 14th 
> (http://www.nabble.com/apache-does-not-start-(ms4w-Apache-conf-httpd.conf)-td18977162.html)
>  
> and to fix it you need to comment the line that Bart mentioned and 
> restart Apache.  Another option is that you uninstall MS4W and go back 
> to the downloads page and re-download it, since this issue was fixed on 
> the 14th.  Hint: always use the commandline to restart Apache 
> (/ms4w/restart-apache.bat) so you can see the messages that Apache 
> reports, otherwise you will get a "black screen" that flashes quickly 
> when you click on it directly.
> 
> Also, please note that MS4W does have its own mailing list for reporting 
> issues such as these (join at: 
> http://lists.maptools.org/mailman/listinfo/ms4w-users).
> 
> thanks.
> 
> -- 
> Jeff McKenna
> FOSS4G Consulting and Training Services
> http://www.gatewaygeomatics.com/
> 
> 
> 
> helen wrote:
>> thanks for the fast response. i have tried to install the c++ runtime
>> (vcredist_x86.exe) but black screen comes and nothing appeared. i comment
>> the fcgid_module but the result is the same. please help me
>> 
>> thanks in advance
>> 
>> Helen 
>> 
>> 
>> bartvde wrote:
>>> Possibly the Microsoft Runtime is not available on your system, see also
>>> the following thread:
>>>
>>> http://www.nabble.com/fastCgiServer-with-ms4w-td18348539.html
>>>
>>> You can also just comment the following line in httpd.conf if you don't
>>> need FastCGI:
>>>
>>> #LoadModule fcgid_module modules/mod_fcgid.so
>>>
>>> Best regards,
>>> Bart
>>>
  Hi,

 I have installed mapserver5.2 (Ms4W) on windows xp. but i can't get
 started
 the apache. i have tried with port 80,8080. but it is the same. it
 display
 on the system event the following messages

 The Apache MS4W Web Server service terminated with service-specific
 error
 1
 (0x1).
 The Apache MS4W Web Server service entered the stopped state. --info
 The Apache MS4W Web Server service was successfully sent a start
 control.--info
 Generate Activation Context failed for C:\Program
 Files\ms4w\Apache\modules\mod_fcgid.so. Reference error message: The
 operation completed successfully.
 Resolve Partial Assembly failed for Microsoft.VC90.CRT. Reference error
 message: The referenced assembly is not installed on your system.
 Dependent Assembly Microsoft.VC90.CRT could not be found and Last Error
 was
 The referenced assembly is not installed on your system.

 pls pls , say something to these errors.

 thanks

 Helen

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

-- 
View this message in context: 
http://n2.nabble.com/Apache-can%27t-start-on-windows-tp783741p786208.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] Using mapserver with EPSG:900913

2008-08-26 Thread Richard Greenwood
On Tue, Aug 26, 2008 at 6:16 PM, Christopher Schmidt
<[EMAIL PROTECTED]> wrote:
> On Tue, Aug 26, 2008 at 05:21:48PM -0600, Richard Greenwood wrote:
>> > Type the following:
>> >
>> >  new OpenLayers.LonLat(-71,42).transform(new
>> >  OpenLayers.Projection("EPSG:4326"), new
>> >  OpenLayers.Projection("EPSG:900913"));
>>
>> I know I'll get slammed for this, but it should be something more like:
>>
>> new OpenLayers.LonLat(-71,42).transform(new
>> OpenLayers.CS("EPSG:4326"), new
>> OpenLayers.CS("EPSG:900913"));
>>
>> Because EPSG:4326 is not a Projection, it is a Coordinate System.
>
> I don't mind you saying that, but the user should realize that when you
> say "Should Be" you're not not instructing what he should actually be
> doing in his current code, since the OpenLayers Library uses
> OpenLayers.Projection, not OpenLayers.CS.

Yes, you are quite right about that. I did not mean to imply that
OpenLayers.CS worked, I was picking at nomenclature.

> I'd recommend if you care about this issue, you should bring it up with
> the OpenLayers development list, but I wouldn't bother; getting people
> to undestand "Projection" is hard enough. (ANd why should it be CS
> instead of CRS? or SRS? Or any number of other names that it could be
> related to?)

CS, CRS, SRS are all great - they cover spherical & projected
coordinate systems, and include datums. Projections are just
projections w/o datums.

-- 
Richard Greenwood
[EMAIL PROTECTED]
www.greenwoodmap.com
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Using mapserver with EPSG:900913

2008-08-26 Thread Christopher Schmidt
On Tue, Aug 26, 2008 at 05:21:48PM -0600, Richard Greenwood wrote:
> > Type the following:
> >
> >  new OpenLayers.LonLat(-71,42).transform(new
> >  OpenLayers.Projection("EPSG:4326"), new
> >  OpenLayers.Projection("EPSG:900913"));
> 
> I know I'll get slammed for this, but it should be something more like:
> 
> new OpenLayers.LonLat(-71,42).transform(new
> OpenLayers.CS("EPSG:4326"), new
> OpenLayers.CS("EPSG:900913"));
> 
> Because EPSG:4326 is not a Projection, it is a Coordinate System.

I don't mind you saying that, but the user should realize that when you
say "Should Be" you're not not instructing what he should actually be
doing in his current code, since the OpenLayers Library uses
OpenLayers.Projection, not OpenLayers.CS. (It also calls XYs "LonLat"s,
and many other similar mistaken naming choices.)

I'd recommend if you care about this issue, you should bring it up with
the OpenLayers development list, but I wouldn't bother; getting people
to undestand "Projection" is hard enough. (ANd why should it be CS
instead of CRS? or SRS? Or any number of other names that it could be
related to?)

Regards,
-- 
Christopher Schmidt
MetaCarta
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Using mapserver with EPSG:900913

2008-08-26 Thread Richard Greenwood
On Tue, Aug 26, 2008 at 2:22 PM, Christopher Schmidt
<[EMAIL PROTECTED]> wrote:
> On Tue, Aug 26, 2008 at 12:32:47PM -0700, nbest wrote:
>>
>>
>> Does anyone have some JS that overlays a WMS serving EPSG:900913 images
>> through the GMap API?
>
> I've always just done this with TileCache:
>
> http://crschmidt.net/blog/311/using-tilecache-with-google-maps-and-virtual-earth/
>
> Do you really need WMS? It's possible, but I'd have to write some code,
> and I'm very lazy :)
>
>> Does anyone have any lat-lon, 900913 x-y coordinate pairs that I could
>> use to test in proj?  spatialreference.org can't seem to do it right
>> now.  Thanks.
>
> Open any modern OpenLayers page.
>
> Open Firebug. (Or just open
> http://openlayers.org/dev/examples/debug.html , which has firebug lite.)
>
> Type the following:
>
>  new OpenLayers.LonLat(-71,42).transform(new
>  OpenLayers.Projection("EPSG:4326"), new
>  OpenLayers.Projection("EPSG:900913"));

I know I'll get slammed for this, but it should be something more like:

new OpenLayers.LonLat(-71,42).transform(new
OpenLayers.CS("EPSG:4326"), new
OpenLayers.CS("EPSG:900913"));

Because EPSG:4326 is not a Projection, it is a Coordinate System.

Rich

-- 
Richard Greenwood
[EMAIL PROTECTED]
www.greenwoodmap.com
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Using mapserver with EPSG:900913

2008-08-26 Thread Christopher Schmidt
On Tue, Aug 26, 2008 at 12:32:47PM -0700, nbest wrote:
> 
> 
> Does anyone have some JS that overlays a WMS serving EPSG:900913 images
> through the GMap API?

I've always just done this with TileCache:

http://crschmidt.net/blog/311/using-tilecache-with-google-maps-and-virtual-earth/

Do you really need WMS? It's possible, but I'd have to write some code,
and I'm very lazy :)

> Does anyone have any lat-lon, 900913 x-y coordinate pairs that I could
> use to test in proj?  spatialreference.org can't seem to do it right
> now.  Thanks.

Open any modern OpenLayers page.

Open Firebug. (Or just open
http://openlayers.org/dev/examples/debug.html , which has firebug lite.)

Type the following:

 new OpenLayers.LonLat(-71,42).transform(new
  OpenLayers.Projection("EPSG:4326"), new
  OpenLayers.Projection("EPSG:900913"));

Get result:
lon=-7903683.84523,lat=5160979.443331368

Regards,
-- 
Christopher Schmidt
MetaCarta
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Using mapserver with EPSG:900913

2008-08-26 Thread nbest


Does anyone have some JS that overlays a WMS serving EPSG:900913 images
through the GMap API?

I am aware of the tile mode available in MS 5.2 but at the moment I would
have to break up with FWTools and I am hesitant to tinker with my server in
that way.  I took the projection description from
http://spatialreference.org/ref/user/google-projection/ (which appears to be
functionally equivalent the definition in the RFC 43 patch) and added it to
the epsg file as <900913>.  I found some JS examples such as
http://gapanalysis.nbii.gov/files/gmaps/gmap_WMS.html and
http://lyceum.massgis.state.ma.us/wiki/doku.php?id=googlemaps:home that
appear to connect to WMSs that are serving images not in the Google
projection and doing some adjustments to the bounding box coordinates. 
Using those JS scripts appears to introduce a north-south shift but I don't
know if that's coming from the JS or a server-side proj problem.  Does
anyone have any lat-lon, 900913 x-y coordinate pairs that I could use to
test in proj?  spatialreference.org can't seem to do it right now.  Thanks.

Neil

-- 
View this message in context: 
http://n2.nabble.com/Re%3A-Using-mapserver-with-EPSG%3A900913-tp738215p785077.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] howto draw amount of points features of one layer depending on scale

2008-08-26 Thread David Percy
If you treated them as labels when zoomed out (maxscale 5 for 
example), then you could take advantage of the label colission features 
of mapserver to avoid overlaps.


when zoomed in further you could have another layer (minscale 5 for 
example) that shows all the detail...


so you would have two layer definitions in this case...
Cheers,
Percy


Nils Zierath wrote:

Dear list,
I got a layer with gps points. On the largest scale of my map the 
symbols for points overlap and are not distinguishable from one another 
since they are too close together.


Is it possible to tell mapserver to draw only that many of the 
points/symbols that do not overlap, so that more points will be shown 
the more I zoom into the map?


Thank you,
Nils

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



--
David Percy
Geospatial Data Manager
Geology Department
Portland State University
http://gisgeek.pdx.edu
503-725-3373
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] howto draw amount of points features of one layer depending on scale

2008-08-26 Thread Jeff McKenna
hmm, you could experiment using TYPE ANNOTATION for your layer and 
giving the label a BUFFER value...and see if that makes any difference.


-jeff



Nils Zierath wrote:

Dear list,
I got a layer with gps points. On the largest scale of my map the 
symbols for points overlap and are not distinguishable from one another 
since they are too close together.


Is it possible to tell mapserver to draw only that many of the 
points/symbols that do not overlap, so that more points will be shown 
the more I zoom into the map?


Thank you,
Nils



--
Jeff McKenna
FOSS4G Consulting and Training Services
http://www.gatewaygeomatics.com/
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] howto draw amount of points features of one layer depending on scale

2008-08-26 Thread Tamas Szekeres
Nils,

How about using a SYMBOLSCALEDENOM setting at LAYER level?
For more information see:
http://mapserver.gis.umn.edu/docs/reference/mapfile/layer

Best regards,

Tamas


2008/8/26 Nils Zierath <[EMAIL PROTECTED]>:
>
> Nils Zierath schrieb:
>>
>> Dear list,
>> I got a layer with gps points. On the largest scale of my map
>
> I was talking about the smallest scale, off course
>
>> symbols for points overlap and are not distinguishable from one another
>> since they are too close together.
>>
>> Is it possible to tell mapserver to draw only that many of the
>> points/symbols that do not overlap, so that more points will be shown the
>> more I zoom into the map?
>>
>> Thank you,
>> Nils
>>
>> ___
>> mapserver-users mailing list
>> mapserver-users@lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
> --
> Nils Zierath
>
> ZEF 10 Years
> 1997-2007: 10 Years of Development Research
> on Economic, Cultural, and Ecological Change
> in the Developing World
>
> Center for Development Research
> Department of Ecology and Resource Management
>
> Walter-Flex-Strasse 3
> 53113 Bonn (Germany)
>
> Tel.:   +49 (0) 228 - 73-1793
> FAX:+49 (0) 228 - 73-1889
>
> E-Mail: [EMAIL PROTECTED]
> Web:http://www.coffee.uni-bonn.de
>http://www.zef.de
> ___
> 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


Re: [mapserver-users] howto draw amount of points features of one layer depending on scale

2008-08-26 Thread Nils Zierath


Nils Zierath schrieb:

Dear list,
I got a layer with gps points. On the largest scale of my map


I was talking about the smallest scale, off course

symbols for points overlap and are not distinguishable from one another 
since they are too close together.


Is it possible to tell mapserver to draw only that many of the 
points/symbols that do not overlap, so that more points will be shown 
the more I zoom into the map?


Thank you,
Nils

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


--
Nils Zierath

ZEF 10 Years
1997-2007: 10 Years of Development Research
on Economic, Cultural, and Ecological Change
in the Developing World

Center for Development Research
Department of Ecology and Resource Management

Walter-Flex-Strasse 3
53113 Bonn (Germany)

Tel.:   +49 (0) 228 - 73-1793
FAX:+49 (0) 228 - 73-1889

E-Mail: [EMAIL PROTECTED]
Web:http://www.coffee.uni-bonn.de
http://www.zef.de
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] howto draw amount of points features of one layer depending on scale

2008-08-26 Thread Nils Zierath

Dear list,
I got a layer with gps points. On the largest scale of my map the symbols for points 
overlap and are not distinguishable from one another since they are too close together.


Is it possible to tell mapserver to draw only that many of the points/symbols that do 
not overlap, so that more points will be shown the more I zoom into the map?


Thank you,
Nils

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


[mapserver-users] [mapserver] Java - PostGIS - Quoting issue in SQL request

2008-08-26 Thread julien

Hello,

I am developing an interface for a PostreSQL/PostGIS (v8.2) database 
using Mapserver (v 5.2.0) and Java (v6.0).
I obtained some nice maps using a basic SQL query, inserted into the 
mapfile.


But as soon as I tried to _use some simple quote *'* or *\'*_, the 
server cannot draw the layer and report the following error :


java.lang.UnknownError: msPOSTGISLayerRetrievePK(): Query error. Error 
executing POSTGIS statement (msPOSTGISLayerRetrievePK():select attname from 
pg_attribute, pg_constraint, pg_class where pg_constraint.conrelid = 
pg_class.oid and pg_class.oid = pg_attribute.attrelid and pg_constraint.contype 
= 'p' and pg_constraint.conkey[1] = pg_attribute.attnum and pg_class.relname = 
'/*REQUEST REMOVED*/' and pg_table_is_visible(pg_class.oid) and 
pg_constraint.conkey[2] is null
edu.umn.gis.mapscript.mapscriptJNI.layerObj_draw(Native Method)
edu.umn.gis.mapscript.layerObj.draw(layerObj.java:472)
fr.ird.remige.bean.MapFileBean$layerItemClass.draw(MapFileBean.java:617)
fr.ird.remige.bean.MapFileBean.draw(MapFileBean.java:1105)


REQUEST REMOVED was something like :

g_carre5 from (select distinct g_carre5 from carre 
inner join date using (id_date)
inner join country using (id_country) 
WHERE v_date BETWEEN 2000 AND 2001 AND _*l_country='France'*_

group by g_carre5) as foo

The previous request, which was working, was :

g_carre5 from (select distinct g_carre5 from carre 
inner join date using (id_date)
inner join country using (id_country) 
WHERE v_date BETWEEN 2000 AND 2001 AND _*v_country=1*_

group by g_carre5) as foo

_
Table country :_
id_country serial primary key
v_country numeric(4)
l_country varchar(12)

And first line is id_country = 1, v_country = 1, l_country = France.

One strange thing is that, when I am using a mapfile script on my 
computer (not on the server) and transform it into an image file with 
*shp2img* (shell command), both requests are working. Moreover, both 
requests are also working with SQL command, when logged into the database.


In Java, the string containing the request is : "g_carre5 from (select 
distinct g_carre5 from carre inner join date using (id_date) inner join 
country using (id_country) WHERE v_date BETWEEN 2000 AND 2001 AND 
l_country=\'France\' group by g_carre5) as foo".


I also tried to replace *\' *by *\"*, and the expected error /*column 
"France" does not exist*/ was reported, which shows that Libmapscript.so 
translated *\"* correctly.


I do not understand why there is this quoting issue. Does somebody have 
ever dealt with something like that?


Julien

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


Re: [mapserver-users] Apache can't start on windows

2008-08-26 Thread Jeff McKenna
This is issue was first reported on August 14th 
(http://www.nabble.com/apache-does-not-start-(ms4w-Apache-conf-httpd.conf)-td18977162.html) 
and to fix it you need to comment the line that Bart mentioned and 
restart Apache.  Another option is that you uninstall MS4W and go back 
to the downloads page and re-download it, since this issue was fixed on 
the 14th.  Hint: always use the commandline to restart Apache 
(/ms4w/restart-apache.bat) so you can see the messages that Apache 
reports, otherwise you will get a "black screen" that flashes quickly 
when you click on it directly.


Also, please note that MS4W does have its own mailing list for reporting 
issues such as these (join at: 
http://lists.maptools.org/mailman/listinfo/ms4w-users).


thanks.

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



helen wrote:

thanks for the fast response. i have tried to install the c++ runtime
(vcredist_x86.exe) but black screen comes and nothing appeared. i comment
the fcgid_module but the result is the same. please help me

thanks in advance

Helen 



bartvde wrote:

Possibly the Microsoft Runtime is not available on your system, see also
the following thread:

http://www.nabble.com/fastCgiServer-with-ms4w-td18348539.html

You can also just comment the following line in httpd.conf if you don't
need FastCGI:

#LoadModule fcgid_module modules/mod_fcgid.so

Best regards,
Bart


 Hi,

I have installed mapserver5.2 (Ms4W) on windows xp. but i can't get
started
the apache. i have tried with port 80,8080. but it is the same. it
display
on the system event the following messages

The Apache MS4W Web Server service terminated with service-specific error
1
(0x1).
The Apache MS4W Web Server service entered the stopped state. --info
The Apache MS4W Web Server service was successfully sent a start
control.--info
Generate Activation Context failed for C:\Program
Files\ms4w\Apache\modules\mod_fcgid.so. Reference error message: The
operation completed successfully.
Resolve Partial Assembly failed for Microsoft.VC90.CRT. Reference error
message: The referenced assembly is not installed on your system.
Dependent Assembly Microsoft.VC90.CRT could not be found and Last Error
was
The referenced assembly is not installed on your system.

pls pls , say something to these errors.

thanks

Helen






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


RE: [mapserver-users] Maximum number of layers?

2008-08-26 Thread Emerson, Gabe
Hi everyone,

After some more experimentation and looking at the server logs (we use
IIS), I tracked this down to the MS_MAX_CGI_PARAMS value in cgiutil:

cgiutil.c:
...
  while( post_data[0] ) {
if(m >= MS_MAX_CGI_PARAMS) {
  msIO_printf("Too many name/value pairs, aborting.\n");
  exit(0);
}
...

Cgiutil.h:
...
#define MS_MAX_CGI_PARAMS 100
...

So it looks like I'll have to recompile if I want to pass mapserv more
than 100 variables at a time. Is this wise? I imagine the limit is there
for a reason. My setup is already getting slow dealing with the amount
of data I have in it. I was hoping to have each of my layers
individually controllable, but maybe I'll have to stick with groups for
the sake of performance. 

Instead of giving each layer its own variable, would it be a feasible
workaround to combine all the active layer names into the single
variable "layers"? Again, I'm wondering what performance would be like
once I start passing hundreds of layer names in each cgi request. The
template scripting to put everything into "layers" could also slow
things down. 





-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Daniel
Morissette
Sent: Thursday, August 21, 2008 1:18 PM
To: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Maximum number of layers?

There is no static limit on the number of layers in a map with MapServer

5.2. It must be something in one of your layers that causes MapServer to

fail. Have a look at your Apache's error_log file, it may contain hints 
about the problem... you could also try enabling debug/logging and see 
if that triggers any useful info (see 
http://mapserver.gis.umn.edu/development/rfc/ms-rfc-28/)

Daniel

Emerson, Gabe wrote:
> Hello all,
> 
>  
> 
> I'm running into an error when I try to use more than 64 layers in my 
> map. I know the older versions of Mapserver could handle at least 100 
> layers, and I've read posts from people who currently use up to
several 
> hundred (I'm using v5.2.0) so I'm not sure what's going on.
> 
>  
> 
> The error I get is:
> 
>  
> 
> GCI Error
> 
> The specified CGI application misbehaved by not returning a complete
set 
> of HTTP headers.
> 
>  
> 
> I have a couple hundred layers that I'd like to show. I can live with
a 
> limit of 200-300 if necessary, but 64 seems rather on the low side.
The 
> majority are points with pixmap symbols, but I also have some aerials,

> road vectors, and polygon vectors. I've tried this with different 
> subsets of layers, so it doesn't seem to be any one layer or set of 
> layers in particular causing the problem.  64 seems to be the maximum
I 
> can have enabled no matter what type they are.
> 
>  
> 
> I initially thought this could be a problem with the rendering of the 
> pixmaps, but I've tried changing a few symbols to vectors with the
same 
> result. I also considered that the legend was becoming too large, but 
> when I have 64 layers on, adding one more causes the same error even
if 
> it's a layer with no legend entry.
> 
>  
> 
> I am using POST to pass the layers from plain old HTML, GET acts the 
> same way. As far as I can tell there's no hard limit for the
size/length 
> of text passed this way, and I'm not getting any size-exceeded errors.
> 
>  
> 
> Does anyone have any suggestions on this?
> 
>  
> 
> Thanks,
> 
>  
> 
> -Gabe Emerson
> 
>  
> 
>  
> 
>  
> 
> 
>

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


-- 
Daniel Morissette
http://www.mapgears.com/
___
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


Re: [mapserver-users] querybypoint

2008-08-26 Thread Steve Lime
Hi: This is the basic query method in MapServer. It allows you to intersect a 
point with one or more
layers. In MapScript there are layerObj and mapObj wrappers for it. To make a 
layer queryable via a
point you need to:

  1) define a presentation template, this could be as simple as TEMPLATE 'foo' 
if you don't intend to use it
  2) set a layer TOLERANCE value

That should do it.

Steve

>>> "ramya srinivasan" <[EMAIL PROTECTED]> 08/26/08 5:09 AM >>>
hi,
Can anyone tell me about QueryBypoint method and the faetures to be included
in the mapfile for this method to work

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


[mapserver-users] querybypoint a postgis db with php mapscript

2008-08-26 Thread Stefan Schwarzer

Hi there,

I guess there is something I am doing wrong. I think that since I  
moved from shapefiles to postgis, my query (bypoint/byrect) doesn't  
work anymore. Is there anything I have to change? I am kind of  
frustrated, because if looked around everywhere to find the problem;  
this issue has cost me hours over hours, but nothing in sight


My code looks like this:

//Set the layers status ON (b/c it might not be...)
$Layer -> set("status", 1);

$ImgWidth = $map -> width;
$ImgHeight = $map -> height;
$x = (($ptX / $ImgWidth) * ($ext3 - $ext1)) + $ext1;
$y = $ext4 - (($ptY / $ImgHeight) * ($ext4 - $ext2));

$x1 = (($extent_px0 / $ImgWidth) * ($ext3 - $ext1)) + $ext1;
$y1 = $ext4 - (($extent_px1 / $ImgHeight) * ($ext4 - $ext2));
$x2 = (($extent_px2 / $ImgWidth) * ($ext3 - $ext1)) + $ext1;
$y2 = $ext4 - (($extent_px3 / $ImgHeight) * ($ext4 - $ext2));

$click_pt = ms_newPointObj();
$click_pt -> setXY($x, $y);

$click_rt = ms_newRectObj();
$click_rt -> setextent($x1, $y2, $x2, $y1);


//Query the Map at the point clicked
if (!$imgbox)
$a = $map -> queryByPoint($click_pt, MS_MULTIPLE, -1);
else
$a = $map -> queryByRect($click_rt);






And my mapfile like this:

 LAYER
NAME floods_killed
STATUS ON
CONNECTIONTYPE postgis
CONNECTION 'user=xxx password=xxx dbname='
TYPE POLYGON
DATA "the_geom FROM
(
SELECT
c.the_geom,
c.name,
COALESCE(d.value, -) AS 
value,
d.id_country AS uid
FROM
floods_killed AS d
RIGHT JOIN
countries AS c ON c.id = 
d.id_country
WHERE
d.year_start = 2007 AND
c.id = d.id_country
) AS foo USING UNIQUE uid USING 
srid=4326"
 LABELITEM value
CLASSITEM 'value'
CLASS
NAME ''
EXPRESSION ([value]=-10001)
TEMPLATE 'empty space'
END  # CLASS
CLASS
NAME 'Units: Number of People'
EXPRESSION ([value]=-110003)
TEMPLATE 'units as title in legend'
END  # CLASS


Thanks for any hints!

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


Re: [mapserver-users] Apache can't start on windows

2008-08-26 Thread helen

thanks for the fast response. i have tried to install the c++ runtime
(vcredist_x86.exe) but black screen comes and nothing appeared. i comment
the fcgid_module but the result is the same. please help me

thanks in advance

Helen 


bartvde wrote:
> 
> Possibly the Microsoft Runtime is not available on your system, see also
> the following thread:
> 
> http://www.nabble.com/fastCgiServer-with-ms4w-td18348539.html
> 
> You can also just comment the following line in httpd.conf if you don't
> need FastCGI:
> 
> #LoadModule fcgid_module modules/mod_fcgid.so
> 
> Best regards,
> Bart
> 
>>
>>  Hi,
>>
>> I have installed mapserver5.2 (Ms4W) on windows xp. but i can't get
>> started
>> the apache. i have tried with port 80,8080. but it is the same. it
>> display
>> on the system event the following messages
>>
>> The Apache MS4W Web Server service terminated with service-specific error
>> 1
>> (0x1).
>> The Apache MS4W Web Server service entered the stopped state. --info
>> The Apache MS4W Web Server service was successfully sent a start
>> control.--info
>> Generate Activation Context failed for C:\Program
>> Files\ms4w\Apache\modules\mod_fcgid.so. Reference error message: The
>> operation completed successfully.
>> Resolve Partial Assembly failed for Microsoft.VC90.CRT. Reference error
>> message: The referenced assembly is not installed on your system.
>> Dependent Assembly Microsoft.VC90.CRT could not be found and Last Error
>> was
>> The referenced assembly is not installed on your system.
>>
>> pls pls , say something to these errors.
>>
>> thanks
>>
>> Helen
>>
>> --
>> View this message in context:
>> http://n2.nabble.com/Apache-can%27t-start-on-windows-tp783741p783741.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 mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> 
> 

-- 
View this message in context: 
http://n2.nabble.com/Apache-can%27t-start-on-windows-tp783741p783828.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] Apache can't start on windows

2008-08-26 Thread bartvde
Possibly the Microsoft Runtime is not available on your system, see also
the following thread:

http://www.nabble.com/fastCgiServer-with-ms4w-td18348539.html

You can also just comment the following line in httpd.conf if you don't
need FastCGI:

#LoadModule fcgid_module modules/mod_fcgid.so

Best regards,
Bart

>
>  Hi,
>
> I have installed mapserver5.2 (Ms4W) on windows xp. but i can't get
> started
> the apache. i have tried with port 80,8080. but it is the same. it display
> on the system event the following messages
>
> The Apache MS4W Web Server service terminated with service-specific error
> 1
> (0x1).
> The Apache MS4W Web Server service entered the stopped state. --info
> The Apache MS4W Web Server service was successfully sent a start
> control.--info
> Generate Activation Context failed for C:\Program
> Files\ms4w\Apache\modules\mod_fcgid.so. Reference error message: The
> operation completed successfully.
> Resolve Partial Assembly failed for Microsoft.VC90.CRT. Reference error
> message: The referenced assembly is not installed on your system.
> Dependent Assembly Microsoft.VC90.CRT could not be found and Last Error
> was
> The referenced assembly is not installed on your system.
>
> pls pls , say something to these errors.
>
> thanks
>
> Helen
>
> --
> View this message in context:
> http://n2.nabble.com/Apache-can%27t-start-on-windows-tp783741p783741.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 mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Apache can't start on windows

2008-08-26 Thread helen

 Hi,

I have installed mapserver5.2 (Ms4W) on windows xp. but i can't get started
the apache. i have tried with port 80,8080. but it is the same. it display
on the system event the following messages

The Apache MS4W Web Server service terminated with service-specific error 1
(0x1).
The Apache MS4W Web Server service entered the stopped state. --info
The Apache MS4W Web Server service was successfully sent a start
control.--info
Generate Activation Context failed for C:\Program
Files\ms4w\Apache\modules\mod_fcgid.so. Reference error message: The
operation completed successfully.
Resolve Partial Assembly failed for Microsoft.VC90.CRT. Reference error
message: The referenced assembly is not installed on your system.
Dependent Assembly Microsoft.VC90.CRT could not be found and Last Error was
The referenced assembly is not installed on your system.

pls pls , say something to these errors.

thanks

Helen

-- 
View this message in context: 
http://n2.nabble.com/Apache-can%27t-start-on-windows-tp783741p783741.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] Mapserver with postgresql postgis

2008-08-26 Thread Luke Stewart

Greetings,

I am completely new to mapserver I am trying to display percentage 
results as a wedge of a circle on a map.


I have the map data in shapefiles which display fine and the percentage 
data in a postgresql/postgis database.


I can't get anything to show from the postgis database.

I have found enough information to create a mapfile that doesn't throw 
an error from various sources but can't get wedges to display.


Does anyone know of a good tutorial preferably with some test data so I 
can check to see it is not my data that is causing problems?


Regards

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


[mapserver-users] querybypoint

2008-08-26 Thread ramya srinivasan
hi,
Can anyone tell me about QueryBypoint method and the faetures to be included
in the mapfile for this method to work
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Reg:How to implement Tile-based output for Mapserver in C#.net

2008-08-26 Thread Tamas Szekeres
Venkat,

I'm not totaly sure what you've mean't by 'tile-based output', however
if you would generate tiles by mapserver you might want to refer to an
existing project like ka-map and see how tile.php is working. It have
been implemented by using mapscipt php, but you can easily transform
the algorithm to mapscript C# if needed.

Best regards,

Tamas




2008/8/26 Venkat Rao Tammineni <[EMAIL PROTECTED]>:
> Dear All,
>
>
>
>I am planning to implement Tile-based output  for mapserver.But I don't
> now where to start. I am using C#.net.I have gone through Mapserver API.But
> I did not get any information about this.Please let me know if any one has
> implemented Tile-based output.
>
>
>
>  Please let me know.I am waiting for your great response.
>
>
>
>  Thanks and Regards,
>
> Venkat.
>
>
>
>
>
>
>
> ___
> 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