Oracle Map Viewer
Hi,
Im using ADFs <dvt:map component to display the Maps being generated using Map Builder.
Now i want to display the data on top this map, which is specific to the zoom level.
Depends upon zoom level, corresponding data needs to be displayed.
For this, i have different VO's to display data on the Map.
Now i have added point theme, color theme to my map. Because of this, all data is being displayed on the Map.
My Question is How can i restrict the data display specific to zoom level.
At certain zoom level, data relavant to First VO needs to be displayed as Color Theme.
By doing further zoom in, data relavant to Secong VO needs to be displayed as pont theme.
Any one can suggest something do this.
Thanks & Regards,
Konjeti
My experience is that you must create different themes (USER_SDO_THEMES) for each variation on labeling or style that you want. This may require you to create individual styles (USER_SDO_STYLES). You then have to define your base_map (USER_SDO_MAPS) with each of these layers that turn on and off at different scales. This just grunt work, but ...
The more difficult part is associating USER_SDO_MAPS scales with USER_SDO_CACHED_MAPS levels, as there is no explicit relationship. They are independent concepts and you have to arrange them so that they map to each other. This can quickly devolve to a trial and error process and will have to be repeated if you change your level structure in the USER_SDO_CACHED_MAPS row.
If your base map data is in a different SRID than your rendered cached map you'll have even more fun. If you map includes USER_SDO_THEMES supported by USER_SDO_GEOM_METADATA with different SRIDs (and why not, you don't always get to pick your data) you'll want to have a calculator handy; although trial and error might be faster.
Good luck, Mark
Similar Messages
-
Projection problem in OracleAS Map Viewer
Hi,
I am using OracleAS Map Viewer 11 EA1and I try to display a map with an image (srid=1002000) and a vector (srid=8192) on the top. If I understand the documentation correctly, the vector might be reprojected into the map srid which is 1002000. But when the map is created, the vector is not correctly reprojected (I see some roads in the ocean!). I am wandering if it is a bug in map viewer; or maybe I didn't use it corectly!
My query looks like:
<map_request
title=""
datasource="all_images"
width="1229"
height="840"
srid="1002000"
antialiase="false"
format="PNG_URL">
<center size="7865.9766">
<geoFeature>
<geometricProperty typeName="center">
<Point>
<coordinates>
1230462.1 , -582145.4
</coordinates>
</Point>
</geometricProperty>
</geoFeature>
</center>
<themes>
<theme name="mosaic_pan'"
min_scale="5000000.0"
max_scale="0.0">
<jdbc_georaster_query
jdbc_srid="1002000"
datasource="all_images"
georaster_table="mosaic.mosaic_pan"
georaster_column="georaster"
asis="false">
select georaster from mosaic.mosaic_pan where rowid='AAANn1AAKAAAAAKAAA'
</jdbc_georaster_query>
</theme>
<theme name="road_l" min_scale="10000.0" max_scale="0.0">
<jdbc_query
datasource="all_images"
jdbc_srid="8192"
render_style="MDSYS:L.MAJOR STREET"
spatial_column="shape1"
>select shape1 from can51.road_l</jdbc_query>
</theme>
</themes>
</map_request>
Thanks in advance,
Ganaelyour map request seems correct, and yes mapviewer will automatically reproject your vector theme if it's srid (8192) is different from the request srid (1002000). What's more likely is that your georaster is not being displayed correctly? Have you tried displaying the vector road data against a know vector boundary data set like country/state, in the 1002000 projection and see if everything is working fine? then add the georaster layer back on and go from there....
-
Load maps in database - oracle map viewer
Hi,
In my project we are trying to use maps to display it on webpage for this we are using oracle map viewer. We’ve got maps from third party in the form of tif format. Could you please tell me how to load these maps in databse table? I’m newbie to oracle map viewer, your help will be deeply valued.Hi Paul, you said "We’ve got maps from third party in the form of tif format." they must be rasters. The best approach is to use MapBuilder to load such data into Spatial as GeoRaster objects and then define them as themes to display in MapViewer. All can be done using MapBuilder. you can also use the client-side java GeoRasterTools (a viewer) to load, display and export those tiff files. For that you can start with the GeoRaster user's guide.
regards,
Jeffrey -
Oracle Map Viewer Application on Oracle Web Logic
We have developed an application using map viewer, Oracle 10g and deployed it in Oracle AS 10g. It was running fine and OK. Now we switched over the same application to Web logic10.3, using map viewer 10.1.3.3, Oracle db11g, JDeveloper 11g. We could deploy successfully on Web logic. The problem encountered is that During the map display (mapviewer.run()), an exception “Map viewer cannot process your map request. Check map viewer log for details.” is coming. We checked Map viewer log file and found no comments.
If your web server is working and the forms server is running type:
http://ip addr:port/dev60html/runform.htm
You need to put the ip address or name of your server in and the port number apache is running on (leave blank if this is 80).
This gives you the Oracle Forms start screen.
cheers
tony -
How to restrict pan area in oracle map viewer?
Hi,
I have added map to Jpanel,Now I want to restirct panning functionality of map to a defined area.Because when I keep on panning to extreme East or West side even when my map boudaries are panned completely,I can still drag the map and So,after some point my map is lost completely(or its panned completely to extreme right or left) and I can see only white screen on my Jpanel.
Please can anyone suggest me an API or any alternative solution to achieve this.
Thanks.Hi,
using oraclemaps javascript API you can use mapview.enableMapBoundConstraint(true); Your map will be bound the the tilelayers boundingbox...
hope that helps.
dominik -
Google Map Integration with Map Viewer is not working
Hi Team,
My MapViewer Version: Ver11_1_1_7_B130111
I have created a Google Map (with Type of Map Source as "Google Maps") in Oracle Map Viewer and i could see google map in Oracle Map Viewer(using "show Map").
I wanted to show a village map theme over the above google map in a web page and i am using Jdeveloper to integrate map viewer with Village data. I could see the google maps inside Jdeveloper however when i run the Jdeveloper code google map is not shown inside the web page.
I tried with Oracle Maps, Bing Maps as the "map source" in map viewer and tried integrating inside Jdeveloper and got same result (blank screen). However when i tried a different mapviewer ( Base Map ELOCATION.WORLD_MAP from OracleFMW MapViewer Home ) i could see the map in the web page.
I could get all other base maps (created with "internal" as the map source") in the web page, so there is some thing that i am missing with Google Maps, Bing Maps, Oracle Maps. Could you please help me what is that i am missing or point to a help resource?
Thanks
NagHi Jayanth,
Issue is solved after creating the web page using latest JDeveloper (11.1.2.4). Thanks a lot for your help
With Regards
Nag -
Hi,
In Oracle Spatial Option (Oracle Map Viewer), it seams I have a little bit
trouble with getting the numbers/values/any text/numeric data.
What is the problem?
I imported all necessary data into oracle db (parcels, numbers, city names,
etc..), so I used mapdef.jar tool. I defined all new map names, themes and
styles (based on examples), to customize my mapview-er's view. When I define
parcels as a theme name, it works fine, but when I want to insert the
numbers/text, it falls (simply not showing content of numeric data theme).
Then I tried to solve the problem myself, so I tried to analyze the data
through enterprise manager, and I compared cities/counties/states from us
sampledata (scott/tiger), and I realized that they have r tree spatial index
(sdo_gtype) - collection. I also created(like) indexes, pointing on the
column I would like to show on the map, but it still didn't work. Anyone has
some experience in that area?
Beside that I also have MDSYS.SDO_GEOMETRY column created filled with
coordinates. They are completely the same as in cities example... looks like
that:
SDO_GEOMETRY(2001, NULL, SDO_POINT_TYPE(643752449, 509765756, NULL), NULL,
NULL).
Why I cannot see those numbers? I tried all I knew, and I don't see the
point. I have equal procedure, and almoast equal data in scott/tiger
(cities), and I clearly see city names (from New York to Los Angeles), but
when I repeat the same stuff on numbers I am not able to get any number
inside my own map!
Any hints???
p.s. I have 8535 numbers to display? Is that a problem? My initial
mapinit.jsp input coordinates are pretty high. I use values: 643752449 (x),
509765756 (y). Initial map size =53000, and min & max scale is also set
properly as for parcels_theme!I'm not sure what you are trying to do. The numbers in the geometry type are rendered (drawn), so you don't see the numbers per se, but instead they are drawn.
Can you explain in more detail what you are doing, and what you are expecting? -
Deploying map viewer on tomcat
hello,
because there was no useable result of all the past threads handling this topic, i would like to ask again.
Is there any experience in deploying the Oracle Map Viewer on a Tomcat server?
Sure, it is possible to deploy the ear/war file at Tomcat and to call the main page of Map Viewer (but not completely, at all), but after that, it seems like some parts of the OC4J are missing, like the xml-parser.
I tried something with the jars of oc4j, the classpath of tomcat and so on, but nothing really helped.
And i know about the pro and con of deploying Map Viewer anywhere else than the oc4j or application server. So there is no need to mention this again.
thanks for help
SebastianHi,
I've been running mapvier on tomcat 5.5.15 for a while now, without any problems.
I do that in my dev environment because it's faster to restart. I guess you still need an oracle appserver license even if you run it in tomcat.
Below are the contents of my lib directories:
TOMCAT_HOME/common/lib:
activation.jar
commons-el.jar
jasper-compiler-jdt.jar
jasper-compiler.jar
jasper-runtime.jar
jsp-api.jar
mail.jar
naming-factory-dbcp.jar
naming-factory.jar
naming-resources.jar
ojdbc14.jar
ojdbc14dms.jar
servlet-api.jar
xmlparserv2.jar
and
mapviewerWEB-INF/lib
adf-faces-api.jar
adf-faces-impl.jar
adfshare.jar
chartbuilder.jar
classgen.jar
commons-beanutils.jar
commons-collections.jar
commons-digester.jar
commons-logging.jar
jsf-api.jar
jsf-impl.jar
jstl.jar
lbs.jar
mapcache.jar
mapviewer.jar
mvclient.jar
mvconsole.jar
mvmbeans.jar
sdoapi.jar
sdogr.jar
sdonm.jar
sdoutl.jar
sdovis.jar
standard.jar
wmsfilter.jar
Also, you have to create the login you will use for the mapviewer admin:
your conf/tomcat-users.xml file should at least contain this:
<role rolename="tomcat"/>
<role rolename="manager"/>
<role rolename="admin"/>
<role rolename="map_admin_role"/>
<user username="yourname" password="secret" roles="map_admin_role,tomcat,admin,manager"/>
Then you use yourname to login to the mapadmin.
This works for me.
Cheers,
Calin -
hi all,i need to display maps generated by oracle map viewer inside oracle portal.How can i do that?Is there any ready made portlet for that or do i have to create my own portlet?.any help is appreciated.Thanks
Hi!,
mapviewer is a middle tier component; you can compose your website as you want to.
specify your ideas a bit.
regards,
Andreas -
Hi Frnds,
Presently we are using OBIEE 10g. We have some reports for which we need to integrate with Oracle Map viewer.
We are available with both Oracle Map viewer Versions 10 and 11.
Which one would better suites for OBIEE 10g ? Suggestions and feedback.
If Oracle Map viewer 10 why not 11 ? Any reasons ??
It would be grt if some body guides me for step by step integration of OBIEE10g with Oracle map viewer.
Thank you....I guess mapviewer 10g is no more available for download..., so that's why i went ahead with 11g mapviewer...
Anyways , you can raise an SR with Oracle Support...
Few more links that might be useful to you..
http://www.peakindicators.com/index.php/knowledge-base/68-mapping-capabliity-with-oracle-bi-ee-faqs
http://www.dbuggr.com/smallwei/step-step-instruction-install-oracle-mapviewer-10g-10-1-3-1/
Also read the Readme file which comes with mvdemo data...
http://www.oracle.com/technetwork/middleware/mapviewer/mapviewer-obiee-129557.pdf
Thanks
Ashish -
What edition of Oracle DB do I need for Map Viewer 12c?
Hi All,
What edition of Oracle DB do I need for Map Viewer 12c?
Thanks,What version of Oracle client do I need for a machine with Windows 8?
Windows 8 doesn't require ANY version of Oracle client!
Most installations of Windows 8 never install Oracle client and they have never had any problem except the large set of problems that come included with the OS itself (bugs).
So you clearly need to explain what PROBLEM you are trying to solve.
Then we can help you find the best way to solve it. For example you could download and use the free Oracle Sql Developer and just use JDBC to connect to your databases. Then you don't need an Oracle client at all. -
Hi,
I need to install map viewer in obiee 11g to show maps in dashboards. I have no idea about this, can any one help me.
Thanks,
PJOBIEE Samples has very good documentation and the schemas to download and set this up
http://www.oracle.com/technetwork/middleware/bi-foundation/obiee-samples-167534.html
Select the OBIEE 11.1.1.3 - Sample Application section -
When running the OMWB, the process will hang while trying to map the views. I have let it run overnight and it will still not move. Upon further examination of the error files, I got this error:
java.lang.NoSuchMethodError
at oracle.mtg.sqlserver2k.parser.Sp72.querySpec(Sp72.java:10959)
at oracle.mtg.sqlserver2k.parser.Sp72.queryTerm(Sp72.java:10736)
at oracle.mtg.sqlserver2k.parser.Sp72.queryExp(Sp72.java:10679)
at oracle.mtg.sqlserver2k.parser.Sp72.procedureStmt(Sp72.java:3369)
at oracle.mtg.sqlserver2k.parser.Sp72.beginProcedure(Sp72.java:2611)
at oracle.mtg.sqlserver2k.parser.Sp72.Start(Sp72.java:2575)
at oracle.mtg.sqlserver2k.parser.Sp72.parse(Sp72.java:270)
at oracle.mtg.sqlserver2k.parser.Sp72.parseView(Sp72.java:201)
at oracle.mtg.sqlserver2k.parser.SQLServer2KParser.parseViewText(SQLServer2KParser.java:109)
at oracle.mtg.sqlserver2k.server.SQLServer2KSourceModelMap.mapViews(SQLServer2KSourceModelMap.java:1489)
at oracle.mtg.sqlserver2k.server.SQLServer2KSourceModelMap.mapSourceModel(SQLServer2KSourceModelMap.java:389)
at oracle.mtg.sqlserver2k.ui.SQLServer2KCaptureWizard.map(SQLServer2KCaptureWizard.java:531)
at oracle.mtg.migrationUI.ActionMenuHandler._mapSourceModel(ActionMenuHandler.java:457)
at oracle.mtg.migrationUI.ActionMenuHandler.run(ActionMenuHandler.java:95)
at oracle.mtg.migration.WorkerThread.run(Worker.java:268)
Has anyone encountered this or something similar before? Any help is greatly appreciated
JThere is information on reporting bugs with reproducible testcases in the link below.
http://www.oracle.com/technology/support/tech/migration/workbench/index.html
In the case of mapping views, the source view text or a cut down smaller testcase that reproduces the error, and the workbench version, are usually sufficient.
Regards,
Turloch
Oracle Migration Workbench Team. -
Can't show Greate Circle Route (in SRID 8307) in Map Viewer
I've got a task to show flight tracks on the world map in Map Viewer.
I've got a table with appropriate geometry
INSERT INTO USER_SDO_GEOM_METADATA (TABLE_NAME, COLUMN_NAME, DIMINFO, SRID) VALUES (
'TMP_LEG_ARC_001', 'LEG_GEOM',
SDO_DIM_ARRAY(
SDO_DIM_ELEMENT('LONG', -180.0, 180.0, 0.05),
SDO_DIM_ELEMENT('LAT', -90.0, 90.0, 0.05)
8307);
I've got a theme created from this column. It's evident that flights (and any other straight lines on the earth surface) should look like arcs but in MapViwer I can see straight lines.
It looks like Map Viewer just projected ends of line on the map and then draw straight line between them, instead of projecting whole line on the map (which should be converted into arc)
What have I done wrong?!
Edited by: Wishmaster on 08.11.2012 21:38MapViewer doesn't display them as great circles. This will be fixed in a future release.
Meanwhile you can use Oracle Spatial functions to create the sissified lines which will approximate/be displayed as flight paths/great circles.
That is use something like Dan Geringer's (sample code so usual disclaimers apply) densify_line plsql stored procedure below.
The densify_line function takes two arguments:
• two_pt_line - The line to densify
• arc_tolerance - The interval (in meters) used to densify the line
The first argument calls for a two point line. It ensures the endpoints are included in the densified result.
You can also pass in a linestring with more than two points. The end points are ensured to be part of the densified line, but the intermediate shape points are not. To guarantee shape points, you can call densify_line iteratively with the 2 point line segments of a linestring.
CREATE OR REPLACE FUNCTION densify_line (two_pt_line MDSYS.SDO_GEOMETRY,
arc_tolerance number) RETURN MDSYS.SDO_GEOMETRY
DETERMINISTIC IS
lrs_segment MDSYS.SDO_GEOMETRY;
new_point MDSYS.SDO_GEOMETRY;
densified_line MDSYS.SDO_GEOMETRY := mdsys.sdo_geometry (two_pt_line.sdo_gtype,
two_pt_line.sdo_srid,
null,
mdsys.sdo_elem_info_array (1,2,1),
mdsys.sdo_ordinate_array ());
curr_measure NUMBER;
times_to_loop NUMBER;
BEGIN
IF two_pt_line IS NOT NULL
THEN
densified_line.sdo_ordinates.extend(2);
densified_line.sdo_ordinates(1) := two_pt_line.sdo_ordinates(1);
densified_line.sdo_ordinates(2) := two_pt_line.sdo_ordinates(2);
lrs_segment := SDO_LRS.CONVERT_TO_LRS_GEOM (two_pt_line);
times_to_loop := FLOOR (lrs_segment.sdo_ordinates(lrs_segment.sdo_ordinates.count) / arc_tolerance);
curr_measure := 0;
FOR i IN 1 .. times_to_loop LOOP
curr_measure := curr_measure + arc_tolerance;
densified_line.sdo_ordinates.extend(2);
new_point := sdo_lrs.locate_pt (lrs_segment, curr_measure);
densified_line.sdo_ordinates(densified_line.sdo_ordinates.count-1) := new_point.sdo_ordinates(1);
densified_line.sdo_ordinates(densified_line.sdo_ordinates.count) := new_point.sdo_ordinates(2);
END LOOP;
IF curr_measure < lrs_segment.sdo_ordinates(lrs_segment.sdo_ordinates.count)
THEN
densified_line.sdo_ordinates.extend(2);
densified_line.sdo_ordinates(densified_line.sdo_ordinates.count - 1) :=
two_pt_line.sdo_ordinates(two_pt_line.sdo_ordinates.count - 1);
densified_line.sdo_ordinates(densified_line.sdo_ordinates.count) :=
two_pt_line.sdo_ordinates(two_pt_line.sdo_ordinates.count);
END IF;
END IF;
RETURN densified_line;
END;
/ -
OBIEE Map viewer integration error
I have problem with obiee and mapviewer integration.
i have completed the phase-1 from the following blog
(http://oraclebizint.wordpress.com/2007/09/25/oracle-bi-ee-10133-and-mapviewer-step-by-step-integration-phase1/)
At the end when i was trying to create narrative view the code below mentioned . But after updating this I was unable to get the map.
The code as follows....
<html>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<TITLE>Oracle Maps</TITLE>
<link rel="stylesheet" type="text/css" href="../t.css" />
<script language="Javascript" src="/mapviewer/fsmc/jslib/oraclemaps.js"></script>
<script language=javascript>
var mapview;
function showMap()
var baseURL = "http://"+document.location.host+"/mapviewer";
var mapCenterLon = -122.45;
var mapCenterLat = 37.6706;
var mapZoom = 4;
var mpoint = MVSdoGeometry.createPoint(mapCenterLon,mapCenterLat,8307);
mapview = new MVMapView(document.getElementById("map"), baseURL);
mapview.addBaseMapLayer(new MVBaseMap("mvdemo.demo_map"));
mapview.setCenter(mpoint);
mapview.setZoomLevel(mapZoom);
mapview.display();
var Region = getURLParameter("Region");
Region = Region.toUpperCase();
var Parameters="\"" + Region + "\"";
var marraypara = new Arrayparameter(parameters,'sarray','city_list');
var themebasedfoi=mapview.getThemeBasedFOI("themebasedfoi1");
if (themebasedfoi=null)
themebasedfoi = new MVThemeBasedFOI('themebasedfoi1','mvdemo.customer_by_cities');
themebasedfoi.setQueryParameters(marrayPara);
themebasedfoi.setBringToTopOnMouseOver(true);
mapview.addThemeBasedFOI(themebasedfoi);
else
themebasedfoi.setQueryParameters(marrayPara);
themebasedfoi.setBringToTopOnMouseOver(true);
themebasedfoi.refresh() ;
function getURLParameter(paramName) {
var strURLParamReturn = "";
var strHref = window.location.href;
if ( strHref.indexof("?") > -1 ) {
var strQuerystring = strhref.substr(strHref.indexof("?")).toLowerCase();
var aQueryString = strQueryString.split("&");
for ( var iparam = 0; iparam < aQueryString.length; iparam++ ){
if (
aQueryString[iparam].indexOf(ParamName.toLowerCase() + "=") > -1 ){
var aparam = aQueryString[iparam].split("=");
strURLParamReturn = aparam[1];
break;
return unescape(strURLParamReturn);
</script>
</head>
<body onload= javascript:showMap()></body>
</html>
can anybody help me....
thanks in advance.
Edited by: user10767487 on Mar 31, 2009 10:33 PM
Edited by: user10767487 on Mar 31, 2009 10:41 PMAhsan has posted a My Oracle Support document ID. It is against the rules of the OTN forums to paste content from My Oracle Support; you will need to have a valid Customer Support Identifier (CSI) to access the information via MOS.
Andy.
Maybe you are looking for
-
I'm trying to record and nothing is happening!
I have my Blue Snowball hooked up to my 2ghz Intel Pro/duo Imac. I have set the Audio record path. I can see a level next to the instrument in the arrange window. I can hear myself through the head/phones. When I try to record, nothing happens. What
-
Preference (.plist) files have a black background with black text
Like the title says. It's not causing any trouble apart from being unreadable, just a little annoying. Any solutions? Is there a plist file that holds information on how other plist files should look? Oh yeah, this is my other Mac- a G4 with 10.5.8.
-
Can't see bex queries in metadata repository
Hi Pros, I have created a lot of bex query and saved in my favorite, but I can't see them in metadata repository. why.
-
Hi, As I have observed different informations about the current state of iFS I would be thankful if the following question could be answered. Has iFS been already released and if it is still under development when it will be released. Regards Samuil
-
Registered iLife, but iWeb not working
I purchased iLife '06, and finally installed it on my MacBook Pro, which also had iWeb on it. When I open iWeb, everything is greyed out. I can't use it. Any ideas? Even if I didn't install iLife, I'm not sure why my laptop came with iWeb if I couldn