SV: [MAPSERVER-USERS] image in an output

2008-03-24 Thread James Lindstorff
If you look at

 http://mapserver.gis.umn.edu/docs/faq/copyright-layer

You should be able to use the SYMBOL keywork of the CLASS definition to insert 
your compass.

One problem though, if your images are not of a known size you can't relablily 
place labels or symbols except in the upper left corner of the image.

/james

-Oprindelig meddelelse-
Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På vegne af Kristian Thy
Sendt: 23. marts 2008 23:21
Til: mapserver-users@lists.osgeo.org
Emne: Re: [MAPSERVER-USERS] image in an output

On Sat, Mar 22, nickthegreek- wrote:
> fist in my output i try to insert in mapfile a image so as to display 
> a compass.. what i do is to try to put in mapfile a layer which shows 
> only this image, the compass... i haven't tried that up now..any help 
> would be great (what exactly to write in the layer)!!!

http://mapserver.gis.umn.edu/docs/faq/copyright-layer
http://mapserver.gis.umn.edu/docs/reference/mapfile/feature

However, you can't use a picture for that as far as I know ... but if you could 
make/find a font with a compass glyph, you should be able to insert that.

> and secondly ..i wanna a big help in how to insert my shapefiles in a 
> database.. the postgis does that? what i should know is if i should 
> put shp shx and dbf files in tables in postgis??

To load shapefiles into PostGIS you use the shp2pgsql utility distributed with 
PostGIS:

http://postgis.refractions.net/docs/ch04.html#id2670802

\\kristian
--
... et nemo ex vobis interrogat me: »Quo vadis?« 
___
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] PHP MapScript AGG

2008-03-24 Thread Ritesh Ambastha

I am also in search of answers regarding agg :)


Bryn Roberts-2 wrote:
> 
> Hello All,
> 
> I've been using MapServer and MapScript both for work and home projects
> for a couple of years now, and am delighted with the quality of maps
> produced by MapServer 5 using AGG.
> However, I have not been able to work out how to specify a map to be
> rendered using the AGG driver from within PHP MapScript.
> In my particular case I am creating a Map Object in PHP without a Map
> file.
> Everything works fine but the following two lines seem not to trigger AGG
> rendering (I have never tried setting output format options from within
> MapScript before and was unable to find any examples).
> .
> $map->outputformat->setOption("name", "AGG");
> $map->outputformat->setOption("imagemode", MS_IMAGEMODE_RGB);
> $map->outputformat->setOption("driver", "AGG/PNG");
> .
> Can somebody set me straight and point out where I am going wrong?
> Thanks in advance,
> Bryn
> 
> -
> This transmission is intended solely for the person or
> organisation to whom it is addressed.
> It is confidential and may contain legally privileged
> information. If you have received this transmission in
> error,you may not use, copy or distribute it.
> Please advise us by return e-mail or by phoning 61 3 62338203
> and immediately delete the transmission in its entirety.
> We will meet your reasonable expenses of notifying us.
> Despite our use of anti-virus software, Forestry Tasmania
> cannot guarantee that this transmission is virus-free.
> -
> 
> 
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> 
> 

-- 
View this message in context: 
http://www.nabble.com/PHP-MapScript-AGG-tp15727720p16251153.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] PHP MapScript AGG

2008-03-24 Thread Daniel Morissette

Bryn Roberts-2 wrote:

Everything works fine but the following two lines seem not to trigger AGG
rendering (I have never tried setting output format options from within
MapScript before and was unable to find any examples).
.
$map->outputformat->setOption("name", "AGG");
$map->outputformat->setOption("imagemode", MS_IMAGEMODE_RGB);
$map->outputformat->setOption("driver", "AGG/PNG");
.
Can somebody set me straight and point out where I am going wrong?


The setOption() method is for FORMATOPTIONs only. Name, imagemode and 
driver are properties of the OutputFormatObj class and are set using the 
set() method:


  $map->outputformat->set("name", "AGG");
  $map->outputformat->set("imagemode", MS_IMAGEMODE_RGB);
  $map->outputformat->set("driver", "AGG/PNG");


BTW, I believe a predefined "AGGPNG24" output format is available by 
default, so you could simply select it using:


  $map->selectOutputFormat("AGGPNG24");

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] Pan Mapserver C# asp.net

2008-03-24 Thread David Lowther
Venkat,

 

There are a couple samples out there. Paulo Corti has one, there is another
here: http://www.coordinatesolutions.com/Samples.aspx.  This one is in
VB.NET but as the code is pretty concise, a port to C# would be a simple
matter.

 

Hope that helps!

 

David Lowther

 

Coordinate Solutions, Inc.

904.471.5528 (Voice)

405.210.1721 (Mobile)

904.471.5548 (Fax)

www.coordinatesolutions.com

 

 

  _  

From: venkat [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 24, 2008 2:43 AM
To: [EMAIL PROTECTED]
Cc: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Pan Mapserver C# asp.net

 

Dear All,

 I am Developing a small application .I want to implement Pan tool in C#.can
any one help me.
I am waiting for your great response.

Advanced Thanks.

Regards
Venkat.

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


[mapserver-users] OT - Seeking a Good (Mapping-Related) JavaScript Forum

2008-03-24 Thread Bill Thoen
I've been intrigued by tools like dBox and in general using JavaScript 
for driving web-based mapping applications, but I need to learn more 
about the JavaScript side of things. Can anyone here recommend a good 
discussion group for JavaScript so I can ask some dumb questions?  Even 
better if you know of a *mapping* oriented JavaScript forum, because 
I've got some SVG questions too.


Searching Google came up with a number of JavaScript-L's, but if there's 
one that stands out I'd appreciate somebody pointing it out to me.


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


[mapserver-users] PHP/Mapscript: MapObj: Create obj from string instead of filename?

2008-03-24 Thread Matthew Pettis
Hi,

I've created a mapfile as a PHP/Smarty template file with a bunch of
template variables in it in order to manage my mapfiles more efficiently.
I'd like to create my PHP mapObj from the string the template returns,
rather than write the template result to a file and then have the mapObj
read in that file to create itself.  I'm checking the documentation, and it
appears that a mapObj can be created from a file.  Can someone confirm if
this is true?  If so (or not), does anyone know of an easier workaround than
write-to-file/read-in-file to do this?  I ask, because doing it this way
defeats some of the template caching speed enhancements that Smarty gives me
(this workaround adds a write-to/read-from disk to the chain of events).

By the way, if you do use PHP/Mapscript with a mapfile that can be
templated, Smarty is a pretty good solution, imho (modulo this problem).

Thanks,
Matt

-- 
It is from the wellspring of our despair and the places that we are broken
that we come to repair the world.
-- Murray Waas
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] OT - Seeking a Good (Mapping-Related) JavaScript Forum

2008-03-24 Thread Milo van der Linden

Hello Bill,

I have had some good success on the rails spinoff list;

mailto:[EMAIL PROTECTED]

They constantly discuss javascript and AJAX topics and are the only 
mailinglist as far as I know where rubber-banding is also discussed. 
Some of the OpenLayers developers are also on the list.


Kind regards,

Milo

Bill Thoen schreef:
I've been intrigued by tools like dBox and in general using JavaScript 
for driving web-based mapping applications, but I need to learn more 
about the JavaScript side of things. Can anyone here recommend a good 
discussion group for JavaScript so I can ask some dumb questions?  
Even better if you know of a *mapping* oriented JavaScript forum, 
because I've got some SVG questions too.


Searching Google came up with a number of JavaScript-L's, but if 
there's one that stands out I'd appreciate somebody pointing it out to 
me.


TIA,
- Bill Thoen
___
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] tile server

2008-03-24 Thread Milo van der Linden

Hello list,

a little while ago I read somewhere that it is possible to connect a 
tileserver via a virtual layer to mapserver. The trick was to store an 
xml file and create a layer definition in the mapfile that pointed to 
the tile server with information about the tilesize, zoomlevels and so on.


I can't seem to find it anymore...

Can anyone point me to a succesfull tileserver connection sample?

I don't mean running mapserver as tileserver, but attaching a layer from 
a tileserver.


Kind regards,

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