RE: [mapserver-users] problem in reference map

2009-05-10 Thread Venkat Rao Tammineni
Hi,

This one u should place in mapfile

  ## Refrence Map #

 REFERENCE
STATUS on
IMAGE ..\images\india-map_small.png
SIZE 120 80
EXTENT 64.881 5.469 97.898 37.762
STATUS OFF
COLOR -1 -1 -1
OUTLINECOLOR 255 0 0

  # MAXBOXSIZE 125
END

### INCLUDE MAP FILE AREA


This is my C# code for generating Refrence map.same time you need to have
one temp folder with will store the temp images

public void LoadLegend(System.Web.UI.WebControls.ImageButton imgleg)
{
try
{
string imageLoc;
string imageURL;
imageObj imgRef;
imgRef = MapFunction.Map.drawReferenceMap();
imageLoc = MapFunction.OutputDir + / +
System.DateTime.Now.ToBinary() + . + imgRef.format.extension;  // here  u
need to store images in temp forlder
imageURL =
imageLoc.Substring(imageLoc.IndexOf(MapFunction.OutputDirURL)); // here u
need to give the image url
imgRef.save(imageLoc, null);
imgleg.Width = imgRef.width;
imgleg.Height = imgRef.height;
imgleg.ImageUrl = ../ + imageURL;
MapFunction.IsMapInDirectory = false;

}
catch (Exception exp) { }
}



This is working for me in C#.I think it will give some idea.


Thanks,

Venkat Rao Tammineni
Hyderbad
India


-Original Message-
From: Ahmet Temiz [mailto:te...@deprem.gov.tr] 
Sent: Friday, May 08, 2009 10:55 PM
To: Venkat Rao Tammineni; 'Steve Lime'; mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] problem in reference map

Thank you

I am using java. However, I try to adapt C# to java


On Fri, 8 May 2009 12:46:09 +0530, Venkat Rao Tammineni wrote
 HI,
 
   Which language you are using ...if it is C# , then I can help you.
 
 Thanks
 Venkat
 
 -Original Message-
 From: mapserver-users-boun...@lists.osgeo.org
 [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Ahmet Temiz
 Sent: Friday, May 08, 2009 12:39 PM
 To: Steve Lime; mapserver-users@lists.osgeo.org
 Subject: Re: [mapserver-users] problem in reference map
 
 On Thu, 07 May 2009 12:26:47 -0500, Steve Lime wrote
 
 thank you
 
 reference map extent is same as main map extent.
 I checked size of reference map.
 
 But the problem still exists.
 
  Most likely your reference map size or extent are incorrect. That's 
  where I'd start.
  
  Steve
  
   On 5/7/2009 at 6:54 AM, in message
 20090507115038.m79...@deprem.gov.tr,
  Ahmet Temiz te...@deprem.gov.tr wrote:
   hello
   
   the red box in my reference map isn't settled on my zoomed main map.
   
   what am I likely to miss ?
   
   regards
   
   Ahmet Temiz
   
   --
   Open WebMail Project (http://openwebmail.org)
  
  
  -- 
  This message has been scanned for viruses and
  dangerous content by MailScanner, and is
  believed to be clean.
 
 --
 Open WebMail Project (http://openwebmail.org)
 
 -- 
 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
 
 -- 
 This message has been scanned for viruses and
 dangerous content by MailScanner, and is
 believed to be clean.


--
Open WebMail Project (http://openwebmail.org)


-- 
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


RE: [mapserver-users] problem in reference map

2009-05-08 Thread Venkat Rao Tammineni
HI,

  Which language you are using ...if it is C# , then I can help you.


Thanks
Venkat

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Ahmet Temiz
Sent: Friday, May 08, 2009 12:39 PM
To: Steve Lime; mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] problem in reference map

On Thu, 07 May 2009 12:26:47 -0500, Steve Lime wrote

thank you

reference map extent is same as main map extent.
I checked size of reference map.

But the problem still exists. 

 Most likely your reference map size or extent are incorrect. That's 
 where I'd start.
 
 Steve
 
  On 5/7/2009 at 6:54 AM, in message
20090507115038.m79...@deprem.gov.tr,
 Ahmet Temiz te...@deprem.gov.tr wrote:
  hello
  
  the red box in my reference map isn't settled on my zoomed main map.
  
  what am I likely to miss ?
  
  regards
  
  Ahmet Temiz
  
  --
  Open WebMail Project (http://openwebmail.org)
 
 
 -- 
 This message has been scanned for viruses and
 dangerous content by MailScanner, and is
 believed to be clean.


--
Open WebMail Project (http://openwebmail.org)


-- 
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


RE: [mapserver-users] Mapserver wms duplicate labels

2009-05-06 Thread Venkat Rao Tammineni
Hi,

 

   Can you try  without using BUFFER property.

 

Thanks,

 

Venkat

 

From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Michael
Shishcu
Sent: Wednesday, May 06, 2009 12:28 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Mapserver wms duplicate labels

 

Hi, list, I'm newbie in mapserver and have a question.

I've set up mapserver as wms server, everything works Ok, and here's layer
definition
LAYER
  NAME name
  TYPE POLYGON
  STATUS ON
  CONNECTIONTYPE oraclespatial
  CONNECTION scheme/p...@db
  DATA column FROM table
  DUMP TRUE
  LABELITEM label
  CLASS
MAXSCALEDENOM 2000
STYLE
  OUTLINECOLOR 255 153 255
  COLOR -1 -1 -1
  ANTIALIAS TRUE
END
LABEL
  MINFEATURESIZE auto
  MINDISTANCE 50
  OUTLINECOLOR 255 255 255
  OUTLINEWIDTH 1
  COLOR 0 0 0
  FONT times
  TYPE TRUETYPE
  SIZE 9
  ANTIALIAS TRUE
  POSITION cc
  PARTIALS FALSE
  BUFFER 3
END
  END
Also there is a tilecache server (Oracle Mapviewer) whitch server images to
end-user
The problem is here: if a polygon object is present  in some tiles, it is
labeled on each tile causing close duplicate labels (attachment).
Has anyone some workaround of this problem
Regards,
Michael

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


RE: [mapserver-users] confused about using GridObj

2009-05-05 Thread Venkat Rao Tammineni
Hi,

GridObj Class

Constructor

The grid is always embedded inside a layer object defined as a grid
(layer-connectiontype = MS_GRATICULE)
 (for more docs : http://trac.osgeo.org/mapserver/wiki/MapServerGrid)

A layer can become a grid layer by adding a grid object to it using :
ms_newGridObj(layerObj layer)

$oLayer = ms_newlayerobj($oMap);
$oLayer-set(name, GRID);
ms_newgridobj($oLayer);
$oLayer-grid-set(labelformat, DDMMSS);

Members

TypeName
double  minsubdivide
double  maxsubdivide
double  minarcs
double  maxacrs
double  mininterval
double  maxinterval
string  labelformat

Methods

int set(string property_name, new_value)
Set object property to a new value.


Thanks, 

Venkat


-Original Message-
From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Ahmet Temiz
Sent: Tuesday, May 05, 2009 5:30 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] confused about using GridObj

hello

I am confused about using GridObj in java-mapscript


Is there any example code containing  
gridobj in java-mapscript

regards

Ahmet Temiz

--
Open WebMail Project (http://openwebmail.org)


-- 
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


RE: [mapserver-users] confused about using GridObj

2009-05-05 Thread Venkat Rao Tammineni
Hi

See here for more Here is an example.


LAYER

  NAME SAMPLE GRID
  PROJECTION 
  proj=latlong
  ellps=WGS84
  datum=WGS84
  END
  TYPE LINE
  STATUS DEFAULT
  CLASS
COLOR 0 255 128
  LABEL
TYPE BITMAP
SIZE MEDIUM
COLOR 255 128 89
  END
  END

GRID  
  MINSUBDIVIDE 64
  MAXSUBDIVIDE 64
  LABELFORMAT DDMMSS  
   END
END

Thanks,

Venkat


-Original Message-
From: Venkat Rao Tammineni [mailto:vtammin...@roulacglobal.com] 
Sent: Tuesday, May 05, 2009 5:38 PM
To: 'Ahmet Temiz'; 'mapserver-users@lists.osgeo.org'
Subject: RE: [mapserver-users] confused about using GridObj

Hi,

GridObj Class

Constructor

The grid is always embedded inside a layer object defined as a grid
(layer-connectiontype = MS_GRATICULE)
 (for more docs : http://trac.osgeo.org/mapserver/wiki/MapServerGrid)

A layer can become a grid layer by adding a grid object to it using :
ms_newGridObj(layerObj layer)

$oLayer = ms_newlayerobj($oMap);
$oLayer-set(name, GRID);
ms_newgridobj($oLayer);
$oLayer-grid-set(labelformat, DDMMSS);

Members

TypeName
double  minsubdivide
double  maxsubdivide
double  minarcs
double  maxacrs
double  mininterval
double  maxinterval
string  labelformat

Methods

int set(string property_name, new_value)
Set object property to a new value.


Thanks, 

Venkat


-Original Message-
From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Ahmet Temiz
Sent: Tuesday, May 05, 2009 5:30 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] confused about using GridObj

hello

I am confused about using GridObj in java-mapscript


Is there any example code containing  
gridobj in java-mapscript

regards

Ahmet Temiz

--
Open WebMail Project (http://openwebmail.org)


-- 
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


RE: [mapserver-users] Finding Lat-Long from shp file

2009-04-28 Thread Venkat Rao Tammineni
Hi,

 

mapObj will have  extents property ,where you can get  your map extents.

 

For example :- Alert(Map.extent.minx);

Thanks,

 

Venkat

 

 

From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Mukul Gupta
Sent: Tuesday, April 28, 2009 5:39 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Finding Lat-Long from shp file

 

hi...
I want to know if there is any method to automatically get the lat long of
the particular point in the shape file and then store the corresponding
values in mysql database file.
Regards
Mukul

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


RE: [mapserver-users] C# connectiontype issue

2009-04-27 Thread Venkat Rao Tammineni
Hi,

 

  I am using below map file code for loading raster data. below is my code.
I think the problem with jpeg.convert into tiff or geo tiff etc.. it may
work.

 

## Heat Maps ###

Layer # Layer starts here

  Name Hyderabad

  GROUP Heat Maps

  Data ..\Raster\hyderabad.tif

  PROCESSING SCALE=1,15399.12305 // these are optional you need not use 

  PROCESSING SCALE_BUCKETS=10 // these are optional you need not use 

 

  CLASSITEM [pixel]

 

  TYPE RASTER

  Status On

   

 CLASS

   Name Class One

   EXPRESSION ([pixel]  1  AND  [pixel]   5133.041016)

STYLE

  COLOR  255 255 0

END

  END

 

   CLASS

  Name Class Two

  EXPRESSION ([pixel]  5133.041017AND  [pixel]  10266.08203)

STYLE

  COLOR  0 166 255

END

  END

 

   CLASS

  Name Class Three

  EXPRESSION ([pixel]  10266.08204   AND  [pixel]  15399.12305 )

STYLE

  COLOR  255 0 0

END

  END

  

   

End # end of the State Layer

 

Thanks,

 

Venkat

 

From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Murty Maganti
Sent: Tuesday, April 28, 2009 1:11 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] C# connectiontype issue

 

Hi

 

I have a raster layer in map file. When I load the map file using C# map
script, at run time it shows layerObj.connectiontype as
'MS_CONNECTION_TYPE.MS_SHAPEFILE' though it is raster image. Is there any
syntax error with my map file definition.  I need to know exactly whether it
is a raster or vector layer in my application. Some logic in my application
needs to handle them differently.

 

This is the entry in map file

 

  LAYER

DATA 14m_jpg_24bit.jpg

NAME  14m Jpg 24bit

STATUS ON

TYPE RASTER

UNITS METERS

  END

 

Thanks

Murty

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


RE: [mapserver-users] Using JSP with ms4w

2009-04-17 Thread Venkat Rao Tammineni
Hi,

 

  Have a look into the sample code .. Refer some urls in mapserver  portal
how to compile  mapserver with java.But basically I m not java developer.I
am  into C#.net.May the below sample can help you at least it guides you.

 

 

%...@page contentType=text/html; charset=GB2312 language=java %

%...@page import=edu.umn.gis.mapscript.* %

%...@page import=java.util.Iterator, java.util.ArrayList%

%...@page import=java.util.Date%

!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN

HTML

HEAD

TITLE my first mapserver-webgis Good-luck /TITLE

/HEAD

BODY

FORM METHOD=POST ACTION=index.jsp

 

%!

 static int i=0;

%

%

 mapObj map;

 String vMapFile=;

 String vScaleBarFile=;

 String vLengdBarFile=;

 String vReferenceFile=;

 double rodio=1;

 map = new mapObj (D:/webapps/mapserver/tutorial.map);

 if(map==null)

 {

  System.out.println(!ok);

  

 }

 else

 {  

 if(request.getParameter(rodio)!=null)

 {

  if(request.getParameter(rodio)!=)

  {

   rodio=Double.parseDouble(request.getParameter(rodio));

  }

 }

 rectObj ro=map.getExtent();

 double xw=ro.getMaxx()-ro.getMinx();

 double yw=ro.getMaxy()-ro.getMiny();

 double cx=(ro.getMaxx()+ro.getMinx())/2;

 double cy=(ro.getMaxy()+ro.getMiny())/2;

 double newxw=xw*rodio;

 double newyw=yw*rodio;

 double maxx=cx+newxw/2;

 double minx=cx-newxw/2;

 double maxy=cy+newyw/2;

 double miny=cy-newyw/2;

 map.setExtent( minx,  miny,  maxx,  maxy);

 System.out.println(minx:+minx);

 System.out.println(miny:+miny);

 System.out.println(maxx:+maxx);

 System.out.println(maxy:+maxy);

   map.setImagecolor(new colorObj(10,128,98,13));

   imageObj imagen=map.draw();

   //imagen.setImageDir(/tmp);

   Date dt=new Date();

   vMapFile=output/tangnf+(dt.getTime())+.png;

  // map.embedScalebar(imagen);

   imagen.save(vMapFile,map);

   

   scalebarObj  scalebar=map.getScalebar();

   scalebar.setHeight(10);

   scalebar.setWidth(200);

   scalebar.setBackgroundcolor(new colorObj(0,255,0,13));

   scalebar.setColor(new colorObj(230,0,0,13));

   scalebar.setImagecolor(new colorObj(255,255,255,13));

   scalebar.setOutlinecolor(new colorObj(0,230,255,13));

   //scalebar.setStyle(3);

   scalebar.setUnits(3);

   scalebar.setIntervals(3);

   //scalebar.setLabel(new labelObj

  imageObj Scalebarimage=map.drawScalebar();

   vScaleBarFile=output/scalebar+(dt.getTime())+.jpg;

   Scalebarimage.save(vScaleBarFile,map);

 

legendObj legend=map.getLegend();

legend.setHeight(200);

legend.setWidth(100);

System.out.println(legend.getLabel().getEncoding()); 

   imageObj Legendimage=map.drawLegend();

   vLengdBarFile=output/Legend+(dt.getTime())+.png;

   Legendimage.save(vLengdBarFile,map);

   int layerCount=map.getNumlayers();

   for(int i=0;ilayerCount;i++)

  {

layerObj layer=map.getLayer(i);

System.out.println(layer+(i)+:+layer.getName());

  }

   System.out.println(layerCount:+layerCount);

  

  referenceMapObj referenceMap=map.getReference();

   referenceMap.setHeight(200);

   referenceMap.setWidth(200);

 



 

   imageObj ReferenceImg=map.drawReferenceMap();

   vReferenceFile=output/Reference+(dt.getTime())+.png;

   ReferenceImg.save(vReferenceFile,map);

  System.out.println(test);

 }

 



 

%

table border=1

trtd

INPUT TYPE=text NAME=rodio value=%=rodio% id=rodio 

/td

td

INPUT TYPE=submit value=test

/td

trtd width=80 

INPUT NAME=ScaleBar TYPE=image SRC=%=vScaleBarFile%  border=1

!--  img SRC=%=vScaleBarFile%  border=0 width=100 height=17/img --

 /td

 /tr

 trtd

 INPUT NAME=imgMap TYPE=image SRC=%=vMapFile%  width=600 height=400
border=0

 /td

 /tr

 trtd

INPUT NAME=imgLengd TYPE=image SRC=%=vLengdBarFile%   border=0

 /td

 td

INPUT NAME=vReferenceF TYPE=image SRC=%=vReferenceFile%   border=0

 /td

 /tr

 /table

/FORM

/BODY

/HTML

 

Thanks,

 

Venkat

GIS Developer

Hyderbad

India

 

 

From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Mukul Gupta
Sent: Friday, April 17, 2009 12:25 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Using JSP with ms4w

 

Hi
I am new to this mapserver thing and cant figure out how to work with JSP
instead of PHP for my GIS application development.I already have Tomcat 6
installed and its working fine. Tell me how to configure it so that it will
work with ms4w.Please also suggest some tutorials and examples for me to
start working.
--Mukul

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


RE: [mapserver-users] hiow can i convert mapinfo workspace to mapserver mapfile?

2009-04-06 Thread Venkat Rao Tammineni
Hi 

FONTSET ..\etc\fonts.txt and SYMBOLSET ..\etc\shade.sym are file formats
that you need write in separate. Go through the mapserver url check symbols
and fonts .you will get good from there only.


Thanks
Venkat.



-Original Message-
From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of meenu
Sent: Monday, April 06, 2009 12:26 PM
To: mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] hiow can i convert mapinfo workspace to
mapserver mapfile?


hi friend i did this method and succeeded...i am facing one problem for
allocating font and symbol set from mapinfo...in mapinfo i didnt findout any
folder which is containing fonts.txt and  shade.sym...how can i solve this
problem?

FONTSET ..\etc\fonts.txt
SYMBOLSET ..\etc\shade.sym




-
Meenu
-- 
View this message in context:
http://n2.nabble.com/hiow-can-i-convert-mapinfo-workspace-to-mapserver-mapfi
le--tp2591481p2591585.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] some doubts about mapserver website

2009-04-05 Thread Venkat Rao Tammineni
HI,

 1) Whatever the data data your sending through mapfile ,is converting into
image format like png etc

2) the image format is gis database.mapfile will take care all.. and
data(TAB) will be in your folder only.and if it is
database(Postgre/PostGIS).the data will be on the same database.

3)for your third question , I don't have that much knowledge...but as per my
knowledge mapserver will support Arabic fonts.

4) yes and mapfile also will do the same functionalities...


Thanks
Venkat.

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of meenu
Sent: Monday, April 06, 2009 10:29 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] some doubts about mapserver website


hi all... 
can anybody help me to answer some questions about maserver website... 
i created one mapserver website using c#mapscript in vs2005 with the use of
mapinfo .TAB files.web is loading fine with basic requirements...now i
have some doubts... 

1.what is the format of gis data which is showing in to the website??? 
2.where is the database of gis data??whether the database is  data folder of
mapinfo or not??? 
3.whther mapserver support arabic fonts done by mapinfo?? 
4.how this gisdata coming to mapserver website(using mapscript)??is any
diagram available in net? 


regards 
meenu 
-- 
View this message in context:
http://n2.nabble.com/some-doubts-about-mapserver-website-tp2591355p2591355.h
tml
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] mapserver with mapinfo gis data file

2009-04-02 Thread Venkat Rao Tammineni
Hi,

   Can you debug vs.net application, so that you come to know the error.I
think the error is from your connection path.. you have given like
Mapserver(5.2.1)-Mapscript mapserve may not accept the same path.Please
clear with the path.


Thanks,
Venkat

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of meenu
Sent: Thursday, April 02, 2009 1:32 PM
To: mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] mapserver with mapinfo gis data file



hi friend
i added 4 mapinfo files (admin_o.MAP,admin_o.TAB,admin_o.DAT,admin_o.ID )
in to the data folder of TutorialMapServerSolution project...then i added
the coding in to the csharptutorial.map file is as follows...no error is
getting...but this layer is not showing in to the map...what is the reason
behind this any idea???is any other OGR files required to be added in to
this project???

LAYER 
NAME admin_o
TYPE POLYGON 
STATUS DEFAULT 
CONNECTIONTYPE OGR 
CONNECTION C:\Mapserver(5.2.1)-Mapscript\data\admin_o.TAB 
STYLEITEM AUTO 
CLASS 
NAME admin_o 
END 
END # Layer 


with regards


-- 
View this message in context:
http://n2.nabble.com/mapserver-with-mapinfo-gis-data-file-tp2568491p2573915.
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] how can i create mapserver website in VS 2005 (VB)

2009-04-01 Thread Venkat Rao Tammineni
Hi,

  If your using VS.net, You will have IIS.You need not bother about
Installations and all .One more is your are not working with CGI.is it ? If
you are working with any open source webservers like apache tamcat etc.. You
need to go through the installation and all.For  VS.Net u need only dll.

Thanks
Venkat.

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of meenu
Sent: Wednesday, April 01, 2009 3:19 PM
To: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] how can i create mapserver website in VS 2005
(VB)


dear friend thank u very much for ur detailed reply...i got all ur
points...shall i ask one more question...mapserver installation is not
required in c: if we use both cgi or mapscript...then y in all mapscript
documentaion they are telling to install ms4w and sample application and
apache(http://spatialhorizons.com/2007/05/19/mapserver-1-10-minute-tutorial/
)
-- 
View this message in context:
http://n2.nabble.com/how-can-i-create-mapserver-website-in-VS-2005-%28VB%29-
tp2516841p2568148.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] mapserver with mapinfo gis data file

2009-04-01 Thread Venkat Rao Tammineni
Hi,

  Please refer this url  http://mapserver.org/input/vector/mapinfo.html

Thanks

Venkat,

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of meenu
Sent: Wednesday, April 01, 2009 5:05 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] mapserver with mapinfo gis data file


hi advance thanks to all...i did one website using vs2005 C#  using the
available project TutorialMapServer...everything is working fine ...based on
the available data folder...now my requirement is i have a set of gis data
and map done by mapinfo professional...each layer have 4
files(DAT,.ID,.MAP,.TAB),how can i add this layers in to this
application...can anybody help me for this...
-- 
View this message in context:
http://n2.nabble.com/mapserver-with-mapinfo-gis-data-file-tp2568491p2568491.
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] Hide legend of some layers

2009-03-18 Thread Venkat Rao Tammineni
Hi,

 

 

  I have code for layers on  and off 

 

 

public static  void layersTurnOn(mapObj map,layerObj layer)

{

layer = map.getLayerByName(Continents);

layer.status=(int)mapscript.MS_ON;

layer = map.getLayerByName(Countries);

layer.status=(int)mapscript.MS_ON;

}

 

  public static  void LayersTurnOff(mapObj map,layerObj layer)

{

layer = map.getLayerByName(Continents);

layer.status=(int)mapscript.MS_OFF;

layer = map.getLayerByName(Countries);

layer.status=(int)mapscript.MS_OFF;

}

 

These two methods  you have to call  LayersTurnOff()  before creating legend
and you can  layersTurnOn()

Layers

 

 

Thanks

Venkat.

From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Alberto
Fernández Sánchez
Sent: Wednesday, March 18, 2009 3:19 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Hide legend of some layers

 

Hello friends,

I need help because I have a doubt in the redaction of mapfile. How I can
hide the legend of some layers or classes of layers? 
Thank you.



  _  

Nuevo Windows Live, un mundo lleno de posibilidades Descúbrelo.
http://www.microsoft.com/windows/windowslive/default.aspx 

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


RE: [mapserver-users] cannot able to test the mapfile-database eror

2009-03-16 Thread Venkat Rao Tammineni
Hi,

 

The Problem may be either u don't have  geom. Or find out whether geom.
Field is existed or not ? or you have to use SRID.Please check my map file
below I have given

 

MAP

  NAME Test

  STATUS ON

  SIZE 650 400

  UNITS dd

  IMAGECOLOR 102 153 153

  EXTENT 64.881 5.469 97.898 37.762

 

  PROJECTION

'proj=longlat'

'ellps=WGS84'

'datum=WGS84'

'no_defs'

''

  END

 

SYMBOL

  NAME border

  TYPE VECTOR

  POINTS

0 0

1 0

1 0.8

0 0.8

0 0

  END

  STYLE

10 6 1 6

  END

  FILLED TRUE

END

 

 

 

  # Background color for the map canvas -- change as desired

 # IMAGECOLOR 192 192 192

  IMAGEQUALITY 95

 

  IMAGETYPE png

  OUTPUTFORMAT

   NAME jpeg

   DRIVER GD/JPEG

   MIMETYPE image/jpeg

   IMAGEMODE RGB

   EXTENSION jpg

END

 

SCALEBAR

INTERVALS 2

UNITS kilometers

STYLE 1

POSITION lc

STATUS embed

  LABEL

SIZE small

COLOR 0 0 0

  END

END

  

 

LAYER

NAME India

TYPE POLYGON

CONNECTIONTYPE POSTGIS

CONNECTION host=localhost   dbname=GIS  password=administrator
user=postgres port=5432

Data the_geom from (select
gid,name,pincode,district,address,website,phnumber,areaname,category,longitu
de,latitude,metroname,the_geom from indiaparks) as Foo USING UNIQUE gid
USING 'srid=24047'  

 

STATUS ON

TRANSPARENCY 40

MinScale 7054330

   LABELITEM cntry_name #label Item

   CLASSITEM cntry_name 

   TEMPLATE query.html 

   CLASS

  NAME 'India' 

   STYLE

 SYMBOL border

 SIZE 6

 OUTLINECOLOR 0 0 0

 COLOR 251 252 179

END

  LABEL  #label class start

  POSITION auto #label Position

  FONT sans

  SIZE SMALL #lable size

  COLOR 0 38 237 # label color

END   # label end



   END

END

  END

END

 

 

Thanks

Venkat.

 

From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of syed mohseen
Sent: Monday, March 16, 2009 11:01 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] cannot able to test the mapfile-database eror

 

hi all,
i am a new bie to fgs and i want to test one of my mapfile with
connecting to my database.
here is my mapfile


NAME test
SIZE 800 600
IMAGECOLOR 249 245 186
IMAGETYPE png
EXTENT -1.00 -1.00 1.00 1.00
LAYER
CONNECTIONTYPE postgis
NAME test
CONNECTION user=postgres password=hellopostgres dbname=postgres
host=localhost
DATA geom FROM test
STATUS ON
TYPE POINT
   END
END



whenever i test the file as shp2img i get the following error


msDrawMap(): Image handling error. Failed to draw layer named 'test'. br
prepare_database(): Query error. Error executing POSTGIS DECLARE (the actual
query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT
asbinary(force_collection(force_2d(geom)),'NDR'),OID::text from test WHERE
geom  setSRID('BOX3D(-1.3338898163606 -1,1.3338898163606 1)'::BOX3D,
find_srid('','test','geom') )' 

Postgresql reports the error as 'ERROR:  find_srid() - couldnt find the
corresponding SRID - is the geometry registered in the GEOMETRY_COLUMNS
table?  Is there an uppercase/lowercase missmatch?
'

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.
 br




   any solutions will be appreciated


   regards
   SyedMohseen

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


RE: [mapserver-users] mapscript + openlayers

2009-03-04 Thread Venkat Rao Tammineni
Hi,

 

Please refer  url  http://openlayers.org/dev/examples/

 

Thanks

Venkat.

 

 

 

From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Binay Raja.
Shrestha
Sent: Thursday, March 05, 2009 9:47 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] mapscript + openlayers

 

Dear sir,

I am using mapserver and C#mapscript. Can I use openlayers javascript with
c#mapscript.

If it is possible can u provide me any tutorials or links useful for
development.

 

Thank you.

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


[mapserver-users] How to display multiple labels in single layer in Mapfile

2009-02-05 Thread Venkat Rao Tammineni
Dear All,

 

Is it possible to display  two labels that is (Country name and
Population) and the country name and population is in separate columns .

 

 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


RE: [mapserver-users] How to display multiple labels in single layer in Mapfile

2009-02-05 Thread Venkat Rao Tammineni
Dear Michael,


  Thanks for your great response. I am not clear with you answer. But what I
need is I need to display two labels in single shape in a single layer.I
mean do we have any option set labelitem as multiple colums.now the
labelitem is taking single column.

Please guide me.

Thanks and Regards
Venkat.

-Original Message-
From: mandsch...@googlemail.com [mailto:mandsch...@googlemail.com] On Behalf
Of Michael Schulz
Sent: Thursday, February 05, 2009 3:55 PM
To: Venkat Rao Tammineni
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] How to display multiple labels in single
layer in Mapfile

Hi Venkat,

you can use

TEXT ([FIRSTNAME],[LASTNAME]) in the CLASS context.

See here: http://mapserver.org/mapfile/class.html

Cheers, Michael


2009/2/5 Venkat Rao Tammineni vtammin...@roulacglobal.com:
 Dear All,



 Is it possible to display  two labels that is (Country name and
 Population) and the country name and population is in separate columns .



  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





-- 
---
Michael Schulz
msch...@webgis.de

in medias res
Gesellschaft für Informationstechnologie mbH

In den Weihermatten 66
79108 Freiburg

Tel  +49 (0)761 556959-5
Fax +49 (0)761 556959-6

http://www.webgis.de / http://www.zopecms.de
---
Geschäftsführer: Stefan Giese, Dr. Christof Lindenbeck
Eingetragen im Handelsregister HRB 5930 beim Amtsgericht Freiburg

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


[mapserver-users] How to get Layers By Group

2009-02-05 Thread Venkat Rao Tammineni
Dear All,

 

 

   How  can I retrieve layers  by Group Name. And how to loop these layers
based on group. Where I can able to  switch on and swatch off the layers
based on Group.I have Group property in my mapfile .but I don't  know how to
get layers and populate some control(tree view or some other).

 

 

Please anyone can guide 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


RE: [mapserver-users] How to get Layers By Group

2009-02-05 Thread Venkat Rao Tammineni
Dear Gregor,


Thanks for your great response.

The below is my code to retrieve layer based on layer index and I am
populating into checkboxes

for (int i = 0; i  map.numlayers; i++)
{
   layer = map.getLayer(i);
   cbLayer.Items.Add(layer.name); //checkbox
   if (layer.status == (int)mapscript.MS_ON)
{
 cbLayer.Items[i].Selected = true;   //check box
}
}


Like that how can I populate layer names based on group into check box or
treeview.


Thanks
Venkat.



-Original Message-
From: Gregor at HostGIS [mailto:gre...@hostgis.com] 
Sent: Friday, February 06, 2009 9:31 AM
To: Venkat Rao Tammineni
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] How to get Layers By Group

Venkat Rao Tammineni wrote:
How  can I retrieve layers  by Group Name. And how to loop these 
 layers based on group. Where I can able to  switch on and swatch off the 
 layers based on Group.

A group is just a fake layer with many layers. You request a group in 
the same way as you would a layer; the only change is that you use the 
group name and will get all the layers mixed together.

Example:

LAYER
   NAME roads
   GROUP usamap
END
LAYER
   NAME lakes
   GROUP usamap
END
LAYER
   NAME cities
   GROUP usamap
END

I would then request layers=usamap and magically get all three layers 
merged into one request.


 I have Group property in my mapfile .but I don't 
 know how to get layers and populate some control

As to generating a control, that's the same as with layers as well 
except that you would use getAllGroupNames() instead of 
getAllLayerNames() But that depends on your own programming style and goals.

-- 
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] Different SIZEUNITS for line width and label fontsize

2009-02-03 Thread Venkat Rao Tammineni
Hi,


  Please refer below url

http://mapserver.org/mapfile/symbology/construction.html


I hope this helps you.


Thanks
Venkat.

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Vladimir
Cvejanovic
Sent: Tuesday, February 03, 2009 4:47 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Different SIZEUNITS for line width and label
fontsize

Hi All,

In the Mapfile, Is it possible to have different SIZEUNTIS for line 
width and label font in the same layer? The example is below.

I have managed to solve this by defining two layers one which only 
displays the line and one which only displays the labels however this 
seems like a hack and very inefficient from a processing / querying 
point of view.

The context is a line layer containing road lines which have a width in 
meters but labels in pixels. This would make things scale nicely Can 
this be done? Does anyone have a better approach?

Thanks,
Vladimir

LAYER
NAME 'highway'
TYPE LINE
DATA 'highway.shp'

STATUS DEFAULT
TRANSPARENCY 30

LABELITEM NAME
SIZEUNITS meters

CLASS
   NAME 'highway'
   STYLE
 WIDTH 5 #WANT THESE TO BE METERS
 COLOR 55 55 55
   END
   LABEL
TYPE TRUETYPE
FONT FreeSans
SIZE 08 # WANT THESE TO BE PIXELS
COLOR 0 0 0
OUTLINECOLOR 255 255 255
ANTIALIAS TRUE
ANGLE AUTO
MINFEATURESIZE AUTO
FORCE true
  END
END
  END
___
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] shapefile location

2009-01-27 Thread Venkat Rao Tammineni
Hi,

 

  As per knowledge it is not possible. Or you may try by computer name...

 

Thanks

Venkat.

 

From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Valeria Muñoz
Sent: Tuesday, January 27, 2009 5:57 PM
To: mapserver-users
Subject: [mapserver-users] shapefile location

 

Hi...

 

 I have a problem. can i call the shapes file from other server?,
example:

 

SHAPEPATH http://192.168.51.188/shapes/;

 

RG.

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


[mapserver-users] Number of users are connected

2009-01-27 Thread Venkat Rao Tammineni
Dear All,

 

 

  I have developed web application using  C# asp.net and postgresql/postgis.
I have deployed in IIS .if my 10 people connected my url.  I am getting
error called More  number users are connected .I don't  know, how to solve
the problem. And sometimes I am getting error called   connection pooled.

 

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


RE: [mapserver-users] Number of users are connected

2009-01-27 Thread Venkat Rao Tammineni
Sir,

  I am using C# npgsql.dll I am getting this errorTimeout while getting
a connection from pool  sometimes. but not  every time.

 

Here is my code to connect database

 

My connection string in web config 

 add key=ConnectionString value=Server=localhost;port=5432;User
Id=postgres;password=mytest;Database=GIS;/

 

And here is my code to connect database.

public  NpgsqlConnection PgSqlDataConnection()

 {

if (pgSqlConnection != null)

{

if (pgSqlConnection.State == ConnectionState.Open)

{

pgSqlConnection.Close();

pgSqlConnection.Dispose();

}

}

pgConnectionString =
ConfigurationSettings.AppSettings[ConnectionString].ToString();

pgSqlConnection = new NpgsqlConnection(pgConnectionString);



pgSqlConnection.Open();

   

return pgSqlConnection;

  }

 

 

I don't know where I am doing wrong ?Please guide me .

I am waiting for your great response.

 

Thanks,

Venkat

 

 

From: Tamas Szekeres [mailto:szeker...@gmail.com] 
Sent: Tuesday, January 27, 2009 8:12 PM
To: Venkat Rao Tammineni
Cc: mapserver-users
Subject: Re: [mapserver-users] Number of users are connected

 

Hi,

IIS on Windows XP is limited to 10 concurrent users, however you shouldn't
find such problems with a Windows Server OS.

Best regards,

Tamas




2009/1/27 Venkat Rao Tammineni vtammin...@roulacglobal.com

Dear All,

 

 

  I have developed web application using  C# asp.net and postgresql/postgis.
I have deployed in IIS .if my 10 people connected my url.  I am getting
error called More  number users are connected .I don't  know, how to solve
the problem. And sometimes I am getting error called   connection pooled.

 

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


RE: [mapserver-users] Question about formats

2009-01-26 Thread Venkat Rao Tammineni
Hi,

 

 

  As per my Knowledge, mapserver will not take dxf file formats. You have to
convert  into shape file and you can use the shp as you input.

 

Thanks and regards

Venkat.

 

 

From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of David Martinez
Morata
Sent: Monday, January 26, 2009 9:52 PM
To: mapserver
Subject: [mapserver-users] Question about formats

 

Hello.

I have a question about the input formats  for Mapserver.
They take de dxf format?

Thanks

-- 
Martinez Morata David
Thinking GIS

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


RE: [mapserver-users] Need Help with Custom (Raster) Data as Input

2009-01-20 Thread Venkat Rao Tammineni
Hi,

 

  You can use raster data .but here I have some questions 

 

1)  The is georefrenced ? 

2)  Is data is projected ?

 

 

If it is you can use raster data into mapserver..

 

If you have done all above things , refer below url

 

  

 http://mapserver.org/input/raster.html#how-are-rasters-added-to-a-map-file

 

I hope this will help you.

 

Thanks,

Venkat

 

From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Muizudeen
Kusimo
Sent: Tuesday, January 20, 2009 2:15 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Need Help with Custom (Raster) Data as Input

 

Hello Everyone,

I am new to MapServer, however I am working on an application that is
similar to Google Maps albeit with my own custom maps.

The problem is:

1) I have several maps mostly in .jpeg format and would like to use them as
Data Inputs for this Web Application. I can't seem to get it done correctly.
Must I convert these maps to a SHAPEFILE i.e. .shp or what? If so, how do I
convert them?

My development platform is:

- Microsoft Windows XP
- Ka-Map
- MapServer (MS4W)

Thanks.

NB: I am re-reading the documentation for a solution.

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


RE: [mapserver-users] How to Remove Layer

2009-01-18 Thread Venkat Rao Tammineni
Dear ciao,

  Its working great, Thanks a lot...

 Here is my code

   layer = Map.getLayerByName(test);
   Map.removeLayer(layer.index);

Thanks again

Regards,
Venkat 


-Original Message-
From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Pietro
Giannini
Sent: Friday, January 16, 2009 5:56 PM
To: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] How to Remove Layer

?php
$layerObj = $mapObj-getLayerByName(NameOfTheLayer);
$mapObj-removeLayer($layerObj-index);
?
C# is similar.

ciao
..pg


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


On Ven, Gennaio 16, 2009 07:09, Venkat Rao Tammineni wrote:
 Dear All,



   How to remove layer based on not based on index. Is it possible to
 remove
 layer based on name.



 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 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] What is the size limit in KB for a map file and how can I increase this limit?

2009-01-15 Thread Venkat Rao Tammineni
Hi

You can you different mapfiles for different layer by using INCLUDE
property. So that map file looks simple.  You have to call this property in
Main mapfie.

 

Exp :-   INCLUDE Test.map

 

I hope this helps you ..

 

Thanks

Venkat.

 

From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of John Mitchell
Sent: Thursday, January 15, 2009 3:35 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] What is the size limit in KB for a map file and
how can I increase this limit?

 

Hi,

What is the size limit in KB for a map file and how can I increase this
limit?

Thanks,

John

-- 
John J. Mitchell

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


RE: [mapserver-users] newbie: Error in first atttempt to use postgis with mapserver?

2009-01-15 Thread Venkat Rao Tammineni
Hi,

 

  I think OID column may not be with your table.Can you check that ..

 

Thanks

Venkat.

 

From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Saka Royban
Sent: Thursday, January 15, 2009 3:36 PM
To: MapServer
Subject: [mapserver-users] newbie: Error in first atttempt to use postgis
with mapserver?

 

Hi everyone.
i've used workshop material of FOSS4G2007 (PostGIS workshop)to learn postgis
along with its data. but there is a problem
i got this error in first attempt to retrieve data from postgis:

msDrawMap(): Image handling error. Failed to draw layer named
'bc_municipality'. prepare_database(): Query error. Error declaring cursor:
ERROR: column oid does not exist LINE 1:
...inary(force_collection(force_2d(the_geom)),'NDR'),OID::text ... ^ With
query string: DECLARE mycursor BINARY CURSOR FOR SELECT
asbinary(force_collection(force_2d(the_geom)),'NDR'),OID::text from
bc_municipality WHERE the_geom  setSRID('BOX3D(458426.1
260651.497368421,1943216.4 1373313.90263158)'::BOX3D,
find_srid('','bc_municipality ','the_geom') )
msPOSTGISLayerRetrievePGVersion(): Query error. Error executing POSTGIS
statement (msPOSTGISLayerRetrievePGVersion():select substring(version() from
12 for (position('on' in version()) - 13)) 

i don't know what causes the problem although it sounds easy.
THX







-Inline Attachment Follows-

___
postgis-users mailing list
postgis-us...@postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users

 

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


[mapserver-users] How to Remove Layer

2009-01-15 Thread Venkat Rao Tammineni
Dear All,

 

  How to remove layer based on not based on index. Is it possible to remove
layer based on name.

 

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] How to work with joins in Mapfile using Postgresql

2009-01-05 Thread Venkat Rao Tammineni
Dear All,

 

 How  can I use join in Mapfile .I am using Postgresql/postgis. I have two
tables .One table contains Spatial data and another table contains
Non-Spatial data. I want to join both two tables and I need display map. How
can I do this .Any can guide 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


RE: [mapserver-users] How to work with joins in Mapfile using Postgresql

2009-01-05 Thread Venkat Rao Tammineni
Dear Richard Duivenvoorde,

 Thanks for your great response.I am working on that , I will let you know
if I get any problem about this.

Thanks again

Regards,
Venkat.



-Original Message-
From: Richard Duivenvoorde [mailto:rdmaili...@duif.net] 
Sent: Monday, January 05, 2009 4:05 PM
To: Venkat Rao Tammineni
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] How to work with joins in Mapfile using
Postgresql

Hi Venkat,

isn't it possible to make a 'view' using a normal join-query?
and then use the view as your spatial tabledata?

There is something in the mapserver docs about it too:
http://mapserver.org/input/vector/postgis.html

Regards,
Richard Duivenvoorde

Venkat Rao Tammineni wrote:
 Dear All,
 
  
 
  How  can I use join in Mapfile .I am using Postgresql/postgis. I have 
 two tables .One table contains Spatial data and another table contains 
 Non-Spatial data. I want to join both two tables and I need display map. 
 How can I do this .Any can guide 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 mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


RE: [mapserver-users] How to Create Legend for Single Layer

2008-12-23 Thread Venkat Rao Tammineni
Hi,

 Thanks  for your great response.I  am not using CGI.I am using  asp
C#.net.I have created a method which generates legend.But it is doing for
all the layers.And my layer does  the expression property.based on the
expression I m displaying polygon.

   Below code is for trying to get legend for single layer.But it is not
working.

layer = MapFunction.Map.getLayerByName(TestLayer);
classObj classLegend = new classObj(layer);
imageObj imagelegend = MapFunction.Map.drawLegend();
string strFile =C:\\temp\\test.png;
imagelegend.save(strFile,MapFunction.Map);


Thanks
Venkat.


-Original Message-
From: Subha Ramakrishnan [mailto:su...@gslab.com] 
Sent: Tuesday, December 23, 2008 2:00 PM
To: Venkat Rao Tammineni
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] How to Create Legend for Single Layer

Hi,

You can do so using mode=legend request. Eg: 
http://localhost/cgi-bin/mapserv?mode=legendmap=mapfilelayer=layer_name;
This will give the legend only for the layer that you pass in the url.

In addition to this, is there a facility to generate legend for a layer 
with a filter, where the filter takes in parameters passed from URL to 
generate polygons??

Thanks  regards,
Subha

Venkat Rao Tammineni wrote:

 Dear All,

  

   I want to create Legend for Single layer. I have 5 layers on my Map. 
 But I  need to generate legend for single layer. Is it possible to 
 generate Legend for single layer. If some one done the same task. 
 Please let me know.

  

  I am waiting for your great response.

  

 Thanks,

 Venkat.


 -- 
 This message has been scanned for viruses and
 dangerous content by *MailScanner* http://www.mailscanner.info/, 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


RE: [mapserver-users] How to Create Legend for Single Layer

2008-12-23 Thread Venkat Rao Tammineni
Dear Sir,

  Thanks for your great response.I have done. It is working fine.

Thanks again,
Venkat.

-Original Message-
From: bart...@osgis.nl [mailto:bart...@osgis.nl] 
Sent: Tuesday, December 23, 2008 2:11 PM
To: Venkat Rao Tammineni
Cc: 'Subha Ramakrishnan'; mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] How to Create Legend for Single Layer

Before you call drawLegend, change the visibility of all other layers to
false (status == MS_OFF), the legend only draws for the visible layers.

When you're done, restore the visibility.

Best regards,
Bart

 Hi,

  Thanks  for your great response.I  am not using CGI.I am using  asp
 C#.net.I have created a method which generates legend.But it is doing for
 all the layers.And my layer does  the expression property.based on the
 expression I m displaying polygon.

Below code is for trying to get legend for single layer.But it is not
 working.

 layer = MapFunction.Map.getLayerByName(TestLayer);
 classObj classLegend = new classObj(layer);
 imageObj imagelegend = MapFunction.Map.drawLegend();
 string strFile =C:\\temp\\test.png;
 imagelegend.save(strFile,MapFunction.Map);


 Thanks
 Venkat.


 -Original Message-
 From: Subha Ramakrishnan [mailto:su...@gslab.com]
 Sent: Tuesday, December 23, 2008 2:00 PM
 To: Venkat Rao Tammineni
 Cc: mapserver-users@lists.osgeo.org
 Subject: Re: [mapserver-users] How to Create Legend for Single Layer

 Hi,

 You can do so using mode=legend request. Eg:

http://localhost/cgi-bin/mapserv?mode=legendmap=mapfilelayer=layer_name;
 This will give the legend only for the layer that you pass in the url.

 In addition to this, is there a facility to generate legend for a layer
 with a filter, where the filter takes in parameters passed from URL to
 generate polygons??

 Thanks  regards,
 Subha

 Venkat Rao Tammineni wrote:

 Dear All,



   I want to create Legend for Single layer. I have 5 layers on my Map.
 But I  need to generate legend for single layer. Is it possible to
 generate Legend for single layer. If some one done the same task.
 Please let me know.



  I am waiting for your great response.



 Thanks,

 Venkat.


 --
 This message has been scanned for viruses and
 dangerous content by *MailScanner* http://www.mailscanner.info/, 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



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


[mapserver-users] How to Create Legend for Single Layer

2008-12-22 Thread Venkat Rao Tammineni
Dear All,

 

  I want to create Legend for Single layer. I have 5 layers on my Map. But I
need to generate legend for single layer. Is it possible to generate Legend
for single layer. If some one done the same task. Please let me know.

 

 I am waiting for your great response.

 

Thanks,

Venkat.

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


RE: [mapserver-users] can we use variable in map file

2008-12-19 Thread Venkat Rao Tammineni
Hi,

 

 You have to create empty mapfile using point type and call the_geom
form table .access data from database based on variables.For that you have
to write code in your programming language. Exp C# etc.

 

Thanks

Venkat.

 

From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of muzaffar
hussain
Sent: Friday, December 19, 2008 2:59 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] can we use variable in map file

 

hi all
can we use variable in POINTS of map file.for example 

POINTS variable,variable 

usually we use constant like this

POINTS 12,13

variable should get from  database

any one who have any idea or example code pls send it to me.


thanks in advance

muzaffar



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


[mapserver-users] How can i use MapServer dbox for C# asp.net

2008-12-18 Thread Venkat Rao Tammineni
Dear All,

 

   I found url ,it looks good

(Smoot zoom and pan etc..)
http://maps.dnr.state.mn.us/tools/dbox/#introduction
http://maps.dnr.state.mn.us/tools/dbox/#introduction 

 

But I do not know how use in C# aps.net.If some one knows about ,please can
you guide me.

 

Advanced Thanks,

 

Regards

 

Venkat.

 

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


RE: [mapserver-users] Blank PostGIS Layer

2008-12-17 Thread Venkat Rao Tammineni
Hi,

Try this query  DATA the_geom FROM roads

Or

 Call all the fields(whatever the fields available in table) in select
query.

Thank,
Venkat.

  

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Ben Madin
Sent: Wednesday, December 17, 2008 12:18 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Blank PostGIS Layer

G'day all,

I am having generally excellent results with MapServer 5.2, but I am  
having a problem with a postgis layer not displaying, and no  
suggestion that it shouldn't from the logs.

I imported a shapefile :

shp2pgsql -s 4326 /Users/19022662/Geodata/healthmapper/LA/roads roads  
| psql prices

in postgres I gave permission for the mapserver user to select from it :

grant select on roads to gms_mapserver;

My map layer :

LAYER
STATUS DEFAULT
DEBUG 4
NAME Roads
GROUP Background
METADATA
layer_title Roads
END
CONNECTIONTYPE postgis
CONNECTION host=localhost port=5432 dbname=prices
password=badluck  
user=gms_mapserver
DATA the_geom FROM (
SELECT  gid, the_geom
FROMroads
) AS foo USING UNIQUE gid USING SRID=4326
#   DATA 'healthmapper/LA/roads'
TYPELINE
PROJECTION
init=epsg:4326
END
TRANSPARENCY 100
CLASS
  NAME  ROADS
  OUTLINECOLOR 255 255 255
  symbol 'dashed'
  COLOR 255 0 0
END
END

and I don't get the layer (even with everything else turned off);

Other postGIS polygon layers are showing fine.

If I load the data directly from the shapefile, it is fine

If I connect to the postgis layer from QGIS, it is fine.

Here is the dump from the error console

[Wed Dec 17 15:44:42 2008].96166 msPOSTGISLayerOpen called  
datastatement: the_geom FROM (
SELECT  gid, the_geom
FROMroads
) AS foo USING UNIQUE gid USING SRID=4326
[Wed Dec 17 15:44:42 2008].96664 MSPOSTGISLayerOpen -- shared  
connection not available.
[Wed Dec 17 15:44:42 2008].101270  
msConnPoolRegister(Roads,host=localhost port=5432 dbname=prices  
password=badluck user=gms_mapserver,0x101900400)
[Wed Dec 17 15:44:42 2008].101288 msPOSTGISLayerFreeItemInfo called
[Wed Dec 17 15:44:42 2008].101314 msPOSTGISLayerWhichShapes called
[Wed Dec 17 15:44:42 2008].101328 msPOSTGISLayerParseData: unique  
column = gid, srid='4326', geom_column_name = the_geom, table_name=(
SELECT  gid, the_geom
FROMroads
) AS foo
[Wed Dec 17 15:44:42 2008].101574 query_string_0_6:DECLARE mycursor  
BINARY CURSOR FOR SELECT  
asbinary(force_collection(force_2d(the_geom)),'NDR'),gid::text from (
SELECT  gid, the_geom
FROMroads
) AS foo WHERE the_geom 
setSRID('BOX3D(102.054844143416  
18.0123207848761,102.992352286832 18.7152227848761)'::BOX3D, 4326 )
[Wed Dec 17 15:44:42 2008].175520 msPOSTGISLayerFreeItemInfo called
[Wed Dec 17 15:44:42 2008].175539 msPOSTGISLayerClose datastatement:  
the_geom FROM (
SELECT  gid, the_geom
FROMroads
) AS foo USING UNIQUE gid USING SRID=4326
[Wed Dec 17 15:44:42 2008].175543 msPOSTGISLayerClose -- closing  
query_result
[Wed Dec 17 15:44:42 2008].175930  
msConnPoolRelease(Roads,host=localhost port=5432 dbname=prices  
password=badluck user=gms_mapserver,0x101900400)
[Wed Dec 17 15:44:42 2008].175940 msConnPoolClose(host=localhost  
port=5432 dbname=prices password=badluck user=gms_mapserver,0x101900400)
[Wed Dec 17 15:44:42 2008].176004 msDrawMap(): Layer 8 (Roads), 0.080s
[Wed Dec 17 15:44:42 2008].215812 msDrawMap(): Drawing Label Cache,  
0.000s
[Wed Dec 17 15:44:42 2008].215824 msDrawMap() total time: 0.121s
[Wed Dec 17 15:44:42 2008].227155 msSaveImage() total time: 0.011s
[Wed Dec 17 15:44:42 2008].230642 msSaveImage() total time: 0.001s
[Wed Dec 17 15:44:42 2008].234008 mapserv request processing time  
(loadmap not incl.): 0.139s
[Wed Dec 17 15:44:42 2008].234016 msFreeMap(): freeing map at  
0x10180e200.
[Wed Dec 17 15:44:42 2008].234020 msPOSTGISLayerClose datastatement:  
the_geom FROM (
SELECT  gid, the_geom
FROMroads
) AS foo USING UNIQUE gid USING SRID=4326
[Wed Dec 17 15:44:42 2008].234023 msPOSTGISLayerClose -- layerinfo is   
NULL

If I copy and paste the query, I get data (I have no way of knowing if  
it is OK) :

| 16899
   
\001 
\007 
\000 
\000 
\000 
\001 
\000 

[mapserver-users] How to Store Images(bmp) into PostgreSQL

2008-12-17 Thread Venkat Rao Tammineni
Dear All,

 

   How can I store Images into PostgreSQL  database. Anyone can guide me.

 

I am waiting for your great response.

 

Advanced Thanks,

Venkat.

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


[mapserver-users] Remove Layer based on layer Name C#

2008-12-16 Thread Venkat Rao Tammineni
 Dear All,

 

I want remove layer based on Layer Name.Now I Can able to
remove layer based on index.Is it possible to do.

 

layer = MapFunction.Map.getLayerByName(PointLayer);

 

MapFunction.Map.removeLayer(0);

 

Thanks

Venkat.

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


RE: [mapserver-users] Remove Layer based on layer Name C#

2008-12-16 Thread Venkat Rao Tammineni
Dear Sir

 

 Can you please tell me how remove specific layer or at least clear the
layer form map. I can able to clear the layer based on index.but if I click
clear layer button again it is clearing whatever the 0 position next layer.

 

 For example  my map contains  the layers called  Continents and
countries and states  that is like 

0 ,1, 2 position. If I want to remove continents (0) that is in 0 position ,
if I use MapFunction.Map.removeLayer(0); , it is working fine. If I Click
the same button again countries will be the second position then the country
layer is removing .but I want to remove single layer.

 

  protected void btnClearPointLayer_Click(object sender, EventArgs e)

{

if(Page.IsPostBack)

{

MapFunction.Map.removeLayer(0);

}

 

}



Is it Possible every time  same layer removable(dynamically the same layer
will be adding).

 

I am waiting for your great response.

 

Advanced Thanks

 

Regards

 

Venkat.

From: Tamas Szekeres [mailto:szeker...@gmail.com] 
Sent: Tuesday, December 16, 2008 10:03 PM
To: Venkat Rao Tammineni
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Remove Layer based on layer Name C#

 

Hi,

How about doing this?

layer = MapFunction.Map.getLayerByName(PointLayer);

MapFunction.Map.removeLayer(layer.index);


Best regards,

Tamas




2008/12/16 Venkat Rao Tammineni vtammin...@roulacglobal.com

 Dear All,

 

I want remove layer based on Layer Name.Now I Can able to
remove layer based on index.Is it possible to do.

 

layer = MapFunction.Map.getLayerByName(PointLayer);

 

MapFunction.Map.removeLayer(0);

 

Thanks

Venkat.


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

 

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


RE: [mapserver-users] How to get data based on Date in Postgresql/PostGIS

2008-12-15 Thread Venkat Rao Tammineni
Dear Thomas,

I am not getting Point layer.I am getting blank image.Below is my query.

Data the_geom from (select gid,the_geom from globalnews where
news_date='12/2/2008') as foo using unique gid using srid=3000

I don't know what is foo? I am getting confuse on this.
Globalnews is point layer and news_date is varchar type, is there any
problem with that?

Please let me know.give me some suggestion on this.

I am waiting for your great response.

Thanks,
Venkat.

-Original Message-
From: thomas bonfort [mailto:thomas.bonf...@gmail.com] 
Sent: Monday, December 15, 2008 11:57 AM
To: Venkat Rao Tammineni
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] How to get data based on Date in
Postgresql/PostGIS

try
DATA the_geom from (select id,the_geom from pointlayer where
date='12/2/2008') as foo using unique id using srid=

--
thomas

On Mon, Dec 15, 2008 at 06:32, Venkat Rao Tammineni
vtammin...@roulacglobal.com wrote:
 Dear All,



 I want get data based on Date. When  I run query  select * from
 PointLayer where news_date ='12/2/2008'; in postgre Query builder , it is
 working fine.



 When I try  the_geom from PointLayer  where  news_date='12/2/2008' I am
 not getting data(map).I don't know how to send  date parameter.is it
 possible ?if it is ..please let me know.



 Advanced thanks



 Venkat.

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



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


[mapserver-users] How to add different PIXMAP Symbols for Point Layer based on user click on map

2008-12-10 Thread Venkat Rao Tammineni
Dear All,

 

  How to add different types of PIXMAP Symbols to point layer based on user
click on the map. At present I can able to assign only single pixmap symbol.

 

Below is my code to load single symbol.

 

This is my mapfile code

 

Layer # Layer starts here

  Name PointLayer

 

 # POSTGRE SQL Server Connection


  ConnectionType POSTGIS

  Connection host=localhost dbname=GIS password=administrator user=postgres
port=5432

  Data the_geom from globalnews

 
#===


 

Type POINT

  Status ON

   TEMPLATE query.html  # temporary template file for Query map

End # end of the State Layer





 

 

And here I am loading  C# code

 

public static void LaodStyles(mapObj map,layerObj layer)

{



layer=map.getLayerByName(PoinLayer);

   

symbolObj getSymbol = new symbolObj(Symbol, null);

 

getSymbol.type = (int)MS_SYMBOL_TYPE.MS_SYMBOL_PIXMAP;

 

getSymbol.setImagepath(@\RIP\MapFile\round_push_2.gif);

 

getSymbol.sizex = 100;

 

getSymbol.sizey = 100;

 

map.symbolset.appendSymbol(getSymbol);

 

classObj clsObj = new classObj(layer);

 

clsObj.name = test;

 

styleObj symStyle = new styleObj(clsObj);

 

symStyle.symbolname = Symbol;

 

symStyle.symbol = map.symbolset.index(Symbol);

 

symStyle.size = 75; 



}

 

 

 

Please any can help me or at least suggest me something.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


RE: [mapserver-users] Re: Adding a buffer symbol

2008-12-08 Thread Venkat Rao Tammineni
Hi,

 

 http://mapserver.gis.umn.edu/docs/howto/cartosymbols

 

the above url  is for cartographic symbols.

 

Thanks

Venkat.

 

 

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of mark balman
Sent: Monday, December 08, 2008 4:53 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Re: Adding a buffer symbol

 

Hi Venkat

 

At the moment I am just using the CGI mapserver. I was wondering if this can
be done or ben achieved using Labels and symbols? but if needs be then I
guess either javascript or php would be used to do this.

 

Many thanks

 

Mark

On Mon, Dec 8, 2008 at 11:02 AM, mark balman [EMAIL PROTECTED] wrote:

Hi All

 

Having worked out how to display a selection of features within a mouse
click (passing the coordinates to postgis query) and colour coding these
using classitem for specified distances away from a mouse click e.g. within
1 decimal degree, within 2 decimal degrees and within 3 decimal degrees. I
am wondering how or if it is possible to create concentric circles
indicating the buffer distances?

 

Any ideas or pointers would be great!

 

Mark

 

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


RE: [mapserver-users] Adding a buffer symbol

2008-12-08 Thread Venkat Rao Tammineni
 

Hi,

 

   I don't know  which programming language your using .I have vb.net code .
if you can share that code it is working for me (buffer).

 

Thanks

Venkat.

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of mark balman
Sent: Monday, December 08, 2008 4:32 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Adding a buffer symbol

 

Hi All

 

Having worked out how to display a selection of features within a mouse
click (passing the coordinates to postgis query) and colour coding these
using classitem for specified distances away from a mouse click e.g. within
1 decimal degree, within 2 decimal degrees and within 3 decimal degrees. I
am wondering how or if it is possible to create concentric circles
indicating the buffer distances?

 

Any ideas or pointers would be great!

 

Mark

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


[mapserver-users] How to give QueryMap functionality for a particular Layer not for whole map

2008-12-05 Thread Venkat Rao Tammineni
Dear All,

 

  I want to assign  QueryMap or querymapObj for particular  layer in the
map. Is it possible ? I am using C# .net. or atleast  can I do something in
Mapfile ? Anyone has done the same task?

 

Please help me. I am waiting for your great response.

 

Thanks

Venkat.

 

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


RE: [mapserver-users] How to add point based on User interaction using C#

2008-12-01 Thread Venkat Rao Tammineni
Hi, Pietro Giannini,


  Thanks for great response. I have already done with my task.

Thanks
Venkat.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Pietro
Giannini
Sent: Friday, November 28, 2008 9:05 PM
To: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] How to add point based on User interaction
using C#

Hi Venkat.

I found this tutorial very useful:

http://www.paolocorti.net/public/wordpress/index.php/2006/09/20/mapserver-tu
torial-for-c-mapscript-asp-net/

It is exactly what you want, unfortunately it is not reachable now, maybe
a temporary server failure...

I made the same in php_mapscript, db was mysql. You have to do the porting:

___

// get the click point in pixel coordinates
// the imagebutton of the map is named mapimg
$clickX = $_REQUEST[mapimg_x];
$clickY = $_REQUEST[mapimg_y];

// create a pointobject and store coordinates in projected units
$ppPoint = ms_newpointobj();
$ppPoint-setXY(($oMap-extent-minx + ($oMap-cellsize * $clickX)),
   ($oMap-extent-maxy - ($oMap-cellsize *
$clickY)));

// create a lat lon projection
$olatlonProj = ms_newprojectionobj(proj=latlong,ellps=WGS84);

// get the map projection
$osProj = $oMap-getProjection();
$omapProj = ms_newprojectionobj($osProj);

// project the point in EPSG 4326, latlon wgs84
$ppPoint-project($omapProj,$olatlonProj);

// insert
$sql = INSERT INTO pushpins (lon,lat) VALUES ;
$sql .= (.$ppPoint-x.,.$ppPoint-y.);
$myconn = mysql_connect(mysql_host,mysql_user,mysql_pw);
mysql_select_db(mysql_db);
$res = mysql_query($sql);

// all done.
// only now redraw the map
$oImage = $oMap-draw();
$sImageUrl = $oImage-saveWebImage();
___


I hope this is useful

ciao
... pg




On Ven, Novembre 28, 2008 09:09, Venkat Rao Tammineni wrote:
 Dear All,



I want  to add point based on user click on the map.That point has to
 store in Postgresql/PostGIS.Is there anyone has done the same task.Please
 help me.



 It is urgent for me .please any can help me.or please guide me .



 I am waiting for your great response.





 Advanced Thanks

 Venkat.



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



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

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


[mapserver-users] How to add point based on User interaction using C#

2008-11-28 Thread Venkat Rao Tammineni
Dear All,

 

   I want  to add point based on user click on the map.That point has to
store in Postgresql/PostGIS.Is there anyone has done the same task.Please
help me.

 

It is urgent for me .please any can help me.or please guide me .

 

I am waiting for your great response.

 

 

Advanced Thanks

Venkat.

 

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


[mapserver-users] How to add point based on User interaction using C#

2008-11-27 Thread Venkat Rao Tammineni
Dear All,

 

   I want  to add point based on user click on the map.That point has to
store in Postgresql/PostGIS.Is there anyone has done the same task.Please
help me.

 

It is urgent for me .please any can help me.or please guide me .

 

I am waiting for your great response.

 

 

Advanced Thanks

Venkat.

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


RE: [mapserver-users] Obama Campaign - Mapping voters with Mapserver, PostGIS and Openlayers

2008-11-24 Thread Venkat Rao Tammineni
Hi Karsten,

 

  It looks great.

 

Thanks,

Venkat.

 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of karsten vennemann
Sent: Monday, November 24, 2008 3:06 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Obama Campaign - Mapping voters with Mapserver, 
PostGIS and Openlayers

 

I wanted to share this with you all. 

http://www.terragis.net/2008/11/24/obama-campaign-mapping-voters-with-mapserver-postgis-and-openlayers/

Karsten

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


RE: [mapserver-users] If any one has PDF of mapser book... plll send

2008-11-12 Thread Venkat Rao Tammineni
Hi,

 

  I  have hard copy with me .if you are  interested ,you can get  printout
of it.

 

Thanks

Venkat.

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Vikas KM
Sent: Wednesday, November 12, 2008 5:55 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] If any one has PDF of mapser book... plll send

 

Hi all...
  Those who have EBOOK of   Beginning MapServer:
Open Source GIS Developmentplzzz  mail. pdf chm any format
k...

 
--
Regards

Vikas KM

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


RE: [mapserver-users] How to set SCALEBAR size and intervals in MapServer CGI 5.0?

2008-11-11 Thread Venkat Rao Tammineni
HI,

 
http://mapserver.gis.umn.edu/docs/reference/mapfile/scalebar/?searchterm=sca
lebar

check above url.
Thanks,
Venkat

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of John Maurer
Sent: Wednesday, November 12, 2008 5:50 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] How to set SCALEBAR size and intervals in
MapServer CGI 5.0?

Dear MapServer Users,
Prior to MapServer 5.0, I could set the map scalebar size and intervals 
using CGI variables named map_scalebar_size and 
map_scalebar_intervals. After upgrading to 5.2.0, however, these 
variables are no longer recognized; I get an error saying 
loadScalebar(): Unknown identifier. Is it true that we can no longer 
reference map settings in this fashion? When I change these variables to 
map_scalebar=size+value+intervals+value it works, but this no longer 
fills in my template variables [map_scalebar_size] and 
[map_scalebar_intervals]. If I try using a template variable with 
[map_scalebar] instead, the value (e.g. 
size+width+height+intervals+value) doesn't seem to be interpreted by 
MapServer since the scalebar settings never get subsequently modified. 
What am I doing wrong?  Thanks for any insights!
Cheers,

-- 
John Maurer
Web/Database Applications Engineer
National Snow and Ice Data Center (NSIDC)
University of Colorado at Boulder
http://cires.colorado.edu/~maurerj
+1-303-586-1677

Without geography, you're nowhere!


___
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] point, polygon and line layers in single map file

2008-11-06 Thread Venkat Rao Tammineni
Hi,
  You want to store 3 type (point line polygon) in single table? if  it
is... It is not possible.. you can not store different data types(point line
polygon). As per my knowledge.

Or 
 You want create 3 types in a single layer ? it is possible. This common
approach..

Under map u can have any number of layers.

I hope u r clear with your doubt. let me know.

Thanks
Venkat

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of S.Reena
Sent: Thursday, November 06, 2008 5:16 PM
To: mapserver-users@lists.osgeo.org
Subject: [MAPSERVER-USERS] point,polygon and line layers in single map file


Hi All,

Is it possible to make a single map file having all the three types of
layers ( point, polygon and line) and if yes how to store that in
geometry_columns table in postgresql which gives duplication error ? 
-- 
View this message in context:
http://www.nabble.com/point%2Cpolygon-and-line-layers-in-single-map-file-tp2
0359604p20359604.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] Tracking vehicles, Displaying positions

2008-11-05 Thread Venkat Rao Tammineni
Hi,

 

   1)There are different ways to place GPS points on map.

 a)  You can display points using OGR direct connection, Please refer
below url

http://mapserver.gis.umn.edu/docs/howto/ogrmysql/?searchterm=ovf

 
http://mapserver.gis.umn.edu/docs/howto/debian-odbc-mysql/?searchterm=ovf

 
http://mapserver.gis.umn.edu/docs/reference/vector_data/VirtualSpatialData/?
searchterm=ovf

 

2)And You can not create DWG file by using mapfile.Mapfile will give you
image format.

Please have a look below url.

 

  http://mapserver.gis.umn.edu/docs/reference/vector_data/format_types

 

I hope this helps you.

 

Thanks,

Venkat

 



 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Carmelo
Saffioti
Sent: Wednesday, November 05, 2008 2:30 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Tracking vehicles, Displaying positions

 

Hi everybody,
I need to develop a system for tracking and displaying vehicles
positions. I'm storing NMEA gps sentences into a MySql DB. Now I'd
like to display these positions on a map. How can I do? I'm new to
this, can you give me any suggestion?
I have to create the map too, because this zone is not mapped. Is it
possible to create a map from a DWG cad file?

 

I hope you can help me
Cheers
Carmelo 

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


RE: [MAPSERVER-USERS] apache

2008-11-05 Thread Venkat Rao Tammineni
Hi,
   You need not to install apache.Once unzip the folder in Apache folder
contain  C:\MS4W\apache-install.bat, 
apache-restart.bat. You just run the that bat files. That's it will start.

Thanks
Venkat.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of lakku
Sent: Wednesday, November 05, 2008 5:17 PM
To: mapserver-users@lists.osgeo.org
Subject: [MAPSERVER-USERS] apache


hi all
i have a doubt
to install mapserver,first i have to install apache2.2.10  or its not
necessary?
plz tell me that

-- 
View this message in context:
http://www.nabble.com/apache-tp20340273p20340273.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] installation error

2008-11-04 Thread Venkat Rao Tammineni
Hi,

 http://dl.maptools.org/dl/ms4w/  .This url contains all versions of
mapserver. please download and extract somewhere in you local drive. Copy
the ms4w to C Drive.

Thanks
Venkat.



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of lakku
Sent: Tuesday, November 04, 2008 4:36 PM
To: mapserver-users@lists.osgeo.org
Subject: [MAPSERVER-USERS] installation error


hi all
 iam new to mapserver
 i have downloaded ms4w_2.3.0.zip file on desktop 
when i extract this file into C folder it is displaying error as cannot
create ms4w\apache\bin\httpd.exe access is denied plz tell me why it
happens
-- 
View this message in context:
http://www.nabble.com/installation-error-tp20320172p20320172.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] TEMP FOLDER

2008-10-26 Thread Venkat Rao Tammineni
Hi,

 

1) You can do that but Disc need to have more space , can you provide that
,if it is how many u can provide ? You need to think in that side.

2) I  don't have any idea about your second question.

3) Please check this url and Postgresql url u will get tutorial about
postgre  and postgis.
http://www.mapbender.org/presentations/Spatial_Data_Management_Arnulf_Christ
l/Spatial_Data_Management_Arnulf_Christl.pdf

 

About  PostGIS  http://postgis.refractions.net/download/postgis-1.3.3.pdf

 

 

 I hope it will help you .

 

Thanks ,

Venkat.

Hyderabad

India.

 

 

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of ntiamoah
bernard
Sent: Saturday, October 25, 2008 1:18 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] TEMP FOLDER

 


Hi guys, 

I need help on these questions

 

1. Is it possible for the files in the temp folder to overwrite themselves
without me going in and clearing all the time?

2. How do i change the image for draw polygon in the toolbar of geomoose?

3. i want to learn posgresql and postgis. Any suggestions

 

That's all guys thanks a lot

 

Bernard
Indiana

 

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


RE: [mapserver-users] Clear projection from layerObj

2008-10-26 Thread Venkat Rao Tammineni
Hi,

 

   Have you looked esri ArcGIS(arcCatlog) have the capability to remove or
clear the projection.

 

Thanks,

Venkat

Hyderabad,

India.

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Murty Maganti
Sent: Friday, October 24, 2008 9:17 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Clear projecton from layerObj

 

Hello 

 

How to remove (or clear) a projection information set to a layer using C#
map script. For example, I have set a projection information to a layer
using the code

 

layerObj.setProjection(init=EPSG:4326);

 

Now I want to clear this projection and set the layer to its original
(unknown )status. I don't find any API on the layerObj to clear the
projection information.

 

 

Thanks

Murty

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


RE: [mapserver-users] disk space

2008-10-23 Thread Venkat Rao Tammineni
Hi,

 

  Why don’t you write method  for deleting png .mapserver will take care about 
creating an image.I have  C# code.

The below code will delete all the files form OutputDIR.

 

I hope it helps you. Or At least you can get some idea about your task.

 

Thanks and Regards

Venkat.

 

public void Deleteimages()

{

try

{

foreach (string f in System.IO.Directory.GetFiles(OutputDir))

{

System.IO.File.Delete(f);

}

}

catch (Exception exp)

{ }

}

 

 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of valerio vianello
Sent: Thursday, October 23, 2008 4:25 PM
To: mapserver
Subject: [mapserver-users] disk space

 


Dear all,

I have a demo where I'm using mapserver cgi interface. I'm using the browse 
mode so each time mapserver receive a request, it creates a temporary png on 
the server filesystem. 

Do you know how and when i can delete those temporary image since they are used 
only one time ?  

An attacker could easily  fill all the server HD  locking all the system.

Thanks

Valerio

 

  _  

Scopri il Blog 
http://us.rd.yahoo.com/mail/it/taglines/yahoo/ymail/SIG=11djrg460/**http%3A%2F%2Fwww.ymailblogit.com%2Fblog%2F
  di Yahoo! Mail: trucchi, novità, consigli... e scrivi la tua opinione!

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


RE: [mapserver-users] disk space

2008-10-23 Thread Venkat Rao Tammineni
Hi,

   See after click or whatere it is …. OnOPageprerender Image will  be creating 
an image. And after creation image will be deleting.what my project is doing 
the same.I am giving that code.. below…

 

protected override void OnPreRender(EventArgs e)

{

LaodMainMap(ibMap); //Load MainMap by 

}

 

  public void LaodMainMap(System.Web.UI.WebControls.ImageButton imgMap)

{

MapFunction.Deleteimages();//delete Image form temp folder

string imageLoc;

string imageURL;

imageObj imgRef;

imgRef = MapFunction.Map.drawQuery();

imageLoc = MapFunction.OutputDir + / + 
System.DateTime.Now.ToBinary() + . + imgRef.format.extension;

imageURL = 
imageLoc.Substring(imageLoc.IndexOf(MapFunction.OutputDirURL));

imgRef.save(imageLoc, null);

ibMap.Width = imgRef.width;

ibMap.Height = imgRef.height;

ibMap.ImageUrl = imageURL;

MapFunction.IsMapInDirectory = false;

}

 

This on Page Load

//Temp folder for storing legend map and keymap temp files 

  MapFunction = new RoulacGIS.MapFunctionality(this.Page, 
Server.MapPath(_AppSetting.TempFolder),

_ AppSetting.TempFolder);

//initialize map control

//Load Map

try

{ LoadMap(); }

catch (Exception exp)

{ exp.Message.ToString(); }

 

//this is separate method for accessing mapfile

public void LoadMap()

{ MapFunction.Map = new mapObj(Server.MapPath(MapFile/) + 
_AppSetting.MapFilePath); } //create map instance

 

I hope this will help you.

 

Thanks and Regards,

Venkat.

 

From: valerio vianello [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 23, 2008 4:36 PM
To: 'mapserver'; Venkat Rao Tammineni
Subject: RE: [mapserver-users] disk space

 


Thanks for the quick reply,

When you run this function? after each requests ? but if so, the client is able 
to read the image before you delete it ?

best regards,

Valerio


--- Gio 23/10/08, Venkat Rao Tammineni [EMAIL PROTECTED] ha scritto:

Da: Venkat Rao Tammineni [EMAIL PROTECTED]
Oggetto: RE: [mapserver-users] disk space
A: [EMAIL PROTECTED], 'mapserver' mapserver-users@lists.osgeo.org
Data: Giovedì 23 ottobre 2008, 13:05

Hi,

 

  Why don’t you write method  for deleting png .mapserver will take care about 
creating an image.I have  C# code.

The below code will delete all the files form OutputDIR.

 

I hope it helps you. Or At least you can get some idea about your task.

 

Thanks and Regards

Venkat.

 

public void Deleteimages()

{

try

{

foreach (string f in System.IO.Directory.GetFiles(OutputDir))

{

System.IO.File.Delete(f);

}

}

catch (Exception exp)

{ }

}

 

 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of valerio vianello
Sent: Thursday, October 23, 2008 4:25 PM
To: mapserver
Subject: [mapserver-users] disk space

 


Dear all,

I have a demo where I'm using mapserver cgi interface. I'm using the browse 
mode so each time mapserver receive a request, it creates a temporary png on 
the server filesystem. 

Do you know how and when i can delete those temporary image since they are used 
only one time ?  

An attacker could easily  fill all the server HD  locking all the system.

Thanks

Valerio

 

  _  

Scopri il  
http://us.rd.yahoo.com/mail/it/taglines/yahoo/ymail/SIG=11djrg460/**http%3A%2F%2Fwww.ymailblogit.com%2Fblog%2F
 Blog di Yahoo! Mail: trucchi, novità, consigli... e scrivi la tua opinione!

 

  _  

Scopri il  
http://us.rd.yahoo.com/mail/it/taglines/yahoo/ymail/SIG=11djrg460/**http%3A%2F%2Fwww.ymailblogit.com%2Fblog%2F
 Blog di Yahoo! Mail: trucchi, novità, consigli... e scrivi la tua opinione!

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


RE: [mapserver-users] Image with different colors for different polygons

2008-09-29 Thread Venkat Rao Tammineni
Hi,

  Try this...

# World Sub Regions Layer starts here
LAYER
NAME Sub Regions 
CONNECTIONTYPE POSTGIS
CONNECTION host=192.168.1.158 dbname=GIS password=administrator
user=postgres port=5432
DATA the_geom from rgp_gis_subregions


TYPE POLYGON
STATUS ON
LabelItem ungs_csr
ClassItem ungs_csr

 CLASS   NAME 'Antarctica'
   EXPRESSION 'Antarctica'
   COLOR 182 252 183
   OUTLINECOLOR 110 110 110

  LABEL  #label start
POSITION auto
SIZE SMALL
COLOR 255 25 25
  END   # label end

 END  # CLASS

 CLASS   NAME 'Australia and New Zealand'
   EXPRESSION 'Australia and New Zealand'
   COLOR 252 215 247
   OUTLINECOLOR 110 110 110

  LABEL  #label start
POSITION auto
SIZE SMALL
COLOR 255 25 25
  END   # label end

   END  # CLASS

   CLASS   NAME 'Central  Africa'
   EXPRESSION 'Central  Africa'
   COLOR 252 249 207
   OUTLINECOLOR 110 110 110

  LABEL  #label start
POSITION auto
SIZE SMALL
COLOR 255 25 25
  END   # label end
   END  # CLASS


CLASS   NAME 'Central America'
   EXPRESSION 'Central America'
   COLOR 252 182 202
   OUTLINECOLOR 110 110 110

  LABEL  #label start
POSITION auto
SIZE SMALL
COLOR 255 25 25
  END   # label end

 END  # CLASS

 CLASS   NAME 'Central Asia'
   EXPRESSION 'Central Asia'
   COLOR 179 252 228
   OUTLINECOLOR 110 110 110

  LABEL  #label start
POSITION auto
SIZE SMALL
COLOR 255 25 25
  END   # label end
  END  # CLASS

  CLASS   NAME 'East Asia'
   EXPRESSION 'East Asia'
   COLOR 252 192 239
   OUTLINECOLOR 110 110 110

  LABEL  #label start
POSITION auto
SIZE SMALL
COLOR 255 25 25
  END   # label end

   END  # CLASS

   CLASS   NAME 'Eastern Africa'
   EXPRESSION 'Eastern Africa'
   COLOR 252 190 182
   OUTLINECOLOR 110 110 110

  LABEL  #label start
POSITION auto
SIZE SMALL
COLOR 255 25 25
  END   # label end

END  # CLASS

CLASS   NAME 'Eastern Europe'
   EXPRESSION 'Eastern Europe'
   COLOR 227 194 252
   OUTLINECOLOR 110 110 110

  LABEL  #label start
POSITION auto
SIZE SMALL
COLOR 255 25 25
  END   # label end

END  # CLASS

CLASS   NAME 'Latin  America and Caribbean'
   EXPRESSION 'Latin  America and Caribbean'
   COLOR 217 212 252
   OUTLINECOLOR 110 110 110

  LABEL  #label start
POSITION auto
SIZE SMALL
COLOR 255 25 25
  END   # label end

END  # CLASS
CLASS   NAME 'Melanesia'
   EXPRESSION 'Melanesia'
   COLOR 222 252 215
   OUTLINECOLOR 110 110 110

  LABEL  #label start
POSITION auto
SIZE SMALL
COLOR 255 25 25
  END   # label end

  END  # CLASS

 CLASS   NAME 'Northern  Africa'
   EXPRESSION 'Northern  Africa'
   COLOR 252 213 212
   OUTLINECOLOR 110 110 110

  LABEL  #label start
POSITION auto
SIZE SMALL
COLOR 255 25 25
 END# label end

  END  # CLASS

  CLASS   NAME 'Northern America'
   EXPRESSION 'Northern America'
   COLOR 252 234 215
   OUTLINECOLOR 110 110 110

  LABEL  #label start
POSITION auto
SIZE SMALL
COLOR 255 25 25
  END   # label end

  END  # CLASS
  CLASS   NAME 'Northern Asia and Eastern Europe'
   EXPRESSION 'Northern Asia and Eastern Europe'
   COLOR 184 179 252
   OUTLINECOLOR 110 110 110

  LABEL  #label start
POSITION auto
SIZE SMALL
COLOR 255 25 25
  END   # label end

  END  # CLASS

  CLASS   NAME 'Northern Europe'
   EXPRESSION 'Northern Europe'
   COLOR 184 197 252
   OUTLINECOLOR 110 110 110

  LABEL  #label start
POSITION auto
SIZE SMALL
COLOR 255 25 25
  END   # label end

  END  # CLASS

  CLASS   NAME 'Polynesia'
   EXPRESSION 'Polynesia'
   COLOR 222 252 179
   OUTLINECOLOR 110 110 110

  LABEL  #label start
POSITION auto
SIZE SMALL
COLOR 255 25 25
  END   # label end

   END  # CLASS
   CLASS   NAME 'South America'
   EXPRESSION 'South America'
   COLOR  252 179 246
   OUTLINECOLOR 110 110 110

  LABEL  #label start
POSITION auto
SIZE SMALL
COLOR 255 25 25
  END   # 

RE: [mapserver-users] example symbology files - points of interest

2008-09-22 Thread Venkat Rao Tammineni
Hi,

 

  QGIS is an open source desktop application.In that export to mapfile tools
is available .That would help you.

 

 Thanks and Regards

Venkat.

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mark Volz
Sent: Monday, September 22, 2008 7:42 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] example symbology files - points of interest

 

Hello,

 

I need to add points of interest on our mapserver site.  Some of the items
that I will need to show is an image for city hall, parks, schools,
hospitals etc.  Does anyone have an example on how I could go about doing
this?

 

Next, I would like to create a bike trail layer.  One of the items I would
like to do is have an recreational icon show up along the segment at a
given number of pixels on the map; ie every 3 inches on the screen.  I was
unsuccessful when I tried using pixels.  Has anyone had success doing this?

 

Last,

 

As a somewhat new user, I find that the first several map files were hard to
do.  Does anyone know of a good tool to work with to help create mapfiles?  

 

 

 

Mark Volz

GIS Specialist

Lyon County, MN

(507) 532-8218

 

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


RE: [mapserver-users] mapserver and openlayers

2008-09-19 Thread Venkat Rao Tammineni
Dear All,

 

 I am looking for the same, Please anyone can help.

 

I am waiting for your great response.

 

Thanks and Regards

Venkat.

 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of valerio vianello
Sent: Friday, September 19, 2008 3:32 PM
To: mapserver
Subject: [mapserver-users] mapserver and openlayers

 


dear list,

I am looking for a library like openlayers to build map at client side using 
mapserver WMS and above mainly WFS services.

I have to test my application using a phone and i tryed to use openlayers but i 
have some problems with WFS layers I guess there are some problem with the 
vector format used by openlayer, maybe, but i am not sure, the phone browser is 
not able to rendere that format. So now i'd try another library...

any suggestions ?

Valerio 


__
Do You Yahoo!?
Poco spazio e tanto spam? Yahoo! Mail ti protegge dallo spam e ti da tanto 
spazio gratuito per i tuoi file e i messaggi 
http://mail.yahoo.it 

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


RE: [mapserver-users] Re: Welcome to the mapserver-users mailing list

2008-09-12 Thread Venkat Rao Tammineni
Hi,

  What you want exactly.I am not clear with Query. You want to render  your
data on map? Let me know..

Thanks and Regards
Venkat.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Friday, September 12, 2008 5:04 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Re: Welcome to the mapserver-users mailing list

Hi all
As a part of my project i have to display a list of aisan(Indian)
cities for which i have their longitude and latitude on a map of
Asia(India). I am totally new to mapserver. please tell me how to
proceed from step 1.

Thank you in advance.

Bye
avdhesh
___
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] Combine Spatial attribute queries

2008-09-04 Thread Venkat Rao Tammineni
Hi,

 

I have done code  for  spatial Query..

 

 

This is Spatial Query..

   protected void ContriesEnvelop()

{

layer = MapFunction.Map.getLayerByName(Countries); // Get
Layer by name

string strSubRegionsClassItem = cntry_name=;

string strDropDownSelectedItem = ' +
lstContries.SelectedItem.Text + ';

string strQuery = strSubRegionsClassItem +
strDropDownSelectedItem;

 

   

res = layer.queryByAttributes(MapFunction.Map, CNTRY_NAME,
strQuery, 1);

 

 

if (res == (int)EnumMap.RESULT_CODE.MS_SUCCESS)

{

results = layer.getResults();

if (results != null)

{

resulCacheObj = results.getResult(0);

layer.open();

layer.close();

}

}

 

using (results = layer.getResults())

{

if (results != null  results.numresults  0)

{

// calculating the extent of the results

if (query_bounds == null)

{ query_bounds = new rectObj(results.bounds.minx,
results.bounds.miny, results.bounds.maxx, results.bounds.maxy, 0); }

else

{

if (results.bounds.minx  query_bounds.minx)

{ query_bounds.minx = results.bounds.minx; }

if (results.bounds.miny  query_bounds.miny)

{ query_bounds.miny = results.bounds.miny; }

if (results.bounds.maxx  query_bounds.maxx)

{ query_bounds.maxx = results.bounds.maxx; }

if (results.bounds.maxy  query_bounds.maxy)

{ query_bounds.maxy = results.bounds.maxy; }

}

}

}

if (zoomToResults)

{

try

{

MapFunction.Map.setExtent(query_bounds.minx,
query_bounds.miny, query_bounds.maxx, query_bounds.maxy);

}

catch (NullReferenceException exp)

{}

}

MapFunction.IsMapInDirectory = true;

}

 

This Method is for Getting Non Spatial query and populates data in Listbox .
based on Listbox data zooms to the shape..

 

  public void PopulateContries()

{

strSelectedItem = lstSubRegions.SelectedValue;

conn = new NpgsqlConnection(_AppSetting.GetConnection);

conn.Open();

String strSql = string.Format(_AppSetting.GetCntryCmdText,
strSelectedItem);

dataAdapter = new NpgsqlDataAdapter(strSql, conn);

dataSet = new DataSet();

dataAdapter.Fill(dataSet, _AppSetting.GetCntryTblName);

lstContries.DataSource =
dataSet.Tables[_AppSetting.GetCntryTblName];

lstContries.DataTextField = _AppSetting.GetCntryDataFieldName;

lstContries.DataBind();

conn.Close();

}

 

Is it same you want?let me know..But I am using Postgresql..

 

Thanks and Regards

Venkat.

India

 

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Hallgren,
Johan
Sent: Thursday, September 04, 2008 11:49 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Combine Spatial  attribute queries

 

Hello

 

I'm working with Mapserver 5.2 and with the C# interface. 

 

Now I use a Oracle spatial layer and we would like to query the layer with a
combination of spatial and attribute queries. Today a first use queryByRect
and then queryByAttribute. Two queries will be sent to Oracle and the
resultCache will only have the result of the latest query. 

 

How can I solve this? Primarily I only will send one query to the database,
both with the spatial and the attribute part.

 

br

Johan 

 


Johan Hallgren


Logica
Pelle Bergs backe 3
Box 1938, 791 19 Falun
Tel (och mobil): 023-547 46 (int: +46-2354746)
[EMAIL PROTECTED]
http://www.logica.se http://www.logica.se/ 

 

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


RE: [mapserver-users] colors transparency

2008-09-04 Thread Venkat Rao Tammineni
Hi,

   If you want to implement Overlaying concept u need to layer transparency. Or 
you can go for Scaling layers. I think this is also good concept. This is what 
Layer Levels. You can able to see one layer at one level second layer at second 
level. If you want still view all the layers at a time means you need to go for 
Layer transparency concept. My Best suggestion is go for Scaling Layers.

Thanks and Regards
Venkat,
India.


-Original Message-
From: Subha Ramakrishnan [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 04, 2008 6:19 PM
To: Venkat Rao Tammineni
Cc: [EMAIL PROTECTED]; 'mapserver'
Subject: Re: [mapserver-users] colors transparency

Hi ,
If i use the transparency attribute for a layer, it seems to dim out the 
image based on the number that i specify for transparency.

I've a question here.Say, i want to generate an image of india with the 
state boundaries.Is it possible for me to color the boundaries of the 
states within the map in a different color?

Thanks.
Subha
Venkat Rao Tammineni wrote:

 Hi,

  

Why don’t you go for Layer  transparency? I think it looks good , 
 while layer is overlaying…

  

 Thanks and Regards

 Venkat,

 India.

  

  

 *From:* [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] *On Behalf Of 
 *valerio vianello
 *Sent:* Thursday, September 04, 2008 12:31 PM
 *To:* mapserver
 *Subject:* [mapserver-users] colors transparency

  

 Dear list,

 Do you know if with mapserver is possible to set transparency in a 
 layer color ?

 I know that if I use COLOR -1 -1 -1 for a layer that layer is 
 completely transparent but my goal is to have a layer (polygon type) 
 with a color that doesn't hide the under layer.


 thanks

 Valerio


 __
 Do You Yahoo!?
 Poco spazio e tanto spam? Yahoo! Mail ti protegge dallo spam e ti da 
 tanto spazio gratuito per i tuoi file e i messaggi
 http://mail.yahoo.it


 -- 
 This message has been scanned for viruses and
 dangerous content by *MailScanner* http://www.mailscanner.info/, 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


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

2008-08-25 Thread Venkat Rao Tammineni
Dear All,

 

   I am planning to implement Tile-based output  for mapserver.But I don't
now where to start. I am using C#.net.I have gone through Mapserver API.But
I did not get any information about this.Please let me know if any one has
implemented Tile-based output.

 

 Please let me know.I am waiting for your great response.

 

 Thanks and Regards,

Venkat.

 

 

 

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


[mapserver-users] Reg: QueryMap(Zoom To Shape) with Mapserver PostgreSql/PostGIS

2008-08-07 Thread Venkat Rao Tammineni
Dear All,

 

I am getting error with query map.But it is working fine for Shape
files.Only  I am getting error with Postgresql/PostGIS.I do not know where
I am doing wrong.

 

Here is my Map File Code :- 

   Name Continents

   CONNECTIONTYPE POSTGIS

   CONNECTION host=192.168.1.158 dbname=GIS password=administrator
user=postgres port=5432

   DATA the_geom from rgp_gis_continent

 

And I have also used like 

 DATA the_geom from rgp_gis_continent using unique gid and SRID=-1

 

But this also getting the same error.I am  using Mapserver 5.0  and
Postgresql8.1.

Please let me know where  I am doing wrong.

 

 

 

Below is my error 

 

 

prepare_database(): Query error. Error executing POSTGIS DECLARE (the actual
query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT
continent::text,asbinary(force_collection(force_2d(the_geom)),'NDR'),gid::
text from rgp_gis_continent WHERE (Africa) and (the_geom  setSRID(
'BOX3D(-180 -112.415519399249,180
112.415519399249)'::BOX3D,find_srid('','rgp_gis_continent','the_geom') ))' 

 

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

'

 

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.

 

 

 

I am waiting for your great response.

 

 Thanks and Regards

Venkat.

 

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


RE: [MAPSERVER-USERS] Displaying the shape files using the map server

2008-08-06 Thread Venkat Rao Tammineni
Hi,

  Which programming language you are using .let me know.

Thanks and regards
Venkat.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of krishna mohan
Sent: Wednesday, August 06, 2008 4:17 PM
To: mapserver-users@lists.osgeo.org
Subject: [MAPSERVER-USERS] Displaying the shape files using the map server


Hi,

I am very new to map server.
I have installed map server and want to display the shape files using map
server on internet explorer. I also have a post gis database from which I
would like to display. Can some one please help me how to do that.

Krishna Mohan
-- 
View this message in context:
http://www.nabble.com/Displaying-the-shape-files-using-the-map-server-tp1884
8672p18848672.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] Displaying the shape files using the map server

2008-08-06 Thread Venkat Rao Tammineni
Hi,

  This is PHP with mapserver. Please have look once.
   http://mapserver.gis.umn.edu/docs/howto/phpmapscript-byexample

 Thanks and Regards
Venkat


 

-Original Message-
From: Krishna Mohan [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 06, 2008 4:24 PM
To: 'Venkat Rao Tammineni'; mapserver-users@lists.osgeo.org
Subject: RE: [MAPSERVER-USERS] Displaying the shape files using the map
server

Hi,


Thanks for the quick reply. 
I am not using any programming language. I just want to display the shape
file on a web browser using the mapserver. Is it possible,

Krishna Mohan

-Original Message-
From: Venkat Rao Tammineni [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 06, 2008 4:25 PM
To: 'krishna mohan'; mapserver-users@lists.osgeo.org
Subject: RE: [MAPSERVER-USERS] Displaying the shape files using the map
server

Hi,

  Which programming language you are using .let me know.

Thanks and regards
Venkat.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of krishna mohan
Sent: Wednesday, August 06, 2008 4:17 PM
To: mapserver-users@lists.osgeo.org
Subject: [MAPSERVER-USERS] Displaying the shape files using the map server


Hi,

I am very new to map server.
I have installed map server and want to display the shape files using map
server on internet explorer. I also have a post gis database from which I
would like to display. Can some one please help me how to do that.

Krishna Mohan
-- 
View this message in context:
http://www.nabble.com/Displaying-the-shape-files-using-the-map-server-tp1884
8672p18848672.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] Trouble with a Share Point Portal.

2008-07-17 Thread Venkat Rao Tammineni
Hi,

  Have you replaced all dll(like libmap.dll etc..) into bin folder?

Thanks and Regard
Venkat.

-Original Message-
From: Pietro Giannini [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 17, 2008 5:25 PM
To: mapserver-users@lists.osgeo.org
Cc: Venkat Rao Tammineni
Subject: RE: [mapserver-users] Trouble with a Share Point Portal.

Venkat,
this is the first I tried, don't work...

In Visual Studio I can reference only the mapscript_csharp.dll, how can I
reference a non-assembly .dll?

regards
... pg


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



On Gio, Luglio 17, 2008 06:17, Venkat Rao Tammineni wrote:
 Hi,

Take latest version of mapserver (Ms4W 2.7.7) and  update all the dlls
 form the cgi-bin to Visual Studio  add the reference from visual studio.It
 will work.There is only problem with version.Because I did the same.I
 think
 it will help you.

 Thanks and Regards
 Venkat.

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Pietro
 Giannini
 Sent: Wednesday, July 16, 2008 10:05 PM
 To: mapserver-users@lists.osgeo.org
 Subject: [mapserver-users] Trouble with a Share Point Portal.

 Hi all,

 I'm in serious trouble with the ambitious project of a web mapping app in
 a Windows SharePoint Services 3.0 environment; in detail, the application
 is embedded in a web part.
 Obviously, I'm developing in c#, that is not my preferred...

 I've recompiled myself mapserver and the mapscript_csharp assembly. In a
 debug environment all works fine but when I deploy the web part on the
 server I allways receive the same error:

 - Exception of type: System.TypeInitializationException;
 - with the message: The type initializer for 'OSGeo.MapServer.mapscript'
 threw an exception;
 - the source: mapscript_csharp;
 - the InnerException.StackTrace is:
  -- at OSGeo.MapServer.mapscriptPINVOKE.MAX_ERROR_LEN_get()
  -- at OSGeo.MapServer.mapscript..cctor()

 If anyone has experienced the same or a similar problem, or has more
 experience than me, can please help me?

 thanks in advance.

 ..pg

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

 ___
 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] Connection parameter errors while using Postgres DB Schema

2008-07-16 Thread Venkat Rao Tammineni
Hi,
Here is my Example .I think it helps you.

Layer # Layer starts here
  Name GMM 100 #name of the layer
  ConnectionType POSTGIS #connection type
  Connection host=192.168.1.158 dbname=GIS password=administrator
user=postgres port=5432 #connection type.
  Data the_geom from rgp_gis_gmm_100_metros   #table name

Thanks and Regards
Venkat.





-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ritesh
Ambastha
Sent: Wednesday, July 16, 2008 2:44 PM
To: mapserver-users@lists.osgeo.org
Subject: [MAPSERVER-USERS] Connection parameter errors while using Postgres
DB Schema


Hello Readers, 

I am facing a problem in defining the DATA path in mapserver while using
PostGIS. 

I have two schemas, lets say 'a' and 'b' in a database 'd'

Now, I want to access tables of schema 'a' in the mapserver layer. 

I define DATA path like this: 

DATA the_geom FROM a.table_name USING UNIQUE id SRID -1 

Please pour in your thoughts for defining schema in the connection/data
parameters.

Thanks,
Ritesh Ambastha
-- 
View this message in context:
http://www.nabble.com/Connection-parameter-errors-while-using-Postgres-DB-Sc
hema-tp18483547p18483547.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] Connection parameter errors while using Postgres DB Schema

2008-07-16 Thread Venkat Rao Tammineni
Hi,

   Have you checked other schema? See you can use either public or pg_temp_1
right ? if you want to use pg_temp_1 schema u need to have some setting
while configuring at add new server connection. This is only as per
knowledge. I did not tested. And my suggestion is  Use Pulic.Because ,if
there any joining among the table ,that would be again problem.

   If I am not right ,let me know.

Thanks and Regards
Venkat.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ritesh
Ambastha
Sent: Wednesday, July 16, 2008 3:07 PM
To: mapserver-users@lists.osgeo.org
Subject: RE: [MAPSERVER-USERS] Connection parameter errors while using
Postgres DB Schema


Hey Venkat,

Thanks for the details. 
I understand the standard way to write a connection parameter. 

I am sure that this table rgp_gis_gmm_100_metros is stored in public
schema of your database. 

My question is, what will you write if you keep this table in some other
schema?

Regards,


Venkatrao wrote:
 
 Hi,
 Here is my Example .I think it helps you.
 
 Layer # Layer starts here
   Name GMM 100 #name of the layer
   ConnectionType POSTGIS #connection type
   Connection host=192.168.1.158 dbname=GIS password=administrator
 user=postgres port=5432 #connection type.
   Data the_geom from rgp_gis_gmm_100_metros   #table name
 
 Thanks and Regards
 Venkat.
 
 
 
 
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Ritesh
 Ambastha
 Sent: Wednesday, July 16, 2008 2:44 PM
 To: mapserver-users@lists.osgeo.org
 Subject: [MAPSERVER-USERS] Connection parameter errors while using
 Postgres
 DB Schema
 
 
 Hello Readers, 
 
 I am facing a problem in defining the DATA path in mapserver while using
 PostGIS. 
 
 I have two schemas, lets say 'a' and 'b' in a database 'd'
 
 Now, I want to access tables of schema 'a' in the mapserver layer. 
 
 I define DATA path like this: 
 
 DATA the_geom FROM a.table_name USING UNIQUE id SRID -1 
 
 Please pour in your thoughts for defining schema in the connection/data
 parameters.
 
 Thanks,
 Ritesh Ambastha
 -- 
 View this message in context:

http://www.nabble.com/Connection-parameter-errors-while-using-Postgres-DB-Sc
 hema-tp18483547p18483547.html
 Sent from the Mapserver - User mailing list archive at Nabble.com.
 
 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users
 
 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users
 
 

-- 
View this message in context:
http://www.nabble.com/Connection-parameter-errors-while-using-Postgres-DB-Sc
hema-tp18483547p18483876.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] Trouble with a Share Point Portal.

2008-07-16 Thread Venkat Rao Tammineni
Hi,

   Take latest version of mapserver (Ms4W 2.7.7) and  update all the dlls
form the cgi-bin to Visual Studio  add the reference from visual studio.It
will work.There is only problem with version.Because I did the same.I think
it will help you.

Thanks and Regards
Venkat.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Pietro
Giannini
Sent: Wednesday, July 16, 2008 10:05 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Trouble with a Share Point Portal. 

Hi all,

I'm in serious trouble with the ambitious project of a web mapping app in
a Windows SharePoint Services 3.0 environment; in detail, the application
is embedded in a web part.
Obviously, I'm developing in c#, that is not my preferred...

I've recompiled myself mapserver and the mapscript_csharp assembly. In a
debug environment all works fine but when I deploy the web part on the
server I allways receive the same error:

- Exception of type: System.TypeInitializationException;
- with the message: The type initializer for 'OSGeo.MapServer.mapscript'
threw an exception;
- the source: mapscript_csharp;
- the InnerException.StackTrace is:
 -- at OSGeo.MapServer.mapscriptPINVOKE.MAX_ERROR_LEN_get()
 -- at OSGeo.MapServer.mapscript..cctor()

If anyone has experienced the same or a similar problem, or has more
experience than me, can please help me?

thanks in advance.

..pg

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

___
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