AW: [mapserver-users] GetFeatureInfo problem

2009-02-09 Thread Schönhammer , Herbert
Hi,

I observed a similar problem changing from mapserver 4.10.x to mapserver 5.x.x. 
I got the identical error message, but I'm using postgis.

Defining a wfs, you must define a DATA statement.

In your case something like this:

DATA 'KGEOM(?) from (SELECT BLOAZ, TAJOL, MERAR, ORT1X, ORT1Y, ORT2X, 
ORT2Y, KGEOM, TGEOM, SORSZAM, bgeom FROM blokk_a0 WHERE sorszam = 26 as foo 
using unique xxx using SRID='

In my case, the error occured, if the datatype of attribute xxx was a character 
datatype (like character varying). This is allowed by mapserver 4.x.x.

Mapserver 5.x.x expects a numeric datatype (int or serial or something like 
this) as datatype for the fid attribute.

So in my case changing the datatype of the fid attribute solved the problem. 
Perhaps this might ba a solution for you too.

regards
Herbert




>-Ursprüngliche Nachricht-
>Von: mapserver-users-boun...@lists.osgeo.org
>[mailto:mapserver-users-boun...@lists.osgeo.org] Im Auftrag
>von Balázs Bámer
>Gesendet: Montag, 9. Februar 2009 22:10
>An: mapserver-users@lists.osgeo.org
>Betreff: [mapserver-users] GetFeatureInfo problem
>
>
>Hi All,
>
>My OS is Ubuntu 8.10, Mapbender is 2.5, WMS is Mapserver 5.2.1 which
>seems all right, I have an experimental MapBender GUI:
>http://att-it.homelinux.net:22080/mapbender/
>user: mapbenderlist, pass: =]-[0p
>For non-Mapbender users, feature info is requested with the 'i' button
>for any feature.
>
>Feature info function hasn't worked for me yet. When I try red
>features (layer szerkesztheto), it seems OK but no info shown at all.
>Same for the point layer.
>For green ones (csakolv), an error message is returned:
>msOracleSpatialLayerGetShape(): OracleSpatial error. Error: ORA-00932:
>inconsistent datatypes: expected %s got %s
> . Query statement: SELECT BLOAZ, TAJOL, MERAR, ORT1X, ORT1Y, ORT2X,
>ORT2Y, KGEOM, TGEOM, SORSZAM, bgeom FROM blokk_a0 WHERE sorszam = 26
>.Check your data statement.
>Which, however, works in SQL Developer. The above message is shown
>also in Mapserver log. You can see my map settings here:
>http://att-it.homelinux.net:22080/cgi-bin/spatial?SERVICE=WMS&V
ERSION=1.1.1&REQUEST=GetCapabilities

What goes wrong for the error and the nothing-shown case?

thank you in advance.
Best regards: Balázs Bámer
___
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] Map File for Open Street Map symbology

2009-02-09 Thread boesiii



Gregor Mosheh wrote:
> 
> Ooh, that'd be neat. If so, can someone post it to the Symbology 
> Exchange pages of the website's wiki? We do have one "google-style 
> streets" posting up there now.
> 

Gregor, I would like the find the "google style" and I looked on the
Symbology examples page and couldn't find it.  Could you point me in the
right direction.

-- 
View this message in context: 
http://n2.nabble.com/Map-File-for-Open-Street-Map-symbology-tp2099050p2300742.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] Clipping out unprojectable area?

2009-02-09 Thread Christopher Schmidt
On Mon, Feb 09, 2009 at 04:20:47PM -0800, Gregor at HostGIS wrote:
> >Alter your geometry DATA selection to be ST_Union(geom,
> >bbox_of_projection)?  
> 
> Not sure I get you. I see that union would trim to a square. What would 
> be the effective box of a given projection?

Depends n the projection. The data is stored in the EPSG database, and
exposed in a human readable form on spatialreference.org: if you need to
support any projection, then you'll have to keep a copy of the epsg
database handy for yourself.

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


Re: [mapserver-users] Clipping out unprojectable area?

2009-02-09 Thread Gregor at HostGIS

Alter your geometry DATA selection to be ST_Union(geom,
bbox_of_projection)?  


Not sure I get you. I see that union would trim to a square. What would 
be the effective box of a given projection?


--
Gregor Mosheh / Greg AllensworthBS, A+, Network+, Security+, Server+
System Administrator, Lead Programmer
HostGIS development & hosting services, http://www.HostGIS.com/

"Remember that no one cares if you can back up,
 only if you can restore." - AMANDA
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Clipping out unprojectable area?

2009-02-09 Thread Christopher Schmidt
On Mon, Feb 09, 2009 at 02:36:37PM -0800, Gregor at HostGIS wrote:
> Hey guys. This picture says the first 1000 words:
> http://maps.hostgis.com/gregor/cg-esri-compare.jpg
> 
> In this case it's a UTM projection for South America, and they're zoomed 
> out inappropriately, so the rest of the world looks ugly.
> 
> The client's request, is whether MapServer has a mechanism for clipping 
> out the area of the requested bbox which would look too gnarly given the 
> projection.
> 
> The application is in PHP and uses PostGIS, so solutions at either of 
> those levels would also be welcome.

Alter your geometry DATA selection to be ST_Union(geom,
bbox_of_projection)?  

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


[mapserver-users] Problem with spatial query

2009-02-09 Thread Bistrais, Bob
This message is also posted to the Ka-Map users board, but I'm also
posting here because it pertains to PHP MapScript...

I've been customizing some of the Ka-Map Search code.  These are
modifications of the kaSearch .php and .js.  I have a tool that allows a
user to enter a parcel number into a text box, and zoom to that parcel
automatically.  That part of the process works.  I can get the extent of
the selected parcel and the map will zoom to it. 

Here's where I'm having trouble- now that I have the extent of the
desired parcel, I would like to automatically run a query a zoning
layer, and return the zoning polygons that the selected parcel
intersects.  I tried Query by Point, Rectangle, and Shape, I'm sure the
coordinates area valid, but when I run the tool, it returns zone
polygons from an area far away from where I am querying.  It doesn't
even seem to matter what parcel I use for input- it always returns the
same zoning polygons.  As a matter of fact, it looks as though it's
returning results for the same poly, over and over again.  In any case,
it's definitely far from the selected parcel polygon.

I've pasted some code below.  Does anyone have any suggestions?

Thanks,
Bob

This code is part of my kaSearchParcel.php, which selects a parcel and
zooms to it.  The code below is the query that tries to return the
intersecting zoning polygons:


$zoneLayer = $oMap->getLayer(3);
//Layer 3 is the zoning data
$oMap->preparequery();

$results = @$oMap->queryByShape($oShape);//$oShape is
the parcel that was selected earlier in the php file

if ($results == MS_SUCCESS){
$r = $zoneLayer->getNumResults();
for ($d=0; $d<$r; $d++) {
$zoneLayer->open();
  $result = $zoneLayer->getResult(0);
echo $r . " results found";
 
  $shape = $zoneLayer->getFeature($result->shapeIndex,
$result->tileindex);
  foreach ($shape->values as $key => $value) {
echo $key. " = " .$value . "index =" .$result->shapeIndex .
"";
  }
}

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


[mapserver-users] Clipping out unprojectable area?

2009-02-09 Thread Gregor at HostGIS

Hey guys. This picture says the first 1000 words:
http://maps.hostgis.com/gregor/cg-esri-compare.jpg

In this case it's a UTM projection for South America, and they're zoomed 
out inappropriately, so the rest of the world looks ugly.


The client's request, is whether MapServer has a mechanism for clipping 
out the area of the requested bbox which would look too gnarly given the 
projection.


The application is in PHP and uses PostGIS, so solutions at either of 
those levels would also be welcome.


--
Gregor Mosheh / Greg AllensworthBS, A+, Network+, Security+, Server+
System Administrator, Lead Programmer
HostGIS development & hosting services, http://www.HostGIS.com/

"Remember that no one cares if you can back up,
 only if you can restore." - AMANDA
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] GetFeatureInfo problem

2009-02-09 Thread Balázs Bámer
Hi All,

My OS is Ubuntu 8.10, Mapbender is 2.5, WMS is Mapserver 5.2.1 which
seems all right, I have an experimental MapBender GUI:
http://att-it.homelinux.net:22080/mapbender/
user: mapbenderlist, pass: =]-[0p
For non-Mapbender users, feature info is requested with the 'i' button
for any feature.

Feature info function hasn't worked for me yet. When I try red
features (layer szerkesztheto), it seems OK but no info shown at all.
Same for the point layer.
For green ones (csakolv), an error message is returned:
msOracleSpatialLayerGetShape(): OracleSpatial error. Error: ORA-00932:
inconsistent datatypes: expected %s got %s
 . Query statement: SELECT BLOAZ, TAJOL, MERAR, ORT1X, ORT1Y, ORT2X,
ORT2Y, KGEOM, TGEOM, SORSZAM, bgeom FROM blokk_a0 WHERE sorszam = 26
.Check your data statement.
Which, however, works in SQL Developer. The above message is shown
also in Mapserver log. You can see my map settings here:
http://att-it.homelinux.net:22080/cgi-bin/spatial?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities

What goes wrong for the error and the nothing-shown case?

thank you in advance.
Best regards: Balázs Bámer
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] newbie mapserver question

2009-02-09 Thread Jeff McKenna

new2ms4w wrote:


Also, can someone point to the Perl-Mapscript binaries for mapserver. I'm
currently using MS4W software which doesn't include them. 


You might also want to glance at the PerlMapScript wiki pages:

http://trac.osgeo.org/mapserver/wiki/PerlMapScript

-jeff



--
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] Problems with MapScript and setProjection

2009-02-09 Thread Tim Wood
Tom, that PPT linked from your example is filled with good stuff.  
Anyway, I took your example and did some minor changes to make it work 
with mapscript as Fedora installs it and my data. Then I added the 
ability to turn projection on & off. With the projection off, everything 
works great. But, I'm still getting a blank image with the projection 
turned on. If anyone has any pointers on what's wrong with the code 
(below) I'd appreciate it.


Tim Wood

-
$shape_path = "$base_path/data/zcta/zt08_d00_shp/"; // goofy path 
I'm too lazy to fix
$shape_file = "gfsa000b06a_e";  // works with or 
w/o the extension

$shape_file_projection = "+proj=longlat +datum=NAD83";

// The Extents (area) I want in latitude, longitude (Canada)
list( $ex0, $ex1, $ex2, $ex3 ) = array(-140, 40, -50, 55 );

// Describe the rest of my output
$output_projection = '';
$output_projection = "+proj=tcc +lon_0=90w +ellps=GRS80";
$output_file_rel = "output/index2.png";
$output_file_path = "$base_path/$output_file_rel";
list($output_width, $output_height ) = array( 600, 500 );



// Load MapScript extension
if (!extension_loaded("MapScript"))  dl('php_mapscript.'.PHP_SHLIB_SUFFIX);

// add map
$map = ms_newMapObj( $base_map );

// tdw temp
$map->setExtent( $ex0, $ex1, $ex2, $ex3 );

// Set the shapepath
$map->set( 'shapepath', $shape_path );
// Set the output format and size
$map->selectOutputFormat( 'png' );
$map->setSize( $output_width, $output_height );

// add new layer to map
$layer = ms_newLayerObj($map);
$layer->set("name", "foo");
$layer->set("status", MS_ON);
$layer->set("data", $shape_file );
$layer->set("type", MS_SHAPE_POLYGON );
$layer->setProjection( $shape_file_projection );

// This line hides a bunch of errors that appear iff $output_projection 
is set

$layer->set("template", "ttt");
$layer->set("dump", "true");

// add new class to new layer
$class = ms_newClassObj($layer);
$class->set("name", "foo");

// add new style to new class
$style = ms_newStyleObj($class);
$style->color->setRGB(255, 0, 0);
$style->outlinecolor->setRGB( 128,128,128 );

if( $output_projection != '' ) {   // Project and Draw
   // create new rect to query against the new layer
   $rect = ms_newRectObj();
   $rect->setExtent( $ex0, $ex1, $ex2, $ex3 );

   // query new layer
   $layer->queryByRect( $rect );
   $map->queryByRect( $rect );

   // set projection of output map
   $map->setProjection($output_projection, MS_TRUE);

   // draw
   $image = $map->drawQuery();
} else {  // Just draw the map
   // draw
   $image = $map->draw();
}

// Save the image
$image->saveImage( $output_file_path );

?>


   


-


Kralidis,Tom [Ontario] wrote:

I've added a small example at:

http://trac.osgeo.org/mapserver/wiki/PHPMapscriptAddLayerQueryReproject

Hope this helps.

..Tom



-Original Message-
From: mapserver-users-boun...@lists.osgeo.org on behalf of Tim Wood
Sent: Sat 07-Feb-09 22:55
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Problems with MapScript and setProjection
 
I've been round and round with setProjection in MapScript and 
setProjection today. I either get the infamous blank image  or the image 
returns in the same proportions as the original lat/long data. Proj 
seems to be (at least partially) working because if I forget something 
like +ellps=[blah blah], it throws an error.


I'd like to look at a simple php mapscript example of creating a map, 
adding a layer, adding something to that layer (e.g. my a simple query 
against a lat/long shapefile) and then project that another way (tmerc, 
lcc, whatever). But, I have yet to find one. Can someone share a working 
example or know of one on the web?


Tim Wood



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


Re: [mapserver-users] symbol problem

2009-02-09 Thread Valeria Muñoz
thanks for everything. i changed my mapserver version to 5.2.x and works.

RG

2009/2/9 Jeff McKenna 

> thomas bonfort wrote:
>
>> upgrading to 5.2.x should fix this.
>>
>
> ms4w version 2.3.1 is what you would need then.
>
> -jeff
>
>
>
>
> --
> 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
>
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] symbol problem

2009-02-09 Thread Valeria Muñoz
hi thomas

in december i did not use AGG/PNG configuration. now my problem is "AGG/PNG
"

RG

2009/2/9 thomas bonfort 

> upgrading to 5.2.x should fix this.
> I'm surprised you're having this problem again as you posted the same
> message in december and noted that you had solved the problem.
>
> regards,
>
> --
> thomas
>
>
> On Mon, Feb 9, 2009 at 18:34, Valeria Muñoz  wrote:
> > mapserver version is 5.0.2 .
> >
> > RG
> >
> > 2009/2/9 Fawcett, David 
> >>
> >> Valeria,
> >>
> >> It would be useful if you provided more information.  What version of
> >> MapServer are you using?  What were you expecting to see?
> >> Because you are setting your symbol angle to 0, I am guessing that you
> >> want all of the arrows to point to the top of the map.
> >>
> >> I am aware of a bug in AGG rendering where TrueType symbols are not
> >> corrrectly rotated (fixed in trunk), but I haven't seen a problem with
> >> pixmap symbols.
> >>
> >> In the symbol block of your layer, try commenting out the SIZE property.
> >> I think that you really just want your pixmap symbol to be displayed in
> its
> >> native size.
> >>
> >> Also, in your symbol definition at the end of your map file, try
> changing
> >> the value of GAP from -50 to 50.
> >>
> >> David.
> >>
> >>   -Original Message-
> >> From: mapserver-users-boun...@lists.osgeo.org
> >> [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Valeria
> Muñoz
> >> Sent: Monday, February 09, 2009 6:39 AM
> >> To: mapserver-users
> >> Subject: [mapserver-users] symbol problem
> >>
> >> Hi
> >> I have problems with displaying symbols,I can not give the correct
> >> orientation-... do you know why does not work with this configuration?
> >> attached image of my problem
> >>
> >> OUTPUTFORMAT
> >>NAME png
> >>DRIVER "AGG/PNG"
> >>MIMETYPE "image/png"
> >>IMAGEMODE RGB #RGBA transparente
> >>EXTENSION "png"
> >>FORMATOPTION "TRANSPARENT=OFF"
> >>FORMATOPTION "INTERLACE=ON"
> >> END
> >> LAYER
> >>   NAME 'calle'
> >>   MAXSCALE 5000
> >>   TYPE LINE
> >>   DATA 'calle.shp'
> >>   METADATA
> >> 'wms_title' 'calle'
> >>   END
> >>   STATUS DEFAULT
> >>   TRANSPARENCY 100
> >>   PROJECTION
> >>   'proj=longlat'
> >>   'ellps=WGS84'
> >>   'datum=WGS84'
> >>   'no_defs'
> >>   ''
> >>   END
> >>   #LABELITEM 'ONEWAY'
> >>   CLASS
> >>EXPRESSION  ('[HWYLEVEL]' = '4' and '[ONEWAY]'='0')
> >>
> >>#TEXT (<->)
> >>  #NAME 'calle'
> >>  STYLE
> >> SYMBOL 'flecha_ambos'
> >>  SIZE 13
> >>  ANGLE 0
> >>  #OUTLINECOLOR 161 189 196
> >>  #COLOR 0 0 0
> >>END
> >>  LABEL
> >>  TYPE truetype
> >>  FONT 'georgia'
> >>  SIZE 6
> >>  ANTIALIAS TRUE
> >>  COLOR 156 0 0
> >>  ANGLE FOLLOW
> >>  #MINDISTANCE -1
> >>  #MINFEATURESIZE -1
> >>  OFFSET 5 0
> >>  FORCE FALSE
> >>POSITION CC
> >>  BUFFER 10
> >>  PARTIALS FALSE
> >>  END
> >>   END
> >>  END
> >>
> >>
> >>   SYMBOL
> >>NAME "flecha_ambos"
> >>TYPE PIXMAP
> >>IMAGE
> >> "C:/ms4w/Apache/htdocs/mapFile/mapas/etc/icons/arrow_left_right.png"
> >>GAP -50
> >>   END
> >>
> >>
> >> RG
> >
> > ___
> > 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] symbol problem

2009-02-09 Thread Jeff McKenna

thomas bonfort wrote:

upgrading to 5.2.x should fix this.


ms4w version 2.3.1 is what you would need then.

-jeff




--
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] symbol problem

2009-02-09 Thread Valeria Muñoz
David

 I make the changes and does not works

RG
2009/2/9 Fawcett, David 

>  My assumption was that the problem was likely only with AGG rendering.
>
> Please try the suggestions that I made in my last message and let me know
> how they work, particularly setting the GAP value to a positive number.
>
> David.
>
>  -Original Message-
> *From:* mapserver-users-boun...@lists.osgeo.org [mailto:
> mapserver-users-boun...@lists.osgeo.org] *On Behalf Of *Valeria Muñoz
>  *Sent:* Monday, February 09, 2009 11:26 AM
> *To:* Fawcett, David
> *Cc:* mapserver-users
> *Subject:* Re: [mapserver-users] symbol problem
>
>   hi david..
>
>   If i change the "OUTPUTFORMAT"configuration to:
> OUTPUTFORMAT
> NAME gif
> DRIVER 'GD/GIF'
> MIMETYPE 'image/gif'
> #IMAGEMODE PC256
> EXTENSION 'gif'
>   END
>
>  works... i thinks is a problem of AGG
>
> RG
>
> 2009/2/9 Fawcett, David 
>
>>  Valeria,
>>
>> It would be useful if you provided more information.  What version of
>> MapServer are you using?  What were you expecting to see?
>> Because you are setting your symbol angle to 0, I am guessing that you
>> want all of the arrows to point to the top of the map.
>>
>> I am aware of a bug in AGG rendering where TrueType symbols are not
>> corrrectly rotated (fixed in trunk), but I haven't seen a problem with
>> pixmap symbols.
>>
>> In the symbol block of your layer, try commenting out the SIZE property.
>> I think that you really just want your pixmap symbol to be displayed in its
>> native size.
>>
>> Also, in your symbol definition at the end of your map file, try changing
>> the value of GAP from -50 to 50.
>>
>> David.
>>
>>   -Original Message-
>> *From:* mapserver-users-boun...@lists.osgeo.org [mailto:
>> mapserver-users-boun...@lists.osgeo.org] *On Behalf Of *Valeria Muñoz
>> *Sent:* Monday, February 09, 2009 6:39 AM
>> *To:* mapserver-users
>> *Subject:* [mapserver-users] symbol problem
>>
>>   Hi
>> I have problems with displaying symbols,I can not give the correct
>> orientation-... do you know why does not work with this configuration?
>> attached image of my problem
>>
>> OUTPUTFORMAT
>>*NAME png
>>DRIVER "AGG/PNG"*
>>MIMETYPE "image/png"
>>IMAGEMODE RGB #RGBA transparente
>>EXTENSION "png"
>>FORMATOPTION "TRANSPARENT=OFF"
>>FORMATOPTION "INTERLACE=ON"
>> END
>>
>> LAYER
>>   NAME 'calle'
>>   MAXSCALE 5000
>>   TYPE LINE
>>   DATA 'calle.shp'
>>   METADATA
>> 'wms_title' 'calle'
>>   END
>>   STATUS DEFAULT
>>   TRANSPARENCY 100
>>   PROJECTION
>>   'proj=longlat'
>>   'ellps=WGS84'
>>   'datum=WGS84'
>>   'no_defs'
>>   ''
>>   END
>>   #LABELITEM 'ONEWAY'
>>   CLASS
>>EXPRESSION  ('[HWYLEVEL]' = '4' and '[ONEWAY]'='0')
>>
>>#TEXT (<->)
>>  #NAME 'calle'
>>  STYLE
>> SYMBOL 'flecha_ambos'
>>  SIZE 13
>>  ANGLE 0
>>  #OUTLINECOLOR 161 189 196
>>  #COLOR 0 0 0
>>END
>>  LABEL
>>  TYPE truetype
>>  FONT 'georgia'
>>  SIZE 6
>>  ANTIALIAS TRUE
>>  COLOR 156 0 0
>>  ANGLE FOLLOW
>>  #MINDISTANCE -1
>>  #MINFEATURESIZE -1
>>  OFFSET 5 0
>>  FORCE FALSE
>>POSITION CC
>>  BUFFER 10
>>  PARTIALS FALSE
>>  END
>>   END
>>  END
>>
>>
>>   SYMBOL
>>NAME "flecha_ambos"
>>TYPE PIXMAP
>>IMAGE
>> "C:/ms4w/Apache/htdocs/mapFile/mapas/etc/icons/arrow_left_right.png"
>>GAP -50
>>   END
>>
>>
>> RG
>>
>>
>
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] symbol problem

2009-02-09 Thread thomas bonfort
upgrading to 5.2.x should fix this.
I'm surprised you're having this problem again as you posted the same
message in december and noted that you had solved the problem.

regards,

--
thomas


On Mon, Feb 9, 2009 at 18:34, Valeria Muñoz  wrote:
> mapserver version is 5.0.2 .
>
> RG
>
> 2009/2/9 Fawcett, David 
>>
>> Valeria,
>>
>> It would be useful if you provided more information.  What version of
>> MapServer are you using?  What were you expecting to see?
>> Because you are setting your symbol angle to 0, I am guessing that you
>> want all of the arrows to point to the top of the map.
>>
>> I am aware of a bug in AGG rendering where TrueType symbols are not
>> corrrectly rotated (fixed in trunk), but I haven't seen a problem with
>> pixmap symbols.
>>
>> In the symbol block of your layer, try commenting out the SIZE property.
>> I think that you really just want your pixmap symbol to be displayed in its
>> native size.
>>
>> Also, in your symbol definition at the end of your map file, try changing
>> the value of GAP from -50 to 50.
>>
>> David.
>>
>>   -Original Message-
>> From: mapserver-users-boun...@lists.osgeo.org
>> [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Valeria Muñoz
>> Sent: Monday, February 09, 2009 6:39 AM
>> To: mapserver-users
>> Subject: [mapserver-users] symbol problem
>>
>> Hi
>> I have problems with displaying symbols,I can not give the correct
>> orientation-... do you know why does not work with this configuration?
>> attached image of my problem
>>
>> OUTPUTFORMAT
>>NAME png
>>DRIVER "AGG/PNG"
>>MIMETYPE "image/png"
>>IMAGEMODE RGB #RGBA transparente
>>EXTENSION "png"
>>FORMATOPTION "TRANSPARENT=OFF"
>>FORMATOPTION "INTERLACE=ON"
>> END
>> LAYER
>>   NAME 'calle'
>>   MAXSCALE 5000
>>   TYPE LINE
>>   DATA 'calle.shp'
>>   METADATA
>> 'wms_title' 'calle'
>>   END
>>   STATUS DEFAULT
>>   TRANSPARENCY 100
>>   PROJECTION
>>   'proj=longlat'
>>   'ellps=WGS84'
>>   'datum=WGS84'
>>   'no_defs'
>>   ''
>>   END
>>   #LABELITEM 'ONEWAY'
>>   CLASS
>>EXPRESSION  ('[HWYLEVEL]' = '4' and '[ONEWAY]'='0')
>>
>>#TEXT (<->)
>>  #NAME 'calle'
>>  STYLE
>> SYMBOL 'flecha_ambos'
>>  SIZE 13
>>  ANGLE 0
>>  #OUTLINECOLOR 161 189 196
>>  #COLOR 0 0 0
>>END
>>  LABEL
>>  TYPE truetype
>>  FONT 'georgia'
>>  SIZE 6
>>  ANTIALIAS TRUE
>>  COLOR 156 0 0
>>  ANGLE FOLLOW
>>  #MINDISTANCE -1
>>  #MINFEATURESIZE -1
>>  OFFSET 5 0
>>  FORCE FALSE
>>POSITION CC
>>  BUFFER 10
>>  PARTIALS FALSE
>>  END
>>   END
>>  END
>>
>>
>>   SYMBOL
>>NAME "flecha_ambos"
>>TYPE PIXMAP
>>IMAGE
>> "C:/ms4w/Apache/htdocs/mapFile/mapas/etc/icons/arrow_left_right.png"
>>GAP -50
>>   END
>>
>>
>> RG
>
> ___
> 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] symbol problem

2009-02-09 Thread Fawcett, David
My assumption was that the problem was likely only with AGG rendering.  
 
Please try the suggestions that I made in my last message and let me know how 
they work, particularly setting the GAP value to a positive number.
 
David.

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Valeria Muñoz
Sent: Monday, February 09, 2009 11:26 AM
To: Fawcett, David
Cc: mapserver-users
Subject: Re: [mapserver-users] symbol problem


hi david..
 
  If i change the "OUTPUTFORMAT"configuration to:
OUTPUTFORMAT
NAME gif
DRIVER 'GD/GIF'
MIMETYPE 'image/gif'
#IMAGEMODE PC256
EXTENSION 'gif'
  END
 
works... i thinks is a problem of AGG
 
RG


2009/2/9 Fawcett, David 


Valeria, 
 
It would be useful if you provided more information.  What 
version of MapServer are you using?  What were you expecting to see?
Because you are setting your symbol angle to 0, I am guessing 
that you want all of the arrows to point to the top of the map.  
 
I am aware of a bug in AGG rendering where TrueType symbols are 
not corrrectly rotated (fixed in trunk), but I haven't seen a problem with 
pixmap symbols.  
 
In the symbol block of your layer, try commenting out the SIZE 
property.  I think that you really just want your pixmap symbol to be displayed 
in its native size.
 
Also, in your symbol definition at the end of your map file, 
try changing the value of GAP from -50 to 50.  
 

David.
 
  -Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Valeria Muñoz
Sent: Monday, February 09, 2009 6:39 AM
To: mapserver-users
Subject: [mapserver-users] symbol problem



Hi
I have problems with displaying symbols,I can not give 
the correct orientation-... do you know why does not work with this 
configuration?
attached image of my problem
 
OUTPUTFORMAT
   NAME png
   DRIVER "AGG/PNG"
   MIMETYPE "image/png"
   IMAGEMODE RGB #RGBA transparente
   EXTENSION "png"
   FORMATOPTION "TRANSPARENT=OFF"
   FORMATOPTION "INTERLACE=ON"
END

LAYER
  NAME 'calle'
  MAXSCALE 5000
  TYPE LINE
  DATA 'calle.shp'
  METADATA
'wms_title' 'calle'
  END
  STATUS DEFAULT
  TRANSPARENCY 100
  PROJECTION
  'proj=longlat'
  'ellps=WGS84'
  'datum=WGS84'
  'no_defs'
  ''
  END
  #LABELITEM 'ONEWAY'
  CLASS
   EXPRESSION  ('[HWYLEVEL]' = '4' and '[ONEWAY]'='0')
   
   #TEXT (<->)
 #NAME 'calle'  
 STYLE
SYMBOL 'flecha_ambos'
 SIZE 13  
 ANGLE 0
 #OUTLINECOLOR 161 189 196
 #COLOR 0 0 0
   END
 LABEL 
 TYPE truetype
 FONT 'georgia'
 SIZE 6
 ANTIALIAS TRUE
 COLOR 156 0 0 
 ANGLE FOLLOW
 #MINDISTANCE -1
 #MINFEATURESIZE -1
 OFFSET 5 0
 FORCE FALSE
   POSITION CC
 BUFFER 10
 PARTIALS FALSE 
 END 
  END
 END
 
 
  SYMBOL 
  

Re: [mapserver-users] symbol problem

2009-02-09 Thread Valeria Muñoz
mapserver version is 5.0.2 .

RG

2009/2/9 Fawcett, David 

>  Valeria,
>
> It would be useful if you provided more information.  What version of
> MapServer are you using?  What were you expecting to see?
> Because you are setting your symbol angle to 0, I am guessing that you want
> all of the arrows to point to the top of the map.
>
> I am aware of a bug in AGG rendering where TrueType symbols are not
> corrrectly rotated (fixed in trunk), but I haven't seen a problem with
> pixmap symbols.
>
> In the symbol block of your layer, try commenting out the SIZE property.  I
> think that you really just want your pixmap symbol to be displayed in its
> native size.
>
> Also, in your symbol definition at the end of your map file, try changing
> the value of GAP from -50 to 50.
>
> David.
>
>   -Original Message-
> *From:* mapserver-users-boun...@lists.osgeo.org [mailto:
> mapserver-users-boun...@lists.osgeo.org] *On Behalf Of *Valeria Muñoz
> *Sent:* Monday, February 09, 2009 6:39 AM
> *To:* mapserver-users
> *Subject:* [mapserver-users] symbol problem
>
>   Hi
> I have problems with displaying symbols,I can not give the correct
> orientation-... do you know why does not work with this configuration?
> attached image of my problem
>
> OUTPUTFORMAT
>*NAME png
>DRIVER "AGG/PNG"*
>MIMETYPE "image/png"
>IMAGEMODE RGB #RGBA transparente
>EXTENSION "png"
>FORMATOPTION "TRANSPARENT=OFF"
>FORMATOPTION "INTERLACE=ON"
> END
>
> LAYER
>   NAME 'calle'
>   MAXSCALE 5000
>   TYPE LINE
>   DATA 'calle.shp'
>   METADATA
> 'wms_title' 'calle'
>   END
>   STATUS DEFAULT
>   TRANSPARENCY 100
>   PROJECTION
>   'proj=longlat'
>   'ellps=WGS84'
>   'datum=WGS84'
>   'no_defs'
>   ''
>   END
>   #LABELITEM 'ONEWAY'
>   CLASS
>EXPRESSION  ('[HWYLEVEL]' = '4' and '[ONEWAY]'='0')
>
>#TEXT (<->)
>  #NAME 'calle'
>  STYLE
> SYMBOL 'flecha_ambos'
>  SIZE 13
>  ANGLE 0
>  #OUTLINECOLOR 161 189 196
>  #COLOR 0 0 0
>END
>  LABEL
>  TYPE truetype
>  FONT 'georgia'
>  SIZE 6
>  ANTIALIAS TRUE
>  COLOR 156 0 0
>  ANGLE FOLLOW
>  #MINDISTANCE -1
>  #MINFEATURESIZE -1
>  OFFSET 5 0
>  FORCE FALSE
>POSITION CC
>  BUFFER 10
>  PARTIALS FALSE
>  END
>   END
>  END
>
>
>   SYMBOL
>NAME "flecha_ambos"
>TYPE PIXMAP
>IMAGE
> "C:/ms4w/Apache/htdocs/mapFile/mapas/etc/icons/arrow_left_right.png"
>GAP -50
>   END
>
>
> RG
>
>
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] symbol problem

2009-02-09 Thread Valeria Muñoz
hi david..

  If i change the "OUTPUTFORMAT"configuration to:
OUTPUTFORMAT
NAME gif
DRIVER 'GD/GIF'
MIMETYPE 'image/gif'
#IMAGEMODE PC256
EXTENSION 'gif'
  END

 works... i thinks is a problem of AGG

RG

2009/2/9 Fawcett, David 

>  Valeria,
>
> It would be useful if you provided more information.  What version of
> MapServer are you using?  What were you expecting to see?
> Because you are setting your symbol angle to 0, I am guessing that you want
> all of the arrows to point to the top of the map.
>
> I am aware of a bug in AGG rendering where TrueType symbols are not
> corrrectly rotated (fixed in trunk), but I haven't seen a problem with
> pixmap symbols.
>
> In the symbol block of your layer, try commenting out the SIZE property.  I
> think that you really just want your pixmap symbol to be displayed in its
> native size.
>
> Also, in your symbol definition at the end of your map file, try changing
> the value of GAP from -50 to 50.
>
> David.
>
>   -Original Message-
> *From:* mapserver-users-boun...@lists.osgeo.org [mailto:
> mapserver-users-boun...@lists.osgeo.org] *On Behalf Of *Valeria Muñoz
> *Sent:* Monday, February 09, 2009 6:39 AM
> *To:* mapserver-users
> *Subject:* [mapserver-users] symbol problem
>
>   Hi
> I have problems with displaying symbols,I can not give the correct
> orientation-... do you know why does not work with this configuration?
> attached image of my problem
>
> OUTPUTFORMAT
>*NAME png
>DRIVER "AGG/PNG"*
>MIMETYPE "image/png"
>IMAGEMODE RGB #RGBA transparente
>EXTENSION "png"
>FORMATOPTION "TRANSPARENT=OFF"
>FORMATOPTION "INTERLACE=ON"
> END
>
> LAYER
>   NAME 'calle'
>   MAXSCALE 5000
>   TYPE LINE
>   DATA 'calle.shp'
>   METADATA
> 'wms_title' 'calle'
>   END
>   STATUS DEFAULT
>   TRANSPARENCY 100
>   PROJECTION
>   'proj=longlat'
>   'ellps=WGS84'
>   'datum=WGS84'
>   'no_defs'
>   ''
>   END
>   #LABELITEM 'ONEWAY'
>   CLASS
>EXPRESSION  ('[HWYLEVEL]' = '4' and '[ONEWAY]'='0')
>
>#TEXT (<->)
>  #NAME 'calle'
>  STYLE
> SYMBOL 'flecha_ambos'
>  SIZE 13
>  ANGLE 0
>  #OUTLINECOLOR 161 189 196
>  #COLOR 0 0 0
>END
>  LABEL
>  TYPE truetype
>  FONT 'georgia'
>  SIZE 6
>  ANTIALIAS TRUE
>  COLOR 156 0 0
>  ANGLE FOLLOW
>  #MINDISTANCE -1
>  #MINFEATURESIZE -1
>  OFFSET 5 0
>  FORCE FALSE
>POSITION CC
>  BUFFER 10
>  PARTIALS FALSE
>  END
>   END
>  END
>
>
>   SYMBOL
>NAME "flecha_ambos"
>TYPE PIXMAP
>IMAGE
> "C:/ms4w/Apache/htdocs/mapFile/mapas/etc/icons/arrow_left_right.png"
>GAP -50
>   END
>
>
> RG
>
>
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


RE: [mapserver-users] symbol problem

2009-02-09 Thread Fawcett, David
Valeria, 
 
It would be useful if you provided more information.  What version of MapServer 
are you using?  What were you expecting to see?
Because you are setting your symbol angle to 0, I am guessing that you want all 
of the arrows to point to the top of the map.  
 
I am aware of a bug in AGG rendering where TrueType symbols are not corrrectly 
rotated (fixed in trunk), but I haven't seen a problem with pixmap symbols.  
 
In the symbol block of your layer, try commenting out the SIZE property.  I 
think that you really just want your pixmap symbol to be displayed in its 
native size.
 
Also, in your symbol definition at the end of your map file, try changing the 
value of GAP from -50 to 50.  
 
David.
 
  -Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Valeria Muñoz
Sent: Monday, February 09, 2009 6:39 AM
To: mapserver-users
Subject: [mapserver-users] symbol problem



Hi
I have problems with displaying symbols,I can not give the correct 
orientation-... do you know why does not work with this configuration?
attached image of my problem
 
OUTPUTFORMAT
   NAME png
   DRIVER "AGG/PNG"
   MIMETYPE "image/png"
   IMAGEMODE RGB #RGBA transparente
   EXTENSION "png"
   FORMATOPTION "TRANSPARENT=OFF"
   FORMATOPTION "INTERLACE=ON"
END

LAYER
  NAME 'calle'
  MAXSCALE 5000
  TYPE LINE
  DATA 'calle.shp'
  METADATA
'wms_title' 'calle'
  END
  STATUS DEFAULT
  TRANSPARENCY 100
  PROJECTION
  'proj=longlat'
  'ellps=WGS84'
  'datum=WGS84'
  'no_defs'
  ''
  END
  #LABELITEM 'ONEWAY'
  CLASS
   EXPRESSION  ('[HWYLEVEL]' = '4' and '[ONEWAY]'='0')
   
   #TEXT (<->)
 #NAME 'calle'  
 STYLE
SYMBOL 'flecha_ambos'
 SIZE 13  
 ANGLE 0
 #OUTLINECOLOR 161 189 196
 #COLOR 0 0 0
   END
 LABEL 
 TYPE truetype
 FONT 'georgia'
 SIZE 6
 ANTIALIAS TRUE
 COLOR 156 0 0 
 ANGLE FOLLOW
 #MINDISTANCE -1
 #MINFEATURESIZE -1
 OFFSET 5 0
 FORCE FALSE
   POSITION CC
 BUFFER 10
 PARTIALS FALSE 
 END 
  END
 END
 
 
  SYMBOL 
   NAME "flecha_ambos" 
   TYPE PIXMAP 
   IMAGE 
"C:/ms4w/Apache/htdocs/mapFile/mapas/etc/icons/arrow_left_right.png"
   GAP -50
  END
 
 
RG

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


RE: [mapserver-users] line shapefiles

2009-02-09 Thread Kralidis,Tom [Ontario]
 

> -Original Message-
> From: mapserver-users-boun...@lists.osgeo.org 
> [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of 
> Donald F Caldwell
> Sent: Monday, 09 February 2009 10:42
> To: mapserver-users@lists.osgeo.org
> Subject: [mapserver-users] line shapefiles
> 
> 
> i am having trouble showing line data on mapserver
> 
> ##
> #
> # i create an 'arc' shapefile with one edge
> ##
> #
> 
> shpcreate nysf arc
> shpadd nysf -73.905235290527344 40.707859039306641 + 
> -122.380088806152344 37.795818328857422

Looks like you're adding points here for two records

> dbfcreate nysf -s ecity 32 -s wcity 32
> dbfadd nysf "New York" "San Francisco"
> 

This adds one record to the dbf, not two.

> # result - no line
> # my question is - do these tools support lines?
> # if so, how do i make them visible?

$ shpcreate foo arc
$ shpadd foo -75 45 -76 46
$ dbfcreate foo
$ dfcreate foo -s id 32 -s desc 32
$ dbfadd foo "line 1" "mydesc"
$ shpadd foo -80 33 -81 34
$ dbfadd foo "line 2" "mydesc2"
$ ogrinfo -al foo.shp
INFO: Open of `foo.shp'
  using driver `ESRI Shapefile' successful.

Layer name: foo
Geometry: Line String
Feature Count: 2
Extent: (-81.00, 33.00) - (-75.00, 46.00)
Layer SRS WKT:
(unknown)
id: String (32.0)
desc: String (32.0)
OGRFeature(foo):0
  id (String) = line 1
  desc (String) = mydesc
  LINESTRING (-75 45,-76 46)

OGRFeature(foo):1
  id (String) = line 2
  desc (String) = mydesc2
  LINESTRING (-80 33,-81 34)

You might want to check out the docs at
http://shapelib.maptools.org/shapelib-tools.html 

Hope this helps.

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


[mapserver-users] CGI (FastCGI) mode versus Mapscript?

2009-02-09 Thread Saka Royban
Hi all.
i couldn't get good answers from web seach.  i read more and more about 
CGI,FastCGI and dynamic pages like ASP,JSP, and  i don't know why mapserver 
shouldbe  used in CGI or FastCGI mode.
So, what is the difference of using mapserver in CGI mode or in dynamic pages 
via mapscript really, regarding performance and speed?



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


[mapserver-users] line shapefiles

2009-02-09 Thread Donald F Caldwell

i am having trouble showing line data on mapserver

###
# i create an 'arc' shapefile with one edge
###

shpcreate nysf arc
shpadd nysf -73.905235290527344 40.707859039306641 + -122.380088806152344 
37.795818328857422
dbfcreate nysf -s ecity 32 -s wcity 32
dbfadd nysf "New York" "San Francisco"

###
# i use this mapfile
###

MAP # Start of MAP object
  DEBUG ON
  SIZE 800 600
  EXTENT -122.380089 37.795818 -73.905235 40.707859
  IMAGECOLOR 255 255 255

  UNITS DD

  LAYER
NAME nysf
TYPE LINE
STATUS DEFAULT
DATA nysf
DEBUG 5
CLASS
  NAME 'edge'
  STYLE
COLOR 0 0 0
  END
END
  END

END # End of MAP object and map file

###
# i attempt to create an image with this line in it
###
shp2img -m nysf.map -i png -o nysf.png -s 800 600 -all_debug 9

###
# result - no line
# my question is - do these tools support lines?
# if so, how do i make them visible?
# thanks in advance


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


Re: [mapserver-users] newbie mapserver question

2009-02-09 Thread Steve Lime
Might want to look at OpenLayers too. Depending on the number of
objects you might be able to represent the objects using OL vector
features on top of a MapServer rendered roads layer. Or you could
render the objects in a second layer (generated on the server) using
MapServer and use OL to overlay them. You'd achieve better
performance that way.

Also, Perl/MapScript isn't available for Windows that I know of...

Steve

>>> new2ms4w  02/08/09 7:15 PM >>>

Hello Everyone,

I've very recently started working on a project to display some moving
objects on a road network in the map.
I would like to (dynamically) display moving objects on a road map.
I got the mapserver up and running on my machine and have read some
documentation from the mapserver website.
What I intend to do is add some points to a layer on top of the roads layer
and keep changing their position so that they appear to be constant moving
on the roads.
Has anyone done this kind of stuff before. I would like to know if I'm going
in the right direction...

Also, can someone point to the Perl-Mapscript binaries for mapserver. I'm
currently using MS4W software which doesn't include them. 


Thank you for your time.

~PN
-- 
View this message in context: 
http://n2.nabble.com/newbie-mapserver-question-tp2295097p2295097.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


Re: [mapserver-users] Re: Regarding Apache

2009-02-09 Thread Daniel Morissette

jim white wrote:


I have tried recently switching between cgi and DSO. Our site uses PHP 
MapScript 5.02 and what I have noticed is that with cgi it helps to 
insert flush() and/or ob_flush() in the script. However, running as DSO 
pages will not load and I have to comment out flush() and ob_flush().




On which OS and with which version of PHP? Can you please be more 
specific on "pages will not load"? Did you get a 500 (internal server 
error), an empty response, or no response at all (browser hangs)? Any 
hints in Apache's error_log when that happens? Does this happen even if 
you do not use any function from php_mapscript.so (or do you know which 
MapScript function triggers the issue)? Finally, do you have a short 
script that reproduces this?


Daniel
--
Daniel Morissette
http://www.mapgears.com/
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] newbie mapserver question

2009-02-09 Thread Derek Gilby

Hi How are things?

I know it is possible, although this website is for SVG it will give you an idea 
of what can be done, look at http://www.carto.net/


Derek

new2ms4w wrote:

Hello Everyone,

I've very recently started working on a project to display some moving
objects on a road network in the map.
I would like to (dynamically) display moving objects on a road map.
I got the mapserver up and running on my machine and have read some
documentation from the mapserver website.
What I intend to do is add some points to a layer on top of the roads layer
and keep changing their position so that they appear to be constant moving
on the roads.
Has anyone done this kind of stuff before. I would like to know if I'm going
in the right direction...

Also, can someone point to the Perl-Mapscript binaries for mapserver. I'm
currently using MS4W software which doesn't include them. 



Thank you for your time.

~PN





No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 8.0.233 / Virus Database: 270.10.19/1940 - Release Date: 02/07/09 13:39:00




--
Derek Gilby
30 Samuel Danial Drive
Eastern Passage, NS
B3G 1P7

902 404-2741

www.DerekGilby.org

** Propensity to think through/beyond the problem and provide possible options 
for a solution. **

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


[mapserver-users] symbol problem

2009-02-09 Thread Valeria Muñoz
Hi
I have problems with displaying symbols,I can not give the correct
orientation-... do you know why does not work with this configuration?
attached image of my problem

OUTPUTFORMAT
   *NAME png
   DRIVER "AGG/PNG"*
   MIMETYPE "image/png"
   IMAGEMODE RGB #RGBA transparente
   EXTENSION "png"
   FORMATOPTION "TRANSPARENT=OFF"
   FORMATOPTION "INTERLACE=ON"
END

LAYER
  NAME 'calle'
  MAXSCALE 5000
  TYPE LINE
  DATA 'calle.shp'
  METADATA
'wms_title' 'calle'
  END
  STATUS DEFAULT
  TRANSPARENCY 100
  PROJECTION
  'proj=longlat'
  'ellps=WGS84'
  'datum=WGS84'
  'no_defs'
  ''
  END
  #LABELITEM 'ONEWAY'
  CLASS
   EXPRESSION  ('[HWYLEVEL]' = '4' and '[ONEWAY]'='0')

   #TEXT (<->)
 #NAME 'calle'
 STYLE
SYMBOL 'flecha_ambos'
 SIZE 13
 ANGLE 0
 #OUTLINECOLOR 161 189 196
 #COLOR 0 0 0
   END
 LABEL
 TYPE truetype
 FONT 'georgia'
 SIZE 6
 ANTIALIAS TRUE
 COLOR 156 0 0
 ANGLE FOLLOW
 #MINDISTANCE -1
 #MINFEATURESIZE -1
 OFFSET 5 0
 FORCE FALSE
   POSITION CC
 BUFFER 10
 PARTIALS FALSE
 END
  END
 END


  SYMBOL
   NAME "flecha_ambos"
   TYPE PIXMAP
   IMAGE
"C:/ms4w/Apache/htdocs/mapFile/mapas/etc/icons/arrow_left_right.png"
   GAP -50
  END


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


Re: [mapserver-users] can't display a very big .TIF

2009-02-09 Thread bartvde
Have you created overviews using gdaladdo?

http://www.gdal.org/gdaladdo.html

Best regards,
Bart

> hi again,
>
> can someone help me out here, i can't display my my basemap because the
> size
> is too big. I've successfully merged my tiled TIFs if you still remember
> my previous
> post, but now my problem is i can't display them. Now the file's size is
> 1.03 GB
> with dimensions 16800 x 22000
>
> can anyone help me display this raster file as my basemap?
> thank you so much for helping...
>
>
>
>   ___
> 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] can't display a very big .TIF

2009-02-09 Thread MeLv1n wAuRaN
hi again,

can someone help me out here, i can't display my my basemap because the size
is too big. I've successfully merged my tiled TIFs if you still remember my 
previous
post, but now my problem is i can't display them. Now the file's size is 1.03 GB
with dimensions 16800 x 22000

can anyone help me display this raster file as my basemap?
thank you so much for helping...



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