Re: [mapserver-users] coding for pan the map

2009-05-15 Thread ritesh ambastha

You can exploit the rich features provided by Openlayers. It will help you to
setup the basic features like zoom and pan easily.

Regards,
Ritesh Ambastha


meenu wrote:
 
 hi all
 
 can anybody help me to do the coding for pan the map?
 i did one website using the help of
 TutorialMapServerSolution.zip(VS2005)
 
 advance thanks
 regards
 
 

-- 
View this message in context: 
http://n2.nabble.com/coding-for-pan-the-map-tp2889881p2908884.html
Sent from the Mapserver - User mailing list archive at Nabble.com.

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


Re: [mapserver-users] I: Apache crash using Mapserver with big mapfile(about 2500 lines)

2009-05-15 Thread ritesh ambastha

Hey,

Larger size of mapfile is not the culprit over here. I have used mapfile of
more than 20K lines. Issue is something else. I don't know much about it but
it seems like you have a glibc version conflict on your box. But, I am sure
and 100% confident that mapfile size is not an issue.

When you get warnings like glibc detected malloc()/free()/double, they
indicate that the heap has been corrupted. One work around is to use
DieHard, which replaces your memory allocator with one that is unaffected by
most of these errors (www.diehard-software.org). 

Note: I dont work for DieHard. I just got some reference of it on web

Regards,
Ritesh Ambastha


Edgardo Ghibaudo wrote:
 
 Steve,
  
 I compiled mapserver with -enable-debug option.
 Then I launched shp2img in the following way:
 ./shp2img -all_debug 5 -m /opt/fgs/apps/mapservergeo/map/at7_2_3.map
 [Fri May  8 10:45:49 2009].96896 msDrawRasterLayerLow(Sfumo): entering.
 [Fri May  8 10:45:49 2009].105123 msDrawGDAL(): src=704,474,913,1009,
 dst=0,0,470,520
 [Fri May  8 10:45:49 2009].105479 msDrawGDAL(): red,green,blue,alpha bands
 = 1,2,3,0
 [Fri May  8 10:45:49 2009].277761 msDrawMap(): Layer 0 (Sfumo), 0.181s
 [Fri May  8 10:45:49 2009].288732 msDrawMap(): Layer 7 (Edificato), 0.011s
 *** glibc detected *** free(): invalid next size (fast): 0x0846d138 ***
 Aborted
  
 Edgardo
 -Messaggio originale-
 Da: Steve Lime [mailto:steve.l...@dnr.state.mn.us] 
 Inviato: giovedì 7 maggio 2009 19.29
 A: 'mapserver-users@lists.osgeo.org'; Edgardo Ghibaudo
 Oggetto: Re: [mapserver-users] Apache crash using Mapserver with big
 mapfile(about 2500 lines)
  
 Have you tried running through shp2img independently of MapLab to see if
 it's a problem with MapServer or
 MapLab specifically?
  
 Steve
  
  
 
 --http://www.provincia.biella.it--
 
 Vuoi rimanere sempre aggiornato sulle nostre attivita'? 
 Visita la pagina dei feed RSS sul nostro sito ed  iscriviti alla sezione
 di interesse.
 
 --Avviso--
 Questo messaggio e i suoi allegati sono riservati esclusivamente  alle
 persone in 
 indirizzo e possono contenere informazioni confidenziali. Se questo 
 messaggio  vi  e' 
 pervenuto per errore, vi informiamo  che ogni suo uso e'proibito. 
 In  questo   caso  rispedite immediatamente il messaggio al mittente e
 cancellatelo. 
 Per ogni  chiarimento contattateci scrivendo  a c...@provincia.biella.it. 
 Grazie -Il Webmaster.
 --Warning-
 This message and its attachments are addressed solely to  the persons
 above and may 
 contain confidential information. If you have received the message in
 error, be  
 informed that any use of the content hereof is prohibited.
 Please return it  immediately  to the sender and  delete the message.
 Should you have 
 any questions, please  contact us by replying to c...@provincia.biella.it. 
 The Webmaster.
 --
 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users
 
 

-- 
View this message in context: 
http://n2.nabble.com/I%3A-Apache-crash-using-Mapserver-with-big-mapfile%28about-2500-lines%29-tp2844265p2908941.html
Sent from the Mapserver - User mailing list archive at Nabble.com.

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


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

2009-03-16 Thread ritesh ambastha

Hey Syed, 

You should also check whether geometry functions are available with your
installed postgres. Its the most common error. Check whether this function
exists or not - force_2d(geom)

Cheers,
Ritesh

syed mohseen wrote:
 
 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
 
 

-- 
View this message in context: 
http://n2.nabble.com/cannot-able-to-test-the-mapfile-database-eror-tp2484211p2486081.html
Sent from the Mapserver - User mailing list archive at Nabble.com.

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


Re: [MAPSERVER-USERS] ms4w installation

2008-11-06 Thread Ritesh Ambastha
Have you tried /ms4w/apache-install.bat before trying uninstallation?

Ritesh Ambastha

On Thu, Nov 6, 2008 at 6:02 PM, lakku [EMAIL PROTECTED] wrote:

 hi

 iam using windows XP media center edition
 i have executed '/ms4w/apache-uninstall.bat' in command prompt to uninstall
 apache
 but it is displaying error as  'httpd ' is not recognized as internal or
 external command,operable program or batch file
 plz tell me that

 --
 View this message in context: 
 http://www.nabble.com/ms4w-installation-tp20360185p20360185.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] LABEL FOLLOW STREETS

2008-10-16 Thread Ritesh Ambastha
ANGLE FOLLOW will suffice your requirement.

- Ritesh Ambastha

On Fri, Oct 17, 2008 at 10:55 AM, ntiamoah bernard [EMAIL PROTECTED]wrote:

 Hi guys,
 How do I make my streets label follow the orientation of the streets. I
 mean i want some of the labels to be vertical, curve and horizontal. I set
 the angle to auto but nothing happened.
 thanks guys


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




-- 
Ritesh Ambastha
Deputy Manager Technology,
Reliance Entertainment/RCL,
Dhirubhai Ambani Knowledge Center(DAKC),
+91-9930770183
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Precaching and opacity

2008-09-10 Thread ritesh ambastha
Let us know the imagetype and outputformat defined in your map file.
Have you set transparency and antialias correctly?

Regards,
Ambastha

On Wed, Sep 10, 2008 at 2:04 AM, Bistrais, Bob [EMAIL PROTECTED] wrote:
 Please excuse my ignorance, I'm only starting to figure out the finer points
 of precaching...

 I built a map document for MS4W.  Each layer file has an Opacity setting.
 Without precaching, the map displays well in Ka-Map and in CGI view.  But
 after running the Precache.php, my opacity settings appear to be ignored.
 Each layer (including line and point data) completely obscures the previous
 layer.

 Is there some setting in Precache, or elsewhere, that I missed?  Any other
 suggestions?

 ___
 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] Precaching and opacity

2008-09-10 Thread ritesh ambastha
If you are using PNG24, then do keep Transparency as Alpha and
Antialiasing as True.

I hope you are using the current version of mapserver and ka-map.

Any reasons for not using AGG ?

Regards,
Ambastha

On Thu, Sep 11, 2008 at 1:37 AM, Bistrais, Bob [EMAIL PROTECTED] wrote:
 Image type is PNG24.  I've experimented with the Transparency and
 Opacity settings.  If drawn without a precache, the map looks good.
 Precache seems to ignore the opacity.  I haven't done anything with the
 antialiasing.



 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
 Of ritesh ambastha
 Sent: Wednesday, September 10, 2008 3:40 PM
 To: Bistrais, Bob
 Cc: mapserver-users@lists.osgeo.org
 Subject: Re: [mapserver-users] Precaching and opacity

 Let us know the imagetype and outputformat defined in your map file.
 Have you set transparency and antialias correctly?

 Regards,
 Ambastha

 On Wed, Sep 10, 2008 at 2:04 AM, Bistrais, Bob [EMAIL PROTECTED]
 wrote:
 Please excuse my ignorance, I'm only starting to figure out the finer
 points of precaching...

 I built a map document for MS4W.  Each layer file has an Opacity
 setting.
 Without precaching, the map displays well in Ka-Map and in CGI view.
 But after running the Precache.php, my opacity settings appear to be
 ignored.
 Each layer (including line and point data) completely obscures the
 previous layer.

 Is there some setting in Precache, or elsewhere, that I missed?  Any
 other suggestions?

 ___
 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] Key labelcache_map_edge_buffer does not exist (While using TiF files in Raster Layer)

2008-08-27 Thread Ritesh Ambastha

Hello,

I am using Tilecache to generate tiles by reading few raster layers from my
mapfile. I have successfully generated tiles using tilecache and mapserver
vector layers.  My raster images includes TIF files.

When I checked my logs, I got these errors/warning:

snip
getMetaData: Hash table error. Key labelcache_map_edge_buffer does not exist
msDrawLabelCacheGD(): labelcache_map_edge_buffer = -15
/snip

I have not used labelcache_map_edge_buffer anywhere in the mapfile. I tried
to keep a negative value to this in the METADATA seciton, but it didn't
worked. 

I am using MapServer version 5.0.0.

Any help will be highly appreciated.

Thanks, 
Ritesh Ambastha
-- 
View this message in context: 
http://www.nabble.com/Key-labelcache_map_edge_buffer-does-not-exist-%28While-using-TiF-files-in-Raster-Layer%29-tp19176014p19176014.html
Sent from the Mapserver - User mailing list archive at Nabble.com.

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


Re: [MAPSERVER-USERS] Key labelcache_map_edge_buffer does not exist (While using TiF files in Raster Layer)

2008-08-27 Thread Ritesh Ambastha

Thanks Christopher, 

I turned DEBUG  OFF, and resolved the problem. 
Now I am successfully generating tiles from Mapserver's raster layer. 

Regards,
Ritesh Ambastha


Christopher Schmidt-4 wrote:
 
 On Wed, Aug 27, 2008 at 12:30:14AM -0700, Ritesh Ambastha wrote:
 
 Hello,
 
 I am using Tilecache to generate tiles by reading few raster layers from
 my
 mapfile. I have successfully generated tiles using tilecache and
 mapserver
 vector layers.  My raster images includes TIF files.
 
 You sound like you're using TileCache with metaTiling. TileCache sets
 this property internally when using metaTiling. 
 
 I'm surprised you're seeing this though. The code says:
 
 try:
 # if the metadata is already set, don't override.
 wms.getMetaData(labelcache_map_edge_buffer)
 except mapscript._mapscript.MapServerError:
 
 Perhaps turning debug off as suggested will get rid of this...
 
 I don't know. But this is definitely directly related to TileCache.  
 
 When I checked my logs, I got these errors/warning:
 
 snip
 getMetaData: Hash table error. Key labelcache_map_edge_buffer does not
 exist
 msDrawLabelCacheGD(): labelcache_map_edge_buffer = -15
 /snip
 
 I have not used labelcache_map_edge_buffer anywhere in the mapfile. I
 tried
 to keep a negative value to this in the METADATA seciton, but it didn't
 worked. 
 
 I am using MapServer version 5.0.0.
 
 Any help will be highly appreciated.
 
 Thanks, 
 Ritesh Ambastha
 -- 
 View this message in context:
 http://www.nabble.com/Key-labelcache_map_edge_buffer-does-not-exist-%28While-using-TiF-files-in-Raster-Layer%29-tp19176014p19176014.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
 
 -- 
 Christopher Schmidt
 MetaCarta
 ___
 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/Key-labelcache_map_edge_buffer-does-not-exist-%28While-using-TiF-files-in-Raster-Layer%29-tp19176014p19183697.html
Sent from the Mapserver - User mailing list archive at Nabble.com.

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


Re: [mapserver-users] Using mapserver with EPSG:900913

2008-08-21 Thread ritesh ambastha
I am not sure this will help or not

I found two epsg files in my /usr/local/share/proj directory:

epsg
EPSG (in caps)

I modify the values in both the files for my use. You can also try the same

Regards,
Ritesh Ambastha

/usr/local/share/proj/epsg

On Thu, Aug 21, 2008 at 5:41 PM, Subha Ramakrishnan [EMAIL PROTECTED] wrote:

 Hi,
 Could you also check the map file and tell me if i am making a mistake
 there?
 This is the map file i am using.

 MAP
 NAME MAP_POINTS
 SIZE 725 800
 IMAGETYPE PNG
 EXTENT 6679169.44667 -7.081154550627918 11131949.0
 4865942.278825832
 WEB
 METADATA
  wms_srs EPSG:4326 EPSG:900913
 END
 END
 PROJECTION
 init=epsg:900913
 END
 LAYER
 CONNECTIONTYPE postgis
 NAME indiastates
 CONNECTION user=postgres dbname=test host=localhost
 TYPE POINT
 STATUS DEFAULT
 #DATA topology from states
 DATA topology from india_states using unique id using SRID -1
 CLASS
  COLOR 255 0 0
 END
 END
 END

 Is it possible for you to share your map file if you have any?

 Regards,
 Subha

 Rafael Almeida Fernandez Soto wrote:

 Subha..

 You need to insert a EPSG:900913 description code in PROJ4 config files
 and a row in spatial_ref_sys table in postgis DB. By default PROJ4 has not a
 900013 projection reference.

 Try it!

 Best regards

 Rafael Soto

 2008/8/20 Subha Ramakrishnan [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]


Hi :
We are building a map based web portal using openlayers ,UMN
mapserver[5.0.2] and postgis DB.We use google as the base map
through openlayers.We need to overlay our custom layers from the
db on top of this base map, for that we are using Mapserver (is
run on a FC7 linux machine). It is observed that by default
openlayers converts google projection [900913] to EPSG:4326 when
the base map is fetched.

Now when we try to overlay an image that the mapserver generates,
there is a mismatch on the base map, though mapserver uses
epsg::4326. After searching over the internet theere seems to be
only one solution which is displaying the base map itself in
epsg:900913 and emit the mapserver image also in the same
projection. The problem is we are not able to generate an image
through mapserver in epsg::900913.

We have taken following measures untill now :

1 For using epsg:900913 projection in mapserver, we have added
following entry in the /usr/local/share/proj/epsg file.[proj
version 4.6]
 900913 +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0
+x_0=0.0 +y_0=0 +k=1.0 +units=m [EMAIL PROTECTED] +no_defs   2
We have added following entry in the in the spatial_ref_sys table
in postgis DB.
900913 ,'EPSG',900913,'GEOGCS[WGS 84, DATUM[World Geodetic
System 1984, SPHEROID[WGS 84, 6378137.0,
298.257223563,AUTHORITY[EPSG,7030]],
AUTHORITY[EPSG,6326]],PRIMEM[Greenwich, 0.0,
AUTHORITY[EPSG,8901]], UNIT[degree,0.017453292519943295],
AXIS[Longitude, EAST], AXIS[Latitude,
NORTH],AUTHORITY[EPSG,4326]],
PROJECTION[Mercator_1SP],PARAMETER[semi_minor, 6378137.0],
PARAMETER[latitude_of_origin,0.0], PARAMETER[central_meridian,
0.0], PARAMETER[scale_factor,1.0], PARAMETER[false_easting,
0.0], PARAMETER[false_northing, 0.0],UNIT[m, 1.0], AXIS[x,
EAST], AXIS[y, NORTH],AUTHORITY[EPSG,900913]] |','+proj=merc
+a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0
+k=1.0 +units=m [EMAIL PROTECTED] +no_defs');  The mapfile is as
follows: (With this, We get a blank image without any exception.)
MAP
NAME MAP_POINTS
SIZE 725 800
IMAGETYPE PNG
EXTENT 6679169.44667 -7.081154550627918 11131949.0
4865942.278825832
WEB
METADATA
   wms_srs EPSG:4326 EPSG:900913
END
END
PROJECTION
init=epsg:900913
END
LAYER
CONNECTIONTYPE postgis
NAME indiastates
CONNECTION user=postgres dbname=test host=localhost
TYPE POINT
STATUS DEFAULT
#DATA topology from states
DATA topology from india_states using unique id using SRID -1
CLASS
   COLOR 255 0 0
END
END
END

The client (openlayer) code is as follows :
options = {
projection: new OpenLayers.Projection(EPSG:900913),
displayProjection: new OpenLayers.Projection(EPSG:4326),
units: m,
maxResolution: 156543.0339,
maxExtent: new OpenLayers.Bounds(-20037508, -20037508,
 20037508, 20037508.34)
};
 map = new OpenLayers.Map('map', options);
 var gphy = new OpenLayers.Layer.Google(Google
Physical,{type: G_PHYSICAL_MAP,'sphericalMercator': true});
  map.addLayers(gphy);
var lonLat = new OpenLayers.LonLat(82, 23) ;

  lonLat.transform(map.displayProjection,map.getProjectionObject());
   map.setCenter(lonLat,5);
 var wms ;
   wms = new OpenLayers.Layer.WMS( layername

[MAPSERVER-USERS] fseek dbf error while importing shapefile in postgres

2008-08-19 Thread Ritesh Ambastha

I tried to import shapefiles into postgres by using this command:

shp2pgsql shapefile_name table_name  sqlfile.sql

I got chunks of errors like : 
fseek(-1035313584) failed on DBF file.
fseek(-1035313584) failed on DBF file.
fseek(-1035313584) failed on DBF file.
fseek(-1035313584) failed on DBF file.
.
.
.
fseek(-1035313584) failed on DBF file.

What can be the problem? What should be checked in the DBF for these kind of
errors?

Regards,
Ritesh Ambastha
-- 
View this message in context: 
http://www.nabble.com/fseek-dbf-error-while-importing-shapefile-in-postgres-tp19052192p19052192.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] epsg code for 'UTM 43 North'

2008-08-19 Thread Ritesh Ambastha

How can I calculate exact EPSG code for the date projected in 'UTM 43 North'
? 

I just got few clues from this link :
http://spatialreference.org/ref/epsg/?search=UTMsrtext=Search

Thanks,
Ritesh Ambastha
-- 
View this message in context: 
http://www.nabble.com/epsg-code-for-%27UTM-43-North%27-tp19054466p19054466.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] Use of gutter parameter with tilecache

2008-08-18 Thread Ritesh Ambastha

I want to specify gutter parameter while using tilecache. 

This is the code snippet from my tilecache.cfg file:

snip

[cache]
type=Disk
base=/var/www/tilecache
# My MapServer layer configuration.
[mycity]
type=MapServer
layers=layer1,layer2,layer3
mapfile=/var/www/mymap/mymap.map
levels= 7
resolutions = 66.14, 26.45, 13.22,6.614,2.64,1.322,0.26
maxResolution = 66.14
srs=EPSG:4326
bbox = -1008136, 2136130, -937979, 2198657

/snip

I do know how to specify the gutter parameter while accessing these tiles
via openlayers. I am looking for the config lines for generating tiles while
using this gutter param.

Regards,
Ritesh Ambastha
-- 
View this message in context: 
http://www.nabble.com/Use-of-%22gutter%22-parameter-with-tilecache-tp19033034p19033034.html
Sent from the Mapserver - User mailing list archive at Nabble.com.

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


Re: [MAPSERVER-USERS] attach text to displayed features that are coming from postgis

2008-08-18 Thread Ritesh Ambastha

Dear John,

You just need to use these additional lines in your class definition: 

CLASS
-
---
LABELITEM column_name

LABEL
  COLOR  150 150 150
  FONT sans
  TYPE truetype
  SIZE 10
  PARTIALS FALSE
END 
---
---
END #class

Regards,
Ritesh Ambastha


John Mitchell-3 wrote:
 
 Hi,
 
 I would like to be able to attach text to displayed features that are
 coming
 from postgis.  Currently I am just displaying points (layer displayed
 below)
 as an ellipse from postgis, but I would like to have text on top of each
 ellipse based on the contents of a field uniquely associated to each
 point.
 
 John
 
  LAYER
   # name of layer
   NAME gv:tasmania_cities
   GROUP Collaboration
 
   # what type of data is this?
   TYPE POINT
 
   # always returned with interface
   STATUS ON
 
   TRANSPARENCY 100
 
   CONNECTIONTYPE postgis
 
   CONNECTION user=postgres dbname=gvdb host=localhost port=5432
 password=password1117
   DATA the_geom from tasmania_cities
 
 
   CLASS
 STYLE
 symbol dot
 SIZE 8
   COLOR 0 0 0
 END
END
  END
 
 
 -- 
 John J. Mitchell
 
 ___
 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/attach-text-to-displayed-features-that-are-coming-from-postgis-tp19035021p19039906.html
Sent from the Mapserver - User mailing list archive at Nabble.com.

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


Re: [MAPSERVER-USERS] drawing a north arrow on a map

2008-08-07 Thread Ritesh Ambastha

Use the proper symbol name as: 

Layer
style
---symbol 'symbol_name'
end
end

regards,
Ritesh

fastturtle wrote:
 
 Dear list,
 I'm hoping someone can help me.
  Following the instructions in the wiki, I am trying to add a north
  arrow to a map. I've got a basic north arrow image (north.gif),
 I've added a pixmap symbol referencing it, and I've added a layer to the
 map.However, the GIF never shows. I've tried this in both a mapscript
 app and the basic Itasca demo, same result. I know there is nothing
 wrong with the GIF or symbol definition. I found one solution in 
 which a empty STYLE object that was needed but I am not sure how to
 implement.
 Can anyone help?
 
SYMBOL #North Arrow
  NAME northarrow1
  TYPE pixmap
  IMAGE north.gif
END
 
  LAYER
  NAME North Arrow
  STATUS DEFAULT
  TRANSFORM FALSE
  TYPE POINT
  FEATURE
POINTS 250 250 END
  END
  CLASS
  SYMBOL 'north'
  END
END
 
  Thanks in advance.
 
 ___
 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/drawing-a-north-arrow-on-a-map-tp18867640p18868108.html
Sent from the Mapserver - User mailing list archive at Nabble.com.

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


RE: [MAPSERVER-USERS] Road Lines with AGG

2008-08-06 Thread Ritesh Ambastha

Still looking for a solution :( 

-Ritesh

Nolte, Tim wrote:
 
 When you are using AGG for your output do not use antialias true on your
 layers.
 
 - Tim
 
 
 Timothy J Nolte - [EMAIL PROTECTED]
 Network Planning Engineer
 
 iPCS Wireless, Inc.
 4717 Broadmoor Ave, Suite G
 Kentwood, MI 49512
 
 Office: 616-656-5163
 PCS:616-706-2438
 Fax:616-554-6484
 Web: www.ipcswirelessinc.com 
 
 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of 
 Ritesh Ambastha
 Sent: Tuesday, August 05, 2008 6:53 AM
 To: mapserver-users@lists.osgeo.org
 Subject: [MAPSERVER-USERS] Road Lines with AGG
 
 
 http://www.nabble.com/file/p18828729/road.png 
 
 In the map file, I have defined the imagetype and outputformat as: 
 
 IMAGETYPE AGG
 
 OUTPUTFORMAT
  NAME  'AGG'
  DRIVER  AGG/PNG
  IMAGEMODE RGB
 END
 
 My line layers are written with antialias as true. 
 
 How can I correct the lines with more smoothness while 
 keeping the same
 sharpness? 
 
 Thanks,
 Ritesh Ambastha
 -- 
 View this message in context: 
 http://www.nabble.com/Road-Lines-with-AGG-tp18828729p18828729.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/Road-Lines-with-AGG-tp18828729p18853113.html
Sent from the Mapserver - User mailing list archive at Nabble.com.

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


Re: [mapserver-users] Data for Mapserver.

2008-07-20 Thread ritesh ambastha
You can use this data in the same way you were doing previously.

Regards,
Ritesh Ambastha

On Sun, Jul 20, 2008 at 11:27 PM, Νικος Παπαδάκης [EMAIL PROTECTED]
wrote:

 Hallo to everyone.
 I have some data of a city and i want to retrieve a map from them.
 I have done other examples with data that have the following file
 extentions...
 .dbf  .shp  .shx.

 But the new dataset i have found have the following file extentions...
 .dbf  .prj  .sbn  .sbx  .shp  .shx

 Does anybody know a way i can use these data?
 Thanks...


 ___
 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-17 Thread Ritesh Ambastha

Dear Carlos,

Never thought that it will be such easy. Thanks a ton! It worked :)

Regards,
Ritesh Ambastha


Carlos Ruiz-5 wrote:
 
 Ritesh,
  
 There's a way to stablish the default schema to a postgres user when it
 connects, maybe this can help you to pull the data from postgres.
  
 To check what's the current default user's schema, you need to execute
 this:
  
 SHOW search_path
  
 It must throw $user, public
  
 So, to set the default user's schema, you execute this:
  
 ALTER USER user_name SET search_path TO schema_name
  
 I suggest you to create a new role to connect to the database via map
 file, and then 
 change its default schema.
  
 Another thing (maybe this was the first step) is to check if the user
 postgres is the owner 
 of the schema, and if it's not, then check if it haves the USAGE privilege
 on it.
  
 Hope this information helps
 
 IC Carlos Ruiz
  
 
 --- On Wed, 7/16/08, Ritesh Ambastha [EMAIL PROTECTED] wrote:
 
 From: Ritesh Ambastha [EMAIL PROTECTED]
 Subject: RE: [MAPSERVER-USERS] Connection parameter errors while using
 Postgres DB Schema
 To: mapserver-users@lists.osgeo.org
 Date: Wednesday, July 16, 2008, 4:37 AM
 
 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-Schema-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
 
 

-- 
View this message in context: 
http://www.nabble.com/Connection-parameter-errors-while-using-Postgres-DB-Schema-tp18483547p18505303.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] Connection parameter errors while using Postgres DB Schema

2008-07-16 Thread Ritesh Ambastha

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


RE: [MAPSERVER-USERS] Connection parameter errors while using Postgres DB Schema

2008-07-16 Thread Ritesh Ambastha

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


Re: [MAPSERVER-USERS] Connection parameter errors while using Postgres DB Schema

2008-07-16 Thread ritesh ambastha
Venkat,

I am looking for that some setting :)

Cheers,
Ritesh

On Wed, Jul 16, 2008 at 3:23 PM, Venkat Rao Tammineni 
[EMAIL PROTECTED] wrote:

 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.htmlhttp://www.nabble.com/Connection-parameter-errors-while-using-Postgres-DB-Schema-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


[MAPSERVER-USERS] Error: Schema definition in postgis layer

2008-07-15 Thread Ritesh Ambastha

Hello, 

I am connecting to postgis for displaying maps. 

I have a schema named as 'testschema' and table 'test'

I get these errors when I try to display the map. 

snip
1.Without specifying schema: 

DATA the_geom FROM test USING UNIQUE fid SRID -1 

msDrawMap(): Image handling error. Failed to draw layer named 'test'.
prepare_database(): Query error. Error executing POSTGIS DECLARE (the actual
query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT
asbinary(force_collection(force_2d(the_geom)),'NDR'),fid::text from test
WHERE the_geom  setSRID('BOX3D(-548821.411568409 1455242,-506293.588431591
1487129)'::BOX3D, find_srid('','test','the_geom') )' Postgresql reports the
error as 'ERROR: relation test does not exist '...

2. After specifying schema

DATA the_geom FROM testschema.test USING UNIQUE fid SRID -1 

msDrawMap(): Image handling error. Failed to draw layer named 'test'.
prepare_database(): Query error. Error executing POSTGIS DECLARE (the actual
query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT
asbinary(force_collection(force_2d(the_geom)),'NDR'),fid::text from
testschema.test WHERE the_geom  setSRID('BOX3D(-548821.411568409
1455242,-506293.588431591 1487129)'::BOX3D,
find_srid('','testschema.test','the_geom') )' Postgresql reports the error
as 'ERROR: function force_2d(scott.geometry) does not exist LINE 1: ...INARY
CURSOR FOR SELECT asbinary(force_collection(force_2d(t... ^ HINT: No
function matches the given name and argument types. You might need to add
explicit type casts. ' 

/snip

Also, when I keep the table in public schema, it works without any error. 

I need to know the correct way to define schema in mapfile while using
postgis. 

Right now I am using these statements in my mapfile: 

  CONNECTIONTYPE postgis

  CONNECTION user=postgres password=postgres dbname=map host=xx.xx.xxx.xxx
port=5432
  DATA the_geom from test USING UNIQUE fid SRID -1 

Thanks,
Ritesh Ambastha
-- 
View this message in context: 
http://www.nabble.com/Error%3A-Schema-definition-in-postgis-layer-tp18462568p18462568.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] Error: Schema definition in postgis layer

2008-07-15 Thread Ritesh Ambastha

Hello,

I am connecting to postgis for displaying maps.

I have a schema named as 'testschema' and table 'test'

I get these errors when I try to display the map.

snip
1.Without specifying schema:

DATA the_geom FROM test USING UNIQUE fid SRID -1

msDrawMap(): Image handling error. Failed to draw layer named 'test'.
prepare_database(): Query error. Error executing POSTGIS DECLARE (the actual
query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT
asbinary(force_collection(force_2d(the_geom)),'NDR'),fid::text from test
WHERE the_geom  setSRID('BOX3D(-548821.411568409 1455242,-506293.588431591
1487129)'::BOX3D, find_srid('','test','the_geom') )' Postgresql reports the
error as 'ERROR: relation test does not exist '...

2. After specifying schema

DATA the_geom FROM testschema.test USING UNIQUE fid SRID -1

msDrawMap(): Image handling error. Failed to draw layer named 'test'.
prepare_database(): Query error. Error executing POSTGIS DECLARE (the actual
query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT
asbinary(force_collection(force_2d(the_geom)),'NDR'),fid::text from
testschema.test WHERE the_geom  setSRID('BOX3D(-548821.411568409
1455242,-506293.588431591 1487129)'::BOX3D,
find_srid('','testschema.test','the_geom') )' Postgresql reports the error
as 'ERROR: function force_2d(testschema.geometry) does not exist LINE 1:
...INARY CURSOR FOR SELECT asbinary(force_collection(force_2d(t... ^ HINT:
No function matches the given name and argument types. You might need to add
explicit type casts. ' 

/snip

Also, when I keep the table in public schema, it works without any error.

I need to know the correct way to define schema in mapfile while using
postgis.

Right now I am using these statements in my mapfile:

  CONNECTIONTYPE postgis

  CONNECTION user=postgres password=postgres dbname=map host=xx.xx.xxx.xxx
port=5432
  DATA the_geom from test USING UNIQUE fid SRID -1

Thanks,
Ritesh Ambastha
-- 
View this message in context: 
http://www.nabble.com/Error%3A-Schema-definition-in-postgis-layer-tp18462571p18462571.html
Sent from the Mapserver - User mailing list archive at Nabble.com.

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


Re: [MAPSERVER-USERS] Direction on road using ARROW Image

2008-06-09 Thread Ritesh Ambastha

Please write your Layer definition and symbol definition. 
It would be helpful for us to gaze the problem. 

Arrow directions is easy to implement. I guess you might be missing a minor
part. 

Regards,
Ritesh Ambastha


Ila wrote:
 
 Hello readers,
 
  As I am working on GIS application  new to it, so please forgive me
 for my noob questions. I want to show the direction on oneway road using
 any arrow image, not through using arrow character. I have successfully
 implemented the road direction using ARROW Character, but I want to
 implement the same using ARROW image in my application. So, is there any
 way to implement it? Please provide me some example for my better
 understanding. I would be very thankful for your suggestions/thoughts.
 

-- 
View this message in context: 
http://www.nabble.com/Direction-on-road-using-ARROW-Image-tp1764p17728881.html
Sent from the Mapserver - User mailing list archive at Nabble.com.

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


Re: [MAPSERVER-USERS] Routing Algorithm Confusion !

2008-05-16 Thread Ritesh Ambastha

Thanks Sandeep, 

Yeah I know that there are few algorithms exist to solve this case. 
Please let me know few names(links) of good algorithms which are followed to
solve this problem

Regards,
Ritesh


jssandeep wrote:
 
 I guess there are several research papers on fast/quick routing on road
 networks ... most of them modify dijkstra's ...
 there are citations on *parallel* dijkstra's if you want to scale ..to
 large
 number of nodes ...
 
 Thanks
 Sandeep
 
 
 On Fri, May 16, 2008 at 5:08 AM, Ritesh Ambastha [EMAIL PROTECTED]
 wrote:
 

 Dear Readers,

 I use Dijkstra's shortest path algorithm for route computation. I am
 satisfied with the accurate result it gives. Still, I feel for road
 segments
 ~ 200Million, the route computation will take a lot of time. So, is there
 another algorithms exist as best practices for route computation(like
 A*,TSP,etc)? Or, geeks write their own algorithm for route computation?

 Thanks and Regards,
 Ritesh Ambastha
 --
 View this message in context:
 http://www.nabble.com/Routing-Algorithm-Confusion-%21-tp17264809p17264809.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

 
 
 
 -- 
 Thanks
 Regards
 
 Sandeep Kumar Jakkaraju
 
 ___
 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/Routing-Algorithm-Confusion-%21-tp17264809p17270028.html
Sent from the Mapserver - User mailing list archive at Nabble.com.

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


Re: [MAPSERVER-USERS] Mapserver 3D images

2008-05-13 Thread Ritesh Ambastha

Do read about Data Elevation Models.
Regards,
Ritesh


mhungc wrote:
 
 Hi,
 
 I want to kown how can i develop in mapserver php mapscript
 functionalities as view the maps in 3D. How can i do that? Images in 3D
 when i have shapes in 2D?
 
 Can i convert shapes in 2D to 3D?
 
 I dont kown how can i visualize the images in 3D...
 
 Help please.
 
 Thanks.
 

-- 
View this message in context: 
http://www.nabble.com/Mapserver-3D-images-tp17179939p17207355.html
Sent from the Mapserver - User mailing list archive at Nabble.com.

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


Re: [MAPSERVER-USERS] OpenLayers + dBox + Postgres text search

2008-05-10 Thread Ritesh Ambastha

Good work Richard!
You need to improve your map file. 
Else, I liked the stuffs !



Richard Greenwood wrote:
 
 I had a bad link in the site below, which I have fixed.
 
 I've been working on an OpenLayers site that incorporates the dBox
 tree legend that is popular with many MapServer users. dBox is based
 on YUI and was developed by Steve Lime and others at the Minnesota
 DNR. The site is still pretty sloppy but may be of interest:
 
   http://www2.tetonwyo.org/mapserver/ol.html
 
 Also of possible interest is the use of the new PostgreSQL 8.3 full text
 search.
 
 -- 
 Richard Greenwood
 [EMAIL PROTECTED]
 www.greenwoodmap.com
 ___
 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/OpenLayers-%2B-dBox-%2B-Postgres-text-search-tp17129991p17162251.html
Sent from the Mapserver - User mailing list archive at Nabble.com.

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


Re: [MAPSERVER-USERS] Postgis and Mapserver

2008-04-25 Thread Ritesh Ambastha

Hey Hans, 

Please check the mapserver log for the error(s). 
Also, do check the 'tmp' directory where map images are generated. 

Regards,
Ritesh Ambastha



Hans Castorp wrote:
 
 Hi to all,
  
 In the past days I have been answering some questions about it but, by
 now, I haven’t achieved my goal. I will try to explain what I have and
 what I want (need, in fact):
  
 I’m displaying some cartography: lines and polygons from shape files and
 points from a Postgis table (without filtering).
 At the same time, I have a form to query the postgis table applying some
 filters. I am making these queries using PHP and SQL in the usual way. I
 don’t use mapscript queryByAttibutes, because SQL queries are more
 flexible and powerful (I think). Due to these facts what I have is: on one
 side, a map showing all the points (with no filter) and, on the other
 side, a filtered list of these same points.
  
 What I’m looking to do is:
  
 -  Zoom to all my selection, changing simbology in order to show
 some points with the default simbology (map file) and others (the result
 of my selection) with a special simbology.
 -  Zoom to one chosen point in my selection. By now, I’m doing it
 using zoomToExtents, passing as parameters x and y of the point (retrieved
 in the sql query). This works fine but I need to change the simbology of
 the selected point in order to make it clearly visible between the others.
  
 What I’m trying in order to change simbology for selected points is
 something like this:
  
 $oMap = ms_newMapObj($szMapFile);
 
 $oLayer = $oMap-getLayerByName(EMPRESAS);
 
 $oClass = $oLayer-getClass(0);
 
 $oEstilo = $oClass-getStyle(0);
 
 $oLayer-setFilter($sql);
 
 $oEstilo-set(symbolname, MARKER_EMPRESA_ALT);
  
 But I have no results (at least no errors, too J)
  
 Some help will be welcomed.
 Thanks in advance to everyone.
  
  
  
  
 Hans Castorp
 
 __
 Correo Yahoo!
 Espacio para todos tus mensajes, antivirus y antispam ¡gratis! 
 Regístrate ya - http://correo.yahoo.es
 ___
 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/Postgis-and-Mapserver-tp16740842p16892667.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] Elevation model

2008-04-09 Thread Ritesh Ambastha

Dear Reader, 

Please shed some lights on elevation models supported by mapserver. 
Elevations in cases of bridges, mountains, buildings,etc. 

Any steps to follow DEM (digital elevation model) in mapserver?
 

Your suggestions/tips will be highly appreciated. 

Thanks and Regards,
Ambastha
-- 
View this message in context: 
http://www.nabble.com/Elevation-model-tp16584563p16584563.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] Browser Issue : Route Layer Transparency

2008-04-07 Thread Ritesh Ambastha

Dear Developers, 

I use ka-map routing to show directions over a map. I made the route layer
transparent by setting transparency in the map file. Now, I can see the
route layer transparent in Firefox and IE 7. But, IE 6 is not showing route
layer on the map when I set transparency. Keeping transparency opaque, IE 6
renders it beautifully. 

Is there any info on web where I can understand browser-independent
mapserver dev code?

Your advices/suggestions will be really appreciated.

Warm Regards,
Ambastha
-- 
View this message in context: 
http://www.nabble.com/Browser-Issue-%3A-Route-Layer-Transparency-tp16534574p16534574.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] Route Layer - Transparency

2008-04-02 Thread Ritesh Ambastha

Hello Ka-mappers, 

I am successfully showing routing on my map using ka-map routing. 
I am unable to set TRANSPARENCY to this route layer. 

I have two map files, 
a) main.map (consists of many layers)
b) route.map (consists of only one route layer)

In main.map, I am able to play with transparency. But, I am unable to set
transparency to route.map. 

I am using GD/PNG driver, and png24 as outputformat. 

Your suggestions will be highly appreciated.

Regards,
Ambastha
-- 
View this message in context: 
http://www.nabble.com/Route-Layer---Transparency-tp16442995p16442995.html
Sent from the Mapserver - User mailing list archive at Nabble.com.

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


Re: [MAPSERVER-USERS] PHP MapScript AGG

2008-03-24 Thread Ritesh Ambastha

I am also in search of answers regarding agg :)


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

-- 
View this message in context: 
http://www.nabble.com/PHP-MapScript-AGG-tp15727720p16251153.html
Sent from the Mapserver - User mailing list archive at Nabble.com.

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