Download presentation
Presentation is loading. Please wait.
Published byRuby Daniel Modified over 9 years ago
1
Sep. 21-22, 2006 v FME Worldwide User Conference - Vancouver Customizing SpatialDirect Ken Bragg, Safe Software, Vancouver, BC
2
Customizing SpatialDirect 2 Customizing SpatialDirect Goals Provide a brief overview of SpatialDirect customization Provide attendees with a starting point for doing your own customization
3
Customizing SpatialDirect 3 Architecture Diagram Web Front End Mapping File Development Custom Client RemoteFetchUrl Interface
4
Customizing SpatialDirect 4 SpatialDirect Components Management Components SpatialDirect Manager Process Monitor Production Components Web Front End – Order Form etc. Custom Webpage Development Translation Servlet RemoteFetchUrl Interface QServer Custom Client Using QServer API FME Server Mapping File Development
5
Customizing SpatialDirect 5 Web Front End Default Order From Dynamically Generated by TranslationServlet Provided as Sample
6
Customizing SpatialDirect 6 Customized Order Form with ArcIMS Integration City of Kamloops Web Front End
7
Customizing SpatialDirect 7 Data Extract Wizard for Geocortex IMF (Latitude Geographics) Web Front End
8
Customizing SpatialDirect 8 Web Front End Shopping Cart Approach (State of Arkansas)
9
Customizing SpatialDirect 9 Web Front End Shopping cart approach (State of Arkansas)
10
Customizing SpatialDirect 10 Example Order Form Template Add email address to order form for result notification Send email address to QServer for email notification We need to add a text box for the email address to the form and add this email address to the remoteFetchUrl This is the page we edit: \safeViewerHTML\fetchDefault.htm
11
Customizing SpatialDirect 11 Editing Order Form Template 1) Email Address: <input type="text“ value="" name="notificationemail“ size="55“ ONCHANGE="updateRemoteFetchURL(document.spatialQuery);“/> 2) Add this the function updateRemoteFetchURL(f) in the section that builds the remoteFetchUrl + "¬ificationEmailAddress=" + f.notificationemail.value
12
Customizing SpatialDirect 12 TranslationServlet RemoteFetchUrl Interface Web Front End Mapping File Development Custom Client RemoteFetchUrl Interface
13
Customizing SpatialDirect 13 Remote Fetch URL Interface Example Remote Fetch URL http://localhost/SpatialDirect/translationServlet ?SSFunction=remoteFetch &queryMethod=dbUnits &lowerLeftX=-124.756 &lowerLeftY=45.553 &upperRightX=-122.141 &upperRightY=47.2785 &userSelectedThemes= Volcanoes_wa_shp+states_wa_shp &enableAutoThemeSelection=true &format=2gif.fme &pixels=350 &coordsys=BCALB-83 &fmeParams=--Tolerance+10 Translation Servlet
14
Customizing SpatialDirect 14 QServer Client Web Front End Mapping File Development Custom Client RemoteFetchUrl Interface
15
Customizing SpatialDirect 15 QServer QServer - Configured Using SDManager Prepares jobs for FME and queues them Load balancing Dynamic resource addition APIs for Java, C++, C#
16
Customizing SpatialDirect 16 QServer – Client QServer has APIs for Java, C++, C# for making your own QServer Client FME Server Client is an example made here at Safe
17
Customizing SpatialDirect 17 Mapping File Development Web Front End Mapping File Development Custom Client RemoteFetchUrl Interface
18
Customizing SpatialDirect 18 Mapping Files Allows SpatialDirect to leverage the full range of FME feature processing functions and factories Allows transformation and customization of output based on user input, themes, attributes etc
19
Customizing SpatialDirect 19 Mapping File Sequence
20
Customizing SpatialDirect 20 Mapping File Sequence
21
Customizing SpatialDirect 21 Mapping File Sequence
22
Customizing SpatialDirect 22 Mapping File Customization First Mapping File is always Exporter for example 2autocad.fmi Can include your own by adding an include statement eg INCLUDE \Generalize.fmi Use Factories and Functions to capture stream of data
23
Customizing SpatialDirect 23 Mapping File Example Generalize Suppose you want a particular theme generalized for download A good place to do this might be PreProcess.fmi You need a factory to capture the features - use workbench to get the syntax and copy into PreProcess.fmi after the first sampling factory
24
Customizing SpatialDirect 24 Mapping File Example Notes: The theme is named by the datasource_themeName The TOLERANCE parameter is a macro you can set in the remoteFetchURL Example. …&fmeParams=--TOLERANCE+2 Don’t forget to set the default macro in the mapping file
25
Customizing SpatialDirect 25 Queriers Query factories can be used in mapping files to query a database Allows us to leverage powerful database query capacity
26
Customizing SpatialDirect 26 Queriers ArcSDEQuerier & OracleQuerier get syntax from FME Workbench
27
Customizing SpatialDirect 27 Oracle Querier Example
28
Customizing SpatialDirect 28 Workspaces & Custom Formats Can use a Workbench Custom Format as a datasource Can use Workspace as a destination
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.