Skip to main content
Question

Non-spatial features into a shapefile


juanmahere
Supporter
Forum|alt.badge.img+11
Hi all,

 

 

Could someone tell me how can I put non-spatial features into a shapefile?

 

 

Here is an screenshot:

 

(as you can see, with inspector they are found 4 features, but once I check the Shapefile, there are just writen two features)

 

 

 

Note: the original Shapefile has spatial and non-spatial features inside.

 

 

Many thanks,

 

JuanM.

5 replies

juanmahere
Supporter
Forum|alt.badge.img+11
  • Author
  • Supporter
  • June 5, 2015
I'd like to add to my question above that I tried to extract (if possible) _x and _y coordinates with "CoordinateExtractor" in a .csv file and there is NO possibilities of positioning this features in a map:

 

 

 

 

And here is what I have from the original shapefile:(highlighted those non-spatial features)

 

 

 

Thanks,

 

JuanM.

takashi
Contributor
Forum|alt.badge.img+19
  • Contributor
  • June 6, 2015
Hi,

 

 

In my quick test, the Shape writer was able to write the features that have no geometry without any problem.

 

Did you check the log? If there were some warning messages in the log, those might help us to know what's going on.

 

 

Takashi

juanmahere
Supporter
Forum|alt.badge.img+11
  • Author
  • Supporter
  • June 6, 2015
Thanks @Takashi I'll try to see what's behind the log file.

 

JuanM.

juanmahere
Supporter
Forum|alt.badge.img+11
  • Author
  • Supporter
  • June 8, 2015
Hi again,

 

Thanks @Takashi for your tip, but there is no option to write this kind of feautures: it rejects them:

 

 

08 08:21:36| 37.6| 0.0|WARN |Polygon feature must have at least 4 coordinates...rejecting08 08:21:36| 37.6| 0.0|WARN |REJECTING BELOW FEATURE:

 

08 08:21:36| 37.6| 0.0|INFORM|+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

 

 

08 08:21:36| 37.6| 0.0|INFORM|Feature Type: `GCCSA_intermediate'

 

08 08:21:36| 37.6| 0.0|INFORM|Attribute(64 bit real) : `AREA' has value `0'

 

08 08:21:36| 37.6| 0.0|INFORM|Attribute(64 bit real) : `Dwellings' has value `42'

 

08 08:21:36| 37.6| 0.0|INFORM|Attribute(encoded: windows-1250): `GCC_CODE11' has value `79799'

 

08 08:21:36| 37.6| 0.0|INFORM|Attribute(encoded: windows-1250): `GCC_NAME11' has value `Migratory - Offshore - Shipping (NT)'

 

08 08:21:36| 37.6| 0.0|INFORM|Attribute(64 bit real) : `Per_usu_re' has value `111'

 

08 08:21:36| 37.6| 0.0|INFORM|Attribute(encoded: windows-1250): `STE_CODE11' has value `7'

 

08 08:21:36| 37.6| 0.0|INFORM|Attribute(encoded: windows-1250): `STE_NAME11' has value `Northern Territory'

 

08 08:21:36| 37.6| 0.0|INFORM|Attribute(string) : `fme_basename' has value `MB_2011_added_INFO'

 

08 08:21:36| 37.6| 0.0|INFORM|Attribute(string) : `fme_dataset' has value `J:\\Analysis\\Census\\Australia\\3_Int\\01_MB_with_metadata\\MB_2011_added_INFO.shp'

 

08 08:21:36| 37.6| 0.0|INFORM|Attribute(string) : `fme_feature_type' has value `MB_2011_added_INFO'

 

08 08:21:36| 37.6| 0.0|INFORM|Attribute(string) : `fme_geometry' has value `fme_aggregate'

 

08 08:21:36| 37.6| 0.0|INFORM|Attribute(string) : `fme_rejection_code' has value `AREA_REQUIRED'

 

08 08:21:36| 37.6| 0.0|INFORM|Attribute(entangled: string) : `fme_type' has value `fme_area'

 

08 08:21:36| 37.6| 0.0|INFORM| entangled to [SHAPE_GEOMETRY, SHAPE_GEOMETRY]

 

08 08:21:36| 37.6| 0.0|INFORM|Attribute(string) : `multi_writer_id' has value `0'

 

08 08:21:36| 37.6| 0.0|INFORM|Coordinate System: `_LL-GDA94_0'

 

08 08:21:36| 37.6| 0.0|INFORM|Geometry Type: IFMEMultiArea

 

08 08:21:36| 37.6| 0.0|INFORM|Number of Areas: 0

 

 

 

I also tried with types:
  • Polygonm
  • Polygonz

 

Any other ideas?

 

 

JuanM.

juanmahere
Supporter
Forum|alt.badge.img+11
  • Author
  • Supporter
  • June 8, 2015
Many thanks!! Removing the geometry give the chance to FME to add the non-spatial features inside (in this case) to a polygon shapefile.

 

Thanks Takashi!

 

;)

 

 

JuanM.

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings