[mapserver-users] Re: what is the way to get feature info inmapserver?

2010-07-30 Thread Kiks

I tried to send the request directly: 

http://mymapserver.com/mapserverms4w/map=mapserv.exe?myMapFile.map&REQUEST=GetFeatureInfo&INFO_FORMAT=plain/text&QUERY_LAYERS=CG_GEO_PARCELSE&I=120&J=120&VERSION=1.3.0

But I'm not sure about the parameter passed (I and J as pixel X,Y position
on the browser, but map is not present if I make manually the request!)
Anyway, the response is 404 - page not found and IIS Log is this:

#Software: Microsoft Internet Information Services 5.1
#Version: 1.0
#Date: 2010-07-30 09:36:47
#Fields: time c-ip cs-method cs-uri-stem sc-status 
09:36:47 127.0.0.1 GET /mapserverms4w/map=mapserv.exe 404
09:36:47 127.0.0.1 GET /favicon.ico 404
 


-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/what-is-the-way-to-get-feature-info-in-mapserver-tp5347323p5354408.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] Re: what is the way to get feature info inmapserver?

2010-07-30 Thread Kiks

I'm sorry, I made I banal mistake in the URL in the CGI request and parameter
passing.

Now I can see the browser reply to my request and I'm finding errors and
missing required parameters.
I'll let you know when I'll resolve all of them.

Thanks, 
Kiks
-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/what-is-the-way-to-get-feature-info-in-mapserver-tp5347323p5354446.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] Need Example of HTML ImageMap

2010-07-30 Thread Paul D Pruitt
Hi,

I'm trying to use Mapserver or GeoServer/OpenLayers to display my maps and
their respective image in order to make use of the zooming and possibly
other features.  On my site users can click on countries or states they have
visited and the maps entities are flood filled with color by GD-PHP.  The
site is here: http://wherehaveibeen.info.

I'm trying to find an example of imagemap use on MapServer because the link
is dead on the doc page on the subject:
http://mapserver.org/output/imagemaps.html?highlight=imagemap.  Does anyone
have a new example they can point me to?

Thanks in advance.

Sincerely,

Paul D Pruitt

socr...@s2services.com
(301) 493-4982 (H)
(240) 277-6233 (M)
(301) 530-2461 (F)
S2 Services
9006 Friars Rd.
Bethesda, MD  20817

easyleaves.com - easier ways to pick up leaves in the fall.
genealogyoflife.com - tree of life in genealogy format
godskingsandheroes.info/software - free software
lulu.com/s2press - my books
planthormones.info - plant hormone theories
s2services.com - data recovery freeware list
saveofficedata.com - free service for recovering text from Office files
socrtwo.info - Gateway site with my links to computer tutorials and artistic
portfolio
wherehaveibeen.info - world map you can mark to indicate which countries in
the world you have visited
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


RE: [mapserver-users] Need Example of HTML ImageMap

2010-07-30 Thread Lime, Steve D (DNR)
I resurrected the example link you referenced. It can be found here:

  
http://maps.dnr.state.mn.us/cgi-bin/mapserv56?map=/usr/local/www/docs_maps/eco/rsg/search/search_example.map&qlayer=county&mode=nquery&searchmap=true

Combining imagemaps with pan/zoom functions is difficult I think. The example 
above is similar, conceptually, to your website. However, the trend is to use a 
tool like OpenLayers to call query services backed by MapServer or GeoServer 
via AJAX.

Steve

From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Paul D Pruitt
Sent: Friday, July 30, 2010 11:04 AM
To: mapserver-users@lists.osgeo.org
Cc: david.fawc...@gmail.com
Subject: [mapserver-users] Need Example of HTML ImageMap

Hi,

I'm trying to use Mapserver or GeoServer/OpenLayers to display my maps and 
their respective image in order to make use of the zooming and possibly other 
features.  On my site users can click on countries or states they have visited 
and the maps entities are flood filled with color by GD-PHP.  The site is here: 
http://wherehaveibeen.info.

I'm trying to find an example of imagemap use on MapServer because the link is 
dead on the doc page on the subject: 
http://mapserver.org/output/imagemaps.html?highlight=imagemap.  Does anyone 
have a new example they can point me to?

Thanks in advance.

Sincerely,

Paul D Pruitt

socr...@s2services.com
(301) 493-4982 (H)
(240) 277-6233 (M)
(301) 530-2461 (F)
S2 Services
9006 Friars Rd.
Bethesda, MD  20817

easyleaves.com - easier ways to pick up leaves in the 
fall.
genealogyoflife.com - tree of life in genealogy 
format
godskingsandheroes.info/software - 
free software
lulu.com/s2press - my books
planthormones.info - plant hormone theories
s2services.com - data recovery freeware list
saveofficedata.com - free service for recovering 
text from Office files
socrtwo.info - Gateway site with my links to computer 
tutorials and artistic portfolio
wherehaveibeen.info - world map you can mark to 
indicate which countries in the world you have visited
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] RE: Postgresql join with chart

2010-07-30 Thread Lime, Steve D (DNR)
Can you check your Postgres logs and see what SQL exactly is being passed to 
the database server? Steve

From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Strunck, Alexander
Sent: Wednesday, July 28, 2010 8:51 AM
To: 'mapserver-users@lists.osgeo.org'
Subject: [mapserver-users] Postgresql join with chart

Hello List,

i am relativly new to mapfiles and mapserver.
I am right now trying to bild an chart layer with my data.
if i got only one postgresql table i got pie charts with no problem...
LAYER
 NAME 'Grenzen aller Länder'
 GROUP 'baselayer'
 TYPE CHART
 INCLUDE "postgis.config"
 DATA "the_geom from (SELECT c.gid, c.area, ST_Centroid(c.the_geom) AS the_geom 
FROM basemap AS c ) as foo using unique gid using SRID=4326"
 STATUS on
PROCESSING "CHART_TYPE=PIE"

 METADATA
  WMS_TITLE 'Grenzen aller Länder'
  WMS_FEATURE_INFO_MIME_TYPE 'text/html'
 END #METADATA

 CLASS
  NAME 'Grenzen aller Länder'
   STYLE
SIZE [gid]
COLOR 0 104 55 # CMYK 100, 25, 90, 0
OUTLINECOLOR 1 1 1
WIDTH 2
   END #STYLE
 END # CLASS
 CLASS
  NAME 'Grenzen aller Länder'
   STYLE
SIZE [area]
COLOR 49 163 84 # CMYK 81, 0, 76, 0
OUTLINECOLOR 1 1 1
WIDTH 2
   END #STYLE
 END # CLASS
END # Layer

if i try to make pie charts with a join, i don´t get a map back.
LAYER
 NAME 'Grenzen aller Länder'
 GROUP 'bicc_baselayer'
 TYPE CHART
 INCLUDE "postgis.config"
DATA "the_geom from (SELECT c.gid, gmi.milps, gmi.milpr, 
ST_Centroid(c.the_geom) AS the_geom FROM bicc_basemap AS c LEFT JOIN 
bpb_m3_thema1_2008_2 AS gmi ON c.iso3_code = gmi.iso3_code) as foo using unique 
gid using SRID=4326"
gid using SRID=4326"
 STATUS on
PROCESSING "CHART_TYPE=PIE"

 METADATA
  WMS_TITLE 'Grenzen aller Länder'
  WMS_FEATURE_INFO_MIME_TYPE 'text/html'
 END #METADATA

 CLASS
  NAME 'Grenzen aller Länder'
   STYLE
SIZE [milps]
COLOR 0 104 55 # CMYK 100, 25, 90, 0
OUTLINECOLOR 1 1 1
WIDTH 2
   END #STYLE
 END # CLASS
 CLASS
  NAME 'Grenzen aller Länder'
   STYLE
SIZE [milpr]
COLOR 49 163 84 # CMYK 81, 0, 76, 0
OUTLINECOLOR 1 1 1
WIDTH 2
   END #STYLE
 END # CLASS
END # Layer

Can anyone help me?!?

Thanks

Alex



--
Internationales Konversionszentrum Bonn
Bonn International Center for Conversion (BICC) GmbH
Pfarrer- Byns-Straße 1, 53121 Bonn, GERMANY
Tel. / Phone: +49-228-911 96 0, Fax: +49-228-911 96 - 22
Internet: www.bicc.de, E-mail: b...@bicc.de

Firmensitz/ Office: Bonn
Registergericht/ Registered at: Amtsgericht Bonn, HRB 6717
Geschäftsführer/ Director: Peter Johannes Croll
Prokurist/ Authorized Signatory: Michael Dedek
Vorsitzender des Aufsichtsrates/ Chairman of the Supervisory Board:
Staatssekretär/ Deputy Minister Dr. Michael Stückradt
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Need Example of HTML ImageMap

2010-07-30 Thread Jeff McKenna

Lime, Steve D (DNR) wrote:

I resurrected the example link you referenced. It can be found here:

 

  
http://maps.dnr.state.mn.us/cgi-bin/mapserv56?map=/usr/local/www/docs_maps/eco/rsg/search/search_example.map&qlayer=county&mode=nquery&searchmap=true 



I updated the document with the new link, thanks.

-jeff



--
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/


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


RE: [mapserver-users] Need Example of HTML ImageMap

2010-07-30 Thread Bob Basques
All, 

Even hough the trend is to use the OL or other interfaces.  I feel that there 
are advantages to using the Imagemaps too.   We've put together opmse 
interesting capabilities via the imagemaps that would not be as easy to 
implement with the off the shelf tools available.   

I think it's a good idea to know how the imagemaps work anyway, but that's just 
me. 

bobb 



>>> "Lime, Steve D (DNR)"  wrote:


I resurrected the example link you referenced. It can be found here: 


  


  
http://maps.dnr.state.mn.us/cgi-bin/mapserv56?map=/usr/local/www/docs_maps/eco/rsg/search/search_example.map&qlayer=county&mode=nquery&searchmap=true
 ( 
http://maps.dnr.state.mn.us/cgi-bin/mapserv56?map=/usr/local/www/docs_maps/eco/rsg/search/search_example.map&qlayer=county&mode=nquery&searchmap=true
 ) 


  


Combining imagemaps with pan/zoom functions is difficult I think. The example 
above is similar, conceptually, to your website. However, the trend is to use a 
tool like OpenLayers to call query services backed by MapServer or GeoServer 
via AJAX. 


  


Steve 


  


From: 

mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Paul D Pruitt
Sent: Friday, July 30, 2010 11:04 AM
To: mapserver-users@lists.osgeo.org
Cc: david.fawc...@gmail.com
Subject: [mapserver-users] Need Example of HTML ImageMap 

  
Hi, 

  

I'm trying to use Mapserver or GeoServer/OpenLayers to display my maps and 
their respective image in order to make use of the zooming and possibly other 
features.  On my site users can click on countries or states they have visited 
and the maps entities are flood filled with color by GD-PHP.  The site is here: 
http://wherehaveibeen.info. 

  

I'm trying to find an example of imagemap use on MapServer because the link is 
dead on the doc page on the subject: 
http://mapserver.org/output/imagemaps.html?highlight=imagemap ( 
http://mapserver.org/output/imagemaps.html?highlight=imagemap ).  Does anyone 
have a new example they can point me to? 

  

Thanks in advance. 


Sincerely,

Paul D Pruitt

socr...@s2services.com
(301) 493-4982 (H)
(240) 277-6233 (M)
(301) 530-2461 (F)
S2 Services
9006 Friars Rd.
Bethesda, MD  20817

easyleaves.com - easier ways to pick up leaves in the fall.
genealogyoflife.com - tree of life in genealogy format
godskingsandheroes.info/software - free software
lulu.com/s2press - my books
planthormones.info - plant hormone theories
s2services.com - data recovery freeware list
saveofficedata.com - free service for recovering text from Office files
socrtwo.info - Gateway site with my links to computer tutorials and artistic 
portfolio
wherehaveibeen.info - world map you can mark to indicate which countries in the 
world you have visited 

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


[mapserver-users] ogr connection failed

2010-07-30 Thread Murat Beyhan
Hi All,

I have installed rpm package of Mapserver 5.6.3
adn I have installed gdal 1.7.2 by using tar.gz file 

when I attempt to open map file from webpage I faced the following error
message
msDrawMap(): Image handling error. Failed to draw layer named 'Dhuman'.
msOGRFileOpen(): OGR error. Open failed for OGR connection in layer
`Dhuman'. Failed to open datasource
`MYSQL:turkey,user=root,password=mysqlpass,host=localhost,port=3306,tables=d_damage
 m_village'. 

but when I use terminal for ogrinfo I can connect to database
successfully

What is wrong could you help me please


[mu...@sakura cgi-bin]$ ogrinfo
"MYSQL:turkey,user=root,password=mysqlpass,host=localhost,port=3306,tables=d_pgadata"
INFO: Open of
`MYSQL:turkey,user=root,password=mysqlpass,host=localhost,port=3306,tables=d_pgadata'
  using driver `MySQL' successful.
1: d_pgadata (None)
[mu...@sakura cgi-bin]$ 



or 



[mu...@sakura cgi-bin]$ ogrinfo
"MySQL:testogr,user=root,password=mysqlpass" 
INFO: Open of `MySQL:testogr,user=root,password=mysql_123'
  using driver `MySQL' successful.
1: deniz (Polygon)
2: il_merkezleri (Point)
3: il_sinirlari (Polygon)
4: ilce_merkezleri (Point)
5: ilce_sinirlari (Polygon)
6: iller (Polygon)
7: iller_sil (Polygon)
8: komsular (Polygon)


these works fine.


ogr also support these formats
[mu...@sakura cgi-bin]$ ogrinfo --formats
Supported Formats:
  -> "ESRI Shapefile" (read/write)
  -> "MapInfo File" (read/write)
  -> "UK .NTF" (readonly)
  -> "SDTS" (readonly)
  -> "TIGER" (read/write)
  -> "S57" (read/write)
  -> "DGN" (read/write)
  -> "VRT" (readonly)
  -> "REC" (readonly)
  -> "Memory" (read/write)
  -> "BNA" (read/write)
  -> "CSV" (read/write)
  -> "GML" (read/write)
  -> "GPX" (read/write)
  -> "KML" (read/write)
  -> "GeoJSON" (read/write)
  -> "GMT" (read/write)
  -> "SQLite" (read/write)
  -> "ODBC" (read/write)
  -> "PGeo" (readonly)
  -> "OGDI" (readonly)
  -> "MySQL" (read/write)
  -> "PCIDSK" (readonly)
  -> "XPlane" (readonly)
  -> "AVCBin" (readonly)
  -> "AVCE00" (readonly)
  -> "DXF" (read/write)
  -> "Geoconcept" (read/write)
  -> "GeoRSS" (read/write)
  -> "GPSTrackMaker" (read/write)
  -> "VFK" (readonly)






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