Re: [mapserver-users] help: load a static map

2008-04-10 Thread Pietro Giannini
The Layer's STATUS is set to OFF, you must set on ON or DEFAULT to
activate it.

look here:
http://mapserver.gis.umn.edu/docs/reference/mapfile/layer.

Hope is useful.

ciao
pg


-- 
Pietro Giannini
Bytewise srl - Area GIS
41°50'38.58N 12°29'13.39E



On Mer, Aprile 9, 2008 17:47, [EMAIL PROTECTED] wrote:
 Hi
 I'm a student and I’m starting my first application of MapServer
 with my own data following the tutorial and I already have the
 following problem.

 I have a very simple  shape data  in
 geographic/WGS84 and also UTM/WGS84 format; I have picked the extension
 using ARCGIS and I have tried a static visualization of my map as it is
 shown in the first example of the tutorial.


 MAP
   IMAGETYPE  PNG
 #   EXTENT -97.348976 41.619778 -82.122902 49.385620  #geo
 states
  EXTENT 12.238976 41.619778 13.122902 49.385620
 #geo rieti
 #   EXTENT 73306.04 -295414.39 1501200.05
 614634.59   #laea states
 #   EXTENT 28.0 466.0 376000.0
 4735000.0 #UTM/WGS84 rieti
   SIZE   1000 1000

 SHAPEPATH  /ms4w/apps/marco/data
   IMAGECOLOR 255 255 255


 # Start of LAYER DEFINITIONS
 -
   LAYER # States polygon
 layer begins here
   NAME comuni
   DATA comuni_rieti_ll
   STATUS   OFF
   TYPE POLYGON

   CLASS
   NAME
 comuni

   STYLE
   COLOR232 232 232
   OUTLINECOLOR
 32 32 32
  END
 END
   END # States polygon layer ends here


 I
 have tried the following things:
 - load my data  using the geographic
 coordinates (and corresponding extension);
 - load my data using  the
 UTM/WGS84 coordinates (and corresponding extension);
 - read the data
 through  the html-page or entering the URL  (http://localhost/cgi-
 bin/mapserv.exe?map=/ms4w/apps/marco/htdocs/example1-1.
 maplayer=statesmode=map)

 I always don’t have any error, but I only
 see the window in which the data should be visualised.

 It’s looks
 like the extension is wrong, but  I have checked my shape with ArcGis
 and also with Ogrinfo ….
 INFO: Open of `comuni_rieti_ll.shp'

 using driver `ESRI Shapefile' successful.

 Layer name: comuni_rieti_ll
 Geometry: Polygon
 Feature Count: 73
 Extent: (12.436251, 42.089346) -
 (13.409627, 42.740986)
 Layer SRS WKT:
 GEOGCS[GCS_WGS_1984,
 DATUM
 [WGS_1984,
 SPHEROID[WGS_1984,6378137,298.257223563]],

 PRIMEM[Greenwich,0],
 UNIT[Degree,0.0174532925199433]]
 AREA:
 Real (15.3)
 PERIMETER: Real (15.3)
 COD_AMM: Integer (9.0)
 COMUNE:
 String (35.0)
 PROVINCIA: String (20.0)
 CS_15: Integer (2.0)
 COD_REG:
 Integer (3.0)
 COD_PRO: Integer (3.0)
 COD_COM: Integer (3.0)


 What can
 be wrong and what other  can be done to solve the problem?

 Can
 anybody, please, help me?

 Bye Marco


 ___
 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] SLD ignored / External Graphic ignored

2008-04-10 Thread Sicky

Hi Barend!

Thanks, this solved my problem! :-)
I knew it was fairly easy, but you find so much about that topic.

And great that there will be an error message implemented. It's annoying
when you have something which clearly doesn't work but you have absolutely
no idea why it isn't working

@Yewondwossen: Is there any planning on supporting SVGs as ExternalGraphics?
If so, please make it better than in GeoServer:
http://sicky.i-networx.de/temp/geoserv/geoserv_svg_probs.png 


Barend Köbben wrote:
 
 Hi,
 
 I never tried the external SVG graphics, but the SLD problem sounds very
 familiar. Almost always I find this kind of problem having not much to do
 with the SLDs themselves, but with TMP file settings. This is certainly
 more
 likely if you say sending the SLD it in SLD-BODY works.
 
 Using SLDs is dependent on the correct setting of the two settings
  IMAGEPATH  -- where the mapserver software puts the SLD and other
 temporary
 files 
  IMAGEURL -- where the web browser and other http services pick them up.
 
 Setting these incorrectly, and more importantly their security setting
 incorrrectly, will normally give no problems, but when using SLDs (and
 also
 in other cases, eg. when chaining Mapserver to external WMS and WFS
 services), they will make MS malfunction, but SILENTLY (ie. No error
 messages).
 
 Eg. in our set ups of a WMS with external SLD they are set as follows:
 
 For  a *nix setup ( MacOSX) with Mapserver CGI 'behind'  Apache:
 WEB
 IMAGEPATH /Users/kobben/Sites/ms_tmp/
 IMAGEURL http://localhost/~kobben/ms_tmp/;
 ##
 METADATA
[all your web metadata...]
 END #metadata
 END #web
 
 For a Win box with Mapserver CGI 'behind'  IIS:
   IMAGEPATH C:/tmp/ms_tmp/
   IMAGEURL http://geoserver.itc.nl/ms_tmp/;
 
 The IMAGEPATh is a directory that is reacheable by Mapserver at this real
 location (in this case expressed as Unix BSD path on my MacOSX or as  UNC
 path on Win) and that has read  write access set  for the Mapserver
 process. Eg. on the Winbox it should have write access for the anonymous
 system service account under which Mapserver runs (usually something like
 SERVERNAME\IWAM_SERVERNAME).
 
 You can test this by seeing if files with names like) are being created
 when
 you request the WMS with external SLD. If they are the IMAGEPATH celarly
 works. Then test if you can point a browser to the IMAGEURL and pick up
 the
 tmp file. If that worsk the IMAGEURL is also OK. Now it should work...
 
 Hope this helps.
 
 
 
 
 International Institute for Geo-Information Science and Earth Observation
 (ITC)
 Chamber of Commerce: 410 27 560
 
 E-mail disclaimer
 The information in this e-mail, including any attachments, is intended for
 the addressee only. If you are not the intended recipient, you are hereby
 notified that any disclosure, copying, distribution or action in relation
 to the content of this information is strictly prohibited. If you have
 received this e-mail by mistake, please delete the message and any
 attachment and inform the sender by return e-mail. ITC accepts no
 liability for any error or omission in the message content or for damage
 of any kind that may arise as a result of e-mail transmission.
 ___
 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/SLD-ignored---External-Graphic-ignored-tp16586209p16608571.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] JGW+JPG - TIFF

2008-04-10 Thread Janosch.Skrobek
Hello,

I have a set of orthophotos which are saved as JPG. Each picture has a
corresponding JGW file. Can I somehow implement these into a mapserver
layer? Or do I need to create georeferenced tiffs? If so, how can I
combine the JGW and JPGs into a tiff?


Thank you
Janosch



Diese E-Mail kann vertrauliche und/oder rechtlich geschützte Informationen 
enthalten.
Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten 
haben,
informieren Sie bitte sofort den Absender und vernichten Sie diese E-Mail. Das 
unerlaubte
Kopieren sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet. Der
rechtsverbindliche elektronische Schriftverkehr mit der Stadt Trier ist über 
diese
E-Mail-Adresse derzeit noch nicht möglich.



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


Re: [mapserver-users] JGW+JPG - TIFF

2008-04-10 Thread Carlo Pelliconi

Hi.
If you create a layer in the mapfile, with DATA set to your-raster.jpg, 
it automatically reads .jgw (it must have the same name of the jpg file) 
and users its informations for georeferencing it. Specify also TYPE 
raster and if you want MIN/MAXSCALE.
If you prefer tiff file, you must convert jpg in tif by means of a 
graphic editor and then translate .jgw in .tfw. It could request not 
only renaming the file, but also modify some coefficients defined inside 
the .jgw file (open it with notepad, it is simple text).


Hope this helps.
Bye

[EMAIL PROTECTED] ha scritto:

Hello,

I have a set of orthophotos which are saved as JPG. Each picture has a
corresponding JGW file. Can I somehow implement these into a mapserver
layer? Or do I need to create georeferenced tiffs? If so, how can I
combine the JGW and JPGs into a tiff?


Thank you
Janosch



Diese E-Mail kann vertrauliche und/oder rechtlich geschützte Informationen enthalten. 
Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, 
informieren Sie bitte sofort den Absender und vernichten Sie diese E-Mail. Das unerlaubte 
Kopieren sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet. Der 
rechtsverbindliche elektronische Schriftverkehr mit der Stadt Trier ist über diese 
E-Mail-Adresse derzeit noch nicht möglich.




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



  



--
ing. Carlo Pelliconi
[EMAIL PROTECTED]
SIS.TER S.p.A.
www.sis-ter.it
via Mentana, 10
40026 Imola (BO) Italy
cell+39 333 6375379
tel +39 0542 364034
fax +39 0542 612130

ATTENZIONE!
Questo documento è indirizzato esclusivamente al destinatario. Tutte le
informazioni ivi contenute, compresi eventuali allegati, sono soggette
a riservatezza secondo i termini del D.Lgs. 196/2003 in materia di
privacy e ne è proibita l'utilizzazione da parte di altri soggetti. Si 
ricorda che la diffusione l'utilizzo e/o la conservazione dei dati ricevuti per errore 
costituisce violazione di carattere penale ai sensi dell'art. 616 Codice penale 
(Violazione, sottrazione e soppressione di corrispondenza). Se avesse ricevuto per errore 
questo messaggio, La preghiamo cortesemente di contattare il mittente al più presto e di 
cancellare il messaggio subito dopo. Grazie.

ATTENTION!
This message is being sent from Sis.Ter S.p.A. and may contain information which is confidential or 
privileged. If you are not the intended recipient, please advise the sender immediately by reply 
e-mail and delete this message and any attachments without retaining a copy. Any unauthorized use 
of the content of this message is a breach of your duty to respect the confidentiality of the 
correspondence between other persons and can expose the responsible party to civil and/or criminal 
penalties (D.Lgs. 196/2003 Tutela della privacy e art. 616 Codice penale 
Violazione, sottrazione e soppressione di corrispondenza), and may constitute a more 
serious offence. Thanks.

ACHTUNG!
Dieses Dokument ist ausschließlich dem Empfänger vorbehalten. Die darin enthaltenen 
Informationen, auch jene in etwaigen Anlagen, gelten im Sinne des Dekrets Nr. 196/2003 in 
Sachen Privacy als streng vertraulich und dürfen von anderen Personen nicht 
verwende werden. Wer diese Mitteilung irrtümlicherweise erhält ist gebeten uns umgehend 
zu informieren und anschließend die Mitteilung zu vernichten. Vielen Dank.


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


Re: [mapserver-users] DGN

2008-04-10 Thread Frank Warmerdam

Alexandre Busquets Triola wrote:

Hello,

I'm inexperienced with mapserver,

I would like to load a dgn file, it has a text layer, and some line layers.

I can load this file into mapserver as layer, but i can't load the text 
Labels.


Somebody had do it anything like this?


Alexandre,

The vector access howto talks about DGN a bit.  I would suggest reviewing it.

Are these DGN v8 or newer files?  If so, they are unsupported.  But OGR does
support earlier dgn files.  DGN files are also supported for auto styling,
a mechanism to utilize the color, text, line width and such characteristics
when drawing features rather than having to explicitly control all this in
the map file using classes.  The fidelity of this autostyling is not great,
but gives an appearance similar to how the file might look in microstation.

Best regards,
--
---+--
I set the clouds in motion - turn up   | Frank Warmerdam, [EMAIL PROTECTED]
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush| President OSGeo, http://osgeo.org

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


[mapserver-users] Transparent gifs in Mapscript

2008-04-10 Thread Tom Price
In Mapscript 3.6, the saveImage method had a parameter that allowed the 
transparent color to be specified. 
   
  $img = $map-draw();
  $img-saveImage($imgfile, MS_GIF, hexdec('CC'), 0, 0);
   
  I'm porting to 4.8.2 and still discovering differences in the object model. 
The following lines seem to get me a gif, but how do I tell it which color is 
transparent?
   
  $map-selectOutputFormat('gif');
...
  $img = $map-draw();
  $img-saveImage($imgfile);

  Thanks for your help.

 __
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com ___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Re: flash swf output

2008-04-10 Thread Florin A.
The reason to have names for the buttons is so that the loader swf can
reference them with Action Script and change their color, position, etc...
This could be done even without having names, because at runtime the Flash
player assigns to each movie clip a name if it does not have one. These are
called 'instance1', 'instance2', 'instance3' etc...  These can be referenced
by Action Script.

Unfortunately, the buttons in the SWF output from MapServer can't be
referenced by ActionScript at all. Neither with the 'instance1' syntax, nor
with the new 'button212', 'button213', etc  names that are assigned to the
buttons with this fix. I am not sure why this is.

I've created a few Ming movies to test this.  Make a simple movie in MING
with two buttons. Don't give them names.  Then create a Flash movie with two
buttons named thebtn, and  one called loadming, a blank movie on the stage
called swfContainer, and  this actionscript which will load
ming_output.swf.

var mcLoader:MovieClipLoader = new MovieClipLoader();

thebtn.onRelease = function() {
for (var mcname in swfContainer) {
trace(mcname);
if (mcname == instance2) {
_root.swfContainer[mcname]._x += 10;
}
}
};
loadming.onRelease = function(){
mcLoader.loadClip(ming_output.swf, swfContainer);
}


If you load any Ming swf with this script, you'll be able to move 10 pixels
to the right anything in that swf called instance2.  If you load a MapServer
swf you won't be able to do this. All of the buttons in the swf will move 10
pixels to the right because   _root.swfContainer.instance1  returns a
reference to the parent _root.swfContainer  . I'm trying to look at the
mapswf.c code to see why this might be happening, but its over 3000 lines,
so it will be a while, unless anybody has some ideas.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] php/mapscript and OWS

2008-04-10 Thread ROBERT HOLLINGSWORTH
I tried your sequence on my mapfile and it worked.  My original code was 
missing this  at the bottom:

ms_iogetStdoutBufferBytes();

I'd been experimenting with  header(...) and ms_ioresethandlers()  but not 
necessarily at the same time, and without the Bytes func.  I need to go back 
and read the descriptions of these  ms_io funcs.

many thanks,
Robert

Yewondwossen Assefa [EMAIL PROTECTED] wrote: Robert,

  what does you php script looks like?  Quick test I did with a png 
output and works looks like this:

  request : 
http://localhost/msapps/wxs/test.php?SERVICE=WMSVeRsIoN=1.1.1Request=GetMapLAYERS=WorldGen_OutlineFORMAT=pngWIDTH=400HEIGHT=300SRS=EPSG:4326FORMAT=pngWIDTH=400HEIGHT=300STYLES=BBOX=-180.0,-90.0,180.0,90.0SLD=http://localhost/msapps/world_testdata/tests/sld_tests/sld_line_multi_filter.xml

test.php



dl(php_mapscript.dll);

$request = ms_newowsrequestobj();

$request-loadparams();

ms_ioinstallstdouttobuffer();

$oMap = ms_newMapobj(f:/msapps/world_testdata/map/world_testdata.map);

$oMap-owsdispatch($request);

$contenttype = ms_iostripstdoutbuffercontenttype();

//if ($contenttype == 'image/png')
header('Content-type: image/png');

ms_iogetStdoutBufferBytes();

ms_ioresethandlers();

?


Best Regards


ROBERT HOLLINGSWORTH wrote:
 Hello,
 I've loaded latest MS4W 2.x (therefore PHP 5.x)
  and am trying to verify Mapscript's
 OwsRequestObj and $mapobj-owsdispatch()
 on a fairly ordinary shp-based mapfile
 that works well where mapserv.exe is
 the WMS server.
 
 The requestobj seems healthy and
 owsdispatch seems successful on WMS
 GetCapabilities.  On a GetMap,
 owsdispatch is returning MS_SUCCESS,
 but all the image output formats are
 coming thru damaged or truncated in
 some way.  When running GetMap
 in a browser, there are corruption
 messages for PNG and GIF,
 while JPG displays as a very disturbed
 image that gdalinfo indicates is currupted.
 
 The docs suggest that owsdispatch() should
 be able to dump the image to the client without
 further manipulation, so I don't know what I
 might be missing.
 
 Or if my environment is somehow tainted from
 older MS4Ws (on PHP 4).  I uninstalled the old
 apache that I was using and installed the new
 MS4W in c:\ to be as generic as possible.
 
 Any ideas out there?
 
 thanks,
 Robert H.
 
 
 
 
 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users


-- 

Assefa Yewondwossen
Software Analyst

Email: [EMAIL PROTECTED]
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


[mapserver-users] Php mapscript manual

2008-04-10 Thread Paul Alarcon

Hello i want to make an interface in php but i dont know all the commands for 
this. Does anyone know where i can find a tutorial or manual for php mapscript ?
Thanks 

_
News, entertainment and everything you care about at Live.com. Get it now!
http://www.live.com/getstarted.aspx___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Tileindex and drawing order of tiles

2008-04-10 Thread Rahkonen Jukka

Hi, 

I started to wonder if it is be possible to define the drawing order of image 
tiles by tweaking with tileindex.  It might be of some use if, for example, 
there are recent overlapping images which would be fine to have always on top 
of older images.  Perhaps the tileindex shapefile could be sorted in some 
clever way?

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


Re: [mapserver-users] Tileindex and drawing order of tiles

2008-04-10 Thread Armin Burger

Jukka

if you have a column you can use for sorting you could rewrite the 
shapefile using the sortshp tool provided with mapserver. The problem 
might be how to add this field if you create the shapefile with 
gdaltindex. One could use a Perl/PHP/Python script to update a sort 
column in the shape dbf based on an information in another file (dbase, 
txt) or database.


Or if you anyway use Postgis you could put the tileindex in a Postgis 
table and define the DATA tag in the map file with an ORDER BY at the 
end. Also here you'd need to find a way to set the sort order in a column.


Armin


On 10/04/2008 21:32, Rahkonen Jukka wrote:
Hi, 


I started to wonder if it is be possible to define the drawing order of image 
tiles by tweaking with tileindex.  It might be of some use if, for example, 
there are recent overlapping images which would be fine to have always on top 
of older images.  Perhaps the tileindex shapefile could be sorted in some 
clever way?

-Jukka Rahkonen- 
___

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 manual

2008-04-10 Thread Gregor Mosheh

Paul Alarcon wrote:

Hello i want to make an interface in php but i dont know all the commands for 
this. Does anyone know where i can find a tutorial or manual for php mapscript ?


The Mapserver website, in Documents.
http://mapserver.gis.umn.edu/docs/reference/phpmapscript-class

--
Gregor Mosheh / Greg Allensworth, BS, A+
System Administrator
HostGIS cartographic 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] Php mapscript manual

2008-04-10 Thread Didrik Pinte
On Thu, 2008-04-10 at 18:56 +, Paul Alarcon wrote:
 Hello i want to make an interface in php but i dont know all the commands for 
 this. Does anyone know where i can find a tutorial or manual for php 
 mapscript ?
 Thanks 
 
Hi Paul,

Have a look over here : http://mapserver.gis.umn.edu/docs . This is the
right place to start. This document could be the right one :
http://mapserver.gis.umn.edu/docs/howto/phpmapscript-byexample 

Regards,

Didrik

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


Re: [mapserver-users] getting mouseclick x,y

2008-04-10 Thread Luis Treviño
Ahmet:

yo can try with jbox. It's an applet and works fine for me. Take a look at:
http://mapserver.gis.umn.edu/docs/howto/jbox

regards,
Luis

2008/4/10, orkun [EMAIL PROTECTED]:
 hello

 I wonder how I can get mouseclick x,y values in html and pass
 them to javamapscript ?

 regards
  --
  Ahmet Temiz
  Jeo. Müh.
  Afet İşleri Gen. Md.lüğü
  Deprem Ar. D.

  Ahmet Temiz
  Geo. Eng.
  General Dir. of
  Disaster Affairs



  --
  This message has been scanned for viruses and
  dangerous content by MailScanner, and is
  believed to be clean.

  ___
  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