Hej Hans,
does FME stop execution when it encounters these out-of-bounds features, or is it possible just a warning?
If it stops, you could easily filter out those features before the writer using:
- a creator that creates a rectangle equal to the bounds box
- a clipper with the recangle to the Clipper port and all your features to the Clippee port
Send only the features from the Inside port to your writer.
For info on whether / how this has changed in FME 2013, I suggest you contact Safe directly.
David
Thanx for fast reply David,
But there is no wrong with the features outside the box, I want to have all features in to the writer.
And since this has worked just fine in earlier versions, then I will contact Safe for info on changes in FME 2013.
Best regards
Hans
Hi Roger,
I e-mailed Safe Support about this problem and got this reply (see below), which helped me solve the problem, hope it will work for you too.
Best regards
Hans
Please, take a look at your <FME HOME>/Reproject/Esceptions folder. You will find mapinfo.db file there. The file contains mappings between FME coordinate system names and MapInfo coordinate system definitions. For SWEREF-99-12-00 the mapping/definition is:
# "SWEREF 99 12 00\\p3007", 8, 33, 7, 12.00, 0, 1, 150000, 0
MAPINFO|SWEREF_99_12_00|8,33,m,12.00,0,1,150000,0
in FME 2011 build 6533 and
# "SWEREF 99 12 00\\p3007", 8, 33, 7, 12.00, 0, 1, 150000, 0
# Bounds derived from EPSG Registry
# "No trailing zeros" exception added to allow TAB reading since datum 33
# defeats parameter matching. Still need unmangled primary to make sure we can
# match MIF strings.
MAPINFO|SWEREF-99-12-00|2008,33,m,12.00,0,1,150000,0,85000,6292000,212000,6670000
MAPINFO|SWEREF-99-12-00|8,33,m,12.00,0,1,150000,0
MAPINFO|SWEREF-99-12-00|8,33,m,12,0,1,150000,0
in FME 2013 build 13515.
As you notice, in FME 2011 the SWEREF-99-12-00 bounds were not defined. In FME 2013 the bounds are defined as (85000, 6292000) (212000, 6670000). It also says that the bounds derived from EPSG Registry.
When you try to output your data using FME 2013, you get
Some objects were written outside of the file's predefined bounds.
These objects may have invalid coordinates when the file is reopened.
Predefined bounds: (85000,6292000)-(212000,6670000)
error message. This happens because your actual data bounds are (267767.132136607, 6223263.28743559) (274557.392342683, 6230508.60323206), i.e. the whole dataset is completely out of the coordinate system bounds.
As a solution I would suggest editing mapinfo.db file (commenting SWEREF-99-12-00 definition with bounds to have only no bounds definition left).
Please, comment the definition with bounds and leave the definition without bounds commented. Your mapinfo.db file should look this way:
# "SWEREF 99 12 00\\p3007", 8, 33, 7, 12.00, 0, 1, 150000, 0
# Bounds derived from EPSG Registry
# "No trailing zeros" exception added to allow TAB reading since datum 33
# defeats parameter matching. Still need unmangled primary to make sure we can
# match MIF strings.
#MAPINFO|SWEREF-99-12-00|2008,33,m,12.00,0,1,150000,0,85000,6292000,212000,6670000
MAPINFO|SWEREF-99-12-00|8,33,m,12.00,0,1,150000,0
MAPINFO|SWEREF-99-12-00|8,33,m,12,0,1,150000,0