[MAPSERVER-USERS] Full CADRG and VPF support

2008-07-08 Thread Admin
Thank you!
I will try your methods for CADRG. That means, that only problem which i have 
is with VPF. I tried to use FWTools, but it didn't work with my client 
aplication, I have to choose layer and when I use VPF layer I saw only blank 
screen, that strange, because FWTools have also MapServer. I will try to 
install ms4w and FWTools and change Apache configurtion to point GDAL path from 
FWTools. Maybe this will work.

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


Re: [mapserver-users] PostGIS connecton error

2008-07-08 Thread Paul Ramsey
Both the_geom and gid (or whatever you declare are your
geometry-holding and uid-holding columns) have to exist as output from
your subquery, otherwise the code on the outside can't see them to
make use of them. So change your DATA to

DATA "the_geom from (SELECT the_geom,gid from
medievalbattlefieldstable WHERE itemname LIKE '%Lewes%') as foo using
unique gid using SRID=4326"

P.

On Tue, Jul 8, 2008 at 11:07 AM, Steve White
<[EMAIL PROTECTED]> wrote:
> After much fiddling around I managed to install PostgreSQL with PostGIS and
> set up a connection in a layer like this:
>
>
>
> MAP
>
>   NAME Test
>
>   STATUS  ON
>
>   UNITS METERS
>
>   SHAPEPATH  "C:\Inetpub\scripts\data\"
>
>   IMAGECOLOR  0 255 255
>
>   SIZE  400 400
>
>   DEBUG   ON
>
>   IMAGETYPE  PNG
>
>   EXTENT   -4.35 56.14 -3.23
> 56.91
>
>   DATAPATTERN'.*'
>
>
>
> WEB
>
>   METADATA
>
> "wms_title""Test MS"
>
> "wms_onlineresource" "http://localhost/scripts/mapserv.exe&";
>
> "wms_srs"  "EPSG:4326 EPSG:54004
> EPSG:27700"
>
> "wms_feature_info_mime_type" "text/html"
>
>   END
>
>
>
> IMAGEPATH   "C:\Inetpub\wwwroot\tmp\"
>
> IMAGEURL  "C:\Inetpub\wwwroot\tmp\"
>
> LOG
> "C:\Inetpub\wwwroot\tmp\mapserver.log"
>
> TEMPLATE
> "C:\Inetpub\wwwroot\OAMap\templates\template.html"
>
> EMPTY
> "C:\Inetpub\wwwroot\OAMap\templates\template.html"
>
>
>
> END
>
>
>
> #QUERYMAP
>
> # STATUSON
>
> # STYLE HILITE
>
> # COLOR  255 255 0
>
> # SIZE10
>
> #END
>
>
>
> PROJECTION
>
>   "init=epsg:4326"
>
> END
>
>
>
> SYMBOL
>
>   NAME "circle"
>
>   TYPE ellipse
>
>   FILLED true
>
>   POINTS
>
> 1 1
>
>   END
>
> END
>
>
>
> LAYER
>
> NAME
> "test"
>
> CONNECTIONTYPE
> postgis
>
> CONNECTION"user=oa
> password=*** dbname=OA"
>
> METADATA
>
> "wms_title""test"
>
> "gml_include_items" "all"
>
> "wms_include_items"   "all"
>
> "wms_feature_info_mime_type"   "text/html"
>
> END
>
> TYPE
> POINT
>
> DATA
> "the_geom from (SELECT the_geom from medievalbattlefieldstable WHERE
> itemname LIKE '%Lewes%') as foo using unique gid using SRID=4326"
>
>
> STATUSON
>
> DUMP   TRUE
>
>
>
> PROJECTION
>
>
>
> "init=epsg:4326"
>
> END
>
> CLASS
>
> TEMPLATE
> "C:\Inetpub\wwwroot\OAMap\templates\template.html"
>
> SYMBOL "circle"
>
> SIZE 10
>
> COLOR 255 0 255
>
> END
>
> END #end of layer
>
>
>
> END # end of mapfile
>
>
>
> Here's the exception from MapServer:
>
>
>
> 
>
> 
>
> msDrawMap(): Image handling error. Failed to draw layer named
> 'test'.
>
> prepare_database(): Query error. Error executing POSTGIS DECLARE (the actual
> query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT
> asbinary(force_collection(force_2d(the_geom)),'NDR'),gid::text from
> (SELECT the_geom from medievalbattlefieldstable WHERE itemname LIKE
> '%Lewes%') as foo WHERE the_geom &&
> setSRID('BOX3D(-5.625 52.4827802220782,0 55.7765730186677)'::BOX3D,
> 4326 )'
>
>
>
> Postgresql reports the error as 'ERROR:  column "gid" does not
> exist
>
> LINE 1:
> ...inary(force_collection(force_2d(the_geom)),'NDR'),gid::text ...
>
>  ^
>
> '
>
>
>
> More Help:
>
>
>
> Error with POSTGIS data variable. You specified 'check your .map
> file'.
>
> Standard ways of specifiying are :
>
> (1) 'geometry_column from geometry_table'
>
> (2) 'geometry_column from (sub query) as foo using unique column name
> using SRID=srid#'
>
>
>
> Make sure you put in the 'using unique  column name' and 'using
> SRID=#' clauses in.
>
>
>
> For more help, please see http://postgis.refractions.net/documentation/
>
>
>
> Mappostgis.c - version o

[mapserver-users] Problems with simboloy using fonts

2008-07-08 Thread Carlos Ruiz
 
Greetings list,
 
I'm using some ESRI true type fonts to make some simbology for my layers. 
Mapserver 
renders multiple characters instead the ones i choose.
 
This is what i have:
 
symbol
   name "layer_1"
   type truetype
   font "ers_infrastructures_stage_01"
   character "C"
end

ers_infraestructures_stage_01 is an alias of the 
ers_v2_infraestructures_st1.ttf file.
 
Can someone knows what's happening and how to solve this ?
 
Thanks in advance
 
 
IC Carlos Ruiz
 


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


Re: [mapserver-users] raster tiling of non rectangular images

2008-07-08 Thread Steve Lime
I don't suppose there are shapefiles with Landsat footprints available
that would
help? If your data matched standard scene boundaries then perhaps you
could
build an index from that. ESRI's ArcWorld dataset had such a 

>>> On 7/8/2008 at 3:41 AM, in message
<[EMAIL PROTECTED]>, victor valencia
<[EMAIL PROTECTED]> wrote:
> Hi:
> 
> I need  to create a tileindex of several non-rectangular raster
images. I 
> tried GdaltIndex, but produces rectangular polygons including the
non-data 
> (Null) pixels. 
> These images i have are Landsat 7 saved as *.img, *.tiff, *.Sid. 
> These images are rhomboidal. Since the file is rectangular there is
an area 
> with no valid pixels (non-data or Null). I need a boundary polygon
that 
> exclude this pixels. 
> 
> I found an arcview 3x extension named Grid to Valid-pixel Polygon
Catalog w 
> Stats, that creates a boundary polygons of the valid pixels, but
works just 
> with Grid images. I could change the format of my images but this is
very 
> very time consuming. 
> 
>  Is there any script to create irregular bounding polygons
(non-rectangular) 
> from the valid pixels for several images?
> 
> Best regards
> 
> Victor
> 
> 
> 
>   __ 
> Enviado desde Correo Yahoo! La bandeja de entrada más inteligente.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [MAPSERVER-USERS] Full CADRG and VPF support

2008-07-08 Thread Even Rouault
Or more simple, from GDAL 1.5, RPF products are directly supported.

So you can do :

gdaltindex tile_index.shp NITF_TOC_ENTRY:CADRG_JOG-A_250K_1_0:rpf/a.toc 
NITF_TOC_ENTRY:CADRG_JOG-A_250K_1_1:rpf/a.toc

where those NITF_TOC_ENTRY values are the SUBDATASET_X_NAME values reported by 
gdalinfo on the A.TOC file.

For VPF, you need to build OGR with OGDI support. After that, you can handle 
it directly in mapserver through an OGRConnection (but that may be slow as 
VPF reading is not fast), or use ogr2ogr to convert it into shapefiles 
before. I use the latest option in production environment for speed reasons, 
as you can use spatial indexing on shapefiles.


Le Tuesday 08 July 2008 11:56:14 Pål Kristensen, vous avez écrit :
> Hi!
>
> You can build a tileindex with the gdaltindex utility, and then reference
> the tileindex in a raster layer. You have to run the tileindex utility one
> time for each sub folder
>
> gdaltindex rpf_jog.shp /RPF/CJGA/CJGAZ03/*.ja*
> gdaltindex rpf_jog.shp /RPF/CJGA/CJGAZ04/*.ja*
>
> or for example make a small python script that runs recursively trough all
> sub folders and executes the gdaltindex utility.
>
> I have done this to serve out many JOG products (complete CD's) in on
> layer. The layer could then look something like this.
>
>LAYER
>   NAME "JOG_Mosaic"
>   STATUS ON
>   DEBUG 5
>   TILEINDEX "rpf_jog.shp"
>   TILEITEM "Location"
>   TYPE RASTER
>   #MINSCALE 30
>   MAXSCALE 60
>   PROCESSING "RESAMPLE=AVERAGE"
>   #PROCESSING "RESAMPLE=BILINEAR"
>   PROCESSING "OVERSAMPLE_RATIO=8" # 8 improves the output image
> greatly, could try other values
>   GROUP "JOG"
>   METADATA
>  "wms_title" "JOG Mosaic"
>  "wms_group_title" "JOG"
>  "wms_style" "Default"
>   END
>   PROJECTION
>  "init=epsg:4326"
>   END
>END
>
> Admin-267 wrote:
> > CADRG works only partialy, I have to add partial files with .ON2 or .ON3
> > extension as layers, not A.TOC file, which defines this files.
> >
> > For example:
> >
> > Now I have to write:
> >   LAYER
> > NAME cadrg_1
> > TYPE RASTER
> > DATA 'ONZ03\0001P011.ON3'
> > STATUS DEFAULT
> >   END
> >   .
> >   .
> >   .
> >   LAYER
> > NAME cadrg_n
> > TYPE RASTER
> > DATA 'ONZ03\0001P0nn.ON3'
> > STATUS DEFAULT
> >   END
> >
> > But I would like to write:
> >   LAYER
> > NAME cadrg_all
> > TYPE RASTER
> > DATA 'A.TOC'
> > STATUS DEFAULT
> >   END
> >
> > I read that mapserver have CADRG/RPF support for TOC files, but how to
> > enable it?
> > Also, how to enable VPF support? I know, that i can convert VPF to SHP,
> > but is there other solution?
> > ___
> > 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] PostGIS connecton error

2008-07-08 Thread Steve White
After much fiddling around I managed to install PostgreSQL with PostGIS and
set up a connection in a layer like this:

 

MAP

  NAME Test

  STATUS  ON

  UNITS METERS

  SHAPEPATH  "C:\Inetpub\scripts\data\"

  IMAGECOLOR  0 255 255

  SIZE  400 400

  DEBUG   ON

  IMAGETYPE  PNG

  EXTENT   -4.35 56.14 -3.23
56.91

  DATAPATTERN'.*'   

 

WEB

  METADATA

"wms_title""Test MS"

"wms_onlineresource" "http://localhost/scripts/mapserv.exe
 &" 

"wms_srs"  "EPSG:4326 EPSG:54004
EPSG:27700"

"wms_feature_info_mime_type" "text/html"

  END

 

IMAGEPATH   "C:\Inetpub\wwwroot\tmp\"

IMAGEURL  "C:\Inetpub\wwwroot\tmp\"

LOG
"C:\Inetpub\wwwroot\tmp\mapserver.log"

TEMPLATE
"C:\Inetpub\wwwroot\OAMap\templates\template.html"

EMPTY
"C:\Inetpub\wwwroot\OAMap\templates\template.html"  

 

END

 

#QUERYMAP

# STATUSON

# STYLE HILITE

# COLOR  255 255 0

# SIZE10

#END

 

PROJECTION

  "init=epsg:4326"

END

 

SYMBOL

  NAME "circle"

  TYPE ellipse

  FILLED true

  POINTS

1 1

  END

END

 

LAYER

NAME
"test"

CONNECTIONTYPE
postgis

CONNECTION"user=oa
password=*** dbname=OA"

METADATA

"wms_title""test"

"gml_include_items" "all"

"wms_include_items"   "all"

"wms_feature_info_mime_type"   "text/html"

END

TYPE
POINT

DATA
"the_geom from (SELECT the_geom from medievalbattlefieldstable WHERE
itemname LIKE '%Lewes%') as foo using unique gid using SRID=4326"

STATUS
ON

DUMP   TRUE

 

PROJECTION

 
"init=epsg:4326"

END

CLASS

TEMPLATE
"C:\Inetpub\wwwroot\OAMap\templates\template.html"

SYMBOL "circle"

SIZE 10

COLOR 255 0 255

END

END #end of layer

 

END # end of mapfile

 

Here's the exception from MapServer:

 





msDrawMap(): Image handling error. Failed to draw layer named
'test'.

prepare_database(): Query error. Error executing POSTGIS DECLARE (the actual
query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT
asbinary(force_collection(force_2d(the_geom)),'NDR'),gid::text from
(SELECT the_geom from medievalbattlefieldstable WHERE itemname LIKE
'%Lewes%') as foo WHERE the_geom &&
setSRID('BOX3D(-5.625 52.4827802220782,0 55.7765730186677)'::BOX3D,
4326 )' 

 

Postgresql reports the error as 'ERROR:  column "gid" does not
exist

LINE 1:
...inary(force_collection(force_2d(the_geom)),'NDR'),gid::text ...

 ^

'

 

More Help:

 

Error with POSTGIS data variable. You specified 'check your .map
file'.

Standard ways of specifiying are : 

(1) 'geometry_column from geometry_table' 

(2) 'geometry_column from (sub query) as foo using unique column name
using SRID=srid#' 

 

Make sure you put in the 'using unique  column name' and 'using
SRID=#' clauses in.

 

For more help, please see http://postgis.refractions.net/documentation/ 

 

Mappostgis.c - version of Jan 23/2004.

 





 

As you can see, it says column 'gid' does not exist. This doesn't make any
sense to me because I can see a gid column in my table and it has been set
up as the PK. If I take out the sub query and just run it in the Query tool
using pgAdmin III it works!

 

SELECT the_geom from medievalbattlefieldstable WHERE itemname LIKE '%Lewes%'

 

Can anyone give me some clues what's going on here?

 

 

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


[mapserver-users] Flash (swf) - Link between buttons and Element?

2008-07-08 Thread Marie-Eve Lévesque

I am using MapServer to generate Flash (.swf). It generally works well, my 
shapes are generated and I get my events by ElementSelected, and my attributes 
in the Element object of the generated swf. 

But, there is one thing that I can't get: the ID associated to a button or to 
one of the shapes. For example, I have an object with the id "15", the name 
"Montreal" and the value "10". In "Element", I have all those informations, but 
I don't know what button is associated to id 15... (in my case, with tests I 
know that "button164" is associated to my id 15, but how can I know that 
dynamically?)

What I would like to have is, either an "buttonId" attribute in "Element", 
either an attribute "associatedId" in the button. Is there something like that 
in MapServer?

If it doesn't exists, is there an other way to have that like between my data 
in Element and the generated buttons?

Thanks,
Marie-Eve

_
Envoie un sourire, fais rire, amuse-toi! Employez-le maintenant!
http://www.emoticonesgratuites.ca/?icid=EMFRCA120___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] php mapscript... missing a "." (dot)

2008-07-08 Thread G. Allegri
Hi list.
I've just compiled my Mapserver 5 with php-mapscript.
I've copied my php-mapscript.so inside  /usr/lib/php5/20060613+lfs, but when
I try dl() from php, I get that it's looking for php-mapscriptso... It
misses a dot!
If I change the .so name to "php-mapscriptso", it gets loaded correctly...

Does anyone know why php misspell the name?

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


RE: [mapserver-users] WMS Client setup

2008-07-08 Thread Fawcett, David
I have never had luck adding WMS servers to WorldWind, but hopefully you
will.  
 
A couple of things that I notice:
1.  I am guessing that for ServerUrl, you will want to specify the url
to mapserver using a map file that has been set up to be a WMS server,
not just your mapserver binary.  Something like:
http://localhost:8081/cgi-bin/mapserv?map=/my/mapfile/path/mymap.map
 
 
2.  I am guessing that Version refers to the version of WMS that you are
serving (e.g. 1.0, 1.1, etc.)
 
David.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Derek Bain
Sent: Tuesday, July 08, 2008 5:53 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] WMS Client setup


Hi

I now have the demo application running. I am trying to add
MapServer to the list of WMS Servers in World Wind. I tried adding the
following to the wms_server_list.xml file


Map Server

http://localhost:8081/cgi-bin/mapserv
5.0
Map Server


However this results in the following error from World Wind when
selecting the Tools|WMS Browser menu command

"Map Server[Connection Error]"

Can anyone help me set this up so that I can see MapServer from
World Wind

many thanks
Derek





Not happy with your email address? 
Get the one you really want
  - millions of new email
addresses available now at Yahoo!
 

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


Re: [MAPSERVER-USERS] raster tiling of non rectangular images

2008-07-08 Thread Pål Kristensen

Hi!

To my knowledge a raster (or image) is always rectangular (you can have non
square pixel though) . If the actual content is not rectangular, the
boundary is filled with "some other data". You have a couple of choices on
how to handle this.

1. Use the OFFSITE keyword in the layer object to "exclude" a certain pixel
value, e.g  OFFSITE 0 0 0
2. Use gdalwarp to mask no-data areas with a alpha channel

I don't think it would make any sense to add non rectangular boundary
polygon to the tileindex,  because MapServer only uses the tileindex to
determine which raster tiles to draw, no clipping is done (am I wrong??). It
is the actual raster files that is processed, and they would still have the
no-data pixels.

Regards,
Pål Kristensen


victor valencia-2 wrote:
> 
> Hi:
> 
> I need  to create a tileindex of several non-rectangular raster images. I
> tried GdaltIndex, but produces rectangular polygons including the non-data
> (Null) pixels. 
> These images i have are Landsat 7 saved as *.img, *.tiff, *.Sid. 
> These images are rhomboidal. Since the file is rectangular there is an
> area with no valid pixels (non-data or Null). I need a boundary polygon
> that exclude this pixels. 
> 
> I found an arcview 3x extension named Grid to Valid-pixel Polygon Catalog
> w Stats, that creates a boundary polygons of the valid pixels, but works
> just with Grid images. I could change the format of my images but this is
> very very time consuming. 
> 
>  Is there any script to create irregular bounding polygons
> (non-rectangular) from the valid pixels for several images?
> 
> Best regards
> 
> Victor
> 
> 
> 
>   __ 
> Enviado desde Correo Yahoo! La bandeja de entrada más inteligente.
> ___
> 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/raster-tiling-of-non-rectangular-images-tp18334576p18338073.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] blur backgroung map when pop up appears

2008-07-08 Thread S.Reena

I am displaying a map on html page..i want that on some pop up window to
appear over map on some eventn this should blur the map on
backgroundhow to do this?
-- 
View this message in context: 
http://www.nabble.com/blur-backgroung-map-when-pop-up-appears-tp18336965p18336965.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] WMS Client setup

2008-07-08 Thread Derek Bain
Hi

I now have the demo application running. I am trying to add MapServer to the 
list of WMS Servers in World Wind. I tried adding the following to the 
wms_server_list.xml file


Map Server
http://localhost:8081/cgi-bin/mapserv
5.0
Map Server


However this results in the following error from World Wind when selecting the 
Tools|WMS Browser menu command

"Map Server[Connection Error]"

Can anyone help me set this up so that I can see MapServer from World Wind

many thanks
Derek


  __
Not happy with your email address?.
Get the one you really want - millions of new email addresses available now at 
Yahoo! http://uk.docs.yahoo.com/ymail/new.html___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Cannot display query result in popup window

2008-07-08 Thread Andrew Mason

Kresh,

I may be missing something, but your toFrame() function doesn't seem  
to be called at any point.

I'd have expected it to be called sometime before the form is submitted.

Andrew


On 8 Jul 2008, at 11:28, [EMAIL PROTECTED] wrote:


Hi,

I'm using MapServer for Windows. I made a query on my map. The  
query result is displayed properly, but I cannot display it on a  
popup window. The query result is always displayed on the same  
browser window, "replacing" the map with the result.


I have added the following scripts on my template:
   function toFrame() {
  if (document.mapserv.mode.value == "query" ||  
document.mapserv.mode.value == "nquery") {

 document.mapserv.target = "_blank";
  } else {
 document.mapserv.target = "_self";
  }
   }

Yet the query above simply does not work; the result of the query  
is always displayed on the same browser window ("replacing" my map)  
instead of displayed in a popup window.


Am I doing the right thing? I also attach the map file, the HTML  
template, and the query template. Many thanks.

-Kresh









__ 
_

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] Cannot display query result in popup window

2008-07-08 Thread [EMAIL PROTECTED]
It works! I overlooked a very simple thing and forgot to add the "OnClick" 
function on my map (the  tag). Duh!

My apologize,
-Kresh


--- On Tue, 7/8/08, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

> From: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
> Subject: [mapserver-users] Cannot display query result in popup window
> To: mapserver-users@lists.osgeo.org
> Date: Tuesday, July 8, 2008, 6:28 AM
> Hi,
> 
> I'm using MapServer for Windows. I made a query on my
> map. The query result is displayed properly, but I cannot
> display it on a popup window. The query result is always
> displayed on the same browser window, "replacing"
> the map with the result.
> 
> I have added the following scripts on my template:
>function toFrame() {
>   if (document.mapserv.mode.value ==
> "query" || document.mapserv.mode.value ==
> "nquery") {
>  document.mapserv.target = "_blank";
>   } else {
>  document.mapserv.target = "_self";
>   }
>}
> 
> Yet the query above simply does not work; the result of the
> query is always displayed on the same browser window
> ("replacing" my map) instead of displayed in a
> popup window.
> 
> Am I doing the right thing? I also attach the map file, the
> HTML template, and the query template. Many thanks.
> -Kresh___
> 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] Cannot display query result in popup window

2008-07-08 Thread [EMAIL PROTECTED]
Hi,

I'm using MapServer for Windows. I made a query on my map. The query result is 
displayed properly, but I cannot display it on a popup window. The query result 
is always displayed on the same browser window, "replacing" the map with the 
result.

I have added the following scripts on my template:
   function toFrame() {
  if (document.mapserv.mode.value == "query" || 
document.mapserv.mode.value == "nquery") {
 document.mapserv.target = "_blank";
  } else {
 document.mapserv.target = "_self";
  }
   }

Yet the query above simply does not work; the result of the query is always 
displayed on the same browser window ("replacing" my map) instead of displayed 
in a popup window.

Am I doing the right thing? I also attach the map file, the HTML template, and 
the query template. Many thanks.
-Kresh









  

GABUNGAN.map
Description: Binary data
Title: Aplikasi Peta GIS Interaktif Berbasis Web

   
   
  
  
  
 
 
 
 
 
 
 
 
 
RTRW Pacitan - Trenggalek



   
  
  
  
  jaringan_ipal_dan_iplt
  jaringan_telepon
  jar_listrik
  air_bersih
  rth_poly
  rth
  permukiman_kota_dan_desa

  kawasan_bencana
  kawasan_rawan_bencana
  kawasan_budidaya
  desa_poly_utm
  kecamatan_poly_utm
  batas_administrasi_line_utm
  batas_administrasi_line2_utm
  kabupaten_poly_utm
  grs_pantai_utm
  laut
  buat_pot_utm
  kebalikan_kab_poly_utm
  clip_kebalikan_utm
  
   
   
   
   
  


  


  


  
 
 
 

   
   
   


   
   
   


   
   
   

 
 

 
 
 

   
   
   



   


   

   
   

 
 

 
 
 

   
   
   
   

   
   
   


   
   
   

 
 
  
  


  


  
  Skala
  
   
  


  


  
 

   
  
  
  
  
  
  
  
  
  
   


  


   
  
  
  
  
  Ukuran Kertas:
  
 A4
 A3
  

  
  
  
  
  
  
  
  

[mapserver-users] 'Clipping' a raster

2008-07-08 Thread Andrew Mason

Hi,

I'd like to allow users to specify a bounding polygon and have  
Mapserver return the contents of a raster (Geotiff) bounded by this  
polygon. Everything outside the polygon would be transparent.

Is there any way to do this?


Thanks in advance

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


Re: [MAPSERVER-USERS] Full CADRG and VPF support

2008-07-08 Thread Pål Kristensen

Hi!

You can build a tileindex with the gdaltindex utility, and then reference
the tileindex in a raster layer. You have to run the tileindex utility one
time for each sub folder

gdaltindex rpf_jog.shp /RPF/CJGA/CJGAZ03/*.ja*
gdaltindex rpf_jog.shp /RPF/CJGA/CJGAZ04/*.ja*

or for example make a small python script that runs recursively trough all
sub folders and executes the gdaltindex utility.

I have done this to serve out many JOG products (complete CD's) in on layer.
The layer could then look something like this. 

   LAYER
  NAME "JOG_Mosaic"
  STATUS ON
  DEBUG 5
  TILEINDEX "rpf_jog.shp"
  TILEITEM "Location"
  TYPE RASTER
  #MINSCALE 30
  MAXSCALE 60
  PROCESSING "RESAMPLE=AVERAGE"
  #PROCESSING "RESAMPLE=BILINEAR"
  PROCESSING "OVERSAMPLE_RATIO=8" # 8 improves the output image greatly,
could try other values 
  GROUP "JOG"
  METADATA
 "wms_title" "JOG Mosaic"
 "wms_group_title" "JOG"
 "wms_style" "Default"
  END
  PROJECTION
 "init=epsg:4326"
  END
   END



Admin-267 wrote:
> 
> CADRG works only partialy, I have to add partial files with .ON2 or .ON3
> extension as layers, not A.TOC file, which defines this files.
> 
> For example:
> 
> Now I have to write:
>   LAYER
> NAME cadrg_1
> TYPE RASTER
> DATA 'ONZ03\0001P011.ON3'
> STATUS DEFAULT
>   END
>   .
>   .
>   .
>   LAYER
> NAME cadrg_n
> TYPE RASTER
> DATA 'ONZ03\0001P0nn.ON3'
> STATUS DEFAULT
>   END
> 
> But I would like to write:
>   LAYER
> NAME cadrg_all
> TYPE RASTER
> DATA 'A.TOC'
> STATUS DEFAULT
>   END  
> 
> I read that mapserver have CADRG/RPF support for TOC files, but how to
> enable it?
> Also, how to enable VPF support? I know, that i can convert VPF to SHP,
> but is there other solution?
> ___
> 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/Full-CADRG-and-VPF-support-tp18334249p18335684.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] GetFeatureInfo error

2008-07-08 Thread Barend Kobben
Looking at you request, it seems strange you do a GetFeatureInfo for pixel
X=1127&Y=336, when you advertised your map to be only of size
WIDTH=768&HEIGHT=768


-- 
Barend Köbben
International Institute for Geo-Information
Sciences and Earth Observation (ITC)
PO Box 6
7500AA Enschede, The Netherlands
+31 (0)53 4874253

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


[mapserver-users] raster tiling of non rectangular images

2008-07-08 Thread victor valencia
Hi:

I need  to create a tileindex of several non-rectangular raster images. I tried 
GdaltIndex, but produces rectangular polygons including the non-data (Null) 
pixels. 
These images i have are Landsat 7 saved as *.img, *.tiff, *.Sid. 
These images are rhomboidal. Since the file is rectangular there is an area 
with no valid pixels (non-data or Null). I need a boundary polygon that exclude 
this pixels. 

I found an arcview 3x extension named Grid to Valid-pixel Polygon Catalog w 
Stats, that creates a boundary polygons of the valid pixels, but works just 
with Grid images. I could change the format of my images but this is very very 
time consuming. 

 Is there any script to create irregular bounding polygons (non-rectangular) 
from the valid pixels for several images?

Best regards

Victor



  __ 
Enviado desde Correo Yahoo! La bandeja de entrada más inteligente.___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] queryByPoint problem - rien ne va plus

2008-07-08 Thread Stefan Schwarzer

Hi there,

I have a script to query my layers by point or rectangle, which used  
to run smoothly. But now, don't know what happened... I updated from  
an old mapserver version to a recent one. Is it that? I have no idea.


Here is the code which I use. When it reaches the bottom part with the  
queryByPoint it stalls...


Thanks for any help!

Stef


//Get the Layer being queried
$Layer = $map -> GetLayerByName($lyr_name);

//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);
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[MAPSERVER-USERS] Full CADRG and VPF support

2008-07-08 Thread Admin
CADRG works only partialy, I have to add partial files with .ON2 or .ON3 
extension as layers, not A.TOC file, which defines this files.

For example:

Now I have to write:
  LAYER
NAME cadrg_1
TYPE RASTER
DATA 'ONZ03\0001P011.ON3'
STATUS DEFAULT
  END
  .
  .
  .
  LAYER
NAME cadrg_n
TYPE RASTER
DATA 'ONZ03\0001P0nn.ON3'
STATUS DEFAULT
  END

But I would like to write:
  LAYER
NAME cadrg_all
TYPE RASTER
DATA 'A.TOC'
STATUS DEFAULT
  END  

I read that mapserver have CADRG/RPF support for TOC files, but how to enable 
it?
Also, how to enable VPF support? I know, that i can convert VPF to SHP, but is 
there other solution?
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [MAPSERVER-USERS] Full CADRG and VPF support

2008-07-08 Thread Pål Kristensen

Hi!

What do you mean by partial CADRG/RPF support. What is it that you need that
is not supported? Could you pleas be more specific?

Regards,
Pål Kristensen



Admin-267 wrote:
> 
> Hello!
> I have to make my own wms server, which will support various formats like
> DTED, CADRG/RPF and VPF. I downloaded ms4w-2.2.7. There is DTED support,
> but only partial CADRG support and there is no support for VPF. Is there
> any chance to enable this support without recompiling everything? I read
> that I need OGDI Vectors support for VPF. How to enable it?
> ___
> 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/Full-CADRG-and-VPF-support-tp18314860p18333050.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