[OpenLayers-Users] mapserver does not show oracle layer

bartvde at osgis.nl bartvde at osgis.nl
Wed Aug 6 05:35:20 EDT 2008


Can you please first determine if this is a Mapserver problem, or an
OpenLayers problem, and then use the appropriate e-mail list?

So, check if you MAP file draws with shp2img or not as a first step.

Best regards,
Bart

>
> Hi,
> i´m having troubles shwoing a oracle layer in mapserver.
>
> in open layers i´ve:
> map =  new OpenLayers.Map( 'map' ,
> 	{
> 		scales: [ 4000000,3000000,2000000,1000000, 500000,200000, 100000,
> 50000,20000,10000 ],
> 		maxExtent: new OpenLayers.Bounds(-18,34,4,45),
> 		numZoomLevels: 10
> 	}
> );
>
> var basemap = new OpenLayers.Layer.WMS.Untiled( "MS 4.10",
> "http://172.18.210.67:8080/cgi-bin/mapserv.exe?",
> {
> 	map: '/ms4w/apps/wmssrvrefer/config.map',
> 	layers: 'border', format: 'png', 'transparent': 'on'},
> 	{ 	projection:"EPSG:4326" 	} );
> map.addLayers([basemap]);
> map.setCenter(new OpenLayers.LonLat(-8, 39.5), 0);
>
>
> In mapfile:
>
>   projection
>     "init=epsg:4326"
>   end
>
>
>  web
>      IMAGEPATH "/ms4w/tmp/ms_tmp/"
>      IMAGEURL "/ms_tmp/"
>      metadata
>        wms_title "test"
>        wms_srs "EPSG:4326"
>      end
>   end
>
> ## this show the layer !
>  layer
>     name major_roads_small_4
>     group border
>     type line
>     projection
>       "init=epsg:4326"
>     end
>     status on
>     data railways.shp
>     class
>       style
>         color 0 0 0
>         width 1
>         antialias true
>       end
>     end
>   end
>
> ##
>
>
> this layer does not show !!
>
> #################################
> layer
> 	name road_a
> 	group border
> 	type line
>
> 	projection
>       		"init=epsg:4326"
>     	end
>
> 	connectiontype oraclespatial
> 	connection "uui/pwdmydb"
> 	data "geom_73 from caop_regiao using srid 4326"
>
> 	class
> 	      style
> 	        color 185 175 155
> 	        width 3
> 	        antialias true
> 	      end
> 	end
>
> end
>
> What´s wrong ?
> --
> View this message in context:
> http://www.nabble.com/mapserver-does-not-show-oracle-layer-tp18847240p18847240.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>





More information about the Users mailing list