Mapviewer and georaster...

Using MapViewer_10(georaster.jsp), I am trying to display a georaster map...
1. PL/SQL
create table GEORASTER_TABLE
(georid number primary key,
type varchar2(32),
GEORASTER sdo_georaster);
call sdo_geor_utl.createDMLTrigger('GEORASTER_TABLE', 'GEORASTER');
create table RDT_GEOR of sdo_raster
(primary key (rasterid, pyramidLevel, bandBlockNumber,
rowBlockNumber, columnBlockNumber))
lob(rasterblock) store as (nocache nologging);
commit;
declare
geor SDO_GEORASTER;
begin
delete from georaster_table where georid = 1;
insert into georaster_table
values( 1, 'TIFF', sdo_geor.init('RDT_GEOR', 1) );
select georaster into geor
from georaster_table where georid = 1 for update;
sdo_geor.importFrom(geor, '', 'TIFF', 'file',
'/u00/SFTP_USER_DIR/img1.tif');
update georaster_table set georaster = geor where georid = 1;
commit;
end;
declare
gr1 sdo_georaster;
begin
select GEORASTER into gr1
from GEORASTER_TABLE where georid = 1;
sdo_geor.changeFormat(gr1, 'blocksize=(256,256,3) interleaving=BIP');
update GEORASTER_TABLE set GEORASTER = gr1 where georid = 1;
commit;
end;
declare
gr sdo_georaster;
begin
select georaster into gr
from GEORASTER_TABLE where georid = 1 for update;
sdo_geor.generatePyramid(gr, 'resampling=NN');
update GEORASTER_TABLE set georaster = gr where georid = 1;
commit;
end;
DECLARE
gr sdo_georaster;
BEGIN
SELECT georaster INTO gr FROM GEORASTER_TABLE WHERE georid = 1 FOR UPDATE;
sdo_geor.georeference(gr, 262148, 1,
sdo_number_array(1,0,1),
sdo_number_array(0,-1,1));
UPDATE GEORASTER_TABLE SET georaster = gr WHERE georid = 1;
COMMIT;
END;
/DECLARE
sptext sdo_geometry;
BEGIN
SELECT sdo_geor.generateSpatialExtent(a.georaster) INTO sptext
FROM GEORASTER_TABLE a WHERE a.georid=1 FOR UPDATE;
UPDATE GEORASTER_TABLE a SET a.georaster.spatialextent = sptext WHERE
a.georid=1;
COMMIT;
END;
commit;
INSERT INTO user_sdo_themes VALUES (
'GEORASTER_TABLE',
'GeoTiff image',
'GEORASTER_TABLE',
'GEORASTER',
'<?xml version="1.0" standalone="yes"?>
<styling_rules theme_type="georaster" raster_table="RDT_GEOR"
raster_id="1" raster_bands="0,1,2">
</styling_rules>' );
commit;
select v.georid, sdo_geor.validateGeoraster(v.georaster) isvalid from georaster_table v
-- TRUE --
select v.georid, sdo_geor.schemavalidate(v.georaster) isvalid from georaster_table v
-- TRUE --
2. MapViewer
Data Sourse: mvdemo
SRID: 262148
X center: 0
Y center: 0
Map Size: 10
Request Mode: rasterid
GeoRaster Table: GEORASTER_TABLE
GeoRaster Column: GEORASTER
Raster ID: 1
Raster Table: RDT_GEOR
Pyramid Level:
Bands: 0,1,2
Query Condition:
3. Click Submit and see the blue square..........
What i'm doing wrong?

Hi Maxim,
some comments:
1) To use the georaster.jsp page you don't need to create the predefined theme.
2) You should register the GeoRaster spatial extent on the metadata view, and also create a spatial index. Something like (the dimension element values are just sample, you should use values that refer to your data):
INSERT INTO USER_SDO_GEOM_METADATA VALUES
( 'georaster_table',
  'georaster.spatialextent',
  SDO_DIM_ARRAY(
    SDO_DIM_ELEMENT('X', 496602.844, 695562.844, 0.000005),
    SDO_DIM_ELEMENT('Y',8788409.499,8973749.499, 0.000005)
  262148 -- SRID
CREATE INDEX geor_idx ON georaster_table(georaster.spatialextent)
  INDEXTYPE IS MDSYS.SPATIAL_INDEX;3) I think you should review your georeference parameters. I'm seeing resolution equal 1 and the top corner as 1,1. Look the Tiff parameters (resolution and coordinates) and use them.

Similar Messages

  • Scale in MapViewer and MapBuilder

    Hello everyone,
    short question on scale-definitions in MapBuilder compared to MapViewer:
    I'm using google coordinates on a tilelayer to convert some local data to 3785
    <coordinate_system srid="3857" minX="-2.0037508E7" minY="-2.0037508E7" maxX="2.0037508E7" maxY="2.0037508E7"/>
    <tile_image width="256" height="256"/>
    <zoom_levels levels="19" min_scale="262144.0" max_scale="1.0" min_tile_width="76.43702697753906" min_tile_height="2.0037508E7">
    <zoom_level level="0" name="" description="" scale="1.0" tile_width="2.0037508E7" tile_height="2.0037508E7"/>
    <zoom_level level="1" name="" description="" scale="2.0" tile_width="1.0018754E7" tile_height="1.0018754E7"/>
    <zoom_level level="2" name="" description="" scale="4.0" tile_width="5009377.0" tile_height="5009377.0"/>
    <zoom_level level="3" name="" description="" scale="8.0" tile_width="2504688.5" tile_height="2504688.5"/>
    <zoom_level level="4" name="" description="" scale="16.0" tile_width="1252344.25" tile_height="1252344.25"/>
    <zoom_level level="5" name="" description="" scale="32.0" tile_width="626172.125" tile_height="626172.125"/>
    <zoom_level level="6" name="" description="" scale="64.0" tile_width="313086.0625" tile_height="313086.0625"/>
    <zoom_level level="7" name="" description="" scale="128.0" tile_width="156543.03125" tile_height="156543.03125"/>
    <zoom_level level="8" name="" description="" scale="256.0" tile_width="78271.515625" tile_height="78271.515625"/>
    <zoom_level level="9" name="" description="" scale="512.0" tile_width="39135.7578125" tile_height="39135.7578125"/>
    <zoom_level level="10" name="" description="" scale="1024.0" tile_width="19567.87890625" tile_height="19567.87890625"/>
    <zoom_level level="11" name="" description="" scale="2048.0" tile_width="9783.939453125" tile_height="9783.939453125"/>
    <zoom_level level="12" name="" description="" scale="4096.0" tile_width="4891.9697265625" tile_height="4891.9697265625"/>
    <zoom_level level="13" name="" description="" scale="8192.0" tile_width="2445.98486328125" tile_height="2445.98486328125"/>
    <zoom_level level="14" name="" description="" scale="16384.0" tile_width="1222.992431640625" tile_height="1222.992431640625"/>
    <zoom_level level="15" name="" description="" scale="32768.0" tile_width="611.4962158203125" tile_height="611.4962158203125"/>
    <zoom_level level="16" name="" description="" scale="65536.0" tile_width="305.74810791015625" tile_height="305.74810791015625"/>
    <zoom_level level="17" name="" description="" scale="131072.0" tile_width="152.87405395507812" tile_height="152.87405395507812"/>
    <zoom_level level="18" name="" description="" scale="262144.0" tile_width="76.43702697753906" tile_height="76.43702697753906"/>
    </zoom_levels>
    on zoomlevel 18 I'm "closest" to the ground, on 1 I can see the whole world (no data there in my theme but theoretically...) - all fine (except black borders between tiles - other problem).
    Now I want to improve image quality by choosing pyramid-levels for the zoom-level and tried to figure out a way to set up basemaps in mapbuilder using ratio.
    That's where I noticed, that MapBuilder seems to use a different way of calculating scale in comparison to MapViewer. E.g. in my case scale 262144 is zoom-level 18 in MapViewer, but viewing the picture in MapBuilder I have to chose scale 1024 to get the same picture (which is zoom-level 10 in MapViewer).
    Did I get anything wrong about this? Or is there anything I can do to sync the scales in order to make working with mapbuilder and mapviewer combined easier?
    Also is there a way to see which pyramid-level of the georaster-file is used to calculate a maptile in MapViewer?
    Thanks,
    NilsO

    Hi NilsO,
    first about the pyramid level of GeoRaster used. MapViewer/MapBuilder calculates the closest pyramid level for the current map scale (based on map and device windows). You can find this information in the log when the GeoRaster theme images are being generated (you may need to set the logging to finest).
    About the tile layer definition, in XML tile layer definition the values of min_scale and max_scale are interpreted differently from MapViewer base map definition. So I think in your case the min_scale should be 1.0 and the max_scale should be 262144 in XML, and the zoom levels would be in reverse order that you have.
    How did you generate this tile layer definition?
    The visualization scales in MapBuilder/MapViewer and Oracle maps in general should be consistent, although rendering in MapBuilder does not use the zoom levels of Oracle Maps (can be any scale). Please try changing the tile layer definition as mentioned above, to see if you still get the scale differences.
    Joao

  • Jboss with mapviewer and network configuration.

    Hello All,
    developped succesfully an application piece with mapviewer and network (10.x) ndm on OAS.
    Now should integrate in solution running on JBoss 4.0.5.
    First problem arises when cannot reach new mapviewer html admin pages.
    Anybody has experience on this?
    Thank you,
    David

    Thank you again Justin.
    I think I'm getting closer but not working yet.
    Was missing the step you pointed out.
    Used succesfully the AdfInstaller from OTN after copying the 36 lib files to JBOSS_HOME/server/default/lib.
    But can't run /mapviewer/faces/home.jspx yet.
    Next I post errors for before (a) and after (b) having deleted folder jboss\server\default\deploy\jbossweb-tomcat55.sar\jsf-libs [Understood this as equivalent step from doc "JBoss Deployment Notes" although written for version 4.0.3]
    Also tried to delete folders tmp, log and data, but get same error.
    (A)
    Error raised on executing
    /mapviewer/faces/home.jspx
    org.apache.jasper.JasperException
         org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:512)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:395)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
         com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
    On the log at the jboss cmd prompt:
    22:22:08,421 ERROR [STDERR] Thu Dec 06 22:22:08 CET 2007 INFO [oracle.lbs.mapcac
    he.mcservlet] *** Oracle MapCacheServer started. ***
    22:22:55,812 ERROR [UIComponentTag] Faces context not found. getResponseWriter w
    ill fail. Check if the FacesServlet has been initialized at all in your web.xml.
    22:22:55,953 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
    java.lang.NullPointerException
    at javax.faces.webapp.UIComponentTag.setupResponseWriter(UIComponentTag.
    java:929)
    at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:310)
    (B)
    Error raised on executing
    /mapviewer/faces/home.jspx
    org.apache.jasper.JasperException: org.apache.myfaces.taglib.core.ViewTag
         org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:512)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:810
    On the log at the jboss cmd prompt:
    22:50:56,156 INFO [STDOUT] INFO [oracle.lbs.mapserver.core.MapperConfig] settin
    g logging level to error
    22:51:01,859 ERROR [STDERR] Thu Dec 06 22:51:01 CET 2007 INFO [oracle.lbs.mapcac
    he.mcservlet] *** Oracle MapCacheServer started. ***
    22:51:47,687 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
    java.lang.NoClassDefFoundError: org.apache.myfaces.taglib.core.ViewTag
    at org.apache.jsp.home_jspx._jspx_meth_f_view_0(home_jspx.java:137)
    at org.apache.jsp.home_jspx._jspService(home_jspx.java:118)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
    .java:334)
    22:51:47,687 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servle
    threw exception
    java.lang.NoClassDefFoundError: org.apache.myfaces.taglib.core.ViewTag
    at org.apache.jsp.home_jspx._jspx_meth_f_view_0(home_jspx.java:137)
    at org.apache.jsp.home_jspx._jspService(home_jspx.java:118)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    Also would like to solve error related to georaster that seems a missing class:
    22:58:42,343 ERROR [STDERR] Exception in thread "Thread-81"
    22:58:42,343 ERROR [STDERR] java.lang.NoClassDefFoundError: javax/media/jai/Data
    BufferFloat
    22:58:42,359 ERROR [STDERR] at oracle.sdovis.theme.GeoRasterThemeProducer.pr
    epareData(GeoRasterThemeProducer.java:577)
    22:58:42,359 ERROR [STDERR] at oracle.sdovis.GeoRasterTheme.prepareData(GeoR
    asterTheme.java:90)
    22:58:42,359 ERROR [STDERR] at oracle.sdovis.LoadThemeData.run(LoadThemeData
    .java:66)
    Regards,
    David

  • Question re: MapViewer and Network Model functions

    Hi all,
    Quick question re: MapViewer and it's support for the Network Model and the shortest-path functions. If I create a base map with a network theme based on my (large) network, and then use a jdbc_network_query on the same network to do some shortest path analysis will MapViewer use the (hopefully) cached copy of the Network to calculate the shortest path? i.e can I expect good response times once the cache is warmed up?
    Thanks,
    Steve

    Hi Steve,
    MapViewer uses the Network Java library to run the shortest path algorithm. This library is independent of the MapViewer cache, and also not thread safe. So for now the network is always loaded. The load time may be reduced if the request has a MBR, but it is not the ideal solution. There is a working going on, and we hope to avoid this load in future versions.
    Thanks.

  • Confused about Mapviewer and SQL in OBIEE 11g.

    I read in another post that you cant use mapviewer unless you have an oracle database.
    Here is my confusion. The mapviewer product comes with OBIEE 11g, Correct?
    If I use Google Maps, and load the map information into an SQL data base, why wouldnt I be able to get it to work?
    I cant believe that Oracle, who makes a big deal about how OBIEE can work with "Any data source", would provide a key function
    that would only work with an Oracle data base, thereby purposely excluding many of their customers from using that key function.
    Someone please clear this up for me because we need to use maps and we use SQL Server 2008  for our data warehouse.

    Hi katherine,
    FILTER(count(distinct("customer info dimesion"."customerID")) USING ("TradeType Dimesion"."TradeType" = '001'))I think your formula there is mistake like many braces...instead type this in your f(x)
    =>Filter(count(distinct customer_id) USING trade type='001')
    This filter function is same like a case statement,if you filter still gives error write a case statement
    CASE WHEN TradeType Dimesion.TradeType='001' THEN count(distinct customer info dimesion.customerID) ELSE 0 END
    Will it be helpful?,follow this etiquette http://forums.oracle.com/forums/ann.jspa?annID=939
    By,
    KK

  • Mapviewer and file directory for apps

    Hello,
    i have mapviewer 11 EA1 pre-deployed and oracle 10.2 data base. I want to build up a little data mart with an interface to mapviewer to use geographical card material. Every query should be handled inside a browser. So i want to use servlet and jsp.
    I've built a jsp which works well within jdeveloper(embedded oc4j client). I can see the card material within the brower. Now my question is where in the file system(windows xp) can i put my jsp and servlet to make queries from inside of a browser and "it runs of its own". If i would use tomcat it's something like localhost:8080/gis but how is it in combination with mapviewer. I don't want to separate the servlets for my data mart and the gis-query. All should be in one directory, naturally with subdirectories.
    Hopefully, someone can help me
    thanks a lot

    Hi,
    /Users/YourUsername/Library/Safari/Bookmarks.plist
    Copy it to the new machine and you should be fine.

  • MapViewer and Google Maps

    Hi
    The MapViewer 11g manual refers to MVGoogleTileLayer. Is it possible to access this layer via MapViewer by using a <map_tile_theme map_tile_layer="???"/> within a <theme> of a <map_request>? I've read the docs and searched as best I can, but everything points to using JavaScript and I would like to do it via a map request.
    Many thanks
    Mike

    Hi Mike,
    this can be done if you use the latest patch (10084760). Basically the steps would be:
    1) On the web administration page, create an external tile layer of type Google maps. You will need to set your key parameter.
    2) To test your tile layer, you can select it on Manage Map Tile Layers web page, and click on the "View Map/Manage Tiles'.
    3) Then you can go to the Requests page and try a map request. For example:
    <?xml version="1.0" standalone="yes"?>
    <map_request
      datasource="mvdemo"
      width="630"
      height="367"
      transparent="true"
      istilereq="true"
      antialiase="true"
      format="PNG_STREAM"
    >
      <box>
        <coordinates> -10527518.8515625,4490828.208984375 -10000518.8515625,5000828.208984375   </coordinates>
      </box>
      <themes>
        <theme name="tile_theme" datasource="mvdemo">
          <map_cache_theme map_cache_name="google_map"
                     snap_to_cache_scale="true" />  
        </theme>
      </themes>
    </map_request>Joao

  • Mapviewer and Safari

    Is MapViewer meant to work with Safari? If I try and drag and drop a map around, I can pick up the map tile itself, but can't drag the whole map. Anyone know a workaround?

    I've been experimenting with trying to disable the default behaviour of Safari,
    So far - I've come up empty.
    Any Idea's would be great...

  • Mapviewer and WMS

    Hi,
    I am trying to make the WMS servlet filter work, without success. I got my own datasource with styles/themes etc, and I am able to genereate previews using mapclient.jsp. GetCapabilities seems correct to me:
    <Layer>
    <Name>WMS</Name>
    <Title>Oracle WebMapServer-lag etter datakilde.</Title>
    <SRS>SDO:8307</SRS>
    <LatLonBoundingBox minx="-180.0" miny="-90.0" maxx="180.0" maxy="90.0"/>
    <Layer>
    <Name>GMIVA_SDO</Name>
    <Title>Datasource GMIVA_SDO</Title>
    <Layer>
    <Name>VALINES</Name>
    <Title>Basemap VALINES</Title>
    <SRS>SDO:0</SRS>
    <LatLonBoundingBox minx="-180.0" miny="-90.0" maxx="180.0" maxy="90.0"/>
    </Layer>
    </Layer>
    </Layer>
    When making a GetMap request, I get the following exception (Norwegian is translated in bold):
    <ServiceExceptionReport version="1.1.1">
    <ServiceException>
    <![CDATA[<oms_error>Message:[oms] kilden for kartdataene ble ikke funnet.( datasource not found)
    Thu Apr 20 10:22:23 CEST 2006
    Severity: 0
    Description:
         at oracle.lbs.mapserver.oms.doPost(oms.java:334)
         at oracle.lbs.mapserver.oms.doGet(oms.java:235)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.lbs.webmapserver.WMSServletFilter.doFilter(WMSServletFilter.java:212)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:663)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:285)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:126)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
         at java.lang.Thread.run(Unknown Source)
    </oms_error>]]>
    </ServiceException>
    </ServiceExceptionReport>
    What am I doing wrong here ? Any suggestion is welcome !

    With MapViewer 11g EA1 (early access release 1), you can supply a custom SDO-EPSG srid map file; when present, this file tells MapViewer to automatically convert between equivalent SDO and EPSG srids. This is set in the mapViewerConfig.xml file, for instance:
    <wms_config host="www.my_corp.com" port="80">
        <title>
            WMS 1.1 interface for Oracle Application Server 10g MapViewer
        </title>
        <abstract>
            This WMS service is provided through Oracle MapViewer.
        </abstract>
        <keyword_list>
           <keyword>bird</keyword>
           <keyword>roadrunner</keyword>
           <keyword>ambush</keyword>
        </keyword_list>
        <sdo_epsg_mapfile>
          ../config/epsg_srids.properties
        </sdo_epsg_mapfile>
      </wms_config>the format of the file (which must have .properties as file extension) is very simple. Each line contains one map from a SDO srid to an EPSG srid:
    <sdo_srid>=<epsg_srid>
    for instance a simple file may contain:
       81922=20248
       8307=4326
      ...Once you restart MapViewer it should recognize incoing wms req with EPSG srid, and also use EPSG srids when generating the capabilities response.
    on a somewhat related note, if you havn't tried the MapViewer 11g EA1, it has a great feature called Oracle Maps, which gives your map a Google-maps look and feel. This Oracle Maps can be hooked up with any existing WMS services, and essentially turns any WMS served map layer into high-performant draggable web map. For details check out my blog here http://www.giscape.com/oraclemaps.
    thanks

  • Integrating Mapviewer and OBIEE 11G

    Hi all,
    I am unable to get a map to be displayed in an answers report.
    I have imported Layers, Background Maps and images into Answers under the Administration - Manage Map Data
    In there I am able to display a map from the menu options Edit Background map.
    However when adding a map view to answers report I get the following error:
    View Display Error
    A basemap is required to render a map. Please ensure that atleast one basemap is defined in the spatial meta-data
    Error Details
    Error Codes: EMGUNIA3
    Location: saw.views.evc.activate, saw.httpserver.processrequest, saw.rpc.server.responder, saw.rpc.server, saw.rpc.server.handleConnection, saw.rpc.server.dispatch, saw.threadpool, saw.threadpool, saw.threads
    If anybody have a working integration, please let me know what I am missing.
    Regards,
    Hakan

    on Presentation OBIEE 11g , you need to integrate MapViewer with OBIEE11g :
    * when you Build Themes (Layers) using Map Builder, don't forget to add Info Columns .
    Example : in Region Table , Region_ID, Name , Description
    once you do that, keep in note when you add this theme (layer) in Presentation (OBIEE11g) on Administration-->Map Management --> Manage Map Data ---> Layers .. Then Add your Theme (Layer).
    * Double Click your Layer (Theme) and click ( +) icon to add New BI Key , these BI Keys are same columns you added in Map Builder Info Columns (Region_ID, Name, Description) you should add them serialized exactly like how you did it in Map Builder info columns which mean don't add (Name,Region_ID,Description) ... that will may unable to view map properly.
    this step above you keep adding it each Subject Areas one by one if need for map, once you finish doing this, this mean you integrate Mapviewer with OBIEE11g...
    don't forget to add at lease one measure in your answer to view map properly , so that you can add PIE, BAR charts or Color Schemes...
    good luck

  • MapViewer and reachability

    Hallo,
    I want to build a jsp page.
    For my network themes I want to calculate reachability.
    My questions:
    1. can I realize this with the Java API
    2. in which directory is the Java API
    and another question
    3. is there in the actual release (from august) support for network themes with columns of sdo_geometry type AND columns with sdo_topo_geometry type. In the last release that was not working.
    4. are there any code examples
    Thanks Tig

    Hi,
    1-4. You can use the Java API to create Network themes. This a code sample that calculates the shortest path betweem two nodes.
          mapViewer.setDataSourceName("tilsmenv");         
          mapViewer.setAntiAliasing(true);
          mapViewer.setImageFormat(MapViewer.FORMAT_PNG_URL);
          mapViewer.setCenterAndSize(5.,5., 12.);
          // shortest path analysis
          mapViewer.setMapTitle("Network Theme - Links and Shortest Paths");
          mapViewer.deleteAllThemes();
          // links                    
          mapViewer.addNetworkTheme("tilsmenv","link_theme","BI_TEST",null,"C.RED",
                    null,0.85,8,null,5,null,null,1,false);
          // shortest path - DIJKSTRA
          mapViewer.addShortestPath("tilsmenv","dk_theme","BI_TEST","DIJKSTRA",20,101,
                                    "L.PH",null,null,null,1,false);
          // shortest path - ASEARCH
          mapViewer.addShortestPath("tilsmenv","as_theme","BI_TEST","ASEARCH",20,101,
                                    "L.DPH","M.STAR","M.CIRCLE",null,1,false);
          response = mapViewer.run();
          ...2. You can find the mvclient.jar under MapViewer's WEB-INF/lib directory.
    3. There is no release since August. The current 10.1.2 release supports columns of sdo_geometry type, but not sdo_topo_geometry.
    Joao

  • Mapviewer and mixed types

    I installed and looked at the sample code of Mapviewer today, everything worked the first time (much improved quality over 9i). However, when I created a map with one of my tables that has more than one geometry type (in this case both points and polygons), it only drew the point features. Is this "normal"? Does MV look at the first returned record and assume that they are all of this type?

    :-0
    It does help when your polygon's coordinates are not getting rounded down to a single point... It's working now - thanks for looking.

  • MapViewer and multiple markers

    Hello, I am using a visual jsf project and the mapViewer in NetBeans.What I want to do is add multiple markers on the map, but I am new to this so I wanted to know if someone knows how to do this.Is there a good tutorial for more complex use of the mapViewer?I have looked in google but all there is about mapViewer is the tutorial from the NetBeans page which is very simple.Any help would be appreciated thank you!

    I have tested your theory without success.
    The scenario is:
    User1 has a series of spatial tables
    User2 has another series of spatial tables
    UserMV is created to have SELECT access to all the tables in User1 and User2
    Both User1 and User2 have their tables registered in ALL_SDO_GEOM_METADATA view and (as UserMV) the query "select count(*) from all_sdo_geom_metadata;" returns a total count of all entries. The query "select count(*) from user_sdo_geom_metadata;" returns a zero count.
    UserMV can also run the following queries successfully:
    select count(*) from User1.table1;
    SELECT count(*)
    FROM User1.table1 A
    WHERE sdo_filter(A.geom, SDO_geometry(2003,NULL,NULL,
    SDO_elem_info_array(1,1003,3),
    SDO_ordinate_array(144.9720,-37.8060, 144.9756,-37.8010))) = 'TRUE';
    SELECT count(*)
    FROM User2.table1 A
    WHERE sdo_filter(A.geom, SDO_geometry(2003,NULL,NULL,
    SDO_elem_info_array(1,1003,3),
    SDO_ordinate_array(144.9720,-37.8060, 144.9756,-37.8010))) = 'TRUE';
    The spatial queries above return the correct results.
    When running the Oracle Map Definition Tool and connecting as UserMV the following message appears when trying to add a new theme:
    "There is no accessible table that has one or more sdo_geometry columns in USER_SDO_GEOM_METADATA" which indicates that the connected user must have its own entries in USER_SDO_GEOM_METADATA in order to create themes, styles and maps.
    The next step is to manually create a theme and a map in the database table MDSYS.SDO_THEMES_TABLE. Creating the table entries and querying the data yields the following error message from the mapviewer application:
    04/05/25 11:37:40 [oracle.sdovis.ThemeTable, ERROR] cannot find entry in USER_SD
    O_GEOM_METADATA table for theme: MY_THEME
    This indicates once again that the SDO_OWNER must have all spatial tables registered and accessible via USER_SDO_GEOM_METADATA.
    What are your thoughts?
    Thanks.

  • MapViewer and Apache

    Hello,
    We have a Apache server that runs our website and we would like to integrate a map via MV into a web page. Since MV and Apache run on different servers for us, do I have to set up reverse proxy or is there a more streamlined out-of-the-box solution? Currently, when we try to run the map on the webpage, the map request tries to grab the jsp files off the web server instead of the MV server.
    Thanks,
    Chris Stewart

    Try configure save_images_at in mapViewerConfig.xml.
    Like this:
    <save_images_at file_prefix="omsmap"
    url="https://the.proxy.server:443/mapviewer/images/"
    life="30"
    recycle_interval="480" />

  • 9iASV2 MapViewer and Map Definition Tool

    Please go to the Oracle Spatial OTN page for information, discussion forum and downloads of MapViewer.
    any question feel free to email me at [email protected]

    Hi Andrejus,
    there is a new tool coming (MapBuilder) that will allow users to create MapViewer metadata for all Spatial models. A preview version will be available on OTN (no dates yet). We'll let users know when it is available for download.
    Thanks.
    Joao

Maybe you are looking for