[mapserver-users] addgeometrycolumn function not identified!!!

2009-05-20 Thread Mukul Gupta
Hi, I am trying to convert my shape files to postgre files. After getting sql file, postgre got struck by not recognising addgeometrycolumn function.In one of my files-- SELECT AddGeometryColumn('','gisdb','the_geom','-1','MULTILINESTRING',2); works while in other SELECT

[mapserver-users] Finding Lat-Long from geometric data type of postgre

2009-05-20 Thread Mukul Gupta
Hi, I want to display a tool tip for the polygons in my application for which I need lat-long values of polygon. Please tell me how to retrieve the values from geometry type field of postgre or If there is any other way of doing this. Regards Mukul ___

RE: [mapserver-users] Get the nearest layer with mapscript...

2009-05-20 Thread Pano Voudouris
Probably don’t understand what exactly you are trying to achieve here but it is not as simple as map.getLayer(0) to get the topmost layer? And once you have the layer object use one of the query function to select the record? E.g. myLayerObj.queryByPoint ? Pano From:

[mapserver-users] Limit of records

2009-05-20 Thread Iratxe Lejarreta
Hi, I have problems with some layers and I'm thinking that the reason is the number of records. For example, with a layer which has 63057 records, the result is the following: 500 Internal Server Error And Apache log error: Timeout waiting for output from CGI script /var/cgi-bin/mapserv If

Re: [mapserver-users] Limit of records

2009-05-20 Thread Rahkonen Jukka
Hi, There is no limit for number of records in Mapserver. Apache. that is used as http server in front of Mapserver does have timeout, which is 300 seconds by default but can be adjusted. Generally speaking number of records does not tell much about how hard that layer is to handle, if

Re: [mapserver-users] Limit of records

2009-05-20 Thread Peter Rose
Hi Iratxe, I've found that the limit on my maps is 2000 records. I store the points in a MySQL database and use PHP/MapScript to create the map so I don't know what sets this limit but 2000 points on a map seems fair enought for the average map. Unless you have a very big map it would quickly

Re: [mapserver-users] Limit of records

2009-05-20 Thread Rahkonen Jukka
Hi, I made a quick test by commenting out my MAXSCALEDENOM and MAXFEATURES settings. For me it takes now around 10 seconds to draw 1.1 million polygons from Oracle spatial through WMS. Timing comes from Mapserver log with layer set to DEBUG 5. Sure it does not make sense to draw 1.1 million

Re: [mapserver-users] MapServer 5.4.0 Buffer Overflow Error

2009-05-20 Thread Juan Felipe Alvarez Saldarriaga
Thx Umberto, I'll try to reinstall GDAL then, thx :). On Wed, May 20, 2009 at 12:39 AM, Umberto Nicoletti umberto.nicole...@gmail.com wrote: This is a known issue with recent Ubuntu systems which is caused by a special compiler feature (called fortify) which enables a protection system against

[mapserver-users] mapscript memory

2009-05-20 Thread Charlotte Declercq
Hello, I have a problem releasing the memory of mapscript objects. My php script : echo memory_get_usage() . br; $Directory=/applications/carmen/data/PACA3/Publication/; $oMap = @ms_newMapObj($Directory./environnement_testsymbols_sauvegarde_racine.map); echo memory_get_usage() . br;

[mapserver-users] tooltip information on point layers

2009-05-20 Thread meenu
dears ...can anybody help me to generate tooltip on features in mapserver map...i need to generate tool tip information when the mouse is on the top of this following point layercan anybody help me...advance thanks LAYER NAME n_123 TYPE POINT CONNECTIONTYPE OGR CONNECTION

[mapserver-users] change mouse icon style on the specified layer

2009-05-20 Thread meenu
dears ...can anybody help me to change mouse pointer icon as handshape icon when the mouse is on the top of the point layersis it possible? LAYER NAME n_123 TYPE POINT CONNECTIONTYPE OGR CONNECTION n_123 .TAB STATUS ON LABELITEM PLO_900 CLASS STYLE

Re: [mapserver-users] Limit of records

2009-05-20 Thread Iratxe Lejarreta
On Wednesday 20 May 2009 12:52:03 pm Rahkonen Jukka wrote: Hi, There is no limit for number of records in Mapserver. Apache. that is used as http server in front of Mapserver does have timeout, which is 300 seconds by default but can be adjusted. Generally speaking number of records does

Re: [mapserver-users] mapscript memory

2009-05-20 Thread Alan Boudreault
Hi Charlotte, This is a known issue with PHP Mapscript. With the way the object are currently made, complex objects (that have references to other object, like mapObj) are not properly freed when we delete the php object. Note that the memory is well freed as soon as the php script ends.

Re: [mapserver-users] change mouse icon style on the specified layer

2009-05-20 Thread Alan Boudreault
Hi meenu, MapServer returns an image to your browser. At this point, there is no more layers. That's only an image. You cannot bind any browser mouse event to a specific country or area. You would need OpenLayers + a Vector layer to do that. Thanks, Alan On May 20, 2009 08:07:16 am meenu

RE: [mapserver-users] change mouse icon style on the specified layer

2009-05-20 Thread Fawcett, David
If you only need to create your map as a static image (with no pan and zoom), you could use MapServer to generate a html imagemap. See the documentation here: http://mapserver.org/output/imagemaps.html Most people these days are using openlayers http://www.openlayers.org or another javascript

RE: [mapserver-users] Get the nearest layer with mapscript...

2009-05-20 Thread Fawcett, David
Paul, I would guess that this really is about the client-side map interface and not about MapServer. Does your interface only allow them to click/select the topmost layer? Do you pick which layer is selectable? Do you let them pick which layer is selectable? Is it random? Tells us

Re: [mapserver-users] Get the nearest layer with mapscript...

2009-05-20 Thread Steve Lime
If you're doing point queries MapServer/MapScript can do this for you. You do a mapObj.queryByPoint with the MS_SINGLE mode and then the function will identify the closest feature (considering TOLERANCEs!) in the top-most ACTIVE layer. This site uses this to it's advantage...

Re: [mapserver-users] Get the nearest layer with mapscript...

2009-05-20 Thread Paul james
Hi David... In my system the user SELECT the active layer (dropdown), and so he can query it selecting a a area or a point But, I´d like to take off that dropdown to select active layer... And when user click on map to query, I figure out what layer was clicked and query that... Paul On

[mapserver-users] Open3DGIS

2009-05-20 Thread Matej
Hi all, I am investigating different options on using 3D with MapServer.. There was once an application called Open3DGIS (http://open3dgis.sourceforge.net/), which doesn't seem to live anymore. Are there any other tools / addons that are alive in this field? Thanks! Matej

Re: [mapserver-users] Open3DGIS

2009-05-20 Thread Glenn Waldron
Hi Matej, Take a look at osgEarth (http://osgearth.org), a toolkit that renders open-standards data (from WMS, MapServer, TileCache, etc.) in 3D using the open source OpenSceneGraph library. Glenn Waldron : Pelican Mapping : http://pelicanmapping.com 2009/5/20 Matej ma...@matnet.net Hi

Re: [mapserver-users] Get the nearest layer with mapscript...

2009-05-20 Thread Paul james
Hi Steve! I didn't know that mapObj could call queryByPoint as well ... Thanks... But, How can I get the feature selected after query ? Using LayerObj I did that (using layer.getNumResults() ) if (_layer.queryByPoint(MapaObj, _point, 0, -2) == 0) { for (int i = 0; i

Re: [mapserver-users] Get the nearest layer with mapscript...

2009-05-20 Thread Steve Lime
You just need another loop... for( ...each layer...) { layer = ... mapObj get layer ... ... now your getNumResults() loop ... } Steve Paul james paulj...@gmail.com 05/20/09 9:54 AM Hi Steve! I didn't know that mapObj could call queryByPoint as well ... Thanks... But, How can I get the

Re: [mapserver-users] Get the nearest layer with mapscript...

2009-05-20 Thread Dan Little
Would a drill down identify be appropriate for your application? Just query all of the layers? From: Paul james paulj...@gmail.com To: Fawcett, David david.fawc...@state.mn.us Cc: mapserver-users@lists.osgeo.org Sent: Wednesday, May 20, 2009 8:53:53 AM Subject:

Re: [mapserver-users] Get the nearest layer with mapscript...

2009-05-20 Thread Paul james
Thanks Steve... That worked ! On Wed, May 20, 2009 at 1:34 PM, Steve Lime steve.l...@dnr.state.mn.uswrote: You just need another loop... for( ...each layer...) { layer = ... mapObj get layer ... ... now your getNumResults() loop ... } Steve Paul james paulj...@gmail.com 05/20/09

RE: [mapserver-users] PERL MapScript

2009-05-20 Thread Christopher Condit
Hi Tom- Very strange. I don't see an xml file but now I've tried this and I do get an instance of an imageObj back: my $map = new mapscript::mapObj('test.map') or die no map $!; $map-saveMapContext('test.xml'); my $image = $map-draw(); print $image; So I guess I'll proceed and see how things go.

[mapserver-users] Precache

2009-05-20 Thread Chad Clabaugh
How can I precache tile images from shapefiles? Thanks Chad Clabaugh Technical Support, Engineering Office: 260.760.6398 Mobile: 260.466.8861 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org

[mapserver-users] GRIB files - gdal_translate

2009-05-20 Thread Roberto Garcia,MSc
Hi people, I used gdal_translate in the GRIB file I want to show with mapserver, but there still is something wrong. The following is a partial output from it: Driver: GRIB/GRIdded Binary (.grb) Files: data\raster\T126L28.grb Size is *161, 98* Coordinate System is: . Origin =

Re: [mapserver-users] GRIB files - gdal_translate

2009-05-20 Thread Ivan
Hi there! There is nothing wrong with your block X and Y size (161x1). It indicates that your data is not tiled/blocked, so it is most likely to be read row by row. If the image looks strange is not because of that. You have 98 rows in 0.02 degrees, so if it looks like a line, I wouldn't be

Re: [mapserver-users] Finding Lat-Long from geometric data type of postgre

2009-05-20 Thread Simon Haddon
Hi, I use a combination of server code and Javascript. I convert the lat long values to a javascript array which is loaded into a 2 dimensional array. This data is then loaded with the map which is quick if your polygons are not too complicated. I then have a mouse over ont he map which

Re: [mapserver-users] Precache

2009-05-20 Thread Roger André
Your request is somewhat lacking in detail, but assuming that your goal is a simple one, here is one way to accomplish this. 1. Create a MapServer project that displays your shapefile in whatever style you choose. 2. Setup a TileCache instance that points to your MapServer project. 3. Run the